@gooddata/sdk-ui-vis-commons 11.54.0-alpha.4 → 11.54.0-alpha.6

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.
@@ -0,0 +1,3 @@
1
+ import { type IColorStrategy } from "./base.js";
2
+ export declare function getColorsFromStrategy(strategy: IColorStrategy): string[];
3
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/coloring/helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE,CASxE"}
@@ -0,0 +1,9 @@
1
+ // (C) 2020-2026 GoodData Corporation
2
+ export function getColorsFromStrategy(strategy) {
3
+ const res = [];
4
+ const assignments = strategy.getFullColorAssignment().length;
5
+ for (let i = 0; i < assignments; i++) {
6
+ res.push(strategy.getColorByIndex(i));
7
+ }
8
+ return res;
9
+ }
@@ -0,0 +1,4 @@
1
+ import { type ScenarioRecording } from "@gooddata/sdk-backend-mockingbird";
2
+ import { DataViewFacade } from "@gooddata/sdk-ui";
3
+ export declare function recordedDataFacade(rec: ScenarioRecording): DataViewFacade;
4
+ //# sourceMappingURL=recordings.test.helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordings.test.helpers.d.ts","sourceRoot":"","sources":["../../src/coloring/recordings.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAoB,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,GAAG,cAAc,CAEzE"}
@@ -0,0 +1,6 @@
1
+ // (C) 2020-2026 GoodData Corporation
2
+ import { recordedDataView } from "@gooddata/sdk-backend-mockingbird";
3
+ import { DataViewFacade } from "@gooddata/sdk-ui";
4
+ export function recordedDataFacade(rec) {
5
+ return DataViewFacade.for(recordedDataView(rec));
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-vis-commons",
3
- "version": "11.54.0-alpha.4",
3
+ "version": "11.54.0-alpha.6",
4
4
  "description": "GoodData.UI SDK - common functionality for different types of visualizations",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -36,11 +36,11 @@
36
36
  "react-intl": "7.1.11",
37
37
  "react-measure": "^2.5.2",
38
38
  "tslib": "2.8.1",
39
- "@gooddata/sdk-backend-spi": "11.54.0-alpha.4",
40
- "@gooddata/sdk-model": "11.54.0-alpha.4",
41
- "@gooddata/sdk-ui": "11.54.0-alpha.4",
42
- "@gooddata/sdk-ui-kit": "11.54.0-alpha.4",
43
- "@gooddata/sdk-ui-theme-provider": "11.54.0-alpha.4"
39
+ "@gooddata/sdk-backend-spi": "11.54.0-alpha.6",
40
+ "@gooddata/sdk-ui": "11.54.0-alpha.6",
41
+ "@gooddata/sdk-ui-theme-provider": "11.54.0-alpha.6",
42
+ "@gooddata/sdk-model": "11.54.0-alpha.6",
43
+ "@gooddata/sdk-ui-kit": "11.54.0-alpha.6"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-documenter": "^7.17.0",
@@ -81,11 +81,11 @@
81
81
  "typescript": "5.9.3",
82
82
  "vitest": "4.1.8",
83
83
  "vitest-dom": "0.1.1",
84
- "@gooddata/eslint-config": "11.54.0-alpha.4",
85
- "@gooddata/oxlint-config": "11.54.0-alpha.4",
86
- "@gooddata/reference-workspace": "11.54.0-alpha.4",
87
- "@gooddata/stylelint-config": "11.54.0-alpha.4",
88
- "@gooddata/sdk-backend-mockingbird": "11.54.0-alpha.4"
84
+ "@gooddata/eslint-config": "11.54.0-alpha.6",
85
+ "@gooddata/oxlint-config": "11.54.0-alpha.6",
86
+ "@gooddata/sdk-backend-mockingbird": "11.54.0-alpha.6",
87
+ "@gooddata/reference-workspace": "11.54.0-alpha.6",
88
+ "@gooddata/stylelint-config": "11.54.0-alpha.6"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "react": "^18.0.0 || ^19.0.0",