@gooddata/sdk-ui-ext 11.68.0-alpha.6 → 11.68.0-alpha.7
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 +42 -42
- 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 +4 -4
- 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 +5 -4
- 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 +6 -6
- package/esm/internal/utils/colors.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +6 -6
- 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/package.json +21 -21
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;AAY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AAG,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,
|
|
@@ -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,iBAA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C,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,KAA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,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,E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AC,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 { compact, 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 } 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 ?? [];
|
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) {
|