@gooddata/sdk-ui-pivot 11.54.0 → 11.55.0-alpha.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drillTargets.d.ts","sourceRoot":"","sources":["../../../src/impl/drilling/drillTargets.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EAGnB,KAAK,sBAAsB,EAE9B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,wBAAgB,wBAAwB,CACpC,EAAE,EAAE,cAAc,EAClB,qBAAqB,CAAC,EAAE,qBAAqB,EAC7C,qBAAqB,CAAC,EAAE,qBAAqB,GAC9C,sBAAsB,
|
|
1
|
+
{"version":3,"file":"drillTargets.d.ts","sourceRoot":"","sources":["../../../src/impl/drilling/drillTargets.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EAGnB,KAAK,sBAAsB,EAE9B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,wBAAgB,wBAAwB,CACpC,EAAE,EAAE,cAAc,EAClB,qBAAqB,CAAC,EAAE,qBAAqB,EAC7C,qBAAqB,CAAC,EAAE,qBAAqB,GAC9C,sBAAsB,CA4BxB"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
|
2
|
+
import { attributeLocalId, isComputedAttribute } from "@gooddata/sdk-model";
|
|
1
3
|
import { getIntersectionAttributes, } from "@gooddata/sdk-ui";
|
|
2
4
|
export function getAvailableDrillTargets(dv, measureGroupDimension, columnHeadersPosition) {
|
|
3
5
|
const measureDescriptors = dv
|
|
@@ -7,6 +9,7 @@ export function getAvailableDrillTargets(dv, measureGroupDimension, columnHeader
|
|
|
7
9
|
measure,
|
|
8
10
|
attributes: dv.meta().attributeDescriptors(),
|
|
9
11
|
}));
|
|
12
|
+
const computedAttributeLocalIds = new Set(dv.def().attributes().filter(isComputedAttribute).map(attributeLocalId));
|
|
10
13
|
const dimensionIndex = measureGroupDimension === "rows" && columnHeadersPosition === "left" ? 1 : 0;
|
|
11
14
|
const attributeItems = dv
|
|
12
15
|
.meta()
|
|
@@ -14,7 +17,8 @@ export function getAvailableDrillTargets(dv, measureGroupDimension, columnHeader
|
|
|
14
17
|
.map((attribute, _index, attributes) => ({
|
|
15
18
|
attribute,
|
|
16
19
|
intersectionAttributes: getIntersectionAttributes(attribute, attributes),
|
|
17
|
-
}))
|
|
20
|
+
}))
|
|
21
|
+
.filter((item) => !computedAttributeLocalIds.has(item.attribute.attributeHeader.localIdentifier));
|
|
18
22
|
return {
|
|
19
23
|
measures: measureDescriptors,
|
|
20
24
|
attributes: attributeItems,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvailableDrillTargets.d.ts","sourceRoot":"","sources":["../../../../src/next/features/drilling/getAvailableDrillTargets.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EAGnB,KAAK,sBAAsB,EAE9B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEtG;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACpC,EAAE,EAAE,cAAc,EAClB,qBAAqB,EAAE,qBAAqB,EAC5C,qBAAqB,EAAE,qBAAqB,GAC7C,sBAAsB,
|
|
1
|
+
{"version":3,"file":"getAvailableDrillTargets.d.ts","sourceRoot":"","sources":["../../../../src/next/features/drilling/getAvailableDrillTargets.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,cAAc,EAGnB,KAAK,sBAAsB,EAE9B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAEtG;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACpC,EAAE,EAAE,cAAc,EAClB,qBAAqB,EAAE,qBAAqB,EAC5C,qBAAqB,EAAE,qBAAqB,GAC7C,sBAAsB,CA4BxB"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { attributeLocalId, isComputedAttribute } from "@gooddata/sdk-model";
|
|
1
3
|
import { getIntersectionAttributes, } from "@gooddata/sdk-ui";
|
|
2
4
|
/**
|
|
3
5
|
* Calculate available drill targets for the pivot table next implementation.
|
|
@@ -16,6 +18,7 @@ export function getAvailableDrillTargets(dv, measureGroupDimension, columnHeader
|
|
|
16
18
|
measure,
|
|
17
19
|
attributes: dv.meta().attributeDescriptors(),
|
|
18
20
|
}));
|
|
21
|
+
const computedAttributeLocalIds = new Set(dv.def().attributes().filter(isComputedAttribute).map(attributeLocalId));
|
|
19
22
|
const dimensionIndex = measureGroupDimension === "rows" && columnHeadersPosition === "left" ? 1 : 0;
|
|
20
23
|
const attributeItems = dv
|
|
21
24
|
.meta()
|
|
@@ -23,7 +26,8 @@ export function getAvailableDrillTargets(dv, measureGroupDimension, columnHeader
|
|
|
23
26
|
.map((attribute, _index, attributes) => ({
|
|
24
27
|
attribute,
|
|
25
28
|
intersectionAttributes: getIntersectionAttributes(attribute, attributes),
|
|
26
|
-
}))
|
|
29
|
+
}))
|
|
30
|
+
.filter((item) => !computedAttributeLocalIds.has(item.attribute.attributeHeader.localIdentifier));
|
|
27
31
|
return {
|
|
28
32
|
measures: measureDescriptors,
|
|
29
33
|
attributes: attributeItems,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-pivot",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.55.0-alpha.1",
|
|
4
4
|
"description": "GoodData.UI SDK - Pivot Table",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"ts-invariant": "0.10.3",
|
|
43
43
|
"tslib": "2.8.1",
|
|
44
44
|
"uuid": "11.1.1",
|
|
45
|
-
"@gooddata/sdk-model": "11.
|
|
46
|
-
"@gooddata/sdk-backend-spi": "11.
|
|
47
|
-
"@gooddata/sdk-ui": "11.
|
|
48
|
-
"@gooddata/sdk-ui
|
|
49
|
-
"@gooddata/sdk-ui-
|
|
50
|
-
"@gooddata/sdk-ui-
|
|
45
|
+
"@gooddata/sdk-model": "11.55.0-alpha.1",
|
|
46
|
+
"@gooddata/sdk-backend-spi": "11.55.0-alpha.1",
|
|
47
|
+
"@gooddata/sdk-ui-kit": "11.55.0-alpha.1",
|
|
48
|
+
"@gooddata/sdk-ui": "11.55.0-alpha.1",
|
|
49
|
+
"@gooddata/sdk-ui-theme-provider": "11.55.0-alpha.1",
|
|
50
|
+
"@gooddata/sdk-ui-vis-commons": "11.55.0-alpha.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@microsoft/api-documenter": "7.30.10",
|
|
54
|
-
"@microsoft/api-extractor": "
|
|
54
|
+
"@microsoft/api-extractor": "7.58.12",
|
|
55
55
|
"@testing-library/dom": "10.4.1",
|
|
56
56
|
"@testing-library/react": "16.3.0",
|
|
57
|
-
"@types/lodash-es": "
|
|
57
|
+
"@types/lodash-es": "4.17.12",
|
|
58
58
|
"@types/node": "24.12.0",
|
|
59
59
|
"@types/raf": "3.4.3",
|
|
60
60
|
"@types/react": "19.1.11",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
78
78
|
"full-icu": "1.6.0",
|
|
79
79
|
"happy-dom": "20.9.0",
|
|
80
|
-
"npm-run-all": "
|
|
80
|
+
"npm-run-all": "4.1.5",
|
|
81
81
|
"oxfmt": "0.52.0",
|
|
82
82
|
"oxlint": "1.51.0",
|
|
83
83
|
"oxlint-tsgolint": "0.15.0",
|
|
@@ -85,16 +85,16 @@
|
|
|
85
85
|
"react": "19.1.1",
|
|
86
86
|
"react-dom": "19.1.1",
|
|
87
87
|
"sass": "1.70.0",
|
|
88
|
-
"stylelint": "
|
|
88
|
+
"stylelint": "16.26.1",
|
|
89
89
|
"typescript": "5.9.3",
|
|
90
90
|
"vitest": "4.1.8",
|
|
91
91
|
"vitest-dom": "0.1.1",
|
|
92
|
-
"@gooddata/eslint-config": "11.
|
|
93
|
-
"@gooddata/oxlint-config": "11.
|
|
94
|
-
"@gooddata/reference-workspace": "11.
|
|
95
|
-
"@gooddata/sdk-backend-base": "11.
|
|
96
|
-
"@gooddata/sdk-backend-mockingbird": "11.
|
|
97
|
-
"@gooddata/stylelint-config": "11.
|
|
92
|
+
"@gooddata/eslint-config": "11.55.0-alpha.1",
|
|
93
|
+
"@gooddata/oxlint-config": "11.55.0-alpha.1",
|
|
94
|
+
"@gooddata/reference-workspace": "11.55.0-alpha.1",
|
|
95
|
+
"@gooddata/sdk-backend-base": "11.55.0-alpha.1",
|
|
96
|
+
"@gooddata/sdk-backend-mockingbird": "11.55.0-alpha.1",
|
|
97
|
+
"@gooddata/stylelint-config": "11.55.0-alpha.1"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"react": "^18.0.0 || ^19.0.0",
|