@gooddata/sdk-ui-dashboard 11.68.0-alpha.0 → 11.68.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +11781 -60390
- package/esm/__version.d.ts +1 -1
- package/esm/__version.d.ts.map +1 -1
- package/esm/__version.js +1 -1
- package/esm/_staging/automation/index.d.ts.map +1 -1
- package/esm/_staging/automation/index.js +6 -5
- package/esm/_staging/catalog/computedAttributes.d.ts.map +1 -1
- package/esm/_staging/catalog/computedAttributes.js +2 -2
- package/esm/_staging/dashboard/dashboardLayout.d.ts.map +1 -1
- package/esm/_staging/dashboard/dashboardLayout.js +3 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/item.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/item.js +2 -2
- package/esm/_staging/dashboard/flexibleLayout/facade/section.d.ts.map +1 -1
- package/esm/_staging/dashboard/flexibleLayout/facade/section.js +4 -4
- package/esm/_staging/dateFilterConfig/merge.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/merge.js +2 -2
- package/esm/_staging/dateFilterConfig/validation.d.ts.map +1 -1
- package/esm/_staging/dateFilterConfig/validation.js +3 -3
- package/esm/_staging/drills/drillingUtils.d.ts.map +1 -1
- package/esm/_staging/drills/drillingUtils.js +2 -2
- package/esm/_staging/objectUtils/setOrDelete.d.ts.map +1 -1
- package/esm/_staging/objectUtils/setOrDelete.js +3 -3
- package/esm/_staging/sharedHooks/useEventToastMessage.d.ts.map +1 -1
- package/esm/_staging/sharedHooks/useEventToastMessage.js +3 -3
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.d.ts.map +1 -1
- package/esm/_staging/slideshow/containerSwitcherSlideTransformer.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.d.ts.map +1 -1
- package/esm/kdaDialog/components/KdaKeyDriverChart.js +1 -2
- package/esm/kdaDialog/components/bars/AttributeBar.d.ts.map +1 -1
- package/esm/kdaDialog/components/bars/AttributeBar.js +11 -6
- package/esm/kdaDialog/composition/AddFilterButton.d.ts +3 -1
- package/esm/kdaDialog/composition/AddFilterButton.d.ts.map +1 -1
- package/esm/kdaDialog/composition/AddFilterButton.js +4 -4
- package/esm/kdaDialog/composition/FiltersBar.d.ts.map +1 -1
- package/esm/kdaDialog/composition/FiltersBar.js +23 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversFooter.js +8 -5
- package/esm/kdaDialog/composition/hooks/usePeriodChangeHandler.js +11 -9
- package/esm/kdaDialog/types.d.ts +5 -0
- package/esm/kdaDialog/types.d.ts.map +1 -1
- package/esm/kdaDialog/utils.d.ts.map +1 -1
- package/esm/kdaDialog/utils.js +4 -1
- package/esm/model/DashboardTester.d.ts.map +1 -1
- package/esm/model/DashboardTester.js +2 -0
- package/esm/model/commandHandlers/common/drillRevalidationUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/drillRevalidationUtils.js +3 -3
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrillToCustomUrlParams.js +23 -6
- package/esm/model/commandHandlers/common/validateDrills.d.ts.map +1 -1
- package/esm/model/commandHandlers/common/validateDrills.js +2 -2
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/changeSharingHandler.js +2 -2
- package/esm/model/commandHandlers/dashboard/common/filterViews.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/filterViews.js +7 -7
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/stateInitializers.js +5 -4
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/index.js +2 -2
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/loadInaccessibleDashboards.js +3 -3
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/initializeDashboardHandler/preloadAttributeFiltersData.js +2 -2
- package/esm/model/commandHandlers/dashboard/saveDashboardHandler.js +1 -1
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts +4 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.d.ts.map +1 -0
- package/esm/model/commandHandlers/drill/assertSafeDrillUrl.js +8 -0
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/common/filterValuesResolver.js +2 -2
- package/esm/model/commandHandlers/drill/crossFilteringHandler.js +2 -2
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToAttributeUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToCustomUrlHandler.js +2 -0
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +4 -4
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/resolveDrillToCustomUrl.js +33 -4
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/addTextAttributeFilterHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/removeAttributeFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/replaceAttributeFilterItemSelectionHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/setAttributeFilterParentHandler.js +2 -2
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/attributeFilter/validation/computedAttributesEnabledValidation.js +2 -2
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/changeFilterContextSelectionHandler.js +8 -8
- package/esm/model/commandHandlers/filterContext/common.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/common.js +4 -4
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/filterContext/dateFilter/removeDateFiltersHandler.js +3 -2
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/addSectionItemsHandler.js +3 -3
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/removeLayoutSectionHandler.js +2 -2
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/replaceSectionItemHandler.js +3 -3
- package/esm/model/commandHandlers/layout/validation/itemValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/itemValidation.js +2 -2
- package/esm/model/commandHandlers/layout/validation/layoutValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/layout/validation/layoutValidation.js +6 -6
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/changeParameterValuesHandler.js +2 -2
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts +3 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.d.ts.map +1 -0
- package/esm/model/commandHandlers/parameters/customUrlDrillParametersWorker.js +15 -0
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/dashboardParameterRoots.js +3 -3
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/parameters/parameterDependenciesWorker.js +2 -2
- package/esm/model/commandHandlers/render/renderingWorker.d.ts.map +1 -1
- package/esm/model/commandHandlers/render/renderingWorker.js +2 -2
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +9 -9
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/addDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/changeKpiWidgetMeasureHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/modifyDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/removeDrillDownForInsightWidgetHandler.js +2 -2
- package/esm/model/commandHandlers/widgets/validation/filterValidation.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/filterValidation.js +6 -6
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.d.ts.map +1 -1
- package/esm/model/commandHandlers/widgets/validation/insightDrillDefinitionUtils.js +5 -6
- package/esm/model/commands/filters.d.ts +16 -0
- package/esm/model/commands/filters.d.ts.map +1 -1
- package/esm/model/commands/filters.js +21 -0
- package/esm/model/events/base.js +3 -3
- package/esm/model/events/dashboard.d.ts +11 -4
- package/esm/model/events/dashboard.d.ts.map +1 -1
- package/esm/model/events/util.d.ts.map +1 -1
- package/esm/model/events/util.js +3 -3
- package/esm/model/queryServices/queryConnectingAttributes.js +2 -2
- package/esm/model/queryServices/queryInsightAttributesMeta.js +3 -3
- package/esm/model/queryServices/queryInsightDateDatasets.js +4 -4
- package/esm/model/react/useInitializeDashboardStore.d.ts.map +1 -1
- package/esm/model/react/useInitializeDashboardStore.js +7 -0
- package/esm/model/react/useWidgetFilters.d.ts.map +1 -1
- package/esm/model/react/useWidgetFilters.js +2 -2
- package/esm/model/store/_infra/queryProcessing.d.ts.map +1 -1
- package/esm/model/store/_infra/queryProcessing.js +3 -2
- package/esm/model/store/_infra/queryService.d.ts.map +1 -1
- package/esm/model/store/_infra/queryService.js +4 -3
- package/esm/model/store/_infra/selectors.d.ts.map +1 -1
- package/esm/model/store/_infra/selectors.js +3 -3
- package/esm/model/store/catalog/catalogSelectors.d.ts.map +1 -1
- package/esm/model/store/catalog/catalogSelectors.js +7 -6
- package/esm/model/store/config/configSelectors.d.ts +0 -6
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +0 -8
- package/esm/model/store/dashboardStore.d.ts +4 -0
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +9 -3
- package/esm/model/store/drillTargets/drillTargetsSelectors.d.ts.map +1 -1
- package/esm/model/store/drillTargets/drillTargetsSelectors.js +2 -2
- package/esm/model/store/meta/metaSelectors.d.ts +16 -1
- package/esm/model/store/meta/metaSelectors.d.ts.map +1 -1
- package/esm/model/store/meta/metaSelectors.js +63 -12
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/dateFilterConfig/dateFilterConfigReducers.js +3 -3
- package/esm/model/store/tabs/filterContext/filterContextReducers.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextReducers.js +5 -5
- package/esm/model/store/tabs/filterContext/filterContextSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextSelectors.js +11 -10
- package/esm/model/store/tabs/filterContext/filterContextUtils.d.ts.map +1 -1
- package/esm/model/store/tabs/filterContext/filterContextUtils.js +2 -2
- package/esm/model/store/tabs/layout/layoutSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/layout/layoutSelectors.js +3 -3
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +31 -9
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +21 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +29 -4
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +11 -12
- package/esm/model/types/dateFilterTypes.d.ts.map +1 -1
- package/esm/model/types/dateFilterTypes.js +3 -3
- package/esm/model/types/layoutTypes.d.ts.map +1 -1
- package/esm/model/types/layoutTypes.js +8 -8
- package/esm/model/types/widgetTypes.d.ts.map +1 -1
- package/esm/model/types/widgetTypes.js +2 -2
- package/esm/model/utils/alertsUtils.d.ts.map +1 -1
- package/esm/model/utils/alertsUtils.js +2 -2
- package/esm/model/utils/filterResolver.d.ts.map +1 -1
- package/esm/model/utils/filterResolver.js +2 -2
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.d.ts.map +1 -1
- package/esm/plugins/customizationApis/fluidLayoutCustomizer.js +5 -5
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/blocks/AlertingDialogFieldLabelWithTooltip.js +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertDraftFilterWrites.js +9 -5
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/state/useAlertFormValidation.js +2 -2
- package/esm/presentation/automations/alerting/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/items.js +20 -23
- package/esm/presentation/automations/alerting/utils/transformation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/utils/transformation.js +2 -2
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/sanitizeAutomationForSave.js +2 -2
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useSaveScheduledEmailToBackend.js +2 -2
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailExportSettings.js +14 -14
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts +1 -0
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledEmailFormValidity.js +10 -4
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/state/useScheduledExportDialogValidity.js +2 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js +3 -3
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +4 -3
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFilters.js +2 -2
- package/esm/presentation/automations/shared/automationFilters/utils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/utils.js +6 -6
- package/esm/presentation/automations/shared/filters/conversions.d.ts.map +1 -1
- package/esm/presentation/automations/shared/filters/conversions.js +2 -2
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +6 -5
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +3 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +2 -7
- package/esm/presentation/dashboard/components/useDrillValidationMessages.d.ts.map +1 -1
- package/esm/presentation/dashboard/components/useDrillValidationMessages.js +5 -5
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.d.ts.map +1 -1
- package/esm/presentation/dashboard/defaultDashboardThemeModifier.js +4 -4
- package/esm/presentation/dashboard/types.d.ts +2 -0
- package/esm/presentation/dashboard/types.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.d.ts.map +1 -1
- package/esm/presentation/dashboardSettingsDialog/useDialogData.js +2 -2
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +2 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +34 -9
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParameters.js +3 -2
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts +7 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.d.ts.map +1 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditorParametersSections/ParameterParametersSection.js +20 -0
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts +2 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/ParameterDetails/ParameterDetail.js +7 -4
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.d.ts.map +1 -1
- package/esm/presentation/drill/DrillSelect/DrillSelectDropdown.js +4 -4
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.d.ts.map +1 -1
- package/esm/presentation/drill/hooks/useDrillSelectDropdownMenuItems.js +2 -2
- package/esm/presentation/drill/types.d.ts.map +1 -1
- package/esm/presentation/drill/types.js +10 -9
- package/esm/presentation/drill/utils/drillDownUtils.d.ts.map +1 -1
- package/esm/presentation/drill/utils/drillDownUtils.js +4 -3
- package/esm/presentation/filterBar/attributeFilter/AttributeFilterParentFilteringContext.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributeListItem.js +2 -3
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/addAttributeFilter/AttributesDropdown.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useDependentDateFiltersConfiguration.js +2 -2
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useLimitingItemsConfiguration.js +3 -3
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.d.ts.map +1 -1
- package/esm/presentation/filterBar/attributeFilter/dashboardDropdownBody/configuration/hooks/useParentsConfiguration.js +2 -2
- package/esm/presentation/filterBar/filterBar/DefaultDashboardFilterGroup.js +2 -2
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +4 -3
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/useFiltersWithAddedPlaceholder.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayout.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutExportSectionHeaderRenderer.js +3 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSection.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutViewSectionHeaderRenderer.js +2 -2
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/utils/sizing.js +3 -2
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/dragAndDrop/Resize/HeightResizerHotspot.js +2 -2
- package/esm/presentation/insightEditor/filterContext/attributeFilters.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/attributeFilters.js +2 -2
- package/esm/presentation/insightEditor/filterContext/filterIntersection.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/filterIntersection.js +3 -3
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.d.ts.map +1 -1
- package/esm/presentation/insightEditor/filterContext/insightFilterContext.js +2 -2
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +2 -9
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/de-DE.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-AU.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-GB.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +24 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +24 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-419.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/es-ES.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fi-FI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-CA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/fr-FR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/id-ID.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/it-IT.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ja-JP.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ko-KR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/nl-NL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pl-PL.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-BR.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/pt-PT.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/ru-RU.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/sl-SI.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/th-TH.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/tr-TR.localization-bundle.js +13 -4
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/uk-UA.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/vi-VN.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-HK.localization-bundle.js +14 -5
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hans.localization-bundle.js +10 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts +9 -0
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/zh-Hant.localization-bundle.js +23 -14
- package/esm/presentation/localization/translations.d.ts.map +1 -1
- package/esm/presentation/localization/translations.js +2 -3
- package/esm/presentation/saveAs/DefaultSaveAsDialog/SaveAsDialogRenderer.js +2 -2
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/DateDatasetDropdown.js +2 -2
- package/esm/presentation/widget/common/configuration/utils.d.ts.map +1 -1
- package/esm/presentation/widget/common/configuration/utils.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/Insight/useDashboardInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/getTitleWithBreadcrumbs.js +3 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogInsightDrills.js +2 -2
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.js +3 -2
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.js +5 -5
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.js +2 -2
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.js +7 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigItem.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.js +3 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +4 -4
- package/esm/presentation/widget/richText/RestrictedReferencesDialog.js +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.js +2 -2
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.d.ts.map +1 -1
- package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.js +1 -2
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -2
- package/esm/sdk-ui-dashboard.d.ts +41 -4
- package/esm/types.d.ts.map +1 -1
- package/esm/types.js +5 -5
- package/esm/widgets/placeholders/types.js +4 -4
- package/package.json +25 -23
- package/styles/css/configurationPanel.css +2 -14
- package/styles/css/configurationPanel.css.map +1 -1
- package/styles/css/dashboard.css +8 -3
- package/styles/css/dashboard.css.map +1 -1
- package/styles/css/drillConfigPanel.css +5 -0
- package/styles/css/drillConfigPanel.css.map +1 -1
- package/styles/css/filterBar.css +0 -20
- package/styles/css/filterBar.css.map +1 -1
- package/styles/css/main.css +17 -38
- package/styles/css/main.css.map +1 -1
- package/styles/css/scheduled_mail_recipients.css +8 -3
- package/styles/css/scheduled_mail_recipients.css.map +1 -1
- package/styles/scss/configurationPanel.scss +2 -20
- package/styles/scss/drillConfigPanel.scss +6 -0
- package/styles/scss/filterBar.scss +0 -25
- package/styles/scss/scheduled_mail_recipients.scss +15 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { DataViewFacade, isSomeHeaderPredicateMatched, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
6
6
|
import { selectEnableDrillToUrlByDefault } from "../../../../../model/store/config/configSelectors.js";
|
|
7
7
|
import { selectDrillableItemsByAvailableDrillTargets, selectImplicitDrillsByAvailableDrillTargets, } from "../../../../../model/store/widgetDrills/widgetDrillSelectors.js";
|
|
@@ -16,7 +16,7 @@ export const useDrillDialogInsightDrills = ({ widget, insight, onDrill: onDrillF
|
|
|
16
16
|
const disableDrillIntoURL = insight.insight.properties["controls"]?.disableDrillIntoURL ?? !enableDrillToUrlByDefault;
|
|
17
17
|
const onPushData = useCallback((data) => {
|
|
18
18
|
const targets = sanitizeAvailableDrillTargets(data?.availableDrillTargets, !disableDrillDownOnInsight, !disableDrillIntoURL);
|
|
19
|
-
if (targets && !
|
|
19
|
+
if (targets && !_isEqual(drillTargets, data.availableDrillTargets)) {
|
|
20
20
|
setDrillTargets(targets);
|
|
21
21
|
}
|
|
22
22
|
}, [disableDrillDownOnInsight, disableDrillIntoURL, drillTargets]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillDialogSyncInsightProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAA2C,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDrillDialogSyncInsightProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/useDrillDialogSyncInsightProperties.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,QAAQ,EAA2C,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAmBzE,MAAM,WAAW,0CAA0C;IACvD,OAAO,EAAE,QAAQ,CAAC;IAClB,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC;IAC7B,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mCAAmC,CAAC,EAChD,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,QAAQ,EACR,eAAe,GAClB,EAAE,0CAA0C;;2BAmB9B,SAAS;EAmBvB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { mergeWith } from "lodash-es";
|
|
4
4
|
import { insightProperties, insightSetProperties } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
6
|
function mergeVisualizationProperties(current, incoming) {
|
|
6
7
|
return mergeWith({}, current ?? {}, incoming, (currentValue, incomingValue) => {
|
|
7
8
|
/**
|
|
@@ -45,7 +46,7 @@ export function useDrillDialogSyncInsightProperties({ insight, drillStepInsightI
|
|
|
45
46
|
if (data.properties) {
|
|
46
47
|
setPushedProperties((current) => {
|
|
47
48
|
const mergedProperties = mergeVisualizationProperties(current, data.properties);
|
|
48
|
-
return
|
|
49
|
+
return _isEqual(mergedProperties, current) ? current : mergedProperties;
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
pushData?.(data);
|
package/esm/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillFiltersConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDrillFiltersConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillFilters/useDrillFiltersConfig.ts"],"names":[],"mappings":"AAMA,OAAO,EAGH,KAAK,sBAAsB,EAU9B,MAAM,qBAAqB,CAAC;AAoB7B,OAAO,EAEH,KAAK,gBAAgB,EAErB,KAAK,sCAAsC,EAI9C,MAAM,4BAA4B,CAAC;AAQpC,OAAO,EAAE,KAAK,yBAAyB,EAAsC,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAGpF,UAAU,4BAA4B;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,iBAAiB,EAAE,CACf,KAAK,EAAE,sBAAsB,GAAG,sCAAsC,EACtE,WAAW,EAAE,gBAAgB,KAC5B,IAAI,CAAC;CACb;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,4BAA4B;;;;;;;;;;;sCAiS3E,4BAA4B;EAiG/C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { areObjRefsEqual, bucketsAttributes, insightBuckets, insightFilters, insightMeasures, isDashboardMeasureValueFilter, measureFilters, measureLocalId, } from "@gooddata/sdk-model";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { isSourceInsightFilterObjRefEqual } from "../../../../../_staging/drills/drillingUtils.js";
|
|
7
7
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
8
8
|
import { selectAllCatalogDisplayFormsMap, selectCatalogDateDatasets, selectCatalogMeasures, } from "../../../../../model/store/catalog/catalogSelectors.js";
|
|
@@ -222,10 +222,10 @@ export function useDrillFiltersConfig({ item, onUpdateDrillItem }) {
|
|
|
222
222
|
...selection,
|
|
223
223
|
};
|
|
224
224
|
const targetDrill = widgetDrills.find((d) => d.localIdentifier === item.localIdentifier);
|
|
225
|
-
const isIntersectionAttributesChanged = !
|
|
226
|
-
const isSourceInsightFiltersChanged = !
|
|
227
|
-
const isIgnoredDashboardFiltersChanged = !
|
|
228
|
-
const isSourceMeasureFiltersChanged = !
|
|
225
|
+
const isIntersectionAttributesChanged = !_isEqual(currentSelection.drillIntersectionIgnoredAttributes, drillIntersectionIgnoredAttributes);
|
|
226
|
+
const isSourceInsightFiltersChanged = !_isEqual(currentSelection.includedSourceInsightFiltersObjRefs, includedSourceInsightFiltersObjRefs);
|
|
227
|
+
const isIgnoredDashboardFiltersChanged = !_isEqual(currentSelection.ignoredDashboardFilters, ignoredDashboardFilters);
|
|
228
|
+
const isSourceMeasureFiltersChanged = !_isEqual(currentSelection.includedSourceMeasureFiltersObjRefs, includedSourceMeasureFiltersObjRefs);
|
|
229
229
|
const isExtendedFilterSelectionChanged = isSourceInsightFiltersChanged ||
|
|
230
230
|
isIgnoredDashboardFiltersChanged ||
|
|
231
231
|
isSourceMeasureFiltersChanged;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrillTargetAttributeHierarchyItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrillTargetAttributeHierarchyItem.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/DrillTargetAttributeHierarchyItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EAItC,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AAMrF,UAAU,8BAA8B;IACpC,MAAM,EAAE,kCAAkC,CAAC;IAC3C,QAAQ,EAAE,CAAC,UAAU,EAAE,0BAA0B,GAAG,8BAA8B,KAAK,IAAI,CAAC;IAC5F,mBAAmB,EAAE,MAAM,IAAI,CAAC;CACnC;AAED,wBAAgB,iCAAiC,CAAC,EAC9C,MAAM,EACN,QAAQ,EACR,mBAAmB,GACtB,EAAE,8BAA8B,2CAiEhC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, getHierarchyAttributes, isCatalogAttributeHierarchy, } from "@gooddata/sdk-model";
|
|
5
4
|
import { AttributeHierarchyDialog } from "@gooddata/sdk-ui-ext";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
7
7
|
import { useDashboardUserInteraction } from "../../../../../model/react/useDashboardUserInteraction.js";
|
|
8
8
|
import { selectAllCatalogAttributeHierarchies } from "../../../../../model/store/catalog/catalogSelectors.js";
|
|
@@ -18,7 +18,7 @@ export function DrillTargetAttributeHierarchyItem({ config, onSelect, onDeleteIn
|
|
|
18
18
|
const attributesRef = getHierarchyAttributes(hierarchy);
|
|
19
19
|
return attributesRef.some((ref) => areObjRefsEqual(ref, attributeDescriptor?.attributeHeader.formOf.ref));
|
|
20
20
|
});
|
|
21
|
-
const shouldShowEmptyMessage =
|
|
21
|
+
const shouldShowEmptyMessage = _isEmpty(existInHierarchies) && !config.complete;
|
|
22
22
|
const onOpenDialog = (item) => {
|
|
23
23
|
if (!item || isCatalogAttributeHierarchy(item)) {
|
|
24
24
|
onOpenAttributeHierarchyDialog(item);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type IAttributeFilter, type IDashboardAttributeFilterConfig, type IDashboardMeasureValueFilter, type IMeasureValueFilter } from "@gooddata/sdk-model";
|
|
2
2
|
import { type UrlDrillTarget } from "../../../../drill/types.js";
|
|
3
|
-
export declare function useInvalidFilteringParametersIdentifiers(urlDrillTarget: UrlDrillTarget | undefined, insightFilters: IAttributeFilter[] | undefined, dashboardFilters: IAttributeFilter[] | undefined, dashboardMeasureValueFilters: IDashboardMeasureValueFilter[] | undefined, insightMeasureValueFilters: IMeasureValueFilter[] | undefined, enableInsightMeasureValueFilters: boolean, attributeFilterConfigs: IDashboardAttributeFilterConfig[] | undefined): string[];
|
|
3
|
+
export declare function useInvalidFilteringParametersIdentifiers(urlDrillTarget: UrlDrillTarget | undefined, insightFilters: IAttributeFilter[] | undefined, dashboardFilters: IAttributeFilter[] | undefined, dashboardMeasureValueFilters: IDashboardMeasureValueFilter[] | undefined, insightMeasureValueFilters: IMeasureValueFilter[] | undefined, enableInsightMeasureValueFilters: boolean, attributeFilterConfigs: IDashboardAttributeFilterConfig[] | undefined, dashboardParameterIdentifiers: string[]): string[];
|
|
4
4
|
//# sourceMappingURL=useInvalidFilteringParametersIdentifiers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInvalidFilteringParametersIdentifiers.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInvalidFilteringParametersIdentifiers.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/DrillTargets/useInvalidFilteringParametersIdentifiers.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EAG3B,MAAM,qBAAqB,CAAC;AAoB7B,OAAO,EAAE,KAAK,cAAc,EAA4B,MAAM,4BAA4B,CAAC;AAE3F,wBAAgB,wCAAwC,CACpD,cAAc,EAAE,cAAc,GAAG,SAAS,EAC1C,cAAc,EAAE,gBAAgB,EAAE,GAAG,SAAS,EAC9C,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,SAAS,EAChD,4BAA4B,EAAE,4BAA4B,EAAE,GAAG,SAAS,EACxE,0BAA0B,EAAE,mBAAmB,EAAE,GAAG,SAAS,EAC7D,gCAAgC,EAAE,OAAO,EACzC,sBAAsB,EAAE,+BAA+B,EAAE,GAAG,SAAS,EACrE,6BAA6B,EAAE,MAAM,EAAE,YA6G1C"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { uniq } from "lodash-es";
|
|
4
3
|
import { areObjRefsEqual, filterObjRef, } from "@gooddata/sdk-model";
|
|
5
|
-
import { getDashboardAttributeFilterPlaceholdersFromUrl, getDashboardMeasureValueFilterPlaceholdersFromUrl, getInsightAttributeFilterPlaceholdersFromUrl, getInsightMeasureValueFilterPlaceholdersFromUrl, placeholderIdentifierText, } from "@gooddata/sdk-model/internal";
|
|
4
|
+
import { getDashboardAttributeFilterPlaceholdersFromUrl, getDashboardMeasureValueFilterPlaceholdersFromUrl, getInsightAttributeFilterPlaceholdersFromUrl, getInsightMeasureValueFilterPlaceholdersFromUrl, getUnknownParameterIdentifiers, placeholderIdentifierText, } from "@gooddata/sdk-model/internal";
|
|
5
|
+
import { _uniq } from "@gooddata/util";
|
|
6
6
|
import { useDashboardSelector } from "../../../../../model/react/DashboardStoreProvider.js";
|
|
7
7
|
import { selectAllCatalogDisplayFormsMap, selectAllCatalogMeasuresMap, } from "../../../../../model/store/catalog/catalogSelectors.js";
|
|
8
8
|
import { dashboardMeasureValueFilterMatchesIdentifier, insightMeasureValueFilterMatchesIdentifier, } from "../../../../../model/utils/measureValueFilterUtils.js";
|
|
9
9
|
import { isDrillToCustomUrlConfig } from "../../../../drill/types.js";
|
|
10
|
-
export function useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs) {
|
|
10
|
+
export function useInvalidFilteringParametersIdentifiers(urlDrillTarget, insightFilters, dashboardFilters, dashboardMeasureValueFilters, insightMeasureValueFilters, enableInsightMeasureValueFilters, attributeFilterConfigs, dashboardParameterIdentifiers) {
|
|
11
11
|
const displayForms = useDashboardSelector(selectAllCatalogDisplayFormsMap);
|
|
12
12
|
const measures = useDashboardSelector(selectAllCatalogMeasuresMap);
|
|
13
13
|
return useMemo(() => {
|
|
@@ -60,11 +60,13 @@ export function useInvalidFilteringParametersIdentifiers(urlDrillTarget, insight
|
|
|
60
60
|
})
|
|
61
61
|
.map(({ identifier }) => identifier)
|
|
62
62
|
: insightMeasureValueFilterParameters.map(({ identifier }) => identifier);
|
|
63
|
-
|
|
63
|
+
const invalidParameterIdentifiers = getUnknownParameterIdentifiers(urlDrillTarget.customUrl, dashboardParameterIdentifiers);
|
|
64
|
+
return _uniq([
|
|
64
65
|
...invalidDashboardParameters,
|
|
65
66
|
...invalidInsightParameters,
|
|
66
67
|
...invalidDashboardMvfParameters,
|
|
67
68
|
...invalidInsightMvfParameters,
|
|
69
|
+
...invalidParameterIdentifiers,
|
|
68
70
|
]);
|
|
69
71
|
}
|
|
70
72
|
return [];
|
|
@@ -78,5 +80,6 @@ export function useInvalidFilteringParametersIdentifiers(urlDrillTarget, insight
|
|
|
78
80
|
insightMeasureValueFilters,
|
|
79
81
|
enableInsightMeasureValueFilters,
|
|
80
82
|
attributeFilterConfigs,
|
|
83
|
+
dashboardParameterIdentifiers,
|
|
81
84
|
]);
|
|
82
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSaveAlertToBackend.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSaveAlertToBackend.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useSaveAlertToBackend.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EAG3C,MAAM,qBAAqB,CAAC;AAM7B,wBAAgB,qBAAqB,CAAC,EAClC,eAAe,EACf,aAAa,EACb,eAAe,EACf,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,aAAa,GAChB,EAAE;IACC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC5D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1C;+BAOe,yBAAyB,GAAG,mCAAmC;+BAa/D,yBAAyB,GAAG,mCAAmC;8BAa/D,yBAAyB,GAAG,mCAAmC;+BAY/D,yBAAyB,GAAG,mCAAmC;;EAa9E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { omit } from "lodash-es";
|
|
4
3
|
import { isAllValuesAttributeFilter, } from "@gooddata/sdk-model";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { useCreateAlert } from "./useCreateAlert.js";
|
|
6
6
|
import { useUpdateAlert } from "./useUpdateAlert.js";
|
|
7
7
|
export function useSaveAlertToBackend({ onCreateSuccess, onCreateError, onUpdateSuccess, onUpdateError, onPauseSuccess, onPauseError, onResumeSuccess, onResumeError, }) {
|
|
@@ -48,7 +48,7 @@ function sanitizeAutomation(automationToSave) {
|
|
|
48
48
|
// cronDescription is a variable created on backend that cannot be overridden and BE has hard time
|
|
49
49
|
// handling it with each PUT
|
|
50
50
|
if (automation.schedule) {
|
|
51
|
-
automation.schedule =
|
|
51
|
+
automation.schedule = _omit(automation.schedule, ["cronDescription"]);
|
|
52
52
|
}
|
|
53
53
|
if (automation.alert?.execution?.filters) {
|
|
54
54
|
automation = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightDrillConfigItem.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightDrillConfigItem.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigItem.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEH,KAAK,sBAAsB,EAI9B,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAEH,KAAK,gBAAgB,EACrB,KAAK,sCAAsC,EAI9C,MAAM,yBAAyB,CAAC;AAQjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,2BAA2B,EAAE,gBAAgB,EAAE,CAAC;IAChD,QAAQ,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC3C,OAAO,EAAE,CACL,KAAK,EAAE,sBAAsB,GAAG,sCAAsC,EACtE,WAAW,EAAE,gBAAgB,EAC7B,mDAAmD,CAAC,EAAE,OAAO,KAC5D,IAAI,CAAC;IACV,kBAAkB,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC/D;AAqBD,wBAAgB,eAAe,CAAC,EAC5B,IAAI,EACJ,2BAA2B,EAC3B,kBAAkB,EAClB,OAAO,EACP,QAAQ,GACX,EAAE,qBAAqB,2CA6GvB"}
|
|
@@ -2,12 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { cloneDeep } from "lodash-es";
|
|
6
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
7
6
|
import { invariant } from "ts-invariant";
|
|
8
7
|
import { areObjRefsEqual, isAttributeDescriptor, } from "@gooddata/sdk-model";
|
|
9
8
|
import { messages } from "@gooddata/sdk-ui";
|
|
10
|
-
import { simplifyText } from "@gooddata/util";
|
|
9
|
+
import { _cloneDeep, simplifyText } from "@gooddata/util";
|
|
11
10
|
import { useDashboardSelector } from "../../../../model/react/DashboardStoreProvider.js";
|
|
12
11
|
import { selectCatalogDateDatasets } from "../../../../model/store/catalog/catalogSelectors.js";
|
|
13
12
|
import { selectDrillTargetsByWidgetRef } from "../../../../model/store/drillTargets/drillTargetsSelectors.js";
|
|
@@ -19,7 +18,7 @@ import { DrillOriginItem } from "./DrillOriginItem.js";
|
|
|
19
18
|
import { DrillTargets } from "./DrillTargets/DrillTargets.js";
|
|
20
19
|
import { DrillTargetType } from "./DrillTargetType/DrillTargetType.js";
|
|
21
20
|
function disableDrillDownIfMeasure(enabledDrillTargetTypeItems, isMeasure, intl) {
|
|
22
|
-
const drillTargetTypes =
|
|
21
|
+
const drillTargetTypes = _cloneDeep(enabledDrillTargetTypeItems);
|
|
23
22
|
if (isMeasure) {
|
|
24
23
|
const drillDownIndex = drillTargetTypes.findIndex((item) => item.id === DRILL_TARGET_TYPE.DRILL_DOWN);
|
|
25
24
|
if (drillDownIndex >= 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrillConfigIncompleteItems.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDrillConfigIncompleteItems.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/widget/insight/configuration/InsightDrillConfigPanel/useDrillConfigIncompleteItems.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,KAAK,gBAAgB,EAAiC,MAAM,4BAA4B,CAAC;AAElG,eAAO,MAAM,uBAAuB,cAAmC,CAAC;AAexE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,sBAAsB,EAAE,CAAC;CAC1C;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,UAAW,wBAAwB;;6BA+F5C,gBAAgB;yBA3DvB,gBAAgB;iCAVhB,gBAAgB;gCAwBT,gBAAgB;mCAWf,yBAAyB,aAAa,MAAM;CAqDlE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// (C) 2019-
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useState } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { v4 as uuidv4 } from "uuid";
|
|
5
4
|
import { usePrevious } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEqual } from "@gooddata/util";
|
|
6
6
|
import { isAvailableDrillTargetMeasure } from "../../../../drill/types.js";
|
|
7
7
|
export const generateLocalIdentifier = () => uuidv4().replace(/-/g, "");
|
|
8
8
|
const addOrUpdateDrillConfigItem = (drillConfigItems, newItem) => {
|
|
@@ -26,7 +26,7 @@ export const useIncompleteItems = (props) => {
|
|
|
26
26
|
const prevWidgetDrills = usePrevious(widgetDrills);
|
|
27
27
|
useEffect(() => {
|
|
28
28
|
//when widgetDrills changed remove all complete widget items
|
|
29
|
-
if (!
|
|
29
|
+
if (!_isEqual(widgetDrills, prevWidgetDrills)) {
|
|
30
30
|
const incompleteItemsUpdated = incompleteItems.filter((incompleteItem) => !incompleteItem.complete);
|
|
31
31
|
if (incompleteItemsUpdated.length !== incompleteItems.length) {
|
|
32
32
|
updateIncompleteItems(incompleteItemsUpdated);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDefaultInsightEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightEditMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAM1D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAItG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAClD,aAAa,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAC5D,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,8BAA8B,CAC1C,MAAM,EAAE,cAAc,EACtB,EACI,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,mBAA0B,EAC1B,qBAA4B,EAC5B,qBAA6B,GAChC,EAAE,2BAA2B,GAC/B,gBAAgB,EAAE,CAyCpB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2021-2026 GoodData Corporation
|
|
3
|
-
import { compact } from "lodash-es";
|
|
4
2
|
import { IconInteraction } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
5
4
|
import { eagerRemoveSectionItemByWidgetRef } from "../../../../model/commands/layout.js";
|
|
6
5
|
import { userInteractionTriggered } from "../../../../model/events/userInteraction.js";
|
|
7
6
|
import { uiActions } from "../../../../model/store/ui/index.js";
|
|
@@ -11,7 +10,7 @@ import { InsightInteractions } from "../../insight/configuration/InsightInteract
|
|
|
11
10
|
* @internal
|
|
12
11
|
*/
|
|
13
12
|
export function getDefaultInsightEditMenuItems(widget, { intl, dispatch, eventDispatch, includeInteractions = true, includeConfigurations = true, useWidgetDeleteDialog = false, }) {
|
|
14
|
-
return
|
|
13
|
+
return _compact([
|
|
15
14
|
includeConfigurations && {
|
|
16
15
|
type: "submenu",
|
|
17
16
|
itemId: "ConfigurationPanelSubmenu",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDefaultInsightMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAElG,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,YAAY,CAAC;AA8MxD;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,qBAAqB,EAC7B,SAAS,CAAC,EAAE,wBAAwB,GACrC,gBAAgB,EAAE,CAqNpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { UiIcon } from "@gooddata/sdk-ui-kit";
|
|
3
|
+
import { _compact } from "@gooddata/util";
|
|
4
4
|
import { InsightAlerts } from "../../insight/configuration/InsightAlerts.js";
|
|
5
5
|
import { getExportTooltipId } from "./getExportTooltips.js";
|
|
6
6
|
const getPresentationExportItems = (intl, config, presentationTooltip) => {
|
|
@@ -35,7 +35,7 @@ const getPresentationExportItems = (intl, config, presentationTooltip) => {
|
|
|
35
35
|
tooltip: exportPowerPointPresentationDisabled ? presentationTooltip : undefined,
|
|
36
36
|
onClick: onExportPowerPointPresentation,
|
|
37
37
|
};
|
|
38
|
-
return
|
|
38
|
+
return _compact([isExportPngImageVisible && pngImageItem, pdfPresentationItem, pptxPresentationItem]);
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Computes the disabled state and tooltip for a formatted export entry (XLSX, formatted CSV, formatted PDF).
|
|
@@ -102,7 +102,7 @@ const getDataExportGroupItems = (intl, config, disabledReasonTooltip, limitBreak
|
|
|
102
102
|
tooltip: exportCSVRawDisabled ? disabledReasonTooltip : undefined,
|
|
103
103
|
onClick: onExportRawCSV,
|
|
104
104
|
};
|
|
105
|
-
return
|
|
105
|
+
return _compact([xlsxItem, isExportPdfTabularVisible && pdfTabularItem, csvFormattedItem, csvRawItem]);
|
|
106
106
|
};
|
|
107
107
|
const getDataExportGroup = (intl, config, disabledReasonTooltip, limitBreakTooltip) => {
|
|
108
108
|
const items = getDataExportGroupItems(intl, config, disabledReasonTooltip, limitBreakTooltip);
|
|
@@ -289,5 +289,5 @@ export function getDefaultInsightMenuItems(intl, config, execution) {
|
|
|
289
289
|
isScheduleExportManagementVisible && availableMenuItems.scheduleExportManagement,
|
|
290
290
|
isAlertManagementVisible && availableMenuItems.alertsManagement,
|
|
291
291
|
];
|
|
292
|
-
return
|
|
292
|
+
return _compact(menuItems);
|
|
293
293
|
}
|
|
@@ -37,5 +37,5 @@ export function RestrictedReferencesDialog({ value, onSanitized, onCancel, }) {
|
|
|
37
37
|
const onConfirm = useCallback(() => {
|
|
38
38
|
onSanitized(replaceReferences(value, restrictedReferences, RESTRICTED_REFERENCE_REPLACEMENT));
|
|
39
39
|
}, [value, restrictedReferences, onSanitized]);
|
|
40
|
-
return (_jsx("span", { className: "gd-restricted-references-dialog-wrapper", onClick: (event) => event.stopPropagation(), children: _jsxs(UiModalDialog, { variant: "confirmation", isOpen: true, width: 440, initialFocus: cancelButtonRef, dataTestId: "rich-text-sanitize-references-dialog", accessibilityConfig: { role: "alertdialog" }, onClose: onCancel, children: [_jsx(UiDialogHeader, { title: intl.formatMessage({ id: "richText.restrictedReferences.dialog.header" }),
|
|
40
|
+
return (_jsx("span", { className: "gd-restricted-references-dialog-wrapper", onClick: (event) => event.stopPropagation(), children: _jsxs(UiModalDialog, { variant: "confirmation", isOpen: true, width: 440, size: "large", initialFocus: cancelButtonRef, dataTestId: "rich-text-sanitize-references-dialog", accessibilityConfig: { role: "alertdialog" }, onClose: onCancel, children: [_jsx(UiDialogHeader, { title: intl.formatMessage({ id: "richText.restrictedReferences.dialog.header" }), onClose: onCancel }), _jsx(UiDialogBody, { children: intl.formatMessage({ id: "richText.restrictedReferences.dialog.message" }) }), _jsxs(UiDialogFooter, { children: [_jsx(UiButton, { ref: cancelButtonRef, label: intl.formatMessage({ id: "cancel" }), variant: "secondary", size: "medium", onClick: onCancel }), _jsx(UiButton, { label: intl.formatMessage({ id: "richText.restrictedReferences.dialog.submit" }), variant: "danger", size: "medium", onClick: onConfirm })] })] }) }));
|
|
41
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultRichTextEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getDefaultRichTextEditMenuItems.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/richTextMenu/DefaultDashboardRichTextMenu/getDefaultRichTextEditMenuItems.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAI3D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AAC9F,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,sDAAsD,CAAC;AAEtG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAClD,aAAa,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IAC5D,uCAAuC,CAAC,EAAE,OAAO,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,eAAe,EACvB,EAAE,IAAI,EAAE,QAAQ,EAAE,uCAA+C,EAAE,EAAE,4BAA4B,GAClG,iBAAiB,EAAE,CA2BrB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _compact } from "@gooddata/util";
|
|
3
3
|
import { eagerRemoveSectionItemByWidgetRef } from "../../../../model/commands/layout.js";
|
|
4
4
|
import { RichTextConfiguration } from "../../richText/configuration/RichTextConfiguration.js";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
8
|
export function getDefaultRichTextEditMode(widget, { intl, dispatch, enableRichTextWidgetFilterConfiguration = false }) {
|
|
9
|
-
return
|
|
9
|
+
return _compact([
|
|
10
10
|
enableRichTextWidgetFilterConfiguration && {
|
|
11
11
|
type: "submenu",
|
|
12
12
|
itemId: "ConfigurationPanelSubmenu",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsightWidgetWarningPartialResult.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InsightWidgetWarningPartialResult.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAItE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAElG,UAAU,uCAAuC;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAC1C,eAAe,EAAE,wBAAwB,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,wBAAgB,iCAAiC,CAAC,EAC9C,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,UAAkB,EAClB,cAAc,GACjB,EAAE,uCAAuC,2CAyDzC"}
|
package/esm/presentation/widget/widget/warningPartialResult/InsightWidgetWarningPartialResult.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2022-2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import noop from "lodash-es/noop.js";
|
|
5
4
|
import { FormattedMessage, defineMessage, useIntl } from "react-intl";
|
|
6
5
|
import { getPartialDataWarningMessage } from "@gooddata/sdk-ui";
|
|
7
6
|
import { DialogBase, UiLink, WidgetNotice } from "@gooddata/sdk-ui-kit";
|
|
@@ -19,5 +18,5 @@ export function InsightWidgetWarningPartialResult({ className, limitBreaks, isLo
|
|
|
19
18
|
event.preventDefault();
|
|
20
19
|
onExportRawCSV?.();
|
|
21
20
|
};
|
|
22
|
-
return (_jsx(_Fragment, { children: isOpen && isLoading === false ? (_jsx(DialogBase, { className: className, onMouseUp:
|
|
21
|
+
return (_jsx(_Fragment, { children: isOpen && isLoading === false ? (_jsx(DialogBase, { className: className, onMouseUp: () => { }, submitOnEnterKey: false, isModal: false, autofocusOnOpen: false, children: _jsx(WidgetNotice, { dataTestId: "partial-data-warning", type: "warning", message: _jsx(FormattedMessage, { id: "partial_data_warning.title" }), detail: _jsx(FormattedMessage, { ...detailMessage }), detailAction: isExportRawVisible && !isEditMode ? (_jsx(UiLink, { isDisabled: isExporting, variant: "primary", href: "#", onClick: exportFullResult, children: _jsx(FormattedMessage, { id: "partial_data_warning.export_raw" }) })) : undefined, expandLabel: _jsx(FormattedMessage, { id: "partial_data_warning.show_details" }), collapseLabel: _jsx(FormattedMessage, { id: "partial_data_warning.hide_details" }), onClose: handleCloseOverlay, closeButtonLabel: intl.formatMessage(defineMessage({ id: "partial_data_warning.close" })) }) })) : null }));
|
|
23
22
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useCallback } from "react";
|
|
4
|
-
import { compact } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, defineMessages, useIntl } from "react-intl";
|
|
6
5
|
import { ConfirmDialog } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _compact } from "@gooddata/util";
|
|
7
7
|
import { eagerRemoveSectionItemByWidgetRef } from "../../model/commands/layout.js";
|
|
8
8
|
import { useDashboardDispatch, useDashboardSelector } from "../../model/react/DashboardStoreProvider.js";
|
|
9
9
|
import { useIsWidgetRestricted } from "../../model/react/useIsWidgetRestricted.js";
|
|
@@ -73,7 +73,7 @@ export function DefaultWidgetDeleteDialog({ isVisible, showAlertsMessage, showSc
|
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
75
|
const widgetTitle = widget.title;
|
|
76
|
-
const messages =
|
|
76
|
+
const messages = _compact([
|
|
77
77
|
showAlertsMessage && deleteMessages.alerts,
|
|
78
78
|
showSchedulesMessage && deleteMessages.schedules,
|
|
79
79
|
]);
|
|
@@ -159,6 +159,7 @@ import { IExportTemplate } from '@gooddata/sdk-model';
|
|
|
159
159
|
import { IFilter } from '@gooddata/sdk-model';
|
|
160
160
|
import { IFilterableWidget } from '@gooddata/sdk-model';
|
|
161
161
|
import { IFilterContextDefinition } from '@gooddata/sdk-model';
|
|
162
|
+
import { IGenAIDashboardLiveFilters } from '@gooddata/sdk-model';
|
|
162
163
|
import { IHeaderPredicate } from '@gooddata/sdk-ui';
|
|
163
164
|
import { IInsight } from '@gooddata/sdk-model';
|
|
164
165
|
import { IInsightDefinition } from '@gooddata/sdk-model';
|
|
@@ -4103,16 +4104,23 @@ export declare type DashboardSavedPayload = {
|
|
|
4103
4104
|
*/
|
|
4104
4105
|
readonly newDashboard: boolean;
|
|
4105
4106
|
/**
|
|
4106
|
-
* Identifier of the dashboard definition before it was persisted. This is present when
|
|
4107
|
-
* dashboard draft was saved and can differ from the identifier of dashboard
|
|
4107
|
+
* Identifier of the dashboard definition before it was persisted. This is present when a
|
|
4108
|
+
* dashboard draft was saved and can differ from the identifier of `dashboard`.
|
|
4108
4109
|
*
|
|
4109
|
-
* @
|
|
4110
|
+
* @remarks
|
|
4111
|
+
* Use this identifier to associate a Copilot proposal with `dashboard.identifier` after saving.
|
|
4112
|
+
*
|
|
4113
|
+
* @alpha
|
|
4110
4114
|
*/
|
|
4111
4115
|
readonly originalDashboardId?: string;
|
|
4112
4116
|
/**
|
|
4113
4117
|
* Draft insights persisted as part of the dashboard save.
|
|
4114
4118
|
*
|
|
4115
|
-
* @
|
|
4119
|
+
* @remarks
|
|
4120
|
+
* Each mapping associates an original draft insight identifier with the saved insight identifier.
|
|
4121
|
+
* Only insights created by this save are included. Empty when none were created.
|
|
4122
|
+
*
|
|
4123
|
+
* @alpha
|
|
4116
4124
|
*/
|
|
4117
4125
|
readonly savedInsights?: ReadonlyArray<{
|
|
4118
4126
|
readonly originalInsightId: string;
|
|
@@ -10201,6 +10209,8 @@ export declare interface IDashboardBaseProps {
|
|
|
10201
10209
|
* identifier - this is same as using `idRef(objectIdentifier)`.
|
|
10202
10210
|
*
|
|
10203
10211
|
* If you do not specify dashboard to render, a new default empty dashboard will be rendered.
|
|
10212
|
+
* To render an AI-proposed draft, supply the dashboard by value and set `config.references`.
|
|
10213
|
+
* Use `config.initialRenderMode: "edit"` to allow saving it.
|
|
10204
10214
|
*/
|
|
10205
10215
|
dashboard?: string | ObjRef | IDashboard;
|
|
10206
10216
|
/**
|
|
@@ -17458,6 +17468,11 @@ export declare interface IItemWithWidth {
|
|
|
17458
17468
|
export declare interface IKdaDataPoint {
|
|
17459
17469
|
/**
|
|
17460
17470
|
* Date string in ISO format related to granularity
|
|
17471
|
+
*
|
|
17472
|
+
* @remarks
|
|
17473
|
+
* The normalized value of the date attribute element: the wall-clock the backend computed in its
|
|
17474
|
+
* timezone, carried as the UTC fields of the ISO string (e.g. "2026-03-29T02:30:00.000Z" for the value
|
|
17475
|
+
* "2026-03-29 02:30:00"). Format it and shift it in UTC so the browser timezone does not change it.
|
|
17461
17476
|
*/
|
|
17462
17477
|
date: string;
|
|
17463
17478
|
/**
|
|
@@ -26755,6 +26770,11 @@ export declare type ReplaceAttributeFilterItemSelectionPayload = {
|
|
|
26755
26770
|
* Specifies if filter selection is invalid (e.g. text filter with missing value/literal).
|
|
26756
26771
|
*/
|
|
26757
26772
|
readonly isSelectionInvalid?: boolean;
|
|
26773
|
+
/**
|
|
26774
|
+
* Specifies that the filter is reset because the filter selection type changes.
|
|
26775
|
+
* The selection type is filter configuration of a single tab, so the reset is not synced to other tabs.
|
|
26776
|
+
*/
|
|
26777
|
+
readonly skipSync?: boolean;
|
|
26758
26778
|
};
|
|
26759
26779
|
|
|
26760
26780
|
/**
|
|
@@ -28607,6 +28627,23 @@ export declare const selectCurrentUser: DashboardSelector<IUser>;
|
|
|
28607
28627
|
*/
|
|
28608
28628
|
export declare const selectCurrentUserRef: DashboardSelector<ObjRef>;
|
|
28609
28629
|
|
|
28630
|
+
/**
|
|
28631
|
+
* The dashboard definition the AI assistant edits: the working definition, except that outside edit
|
|
28632
|
+
* mode every filter context carries the persisted filters, as manual Edit does.
|
|
28633
|
+
*
|
|
28634
|
+
* @internal
|
|
28635
|
+
*/
|
|
28636
|
+
export declare const selectDashboardAiDefinition: DashboardSelector<IDashboardDefinition<IDashboardWidget>>;
|
|
28637
|
+
|
|
28638
|
+
/**
|
|
28639
|
+
* The filters on screen outside edit mode, for the root filter context and each tab, so the AI assistant can
|
|
28640
|
+
* tell which of them differ from {@link selectDashboardAiDefinition}. They are the only part of the working
|
|
28641
|
+
* definition that one replaces. Undefined in edit mode, where the two are the same.
|
|
28642
|
+
*
|
|
28643
|
+
* @internal
|
|
28644
|
+
*/
|
|
28645
|
+
export declare const selectDashboardAiLiveFilters: DashboardSelector<IGenAIDashboardLiveFilters | undefined>;
|
|
28646
|
+
|
|
28610
28647
|
/**
|
|
28611
28648
|
* Returns the current dashboard density setting.
|
|
28612
28649
|
*
|
package/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
package/esm/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { isDashboardFilter as isDashboardFilterBase, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Type-guard testing whether the provided object is an instance of {@link IDashboardFilter}.
|
|
6
6
|
*
|
|
@@ -12,7 +12,7 @@ export const isDashboardFilter = isDashboardFilterBase;
|
|
|
12
12
|
* @beta
|
|
13
13
|
*/
|
|
14
14
|
export function isDrillDownDefinition(obj) {
|
|
15
|
-
return !
|
|
15
|
+
return !_isEmpty(obj) && obj.type === "drillDown";
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Tests whether the provided density is supported.
|
|
@@ -29,7 +29,7 @@ export function isSupportedDashboardDensity(density) {
|
|
|
29
29
|
* @alpha
|
|
30
30
|
*/
|
|
31
31
|
export function isLayoutCoordinates(obj) {
|
|
32
|
-
return (!
|
|
32
|
+
return (!_isEmpty(obj) &&
|
|
33
33
|
obj.sectionIndex !== undefined &&
|
|
34
34
|
obj.itemIndex !== undefined);
|
|
35
35
|
}
|
|
@@ -38,12 +38,12 @@ export function isLayoutCoordinates(obj) {
|
|
|
38
38
|
* @alpha
|
|
39
39
|
*/
|
|
40
40
|
export function isLayoutItemPath(obj) {
|
|
41
|
-
return !
|
|
41
|
+
return !_isEmpty(obj) && Array.isArray(obj) && obj.every(isLayoutCoordinates);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Tests whenever the provided object is section path.
|
|
45
45
|
* @alpha
|
|
46
46
|
*/
|
|
47
47
|
export function isLayoutSectionPath(obj) {
|
|
48
|
-
return !
|
|
48
|
+
return !_isEmpty(obj) && obj.sectionIndex !== undefined;
|
|
49
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2021-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
import { newCustomWidget } from "../../model/types/layoutTypes.js";
|
|
4
4
|
/**
|
|
5
5
|
* Tests whether an object is a {@link IKpiPlaceholderWidget}.
|
|
@@ -8,7 +8,7 @@ import { newCustomWidget } from "../../model/types/layoutTypes.js";
|
|
|
8
8
|
* @alpha
|
|
9
9
|
*/
|
|
10
10
|
export function isKpiPlaceholderWidget(obj) {
|
|
11
|
-
return !
|
|
11
|
+
return !_isEmpty(obj) && obj.customType === "gd-kpi-placeholder";
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
@@ -27,7 +27,7 @@ export function newKpiPlaceholderWidget() {
|
|
|
27
27
|
* @alpha
|
|
28
28
|
*/
|
|
29
29
|
export function isInsightPlaceholderWidget(obj) {
|
|
30
|
-
return !
|
|
30
|
+
return !_isEmpty(obj) && obj.customType === "gd-insight-placeholder";
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
@@ -46,7 +46,7 @@ export function newInsightPlaceholderWidget() {
|
|
|
46
46
|
* @alpha
|
|
47
47
|
*/
|
|
48
48
|
export function isPlaceholderWidget(obj) {
|
|
49
|
-
return !
|
|
49
|
+
return !_isEmpty(obj) && obj.customType === "gd-widget-placeholder";
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Tests whether an object is a {@link IPlaceholderWidget} and is initial.
|