@gooddata/sdk-ui-charts 11.68.0-alpha.1 → 11.68.0-alpha.3
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 +3 -3
- package/esm/charts/_commons/sanitizeStacking.d.ts.map +1 -1
- package/esm/charts/_commons/sanitizeStacking.js +2 -2
- package/esm/charts/headline/HeadlineProviderFactory.d.ts.map +1 -1
- package/esm/charts/headline/HeadlineProviderFactory.js +2 -2
- package/esm/charts/headline/internal/interfaces/BaseHeadlines.d.ts.map +1 -1
- package/esm/charts/headline/internal/interfaces/BaseHeadlines.js +2 -2
- package/esm/charts/headline/internal/providers/AbstractProvider.d.ts.map +1 -1
- package/esm/charts/headline/internal/providers/AbstractProvider.js +4 -3
- package/esm/charts/headline/internal/utils/HeadlineDataItemUtils.js +2 -2
- package/esm/charts/headline/internal/utils/HeadlineTransformationUtils.d.ts.map +1 -1
- package/esm/charts/headline/internal/utils/HeadlineTransformationUtils.js +4 -3
- package/esm/charts/xirr/internal/utils/XirrTransformationUtils.d.ts.map +1 -1
- package/esm/charts/xirr/internal/utils/XirrTransformationUtils.js +3 -2
- package/esm/highcharts/ChartTransformation.d.ts.map +1 -1
- package/esm/highcharts/ChartTransformation.js +3 -2
- package/esm/highcharts/adapter/HighChartsRenderer.d.ts.map +1 -1
- package/esm/highcharts/adapter/HighChartsRenderer.js +4 -3
- package/esm/highcharts/adapter/legendHelpers.d.ts.map +1 -1
- package/esm/highcharts/adapter/legendHelpers.js +3 -3
- package/esm/highcharts/adapter/plugins/autohideLabels/autohideColumnLabels.d.ts.map +1 -1
- package/esm/highcharts/adapter/plugins/autohideLabels/autohideColumnLabels.js +8 -7
- package/esm/highcharts/chartTypes/_chartCreators/commonConfiguration.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/commonConfiguration.js +3 -2
- package/esm/highcharts/chartTypes/_chartCreators/customConfiguration.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/customConfiguration.js +4 -3
- package/esm/highcharts/chartTypes/_chartCreators/helpers.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/helpers.js +6 -5
- package/esm/highcharts/chartTypes/_chartHighlighting/highlightPoints.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartHighlighting/highlightPoints.js +2 -2
- package/esm/highcharts/chartTypes/_chartOptions/chartAxes.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartOptions/chartAxes.js +4 -3
- package/esm/highcharts/chartTypes/_chartOptions/chartOptionsBuilder.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartOptions/chartOptionsBuilder.js +3 -2
- package/esm/highcharts/chartTypes/_chartOptions/tooltip.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartOptions/tooltip.js +3 -3
- package/esm/highcharts/chartTypes/_util/color.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_util/color.js +3 -3
- package/esm/highcharts/chartTypes/bulletChart/bulletChartSeries.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/bulletChart/bulletChartSeries.js +2 -2
- package/esm/highcharts/chartTypes/heatmap/heatmapColoring.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/heatmap/heatmapColoring.js +3 -2
- package/esm/highcharts/chartTypes/treemap/treemapChartSeries.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/treemap/treemapChartSeries.js +2 -2
- package/package.json +13 -13
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-6
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: d5b83a8355edc9eec2ad7787276b02a1a676cb3f
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -69383,4 +69383,4 @@ MIT
|
|
|
69383
69383
|
--------------------------------------------------------------------------------
|
|
69384
69384
|
--------------------------------------------------------------------------------
|
|
69385
69385
|
|
|
69386
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-6
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitizeStacking.d.ts","sourceRoot":"","sources":["../../../src/charts/_commons/sanitizeStacking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sanitizeStacking.d.ts","sourceRoot":"","sources":["../../../src/charts/_commons/sanitizeStacking.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EAM5B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAMpE,wBAAgB,cAAc,CAC1B,KAAK,GAAE,mBAAmB,EAAE,GAAG,OAAO,EAAO,EAC7C,MAAM,GAAE,YAAiB,GAC1B,YAAY,CAmBd;AAMD,wBAAgB,0BAA0B,CACtC,YAAY,EAAE,oBAAoB,EAClC,WAAW,EAAE,YAAY,GAC1B,YAAY,CAsBd"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { bucketItems, bucketsFind, isAttribute, isMeasure, measureDoesComputeRatio, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
function isItemsArray(obj) {
|
|
6
|
-
return !
|
|
6
|
+
return !_isEmpty(obj) && (isMeasure(obj[0]) || isAttribute(obj));
|
|
7
7
|
}
|
|
8
8
|
export function sanitizeConfig(input = [], config = {}) {
|
|
9
9
|
if (!input.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlineProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/charts/headline/HeadlineProviderFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeadlineProviderFactory.d.ts","sourceRoot":"","sources":["../../../src/charts/headline/HeadlineProviderFactory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAA6D,MAAM,qBAAqB,CAAC;AAI9G,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAS/D;;;;;;GAMG;AACH,QAAA,MAAM,sBAAsB,YAAa,OAAO,EAAE,UAAU,YAAY,GAAG,SAAS,KAAG,iBAOtF,CAAC;AAyBF;;GAEG;AACH,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { bucketMeasure, bucketMeasures, bucketsFind } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { ComparisonProvider } from "./internal/providers/ComparisonProvider.js";
|
|
6
6
|
import { MultiMeasuresProvider } from "./internal/providers/MultiMeasuresProvider.js";
|
|
7
7
|
var HeadlineType;
|
|
@@ -27,7 +27,7 @@ const getHeadlineType = (buckets, config) => {
|
|
|
27
27
|
const measureBucket = bucketsFind(buckets, BucketNames.MEASURES);
|
|
28
28
|
const primaryMeasure = measureBucket ? bucketMeasure(measureBucket) : undefined;
|
|
29
29
|
const secondaryBucket = bucketsFind(buckets, BucketNames.SECONDARY_MEASURES);
|
|
30
|
-
const secondaryMeasures =
|
|
30
|
+
const secondaryMeasures = _isEmpty(secondaryBucket) ? [] : bucketMeasures(secondaryBucket);
|
|
31
31
|
if (isComparisonType(primaryMeasure, secondaryMeasures, config?.comparison)) {
|
|
32
32
|
return HeadlineType.COMPARISON;
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseHeadlines.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/interfaces/BaseHeadlines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseHeadlines.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/interfaces/BaseHeadlines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,eAAO,MAAM,yBAAyB,EAAE,WAEvC,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,kBAAkB;IACzD,QAAQ,EAAE,CAAC,CAAC;IACZ,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,sBAAsB;IACrE,QAAQ,EAAE,CAAC,CAAC;IACZ,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACrC;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,MAAM,GAAG,IAAI,C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,2BAA2B,CACvC,QAAQ,EAAE,kBAAkB,GAC7B,QAAQ,IAAI,0BAA0B,CAExC;AAED,MAAM,WAAW,iBAAiB;IAC9B,WAAW,EAAE,iBAAiB,CAAC;IAC/B,aAAa,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACzC,YAAY,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC;IACZ,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { _isEmpty } from "@gooddata/util";
|
|
3
3
|
export const COMPARISON_DEFAULT_OBJECT = {
|
|
4
4
|
enabled: true,
|
|
5
5
|
};
|
|
@@ -10,5 +10,5 @@ export var EvaluationType;
|
|
|
10
10
|
EvaluationType["POSITIVE_VALUE"] = "positive";
|
|
11
11
|
})(EvaluationType || (EvaluationType = {}));
|
|
12
12
|
export function isComparisonDataWithSubItem(dataItem) {
|
|
13
|
-
return !
|
|
13
|
+
return !_isEmpty(dataItem) && dataItem.subItem !== undefined;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractProvider.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/providers/AbstractProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,KAAK,OAAO,EAAwC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AbstractProvider.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/providers/AbstractProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAE,KAAK,OAAO,EAAwC,MAAM,qBAAqB,CAAC;AAGzF,OAAO,EACH,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,4BAA4B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,8BAAsB,gBAAiB,YAAW,iBAAiB;IACxD,eAAe,CAClB,gBAAgB,EAAE,iBAAiB,EACnC,MAAM,EAAE,sBAAsB,GAC/B,kBAAkB,CAgBpB;IAED,SAAgB,kCAAkC,IAAI,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAElG,SAAS,CAAC,cAAc,CAAC,eAAe,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAE9D;CACJ"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
// (C) 2023-
|
|
2
|
-
import { clone
|
|
1
|
+
// (C) 2023-2026 GoodData Corporation
|
|
2
|
+
import { clone } from "lodash-es";
|
|
3
3
|
import { MeasureGroupIdentifier, newDimension } from "@gooddata/sdk-model";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
export class AbstractProvider {
|
|
5
6
|
createExecution(executionFactory, params) {
|
|
6
7
|
const { buckets, filters, executionConfig, dateFormat, sortItems } = params;
|
|
@@ -11,7 +12,7 @@ export class AbstractProvider {
|
|
|
11
12
|
if (dateFormat) {
|
|
12
13
|
execution.withDateFormat(dateFormat);
|
|
13
14
|
}
|
|
14
|
-
if (!
|
|
15
|
+
if (!_isEmpty(sortItems)) {
|
|
15
16
|
execution.withSorting(...(sortItems ?? []));
|
|
16
17
|
}
|
|
17
18
|
return execution;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { isEmpty } from "lodash-es";
|
|
4
3
|
import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
5
4
|
import { getHeadlineResponsiveClassName } from "@gooddata/sdk-ui-vis-commons";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
const DEFAULT_VALUE_WHEN_EMPTY = "–";
|
|
7
7
|
const INVALID_VALUE = "NaN";
|
|
8
8
|
const PERCENTAGE_VALUE_LIMIT = 999;
|
|
@@ -10,7 +10,7 @@ function formatValueToLabelWithColors(value, format, separators) {
|
|
|
10
10
|
const parsedNumber = ClientFormatterFacade.convertValue(value);
|
|
11
11
|
// Based on the tests, when a format is not provided, we should refrain from formatting the value using the formatter, as the default format "#,##0.00" will be used.
|
|
12
12
|
// Additionally, the test necessitates that the value should remain unformatted.
|
|
13
|
-
if (!
|
|
13
|
+
if (!_isEmpty(format)) {
|
|
14
14
|
return ClientFormatterFacade.formatValue(parsedNumber, format, separators);
|
|
15
15
|
}
|
|
16
16
|
if (parsedNumber === null || parsedNumber === undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlineTransformationUtils.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/utils/HeadlineTransformationUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACH,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EAGxB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"HeadlineTransformationUtils.d.ts","sourceRoot":"","sources":["../../../../../src/charts/headline/internal/utils/HeadlineTransformationUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACH,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EAGxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAExF,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,KAAK,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACtC,eAAe,EAAE,UAAU,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,mBAAmB,CAAC;CAChC;AAiCD,wBAAgB,sBAAsB,CAClC,iBAAiB,EAAE,sBAAsB,GAAG,SAAS,EACrD,WAAW,CAAC,EAAE,OAAO,GACtB,iBAAiB,GAAG,IAAI,CAe1B;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,cAAc,GAAG,sBAAsB,EAAE,CAe7E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,aAAa,CAiBnF;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,aAAa,EAC3B,cAAc,EAAE,gBAAgB,EAAE,EAClC,QAAQ,EAAE,SAAS,GACpB,aAAa,CAef;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAC/B,WAAW,EAAE,yBAAyB,EACtC,QAAQ,EAAE,SAAS,EACnB,aAAa,CAAC,EAAE,WAAW,EAC3B,gBAAgB,CAAC,EAAE,iBAAiB,GACrC,WAAW,CA4Bb"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep
|
|
2
|
+
import { cloneDeep } from "lodash-es";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { DataViewFacade, VisualizationTypes, isSomeHeaderPredicateMatched, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
6
|
function createTertiaryItem(executionData, intl) {
|
|
6
7
|
const secondaryHeaderItem = executionData?.[1]?.measureHeaderItem;
|
|
7
8
|
if (!secondaryHeaderItem) {
|
|
@@ -85,10 +86,10 @@ export function applyDrillableItems(headlineData, drillableItems, dataView) {
|
|
|
85
86
|
const data = cloneDeep(headlineData);
|
|
86
87
|
const { primaryItem, secondaryItem } = data;
|
|
87
88
|
const [primaryItemHeader, secondaryItemHeader] = dv.meta().measureDescriptors();
|
|
88
|
-
if (!
|
|
89
|
+
if (!_isEmpty(primaryItem) && !_isEmpty(primaryItemHeader)) {
|
|
89
90
|
primaryItem.isDrillable = isSomeHeaderPredicateMatched(drillableItems, primaryItemHeader, dv);
|
|
90
91
|
}
|
|
91
|
-
if (!
|
|
92
|
+
if (!_isEmpty(secondaryItem) && !_isEmpty(secondaryItemHeader)) {
|
|
92
93
|
secondaryItem.isDrillable = isSomeHeaderPredicateMatched(drillableItems, secondaryItemHeader, dv);
|
|
93
94
|
}
|
|
94
95
|
return data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XirrTransformationUtils.d.ts","sourceRoot":"","sources":["../../../../../src/charts/xirr/internal/utils/XirrTransformationUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EAIxB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"XirrTransformationUtils.d.ts","sourceRoot":"","sources":["../../../../../src/charts/xirr/internal/utils/XirrTransformationUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAGhB,KAAK,gBAAgB,EAIxB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAIxF,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IAClC,eAAe,EAAE,UAAU,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,mBAAmB,CAAC;CAChC;AAyCD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,GAAG,aAAa,CAgBlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAC/B,YAAY,EAAE,aAAa,EAC3B,cAAc,EAAE,gBAAgB,EAAE,EAClC,QAAQ,EAAE,SAAS,GACpB,aAAa,CAWf;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,SAAS,GAAG,WAAW,CAqBxG"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep
|
|
2
|
+
import { cloneDeep } from "lodash-es";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { DataViewFacade, VisualizationTypes, getMappingHeaderFormattedName, isSomeHeaderPredicateMatched, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
6
|
import { calculateXirr } from "./calculateXirr.js";
|
|
6
7
|
const computeXirr = (executionData) => {
|
|
7
8
|
// prevent errors on invalid inputs
|
|
@@ -70,7 +71,7 @@ export function applyDrillableItems(headlineData, drillableItems, dataView) {
|
|
|
70
71
|
const data = cloneDeep(headlineData);
|
|
71
72
|
const { primaryItem } = data;
|
|
72
73
|
const [primaryItemHeader] = dv.meta().measureDescriptors();
|
|
73
|
-
if (!
|
|
74
|
+
if (!_isEmpty(primaryItem) && !_isEmpty(primaryItemHeader)) {
|
|
74
75
|
primaryItem.isDrillable = isSomeHeaderPredicateMatched(drillableItems, primaryItemHeader, dv);
|
|
75
76
|
}
|
|
76
77
|
return data;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartTransformation.d.ts","sourceRoot":"","sources":["../../src/highcharts/ChartTransformation.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAoC,MAAM,OAAO,CAAC;AAQ5E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAQzB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAuB,KAAK,iBAAiB,EAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChartTransformation.d.ts","sourceRoot":"","sources":["../../src/highcharts/ChartTransformation.tsx"],"names":[],"mappings":"AAEA,OAAO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E,wBAAwB,GAAG,YAAY,CAAC;IAEvD,gBAAgB,CAAC,EAAE,iBAAiB,CAAC;CACxC;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gSAkBzB,yBAAyB,uFAwK/B,CAAC"}
|
|
@@ -2,13 +2,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
// (C) 2007-2026 GoodData Corporation
|
|
3
3
|
import { memo, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
import Highcharts from "highcharts/esm/highcharts.js";
|
|
5
|
-
import {
|
|
5
|
+
import { omitBy } from "lodash-es";
|
|
6
6
|
import { useIntl } from "react-intl";
|
|
7
7
|
import { invariant } from "ts-invariant";
|
|
8
8
|
import { DataViewFacade, anomaliesTitleFromIntl, clusterTitleFromIntl, convertDrillableItemsToPredicates, createNumberFormatter, emptyHeaderTitleFromIntl, formatAttributeHeaderValues, totalColumnTitleFromIntl, } from "@gooddata/sdk-ui";
|
|
9
9
|
import { useContainingOverlayZIndex } from "@gooddata/sdk-ui-kit";
|
|
10
10
|
import { useReferenceTheme, useTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
11
11
|
import { useTooltipLookup } from "@gooddata/sdk-ui-vis-commons";
|
|
12
|
+
import { _isEqual } from "@gooddata/util";
|
|
12
13
|
import { initChartPlugins } from "./adapter/chartPlugins.js";
|
|
13
14
|
import { HighChartsMeasuredRenderer } from "./adapter/HighChartsMeasuredRenderer.js";
|
|
14
15
|
import { HighChartsRenderer, renderChart as chartRenderer, renderLegend as legendRenderer, } from "./adapter/HighChartsRenderer.js";
|
|
@@ -153,5 +154,5 @@ export const ChartTransformation = memo(function ChartTransformation({ config: c
|
|
|
153
154
|
config,
|
|
154
155
|
});
|
|
155
156
|
}, (props, nextProps) => {
|
|
156
|
-
return
|
|
157
|
+
return _isEqual(omitBy(props, (v) => typeof v === "function"), omitBy(nextProps, (v) => typeof v === "function"));
|
|
157
158
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighChartsRenderer.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/HighChartsRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAQpB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,YAAY,EAEpB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"HighChartsRenderer.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/HighChartsRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAQpB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,YAAY,EAEpB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAUpE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAwC,MAAM,iBAAiB,CAAC;AAE5G,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,sBAAsB,CAAC;AAElG,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAIrD;;GAEG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,QAAQ,IAAI,MAAM,CAAC;IAEnB,eAAe,IAAI,WAAW,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACr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Ref, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import * as jsYaml from "js-yaml";
|
|
6
|
-
import {
|
|
6
|
+
import { partial, set, throttle } from "lodash-es";
|
|
7
7
|
import { v4 } from "uuid";
|
|
8
8
|
import { LoadingComponent, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
9
9
|
import { Bubble, BubbleHoverTrigger, IconUndo } from "@gooddata/sdk-ui-kit";
|
|
10
10
|
import { Legend, getLegendDetails, } from "@gooddata/sdk-ui-vis-commons";
|
|
11
|
+
import { _isEqual } from "@gooddata/util";
|
|
11
12
|
import { alignChart } from "../chartTypes/_chartCreators/helpers.js";
|
|
12
13
|
import { isFunnel, isHeatmap, isOneOfTypes, isPieOrDonutChart, isSankeyOrDependencyWheel, isWaterfall, } from "../chartTypes/_util/common.js";
|
|
13
14
|
import { BOTTOM, LEFT, RIGHT, TOP } from "../typings/mess.js";
|
|
@@ -222,11 +223,11 @@ export const HighChartsRenderer = memo(function HighChartsRenderer({ chartOption
|
|
|
222
223
|
useEffect(() => {
|
|
223
224
|
const thisLegendItems = previousLegendItemsRef.current;
|
|
224
225
|
const nextLegendItems = legend?.items ?? [];
|
|
225
|
-
const hasLegendChanged = !
|
|
226
|
+
const hasLegendChanged = !_isEqual(thisLegendItems, nextLegendItems);
|
|
226
227
|
if (hasLegendChanged) {
|
|
227
228
|
resetLegendState(nextLegendItems);
|
|
228
229
|
}
|
|
229
|
-
if (!
|
|
230
|
+
if (!_isEqual(previousLegendItemsRef.current, nextLegendItems)) {
|
|
230
231
|
onLegendReady({
|
|
231
232
|
legendItems: getItems(nextLegendItems),
|
|
232
233
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legendHelpers.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/legendHelpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legendHelpers.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/legendHelpers.ts"],"names":[],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gB,cAAc,CAAC,YAAY,EAAE,aAAa,GAAG,OAAO,CAMnE;AAED,wBAAgB,0BAA0B,CACtC,YAAY,EAAE,aAAa,EAC3B,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;KAiB5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// (C) 2007-
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
2
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
3
|
import { LEGEND_AXIS_INDICATOR, LEGEND_SEPARATOR, getColorByGuid, getRgbStringFromRGB, } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { supportedDualAxesChartTypes } from "../chartTypes/_chartOptions/chartCapabilities.js";
|
|
6
6
|
import { getChartFillProperties } from "../chartTypes/_chartOptions/patternFillOptions.js";
|
|
7
7
|
import { DEFAULT_WATERFALL_COLORS } from "../chartTypes/_util/color.js";
|
|
@@ -108,7 +108,7 @@ export function getComboChartSeries(series) {
|
|
|
108
108
|
const secondaryType = secondaryItem.type || VisualizationTypes.LINE;
|
|
109
109
|
const [firstAxisKey, secondAxisKey] = LEGEND_TEXT_KEYS["combo"];
|
|
110
110
|
// convert to dual axis series when there is only one chart type
|
|
111
|
-
if (
|
|
111
|
+
if (_isEmpty(secondaryItems)) {
|
|
112
112
|
return transformToDualAxesSeries(series, primaryType);
|
|
113
113
|
}
|
|
114
114
|
// all measures display on same axis
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autohideColumnLabels.d.ts","sourceRoot":"","sources":["../../../../../src/highcharts/adapter/plugins/autohideLabels/autohideColumnLabels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autohideColumnLabels.d.ts","sourceRoot":"","sources":["../../../../../src/highcharts/adapter/plugins/autohideLabels/autohideColumnLabels.ts"],"names":[],"mappings":"AAkCA,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAoH3G,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,KAAK,EAAE,GAAG,OAAO,CAUlE;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,iBAAiB,EAAE,EAAE,GAAG,OAAO,CAejF;AAGD,wBAAgB,2BAA2B,CACvC,MAAM,EAAE,KAAK,EAAE,EACf,aAAa,EAAE,KAAK,EAAE,EACtB,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAuCT;AAMD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,CAUjF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,aAAa,EAAE,CAS7E;AAoDD,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,KAAK,SAKhE,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,UAAU,CAAC,KAAK,KAAG,IAoB9D,CAAC;AAEF,eAAO,MAAM,8BAA8B,UAAW,UAAU,CAAC,KAAK,KAAG,IAsBxE,CAAC;AAEF,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,GAAG,UAAU,CAAC,KAAK,EAAE,CAM3F;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,UAAU,EAAE,CAapE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { zip } from "lodash-es";
|
|
3
3
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { areLabelsStacked, getDataLabelAttributes, getShapeVisiblePart, hasDataLabel, hasLabelInside, hasShape, hideDataLabel, hideDataLabels, setStackVisibilityByOpacity, showDataLabelInAxisRange, showStackLabelInAxisRange, } from "../../../chartTypes/_chartCreators/dataLabelsHelpers.js";
|
|
5
6
|
import { getAxisRangeForAxes, getAxisWithCategories, getDataPointsOfVisibleSeries, getPointsVisibleInAxisRange, getShapeAttributes, isIntersecting, isPointVisibleInAxisRange, isStacked, toNeighbors, } from "../../../chartTypes/_chartCreators/helpers.js";
|
|
6
7
|
import { convertToChartType, isWaterfall } from "../../../chartTypes/_util/common.js";
|
|
@@ -95,7 +96,7 @@ export function isOverlappingWidth(visiblePoints) {
|
|
|
95
96
|
export function areNeighborsOverlapping(neighbors) {
|
|
96
97
|
return neighbors.some((labelsPair) => {
|
|
97
98
|
const [firstLabel, nextLabel] = labelsPair || [];
|
|
98
|
-
if (!
|
|
99
|
+
if (!_isEmpty(firstLabel) && !_isEmpty(nextLabel)) {
|
|
99
100
|
const firstClientRect = firstLabel.element.getBoundingClientRect();
|
|
100
101
|
const nextClientRect = nextLabel.element.getBoundingClientRect();
|
|
101
102
|
if (firstClientRect && nextClientRect) {
|
|
@@ -110,7 +111,7 @@ export function areNeighborsOverlapping(neighbors) {
|
|
|
110
111
|
// Check if Total label overlapping other columns
|
|
111
112
|
export function areLabelsOverlappingColumns(labels, visiblePoints, chartType) {
|
|
112
113
|
return labels.some((label) => {
|
|
113
|
-
if (
|
|
114
|
+
if (_isEmpty(label)) {
|
|
114
115
|
return false;
|
|
115
116
|
}
|
|
116
117
|
const { x, y, width, height } = label.element.getBoundingClientRect();
|
|
@@ -122,8 +123,8 @@ export function areLabelsOverlappingColumns(labels, visiblePoints, chartType) {
|
|
|
122
123
|
};
|
|
123
124
|
return visiblePoints.some((point) => {
|
|
124
125
|
const convertedSeriesType = convertToChartType(point?.series?.options?.type);
|
|
125
|
-
if (
|
|
126
|
-
|
|
126
|
+
if (_isEmpty(point) ||
|
|
127
|
+
_isEmpty(point.graphic) ||
|
|
127
128
|
// supportedDualAxesChartTypes is including AREA and LINE
|
|
128
129
|
// won't hide the stacked label if it overlaps with points of AREA and LINE
|
|
129
130
|
convertedSeriesType === VisualizationTypes.AREA ||
|
|
@@ -163,7 +164,7 @@ export function getStackLabelPointsForDualAxis(stacks) {
|
|
|
163
164
|
export function getStackTotalGroups(yAxis) {
|
|
164
165
|
return yAxis
|
|
165
166
|
.flatMap((axis) => {
|
|
166
|
-
if (!
|
|
167
|
+
if (!_isEmpty(axis?.stacking.stacks)) {
|
|
167
168
|
return axis?.stacking.stackTotalGroup;
|
|
168
169
|
}
|
|
169
170
|
return axis.series.map((serie) => serie.dataLabelsGroup);
|
|
@@ -250,7 +251,7 @@ export function getLabelOrDataLabelForPoints(points) {
|
|
|
250
251
|
}
|
|
251
252
|
export function getStackItems(yAxis) {
|
|
252
253
|
return yAxis.flatMap((axis) => {
|
|
253
|
-
if (!
|
|
254
|
+
if (!_isEmpty(axis?.stacking.stacks)) {
|
|
254
255
|
return axis?.stacking.stacks;
|
|
255
256
|
}
|
|
256
257
|
const series = axis.series;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/commonConfiguration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"commonConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/commonConfiguration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAUvE,OAAO,EAAkB,KAAK,aAAa,EAAwB,MAAM,yBAAyB,CAAC;AAkBnG,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,0BAA0B,QAAmB,CAAC;AAoiB3D,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,UACzB,GAAG,KAAG,IAAI,CASpC;AASD,wBAAgB,sBAAsB,CAClC,YAAY,EAAE,aAAa,EAC3B,WAAW,EAAE,YAAY,EACzB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,YAAY,EACrB,IAAI,CAAC,EAAE,SAAS,GACjB,GAAG,CASL"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import Highcharts from "highcharts/esm/highcharts.js";
|
|
3
|
-
import { invoke,
|
|
3
|
+
import { invoke, set } from "lodash-es";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { getBackplateLabelColor, getBackplateStackedLabelStyling, getBlackLabelStyle, getBlackStackedLabelStyle, } from "../../constants/label.js";
|
|
5
6
|
import { DEFAULT_CATEGORIES_LIMIT } from "../../constants/limits.js";
|
|
6
7
|
import { isHighContrastMode } from "../../utils/highContrastMode.js";
|
|
@@ -62,7 +63,7 @@ function handleTouchDeviceClick(context) {
|
|
|
62
63
|
const currentChart = context.series.chart;
|
|
63
64
|
const currentId = currentChart?.container?.id;
|
|
64
65
|
const prevId = previousChart?.container?.id;
|
|
65
|
-
const previousChartDisconnected =
|
|
66
|
+
const previousChartDisconnected = _isEmpty(previousChart);
|
|
66
67
|
if (previousChart && !previousChartDisconnected && prevId !== currentId) {
|
|
67
68
|
// Remove line chart point bubble
|
|
68
69
|
invoke(previousChart, "hoverSeries.onMouseOut");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/customConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/customConfiguration.ts"],"names":[],"mappings":"AAaA,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEzF,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EAMzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAMtB,KAAK,mCAAmC,EAC3C,MAAM,yBAAyB,CAAC;AAsDjC,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AA0D/E,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,2BAA2B,KAAK,CAAC;AA2D9C,wBAAgB,mCAAmC,CAC/C,IAAI,EAAE,UAAU,CAAC,gCAAgC,EACjD,QAAQ,EAAE,GAAG,GACd,MAAM,CAkBR;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,CAAC,gCAAgC,GAAG,MAAM,CAiB3F;AAoFD,wBAAgB,kCAAkC,CAC9C,IAAI,EAAE,UAAU,CAAC,OAAO,EACxB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,mCAAmC,GAC3C;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAmB1B;AA8CD,wBAAgB,4BAA4B,CACxC,IAAI,EAAE,UAAU,CAAC,OAAO,EACxB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,mCAAmC,GAC3C;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CA2B1B;AA+JD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,YAAY,iBAa5E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,MAAM,CAO3F;AA6hBD,wBAAgB,gBAAgB,CAC5B,cAAc,EAAE,iBAAiB,CAAC,YAAY,CAAC,GAChD,iBAAiB,CAAC,YAAY,CAAC,CAajC;AA6ND,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,aAAa,EAC3B,aAAa,EAAE,MAAM,aAAa,EAClC,6BAA6B,EAAE,OAAO,GACvC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CActB;AAqED,eAAO,MAAM,oBAAoB,iBACf,aAAa,gBACb,YAAY,GAAG,YAAY,GAAG,sBAAsB,GAAG,sBAAsB,eAC9E,YAAY,cACb,MAAM,GAAG,SAAS,KAC/B;IAAE,SAAS,CAAC,EAAE,mCAAmC,CAAA;CAWnD,CAAC;AA0UF,wBAAgB,0BAA0B,CAAC,EACvC,YAAY,EACZ,WAAW,EACX,WAAW,EACX,IAAI,EACJ,KAAK,GACR,EAAE,yBAAyB,GAAG,iBAAiB,CA2C/C"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import { compact,
|
|
3
|
+
import { compact, merge, partial, pickBy } from "lodash-es";
|
|
4
4
|
import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
5
5
|
import { isMeasureFormatInPercent } from "@gooddata/sdk-model";
|
|
6
6
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
7
7
|
import { buildTooltipLocalizedStrings, getLighterColor, isPatternObject } from "@gooddata/sdk-ui-vis-commons";
|
|
8
|
+
import { _isEmpty } from "@gooddata/util";
|
|
8
9
|
import { getBlackLabelStyle } from "../../constants/label.js";
|
|
9
10
|
import { DEFAULT_TOOLTIP_Z_INDEX } from "../../tooltipZIndex.js";
|
|
10
11
|
import { isHighContrastMode } from "../../utils/highContrastMode.js";
|
|
@@ -338,7 +339,7 @@ function formatLabel(value, format, config = {}) {
|
|
|
338
339
|
const parsedNumber = typeof value === "string" ? parseFloat(value) : value;
|
|
339
340
|
// Based on the tests, when a format is not provided, we should refrain from formatting the value using the formatter, as the default format "#,##0.00" will be used.
|
|
340
341
|
// Additionally, the test necessitates that the value should remain unformatted.
|
|
341
|
-
if (!
|
|
342
|
+
if (!_isEmpty(format)) {
|
|
342
343
|
const formatted = ClientFormatterFacade.formatValue(parsedNumber, format, separators);
|
|
343
344
|
return escapeAngleBrackets(formatted.formattedValue);
|
|
344
345
|
}
|
|
@@ -1023,7 +1024,7 @@ export function areAxisLabelsEnabled(chartOptions, axisPropsName, shouldCheckFor
|
|
|
1023
1024
|
const data = chartOptions.data || EMPTY_DATA;
|
|
1024
1025
|
const { type } = chartOptions;
|
|
1025
1026
|
const categories = isHeatmap(type) ? data.categories : escapeCategories(data.categories);
|
|
1026
|
-
const categoriesFlag = shouldCheckForEmptyCategories ? !
|
|
1027
|
+
const categoriesFlag = shouldCheckForEmptyCategories ? !_isEmpty(compact(categories)) : true;
|
|
1027
1028
|
const axisOptions = chartOptions?.[axisPropsName];
|
|
1028
1029
|
const visible = axisOptions?.visible ?? true;
|
|
1029
1030
|
const labelsEnabled = axisOptions?.labelsEnabled ?? true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAsB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAsB,MAAM,kBAAkB,CAAC;AAGpE,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAG7F,OAAO,EACH,KAAK,aAAa,EAElB,KAAK,WAAW,EAEnB,MAAM,yBAAyB,CAAC;AAGjC,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAGD,eAAO,MAAM,wBAAwB,OAC7B,aAAa,MACb,aAAa,YACR,MAAM,KAChB,OAIuC,CAAC;AAE3C,eAAO,MAAM,cAAc,OAAQ,WAAW,MAAM,WAAW,KAAG,OACwC,CAAC;AAE3G,eAAO,MAAM,WAAW,UAAW,GAAG,EAAE,KAAG,GAAG,EAAsC,CAAC;AAErF,eAAO,MAAM,gBAAgB,UAAW,UAAU,CAAC,KAAK,KAAG,UAAU,CAAC,MAAM,EACf,CAAC;AAE9D,eAAO,MAAM,eAAe,UAAW,UAAU,CAAC,KAAK,KAAG,UAAU,CAAC,MAAM,EACb,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAY,UAAU,CAAC,MAAM,EAAE,KAAG,UAAU,CAAC,KAAK,EACH,CAAC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D,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,GAAG,OAAO,CAgBpG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { compact, initial,
|
|
2
|
+
import { compact, initial, max, maxBy, min, minBy, pick, tail, unzip, zip } from "lodash-es";
|
|
3
3
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { BOTTOM, MIDDLE, TOP } from "../../constants/alignments.js";
|
|
5
6
|
import { MEKKO_SERIES_TYPE, isInvertedChartType } from "../_util/common.js";
|
|
6
7
|
// https://silentmatt.com/rectangle-intersection/
|
|
@@ -27,7 +28,7 @@ export const isStacked = (chart) => {
|
|
|
27
28
|
const chartTypeOptions = chart.userOptions?.plotOptions?.[chartType];
|
|
28
29
|
const isStackedByChartType = !!chartTypeOptions?.stacking;
|
|
29
30
|
const isStackedBySeries = !!chart.userOptions?.plotOptions?.series?.stacking;
|
|
30
|
-
const hasStackedAxis = chart.axes.some((axis) => !
|
|
31
|
+
const hasStackedAxis = chart.axes.some((axis) => !_isEmpty(axis?.stacking?.stacks));
|
|
31
32
|
return (isStackedByChartType || isStackedBySeries) && hasStackedAxis;
|
|
32
33
|
};
|
|
33
34
|
export function getChartProperties(config, type) {
|
|
@@ -42,10 +43,10 @@ export function getChartProperties(config, type) {
|
|
|
42
43
|
const secondaryYAxisProps = isInvertedType
|
|
43
44
|
? { ...config.secondary_xaxis }
|
|
44
45
|
: { ...config.secondary_yaxis };
|
|
45
|
-
if (!
|
|
46
|
+
if (!_isEmpty(secondaryXAxisProps)) {
|
|
46
47
|
chartProps.secondary_xAxisProps = secondaryXAxisProps;
|
|
47
48
|
}
|
|
48
|
-
if (!
|
|
49
|
+
if (!_isEmpty(secondaryYAxisProps)) {
|
|
49
50
|
chartProps.secondary_yAxisProps = secondaryYAxisProps;
|
|
50
51
|
}
|
|
51
52
|
return chartProps;
|
|
@@ -104,7 +105,7 @@ export function shouldFollowPointerForDualAxes(chartOptions) {
|
|
|
104
105
|
chartOptions?.yAxisProps?.max,
|
|
105
106
|
chartOptions?.secondary_yAxisProps?.min,
|
|
106
107
|
chartOptions?.secondary_yAxisProps?.max,
|
|
107
|
-
].some((item) => !
|
|
108
|
+
].some((item) => !_isEmpty(item));
|
|
108
109
|
return yAxes.length > 1 && hasMinMaxValue;
|
|
109
110
|
}
|
|
110
111
|
function isMinMaxLimitData(chartOptions, key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlightPoints.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartHighlighting/highlightPoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"highlightPoints.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartHighlighting/highlightPoints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,WAAY,UAAU,CAAC,MAAM,EAAE,WAAW,YAAY,SA2BtF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iCAAiC,YAAa,YAAY;;;;CAEtE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
2
|
import cx from "classnames";
|
|
3
|
-
import {
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Adds highlighting class to chart points based on provided drill intersections.
|
|
6
6
|
*
|
|
@@ -19,7 +19,7 @@ export const highlightChartPoints = (series, config) => {
|
|
|
19
19
|
series.forEach((seriesItem) => {
|
|
20
20
|
seriesItem.points.forEach((point) => {
|
|
21
21
|
selectedPoints.forEach((selectedPointIntersection) => {
|
|
22
|
-
if (
|
|
22
|
+
if (_isEqual(point.drillIntersection, selectedPointIntersection)) {
|
|
23
23
|
/**
|
|
24
24
|
* In case of waterfall chart, we make sure that the `x` value is not changed.
|
|
25
25
|
* For some reason it was always changed after any class update and categories were reordered and moved.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartAxes.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartAxes.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chartAxes.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartAxes.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAmCvE,wBAAgB,QAAQ,CACpB,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,eAAe,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACvE,qBAAqB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EAC7E,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,GAChC,KAAK,EAAE,CAqDT;AAsID,wBAAgB,QAAQ,CACpB,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,GACzE,KAAK,EAAE,CAoCT;AAuCD,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,CAgBhF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { compact,
|
|
2
|
+
import { compact, range } from "lodash-es";
|
|
3
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
5
|
import { isBarChart, isBubbleChart, isComboChart, isHeatmap, isLineChart, isMekko, isOneOfTypes, isScatterPlot, isSupportingJoinedAttributeAxisName, unwrap, } from "../_util/common.js";
|
|
5
6
|
import { getMekkoMeasures } from "../mekko/mekkoChartOptions.js";
|
|
6
7
|
import { supportedDualAxesChartTypes } from "./chartCapabilities.js";
|
|
@@ -166,8 +167,8 @@ export function getYAxes(dv, config, measureGroup, stackByAttribute) {
|
|
|
166
167
|
return getMekkoYAxes(dv, config, measureGroup);
|
|
167
168
|
}
|
|
168
169
|
const isDualAxes = isOneOfTypes(type, supportedDualAxesChartTypes) &&
|
|
169
|
-
!
|
|
170
|
-
!
|
|
170
|
+
!_isEmpty(measureGroupItems) &&
|
|
171
|
+
!_isEmpty(secondaryAxisMeasures);
|
|
171
172
|
if (isDualAxes) {
|
|
172
173
|
return getDualAxesYAxes(secondaryAxisMeasures, measureGroup);
|
|
173
174
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartOptionsBuilder.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartOptionsBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAyD,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAEH,cAAc,EACd,K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AAG,IAAI,CAAC;IACnE,gBAAgB,CAAC,EAAE,mCAAmC,GAAG,IAAI,CAAC;IAC9D,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAsFF,wBAAgB,eAAe,CAC3B,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,YAAY,EACzB,cAAc,EAAE,gBAAgB,EAAE,EAClC,gBAAgB,EAAE,MAAM,EACxB,KAAK,CAAC,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,MAAM,EACzB,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,GACxB,aAAa,CAggBf"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { cloneDeep,
|
|
2
|
+
import { cloneDeep, without } from "lodash-es";
|
|
3
3
|
import { invariant } from "ts-invariant";
|
|
4
4
|
import { BucketNames, DataViewFacade, VisualizationTypes, getMappingHeaderFormattedName, } from "@gooddata/sdk-ui";
|
|
5
5
|
import { valueWithEmptyHandling } from "@gooddata/sdk-ui-vis-commons";
|
|
6
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
7
|
import { ViewByAttributesLimit } from "../../../interfaces/limits.js";
|
|
7
8
|
import { PARENT_ATTRIBUTE_INDEX, PRIMARY_ATTRIBUTE_INDEX, STACK_BY_DIMENSION_INDEX, VIEW_BY_DIMENSION_INDEX, } from "../../constants/dimensions.js";
|
|
8
9
|
import { getChartProperties } from "../_chartCreators/helpers.js";
|
|
@@ -86,7 +87,7 @@ export const HEAT_MAP_CATEGORIES_COUNT = 7;
|
|
|
86
87
|
export const DEFAULT_HEATMAP_COLOR_INDEX = 1;
|
|
87
88
|
export function getHeatmapDataClasses(series = [], colorStrategy) {
|
|
88
89
|
const values = without((series[0]?.data ?? []).map((item) => item.value), null, undefined, NaN);
|
|
89
|
-
if (
|
|
90
|
+
if (_isEmpty(values)) {
|
|
90
91
|
return [];
|
|
91
92
|
}
|
|
92
93
|
const min = Math.min(...values);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/tooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/tooltip.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAG7E,wBAAgB,qBAAqB,CACjC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,UAAU,CAAC,EAAE,WAAW,GACzB,MAAM,GAAG,SAAS,CAepB;AAED,wBAAgB,2BAA2B,CACvC,wBAAwB,EAAE,OAAO,EACjC,sBAAsB,EAAE,OAAO,EAC/B,KAAK,EAAE,6BAA6B,EACpC,UAAU,CAAC,EAAE,WAAW,EACxB,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM,GAAG,SAAS,CAgCpB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// (C) 2007-
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2007-2026 GoodData Corporation
|
|
3
2
|
import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { customEscape, percentFormatter } from "../_util/common.js";
|
|
5
5
|
export function formatValueForTooltip(value, format, separators) {
|
|
6
6
|
const parsedNumber = ClientFormatterFacade.convertValue(value);
|
|
7
7
|
// Based on the tests, when a format is not provided, we should refrain from formatting the value using the formatter, as the default format "#,##0.00" will be used.
|
|
8
8
|
// Additionally, the test necessitates that the value should remain unformatted.
|
|
9
|
-
if (!
|
|
9
|
+
if (!_isEmpty(format)) {
|
|
10
10
|
const result = ClientFormatterFacade.formatValue(parsedNumber, format, separators);
|
|
11
11
|
return customEscape(result.formattedValue);
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_util/color.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_util/color.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAK9E,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,eAAO,MAAM,KAAK,uBAAuB,CAAC;AAC1C,eAAO,MAAM,KAAK,iBAAiB,CAAC;AACpC,eAAO,MAAM,IAAI,uBAAuB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,eAAO,MAAM,0BAA0B,UAQtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,cAAyC,CAAC;AAEnF,eAAO,MAAM,+BAA+B,EAAE,cAA0C,CAAC;AAEzF,eAAO,MAAM,yBAAyB,EAAE,cAIvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,UAIpC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;QACd,EAAE;;;QACC,EAAE;;;QACF,EAAE;;CACnC,CAAC;AAEH;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,CAMxE"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { defineMessages } from "react-intl";
|
|
4
3
|
import { DefaultColorPalette } from "@gooddata/sdk-ui";
|
|
5
4
|
import { getColorPaletteFromColors } from "@gooddata/sdk-ui-vis-commons";
|
|
5
|
+
import { _isEmpty } from "@gooddata/util";
|
|
6
6
|
export const WHITE = "rgb(255, 255, 255)";
|
|
7
7
|
export const BLACK = "rgb(0, 0, 0)";
|
|
8
8
|
export const GRAY = "rgb(201, 213, 223)";
|
|
@@ -38,8 +38,8 @@ export const DEFAULT_WATERFALL_COLORS_MESSAGES = defineMessages({
|
|
|
38
38
|
* @internal
|
|
39
39
|
*/
|
|
40
40
|
export function getValidColorPalette(config) {
|
|
41
|
-
return
|
|
42
|
-
?
|
|
41
|
+
return _isEmpty(config.colorPalette)
|
|
42
|
+
? _isEmpty(config.colors)
|
|
43
43
|
? DefaultColorPalette
|
|
44
44
|
: getColorPaletteFromColors(config.colors)
|
|
45
45
|
: config.colorPalette;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulletChartSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/bulletChart/bulletChartSeries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulletChartSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/bulletChart/bulletChartSeries.ts"],"names":[],"mappings":"AAEA,OAAO,EAGH,KAAK,uBAAuB,EAC5B,KAAK,MAAM,EACX,KAAK,UAAU,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAwG1F,eAAO,MAAM,eAAe,gBAAiB,MAAM,2BAA2B,UAAU,EAAE,KAAG,OACpB,CAAC;AAE1E,eAAO,MAAM,cAAc,gBAAiB,MAAM,2BAA2B,UAAU,EAAE,KAAG,OACT,CAAC;AAEpF,eAAO,MAAM,mBAAmB,gBAAiB,MAAM,2BAA2B,UAAU,EAAE,KAAG,OACf,CAAC;AAoBnF,wBAAgB,oBAAoB,CAChC,EAAE,EAAE,cAAc,EAClB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,aAAa,EAAE,cAAc,EAC7B,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,KAAK,EAAE,MAAM,GAAG,SAAS,SAiC5B;AAED,wBAAgB,yCAAyC,CAAC,EAAE,EAAE,cAAc,GAAG,UAAU,EAAE,CAiB1F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
3
2
|
import { bucketIsEmpty, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEmpty } from "@gooddata/util";
|
|
5
5
|
import { MAX_POINT_WIDTH } from "../_chartCreators/commonConfiguration.js";
|
|
6
6
|
import { getChartFillProperties, getColorOrPatternFillIndex, isSolidFill, } from "../_chartOptions/patternFillOptions.js";
|
|
7
7
|
import { parseValue, unwrap } from "../_util/common.js";
|
|
@@ -112,7 +112,7 @@ export function getOccupiedMeasureBucketsLocalIdentifiers(dv) {
|
|
|
112
112
|
b.localIdentifier &&
|
|
113
113
|
availableMeasureBucketsLocalIdentifiers.indexOf(b.localIdentifier) >= 0)
|
|
114
114
|
.map((b) => b.localIdentifier);
|
|
115
|
-
return
|
|
115
|
+
return _isEmpty(notEmptyMeasureBucketsLocalIdentifiers)
|
|
116
116
|
? availableMeasureBucketsLocalIdentifiers.slice(0, executionResultData.length)
|
|
117
117
|
: notEmptyMeasureBucketsLocalIdentifiers;
|
|
118
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmapColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/heatmap/heatmapColoring.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAuD,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAuB,MAAM,kBAAkB,CAAC;AAEnG,OAAO,EACH,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,iCAAiC,EAMzC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"heatmapColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/heatmap/heatmapColoring.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAuD,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAuB,MAAM,kBAAkB,CAAC;AAEnG,OAAO,EACH,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,iCAAiC,EAMzC,MAAM,8BAA8B,CAAC;AAYtC,qBAAa,oBAAqB,SAAQ,aAAa;IACnC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAErD;IAED,SAAS,CAAC,qBAAqB,CAC3B,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,GAAG,SAAS,EACzC,gBAAgB,EAAE,GAAG,EACrB,iBAAiB,EAAE,GAAG,EACtB,EAAE,EAAE,cAAc,GACnB,iCAAiC,CAuBnC;IAED,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,kBAAkB;IAI1B,UAAmB,aAAa,CAC5B,YAAY,EAAE,aAAa,EAC3B,eAAe,EAAE,gBAAgB,EAAE,GACpC,MAAM,EAAE,CAkBV;IAED,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,yBAAyB;CA2BpC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { range } from "lodash-es";
|
|
3
3
|
import { darken, mix, saturate } from "polished";
|
|
4
4
|
import { isColorFromPalette, isRgbColor } from "@gooddata/sdk-model";
|
|
5
5
|
import { isDarkTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
6
|
import { ColorStrategy, getColorByGuid, getColorFromMapping, getRgbStringFromRGB, isCustomPalette, normalizeColorToRGB, } from "@gooddata/sdk-ui-vis-commons";
|
|
7
|
+
import { _isEqual } from "@gooddata/util";
|
|
7
8
|
import { DEFAULT_HEATMAP_BLUE_BASE_COLOR, DEFAULT_HEATMAP_BLUE_COLOR, HEATMAP_BLUE_COLOR_PALETTE, } from "../_util/color.js";
|
|
8
9
|
import { findMeasureGroupInDimensions } from "../_util/executionResultHelper.js";
|
|
9
10
|
export class HeatmapColorStrategy extends ColorStrategy {
|
|
@@ -41,7 +42,7 @@ export class HeatmapColorStrategy extends ColorStrategy {
|
|
|
41
42
|
createPalette(colorPalette, colorAssignment) {
|
|
42
43
|
const colorAssignmentColor = colorAssignment[0].color;
|
|
43
44
|
if (isRgbColor(colorAssignmentColor) &&
|
|
44
|
-
|
|
45
|
+
_isEqual(colorAssignmentColor.value, DEFAULT_HEATMAP_BLUE_COLOR)) {
|
|
45
46
|
return normalizeColorToRGB(this.getBackgroundColor()) === "rgb(255,255,255)"
|
|
46
47
|
? HEATMAP_BLUE_COLOR_PALETTE
|
|
47
48
|
: this.getCustomHeatmapColorPalette(DEFAULT_HEATMAP_BLUE_BASE_COLOR);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treemapChartSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/treemap/treemapChartSeries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"treemapChartSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/treemap/treemapChartSeries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,uBAAuB,EAA+B,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7G,OAAO,EACH,KAAK,cAAc,EAGtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAGtB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AA+DjF,wBAAgB,qCAAqC,CACjD,EAAE,EAAE,cAAc,EAClB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,eAAe,EAAE,mCAAmC,EACpD,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACxE,aAAa,EAAE,cAAc,EAC7B,gBAAgB,EAAE,MAAM,GACzB,GAAG,EAAE,CA4CP;AAED,wBAAgB,uCAAuC,CACnD,EAAE,EAAE,cAAc,EAClB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,gBAAgB,EAAE,GAAG,EACrB,aAAa,EAAE,cAAc,EAC7B,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,GAAG,EAAE,CAkDP;AAED,wBAAgB,uBAAuB,CACnC,EAAE,EAAE,cAAc,EAClB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,eAAe,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACvE,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACxE,aAAa,EAAE,cAAc,EAC7B,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;;;IAoC5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { getAttributeHeaderItemName, getMappingHeaderFormattedName, } from "@gooddata/sdk-ui";
|
|
4
3
|
import { getLighterColor, valueWithEmptyHandling, } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { getChartFillProperties, getColorOrPatternFillIndex } from "../_chartOptions/patternFillOptions.js";
|
|
6
6
|
import { parseValue, unwrap } from "../_util/common.js";
|
|
7
7
|
function getColorStep(valuesCount) {
|
|
@@ -51,7 +51,7 @@ export function getTreemapStackedSeriesDataWithViewBy(dv, measureGroup, viewByAt
|
|
|
51
51
|
const format = unwrap(measureGroup.items[0]).format; // this configuration has only one measure
|
|
52
52
|
executionResultData.forEach((seriesItems, seriesIndex) => {
|
|
53
53
|
const currentRoot = viewByAttribute.items[seriesIndex].attributeHeaderItem;
|
|
54
|
-
if (!
|
|
54
|
+
if (!_isEqual(currentRoot, lastRoot)) {
|
|
55
55
|
// store previous group leafs
|
|
56
56
|
leafs.push(...gradientPreviousGroup(uncoloredLeafs));
|
|
57
57
|
rootId++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-charts",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.3",
|
|
4
4
|
"description": "GoodData.UI SDK - Charts",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"ts-invariant": "0.10.3",
|
|
70
70
|
"tslib": "2.8.1",
|
|
71
71
|
"uuid": "11.1.1",
|
|
72
|
-
"@gooddata/sdk-backend-spi": "11.68.0-alpha.
|
|
73
|
-
"@gooddata/sdk-
|
|
74
|
-
"@gooddata/sdk-
|
|
75
|
-
"@gooddata/sdk-ui-kit": "11.68.0-alpha.
|
|
76
|
-
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.
|
|
77
|
-
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.
|
|
78
|
-
"@gooddata/util": "11.68.0-alpha.
|
|
72
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.3",
|
|
73
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.3",
|
|
74
|
+
"@gooddata/sdk-model": "11.68.0-alpha.3",
|
|
75
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.3",
|
|
76
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.3",
|
|
77
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.3",
|
|
78
|
+
"@gooddata/util": "11.68.0-alpha.3"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"stylelint": "16.26.1",
|
|
117
117
|
"typescript": "7.0.2",
|
|
118
118
|
"vitest": "5.0.4",
|
|
119
|
-
"@gooddata/
|
|
120
|
-
"@gooddata/
|
|
121
|
-
"@gooddata/
|
|
122
|
-
"@gooddata/
|
|
123
|
-
"@gooddata/stylelint-config": "11.68.0-alpha.
|
|
119
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.3",
|
|
120
|
+
"@gooddata/eslint-config": "11.68.0-alpha.3",
|
|
121
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.3",
|
|
122
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.3",
|
|
123
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.3"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"react": "^18.0.0 || ^19.0.0",
|