@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivotTableUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"pivotTableUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pivotTableUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBrD,OAAO,EACH,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACjB,MAAM,mCAAmC,CAAC;AAgE3C,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,YAMvF;AAED,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,SAAS,GACrB,IAAI,CAsCN;AAED,wBAAgB,4BAA4B,IAAI,SAAS,CAsCxD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, OverTimeComparisonTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { INCREASE_MAX_TABLE_ATTRIBUTES_ITEMS_LIMIT, INCREASE_MAX_TABLE_MEASURE_ITEMS_LIMIT, MAX_METRICS_COUNT, MAX_TABLE_CATEGORIES_COUNT, UICONFIG, defaultFilters, defaultRootUiConfigProperties, disabledOpenAsReportConfig, measuresBase, viewBase, } from "../../constants/uiConfig.js";
|
|
@@ -15,7 +16,7 @@ const tableRowsIcon = "local:table/bucket-title-rows.svg";
|
|
|
15
16
|
const tableColumnsIcon = "local:table/bucket-title-columns.svg";
|
|
16
17
|
function setPivotTableBucketWarningMessages(referencePoint, intl) {
|
|
17
18
|
const buckets = referencePoint?.buckets;
|
|
18
|
-
const updatedUiConfig =
|
|
19
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
19
20
|
if (!updatedUiConfig) {
|
|
20
21
|
return updatedUiConfig;
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pyramidChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pyramidChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/pyramidChartUiConfigHelper.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAQjF,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,uBAAuB,GAAG,uBAAuB,CASxG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.js";
|
|
6
7
|
// If you need to edit these icons
|
|
@@ -9,7 +10,7 @@ import { UICONFIG, disabledOpenAsReportConfig } from "../../constants/uiConfig.j
|
|
|
9
10
|
const pyramidMeasuresIcon = "local:pyramid/bucket-title-measures.svg";
|
|
10
11
|
const pyramidViewIcon = "local:pyramid/bucket-title-view.svg";
|
|
11
12
|
export function setPyramidChartUiConfig(referencePoint) {
|
|
12
|
-
const referencePointConfigured =
|
|
13
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
13
14
|
Object.assign(referencePointConfigured[UICONFIG], disabledOpenAsReportConfig);
|
|
14
15
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], pyramidMeasuresIcon);
|
|
15
16
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.VIEW, "icon"], pyramidViewIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"radarChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/radarChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA8CjF,wBAAgB,qBAAqB,CACjC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAgCzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -13,7 +14,7 @@ const radarTrendIcon = "local:radar/bucket-title-trend.svg";
|
|
|
13
14
|
const radarSegmentIcon = "local:radar/bucket-title-segment.svg";
|
|
14
15
|
function setRadarChartBucketWarningMessages(referencePoint, intl) {
|
|
15
16
|
const buckets = referencePoint?.buckets || [];
|
|
16
|
-
const updatedUiConfig =
|
|
17
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
17
18
|
const stackItems = getStackItems(buckets, [ATTRIBUTE, DATE]);
|
|
18
19
|
if (!updatedUiConfig) {
|
|
19
20
|
return updatedUiConfig;
|
|
@@ -41,7 +42,7 @@ function setRadarChartBucketWarningMessages(referencePoint, intl) {
|
|
|
41
42
|
return updatedUiConfig;
|
|
42
43
|
}
|
|
43
44
|
export function setRadarChartUiConfig(referencePoint, intl, visualizationType) {
|
|
44
|
-
const referencePointConfigured =
|
|
45
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
45
46
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
46
47
|
const measuresCanAddItems = hasNoMeasures(buckets) || hasNoStacksWithDate(buckets);
|
|
47
48
|
const segmentCanAddItems = hasSomeSegmentByItems(buckets) || hasNoMeasures(buckets) || hasOneMeasure(buckets);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repeaterUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"repeaterUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/repeaterUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EACH,KAAK,uBAAuB,EAE5B,KAAK,SAAS,EACjB,MAAM,mCAAmC,CAAC;AAI3C,eAAO,MAAM,0BAA0B,QAAO,SAAmD,CAAC;AASlG,wBAAgB,mBAAmB,CAC/B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,GAChB,uBAAuB,CAgCzB;AAED,eAAO,MAAM,qBAAqB,2BACN,uBAAuB,KAChD,uBAoBF,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
// (C) 2024-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2024-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { DEFAULT_REPEATER_UI_CONFIG, UICONFIG } from "../../constants/uiConfig.js";
|
|
7
8
|
import { getBucketItems, getMainRowAttribute, setBucketTitles } from "../bucketHelper.js";
|
|
8
9
|
import { hasNoAttribute, hasNoColumns } from "../bucketRules.js";
|
|
9
|
-
export const getDefaultRepeaterUiConfig = () =>
|
|
10
|
+
export const getDefaultRepeaterUiConfig = () => _cloneDeep(DEFAULT_REPEATER_UI_CONFIG);
|
|
10
11
|
// If you need to edit these icons
|
|
11
12
|
// reflect changes also in gdc-analytical-designer
|
|
12
13
|
// https://github.com/gooddata/gdc-analytical-designer/blob/develop/app/components/buckets/BucketIcon.tsx
|
|
@@ -14,7 +15,7 @@ const repeaterRowsIcon = "local:repeater/bucket-title-rows.svg";
|
|
|
14
15
|
const repeaterColumnsIcon = "local:repeater/bucket-title-columns.svg";
|
|
15
16
|
const repeaterViewIcon = "local:repeater/bucket-title-view.svg";
|
|
16
17
|
export function setRepeaterUiConfig(referencePoint, intl) {
|
|
17
|
-
const referencePointConfigured =
|
|
18
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
18
19
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
19
20
|
const attributeCanAddItems = hasNoAttribute(buckets);
|
|
20
21
|
const emptyColumns = hasNoColumns(buckets);
|
|
@@ -30,7 +31,7 @@ export function setRepeaterUiConfig(referencePoint, intl) {
|
|
|
30
31
|
return referencePointConfigured;
|
|
31
32
|
}
|
|
32
33
|
export const configRepeaterBuckets = (extendedReferencePoint) => {
|
|
33
|
-
const newExtendedReferencePoint =
|
|
34
|
+
const newExtendedReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
34
35
|
const { attribute, columns, view } = getRepeaterBucketItems(newExtendedReferencePoint);
|
|
35
36
|
set(newExtendedReferencePoint, BUCKETS, [
|
|
36
37
|
{
|
|
@@ -49,7 +50,7 @@ export const configRepeaterBuckets = (extendedReferencePoint) => {
|
|
|
49
50
|
return newExtendedReferencePoint;
|
|
50
51
|
};
|
|
51
52
|
const getRepeaterBucketItems = (extendedReferencePoint) => {
|
|
52
|
-
const newExtendedReferencePoint =
|
|
53
|
+
const newExtendedReferencePoint = _cloneDeep(extendedReferencePoint);
|
|
53
54
|
const buckets = newExtendedReferencePoint?.buckets ?? [];
|
|
54
55
|
const rowAttribute = getMainRowAttribute(buckets);
|
|
55
56
|
const columns = getBucketItems(buckets, BucketNames.COLUMNS);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sankeyChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sankeyChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/sankeyChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAwB,MAAM,mCAAmC,CAAC;AAkDvG,eAAO,MAAM,aAAa,2BAA4B,uBAAuB,KAAG,uBAoB/E,CAAC;AAEF,eAAO,MAAM,oBAAoB,2BACL,uBAAuB,QACzC,SAAS,qBACI,MAAM,KAC1B,uBAcF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { getAllAttributeItems, getAttributeFromItems, getAttributeToItems, getMeasureItems, limitNumberOfMeasuresInBuckets, setBucketTitles, } from "../bucketHelper.js";
|
|
@@ -11,7 +12,7 @@ const measureIcon = "local:sankey/bucket-title-measures.svg";
|
|
|
11
12
|
const fromIcon = "local:sankey/bucket-title-from.svg";
|
|
12
13
|
const toIcon = "local:sankey/bucket-title-to.svg";
|
|
13
14
|
const getBucketItems = (extendedReferencePoint) => {
|
|
14
|
-
const config =
|
|
15
|
+
const config = _cloneDeep(extendedReferencePoint);
|
|
15
16
|
const buckets = config?.buckets ?? [];
|
|
16
17
|
const limitedBuckets = limitNumberOfMeasuresInBuckets(buckets, 1);
|
|
17
18
|
const measures = getMeasureItems(limitedBuckets);
|
|
@@ -35,7 +36,7 @@ const getBucketItems = (extendedReferencePoint) => {
|
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
export const configBuckets = (extendedReferencePoint) => {
|
|
38
|
-
const config =
|
|
39
|
+
const config = _cloneDeep(extendedReferencePoint);
|
|
39
40
|
const { measures, attributeFroms, attributeTos } = getBucketItems(config);
|
|
40
41
|
set(config, BUCKETS, [
|
|
41
42
|
{
|
|
@@ -54,7 +55,7 @@ export const configBuckets = (extendedReferencePoint) => {
|
|
|
54
55
|
return config;
|
|
55
56
|
};
|
|
56
57
|
export const configSankeyUiConfig = (extendedReferencePoint, intl, visualizationType) => {
|
|
57
|
-
const referencePointConfigured =
|
|
58
|
+
const referencePointConfigured = _cloneDeep(extendedReferencePoint);
|
|
58
59
|
set(referencePointConfigured, [UICONFIG], setBucketTitles(referencePointConfigured, visualizationType, intl));
|
|
59
60
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], measureIcon);
|
|
60
61
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.ATTRIBUTE_FROM, "icon"], fromIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scatterPlotUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scatterPlotUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/scatterPlotUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAWjF,wBAAgB,sBAAsB,CAClC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAiBzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { getBucketItems, setBucketTitles } from "../bucketHelper.js";
|
|
@@ -12,7 +13,7 @@ const scatterMeasuresYIcon = "local:scatter/bucket-title-measures-y.svg";
|
|
|
12
13
|
const scatterViewIcon = "local:scatter/bucket-title-view.svg";
|
|
13
14
|
const scatterSegmentIcon = "local:scatter/bucket-title-segment.svg";
|
|
14
15
|
export function setScatterPlotUiConfig(referencePoint, intl, visualizationType) {
|
|
15
|
-
let referencePointConfigured =
|
|
16
|
+
let referencePointConfigured = _cloneDeep(referencePoint);
|
|
16
17
|
set(referencePointConfigured, UICONFIG, setBucketTitles(referencePoint, visualizationType, intl));
|
|
17
18
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.MEASURES, "icon"], scatterMeasuresXIcon);
|
|
18
19
|
set(referencePointConfigured, [UICONFIG, BUCKETS, BucketNames.SECONDARY_MEASURES, "icon"], scatterMeasuresYIcon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treemapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/treemapUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"treemapUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/treemapUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAuDjF,wBAAgB,kBAAkB,CAC9B,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CAsBzB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { ATTRIBUTE, BUCKETS, DATE } from "../../constants/bucket.js";
|
|
6
7
|
import { UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -16,7 +17,7 @@ const treemapViewIcon = "local:treemap/bucket-title-view.svg";
|
|
|
16
17
|
const treemapSegmentIcon = "local:treemap/bucket-title-segment.svg";
|
|
17
18
|
function setTreemapBucketWarningMessages(referencePoint, intl) {
|
|
18
19
|
const buckets = referencePoint?.buckets || [];
|
|
19
|
-
const updatedUiConfig =
|
|
20
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
20
21
|
const viewItems = getViewItems(buckets, [ATTRIBUTE, DATE]);
|
|
21
22
|
if (!updatedUiConfig) {
|
|
22
23
|
return updatedUiConfig;
|
|
@@ -47,7 +48,7 @@ function setTreemapBucketWarningMessages(referencePoint, intl) {
|
|
|
47
48
|
return updatedUiConfig;
|
|
48
49
|
}
|
|
49
50
|
export function setTreemapUiConfig(referencePoint, intl, visualizationType) {
|
|
50
|
-
const referencePointConfigured =
|
|
51
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
51
52
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
52
53
|
const measuresCanAddItems = !hasOneCategory(buckets) || hasNoMeasures(buckets);
|
|
53
54
|
const viewCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waterfallChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"waterfallChartUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/waterfallChartUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ5C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAsCjF,wBAAgB,yBAAyB,CACrC,cAAc,EAAE,uBAAuB,EACvC,IAAI,EAAE,SAAS,EACf,iBAAiB,EAAE,MAAM,GAC1B,uBAAuB,CA6BzB;AAED,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,WAM/D;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,UAE7E"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { messages } from "../../../locales.js";
|
|
5
6
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
6
7
|
import { OPEN_AS_REPORT, SUPPORTED, UICONFIG } from "../../constants/uiConfig.js";
|
|
@@ -15,7 +16,7 @@ const waterfallMeasuresIcon = "local:waterfall/bucket-title-measures.svg";
|
|
|
15
16
|
const waterfallViewIcon = "local:waterfall/bucket-title-view.svg";
|
|
16
17
|
function setWaterfallChartBucketWarningMessages(referencePoint, intl) {
|
|
17
18
|
const buckets = referencePoint?.buckets;
|
|
18
|
-
const updatedUiConfig =
|
|
19
|
+
const updatedUiConfig = _cloneDeep(referencePoint?.uiConfig);
|
|
19
20
|
if (!updatedUiConfig) {
|
|
20
21
|
return updatedUiConfig;
|
|
21
22
|
}
|
|
@@ -34,7 +35,7 @@ function setWaterfallChartBucketWarningMessages(referencePoint, intl) {
|
|
|
34
35
|
return updatedUiConfig;
|
|
35
36
|
}
|
|
36
37
|
export function setWaterfallChartUiConfig(referencePoint, intl, visualizationType) {
|
|
37
|
-
const referencePointConfigured =
|
|
38
|
+
const referencePointConfigured = _cloneDeep(referencePoint);
|
|
38
39
|
const buckets = referencePointConfigured?.buckets ?? [];
|
|
39
40
|
const measuresCanAddItems = !hasMoreThanOneCategory(buckets);
|
|
40
41
|
const viewCanAddItems = !hasMoreThanOneMasterMeasure(buckets, BucketNames.MEASURES);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xirrUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/xirrUiConfigHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"xirrUiConfigHelper.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/uiConfigHelpers/xirrUiConfigHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,OAAO,EAAqB,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAI5G,eAAO,MAAM,sBAAsB,QAAO,SAA8C,CAAC;AAmBzF,eAAO,MAAM,eAAe,mBAAoB,eAAe,QAAQ,SAAS,KAAG,SAqBlF,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
// (C) 2019-
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2019-2026 GoodData Corporation
|
|
2
|
+
import { set } from "lodash-es";
|
|
3
3
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _cloneDeep } from "@gooddata/util";
|
|
4
5
|
import { BUCKETS } from "../../constants/bucket.js";
|
|
5
6
|
import { DEFAULT_XIRR_UICONFIG } from "../../constants/uiConfig.js";
|
|
6
7
|
import { getItemsCount, setBucketTitles } from "../bucketHelper.js";
|
|
7
8
|
import { hasNoAttribute, hasNoMeasures } from "../bucketRules.js";
|
|
8
|
-
export const getDefaultXirrUiConfig = () =>
|
|
9
|
+
export const getDefaultXirrUiConfig = () => _cloneDeep(DEFAULT_XIRR_UICONFIG);
|
|
9
10
|
function getCustomError({ buckets }, formatMessage) {
|
|
10
11
|
const measuresCount = getItemsCount(buckets, BucketNames.MEASURES);
|
|
11
12
|
const attributeCount = getItemsCount(buckets, BucketNames.ATTRIBUTE);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-ext",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.7",
|
|
4
4
|
"description": "GoodData.UI SDK - Extensions",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"ts-invariant": "0.10.3",
|
|
64
64
|
"tslib": "2.8.1",
|
|
65
65
|
"uuid": "11.1.1",
|
|
66
|
-
"@gooddata/sdk-backend-base": "11.68.0-alpha.
|
|
67
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
68
|
-
"@gooddata/sdk-embedding": "11.68.0-alpha.
|
|
69
|
-
"@gooddata/sdk-
|
|
70
|
-
"@gooddata/sdk-
|
|
71
|
-
"@gooddata/sdk-ui": "11.68.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-ui-
|
|
75
|
-
"@gooddata/sdk-ui-kit": "11.68.0-alpha.
|
|
76
|
-
"@gooddata/sdk-ui-
|
|
77
|
-
"@gooddata/
|
|
78
|
-
"@gooddata/
|
|
79
|
-
"@gooddata/sdk-ui-
|
|
66
|
+
"@gooddata/sdk-backend-base": "11.68.0-alpha.7",
|
|
67
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.7",
|
|
68
|
+
"@gooddata/sdk-embedding": "11.68.0-alpha.7",
|
|
69
|
+
"@gooddata/sdk-model": "11.68.0-alpha.7",
|
|
70
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.7",
|
|
71
|
+
"@gooddata/sdk-ui-charts": "11.68.0-alpha.7",
|
|
72
|
+
"@gooddata/sdk-ui-filters": "11.68.0-alpha.7",
|
|
73
|
+
"@gooddata/sdk-ui-geo": "11.68.0-alpha.7",
|
|
74
|
+
"@gooddata/sdk-ui-pivot": "11.68.0-alpha.7",
|
|
75
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.7",
|
|
76
|
+
"@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.7",
|
|
77
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.7",
|
|
78
|
+
"@gooddata/util": "11.68.0-alpha.7",
|
|
79
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.7"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
"svgo": "2.8.4",
|
|
121
121
|
"typescript": "7.0.2",
|
|
122
122
|
"vitest": "5.0.4",
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/
|
|
126
|
-
"@gooddata/
|
|
127
|
-
"@gooddata/
|
|
128
|
-
"@gooddata/
|
|
123
|
+
"@gooddata/eslint-config": "11.68.0-alpha.7",
|
|
124
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.7",
|
|
125
|
+
"@gooddata/i18n-toolkit": "11.68.0-alpha.7",
|
|
126
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.7",
|
|
127
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.7",
|
|
128
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.7"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"react": "^18.0.0 || ^19.0.0",
|