@gooddata/sdk-ui-ext 11.68.0-alpha.8 → 11.68.0-alpha.9
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 +32 -32
- package/esm/internal/components/BaseVisualization.d.ts.map +1 -1
- package/esm/internal/components/BaseVisualization.js +2 -3
- package/esm/internal/components/configurationControls/CheckboxControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/CheckboxControl.js +2 -3
- package/esm/internal/components/configurationControls/ConfigSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSection.js +2 -3
- package/esm/internal/components/configurationControls/ConfigSubsection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ConfigSubsection.js +2 -3
- package/esm/internal/components/configurationControls/ContinuousLineControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/ContinuousLineControl.js +2 -3
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DistintcPointShapesControl.js +2 -3
- package/esm/internal/components/configurationControls/DropdownControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/DropdownControl.js +2 -3
- package/esm/internal/components/configurationControls/GeoViewportControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/GeoViewportControl.js +13 -14
- package/esm/internal/components/configurationControls/InputControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/InputControl.js +2 -3
- package/esm/internal/components/configurationControls/PagingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PagingSection.js +3 -4
- package/esm/internal/components/configurationControls/PushpinShapeControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/PushpinShapeControl.js +3 -4
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/advanced/AdvancedSection.js +2 -3
- package/esm/internal/components/configurationControls/colors/ColorsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/colors/ColorsSection.js +3 -4
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorCheckbox.js +2 -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 +2 -3
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/indicators/colorsControl/ColorResetButton.js +4 -5
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/comparison/values/numberFormat/NumberFormatControl.js +2 -3
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/conditionalFormatting/ConditionalFormattingSection.js +2 -3
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/customTooltip/CustomTooltipSection.js +2 -3
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts +1 -2
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/interactions/InteractionsSection.js +2 -2
- package/esm/internal/components/configurationControls/total/TotalSection.d.ts.map +1 -1
- package/esm/internal/components/configurationControls/total/TotalSection.js +2 -3
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.d.ts.map +1 -1
- package/esm/internal/components/configurationPanels/ConfigurationPanelContent.js +1 -2
- package/esm/internal/components/configurationPanels/UnsupportedConfigurationPanel.js +2 -2
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +2 -3
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/PluggableColumnBarCharts.js +2 -3
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/areaChart/PluggableAreaChart.js +2 -3
- package/esm/internal/components/pluggableVisualizations/baseChart/PluggableBaseChart.js +3 -3
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/bubbleChart/PluggableBubbleChart.js +2 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChart.js +3 -4
- package/esm/internal/components/pluggableVisualizations/comboChart/PluggableComboChartDeprecated.js +3 -3
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoAreaChart/PluggableGeoAreaChart.js +2 -4
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js +5 -7
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js +10 -12
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/geoCommon/geoPropertySanitization.js +6 -7
- package/esm/internal/components/pluggableVisualizations/heatMap/PluggableHeatmap.js +3 -3
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.js +4 -5
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/mekko/PluggableMekko.js +4 -5
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.js +5 -6
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.js +2 -2
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.js +2 -3
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/repeater/PluggableRepeater.js +2 -4
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.js +3 -5
- package/esm/internal/components/pluggableVisualizations/treeMap/PluggableTreemap.js +4 -4
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js +7 -8
- package/esm/internal/translations/en-US.localization-bundle.d.ts +28 -0
- package/esm/internal/translations/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-US.localization-bundle.js +29 -1
- package/esm/internal/utils/bucketConfig.d.ts.map +1 -1
- package/esm/internal/utils/bucketConfig.js +2 -3
- package/esm/internal/utils/bucketHelper.js +7 -7
- package/esm/internal/utils/colors.d.ts.map +1 -1
- package/esm/internal/utils/colors.js +6 -7
- package/esm/internal/utils/controlsHelper.d.ts.map +1 -1
- package/esm/internal/utils/controlsHelper.js +7 -7
- package/esm/internal/utils/drillablePredicates.d.ts.map +1 -1
- package/esm/internal/utils/drillablePredicates.js +4 -4
- package/esm/internal/utils/embeddingCodeGenerator/getReactEmbeddingCodeGenerator.js +5 -5
- package/esm/internal/utils/propertiesHelper.js +8 -8
- package/esm/internal/utils/translations.d.ts.map +1 -1
- package/esm/internal/utils/translations.js +2 -3
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/areaChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/baseChartUiConfigHelper.js +16 -17
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/bubbleChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/columnBarChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/comboChartUiConfigHelperDeprecated.js +8 -9
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/dependencyWheelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/donutChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/funnelChartUiConfigHelper.js +4 -5
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoAreaChartUiConfigHelper.js +3 -3
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/geoPushpinChartUiConfigHelper.js +14 -15
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/headlineUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/heatmapUiConfigHelper.js +5 -6
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/lineChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/mekkoUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pieChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableNextUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.js +13 -14
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.js +3 -4
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.js +11 -12
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.js +6 -7
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/treemapUiConfigHelper.js +10 -11
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.js +9 -10
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.d.ts.map +1 -1
- package/esm/internal/utils/uiConfigHelpers/xirrUiConfigHelper.js +3 -4
- package/esm/sdk-ui-ext.d.ts +1 -1
- package/esm/share/ObjectShareDialog.d.ts +1 -1
- package/esm/share/ObjectShareDialog.js +3 -3
- package/esm/share/messages.d.ts +28 -0
- package/esm/share/messages.d.ts.map +1 -1
- package/esm/share/messages.js +14 -0
- package/esm/share/removeAccessConfirm.d.ts +21 -0
- package/esm/share/removeAccessConfirm.d.ts.map +1 -0
- package/esm/share/removeAccessConfirm.js +27 -0
- package/esm/share/useObjectShareDialog.d.ts +14 -11
- package/esm/share/useObjectShareDialog.d.ts.map +1 -1
- package/esm/share/useObjectShareDialog.js +54 -24
- package/package.json +21 -21
package/esm/internal/components/pluggableVisualizations/geoChart/PluggableGeoPushpinChart.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { attributeAlias, attributeDisplayFormRef, attributeLocalId, bucketAttribute, idRef, insightBucket, insightBuckets, insightFilters, insightHasDataDefined, isUriRef, newAttribute, newAttributeSort, newBucket, uriRef, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { CoreGeoChart, getGeoChartDimensions, } from "@gooddata/sdk-ui-geo";
|
|
7
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
8
6
|
import { ATTRIBUTE, BUCKETS, METRIC } from "../../../constants/bucket.js";
|
|
9
7
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
10
8
|
import { ANALYTICAL_ENVIRONMENT, DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
@@ -113,7 +111,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
113
111
|
const colorMeasures = (secondaryMeasures.length > 0
|
|
114
112
|
? secondaryMeasures
|
|
115
113
|
: allMeasures.filter((measure) => !sizeMeasures.includes(measure))).slice(0, this.getPreferredBucketItemLimit(BucketNames.COLOR));
|
|
116
|
-
|
|
114
|
+
_set(newExtendedReferencePoint, BUCKETS, [
|
|
117
115
|
{
|
|
118
116
|
localIdentifier: BucketNames.LOCATION,
|
|
119
117
|
items: this.getLocationItems(buckets),
|
|
@@ -160,7 +158,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
160
158
|
const legendProp = legend ? { legend } : {};
|
|
161
159
|
const { isInEditMode, isExportMode } = config;
|
|
162
160
|
if (this.environment === DASHBOARDS_ENVIRONMENT) {
|
|
163
|
-
|
|
161
|
+
_set(supportedControls, "legend.responsive", "autoPositionWithPopup");
|
|
164
162
|
}
|
|
165
163
|
const viewportProp = {
|
|
166
164
|
viewport: {
|
|
@@ -292,7 +290,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
292
290
|
const hasSegmentAttribute = getItemsCount(buckets, BucketNames.SEGMENT) > 0;
|
|
293
291
|
const groupNearbyPoints = hasLocationAttribute && !hasColorMeasure && !hasSizeMeasure && !hasSegmentAttribute;
|
|
294
292
|
const locationProperties = this.getLocationProperties(locationItem);
|
|
295
|
-
|
|
293
|
+
_set(referencePointConfigured, "properties", {
|
|
296
294
|
controls: {
|
|
297
295
|
points: {
|
|
298
296
|
groupNearbyPoints,
|
|
@@ -302,7 +300,7 @@ export class PluggableGeoPushpinChart extends PluggableBaseChart {
|
|
|
302
300
|
},
|
|
303
301
|
});
|
|
304
302
|
if (this.references) {
|
|
305
|
-
|
|
303
|
+
_set(referencePointConfigured, "references", this.references);
|
|
306
304
|
}
|
|
307
305
|
return referencePointConfigured;
|
|
308
306
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableGeoPushpinChartNext.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AA2B7B,OAAO,EAEH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EAEjB,MAAM,sCAAsC,CAAC;AAY9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAqCxE;;;;;;;;GAQG;AACH,qBAAa,4BAA6B,SAAQ,kBAAkB;IAChE,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,oBAAoB,CAAC,CAAS;IACtC,OAAO,CAAC,qBAAqB,CAAC,CAAS;IACvC,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAwB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,kDAAkD,CAC9D,qBAAqB,EAAE,eAAe,EACtC,kBAAkB,EAAE,eAAe,GACpC,OAAO,CAQT;IAID,OAAO,CAAC,wBAAwB;IAMhC;;;;;;OAMG;IACa,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyClC;IAEe,WAAW,IAAI,SAAS,CAMvC;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED;;;OAGG;IACH,UAAmB,gBAAgB,CAC/B,sBAAsB,EAAE,uBAAuB,GAChD,uBAAuB,CA2BzB;IAED;;OAEG;IACH,OAAO,CAAC,yBAAyB;IA6BjC;;;;;;;;OAQG;IACH,UAAmB,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAwBzE;IAED;;;;;;;;;OASG;IACa,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,CAsBpB;IAEe,aAAa,CACzB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,kBAAkB,EAAE,CAsBtB;IAED,OAAO,CAAC,gBAAgB;YAMV,eAAe;IA8B7B,OAAO,CAAC,eAAe;IAcvB,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA0DjG;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,2BAA2B;IAenC,OAAO,CAAC,oBAAoB;IAe5B,UAAmB,mBAAmB,CAClC,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,GACpC,IAAI,CAyCN;IAED,OAAO,CAAC,wBAAwB;IA8ChC,OAAO,CAAC,8BAA8B;IAyBtC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,8BAA8B;IAUtC,OAAO,CAAC,8CAA8C;IAuBtD,OAAO,CAAC,qCAAqC;IAa7C,OAAO,CAAC,cAAc,CAOnB;IAEH,OAAO,CAAC,2BAA2B,CAAmD;IACtF,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,mBAAmB,CAA2C;IACtE,OAAO,CAAC,8BAA8B,CAAsD;IAC5F,OAAO,CAAC,iBAAiB,CAA0E;CACtG"}
|
package/esm/internal/components/pluggableVisualizations/geoChartNext/PluggableGeoPushpinChartNext.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2025-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { insightBuckets, insightFilters, insightHasDataDefined, insightLayers, insightSorts, insightTitle, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames, GeoLocationMissingSdkError, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
4
|
import { isGeoLayerPushpin, } from "@gooddata/sdk-ui-geo";
|
|
7
5
|
import { GeoChartInternal, PUSHPIN_LAYER_ID, buildLayerExecution, insightLayerToGeoLayer, insightLayersToGeoLayers, } from "@gooddata/sdk-ui-geo/internal";
|
|
8
|
-
import { _cloneDeep, _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEqual, _set } from "@gooddata/util";
|
|
9
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
10
8
|
import { isGeoChartsViewportConfigEnabled, isGeoPushpinIconEnabled, } from "../../../constants/featureFlags.js";
|
|
11
9
|
import { sanitizeGeoMapStyleOptions } from "../../../constants/geoMapStyle.js";
|
|
@@ -134,7 +132,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
134
132
|
const uiConfig = this.getUiConfig();
|
|
135
133
|
const { sizeMeasures, colorMeasures, metricMeasures } = distributeMeasures(buckets, uiConfig);
|
|
136
134
|
const configuredBuckets = createConfiguredBuckets(buckets, sizeMeasures, colorMeasures, metricMeasures, uiConfig);
|
|
137
|
-
|
|
135
|
+
_set(sanitized, BUCKETS, configuredBuckets);
|
|
138
136
|
return sanitized;
|
|
139
137
|
}
|
|
140
138
|
/**
|
|
@@ -153,14 +151,14 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
153
151
|
// Don't add groupNearbyPoints if it wasn't already in the properties.
|
|
154
152
|
// This prevents marking the insight as "dirty" when just opening it.
|
|
155
153
|
// The rendering code handles the default value (true when clustering is allowed).
|
|
156
|
-
|
|
154
|
+
_set(referencePointConfigured, "properties", {
|
|
157
155
|
controls: {
|
|
158
156
|
...controls,
|
|
159
157
|
...locationProperties,
|
|
160
158
|
},
|
|
161
159
|
});
|
|
162
160
|
if (this.references) {
|
|
163
|
-
|
|
161
|
+
_set(referencePointConfigured, "references", this.references);
|
|
164
162
|
}
|
|
165
163
|
return referencePointConfigured;
|
|
166
164
|
}
|
|
@@ -462,7 +460,7 @@ export class PluggableGeoPushpinChartNext extends PluggableBaseChart {
|
|
|
462
460
|
(this.environment !== ANALYTICAL_ENVIRONMENT || this.cachedHasGeoIconLabel));
|
|
463
461
|
}
|
|
464
462
|
getResolvedReferencePointWithFallback(referencePoint) {
|
|
465
|
-
return
|
|
463
|
+
return _set(_cloneDeep(referencePoint), "properties", getGeoVisualizationPropertiesWithFallback(this.visualizationProperties ?? {}, referencePoint.properties?.controls ?? {}));
|
|
466
464
|
}
|
|
467
465
|
syncedHandlers = createSyncedViewportHandlers(this.liveMapView, {
|
|
468
466
|
getEnvironment: () => this.environment,
|
|
@@ -490,7 +488,7 @@ function sanitizeGeoPointProperties(referencePoint) {
|
|
|
490
488
|
const shapeType = controls["points"]?.shapeType ?? "circle";
|
|
491
489
|
if (shapeType !== "oneIcon" && controls["points"]?.icon !== undefined) {
|
|
492
490
|
const updated = _cloneDeep(referencePoint);
|
|
493
|
-
|
|
491
|
+
_set(updated, "properties.controls.points.icon", undefined);
|
|
494
492
|
return updated;
|
|
495
493
|
}
|
|
496
494
|
return referencePoint;
|
|
@@ -500,7 +498,7 @@ function disableClusteringIfNotEditable(referencePoint) {
|
|
|
500
498
|
const shapeType = getPushpinShapeType(referencePoint);
|
|
501
499
|
const clusteringEnabled = referencePoint.properties?.controls?.["points"]?.groupNearbyPoints === true;
|
|
502
500
|
if (clusteringEnabled && !isPushpinClusteringEditableForBuckets(referencePoint.buckets, shapeType)) {
|
|
503
|
-
updatedReferencePoint =
|
|
501
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.points.groupNearbyPoints", false);
|
|
504
502
|
}
|
|
505
503
|
return updatedReferencePoint;
|
|
506
504
|
}
|
|
@@ -509,20 +507,20 @@ function disableClusteringInVisualizationPropertiesWhenNotEditable(visualization
|
|
|
509
507
|
if (isPushpinClusteringEditable(insight, shapeType)) {
|
|
510
508
|
return visualizationProperties;
|
|
511
509
|
}
|
|
512
|
-
return
|
|
510
|
+
return _set(_cloneDeep(visualizationProperties), "controls.points.groupNearbyPoints", false);
|
|
513
511
|
}
|
|
514
512
|
function getPushpinShapeType(referencePoint) {
|
|
515
513
|
return referencePoint.properties?.controls?.["points"]?.shapeType ?? "circle";
|
|
516
514
|
}
|
|
517
515
|
function resetIconByValueShapeType(referencePoint) {
|
|
518
516
|
if (getPushpinShapeType(referencePoint) === "iconByValue") {
|
|
519
|
-
return
|
|
517
|
+
return _set(_cloneDeep(referencePoint), "properties.controls.points.shapeType", "circle");
|
|
520
518
|
}
|
|
521
519
|
return referencePoint;
|
|
522
520
|
}
|
|
523
521
|
function resetIconByValueInVisualizationProperties(properties, hasGeoIconLabel) {
|
|
524
522
|
if (properties?.controls?.["points"]?.shapeType === "iconByValue" && !hasGeoIconLabel) {
|
|
525
|
-
return
|
|
523
|
+
return _set(_cloneDeep(properties), "controls.points.shapeType", "circle");
|
|
526
524
|
}
|
|
527
525
|
return properties;
|
|
528
526
|
}
|
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":"AAKA,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,7 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { isConcreteViewportPreset } from "@gooddata/sdk-ui-geo/internal";
|
|
4
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
5
4
|
/**
|
|
6
5
|
* Strips viewport-related properties that are incompatible with the current viewport mode.
|
|
7
6
|
*
|
|
@@ -25,16 +24,16 @@ export function sanitizeGeoViewportProperties(referencePoint) {
|
|
|
25
24
|
return referencePoint;
|
|
26
25
|
}
|
|
27
26
|
const updated = _cloneDeep(referencePoint);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
_set(updated, "properties.controls.bounds", undefined);
|
|
28
|
+
_set(updated, "properties.controls.center", undefined);
|
|
29
|
+
_set(updated, "properties.controls.zoom", undefined);
|
|
31
30
|
return updated;
|
|
32
31
|
}
|
|
33
32
|
if (viewportArea === "custom" && hasBounds && (hasCenter || hasZoom)) {
|
|
34
33
|
// Custom viewport with bounds — strip redundant center/zoom
|
|
35
34
|
const updated = _cloneDeep(referencePoint);
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
_set(updated, "properties.controls.center", undefined);
|
|
36
|
+
_set(updated, "properties.controls.zoom", undefined);
|
|
38
37
|
return updated;
|
|
39
38
|
}
|
|
40
39
|
return referencePoint;
|
|
@@ -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 { tail } from "lodash-es";
|
|
4
4
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes, isDrillIntersectionAttributeItem, } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } 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";
|
|
@@ -77,7 +77,7 @@ export class PluggableHeatmap extends PluggableBaseChart {
|
|
|
77
77
|
return !stackItems.includes(attribute);
|
|
78
78
|
});
|
|
79
79
|
const columnItems = rowItems.length > 1 ? tail(rowItems) : stackItems;
|
|
80
|
-
|
|
80
|
+
_set(newReferencePoint, BUCKETS, [
|
|
81
81
|
{
|
|
82
82
|
localIdentifier: BucketNames.MEASURES,
|
|
83
83
|
items: measures,
|
package/esm/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableLineChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableLineChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/lineChart/PluggableLineChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,kBAAkB,EAAoB,MAAM,qBAAqB,CAAC;AAQ/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;AAqB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAOxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBAAa,kBAAmB,SAAQ,kBAAkB;IACtD,YAAY,KAAK,EAAE,aAAa,EAQ/B;IAEe,0BAA0B,IAAI,MAAM,EAAE,CAErD;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA2BlC;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,CA+BjG;IAED,OAAO,CAAC,iCAAiC;IAiDzC,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,0BAA0B;IAoClC,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,6BAA6B;CASxC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _isEqual, _set } from "@gooddata/util";
|
|
7
6
|
import { AXIS, AXIS_NAME } from "../../../constants/axis.js";
|
|
8
7
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
9
8
|
import { LINE_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -144,7 +143,7 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
144
143
|
}
|
|
145
144
|
attributes = getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE]).slice(0, 1);
|
|
146
145
|
}
|
|
147
|
-
|
|
146
|
+
_set(newReferencePoint, BUCKETS, [
|
|
148
147
|
{
|
|
149
148
|
localIdentifier: BucketNames.MEASURES,
|
|
150
149
|
items: this.getBucketMeasures(newReferencePoint.buckets),
|
|
@@ -207,12 +206,12 @@ export class PluggableLineChart extends PluggableBaseChart {
|
|
|
207
206
|
const existingThresholdMeasures = properties?.controls?.["thresholdMeasures"] || [];
|
|
208
207
|
if (measureItems.length <= 1 && existingThresholdMeasures.length > 0) {
|
|
209
208
|
// In case there's just one measure item, we need to reset the threshold measures
|
|
210
|
-
|
|
209
|
+
_set(referencePoint, "properties.controls.thresholdMeasures", []);
|
|
211
210
|
}
|
|
212
211
|
if (_isEqual(listThresholdMeasures, existingThresholdMeasures)) {
|
|
213
212
|
return referencePoint;
|
|
214
213
|
}
|
|
215
|
-
|
|
214
|
+
_set(referencePoint, "properties.controls.thresholdMeasures", listThresholdMeasures);
|
|
216
215
|
return referencePoint;
|
|
217
216
|
}
|
|
218
217
|
isDistinctPointShapesDisabled() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableMekko.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/mekko/PluggableMekko.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableMekko.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/mekko/PluggableMekko.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EACH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAM5D,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAU9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAyBxE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IAClD,YAAY,KAAK,EAAE,aAAa,EAK/B;IAEe,YAAY,CACxB,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,EAC3B,gBAAgB,EAAE,iBAAiB,0DActC;IAGD,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,CAAC,EAAE,wBAAwB,GAC7C,YAAY,CAMd;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAyBlC;IAEe,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CA4CnF;CACJ"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import { set } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, insightBucket, insightSorts, isMeasureSort, newAttributeSort, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
6
5
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
7
6
|
import { MEKKO_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
7
|
import { DEFAULT_MEKKO_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -19,10 +18,10 @@ function configurePercentStacking(referencePoint) {
|
|
|
19
18
|
const hasWidth = !_isEmpty(getBucketItems(buckets, BucketNames.MEASURES));
|
|
20
19
|
const hasHeight = !_isEmpty(getBucketItems(buckets, BucketNames.SECONDARY_MEASURES));
|
|
21
20
|
const hasStack = !_isEmpty(getBucketItems(buckets, BucketNames.STACK));
|
|
22
|
-
|
|
21
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "stackToPercentVisible"], hasStack && (hasWidth || hasHeight));
|
|
23
22
|
if (hasWidth && !hasHeight && hasStack) {
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "disabled"], true);
|
|
24
|
+
_set(referencePoint, ["uiConfig", "optionalStacking", "stackMeasuresToPercent"], true);
|
|
26
25
|
}
|
|
27
26
|
return referencePoint;
|
|
28
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggablePieChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggablePieChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pieChart/PluggablePieChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,yBAAyB,CAAC;AAajE,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAe9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,iBAAkB,SAAQ,kBAAkB;IACrD,YAAY,KAAK,EAAE,aAAa,EAM/B;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CA6DlC;IAED,SAAS,CAAC,0BAA0B,CAChC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,WAAW,EAAE,GACtB;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAmBA;IAED,OAAO,CAAC,cAAc;IAYN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAqBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA6BjG;IAED,UAAmB,wBAAwB,CACvC,OAAO,EAAE,SAAS,EAClB,iBAAiB,EAAE,wBAAwB,GAC5C,YAAY,CAWd;CACJ"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { newMeasureSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
5
|
import { TOP } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } from "@gooddata/util";
|
|
8
7
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
9
8
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
10
9
|
import { PIECHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
@@ -72,7 +71,7 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
72
71
|
if (attributes.length) {
|
|
73
72
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, 1);
|
|
74
73
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
75
|
-
|
|
74
|
+
_set(newReferencePoint, BUCKETS, [
|
|
76
75
|
{
|
|
77
76
|
localIdentifier: BucketNames.MEASURES,
|
|
78
77
|
items: limitedMeasures,
|
|
@@ -87,12 +86,12 @@ export class PluggablePieChart extends PluggableBaseChart {
|
|
|
87
86
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, DEFAULT_PIE_ONLY_MAX_METRICS_COUNT, true);
|
|
88
87
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
89
88
|
if (limitedMeasures.length > 1) {
|
|
90
|
-
|
|
89
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_MULTIPLE_METRICS));
|
|
91
90
|
}
|
|
92
91
|
else {
|
|
93
|
-
|
|
92
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(PIE_UICONFIG_WITH_ONE_METRIC));
|
|
94
93
|
}
|
|
95
|
-
|
|
94
|
+
_set(newReferencePoint, BUCKETS, [
|
|
96
95
|
{
|
|
97
96
|
localIdentifier: BucketNames.MEASURES,
|
|
98
97
|
items: limitedMeasures,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pivotTableAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAQnC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAEnG,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,yBAAyB,GAAG,MAAM,CAQjG;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CA4B7F;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CAO7F;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAOrF;AAED,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,2BAA2B,GAAG,MAAM,CASrG;AAED,wBAAgB,2CAA2C,CAAC,GAAG,EAAE,0BAA0B,GAAG,MAAM,CAKnG;AAED,eAAO,MAAM,6BAA6B,EAAE,4BAA4B,EAmEvE,CAAC"}
|
package/esm/internal/components/pluggableVisualizations/pivotTable/pivotTableAdditionalFactories.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { partition } from "lodash-es";
|
|
3
2
|
import { isAllMeasureColumnWidthItem, isAttributeColumnLocator, isAttributeColumnWidthItem, isMeasureColumnLocator, isMeasureColumnWidthItem, isTotalColumnLocator, isWeakMeasureColumnWidthItem, } from "@gooddata/sdk-ui-pivot";
|
|
3
|
+
import { _partition } from "@gooddata/util";
|
|
4
4
|
export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
5
5
|
const { attributeIdentifier, width } = obj.attributeColumnWidthItem;
|
|
6
6
|
const { value: widthValue, allowGrowToFit } = width;
|
|
@@ -10,7 +10,7 @@ export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
|
10
10
|
}
|
|
11
11
|
export function factoryNotationForMeasureColumnWidthItem(obj) {
|
|
12
12
|
const { locators, width } = obj.measureColumnWidthItem;
|
|
13
|
-
const [measureLocators, attributeLocators] =
|
|
13
|
+
const [measureLocators, attributeLocators] = _partition(locators, isMeasureColumnLocator);
|
|
14
14
|
const allowGrowToFit = typeof width === "string" ? false : width.allowGrowToFit;
|
|
15
15
|
const attributeLocatorFactories = attributeLocators.map((locator) => isAttributeColumnLocator(locator)
|
|
16
16
|
? factoryNotationForAttributeColumnLocator(locator)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableNextAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pivotTableNextAdditionalFactories.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTableNext/pivotTableNextAdditionalFactories.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAE9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAQnC,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAEnG,wBAAgB,0CAA0C,CAAC,GAAG,EAAE,yBAAyB,GAAG,MAAM,CAQjG;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CA4B7F;AAED,wBAAgB,wCAAwC,CAAC,GAAG,EAAE,uBAAuB,GAAG,MAAM,CAO7F;AAED,wBAAgB,oCAAoC,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CAOrF;AAED,wBAAgB,4CAA4C,CAAC,GAAG,EAAE,2BAA2B,GAAG,MAAM,CASrG;AAED,wBAAgB,2CAA2C,CAAC,GAAG,EAAE,0BAA0B,GAAG,MAAM,CAKnG;AAED,eAAO,MAAM,iCAAiC,EAAE,4BAA4B,EAmE3E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { partition } from "lodash-es";
|
|
3
2
|
import { isAllMeasureColumnWidthItem, isAttributeColumnLocator, isAttributeColumnWidthItem, isMeasureColumnLocator, isMeasureColumnWidthItem, isTotalColumnLocator, isWeakMeasureColumnWidthItem, } from "@gooddata/sdk-ui-pivot";
|
|
3
|
+
import { _partition } from "@gooddata/util";
|
|
4
4
|
export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
5
5
|
const { attributeIdentifier, width } = obj.attributeColumnWidthItem;
|
|
6
6
|
const { value: widthValue, allowGrowToFit } = width;
|
|
@@ -10,7 +10,7 @@ export function factoryNotationForAttributeColumnWidthItem(obj) {
|
|
|
10
10
|
}
|
|
11
11
|
export function factoryNotationForMeasureColumnWidthItem(obj) {
|
|
12
12
|
const { locators, width } = obj.measureColumnWidthItem;
|
|
13
|
-
const [measureLocators, attributeLocators] =
|
|
13
|
+
const [measureLocators, attributeLocators] = _partition(locators, isMeasureColumnLocator);
|
|
14
14
|
const allowGrowToFit = typeof width === "string" ? false : width.allowGrowToFit;
|
|
15
15
|
const attributeLocatorFactories = attributeLocators.map((locator) => isAttributeColumnLocator(locator)
|
|
16
16
|
? factoryNotationForAttributeColumnLocator(locator)
|
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":"
|
|
1
|
+
{"version":3,"file":"PluggableRadarChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/radarChart/PluggableRadarChart.tsx"],"names":[],"mappings":"AAEA,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,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { newAttributeSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
7
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../../constants/bucket.js";
|
|
8
7
|
import { RADAR_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { MAX_METRICS_COUNT, RADAR_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -133,7 +132,7 @@ export class PluggableRadarChart extends PluggableBaseChart {
|
|
|
133
132
|
}
|
|
134
133
|
attributes = getAttributeItemsWithoutStacks(buckets, [ATTRIBUTE, DATE]).slice(0, 1);
|
|
135
134
|
}
|
|
136
|
-
|
|
135
|
+
_set(newReferencePoint, BUCKETS, [
|
|
137
136
|
{
|
|
138
137
|
localIdentifier: BucketNames.MEASURES,
|
|
139
138
|
items: this.getBucketMeasures(newReferencePoint.buckets),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableRepeater.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/repeater/PluggableRepeater.tsx"],"names":[],"mappings":"AAEA,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,10 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2024-2026 GoodData Corporation
|
|
3
|
-
import { omit } from "lodash-es";
|
|
4
2
|
import { areObjRefsEqual, insightBucket, insightBuckets, insightProperties, insightSetBuckets, } from "@gooddata/sdk-model";
|
|
5
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
6
4
|
import { ColorUtils, CoreRepeater, constructRepeaterBuckets, constructRepeaterDimensions, updateConfigWithSettings, } from "@gooddata/sdk-ui-charts";
|
|
7
|
-
import { _cloneDeep, _compact } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _compact, _omit } from "@gooddata/util";
|
|
8
6
|
import { DASHBOARDS_ENVIRONMENT } from "../../../constants/properties.js";
|
|
9
7
|
import { REPEATER_SUPPORTER_PROPERTIES_LIST } from "../../../constants/supportedProperties.js";
|
|
10
8
|
import { InvalidBucketsSdkError, InvalidColumnsSdkError, } from "../../../interfaces/Visualization.js";
|
|
@@ -242,7 +240,7 @@ export class PluggableRepeater extends AbstractPluggableVisualization {
|
|
|
242
240
|
renderConfigurationPanel(insight, options) {
|
|
243
241
|
const configPanelElement = this.getConfigPanelElement();
|
|
244
242
|
if (configPanelElement) {
|
|
245
|
-
this.renderFun(_jsx(RepeaterConfigurationPanel, { colors: this.colors, locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers:
|
|
243
|
+
this.renderFun(_jsx(RepeaterConfigurationPanel, { colors: this.colors, locale: this.locale, properties: this.visualizationProperties, propertiesMeta: this.propertiesMeta, insight: insight, pushData: this.handlePushData, isError: this.getIsError(), isLoading: this.isLoading, featureFlags: this.featureFlags, permissions: this.permissions, configurationPanelRenderers: _omit(options.custom?.configurationPanelRenderers, "InteractionsDetailRenderer") }), configPanelElement);
|
|
246
244
|
}
|
|
247
245
|
}
|
|
248
246
|
}
|
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":"
|
|
1
|
+
{"version":3,"file":"PluggableScatterPlot.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/scatterPlot/PluggableScatterPlot.tsx"],"names":[],"mappings":"AAEA,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,8 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2019-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
2
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
3
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
4
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
7
5
|
import { SCATTERPLOT_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
8
6
|
import { DEFAULT_SCATTERPLOT_UICONFIG } from "../../../constants/uiConfig.js";
|
|
@@ -86,7 +84,7 @@ function disableClusteringForMissingViewBy(referencePoint) {
|
|
|
86
84
|
const viewByBucket = findBucket(referencePoint.buckets, BucketNames.ATTRIBUTE);
|
|
87
85
|
const hasViewByItems = (viewByBucket?.items?.length ?? 0) > 0;
|
|
88
86
|
if (!hasViewByItems) {
|
|
89
|
-
updatedReferencePoint =
|
|
87
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.clustering.enabled", false);
|
|
90
88
|
}
|
|
91
89
|
return updatedReferencePoint;
|
|
92
90
|
}
|
|
@@ -98,7 +96,7 @@ function disableClusteringIfFewerThanTwoMeasures(referencePoint) {
|
|
|
98
96
|
const secondaryMeasuresBucketItemsCount = secondaryMeasuresBucket?.items?.length ?? 0;
|
|
99
97
|
const hasXAndYMeasures = measuresBucketItemsCount === 1 && secondaryMeasuresBucketItemsCount === 1;
|
|
100
98
|
if (!hasXAndYMeasures) {
|
|
101
|
-
updatedReferencePoint =
|
|
99
|
+
updatedReferencePoint = _set(referencePoint, "properties.controls.clustering.enabled", false);
|
|
102
100
|
}
|
|
103
101
|
return updatedReferencePoint;
|
|
104
102
|
}
|
|
@@ -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 { tail } from "lodash-es";
|
|
4
4
|
import { bucketsAttributes, insightBuckets, } from "@gooddata/sdk-model";
|
|
5
5
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty } from "@gooddata/util";
|
|
6
|
+
import { _cloneDeep, _isEmpty, _set } 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";
|
|
@@ -78,7 +78,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
78
78
|
}
|
|
79
79
|
configureBuckets(newReferencePoint) {
|
|
80
80
|
const { measures, view, stacks } = this.getBucketItemsWithMultipleDates(newReferencePoint);
|
|
81
|
-
|
|
81
|
+
_set(newReferencePoint, BUCKETS, [
|
|
82
82
|
{
|
|
83
83
|
localIdentifier: BucketNames.MEASURES,
|
|
84
84
|
items: measures,
|
|
@@ -114,7 +114,7 @@ export class PluggableTreemap extends PluggableBaseChart {
|
|
|
114
114
|
newReferencePoint = getReferencePointWithSupportedProperties(newReferencePoint, this.supportedPropertiesList);
|
|
115
115
|
// set chart fill to solid if treemap is stacked
|
|
116
116
|
if (!hasNoStacksWithDate(newReferencePoint.buckets)) {
|
|
117
|
-
newReferencePoint =
|
|
117
|
+
newReferencePoint = _set(newReferencePoint, "properties.controls.chartFill", { type: "solid" });
|
|
118
118
|
}
|
|
119
119
|
newReferencePoint = removeSort(newReferencePoint);
|
|
120
120
|
return Promise.resolve(sanitizeFilters(newReferencePoint, referencePoint));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluggableWaterfallChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PluggableWaterfallChart.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAkB,MAAM,qBAAqB,CAAC;AAa9E,OAAO,EAAE,KAAK,WAAW,EAA0B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,wBAAwB,EAChC,MAAM,sCAAsC,CAAC;AAsB9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,uBAAwB,SAAQ,kBAAkB;IAC3D,YAAY,KAAK,EAAE,aAAa,EAI/B;IAED,UAAmB,0BAA0B,IAAI,MAAM,EAAE,CAExD;IAED,UAAmB,oBAAoB,CAAC,uBAAuB,EAAE,wBAAwB,GAAG,IAAI,CAmB/F;IAEe,WAAW,IAAI,SAAS,CAEvC;IAEe,yBAAyB,CACrC,cAAc,EAAE,eAAe,GAChC,OAAO,CAAC,uBAAuB,CAAC,CAwDlC;IAED,SAAS,CAAC,0BAA0B,CAChC,QAAQ,EAAE,WAAW,EAAE,EACvB,MAAM,EAAE,WAAW,EAAE,GACtB;QACC,WAAW,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;QACxC,cAAc,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;KACjD,CAaA;IAED,OAAO,CAAC,cAAc;IAYN,aAAa,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAqBnF;IAED,UAAmB,wBAAwB,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,SAAS,GAAG,IAAI,CA8BjG;IAED,OAAO,CAAC,0BAA0B;CAqBrC"}
|
package/esm/internal/components/pluggableVisualizations/waterfallChart/PluggableWaterfallChart.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
// (C) 2023-2026 GoodData Corporation
|
|
3
|
-
import { set } from "lodash-es";
|
|
4
3
|
import { newMeasureSort } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
6
|
-
import { _cloneDeep, _isEmpty, _isEqual } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _isEmpty, _isEqual, _set } from "@gooddata/util";
|
|
7
6
|
import { BUCKETS } from "../../../constants/bucket.js";
|
|
8
7
|
import { WATERFALL_CHART_SUPPORTED_PROPERTIES } from "../../../constants/supportedProperties.js";
|
|
9
8
|
import { DEFAULT_WATERFALL_UICONFIG, MAX_METRICS_COUNT, UICONFIG, WATERFALL_UICONFIG_WITH_MULTIPLE_METRICS, WATERFALL_UICONFIG_WITH_ONE_METRIC, } from "../../../constants/uiConfig.js";
|
|
@@ -92,7 +91,7 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
92
91
|
if (attributes.length) {
|
|
93
92
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, 1);
|
|
94
93
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
95
|
-
|
|
94
|
+
_set(newReferencePoint, BUCKETS, [
|
|
96
95
|
{
|
|
97
96
|
localIdentifier: BucketNames.MEASURES,
|
|
98
97
|
items: limitedMeasures,
|
|
@@ -107,12 +106,12 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
107
106
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, MAX_METRICS_COUNT, true);
|
|
108
107
|
const limitedMeasures = getMeasureItems(limitedBuckets);
|
|
109
108
|
if (limitedMeasures.length > 1) {
|
|
110
|
-
|
|
109
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(WATERFALL_UICONFIG_WITH_MULTIPLE_METRICS));
|
|
111
110
|
}
|
|
112
111
|
else {
|
|
113
|
-
|
|
112
|
+
_set(newReferencePoint, UICONFIG, _cloneDeep(WATERFALL_UICONFIG_WITH_ONE_METRIC));
|
|
114
113
|
}
|
|
115
|
-
|
|
114
|
+
_set(newReferencePoint, BUCKETS, [
|
|
116
115
|
{
|
|
117
116
|
localIdentifier: BucketNames.MEASURES,
|
|
118
117
|
items: limitedMeasures,
|
|
@@ -190,12 +189,12 @@ export class PluggableWaterfallChart extends PluggableBaseChart {
|
|
|
190
189
|
const existingTotalMeasures = properties?.controls?.["total"]?.measures || [];
|
|
191
190
|
if (measureItems.length <= 1 && existingTotalMeasures.length > 0) {
|
|
192
191
|
// In case one view item, we need to reset the total measures is empty
|
|
193
|
-
|
|
192
|
+
_set(referencePoint, "properties.controls.total.measures", []);
|
|
194
193
|
}
|
|
195
194
|
if (viewItems.length > 0 || _isEqual(listTotalMeasures, existingTotalMeasures)) {
|
|
196
195
|
return referencePoint;
|
|
197
196
|
}
|
|
198
|
-
|
|
197
|
+
_set(referencePoint, "properties.controls.total.measures", listTotalMeasures);
|
|
199
198
|
return referencePoint;
|
|
200
199
|
}
|
|
201
200
|
}
|
|
@@ -2527,6 +2527,34 @@ export declare const en_US: {
|
|
|
2527
2527
|
text: string;
|
|
2528
2528
|
crowdinContext: string;
|
|
2529
2529
|
};
|
|
2530
|
+
"objectShare.removeAccess.title": {
|
|
2531
|
+
text: string;
|
|
2532
|
+
crowdinContext: string;
|
|
2533
|
+
};
|
|
2534
|
+
"objectShare.removeAccess.self.title": {
|
|
2535
|
+
text: string;
|
|
2536
|
+
crowdinContext: string;
|
|
2537
|
+
};
|
|
2538
|
+
"objectShare.removeAccess.loseAccess": {
|
|
2539
|
+
text: string;
|
|
2540
|
+
crowdinContext: string;
|
|
2541
|
+
};
|
|
2542
|
+
"objectShare.removeAccess.inheritedStays": {
|
|
2543
|
+
text: string;
|
|
2544
|
+
crowdinContext: string;
|
|
2545
|
+
};
|
|
2546
|
+
"objectShare.removeAccess.workspaceStays": {
|
|
2547
|
+
text: string;
|
|
2548
|
+
crowdinContext: string;
|
|
2549
|
+
};
|
|
2550
|
+
"objectShare.removeAccess.selfLoseAccess": {
|
|
2551
|
+
text: string;
|
|
2552
|
+
crowdinContext: string;
|
|
2553
|
+
};
|
|
2554
|
+
"objectShare.removeAccess.selfLoseEditAccess": {
|
|
2555
|
+
text: string;
|
|
2556
|
+
crowdinContext: string;
|
|
2557
|
+
};
|
|
2530
2558
|
"objectShare.workspaceLevel.inherited": {
|
|
2531
2559
|
text: string;
|
|
2532
2560
|
crowdinContext: string;
|