@gooddata/sdk-ui-ext 11.68.0-alpha.1 → 11.68.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +8336 -63104
- package/esm/insightView/InsightRenderer.d.ts.map +1 -1
- package/esm/insightView/InsightRenderer.js +4 -4
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +7 -7
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogFooter.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/AttributeHierarchyDialogProvider.js +4 -4
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/useBackendProvider.js +2 -2
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.d.ts.map +1 -1
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.js +2 -2
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +14 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -4
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +2 -2
- package/esm/internal/components/configurationControls/PagingSection.js +5 -5
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PivotTableTextWrappingControl.js +3 -3
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +5 -5
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -3
- package/esm/internal/components/configurationControls/advanced/ConfigEditor.js +2 -2
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +4 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.js +3 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +6 -6
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +3 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.js +2 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -3
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +4 -4
- package/esm/internal/components/configurationPanels/BaseChartConfigurationPanel.js +2 -2
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
- package/esm/internal/components/configurationPanels/LineChartBasedConfigurationPanel.js +1 -1
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.js +3 -3
- package/esm/internal/components/dialogs/userManagementDialogs/types.d.ts.map +1 -1
- package/esm/internal/components/dialogs/userManagementDialogs/types.js +6 -6
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +3 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +4 -4
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -4
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/barChart/PluggableBarChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +9 -8
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/columnChart/PluggableColumnChart.js +7 -7
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +5 -4
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +8 -9
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +15 -16
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +8 -8
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/headline/PluggableHeadline.js +2 -3
- package/esm/internal/components/pluggableVisualizations/headline/headlineBucketHelper.js +3 -3
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +8 -7
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +11 -11
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +8 -8
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +5 -5
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableConfigFromInsight.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +4 -5
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/sortHelpers.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -7
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +5 -6
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +6 -5
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +11 -11
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/xirr/PluggableXirr.js +2 -3
- package/esm/internal/interfaces/Visualization.d.ts.map +1 -1
- package/esm/internal/interfaces/Visualization.js +6 -6
- package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +29 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +2 -2
- package/esm/internal/translations/ru-RU.localization-bundle.js +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +4 -4
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +5 -5
- package/esm/internal/utils/bucketHelper.d.ts.map +1 -1
- package/esm/internal/utils/bucketHelper.js +15 -14
- package/esm/internal/utils/bucketRules.d.ts.map +1 -1
- package/esm/internal/utils/bucketRules.js +3 -2
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +11 -11
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.js +7 -7
- package/esm/internal/utils/dimensions.d.ts.map +1 -1
- package/esm/internal/utils/dimensions.js +4 -4
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.d.ts.map +1 -1
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +11 -11
- package/esm/internal/utils/propertiesHelper.d.ts.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +16 -15
- package/esm/internal/utils/removeUseless.js +3 -3
- package/esm/internal/utils/sort.d.ts.map +1 -1
- package/esm/internal/utils/sort.js +9 -8
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +19 -19
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bulletChartUiConfigHelper.js +2 -2
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +6 -6
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +15 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +7 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +5 -5
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +13 -13
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +14 -14
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +10 -10
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +8 -8
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +12 -12
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +11 -11
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +5 -5
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/esm/sdk-ui-ext.d.ts +1 -1
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useCallback, useEffect, useRef } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { messages } from "../../../locales.js";
|
|
7
7
|
import { pushpinShapeTypeDropdownItems } from "../../constants/dropdowns.js";
|
|
8
8
|
import { getTranslatedDropdownItems } from "../../utils/translations.js";
|
|
@@ -44,8 +44,8 @@ export function PushpinShapeControl(props) {
|
|
|
44
44
|
const handleShapeTypePushData = useCallback((data) => {
|
|
45
45
|
const nextShape = data.properties?.controls?.["points"]?.shapeType;
|
|
46
46
|
if (nextShape !== "oneIcon" && data.properties?.controls?.["points"]?.icon !== undefined) {
|
|
47
|
-
const sanitized =
|
|
48
|
-
|
|
47
|
+
const sanitized = _cloneDeep(data.properties);
|
|
48
|
+
_set(sanitized, "controls.points.icon", undefined);
|
|
49
49
|
pushData({ ...data, properties: sanitized });
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -65,8 +65,8 @@ export function PushpinShapeControl(props) {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
lastAutoSelectedIcon.current = firstSpriteIcon;
|
|
68
|
-
const clonedProperties =
|
|
69
|
-
|
|
68
|
+
const clonedProperties = _cloneDeep(properties);
|
|
69
|
+
_set(clonedProperties, "controls.points.icon", firstSpriteIcon);
|
|
70
70
|
pushData({ properties: clonedProperties });
|
|
71
71
|
}, [shapeType, icon, spriteIcons, properties, pushData]);
|
|
72
72
|
// Keep the shape section visible when metrics lock the current valid mode to circle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AdvancedSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/advanced/AdvancedSection.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMrF,MAAM,WAAW,qBAAqB;IAClC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,GAAG,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,oGAKzB,qBAAqB,6CA6DtB,CAAC"}
|
|
@@ -2,9 +2,9 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { memo, useRef, useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { cloneDeep, set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../../locales.js";
|
|
9
9
|
import { ConfigSection } from "../ConfigSection.js";
|
|
10
10
|
import { ConfigEditor } from "./ConfigEditor.js";
|
|
@@ -18,8 +18,8 @@ export const AdvancedSection = memo(function AdvancedSection({ properties, prope
|
|
|
18
18
|
const valuePath = "chartConfigOverride";
|
|
19
19
|
const configurationValue = properties?.controls?.["chartConfigOverride"];
|
|
20
20
|
const onChange = (value) => {
|
|
21
|
-
const clonedProperties =
|
|
22
|
-
|
|
21
|
+
const clonedProperties = _cloneDeep(properties);
|
|
22
|
+
_set(clonedProperties, `controls.${valuePath}`, value);
|
|
23
23
|
pushData?.({ properties: clonedProperties });
|
|
24
24
|
setShowDialog(false);
|
|
25
25
|
};
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import * as jsYaml from "js-yaml";
|
|
5
|
-
import { merge } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { Button, Hyperlink, Overlay } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _merge } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../../locales.js";
|
|
9
9
|
import { CodeMirrorEditor } from "./CodeMirrorEditor.js";
|
|
10
10
|
import { SnippetHeader, SnippetItem } from "./SnippetItem.js";
|
|
@@ -26,7 +26,7 @@ export function ConfigEditor({ value, onSubmit, onCancel }) {
|
|
|
26
26
|
}
|
|
27
27
|
try {
|
|
28
28
|
const currentYamlValueAsJson = jsYaml.load(currentYamlValue);
|
|
29
|
-
const mergedJson =
|
|
29
|
+
const mergedJson = _merge(currentYamlValueAsJson, snippet.value);
|
|
30
30
|
setCurrentYamlValue(jsYaml.dump(mergedJson));
|
|
31
31
|
}
|
|
32
32
|
catch (e) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { messages } from "../../../../locales.js";
|
|
7
7
|
import { fillDropdownItems } from "../../../constants/dropdowns.js";
|
|
8
8
|
import { getColoredInputItems, getLineStyleMappingId, getLineStyleProperties, getMappingHeaderId, getProperties, removeColorMappingFromProperties, } from "../../../utils/colors.js";
|
|
@@ -57,9 +57,9 @@ export function ColorsSection({ controlsDisabled, properties, propertiesMeta, pu
|
|
|
57
57
|
if (isDefaultColorMapping()) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
let updatedProperties =
|
|
60
|
+
let updatedProperties = _set(_cloneDeep(properties), "controls.colorMapping", undefined);
|
|
61
61
|
if (supportsLineStyles) {
|
|
62
|
-
updatedProperties =
|
|
62
|
+
updatedProperties = _set(updatedProperties, "controls.lineStyleMapping", undefined);
|
|
63
63
|
}
|
|
64
64
|
pushData?.({ messageId: COLOR_MAPPING_CHANGED, properties: updatedProperties, references: {} });
|
|
65
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorCheckbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKzD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAI3F,UAAU,eAAe;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAkBrG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { Checkbox } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { comparisonMessages } from "../../../../../../locales.js";
|
|
7
7
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
8
8
|
import { COMPARISON_COLOR_CONFIG_DISABLED } from "../../ComparisonValuePath.js";
|
|
@@ -11,8 +11,8 @@ export function ColorCheckbox({ disabled, showDisabledMessage, properties, pushD
|
|
|
11
11
|
const checked = !properties?.controls?.comparison?.colorConfig?.disabled;
|
|
12
12
|
const label = formatMessage(comparisonMessages["colorsConfigTitle"]);
|
|
13
13
|
const handleChange = (value) => {
|
|
14
|
-
const clonedProperties =
|
|
15
|
-
|
|
14
|
+
const clonedProperties = _cloneDeep(properties);
|
|
15
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_DISABLED, !value);
|
|
16
16
|
pushData({ properties: clonedProperties });
|
|
17
17
|
};
|
|
18
18
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: !!showDisabledMessage, children: _jsx(Checkbox, { text: label, value: checked, disabled: disabled, onChange: handleChange }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,yBAAyB,CAAC;AAG1F,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAK3F,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,mBAAmB,CAAC;IAC/B,YAAY,EAAE,aAAa,CAAC;IAC5B,eAAe,EAAE,iBAAiB,CAAC;IACnC,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,SAAS,CAAC,EACtB,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,eAAe,EACf,SAAS,EACT,UAAU,EACV,QAAQ,GACX,EAAE,eAAe,2CA0BjB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep, set } from "lodash-es";
|
|
4
3
|
import { useIntl } from "react-intl";
|
|
5
4
|
import { getComparisonRgbColor } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
7
7
|
import { ColorDropdown } from "../../../colors/colorDropdown/ColorDropdown.js";
|
|
8
8
|
import { ColoredItemContent } from "../../../colors/coloredItemsList/ColoredItemContent.js";
|
|
@@ -12,8 +12,8 @@ export function ColorItem({ disabled, align, showDisabledMessage, color, colorTy
|
|
|
12
12
|
const rgbColor = getComparisonRgbColor(color, colorType, colorPalette);
|
|
13
13
|
const chartFill = properties?.controls?.["chartFill"];
|
|
14
14
|
const handleColorSelected = (color) => {
|
|
15
|
-
const clonedProperties =
|
|
16
|
-
|
|
15
|
+
const clonedProperties = _cloneDeep(properties);
|
|
16
|
+
_set(clonedProperties.controls, valuePath, color);
|
|
17
17
|
pushData({ properties: clonedProperties });
|
|
18
18
|
};
|
|
19
19
|
return (_jsx(DisabledBubbleMessage, { showDisabledMessage: !!showDisabledMessage, children: _jsx(ColorDropdown, { colorPalette: colorPalette, onColorSelected: handleColorSelected, selectedColorItem: color, disabled: disabled, children: _jsx(ColoredItemContent, { text: label, align: align, color: rgbColor, chartFill: chartFill }) }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorResetButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAKzD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAQ3F,UAAU,sBAAsB;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAyB1F"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
6
5
|
import { Button } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { messages } from "../../../../../../locales.js";
|
|
8
8
|
import { isComparisonDefaultColors } from "../../../../../utils/comparisonHelper.js";
|
|
9
9
|
import { COMPARISON_COLOR_CONFIG_EQUALS, COMPARISON_COLOR_CONFIG_NEGATIVE, COMPARISON_COLOR_CONFIG_POSITIVE, } from "../../ComparisonValuePath.js";
|
|
@@ -12,10 +12,10 @@ export function ColorResetButton({ disabled, properties, pushData }) {
|
|
|
12
12
|
const label = formatMessage(messages["resetColors"]);
|
|
13
13
|
const isDefaultColors = isComparisonDefaultColors(properties?.controls?.comparison?.colorConfig);
|
|
14
14
|
const resetColors = () => {
|
|
15
|
-
const clonedProperties =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
const clonedProperties = _cloneDeep(properties);
|
|
16
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_POSITIVE, undefined);
|
|
17
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_NEGATIVE, undefined);
|
|
18
|
+
_set(clonedProperties.controls, COMPARISON_COLOR_CONFIG_EQUALS, undefined);
|
|
19
19
|
pushData({ properties: clonedProperties });
|
|
20
20
|
};
|
|
21
21
|
const classNames = cx(["gd-color-reset-colors-section", "s-gd-color-reset-colors-section"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberFormatControl.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAM3F,UAAU,yBAAyB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,WAAW,CAAC;IACxB,UAAU,EAAE,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IACnE,QAAQ,EAAE,gBAAgB,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,QAAQ,GACX,EAAE,yBAAyB,2CAmC3B"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { MeasureNumberFormat } from "@gooddata/sdk-ui-kit";
|
|
6
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
7
|
import { getPresets, getTemplates } from "../../../../../utils/comparisonHelper.js";
|
|
8
8
|
import { DisabledBubbleMessage } from "../../../../DisabledBubbleMessage.js";
|
|
9
9
|
import { NumberFormatToggleButton } from "./NumberFormatToggleButton.js";
|
|
10
10
|
export function NumberFormatControl({ disabled, valuePath, labelText, format, showDisabledMessage, separators, properties, pushData, }) {
|
|
11
11
|
const intl = useIntl();
|
|
12
12
|
const selectFormat = (format) => {
|
|
13
|
-
const clonedProperties =
|
|
14
|
-
|
|
13
|
+
const clonedProperties = _cloneDeep(properties);
|
|
14
|
+
_set(clonedProperties.controls, valuePath, format);
|
|
15
15
|
pushData({ properties: clonedProperties });
|
|
16
16
|
};
|
|
17
17
|
const presets = useMemo(() => getPresets(intl), [intl]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalFormattingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConditionalFormattingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,8BAA8B,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EACH,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAClC,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,aAAa,EASrB,MAAM,iCAAiC,CAAC;AAiCzC;;;;;GAKG;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|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { isEqual } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { v4 as uuid } from "uuid";
|
|
8
7
|
import { Button, Overlay, UiCheckbox, UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _isEqual } from "@gooddata/util";
|
|
9
9
|
import { conditionalFormattingMessages } from "../../../../locales.js";
|
|
10
10
|
import { DisabledBubbleMessage } from "../../DisabledBubbleMessage.js";
|
|
11
11
|
import { CfSelect } from "./CfSelect.js";
|
|
@@ -109,7 +109,7 @@ export function ConditionalFormattingDialog({ rule: initialRule, isNew, targetOp
|
|
|
109
109
|
const isPercent = selectedTarget?.isPercent ?? false;
|
|
110
110
|
const suggestions = selectedTarget?.elements ?? [];
|
|
111
111
|
const complete = isRuleComplete(rule, selectedTarget?.date);
|
|
112
|
-
const isDirty = isNew || !
|
|
112
|
+
const isDirty = isNew || !_isEqual(rule, initial);
|
|
113
113
|
// A target with a semantic default reads as a plain "Rule" regardless of which side of the
|
|
114
114
|
// checkbox it's on — the Add/Edit split only applies to targets with no default to switch to.
|
|
115
115
|
const title = intl.formatMessage(activeSemantic === undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConditionalFormattingSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,WAAW,EAEnB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAIrF,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,aAAa,EAerB,MAAM,iCAAiC,CAAC;AAYzC,MAAM,WAAW,kCAAkC;IAC/C,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,yFAAyF;IACzF,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC;;;;;;;;OAQG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;;OAMG;IACH,mCAAmC,CAAC,EAAE,OAAO,CAAC;CACjD;AAkJD,wBAAgB,4BAA4B,CAAC,EACzC,UAAU,EACV,cAAc,EACd,OAAO,EACP,UAAU,EACV,OAAO,EACP,SAAS,EACT,YAAY,EACZ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,2BAAkC,EAClC,mCAA2C,GAC9C,EAAE,kCAAkC,2CA6SpC"}
|
|
@@ -2,10 +2,10 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
|
-
import { cloneDeep, set } from "lodash-es";
|
|
6
5
|
import { useIntl } from "react-intl";
|
|
7
6
|
import { isSemanticConditionalFormattingEnabled, } from "@gooddata/sdk-model";
|
|
8
7
|
import { Button, UiIconButton } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
9
9
|
import { conditionalFormattingMessages } from "../../../../locales.js";
|
|
10
10
|
import { ConfigSection } from "../ConfigSection.js";
|
|
11
11
|
import { ConditionalFormattingDialog } from "./ConditionalFormattingDialog.js";
|
|
@@ -132,8 +132,8 @@ export function ConditionalFormattingSection({ properties, propertiesMeta, insig
|
|
|
132
132
|
});
|
|
133
133
|
// Spread the existing config so version (and any future cross-stack fields) survive an edit.
|
|
134
134
|
const next = withSuppressedTargets({ ...config, enabled: enabledNext, rules: rulesNext }, prunedSuppressedTargets);
|
|
135
|
-
const cloned =
|
|
136
|
-
|
|
135
|
+
const cloned = _cloneDeep(properties ?? {});
|
|
136
|
+
_set(cloned, "controls.conditionalFormatting", next);
|
|
137
137
|
pushData?.({ properties: cloned });
|
|
138
138
|
};
|
|
139
139
|
// The one place that edits `suppressedTargets` membership for a single target — every other commit
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
3
|
import { useEffect, useId, useRef, useState } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
5
|
import { useDebounce } from "@gooddata/sdk-ui";
|
|
7
6
|
import { UiIcon, UiLink } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../../locales.js";
|
|
9
9
|
import { customTooltipPlacementDropdownItems } from "../../../constants/dropdowns.js";
|
|
10
10
|
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
|
|
@@ -31,8 +31,8 @@ export function CustomTooltipSection({ controlsDisabled = false, properties = {}
|
|
|
31
31
|
const latestContentRef = useRef(content);
|
|
32
32
|
const pushContent = (newContent) => {
|
|
33
33
|
lastPushedContentRef.current = newContent;
|
|
34
|
-
const clonedProperties =
|
|
35
|
-
|
|
34
|
+
const clonedProperties = _cloneDeep(properties);
|
|
35
|
+
_set(clonedProperties, "controls.customTooltip.content", newContent);
|
|
36
36
|
pushData({ properties: clonedProperties });
|
|
37
37
|
};
|
|
38
38
|
const pushContentRef = useRef(pushContent);
|
|
@@ -13,12 +13,11 @@ export interface IInteractionsSectionProps {
|
|
|
13
13
|
supportsAlertConfiguration?: boolean;
|
|
14
14
|
supportsDrillDownConfiguration?: boolean;
|
|
15
15
|
supportsScheduledExportsConfiguration?: boolean;
|
|
16
|
-
supportsKeyDriveAnalysis?: boolean;
|
|
17
16
|
showImplicitDrillToUrl?: boolean;
|
|
18
17
|
enableDrillToUrlByDefault?: boolean;
|
|
19
18
|
}
|
|
20
19
|
export declare function QuestionMarkTooltip(props: {
|
|
21
20
|
tooltipText: string;
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const InteractionsSection: import("react").MemoExoticComponent<({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration,
|
|
22
|
+
export declare const InteractionsSection: import("react").MemoExoticComponent<({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration, showImplicitDrillToUrl, enableDrillToUrlByDefault, }: IInteractionsSectionProps) => import("react/jsx-runtime").JSX.Element>;
|
|
24
23
|
//# sourceMappingURL=InteractionsSection.d.ts.map
|
package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InteractionsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/interactions/InteractionsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yBAAyB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC;IACnE,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,SAAS,CAAC;IAC7C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,
|
|
1
|
+
{"version":3,"file":"InteractionsSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/interactions/InteractionsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAIpD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AACrF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,MAAM,WAAW,yBAAyB;IACtC,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yBAAyB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC;IACnE,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,SAAS,CAAC;IAC7C,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,qCAAqC,CAAC,EAAE,OAAO,CAAC;IAChD,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACvC;AAGD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,2CASjE;AAED,eAAO,MAAM,mBAAmB,wSAY7B,yBAAyB,6CAgI1B,CAAC"}
|
|
@@ -10,7 +10,7 @@ const TOOLTIP_ALIGN_POINTS = [{ align: "cr cl", offset: { x: 5, y: 0 } }];
|
|
|
10
10
|
export function QuestionMarkTooltip(props) {
|
|
11
11
|
return (_jsxs(BubbleHoverTrigger, { children: [_jsx("span", { className: "gd-interactions-section__question-mark gd-icon-circle-question" }), _jsx(Bubble, { alignPoints: TOOLTIP_ALIGN_POINTS, children: _jsx(FormattedMessage, { id: props.tooltipText }) })] }));
|
|
12
12
|
}
|
|
13
|
-
export const InteractionsSection = memo(function InteractionsSection({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration,
|
|
13
|
+
export const InteractionsSection = memo(function InteractionsSection({ metrics, areControlsDisabledGetter, properties, propertiesMeta, pushData, InteractionsDetailRenderer, supportsAlertConfiguration, supportsDrillDownConfiguration, supportsScheduledExportsConfiguration, showImplicitDrillToUrl, enableDrillToUrlByDefault, }) {
|
|
14
14
|
const isDrillDownDisabled = properties?.controls?.["disableDrillDown"] ?? false;
|
|
15
15
|
const isDrillIntoURLDisabled = properties?.controls?.["disableDrillIntoURL"] ?? !enableDrillToUrlByDefault;
|
|
16
16
|
const isAlertsDisabled = properties?.controls?.["disableAlerts"] ?? false;
|
|
@@ -18,7 +18,7 @@ export const InteractionsSection = memo(function InteractionsSection({ metrics,
|
|
|
18
18
|
const isKdaDisabled = properties?.controls?.["disableKeyDriveAnalysis"] ?? false;
|
|
19
19
|
const isSeparatorVisible = supportsDrillDownConfiguration &&
|
|
20
20
|
(supportsAlertConfiguration || supportsScheduledExportsConfiguration);
|
|
21
|
-
return (_jsxs(ConfigSection, { id: "interactions_section", className: "gd-interactions-section", title: messages["interactions"].id, propertiesMeta: propertiesMeta, pushData: pushData, children: [supportsAlertConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableAlerts", labelText: messages["interactionsAlerts"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.alerts"), checked: !isAlertsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsAlertsTooltip"].id })] })) : null, supportsScheduledExportsConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableScheduledExports", labelText: messages["interactionsScheduledExports"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.scheduled_exports"), checked: !isScheduledExportsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsScheduledExportsTooltip"].id })] })) : null,
|
|
21
|
+
return (_jsxs(ConfigSection, { id: "interactions_section", className: "gd-interactions-section", title: messages["interactions"].id, propertiesMeta: propertiesMeta, pushData: pushData, children: [supportsAlertConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableAlerts", labelText: messages["interactionsAlerts"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.alerts"), checked: !isAlertsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsAlertsTooltip"].id })] })) : null, supportsScheduledExportsConfiguration ? (_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableScheduledExports", labelText: messages["interactionsScheduledExports"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.scheduled_exports"), checked: !isScheduledExportsDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsScheduledExportsTooltip"].id })] })) : null, metrics && metrics.length > 0 ? (_jsxs(_Fragment, { children: [_jsxs("div", { className: "gd-interactions-section__control-with-tooltip", children: [_jsx(CheckboxControl, { valuePath: "disableKeyDriveAnalysis", labelText: messages["interactionsKda"].id, properties: properties, disabled: areControlsDisabledGetter?.("interactions.kda"), checked: !isKdaDisabled, pushData: pushData, isValueInverted: true }), _jsx(QuestionMarkTooltip, { tooltipText: messages["interactionsKdaTooltip"].id })] }), _jsx("div", { className: "gd-interactions-section__kda_metrics_list", children: metrics.map((m) => {
|
|
22
22
|
const isKdaMetricDisabled = getKdaMetricDisabled(properties, m);
|
|
23
23
|
return (_jsx("div", { className: "gd-interactions-section__kda_metrics_list__item", children: _jsx(CheckboxControl, { valuePath: `disableKeyDriveAnalysisOn.${m.measure.localIdentifier}`, labelContent: _jsxs("div", { className: "gd-interactions-section__kda_metrics_list__item__label", children: [_jsx("span", { className: "gd-interactions-section__kda_metrics_list__item__label__icon", children: _jsx(UiIcon, { type: "metric", color: "currentColor", size: 20 }) }), _jsx(ShortenedText, { className: "gd-interactions-section__kda_metrics_list__item__title", ellipsisPosition: "end", tooltipAlignPoints: [
|
|
24
24
|
{ align: "cr cl", offset: { x: 5, y: 0 } },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TotalSection.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/configurationControls/total/TotalSection.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAMrF,MAAM,WAAW,kBAAkB;IAC/B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,EAAE,wBAAwB,CAAC;IACrC,cAAc,EAAE,GAAG,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;CAChC;AAID,eAAO,MAAM,YAAY,oGAKtB,kBAAkB,6CAkDnB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-
|
|
2
|
+
// (C) 2023-2026 GoodData Corporation
|
|
3
3
|
import { memo, useEffect } from "react";
|
|
4
|
-
import { cloneDeep, set } from "lodash-es";
|
|
5
4
|
import { useIntl } from "react-intl";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { messages } from "../../../../locales.js";
|
|
7
7
|
import { isTotalSectionEnabled } from "../../../utils/propertiesHelper.js";
|
|
8
8
|
import { getTranslation } from "../../../utils/translations.js";
|
|
@@ -24,8 +24,8 @@ export const TotalSection = memo(function TotalSection({ controlsDisabled, prope
|
|
|
24
24
|
: messages["totalToggleTooltip"].id;
|
|
25
25
|
useEffect(() => {
|
|
26
26
|
if (isTotalEnabled && !totalColumnName) {
|
|
27
|
-
const cloneProperties =
|
|
28
|
-
|
|
27
|
+
const cloneProperties = _cloneDeep(properties);
|
|
28
|
+
_set(cloneProperties, "controls.total.name", defaultTotalColumnName);
|
|
29
29
|
pushData({ properties: cloneProperties });
|
|
30
30
|
}
|
|
31
31
|
}, [isTotalEnabled, totalColumnName, defaultTotalColumnName, properties, pushData]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { FormattedMessage } from "react-intl";
|
|
5
4
|
import { bucketsById, bucketsIsEmpty, insightBuckets } from "@gooddata/sdk-model";
|
|
6
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
7
6
|
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
|
|
7
|
+
import { _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { messages } from "../../../locales.js";
|
|
9
9
|
import { AXIS, BASE_CHART_AXIS_CONFIG, DUAL_AXES_SUPPORTED_CHARTS } from "../../constants/axis.js";
|
|
10
10
|
import { BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y, HIDE_DELAY_DEFAULT, SHOW_DELAY_DEFAULT, } from "../../constants/bubble.js";
|
|
@@ -23,7 +23,7 @@ export class BaseChartConfigurationPanel extends ConfigurationPanelContent {
|
|
|
23
23
|
const controlsDisabled = this.isControlDisabled();
|
|
24
24
|
const { buckets } = insight.insight;
|
|
25
25
|
const stackBy = bucketsById(buckets, BucketNames.STACK);
|
|
26
|
-
const isNotStacked =
|
|
26
|
+
const isNotStacked = _isEmpty(stackBy);
|
|
27
27
|
return (_jsxs(ConfigSection, { id: "canvas_section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(DataLabelsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled, isTotalsDisabled: controlsDisabled ||
|
|
28
28
|
!!properties?.controls?.["stackMeasuresToPercent"] ||
|
|
29
29
|
(isNotStacked && !properties?.controls?.["stackMeasures"]), enableSeparateTotalLabels: true }), _jsx(CheckboxControl, { valuePath: "grid.enabled", labelText: messages["canvasGridLine"].id, properties: properties, checked: gridEnabled, disabled: controlsDisabled, pushData: pushData })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SA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AAC,CAAC;IACtB,OAAc,YAAY,EAAE,+BAA+B,CAgBzD;IAEF,SAAS,CAAC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAExD,YAAY,KAAK,EAAE,CAAC,EAGnB;IAEe,MAAM,4CAQrB;IAED,SAAS,CAAC,QAAQ,CAAC,wBAAwB,IAAI,SAAS,CAAC;IAEzD;;;OAGG;IACH,SAAS,CAAC,iBAAiB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAG/D;IAED,SAAS,CAAC,kBAAkB,IAAI,SAAS,CAwBxC;IAED,SAAS,CAAC,mBAAmB,IAAI,SAAS,CAYzC;IAED,SAAS,CAAC,yBAAyB,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"ConfigurationPanelContent.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/configurationPanels/ConfigurationPanelContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,wBAAwB,EAChC,MAAM,mCAAmC,CAAC;AAqB3C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,+BAA+B,CAAC,WAAW,GAAG,GAAG;IAC9D,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,MAAM,C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3C;CACJ"}
|
|
@@ -65,7 +65,6 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
65
65
|
renderInteractionsSection() {
|
|
66
66
|
const { pushData, properties, propertiesMeta, panelConfig, configurationPanelRenderers, featureFlags, insight, } = this.props;
|
|
67
67
|
const showImplicitDrillToUrl = isInsightSupportedForImplicitDrillToUrl(insight);
|
|
68
|
-
const supportsKeyDriveAnalysis = featureFlags?.enableChangeAnalysis;
|
|
69
68
|
const insightSupportsScheduledExports = isInsightSupportedForScheduledExports(insight);
|
|
70
69
|
const insightSupportsAlerts = isInsightSupportedForAlerts(insight);
|
|
71
70
|
const supportsAlertsConfiguration = insightSupportsAlerts;
|
|
@@ -74,7 +73,7 @@ export class ConfigurationPanelContent extends PureComponent {
|
|
|
74
73
|
return supportsAlertsConfiguration ||
|
|
75
74
|
supportsScheduledExportsConfiguration ||
|
|
76
75
|
panelConfig?.supportsAttributeHierarchies ||
|
|
77
|
-
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
76
|
+
showImplicitDrillToUrl ? (_jsx(InteractionsSection, { metrics: metrics, areControlsDisabledGetter: this.isControlDisabled, properties: properties, propertiesMeta: propertiesMeta, pushData: pushData, supportsAlertConfiguration: !!supportsAlertsConfiguration, supportsDrillDownConfiguration: panelConfig?.supportsAttributeHierarchies, supportsScheduledExportsConfiguration: !!supportsScheduledExportsConfiguration, InteractionsDetailRenderer: configurationPanelRenderers?.InteractionsDetailRenderer, showImplicitDrillToUrl: showImplicitDrillToUrl,
|
|
78
77
|
// enableDrillToUrlByDefault is actually not a feature flag, but setting
|
|
79
78
|
// for some reason the property is called featureFlags, but contains both feature flags and settings
|
|
80
79
|
enableDrillToUrlByDefault: featureFlags?.enableDrillToUrlByDefault })) : null;
|
|
@@ -33,6 +33,6 @@ export class LineChartBasedConfigurationPanel extends BaseChartConfigurationPane
|
|
|
33
33
|
const shouldContinuousLineControlDisabled = controlsDisabled || isContinuousLineControlDisabled;
|
|
34
34
|
const distinctPointShapesEnabled = properties?.controls?.["distinctPointShapes"]?.enabled;
|
|
35
35
|
const shouldDistinctPointShapesDisabled = controlsDisabled || isDataPointsControlDisabled || !isDistinctPointShapesDisabled;
|
|
36
|
-
return (_jsxs(BubbleHoverTrigger, { showDelay: SHOW_DELAY_DEFAULT, hideDelay: HIDE_DELAY_DEFAULT, children: [_jsxs("div", { children: [this.renderColorSection(), this.getBaseChartAxisSection(axes), this.renderLegendSection(), this.renderInteractionsSection(), _jsxs(ConfigSection, { id: "canvas_section", className: "gd-canvas-section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(DataLabelsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled, defaultValue: dataLabelDefaultValue }), _jsx(DataPointsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled || isDataPointsControlDisabled, showDisabledMessage: isDataPointsControlDisabled }), _jsx(LineShapeControl, { disabled: controlsDisabled || hasNoLineOrAreaMeasures, pushData: pushData, properties: properties }), _jsxs("div", { className: "gd-canvas-section__checkbox-wrapper", children: [_jsx(DistinctPointShapesControl, { pushData: pushData, checked: shouldDistinctPointShapesDisabled ? false : distinctPointShapesEnabled, properties: properties, disabled: shouldDistinctPointShapesDisabled }), _jsx(CheckboxControl, { valuePath: "grid.enabled", labelText: messages["canvasGridLine"].id, properties: properties, checked: gridEnabled, disabled: controlsDisabled, pushData: pushData }), _jsx(ContinuousLineControl, { properties: properties, checked: shouldContinuousLineControlDisabled ? false : continuousLineEnabled, disabled:
|
|
36
|
+
return (_jsxs(BubbleHoverTrigger, { showDelay: SHOW_DELAY_DEFAULT, hideDelay: HIDE_DELAY_DEFAULT, children: [_jsxs("div", { children: [this.renderColorSection(), this.getBaseChartAxisSection(axes), this.renderLegendSection(), this.renderInteractionsSection(), _jsxs(ConfigSection, { id: "canvas_section", className: "gd-canvas-section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(DataLabelsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled, defaultValue: dataLabelDefaultValue }), _jsx(DataPointsControl, { pushData: pushData, properties: properties, isDisabled: controlsDisabled || isDataPointsControlDisabled, showDisabledMessage: isDataPointsControlDisabled }), _jsx(LineShapeControl, { disabled: controlsDisabled || hasNoLineOrAreaMeasures, pushData: pushData, properties: properties }), _jsxs("div", { className: "gd-canvas-section__checkbox-wrapper", children: [_jsx(DistinctPointShapesControl, { pushData: pushData, checked: shouldDistinctPointShapesDisabled ? false : distinctPointShapesEnabled, properties: properties, disabled: shouldDistinctPointShapesDisabled }), _jsx(CheckboxControl, { valuePath: "grid.enabled", labelText: messages["canvasGridLine"].id, properties: properties, checked: gridEnabled, disabled: controlsDisabled, pushData: pushData }), _jsx(ContinuousLineControl, { properties: properties, checked: shouldContinuousLineControlDisabled ? false : continuousLineEnabled, disabled: shouldContinuousLineControlDisabled, pushData: pushData })] })] }), this.renderForecastSection(), this.renderAnomaliesSection(), this.renderCustomTooltipSection(), this.renderAdvancedSection()] }), _jsx(Bubble, { className: this.getBubbleClassNames(), arrowOffsets: { "tc bc": [BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y] }, alignPoints: [{ align: "tc bc" }], children: _jsx(FormattedMessage, { id: "properties.config.not_applicable" }) })] }));
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _omit } from "@gooddata/util";
|
|
3
3
|
import { UnsupportedProperties } from "../configurationControls/UnsupportedProperties.js";
|
|
4
4
|
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
|
|
5
5
|
export class UnsupportedConfigurationPanel extends ConfigurationPanelContent {
|
|
6
6
|
componentDidMount() {
|
|
7
7
|
this.props.pushData?.({
|
|
8
|
-
properties:
|
|
8
|
+
properties: _omit(this.props.properties, "controls"),
|
|
9
9
|
references: null,
|
|
10
10
|
ignoreUndoRedo: true,
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"granularPermissionUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"granularPermissionUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/internal/components/dialogs/userManagementDialogs/Workspace/WorkspaceItem/granularPermissionUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAI7G,eAAO,MAAM,oBAAoB,EAAE,oBAAoD,CAAC;AAExF,eAAO,MAAM,iBAAiB,EAAE,oBAA0D,CAAC;AAW3F;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,wBAClB,mBAAmB,oDAEzC,oBAwBF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,gBAAiB,oBAAoB,KAAG,mBAQ1E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,gBAClB,oBAAoB,oDAElC,oBAeF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBACf,mBAAmB,eACzB,oBAAoB,WACxB,OAAO,KACjB,oBA2BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,eACzB,mBAAmB,+BACF,oBAAoB,YAOpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,eACjB,mBAAmB,+BACF,mBAAmB,+BACnB,oBAAoB,2DAUpD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,gBACtB,oBAAoB,oDAElC,oBAsBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,eAC5B,iBAAiB,cACjB,iBAAiB,2DAchC,CAAC;AAuCF;;GAEG;AACH,eAAO,MAAM,gCAAgC,gBAC5B,oBAAoB,QAC3B,SAAS,KAChB,MAmBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,gBAAiB,oBAAoB,KAAG,OAGlF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEqual } from "@gooddata/util";
|
|
3
3
|
import { workspaceGranularPermissionMessages } from "./locales.js";
|
|
4
4
|
export const workspacePermissions = ["MANAGE", "ANALYZE", "VIEW"];
|
|
5
5
|
const exportSubPermissions = ["EXPORT_PDF", "EXPORT_TABULAR"];
|
|
@@ -157,7 +157,7 @@ export const haveWorkspacePermissionsChanged = (workspace1, workspace2, analyzeI
|
|
|
157
157
|
return false;
|
|
158
158
|
}
|
|
159
159
|
return (workspace1.isHierarchical !== workspace2.isHierarchical ||
|
|
160
|
-
!
|
|
160
|
+
!_isEqual(removeRedundantPermissions(workspace1.permissions, analyzeIncludesManageVisualizations).sort(), removeRedundantPermissions(workspace2.permissions, analyzeIncludesManageVisualizations).sort()));
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
* Returns reordered permissions with MANAGE, ANALYZE, or VIEW at the first position in this order.
|
|
@@ -215,5 +215,5 @@ export const getHumanReadablePermissionsTitle = (permissions, intl) => {
|
|
|
215
215
|
*/
|
|
216
216
|
export const areRedundantPermissionsPresent = (permissions) => {
|
|
217
217
|
const effectivePermissions = removeRedundantPermissions(permissions);
|
|
218
|
-
return !
|
|
218
|
+
return !_isEqual(effectivePermissions.sort(), permissions.sort());
|
|
219
219
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dialogs/userManagementDialogs/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/dialogs/userManagementDialogs/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,EAC7B,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,wBAAwB;IACrC,iBAAiB,EAAE,CAAC,SAAS,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC7D,eAAe,EAAE,iBAAiB,EAAE,CAAC;IACrC,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,8BAA8B;IAC3C,iBAAiB,EAAE,CAAC,SAAS,EAAE,oBAAoB,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC9C,iBAAiB,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAC;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACtC,kBAAkB,EAAE,CAAC,UAAU,EAAE,+BAA+B,KAAK,IAAI,CAAC;IAC1E,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IACvC,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,SAAS,CAAC;CACxD;AAED,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,oBAAoB,CAAC;CAC/B;AAED,MAAM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@@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
export const isWorkspaceItem = (obj) => {
|
|
4
|
-
return !
|
|
4
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
5
5
|
};
|
|
6
6
|
export const isDataSourceItem = (obj) => {
|
|
7
|
-
return !
|
|
7
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
8
8
|
};
|
|
9
9
|
export const isGrantedUserGroup = (obj) => {
|
|
10
|
-
return !
|
|
10
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
11
11
|
};
|
|
12
12
|
export const isUserItem = (obj) => {
|
|
13
|
-
return !
|
|
13
|
+
return !_isEmpty(obj) && obj.id !== undefined;
|
|
14
14
|
};
|
|
15
15
|
export const isSelectErrorOption = (obj) => {
|
|
16
|
-
return !
|
|
16
|
+
return !_isEmpty(obj) && obj.type === "error";
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInsightPagedList.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/insightList/useInsightPagedList.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAA2B,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAKjD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,MAAM,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAA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