@gooddata/sdk-ui-ext 11.68.0-alpha.6 → 11.68.0-alpha.8
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 +172 -137
- 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 -2
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +3 -2
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +3 -2
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +3 -2
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +3 -2
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +3 -2
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +3 -2
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +4 -3
- package/esm/internal/components/configurationControls/LineShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/LineShapeControl.js +3 -2
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +4 -3
- 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 +4 -3
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +3 -2
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -2
- 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 -3
- 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 -2
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -3
- 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 -2
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +3 -2
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +3 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +4 -3
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +3 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +5 -5
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +4 -3
- 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/comboChart/PluggableComboChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -10
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +4 -3
- 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.js +4 -4
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -4
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -4
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +6 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.js +2 -3
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +2 -4
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +4 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +6 -5
- 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 +4 -3
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +6 -6
- 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/utils/bucketConfig.js +4 -4
- package/esm/internal/utils/bucketHelper.js +7 -7
- package/esm/internal/utils/colors.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/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +6 -6
- package/esm/internal/utils/removeUseless.d.ts.map +1 -1
- package/esm/internal/utils/removeUseless.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +4 -3
- 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 +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +5 -4
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +3 -2
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +7 -6
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -5
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +4 -3
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +4 -3
- package/esm/notificationsPanel/Notification/Notification.d.ts.map +1 -1
- package/esm/notificationsPanel/Notification/Notification.js +4 -4
- package/package.json +21 -21
|
@@ -1,10 +1,11 @@
|
|
|
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 {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { FormattedMessage, useIntl } from "react-intl";
|
|
6
6
|
import { useDebounce } from "@gooddata/sdk-ui";
|
|
7
7
|
import { UiIcon, UiLink } from "@gooddata/sdk-ui-kit";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { messages } from "../../../../locales.js";
|
|
9
10
|
import { customTooltipPlacementDropdownItems } from "../../../constants/dropdowns.js";
|
|
10
11
|
import { getTranslatedDropdownItems } from "../../../utils/translations.js";
|
|
@@ -31,7 +32,7 @@ export function CustomTooltipSection({ controlsDisabled = false, properties = {}
|
|
|
31
32
|
const latestContentRef = useRef(content);
|
|
32
33
|
const pushContent = (newContent) => {
|
|
33
34
|
lastPushedContentRef.current = newContent;
|
|
34
|
-
const clonedProperties =
|
|
35
|
+
const clonedProperties = _cloneDeep(properties);
|
|
35
36
|
set(clonedProperties, "controls.customTooltip.content", newContent);
|
|
36
37
|
pushData({ properties: clonedProperties });
|
|
37
38
|
};
|
|
@@ -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":"AAUA,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,9 @@
|
|
|
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 {
|
|
4
|
+
import { set } from "lodash-es";
|
|
5
5
|
import { useIntl } from "react-intl";
|
|
6
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { messages } from "../../../../locales.js";
|
|
7
8
|
import { isTotalSectionEnabled } from "../../../utils/propertiesHelper.js";
|
|
8
9
|
import { getTranslation } from "../../../utils/translations.js";
|
|
@@ -24,7 +25,7 @@ export const TotalSection = memo(function TotalSection({ controlsDisabled, prope
|
|
|
24
25
|
: messages["totalToggleTooltip"].id;
|
|
25
26
|
useEffect(() => {
|
|
26
27
|
if (isTotalEnabled && !totalColumnName) {
|
|
27
|
-
const cloneProperties =
|
|
28
|
+
const cloneProperties = _cloneDeep(properties);
|
|
28
29
|
set(cloneProperties, "controls.total.name", defaultTotalColumnName);
|
|
29
30
|
pushData({ properties: cloneProperties });
|
|
30
31
|
}
|
package/esm/internal/components/pluggableVisualizations/AbstractPluggableVisualization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractPluggableVisualization.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/AbstractPluggableVisualization.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
3
2
|
import { insightHasDataDefined, insightProperties, } from "@gooddata/sdk-model";
|
|
4
3
|
import { DefaultLocale, UnexpectedSdkError, isClusteringNotReceived, isForecastNotReceived, isGoodDataSdkError, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _isEqual } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
6
5
|
import { EmptyAfmSdkError, isEmptyAfm, } from "../../interfaces/Visualization.js";
|
|
7
6
|
import { findDerivedBucketItem, hasDerivedBucketItems, isDerivedBucketItem, } from "../../utils/bucketHelper.js";
|
|
8
7
|
import { createInternalIntl } from "../../utils/internalIntlProvider.js";
|
|
@@ -185,7 +184,7 @@ export class AbstractPluggableVisualization {
|
|
|
185
184
|
if (!referencePoint.buckets) {
|
|
186
185
|
return Promise.resolve(referencePoint);
|
|
187
186
|
}
|
|
188
|
-
const newReferencePoint =
|
|
187
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
189
188
|
newReferencePoint.buckets = referencePoint.buckets.map((bucket) => {
|
|
190
189
|
return {
|
|
191
190
|
...bucket,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { bucketIsEmpty, bucketsItems, insightBucket, insightBuckets, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { shiftArrayRight } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, shiftArrayRight } from "@gooddata/util";
|
|
6
6
|
import { AXIS } from "../../constants/axis.js";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
8
8
|
import { COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, MAX_STACKS_COUNT, } from "../../constants/uiConfig.js";
|
|
@@ -21,7 +21,7 @@ export class PluggableColumnBarCharts extends PluggableBaseChart {
|
|
|
21
21
|
this.supportedPropertiesList = this.getSupportedPropertiesList();
|
|
22
22
|
}
|
|
23
23
|
getUiConfig() {
|
|
24
|
-
return
|
|
24
|
+
return _cloneDeep(COLUMN_BAR_CHART_UICONFIG_WITH_MULTIPLE_DATES);
|
|
25
25
|
}
|
|
26
26
|
getExtendedReferencePoint(referencePoint) {
|
|
27
27
|
// reset the list to retrieve full 'referencePoint.properties.controls'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { bucketsItems, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
8
|
import { AREA_CHART_SUPPORTED_PROPERTIES, OPTIONAL_STACKING_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
9
9
|
import { AREA_UICONFIG_WITH_MULTIPLE_DATES, MAX_CATEGORIES_COUNT, MAX_METRICS_COUNT, } from "../../../constants/uiConfig.js";
|
|
@@ -61,10 +61,10 @@ export class PluggableAreaChart extends PluggableBaseChart {
|
|
|
61
61
|
this.initializeProperties(props.visualizationProperties);
|
|
62
62
|
}
|
|
63
63
|
getUiConfig() {
|
|
64
|
-
return
|
|
64
|
+
return _cloneDeep(AREA_UICONFIG_WITH_MULTIPLE_DATES);
|
|
65
65
|
}
|
|
66
66
|
getExtendedReferencePoint(referencePoint) {
|
|
67
|
-
const clonedReferencePoint =
|
|
67
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
68
68
|
let newReferencePoint = {
|
|
69
69
|
...clonedReferencePoint,
|
|
70
70
|
uiConfig: this.getUiConfig(),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { omitBy, set, tail } from "lodash-es";
|
|
4
4
|
import { insightHasMeasures, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { BaseChart, ColorUtils, updateConfigWithSettings, updateForecastWithSettings, updateOutliersWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
7
|
import { buildTooltipExecutionFromConfig } from "@gooddata/sdk-ui-vis-commons";
|
|
8
|
-
import { _isEmpty } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _compact, _isEmpty } from "@gooddata/util";
|
|
9
9
|
import { messages } from "../../../../locales.js";
|
|
10
10
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
11
11
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -58,10 +58,10 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
58
58
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()].filter(Boolean));
|
|
59
59
|
}
|
|
60
60
|
getUiConfig() {
|
|
61
|
-
return
|
|
61
|
+
return _cloneDeep(DEFAULT_BASE_CHART_UICONFIG);
|
|
62
62
|
}
|
|
63
63
|
getExtendedReferencePoint(referencePoint) {
|
|
64
|
-
const clonedReferencePoint =
|
|
64
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
65
65
|
const uiConfig = this.getUiConfig();
|
|
66
66
|
let newReferencePoint = {
|
|
67
67
|
...clonedReferencePoint,
|
|
@@ -231,7 +231,7 @@ export class PluggableBaseChart extends AbstractPluggableVisualization {
|
|
|
231
231
|
buildVisualizationConfig(options, supportedControls) {
|
|
232
232
|
const { config = {}, customVisualizationConfig = {}, a11yTitle, a11yDescription } = options;
|
|
233
233
|
const colorMapping = supportedControls?.["colorMapping"];
|
|
234
|
-
const validColorMapping =
|
|
234
|
+
const validColorMapping = _compact(colorMapping).map((mapItem) => ({
|
|
235
235
|
predicate: ColorUtils.getColorMappingPredicate(mapItem.id),
|
|
236
236
|
color: mapItem.color,
|
|
237
237
|
}));
|
package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableBubbleChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAO9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAqFlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;CACJ"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
6
7
|
import { BUBBLE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
8
|
import { DEFAULT_BUBBLE_CHART_CONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -50,8 +51,8 @@ export class PluggableBubbleChart extends PluggableBaseChart {
|
|
|
50
51
|
this.initializeProperties(props.visualizationProperties);
|
|
51
52
|
}
|
|
52
53
|
getExtendedReferencePoint(referencePoint) {
|
|
53
|
-
const clonedReferencePoint =
|
|
54
|
-
const uiConfig =
|
|
54
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
55
|
+
const uiConfig = _cloneDeep(DEFAULT_BUBBLE_CHART_CONFIG);
|
|
55
56
|
let newReferencePoint = {
|
|
56
57
|
...clonedReferencePoint,
|
|
57
58
|
uiConfig,
|
package/esm/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableBulletChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/bulletChart/PluggableBulletChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAI1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAiB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAKxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA8BlC;IAED,OAAO,CAAC,mBAAmB;IAYX,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA+BjG;IAED,UAAmB,uBAAuB,CACtC,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAgBf;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAYzE;IAED,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,0BAA0B;IAiDlB,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAiBnF;CACJ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
3
|
import { bucketIsEmpty, insightBucket, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes, getIntersectionPartAfter, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
6
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
7
7
|
import { BULLET_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { BULLET_CHART_CONFIG_MULTIPLE_DATES } from "../../../constants/uiConfig.js";
|
|
@@ -55,10 +55,10 @@ export class PluggableBulletChart extends PluggableBaseChart {
|
|
|
55
55
|
this.initializeProperties(props.visualizationProperties);
|
|
56
56
|
}
|
|
57
57
|
getUiConfig() {
|
|
58
|
-
return
|
|
58
|
+
return _cloneDeep(BULLET_CHART_CONFIG_MULTIPLE_DATES);
|
|
59
59
|
}
|
|
60
60
|
getExtendedReferencePoint(referencePoint) {
|
|
61
|
-
const clonedReferencePoint =
|
|
61
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
62
62
|
let newReferencePoint = {
|
|
63
63
|
...clonedReferencePoint,
|
|
64
64
|
uiConfig: this.getUiConfig(),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { bucketsIsEmpty, insightBucket, insightBuckets, newAttributeSort, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { isAreaChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
9
9
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
10
10
|
import { PROPERTY_CONTROLS_DUAL_AXIS } from "../../../constants/properties.js";
|
|
@@ -69,7 +69,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
69
69
|
return COMBO_CHART_SUPPORTED_PROPERTIES[this.axis] || [];
|
|
70
70
|
}
|
|
71
71
|
getUiConfig() {
|
|
72
|
-
const config =
|
|
72
|
+
const config = _cloneDeep({
|
|
73
73
|
...COMBO_CHART_UICONFIG,
|
|
74
74
|
optionalStacking: {
|
|
75
75
|
supported: true,
|
|
@@ -80,7 +80,7 @@ export class PluggableComboChart extends PluggableBaseChart {
|
|
|
80
80
|
return config;
|
|
81
81
|
}
|
|
82
82
|
getExtendedReferencePoint(referencePoint) {
|
|
83
|
-
const clonedReferencePoint =
|
|
83
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
84
84
|
const properties = this.configureChartTypes(clonedReferencePoint);
|
|
85
85
|
this.primaryChartType = properties?.controls?.["primaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
86
86
|
this.secondaryChartType = properties?.controls?.["secondaryChartType"] ?? VisualizationTypes.COLUMN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableComboChartDeprecated.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.tsx"],"names":[],"mappings":"AASA,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EACrB,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,qBAAa,6BAA8B,SAAQ,kBAAkB;IACjE,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,UAAmB,wBAAwB,IAAI,IAAI,CAgBlD;CACJ"}
|
package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set, without } from "lodash-es";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
6
7
|
import { COMBO_CHART_UICONFIG_DEPRECATED } from "../../../constants/uiConfig.js";
|
|
7
8
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -18,10 +19,10 @@ export class PluggableComboChartDeprecated extends PluggableBaseChart {
|
|
|
18
19
|
this.initializeProperties(props.visualizationProperties);
|
|
19
20
|
}
|
|
20
21
|
getExtendedReferencePoint(referencePoint) {
|
|
21
|
-
const clonedReferencePoint =
|
|
22
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
22
23
|
let newReferencePoint = {
|
|
23
24
|
...clonedReferencePoint,
|
|
24
|
-
uiConfig:
|
|
25
|
+
uiConfig: _cloneDeep(COMBO_CHART_UICONFIG_DEPRECATED),
|
|
25
26
|
};
|
|
26
27
|
const buckets = clonedReferencePoint?.buckets ?? [];
|
|
27
28
|
const attributes = getAllAttributeItemsWithPreference(buckets, [
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableGeoAreaChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAiB7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAQ9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAiCxE;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,kBAAkB;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAC7C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA4B;IACxD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAE3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAID,OAAO,CAAC,wBAAwB;IAMhC;;OAEG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,WAAW,IAAI,SAAS,CAEvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;OAEG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CAkBzB;IAED;;OAEG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED;;;;;;;OAOG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAqBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAqBtB;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAgDjG;IAED;;OAEG;IACH,OAAO,CAAC,+BAA+B;IAevC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,OAAO,CAAC,wBAAwB;IAiDhC,OAAO,CAAC,8BAA8B;IAItC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightTitle, } from "@gooddata/sdk-model";
|
|
5
5
|
import { GeoAreaMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { isGeoLayerPushpin } from "@gooddata/sdk-ui-geo";
|
|
7
7
|
import { AREA_LAYER_ID, GeoChartInternal, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
8
9
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
10
|
import { isGeoChartsViewportConfigEnabled } from "../../../constants/featureFlags.js";
|
|
10
11
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -67,7 +68,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
67
68
|
// The generic sanitizeFilters() (in PluggableBaseChart) does not know about additional layers and can
|
|
68
69
|
// incorrectly drop MVFs that are meant for non-root layers (e.g., pushpin layer MVFs).
|
|
69
70
|
// We keep the original filter bucket intact here and rely on per-layer execution sanitization instead.
|
|
70
|
-
const originalFilters =
|
|
71
|
+
const originalFilters = _cloneDeep(referencePoint.filters);
|
|
71
72
|
return super
|
|
72
73
|
.getExtendedReferencePoint(referencePoint)
|
|
73
74
|
.then((extendedReferencePoint) => {
|
|
@@ -80,7 +81,7 @@ export class PluggableGeoAreaChart extends PluggableBaseChart {
|
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
getUiConfig() {
|
|
83
|
-
return
|
|
84
|
+
return _cloneDeep(GEO_AREA_CHART_UICONFIG);
|
|
84
85
|
}
|
|
85
86
|
getSupportedPropertiesList() {
|
|
86
87
|
return GEOAREA_SUPPORTED_PROPERTIES;
|
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, bucketAttribute, idRef, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, isUriRef, newAttribute, newAttributeSort, newBucket, uriRef, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { CoreGeoChart, getGeoChartDimensions, } from "@gooddata/sdk-ui-geo";
|
|
7
|
-
import { _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { ATTRIBUTE, BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
9
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
10
10
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -87,7 +87,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
getUiConfig() {
|
|
90
|
-
return
|
|
90
|
+
return _cloneDeep(GEO_PUSHPIN_CHART_UICONFIG);
|
|
91
91
|
}
|
|
92
92
|
getExecution(options, insight, executionFactory) {
|
|
93
93
|
const { executionConfig } = options;
|
|
@@ -283,7 +283,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
283
283
|
if (!locationItem) {
|
|
284
284
|
return referencePoint;
|
|
285
285
|
}
|
|
286
|
-
const referencePointConfigured =
|
|
286
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
287
287
|
const visualizationProperties = this.visualizationProperties || {};
|
|
288
288
|
const { controls = {} } = visualizationProperties;
|
|
289
289
|
const hasSizeMeasure = getItemsCount(buckets, BucketNames.SIZE) > 0;
|
package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightSorts, insightTitle, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, GeoLocationMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { isGeoLayerPushpin, } from "@gooddata/sdk-ui-geo";
|
|
7
7
|
import { GeoChartInternal, PUSHPIN_LAYER_ID, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
-
import { _isEqual } from "@gooddata/util";
|
|
8
|
+
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
9
9
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
10
10
|
import { isGeoChartsViewportConfigEnabled, isGeoPushpinIconEnabled, } from "../../../constants/featureFlags.js";
|
|
11
11
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -85,7 +85,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
85
85
|
// The generic sanitizeFilters() (in PluggableBaseChart) does not know about additional layers and can
|
|
86
86
|
// incorrectly drop MVFs that are meant for non-root layers. We keep the original filter bucket intact
|
|
87
87
|
// and rely on per-layer execution sanitization instead.
|
|
88
|
-
const originalFilters =
|
|
88
|
+
const originalFilters = _cloneDeep(referencePoint.filters);
|
|
89
89
|
return super
|
|
90
90
|
.getExtendedReferencePoint(referencePoint)
|
|
91
91
|
.then((extendedReferencePoint) => {
|
|
@@ -110,7 +110,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
getUiConfig() {
|
|
113
|
-
const config =
|
|
113
|
+
const config = _cloneDeep(GEO_PUSHPIN_CHART_UICONFIG);
|
|
114
114
|
if (!isGeoPushpinIconEnabled(this.featureFlags)) {
|
|
115
115
|
delete config.buckets[BucketNames.MEASURES];
|
|
116
116
|
}
|
|
@@ -147,7 +147,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
147
147
|
if (!locationItem) {
|
|
148
148
|
return referencePoint;
|
|
149
149
|
}
|
|
150
|
-
const referencePointConfigured =
|
|
150
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
151
151
|
const controls = referencePointConfigured.properties?.controls ?? {};
|
|
152
152
|
const locationProperties = getLocationProperties(locationItem);
|
|
153
153
|
// Don't add groupNearbyPoints if it wasn't already in the properties.
|
|
@@ -462,7 +462,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
462
462
|
(this.environment !== ANALYTICAL_ENVIRONMENT || this.cachedHasGeoIconLabel));
|
|
463
463
|
}
|
|
464
464
|
getResolvedReferencePointWithFallback(referencePoint) {
|
|
465
|
-
return set(
|
|
465
|
+
return set(_cloneDeep(referencePoint), "properties", getGeoVisualizationPropertiesWithFallback(this.visualizationProperties ?? {}, referencePoint.properties?.controls ?? {}));
|
|
466
466
|
}
|
|
467
467
|
syncedHandlers = createSyncedViewportHandlers(this.liveMapView, {
|
|
468
468
|
getEnvironment: () => this.environment,
|
|
@@ -489,7 +489,7 @@ function sanitizeGeoPointProperties(referencePoint) {
|
|
|
489
489
|
}
|
|
490
490
|
const shapeType = controls["points"]?.shapeType ?? "circle";
|
|
491
491
|
if (shapeType !== "oneIcon" && controls["points"]?.icon !== undefined) {
|
|
492
|
-
const updated =
|
|
492
|
+
const updated = _cloneDeep(referencePoint);
|
|
493
493
|
set(updated, "properties.controls.points.icon", undefined);
|
|
494
494
|
return updated;
|
|
495
495
|
}
|
|
@@ -509,20 +509,20 @@ function disableClusteringInVisualizationPropertiesWhenNotEditable(visualization
|
|
|
509
509
|
if (isPushpinClusteringEditable(insight, shapeType)) {
|
|
510
510
|
return visualizationProperties;
|
|
511
511
|
}
|
|
512
|
-
return set(
|
|
512
|
+
return set(_cloneDeep(visualizationProperties), "controls.points.groupNearbyPoints", false);
|
|
513
513
|
}
|
|
514
514
|
function getPushpinShapeType(referencePoint) {
|
|
515
515
|
return referencePoint.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
516
516
|
}
|
|
517
517
|
function resetIconByValueShapeType(referencePoint) {
|
|
518
518
|
if (getPushpinShapeType(referencePoint) === "iconByValue") {
|
|
519
|
-
return set(
|
|
519
|
+
return set(_cloneDeep(referencePoint), "properties.controls.points.shapeType", "circle");
|
|
520
520
|
}
|
|
521
521
|
return referencePoint;
|
|
522
522
|
}
|
|
523
523
|
function resetIconByValueInVisualizationProperties(properties, hasGeoIconLabel) {
|
|
524
524
|
if (properties?.controls?.["points"]?.shapeType === "iconByValue" && !hasGeoIconLabel) {
|
|
525
|
-
return set(
|
|
525
|
+
return set(_cloneDeep(properties), "controls.points.shapeType", "circle");
|
|
526
526
|
}
|
|
527
527
|
return properties;
|
|
528
528
|
}
|
package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geoPropertySanitization.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAEpF;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CACzC,cAAc,EAAE,uBAAuB,GACxC,uBAAuB,CAgCzB"}
|
package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
/**
|
|
5
6
|
* Strips viewport-related properties that are incompatible with the current viewport mode.
|
|
6
7
|
*
|
|
@@ -23,7 +24,7 @@ export function sanitizeGeoViewportProperties(referencePoint) {
|
|
|
23
24
|
if (!hasBounds && !hasCenter && !hasZoom) {
|
|
24
25
|
return referencePoint;
|
|
25
26
|
}
|
|
26
|
-
const updated =
|
|
27
|
+
const updated = _cloneDeep(referencePoint);
|
|
27
28
|
set(updated, "properties.controls.bounds", undefined);
|
|
28
29
|
set(updated, "properties.controls.center", undefined);
|
|
29
30
|
set(updated, "properties.controls.zoom", undefined);
|
|
@@ -31,7 +32,7 @@ export function sanitizeGeoViewportProperties(referencePoint) {
|
|
|
31
32
|
}
|
|
32
33
|
if (viewportArea === "custom" && hasBounds && (hasCenter || hasZoom)) {
|
|
33
34
|
// Custom viewport with bounds — strip redundant center/zoom
|
|
34
|
-
const updated =
|
|
35
|
+
const updated = _cloneDeep(referencePoint);
|
|
35
36
|
set(updated, "properties.controls.center", undefined);
|
|
36
37
|
set(updated, "properties.controls.zoom", undefined);
|
|
37
38
|
return updated;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/headline/PluggableHeadline.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableHeadline.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/headline/PluggableHeadline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACH,KAAK,kBAAkB,EAc1B,MAAM,qBAAqB,CAAC;AAY7B,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EAIjB,MAAM,sCAAsC,CAAC;AAwB9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAItF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,iBAAkB,SAAQ,8BAA8B;IACjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,6BAA6B,CAAS;IAE9C,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,QAAQ,CAAC,eAAe,CAAC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,CA6DlC;IAEM,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAStC;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAazE;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0CN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA2BxF;IAED,UAAmB,uBAAuB,CACtC,cAAc,EAAE,eAAe,EAC/B,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAqBf;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CAqBN;IAED,OAAO,CAAC,iCAAiC;IAazC,OAAO,CAAC,+BAA+B;CAY1C"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
2
|
import { MeasureGroupIdentifier, bucketIsEmpty, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, insightId, insightProperties, insightSorts, isInsight, isSeparators, newDimension, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreHeadline, createHeadlineProvider } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
6
|
import { METRIC } from "../../../constants/bucket.js";
|
|
8
7
|
import { HEADLINE_DEFAULT_CONTROL_PROPERTIES, HEADLINE_DEFAULT_MIGRATION_CONTROL_PROPERTIES, HEADLINE_SUPPORTED_PROPERTIES, } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { InvalidBucketsSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -57,7 +56,7 @@ export class PluggableHeadline extends AbstractPluggableVisualization {
|
|
|
57
56
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
58
57
|
}
|
|
59
58
|
getExtendedReferencePoint(referencePoint) {
|
|
60
|
-
const referencePointCloned =
|
|
59
|
+
const referencePointCloned = _cloneDeep(referencePoint);
|
|
61
60
|
let newReferencePoint = {
|
|
62
61
|
...referencePointCloned,
|
|
63
62
|
uiConfig: getDefaultHeadlineUiConfig(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import { cloneDeep } from "lodash-es";
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
4
|
import { BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
5
5
|
import { findDerivedBucketItems, findMasterBucketItem, findMasterBucketItems, isDerivedBucketItem, } from "../../../utils/bucketHelper.js";
|
|
6
6
|
export function findSecondMasterMeasure(allMeasures) {
|
|
@@ -41,7 +41,7 @@ export function tryToMapForeignBuckets(extendedReferencePoint) {
|
|
|
41
41
|
return allMeasuresCompatible ? newReferencePoint : null;
|
|
42
42
|
}
|
|
43
43
|
export function setHeadlineRefPointBuckets(extendedReferencePoint, primaryMeasure, secondaryMeasure) {
|
|
44
|
-
const newReferencePoint =
|
|
44
|
+
const newReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
45
45
|
newReferencePoint[BUCKETS] = [
|
|
46
46
|
{
|
|
47
47
|
localIdentifier: BucketNames.MEASURES,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set, tail } from "lodash-es";
|
|
4
4
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes, isDrillIntersectionAttributeItem, } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
8
|
import { HEATMAP_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
9
9
|
import { DEFAULT_HEATMAP_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -55,8 +55,8 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
55
55
|
this.initializeProperties(props.visualizationProperties);
|
|
56
56
|
}
|
|
57
57
|
getExtendedReferencePoint(referencePoint) {
|
|
58
|
-
const clonedReferencePoint =
|
|
59
|
-
const uiConfig =
|
|
58
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
59
|
+
const uiConfig = _cloneDeep(DEFAULT_HEATMAP_UICONFIG);
|
|
60
60
|
let newReferencePoint = {
|
|
61
61
|
...clonedReferencePoint,
|
|
62
62
|
uiConfig,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
7
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
8
8
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
9
9
|
import { LINE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -62,10 +62,10 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
62
62
|
return LINE_CHART_SUPPORTED_PROPERTIES[this.axis];
|
|
63
63
|
}
|
|
64
64
|
getUiConfig() {
|
|
65
|
-
return
|
|
65
|
+
return _cloneDeep(LINE_UICONFIG_WITH_MULTIPLE_DATES);
|
|
66
66
|
}
|
|
67
67
|
getExtendedReferencePoint(referencePoint) {
|
|
68
|
-
const clonedReferencePoint =
|
|
68
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
69
69
|
let newReferencePoint = {
|
|
70
70
|
...clonedReferencePoint,
|
|
71
71
|
uiConfig: this.getUiConfig(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { bucketIsEmpty, insightBucket, insightSorts, isMeasureSort, newAttributeSort, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _isEmpty } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
6
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
7
7
|
import { MEKKO_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
8
|
import { DEFAULT_MEKKO_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -81,8 +81,8 @@ export class PluggableMekko extends PluggableBaseChart {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
getExtendedReferencePoint(referencePoint) {
|
|
84
|
-
const clonedReferencePoint =
|
|
85
|
-
const uiConfig =
|
|
84
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
85
|
+
const uiConfig = _cloneDeep(DEFAULT_MEKKO_UICONFIG);
|
|
86
86
|
let newReferencePoint = {
|
|
87
87
|
...clonedReferencePoint,
|
|
88
88
|
uiConfig,
|