@gooddata/sdk-ui-charts 10.2.0-alpha.26 → 10.2.0-alpha.28
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/esm/index.d.ts +0 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/sdk-ui-charts.d.ts +0 -10
- package/package.json +10 -10
- package/esm/forecast.d.ts +0 -11
- package/esm/forecast.d.ts.map +0 -1
- package/esm/forecast.js +0 -31
- package/esm/forecast.js.map +0 -1
package/esm/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export * from "./interfaces/index.js";
|
|
12
12
|
export * from "./charts/index.js";
|
|
13
|
-
export * from "./forecast.js";
|
|
14
13
|
export { ColorUtils, TOP, BOTTOM, MIDDLE, isAreaChart, isBarChart, isBubbleChart, isBulletChart, isColumnChart, isComboChart, isDonutChart, isHeatmap, isFunnel, isPyramid, isLineChart, isPieChart, isPieOrDonutChart, isScatterPlot, isTreemap, isSankey, isDependencyWheel, isSankeyOrDependencyWheel, isWaterfall, updateConfigWithSettings, updateForecastWithSettings, } from "./highcharts/index.js";
|
|
15
14
|
export { getColorMappingPredicate } from "@gooddata/sdk-ui-vis-commons";
|
|
16
15
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AACH,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA;;;;;;;;;GASG;AACH,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,UAAU,EACV,GAAG,EACH,MAAM,EACN,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,EACX,wBAAwB,EACxB,0BAA0B,GAC7B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export * from "./interfaces/index.js";
|
|
13
13
|
export * from "./charts/index.js";
|
|
14
|
-
export * from "./forecast.js";
|
|
15
14
|
export { ColorUtils, TOP, BOTTOM, MIDDLE, isAreaChart, isBarChart, isBubbleChart, isBulletChart, isColumnChart, isComboChart, isDonutChart, isHeatmap, isFunnel, isPyramid, isLineChart, isPieChart, isPieOrDonutChart, isScatterPlot, isTreemap, isSankey, isDependencyWheel, isSankeyOrDependencyWheel, isWaterfall, updateConfigWithSettings, updateForecastWithSettings, } from "./highcharts/index.js";
|
|
16
15
|
// export the getColorMappingPredicate so that users can import it directly without having to explicitly install vis-commons
|
|
17
16
|
export { getColorMappingPredicate } from "@gooddata/sdk-ui-vis-commons";
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;GASG;AACH,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;;;;;;;GASG;AACH,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,UAAU,EACV,GAAG,EACH,MAAM,EACN,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,EACX,wBAAwB,EACxB,0BAA0B,GAC7B,MAAM,uBAAuB,CAAC;AAE/B,4HAA4H;AAC5H,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC"}
|
package/esm/sdk-ui-charts.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ import { IExecutionConfig } from '@gooddata/sdk-model';
|
|
|
36
36
|
import { IExecutionFactory } from '@gooddata/sdk-backend-spi';
|
|
37
37
|
import { IFilter } from '@gooddata/sdk-model';
|
|
38
38
|
import { IForecastConfig } from '@gooddata/sdk-backend-spi';
|
|
39
|
-
import { IInsightDefinition } from '@gooddata/sdk-model';
|
|
40
39
|
import { IPreparedExecution } from '@gooddata/sdk-backend-spi';
|
|
41
40
|
import { IRgbColorValue } from '@gooddata/sdk-model';
|
|
42
41
|
import { ISeparators } from '@gooddata/sdk-model';
|
|
@@ -2186,15 +2185,6 @@ export declare const isDependencyWheel: LodashIsEqual1x1;
|
|
|
2186
2185
|
*/
|
|
2187
2186
|
export declare const isDonutChart: LodashIsEqual1x1;
|
|
2188
2187
|
|
|
2189
|
-
/**
|
|
2190
|
-
* @beta
|
|
2191
|
-
* Check if the forecast is enabled for the insight and chart type
|
|
2192
|
-
*/
|
|
2193
|
-
export declare function isForecastEnabled(insight: IInsightDefinition, type: ChartType): {
|
|
2194
|
-
enabled: boolean;
|
|
2195
|
-
visible: boolean;
|
|
2196
|
-
};
|
|
2197
|
-
|
|
2198
2188
|
/**
|
|
2199
2189
|
* @internal
|
|
2200
2190
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-charts",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.28",
|
|
4
4
|
"description": "GoodData.UI SDK - Charts",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"ts-invariant": "^0.7.5",
|
|
67
67
|
"tslib": "^2.5.0",
|
|
68
68
|
"uuid": "^8.3.2",
|
|
69
|
-
"@gooddata/sdk-
|
|
70
|
-
"@gooddata/sdk-ui": "10.2.0-alpha.
|
|
71
|
-
"@gooddata/sdk-
|
|
72
|
-
"@gooddata/sdk-ui
|
|
73
|
-
"@gooddata/sdk-ui-theme-provider": "10.2.0-alpha.
|
|
74
|
-
"@gooddata/sdk-ui-vis-commons": "10.2.0-alpha.
|
|
75
|
-
"@gooddata/util": "10.2.0-alpha.
|
|
69
|
+
"@gooddata/sdk-backend-spi": "10.2.0-alpha.28",
|
|
70
|
+
"@gooddata/sdk-ui-kit": "10.2.0-alpha.28",
|
|
71
|
+
"@gooddata/sdk-model": "10.2.0-alpha.28",
|
|
72
|
+
"@gooddata/sdk-ui": "10.2.0-alpha.28",
|
|
73
|
+
"@gooddata/sdk-ui-theme-provider": "10.2.0-alpha.28",
|
|
74
|
+
"@gooddata/sdk-ui-vis-commons": "10.2.0-alpha.28",
|
|
75
|
+
"@gooddata/util": "10.2.0-alpha.28"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^16.10.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"typescript": "5.3.3",
|
|
123
123
|
"vitest": "1.0.4",
|
|
124
124
|
"vitest-dom": "0.1.1",
|
|
125
|
-
"@gooddata/
|
|
126
|
-
"@gooddata/
|
|
125
|
+
"@gooddata/sdk-backend-mockingbird": "10.2.0-alpha.28",
|
|
126
|
+
"@gooddata/reference-workspace": "10.2.0-alpha.28"
|
|
127
127
|
},
|
|
128
128
|
"scripts": {
|
|
129
129
|
"clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",
|
package/esm/forecast.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IInsightDefinition } from "@gooddata/sdk-model";
|
|
2
|
-
import { ChartType } from "@gooddata/sdk-ui";
|
|
3
|
-
/**
|
|
4
|
-
* @beta
|
|
5
|
-
* Check if the forecast is enabled for the insight and chart type
|
|
6
|
-
*/
|
|
7
|
-
export declare function isForecastEnabled(insight: IInsightDefinition, type: ChartType): {
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
visible: boolean;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=forecast.d.ts.map
|
package/esm/forecast.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forecast.d.ts","sourceRoot":"","sources":["../src/forecast.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAe,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,iBAAiB,CAC7B,OAAO,EAAE,kBAAkB,EAC3B,IAAI,EAAE,SAAS,GAChB;IACC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CACpB,CAwBA"}
|
package/esm/forecast.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// (C) 2022-2024 GoodData Corporation
|
|
2
|
-
import { insightBuckets, bucketsFind } from "@gooddata/sdk-model";
|
|
3
|
-
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
/**
|
|
5
|
-
* @beta
|
|
6
|
-
* Check if the forecast is enabled for the insight and chart type
|
|
7
|
-
*/
|
|
8
|
-
export function isForecastEnabled(insight, type) {
|
|
9
|
-
switch (type) {
|
|
10
|
-
case "line": {
|
|
11
|
-
const buckets = insightBuckets(insight);
|
|
12
|
-
const measures = bucketsFind(buckets, (b) => b.localIdentifier === BucketNames.MEASURES);
|
|
13
|
-
const trends = bucketsFind(buckets, (b) => b.localIdentifier === BucketNames.TREND);
|
|
14
|
-
const segments = bucketsFind(buckets, (b) => b.localIdentifier === BucketNames.SEGMENT);
|
|
15
|
-
//TODO: s.hacker check if the trend is date attribute somehow
|
|
16
|
-
return {
|
|
17
|
-
enabled: measures?.items.length === 1 &&
|
|
18
|
-
trends?.items.length === 1 &&
|
|
19
|
-
(segments?.items.length ?? 0) === 0,
|
|
20
|
-
visible: true,
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
case "column":
|
|
24
|
-
default:
|
|
25
|
-
return {
|
|
26
|
-
enabled: false,
|
|
27
|
-
visible: false,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=forecast.js.map
|
package/esm/forecast.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forecast.js","sourceRoot":"","sources":["../src/forecast.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAsB,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,WAAW,EAAa,MAAM,kBAAkB,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC7B,OAA2B,EAC3B,IAAe;IAKf,QAAQ,IAAI,EAAE,CAAC;QACX,KAAK,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;YACxC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,WAAW,CAAC,QAAQ,CAAC,CAAC;YACzF,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,WAAW,CAAC,KAAK,CAAC,CAAC;YACpF,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,KAAK,WAAW,CAAC,OAAO,CAAC,CAAC;YAExF,6DAA6D;YAC7D,OAAO;gBACH,OAAO,EACH,QAAQ,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC;oBAC5B,MAAM,EAAE,KAAK,CAAC,MAAM,KAAK,CAAC;oBAC1B,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC;gBACvC,OAAO,EAAE,IAAI;aAChB,CAAC;QACN,CAAC;QACD,KAAK,QAAQ,CAAC;QACd;YACI,OAAO;gBACH,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAK;aACjB,CAAC;IACV,CAAC;AACL,CAAC"}
|