@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,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 { newMeasureSort } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
6
|
import { TOP } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _isEmpty } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
8
8
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
9
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
10
10
|
import { PIECHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -59,8 +59,8 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
59
59
|
this.initializeProperties(props.visualizationProperties);
|
|
60
60
|
}
|
|
61
61
|
getExtendedReferencePoint(referencePoint) {
|
|
62
|
-
const clonedReferencePoint =
|
|
63
|
-
const uiConfig =
|
|
62
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
63
|
+
const uiConfig = _cloneDeep(DEFAULT_PIE_UICONFIG);
|
|
64
64
|
let newReferencePoint = {
|
|
65
65
|
...clonedReferencePoint,
|
|
66
66
|
uiConfig,
|
|
@@ -87,10 +87,10 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
87
87
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, DEFAULT_PIE_ONLY_MAX_METRICS_COUNT, true);
|
|
88
88
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
89
89
|
if (limitedMeasures.length > 1) {
|
|
90
|
-
set(newReferencePoint, UICONFIG,
|
|
90
|
+
set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_MULTIPLE_METRICS));
|
|
91
91
|
}
|
|
92
92
|
else {
|
|
93
|
-
set(newReferencePoint, UICONFIG,
|
|
93
|
+
set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_ONE_METRIC));
|
|
94
94
|
}
|
|
95
95
|
set(newReferencePoint, BUCKETS, [
|
|
96
96
|
{
|
package/esm/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePivotTable.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePivotTable.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/PluggablePivotTable.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9F,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAWjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,wBAAwB,EAAsB,MAAM,kBAAkB,CAAC;AAClG,OAAO,EAEH,KAAK,eAAe,EAIpB,KAAK,iBAAiB,EAGzB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAEH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAGhC,MAAM,sCAAsC,CAAC;AA0B9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAwBtF,eAAO,MAAM,mBAAmB,YAAa,YAAY,EAAE,KAAG,WAAW,EAMxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,YAAa,YAAY,EAAE,KAAG,WAAW,EAerE,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,mBAAoB,SAAQ,8BAA8B;IACnE,OAAO,CAAC,WAAW,CAAuC;IAC1D,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IACrC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,YAAY,KAAK,EAAE,aAAa,EAa/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,eAAe,EAC/B,sBAAsB,CAAC,EAAE,eAAe,GACzC,OAAO,CAAC,uBAAuB,CAAC,CAqIlC;IAEe,8BAA8B,CAC1C,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAWV;IAEM,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAUtC;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAWtF;IAED,OAAO,CAAC,yBAAyB,CAc/B;IAEF,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CASN;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA0FN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAuCxF;IAED,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,CAAC,EAAE,GAAG,GAAG,UAAU,EAAE,CAElG;IAED,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,oBAAoB;IA6B5B,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,cAAc;CAmBzB;AAMD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,wBAAwB,EACrC,QAAQ,EAAE,SAAS,EACnB,YAAY,EAAE,oBAAoB,EAClC,YAAY,CAAC,EAAE,eAAe,EAAE,GACjC,iBAAiB,CAsDnB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { defaultImport } from "default-import";
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
3
|
import Measure from "react-measure";
|
|
5
4
|
import { bucketAttribute, insightBucket, insightBuckets, insightHasDataDefined, insightProperties, insightSanitize, insightSorts, newAttributeSort, } from "@gooddata/sdk-model";
|
|
6
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
7
6
|
import { CorePivotTable, pivotTableMenuForCapabilities, } from "@gooddata/sdk-ui-pivot";
|
|
8
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
9
8
|
import { ATTRIBUTE, DATE, METRIC } from "../../../constants/bucket.js";
|
|
10
9
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
11
10
|
import { PIVOT_TABLE_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -95,7 +94,7 @@ export class PluggablePivotTable extends AbstractPluggableVisualization {
|
|
|
95
94
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
96
95
|
}
|
|
97
96
|
getExtendedReferencePoint(referencePoint, previousReferencePoint) {
|
|
98
|
-
const clonedReferencePoint =
|
|
97
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
99
98
|
const newReferencePoint = {
|
|
100
99
|
...clonedReferencePoint,
|
|
101
100
|
uiConfig: getPivotTableDefaultUiConfig(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePivotTableNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePivotTableNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,iBAAiB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,SAAS,EAcjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIH,KAAK,wBAAwB,EAEhC,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAIH,KAAK,oBAAoB,EAE5B,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAGhC,MAAM,sCAAsC,CAAC;AAqC9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAiBtF,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,wBAAwB,EACrC,QAAQ,EAAE,SAAS,GACpB,oBAAoB,CAmCtB;AAED;;;;;GAKG;AACH,qBAAa,uBAAwB,SAAQ,8BAA8B;IACvE,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAY;IACrC,OAAO,CAAC,mBAAmB,CAAuB;IAElD,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,WAAW,CAAuC;IAE1D,OAAO,CAAC,YAAY,CAAqB;IAEzC,YAAY,KAAK,EAAE,aAAa,EAqB/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,CAC5B,cAAc,EAAE,eAAe,EAC/B,sBAAsB,CAAC,EAAE,eAAe,GACzC,OAAO,CAAC,uBAAuB,CAAC,CA8GlC;IAEe,8BAA8B,CAC1C,mBAAmB,EAAE,QAAQ,EAC7B,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAWV;IAED,OAAO,CAAC,kBAAkB;IAInB,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DActC;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CActF;IAKD,OAAO,CAAC,cAAc,CAIpB;IAIF,OAAO,CAAC,oBAAoB,CAe1B;IAEF,OAAO,CAAC,yBAAyB,CAe/B;IAEF,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,qBAAqB,EAAE,GAAG,GAC3B,IAAI,CASN;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAOzE;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAgGN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BxF;IAED,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,CAAC,EAAE,GAAG,GAAG,UAAU,EAAE,CAElG;IAED,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,oBAAoB;IA8B5B,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,qBAAqB;IAqB7B,OAAO,CAAC,cAAc;CA8CzB"}
|
package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
2
|
import { bucketAttributes, bucketMeasures, bucketTotals, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, insightProperties, insightSanitize, insightSorts, resolveWeekStart, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, VisualizationTypes, } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CorePivotTableNext, } from "@gooddata/sdk-ui-pivot/next";
|
|
7
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
8
6
|
import { METRIC } from "../../../constants/bucket.js";
|
|
9
7
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
10
8
|
import { PIVOT_TABLE_NEXT_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -99,7 +97,7 @@ export class PluggablePivotTableNext extends AbstractPluggableVisualization {
|
|
|
99
97
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
100
98
|
}
|
|
101
99
|
getExtendedReferencePoint(referencePoint, previousReferencePoint) {
|
|
102
|
-
const clonedReferencePoint =
|
|
100
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
103
101
|
const newReferencePoint = {
|
|
104
102
|
...clonedReferencePoint,
|
|
105
103
|
uiConfig: getPivotTableNextDefaultUiConfig(),
|
package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableRadarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableRadarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAO/F,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAGH,KAAK,iBAAiB,EAEtB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAkB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,mBAAoB,SAAQ,kBAAkB;IACvD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAoBlC;IAEe,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,gBAAgB,EAAE,iBAAiB,EACnC,0BAA0B,EAAE,OAAO,GACpC,QAAQ,CAQV;IAEe,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAkBnF;IAED,OAAO,CAAC,iBAAiB;IAKzB,UAAmB,gBAAgB,CAAC,iBAAiB,EAAE,uBAAuB,GAAG,IAAI,CAEpF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BjG;IAED,OAAO,CAAC,iCAAiC;IAiDzC,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,0BAA0B;IAsBlC,OAAO,CAAC,cAAc;CAUzB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 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 { _cloneDeep } from "@gooddata/util";
|
|
6
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
7
8
|
import { RADAR_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
9
|
import { MAX_METRICS_COUNT, RADAR_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -54,10 +55,10 @@ export class PluggableRadarChart extends PluggableBaseChart {
|
|
|
54
55
|
this.initializeProperties(props.visualizationProperties);
|
|
55
56
|
}
|
|
56
57
|
getUiConfig() {
|
|
57
|
-
return
|
|
58
|
+
return _cloneDeep(RADAR_UICONFIG);
|
|
58
59
|
}
|
|
59
60
|
getExtendedReferencePoint(referencePoint) {
|
|
60
|
-
const clonedReferencePoint =
|
|
61
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
61
62
|
let newReferencePoint = {
|
|
62
63
|
...clonedReferencePoint,
|
|
63
64
|
uiConfig: this.getUiConfig(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAIH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAiC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAIH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAiC,MAAM,kBAAkB,CAAC;AAe9F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAKhC,MAAM,sCAAsC,CAAC;AAU9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,iBAAkB,SAAQ,8BAA8B;IACjE,OAAO,CAAC,WAAW,CAAuC;IAC1D,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IACpC,SAAS,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAElD,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,mBACZ,eAAe,KAChC,OAAO,CAAC,uBAAuB,CAAC,CAYjC;IAEK,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAqBtC;IAEe,kBAAkB,CAC9B,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,GACpC,WAAW,EAAE,GAAG,SAAS,CA6B3B;IAED,OAAO,CAAC,qBAAqB;IAK7B,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,cAAc;IAKtB,UAAmB,uBAAuB,CACtC,eAAe,EAAE,eAAe,EAChC,MAAM,EAAE,YAAY,EACpB,qBAAqB,EAAE,WAAW,EAAE,GACrC,WAAW,EAAE,CAsBf;IAED,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAWzE;IAED,SAAS,CAAC,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAWtF;IAED,OAAO,CAAC,eAAe,CAcrB;IAEF,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,iBAAiB;IAYzB,SAAS,CAAC,2BAA2B,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAe3D;IAED,SAAS,CAAC,cAAc,SAAU,SAAS,KAAG,IAAI,CAMhD;IAEF,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CA8BN;IAED,SAAS,CAAC,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CAwBxF;CACJ"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2024-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { omit } from "lodash-es";
|
|
4
4
|
import { areObjRefsEqual, insightBucket, insightBuckets, insightProperties, insightSetBuckets, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
6
|
import { ColorUtils, CoreRepeater, constructRepeaterBuckets, constructRepeaterDimensions, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
|
+
import { _cloneDeep, _compact } from "@gooddata/util";
|
|
7
8
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
8
9
|
import { REPEATER_SUPPORTER_PROPERTIES_LIST } from "../../../constants/supportedProperties.js";
|
|
9
10
|
import { InvalidBucketsSdkError, InvalidColumnsSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -62,7 +63,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
62
63
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
63
64
|
}
|
|
64
65
|
getExtendedReferencePoint = async (referencePoint) => {
|
|
65
|
-
const referencePointCloned =
|
|
66
|
+
const referencePointCloned = _cloneDeep(referencePoint);
|
|
66
67
|
const uiConfig = getDefaultRepeaterUiConfig();
|
|
67
68
|
let newReferencePoint = {
|
|
68
69
|
...referencePointCloned,
|
|
@@ -88,8 +89,8 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
88
89
|
.withDateFormat(dateFormat);
|
|
89
90
|
}
|
|
90
91
|
getBucketsToUpdate(currentReferencePoint, nextReferencePoint) {
|
|
91
|
-
const currentRefencePointClone =
|
|
92
|
-
const nextReferencePointClone =
|
|
92
|
+
const currentRefencePointClone = _cloneDeep(currentReferencePoint);
|
|
93
|
+
const nextReferencePointClone = _cloneDeep(nextReferencePoint);
|
|
93
94
|
const currentBuckets = currentRefencePointClone?.buckets ?? [];
|
|
94
95
|
const currentRowAttribute = getMainRowAttribute(currentBuckets);
|
|
95
96
|
const nextBuckets = nextReferencePointClone?.buckets ?? [];
|
|
@@ -192,7 +193,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
192
193
|
return columnSizing;
|
|
193
194
|
}
|
|
194
195
|
buildColorMapping(colorMapping) {
|
|
195
|
-
const validColorMapping =
|
|
196
|
+
const validColorMapping = _compact(colorMapping).map((mapItem) => ({
|
|
196
197
|
predicate: ColorUtils.getColorMappingPredicate(mapItem.id),
|
|
197
198
|
color: mapItem.color,
|
|
198
199
|
}));
|
package/esm/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableSankeyChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableSankeyChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/sankeyChart/PluggableSankeyChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAM9D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,MAAM,EAAE,aAAa,EAGhC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAgBlC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BjG;CACJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { cloneDeep } from "lodash-es";
|
|
4
2
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
4
|
import { SANKEY_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
6
5
|
import { DEFAULT_SANKEY_UI_CONFIG } from "../../../constants/uiConfig.js";
|
|
7
6
|
import { configureOverTimeComparison, configurePercent } from "../../../utils/bucketConfig.js";
|
|
@@ -42,9 +41,9 @@ export class PluggableSankeyChart extends PluggableBaseChart {
|
|
|
42
41
|
this.type = VisualizationTypes.SANKEY;
|
|
43
42
|
}
|
|
44
43
|
getExtendedReferencePoint(referencePoint) {
|
|
45
|
-
const uiConfig =
|
|
44
|
+
const uiConfig = _cloneDeep(DEFAULT_SANKEY_UI_CONFIG);
|
|
46
45
|
let extendedReferencePoint = {
|
|
47
|
-
...
|
|
46
|
+
..._cloneDeep(referencePoint),
|
|
48
47
|
uiConfig,
|
|
49
48
|
};
|
|
50
49
|
extendedReferencePoint = removeAllArithmeticMeasuresFromDerived(extendedReferencePoint);
|
package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableScatterPlot.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"PluggableScatterPlot.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.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;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,oBAAqB,SAAQ,kBAAkB;IACxD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2BlC;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA4BjG;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 } from "../../../constants/bucket.js";
|
|
6
7
|
import { SCATTERPLOT_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
7
8
|
import { DEFAULT_SCATTERPLOT_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -51,8 +52,8 @@ export class PluggableScatterPlot extends PluggableBaseChart {
|
|
|
51
52
|
this.initializeProperties(props.visualizationProperties);
|
|
52
53
|
}
|
|
53
54
|
getExtendedReferencePoint(referencePoint) {
|
|
54
|
-
const clonedReferencePoint =
|
|
55
|
-
const uiConfig =
|
|
55
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
56
|
+
const uiConfig = _cloneDeep(DEFAULT_SCATTERPLOT_UICONFIG);
|
|
56
57
|
let newReferencePoint = {
|
|
57
58
|
...clonedReferencePoint,
|
|
58
59
|
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, tail } from "lodash-es";
|
|
4
4
|
import { bucketsAttributes, insightBuckets, } 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 { TREEMAP_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
9
9
|
import { MAX_METRICS_COUNT, getTreemapUiConfig } from "../../../constants/uiConfig.js";
|
|
@@ -100,7 +100,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
100
100
|
return getTreemapUiConfig(nonStackAttributes.length > 0, measures.length > 1);
|
|
101
101
|
}
|
|
102
102
|
getExtendedReferencePoint(referencePoint) {
|
|
103
|
-
const clonedReferencePoint =
|
|
103
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
104
104
|
let newReferencePoint = {
|
|
105
105
|
...clonedReferencePoint,
|
|
106
106
|
uiConfig: this.getTreemapUIConfig(referencePoint),
|
package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import {
|
|
3
|
+
import { set } from "lodash-es";
|
|
4
4
|
import { newMeasureSort } 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 { BUCKETS } from "../../../constants/bucket.js";
|
|
8
8
|
import { WATERFALL_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
9
9
|
import { DEFAULT_WATERFALL_UICONFIG, MAX_METRICS_COUNT, UICONFIG, WATERFALL_UICONFIG_WITH_MULTIPLE_METRICS, WATERFALL_UICONFIG_WITH_ONE_METRIC, } from "../../../constants/uiConfig.js";
|
|
@@ -77,10 +77,10 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
getUiConfig() {
|
|
80
|
-
return
|
|
80
|
+
return _cloneDeep(DEFAULT_WATERFALL_UICONFIG);
|
|
81
81
|
}
|
|
82
82
|
getExtendedReferencePoint(referencePoint) {
|
|
83
|
-
const clonedReferencePoint =
|
|
83
|
+
const clonedReferencePoint = _cloneDeep(referencePoint);
|
|
84
84
|
let newReferencePoint = {
|
|
85
85
|
...clonedReferencePoint,
|
|
86
86
|
uiConfig: this.getUiConfig(),
|
|
@@ -107,10 +107,10 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
107
107
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, MAX_METRICS_COUNT, true);
|
|
108
108
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
109
109
|
if (limitedMeasures.length > 1) {
|
|
110
|
-
set(newReferencePoint, UICONFIG,
|
|
110
|
+
set(newReferencePoint, UICONFIG, _cloneDeep(WATERFALL_UICONFIG_WITH_MULTIPLE_METRICS));
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
-
set(newReferencePoint, UICONFIG,
|
|
113
|
+
set(newReferencePoint, UICONFIG, _cloneDeep(WATERFALL_UICONFIG_WITH_ONE_METRIC));
|
|
114
114
|
}
|
|
115
115
|
set(newReferencePoint, BUCKETS, [
|
|
116
116
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableXirr.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/PluggableXirr.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableXirr.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/xirr/PluggableXirr.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAEH,KAAK,kBAAkB,EAM1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI/D,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAG7B,MAAM,sCAAsC,CAAC;AAiB9C,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAItF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,aAAc,SAAQ,8BAA8B;IAC7D,OAAO,CAAC,QAAQ,CAAC,CAAY;IAC7B,OAAO,CAAC,SAAS,CAAiB;IAClC,OAAO,CAAC,UAAU,CAAkB;IAEpC,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEM,OAAO,IAAI,IAAI,CAErB;IAEM,yBAAyB,mBACZ,QAAQ,CAAC,eAAe,CAAC,KAC1C,OAAO,CAAC,uBAAuB,CAAC,CAwBjC;IAEK,YAAY,CACf,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DAQtC;IAED,SAAS,CAAC,mBAAmB,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAsBN;IAED,SAAS,CAAC,wBAAwB,IAAI,IAAI,CAezC;IAED,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,yBAAyB;IAkBjC,OAAO,CAAC,aAAa,CAAiB;IAEtC,UAAmB,QAAQ,SAAU,SAAS,YAAY,qBAAqB,KAAG,IAAI,CAIpF;CACL"}
|
|
@@ -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, bucketAttributes, insightBucket, newDimension, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreXirr, updateConfigWithSettings } from "@gooddata/sdk-ui-charts";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
7
6
|
import { removeAllArithmeticMeasuresFromDerived, removeAllDerivedMeasures, sanitizeFilters, } from "../../../utils/bucketHelper.js";
|
|
8
7
|
import { hasGlobalDateFilter } from "../../../utils/bucketRules.js";
|
|
9
8
|
import { getReferencePointWithSupportedProperties, getSupportedProperties, } from "../../../utils/propertiesHelper.js";
|
|
@@ -51,7 +50,7 @@ export class PluggableXirr extends AbstractPluggableVisualization {
|
|
|
51
50
|
this.unmountFun([this.getElement(), this.getConfigPanelElement()]);
|
|
52
51
|
}
|
|
53
52
|
getExtendedReferencePoint = async (referencePoint) => {
|
|
54
|
-
const referencePointCloned =
|
|
53
|
+
const referencePointCloned = _cloneDeep(referencePoint);
|
|
55
54
|
let newReferencePoint = {
|
|
56
55
|
...referencePointCloned,
|
|
57
56
|
uiConfig: getDefaultXirrUiConfig(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
5
5
|
import { METRIC, SHOW_IN_PERCENT } from "../constants/bucket.js";
|
|
6
6
|
import { filterOutArithmeticMeasuresFromDerived, filterOutDerivedMeasures, filterOutIncompatibleArithmeticMeasures, getComparisonTypeFromFilters, isComparisonAvailable, keepOnlyMasterAndDerivedMeasuresOfType, removeAllDerivedMeasures, } from "./bucketHelper.js";
|
|
7
7
|
import { isComparisonOverTimeAllowed, isShowInPercentAllowed } from "./bucketRules.js";
|
|
@@ -11,14 +11,14 @@ function getTypeOfDerivedToKeep(supportedTypes, appliedType) {
|
|
|
11
11
|
: appliedType;
|
|
12
12
|
}
|
|
13
13
|
export function configureOverTimeComparison(extendedReferencePoint) {
|
|
14
|
-
let newExtendedReferencePoint =
|
|
14
|
+
let newExtendedReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
15
15
|
const { buckets, filters, uiConfig } = newExtendedReferencePoint;
|
|
16
16
|
const { supportedOverTimeComparisonTypes } = uiConfig ?? {};
|
|
17
17
|
const appliedComparisonType = getComparisonTypeFromFilters(filters);
|
|
18
18
|
const isSelectedComparisonSupportedByVis = !!supportedOverTimeComparisonTypes?.includes(appliedComparisonType);
|
|
19
19
|
const derivedOfTypeToKeep = getTypeOfDerivedToKeep(supportedOverTimeComparisonTypes, appliedComparisonType);
|
|
20
20
|
const comparisonOverTimeAllowed = isComparisonOverTimeAllowed(buckets, filters);
|
|
21
|
-
const originalBuckets =
|
|
21
|
+
const originalBuckets = _cloneDeep(buckets);
|
|
22
22
|
buckets.forEach((bucket) => {
|
|
23
23
|
let newItems = bucket.items;
|
|
24
24
|
if (!comparisonOverTimeAllowed) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { negate, set, uniqBy, without } from "lodash-es";
|
|
3
3
|
import { areObjRefsEqual, bucketItems, bucketsFind, bucketsMeasures, idRef, insightBuckets, insightVisualizationType, isObjRef, isPoPMeasure, isPreviousPeriodMeasure, isSimpleMeasure, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, OverTimeComparisonTypes, VisualizationTypes, } from "@gooddata/sdk-ui";
|
|
5
5
|
import { isAreaChart, isBulletChart, isComboChart, isLineChart } from "@gooddata/sdk-ui-charts";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _compact, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { subtitles, titles } from "../../locales.js";
|
|
8
8
|
import { ATTRIBUTE, BUCKETS, DATE, METRIC, SHOW_ON_SECONDARY_AXIS } from "../constants/bucket.js";
|
|
9
9
|
import { DATE_DATASET_ATTRIBUTE, } from "../interfaces/Visualization.js";
|
|
@@ -308,7 +308,7 @@ export function getDateFilter(filtersBucket) {
|
|
|
308
308
|
const filters = filterItem.filters ?? [];
|
|
309
309
|
return filters.find(isDateFilter);
|
|
310
310
|
});
|
|
311
|
-
const dateFilters =
|
|
311
|
+
const dateFilters = _compact(dateFiltersInclEmpty);
|
|
312
312
|
return dateFilters.length ? dateFilters[0] : null;
|
|
313
313
|
}
|
|
314
314
|
export function getComparisonTypeFromFilters(filtersBucket) {
|
|
@@ -350,7 +350,7 @@ function bucketSupportsSubtitle(visualizationType, bucketLocalIdentifier) {
|
|
|
350
350
|
}
|
|
351
351
|
export function setBucketTitles(referencePoint, visualizationType, intl) {
|
|
352
352
|
const buckets = referencePoint?.buckets;
|
|
353
|
-
const updatedUiConfig =
|
|
353
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
354
354
|
if (!updatedUiConfig) {
|
|
355
355
|
return updatedUiConfig;
|
|
356
356
|
}
|
|
@@ -578,7 +578,7 @@ function hasItemsAboveLimit(bucket, itemsLimit) {
|
|
|
578
578
|
}
|
|
579
579
|
function applyItemsLimit(bucket, itemsLimit) {
|
|
580
580
|
if (itemsLimit !== undefined && hasItemsAboveLimit(bucket, itemsLimit)) {
|
|
581
|
-
const newBucket =
|
|
581
|
+
const newBucket = _cloneDeep(bucket);
|
|
582
582
|
newBucket.items = newBucket.items.slice(0, itemsLimit);
|
|
583
583
|
return newBucket;
|
|
584
584
|
}
|
|
@@ -610,7 +610,7 @@ export function getFirstMasterWithDerived(measureItems) {
|
|
|
610
610
|
measureItem === chosenMaster);
|
|
611
611
|
}
|
|
612
612
|
export function removeAllArithmeticMeasuresFromDerived(extendedReferencePoint) {
|
|
613
|
-
const originalBuckets =
|
|
613
|
+
const originalBuckets = _cloneDeep(extendedReferencePoint.buckets);
|
|
614
614
|
extendedReferencePoint.buckets.forEach((bucket) => {
|
|
615
615
|
bucket.items = filterOutArithmeticMeasuresFromDerived(bucket.items, originalBuckets);
|
|
616
616
|
});
|
|
@@ -849,7 +849,7 @@ export const getMainRowAttribute = (buckets) => {
|
|
|
849
849
|
return attributeItems[0] ?? undefined;
|
|
850
850
|
};
|
|
851
851
|
export const cloneBucketItem = (item) => {
|
|
852
|
-
const clonedItem =
|
|
852
|
+
const clonedItem = _cloneDeep(item);
|
|
853
853
|
clonedItem.localIdentifier = clonedItem.localIdentifier + "_cloned";
|
|
854
854
|
return clonedItem;
|
|
855
855
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set, uniqBy } from "lodash-es";
|
|
3
3
|
import { isAttributeDescriptor, isColorDescriptor, isColorFromPalette, isMeasureDescriptor, isResultAttributeHeader, isRgbColor, isUriRef, } from "@gooddata/sdk-model";
|
|
4
4
|
import { getMappingHeaderFormattedName } from "@gooddata/sdk-ui";
|
|
5
5
|
import { ColorUtils } from "@gooddata/sdk-ui-charts";
|
|
6
|
-
import { _isEmpty, _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _compact, _isEmpty, _isEqual } from "@gooddata/util";
|
|
7
7
|
/**
|
|
8
8
|
* Name of the colored item as the list displays it, so that searching matches what the user sees: the
|
|
9
9
|
* formatted element value for dates and number-formatted attributes, the raw name otherwise.
|
|
@@ -95,8 +95,8 @@ function mergeColorMappingToProperties(properties, id, color) {
|
|
|
95
95
|
},
|
|
96
96
|
];
|
|
97
97
|
const previousColorMapping = properties?.controls?.["colorMapping"] ?? [];
|
|
98
|
-
const mergedMapping =
|
|
99
|
-
const newProperties =
|
|
98
|
+
const mergedMapping = _compact(uniqBy([...colorMapping, ...previousColorMapping], "id"));
|
|
99
|
+
const newProperties = _cloneDeep(properties);
|
|
100
100
|
set(newProperties, "controls.colorMapping", mergedMapping);
|
|
101
101
|
return newProperties;
|
|
102
102
|
}
|
|
@@ -112,15 +112,15 @@ export function removeColorMappingFromProperties(properties, id) {
|
|
|
112
112
|
// a null color instructs the host application to remove the stored entry;
|
|
113
113
|
// omitting the entry is not enough because hosts merge pushed properties additively
|
|
114
114
|
const updatedMapping = previousColorMapping.map((item) => item.id === id ? { id, color: null } : item);
|
|
115
|
-
const newProperties =
|
|
115
|
+
const newProperties = _cloneDeep(properties);
|
|
116
116
|
set(newProperties, "controls.colorMapping", updatedMapping);
|
|
117
117
|
return newProperties;
|
|
118
118
|
}
|
|
119
119
|
export function getLineStyleProperties(properties, id, lineStyle, lineWidth) {
|
|
120
120
|
const newEntry = { id, lineStyle, lineWidth };
|
|
121
121
|
const previousMapping = properties?.controls?.["lineStyleMapping"] ?? [];
|
|
122
|
-
const merged =
|
|
123
|
-
const newProperties =
|
|
122
|
+
const merged = _compact(uniqBy([newEntry, ...previousMapping], "id"));
|
|
123
|
+
const newProperties = _cloneDeep(properties);
|
|
124
124
|
set(newProperties, "controls.lineStyleMapping", merged);
|
|
125
125
|
return newProperties;
|
|
126
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/dimensions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/dimensions.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,UAAU,EACf,KAAK,kBAAkB,EAS1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AA4BjF,wBAAgB,uBAAuB,CACnC,OAAO,EAAE,kBAAkB,EAC3B,yBAAyB,CAAC,EAAE,GAAG,GAChC,UAAU,EAAE,CAMd;AAwCD,wBAAgB,sBAAsB,IAAI,UAAU,EAAE,CAErD;AAmCD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAC9B,OAAO,EAAE,kBAAkB,EAC3B,IAAI,EAAE,OAAO,EACb,yBAAyB,CAAC,EAAE,GAAG,GAChC,UAAU,EAAE,CAiDd;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU,EAAE,CAKnF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { compact } from "lodash-es";
|
|
3
2
|
import { MeasureGroupIdentifier, bucketAttributes, insightAttributes, insightBucket, insightBuckets, insightProperties, newDimension, newTwoDimensional, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
4
|
import { getPivotTableDimensions as getPivotTableDimensionsShared, } from "@gooddata/sdk-ui-pivot";
|
|
5
|
+
import { _compact } from "@gooddata/util";
|
|
6
6
|
import { getMeasureGroupDimensionFromProperties } from "./propertiesHelper.js";
|
|
7
7
|
const COLUMNS = "columns";
|
|
8
8
|
const ROWS = "rows";
|
|
@@ -41,8 +41,8 @@ function getAreaDimensions(insight) {
|
|
|
41
41
|
const seriesAttribute = viewByAttributes[0];
|
|
42
42
|
const sliceAttribute = stackByAttributes[0] ?? viewByAttributes[1];
|
|
43
43
|
return sliceAttribute
|
|
44
|
-
? newTwoDimensional([sliceAttribute],
|
|
45
|
-
: newTwoDimensional([MeasureGroupIdentifier],
|
|
44
|
+
? newTwoDimensional([sliceAttribute], _compact([seriesAttribute, MeasureGroupIdentifier]))
|
|
45
|
+
: newTwoDimensional([MeasureGroupIdentifier], _compact([seriesAttribute]));
|
|
46
46
|
}
|
|
47
47
|
function getLineDimensions(insight) {
|
|
48
48
|
const trendAttributes = safeBucketAttributes(insight, BucketNames.TREND);
|
|
@@ -75,7 +75,7 @@ function getBubbleDimensions(insight) {
|
|
|
75
75
|
function getSankeyDimensions(insight) {
|
|
76
76
|
const fromAttributes = safeBucketAttributes(insight, BucketNames.ATTRIBUTE_FROM);
|
|
77
77
|
const toAttributes = safeBucketAttributes(insight, BucketNames.ATTRIBUTE_TO);
|
|
78
|
-
return newTwoDimensional([MeasureGroupIdentifier],
|
|
78
|
+
return newTwoDimensional([MeasureGroupIdentifier], _compact([...fromAttributes, ...toAttributes]));
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Generates dimensions based on buckets and visualization objects.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { groupBy, partition, sortBy, uniqBy } from "lodash-es";
|
|
3
3
|
import { factoryNotationFor } from "@gooddata/sdk-model";
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
4
|
+
import { _compact, _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { normalizeInsight } from "./normalizeInsight.js";
|
|
6
6
|
// these are in line with what `factoryNotationFor` supports
|
|
7
7
|
const defaultFactories = [
|
|
@@ -63,9 +63,9 @@ function indent(str, tabs) {
|
|
|
63
63
|
const renderImports = (imports) => Object.entries(groupBy(imports, (i) => i.package))
|
|
64
64
|
.map(([pkg, imports]) => {
|
|
65
65
|
const [[defaultImport], namedImports] = partition(imports, (i) => i.importType === "default");
|
|
66
|
-
return
|
|
66
|
+
return _compact([
|
|
67
67
|
"import",
|
|
68
|
-
|
|
68
|
+
_compact([
|
|
69
69
|
defaultImport?.name,
|
|
70
70
|
namedImports.length &&
|
|
71
71
|
`{ ${sortBy(namedImports.map((i) => i.name), (i) => i.toLowerCase()).join(", ")} }`,
|
|
@@ -133,7 +133,7 @@ export function getReactEmbeddingCodeGenerator({ component, insightToProps, addi
|
|
|
133
133
|
const normalizedInsight = normalizeInsight(insight);
|
|
134
134
|
const props = insightToProps(normalizedInsight, config?.context);
|
|
135
135
|
const { importsUsed, propDeclarations, propUsages } = walkProps(props, additionalFactories, config);
|
|
136
|
-
const imports =
|
|
136
|
+
const imports = _compact([REACT_IMPORT_INFO, ...importsUsed, component]);
|
|
137
137
|
const height = config?.height ?? DEFAULT_HEIGHT;
|
|
138
138
|
const stringifiedHeight = typeof height === "string" ? `"${height}"` : height.toString();
|
|
139
139
|
const componentBody = `<${component.name}\n${indent(propUsages.join("\n"), 1)}\n/>`;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
2
|
// eslint-disable-next-line no-restricted-imports
|
|
3
|
-
import {
|
|
3
|
+
import { get, has, set } from "lodash-es";
|
|
4
4
|
import { bucketsIsEmpty, insightBuckets, insightProperties, insightVisualizationUrl, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
7
7
|
import { AXIS } from "../constants/axis.js";
|
|
8
8
|
import { PROPERTY_CONTROLS } from "../constants/properties.js";
|
|
9
9
|
import { OPTIONAL_STACKING_PROPERTIES } from "../constants/supportedProperties.js";
|
|
10
10
|
import { UICONFIG_AXIS } from "../constants/uiConfig.js";
|
|
11
11
|
import { getAllMeasuresShowOnSecondaryAxis, getItemsCount, getItemsLocalIdentifiers, getMeasureItems, getStackItems, } from "./bucketHelper.js";
|
|
12
12
|
export function getSupportedPropertiesControls(visualizationControlsProperties, supportedPropertiesList) {
|
|
13
|
-
const clonedControls =
|
|
13
|
+
const clonedControls = _cloneDeep(visualizationControlsProperties);
|
|
14
14
|
if (supportedPropertiesList) {
|
|
15
15
|
return supportedPropertiesList.reduce((props, current) => has(clonedControls, current) ? set(props, current, get(clonedControls, current)) : props, {});
|
|
16
16
|
}
|
|
@@ -23,7 +23,7 @@ export function setSecondaryMeasures(referencePoint, axisName) {
|
|
|
23
23
|
if (!axisName) {
|
|
24
24
|
return referencePoint;
|
|
25
25
|
}
|
|
26
|
-
const newReferencePoint =
|
|
26
|
+
const newReferencePoint = _cloneDeep(referencePoint);
|
|
27
27
|
const path = `${PROPERTY_CONTROLS}.${axisName}`;
|
|
28
28
|
const secondaryAxisProperties = newReferencePoint?.properties?.controls?.[axisName];
|
|
29
29
|
const buckets = newReferencePoint?.buckets ?? [];
|
|
@@ -265,10 +265,10 @@ export function getLegendConfigurationDashboardsEnv(controlProperties, options)
|
|
|
265
265
|
return controlProperties;
|
|
266
266
|
}
|
|
267
267
|
export function getChartSupportedControls(controlProperties, insight) {
|
|
268
|
-
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfiguration(
|
|
268
|
+
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfiguration(_cloneDeep(controlProperties ?? {}), insight)));
|
|
269
269
|
}
|
|
270
270
|
export function getChartSupportedControlsDashboardsEnv(controlProperties, options) {
|
|
271
|
-
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfigurationDashboardsEnv(
|
|
271
|
+
return getDataPointsConfiguration(getHighchartsAxisNameConfiguration(getLegendConfigurationDashboardsEnv(_cloneDeep(controlProperties ?? {}), options)));
|
|
272
272
|
}
|
|
273
273
|
function getLegendPosition(controlProperties, insight) {
|
|
274
274
|
const legendPosition = controlProperties?.["legend"]?.position ?? "auto";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeUseless.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/removeUseless.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeUseless.d.ts","sourceRoot":"","sources":["../../../src/internal/utils/removeUseless.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAc3C"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
3
|
-
import { _isEmpty } from "@gooddata/util";
|
|
2
|
+
import { _compact, _isEmpty } from "@gooddata/util";
|
|
4
3
|
function isUseless(obj) {
|
|
5
4
|
return obj === null || obj === undefined || (typeof obj === "object" && _isEmpty(obj));
|
|
6
5
|
}
|
|
@@ -14,7 +13,7 @@ function isUseless(obj) {
|
|
|
14
13
|
export function removeUseless(obj) {
|
|
15
14
|
let res = obj;
|
|
16
15
|
if (Array.isArray(obj)) {
|
|
17
|
-
res =
|
|
16
|
+
res = _compact(obj.map(removeUseless));
|
|
18
17
|
}
|
|
19
18
|
else if (obj !== null && typeof obj === "object") {
|
|
20
19
|
res = Object.fromEntries(Object.entries(obj)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"areaChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAGH,KAAK,uBAAuB,EAE/B,MAAM,mCAAmC,CAAC;AAiE3C,wBAAgB,oBAAoB,CAChC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAuCzB"}
|