@gooddata/sdk-ui-ext 11.54.0-alpha.3 → 11.54.0-alpha.5
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 +92923 -17333
- package/esm/dataLoaders/dataLoaders.mock.d.ts +4 -0
- package/esm/dataLoaders/dataLoaders.mock.d.ts.map +1 -0
- package/esm/dataLoaders/dataLoaders.mock.js +52 -0
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.d.ts +4 -0
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.d.ts.map +1 -0
- package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.js +6487 -0
- package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.d.ts +3 -0
- package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.d.ts.map +1 -0
- package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.js +139 -0
- package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
- package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.js +119 -0
- package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.d.ts +7 -0
- package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.js +98 -0
- package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
- package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.js +110 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.d.ts +45 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.js +48 -0
- package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.d.ts +13 -0
- package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.js +132 -0
- package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts +8 -0
- package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.js +116 -0
- package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
- package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.js +119 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.d.ts +13 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.js +229 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.d.ts +5 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.js +92 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.d.ts +9 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.js +19 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.d.ts +16 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.js +186 -0
- package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.d.ts +16 -0
- package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.js +39 -0
- package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts +10 -0
- package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.js +94 -0
- package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.d.ts +8 -0
- package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.js +119 -0
- package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.d.ts +17 -0
- package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.d.ts.map +1 -0
- package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.js +18 -0
- package/esm/internal/index.d.ts +1 -1
- package/esm/internal/index.d.ts.map +1 -1
- package/esm/internal/index.js +1 -1
- package/esm/internal/mocks/referencePointMocks.d.ts +187 -0
- package/esm/internal/mocks/referencePointMocks.d.ts.map +1 -0
- package/esm/internal/mocks/referencePointMocks.js +4045 -0
- package/esm/internal/mocks/testColorHelper.d.ts +19 -0
- package/esm/internal/mocks/testColorHelper.d.ts.map +1 -0
- package/esm/internal/mocks/testColorHelper.js +65 -0
- package/esm/internal/mocks/testMocks.d.ts +24 -0
- package/esm/internal/mocks/testMocks.d.ts.map +1 -0
- package/esm/internal/mocks/testMocks.js +739 -0
- package/esm/internal/mocks/uiConfigMocks.d.ts +17 -0
- package/esm/internal/mocks/uiConfigMocks.d.ts.map +1 -0
- package/esm/internal/mocks/uiConfigMocks.js +125 -0
- package/esm/internal/mocks/visualizationObjectMocks.d.ts +7 -0
- package/esm/internal/mocks/visualizationObjectMocks.d.ts.map +1 -0
- package/esm/internal/mocks/visualizationObjectMocks.js +49 -0
- package/esm/internal/testDataProvider.d.ts +16 -0
- package/esm/internal/testDataProvider.d.ts.map +1 -0
- package/esm/internal/testDataProvider.js +36 -0
- package/esm/internal/testIntlProvider.d.ts.map +1 -0
- package/esm/internal/{tests/testIntlProvider.js → testIntlProvider.js} +2 -2
- package/package.json +21 -21
- package/esm/internal/tests/testIntlProvider.d.ts.map +0 -1
- /package/esm/internal/{tests/testIntlProvider.d.ts → testIntlProvider.d.ts} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
export const getMockReferencePoint = (measures = [], rows = [], columns = [], filterItems = [], sortItems = [], measuresIsShowInPercentEnabled = false, columnWidths = [], multipleDatesEnabled = false) => ({
|
|
3
|
+
buckets: [
|
|
4
|
+
{
|
|
5
|
+
items: measures,
|
|
6
|
+
localIdentifier: "measures",
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
items: rows,
|
|
10
|
+
localIdentifier: "attribute",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
items: columns,
|
|
14
|
+
localIdentifier: "columns",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
filters: {
|
|
18
|
+
items: filterItems,
|
|
19
|
+
localIdentifier: "filters",
|
|
20
|
+
},
|
|
21
|
+
properties: {
|
|
22
|
+
sortItems,
|
|
23
|
+
controls: {
|
|
24
|
+
columnWidths,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
uiConfig: {
|
|
28
|
+
buckets: {
|
|
29
|
+
attribute: {
|
|
30
|
+
accepts: ["attribute", "date"],
|
|
31
|
+
allowsReordering: true,
|
|
32
|
+
allowsSwapping: true,
|
|
33
|
+
canAddItems: true,
|
|
34
|
+
enabled: true,
|
|
35
|
+
icon: "",
|
|
36
|
+
isShowInPercentEnabled: false,
|
|
37
|
+
itemsLimit: 20,
|
|
38
|
+
itemsLimitByType: {
|
|
39
|
+
date: multipleDatesEnabled ? 20 : 1,
|
|
40
|
+
},
|
|
41
|
+
title: "Rows",
|
|
42
|
+
allowsDuplicateDates: multipleDatesEnabled,
|
|
43
|
+
},
|
|
44
|
+
columns: {
|
|
45
|
+
accepts: ["attribute", "date"],
|
|
46
|
+
allowsReordering: true,
|
|
47
|
+
allowsSwapping: true,
|
|
48
|
+
canAddItems: true,
|
|
49
|
+
enabled: true,
|
|
50
|
+
icon: "",
|
|
51
|
+
isShowInPercentEnabled: false,
|
|
52
|
+
itemsLimit: 20,
|
|
53
|
+
itemsLimitByType: {
|
|
54
|
+
date: multipleDatesEnabled ? 20 : 1,
|
|
55
|
+
},
|
|
56
|
+
title: "Columns",
|
|
57
|
+
allowsDuplicateDates: multipleDatesEnabled,
|
|
58
|
+
},
|
|
59
|
+
filters: {
|
|
60
|
+
accepts: ["attribute", "date"],
|
|
61
|
+
allowsReordering: false,
|
|
62
|
+
enabled: true,
|
|
63
|
+
isShowInPercentEnabled: false,
|
|
64
|
+
itemsLimit: 20,
|
|
65
|
+
itemsLimitByType: {
|
|
66
|
+
date: 1,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
measures: {
|
|
70
|
+
accepts: ["metric", "fact", "attribute"],
|
|
71
|
+
allowsDuplicateItems: true,
|
|
72
|
+
allowsReordering: true,
|
|
73
|
+
allowsSwapping: true,
|
|
74
|
+
canAddItems: true,
|
|
75
|
+
enabled: true,
|
|
76
|
+
icon: "",
|
|
77
|
+
isShowInPercentEnabled: measuresIsShowInPercentEnabled,
|
|
78
|
+
isShowInPercentVisible: true,
|
|
79
|
+
itemsLimit: 20,
|
|
80
|
+
title: "Measures",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
exportConfig: {
|
|
84
|
+
supported: true,
|
|
85
|
+
},
|
|
86
|
+
openAsReport: {
|
|
87
|
+
supported: false,
|
|
88
|
+
},
|
|
89
|
+
recommendations: {},
|
|
90
|
+
supportedOverTimeComparisonTypes: ["same_period_previous_year", "previous_period"],
|
|
91
|
+
},
|
|
92
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IAttributeSortItem, type IMeasureSortItem } from "@gooddata/sdk-model";
|
|
2
|
+
export declare const validMeasureSort: IMeasureSortItem;
|
|
3
|
+
export declare const validAttributeSort: IAttributeSortItem;
|
|
4
|
+
export declare const invalidAttributeSort: IAttributeSortItem;
|
|
5
|
+
export declare const invalidMeasureSortInvalidMeasure: IMeasureSortItem;
|
|
6
|
+
export declare const invalidMeasureSortInvalidAttribute: IMeasureSortItem;
|
|
7
|
+
export declare const invalidMeasureSortTooManyLocators: IMeasureSortItem;
|
|
8
|
+
export declare const invalidMeasureSortLocatorsTooShort: IMeasureSortItem;
|
|
9
|
+
//# sourceMappingURL=sortMocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortMocks.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/sortMocks.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EAIxB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,gBAAgB,EAAE,gBAE7B,CAAC;AACH,eAAO,MAAM,kBAAkB,EAAE,kBAAmD,CAAC;AACrF,eAAO,MAAM,oBAAoB,EAAE,kBAAwD,CAAC;AAE5F,eAAO,MAAM,gCAAgC,EAAE,gBAE7C,CAAC;AAEH,eAAO,MAAM,kCAAkC,EAAE,gBAE/C,CAAC;AAEH,eAAO,MAAM,iCAAiC,EAAE,gBAG9C,CAAC;AAEH,eAAO,MAAM,kCAAkC,EAAE,gBAA8C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
// sortItems based on referencePointMocks.simpleStackedReferencePoint
|
|
3
|
+
import { newAttributeLocator, newAttributeSort, newMeasureSort, } from "@gooddata/sdk-model";
|
|
4
|
+
export const validMeasureSort = newMeasureSort("m1", "asc", [
|
|
5
|
+
newAttributeLocator("a2", "/gdc/md/PROJECTID/obj/2210/elements?id=1234"),
|
|
6
|
+
]);
|
|
7
|
+
export const validAttributeSort = newAttributeSort("a1", "desc");
|
|
8
|
+
export const invalidAttributeSort = newAttributeSort("invalid", "desc");
|
|
9
|
+
export const invalidMeasureSortInvalidMeasure = newMeasureSort("invalid", "asc", [
|
|
10
|
+
newAttributeLocator("a2", "/gdc/md/PROJECTID/obj/2210/elements?id=1234"),
|
|
11
|
+
]);
|
|
12
|
+
export const invalidMeasureSortInvalidAttribute = newMeasureSort("m1", "asc", [
|
|
13
|
+
newAttributeLocator("a1", "/gdc/md/PROJECTID/obj/2210/elements?id=1234"),
|
|
14
|
+
]);
|
|
15
|
+
export const invalidMeasureSortTooManyLocators = newMeasureSort("m1", "asc", [
|
|
16
|
+
newAttributeLocator("a2", "/gdc/md/PROJECTID/obj/2210/elements?id=1234"),
|
|
17
|
+
newAttributeLocator("a2", "/gdc/md/PROJECTID/obj/2210/elements?id=1234"),
|
|
18
|
+
]);
|
|
19
|
+
export const invalidMeasureSortLocatorsTooShort = newMeasureSort("m1", "asc");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type IAllMeasureColumnWidthItem, type IAttributeColumnWidthItem, type IMeasureColumnWidthItem, type IMixedValuesColumnWidthItem, type ISliceMeasureColumnWidthItem, type IWeakMeasureColumnWidthItem } from "@gooddata/sdk-ui-pivot";
|
|
2
|
+
export declare const validMeasureColumnWidthItem: IMeasureColumnWidthItem;
|
|
3
|
+
export declare const validAllMeasureColumnWidthItem: IAllMeasureColumnWidthItem;
|
|
4
|
+
export declare const validWeakMeasureColumnWidthItem: IWeakMeasureColumnWidthItem;
|
|
5
|
+
export declare const validAttributeColumnWidthItem: IAttributeColumnWidthItem;
|
|
6
|
+
export declare const invalidAttributeColumnWidthItem: IAttributeColumnWidthItem;
|
|
7
|
+
export declare const invalidMeasureColumnWidthItem: IMeasureColumnWidthItem;
|
|
8
|
+
export declare const invalidMeasureColumnWidthItemInvalidAttribute: IMeasureColumnWidthItem;
|
|
9
|
+
export declare const invalidMeasureColumnWidthItemTooManyLocators: IMeasureColumnWidthItem;
|
|
10
|
+
export declare const invalidMeasureColumnWidthItemLocatorsTooShort: IMeasureColumnWidthItem;
|
|
11
|
+
export declare const transformedWeakMeasureColumnWidth: IWeakMeasureColumnWidthItem;
|
|
12
|
+
export declare const validSliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItem;
|
|
13
|
+
export declare const invalidSliceMeasureColumnWidthItem: ISliceMeasureColumnWidthItem;
|
|
14
|
+
export declare const validMixedValuesColumnWidthItem: IMixedValuesColumnWidthItem;
|
|
15
|
+
export declare const invalidMixedValueColumnWidthItem: IMixedValuesColumnWidthItem;
|
|
16
|
+
//# sourceMappingURL=widthItemsMock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widthItemsMock.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EACnC,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,2BAA2B,EAAE,uBAiBzC,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,0BAI5C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,2BAS7C,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,yBAK3C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,yBAK7C,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,uBAiB3C,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,uBAiB3D,CAAC;AAEF,eAAO,MAAM,4CAA4C,EAAE,uBAuB1D,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,uBAW3D,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,2BAS/C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,4BAW9C,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,4BAgBhD,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,2BAW7C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,2BAgB9C,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
export const validMeasureColumnWidthItem = {
|
|
3
|
+
measureColumnWidthItem: {
|
|
4
|
+
width: { value: 100 },
|
|
5
|
+
locators: [
|
|
6
|
+
{
|
|
7
|
+
attributeLocatorItem: {
|
|
8
|
+
attributeIdentifier: "a2",
|
|
9
|
+
element: "/gdc/md/PROJECTID/obj/2210/elements?id=1234",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
measureLocatorItem: {
|
|
14
|
+
measureIdentifier: "m1",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
export const validAllMeasureColumnWidthItem = {
|
|
21
|
+
measureColumnWidthItem: {
|
|
22
|
+
width: { value: 400 },
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export const validWeakMeasureColumnWidthItem = {
|
|
26
|
+
measureColumnWidthItem: {
|
|
27
|
+
width: { value: 100 },
|
|
28
|
+
locator: {
|
|
29
|
+
measureLocatorItem: {
|
|
30
|
+
measureIdentifier: "m1",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export const validAttributeColumnWidthItem = {
|
|
36
|
+
attributeColumnWidthItem: {
|
|
37
|
+
width: { value: 100 },
|
|
38
|
+
attributeIdentifier: "a1",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export const invalidAttributeColumnWidthItem = {
|
|
42
|
+
attributeColumnWidthItem: {
|
|
43
|
+
width: { value: 100 },
|
|
44
|
+
attributeIdentifier: "invalid",
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
export const invalidMeasureColumnWidthItem = {
|
|
48
|
+
measureColumnWidthItem: {
|
|
49
|
+
width: { value: 100 },
|
|
50
|
+
locators: [
|
|
51
|
+
{
|
|
52
|
+
attributeLocatorItem: {
|
|
53
|
+
attributeIdentifier: "a2",
|
|
54
|
+
element: "/gdc/md/PROJECTID/obj/2210/elements?id=1234",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
measureLocatorItem: {
|
|
59
|
+
measureIdentifier: "invalid", // this measure is not in buckets
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const invalidMeasureColumnWidthItemInvalidAttribute = {
|
|
66
|
+
measureColumnWidthItem: {
|
|
67
|
+
width: { value: 100 },
|
|
68
|
+
locators: [
|
|
69
|
+
{
|
|
70
|
+
attributeLocatorItem: {
|
|
71
|
+
attributeIdentifier: "a1", // this identifier doesn't exist on second dimension
|
|
72
|
+
element: "/gdc/md/PROJECTID/obj/2210/elements?id=1234",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
measureLocatorItem: {
|
|
77
|
+
measureIdentifier: "m1",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
export const invalidMeasureColumnWidthItemTooManyLocators = {
|
|
84
|
+
measureColumnWidthItem: {
|
|
85
|
+
width: { value: 100 },
|
|
86
|
+
locators: [
|
|
87
|
+
{
|
|
88
|
+
attributeLocatorItem: {
|
|
89
|
+
attributeIdentifier: "a2",
|
|
90
|
+
element: "/gdc/md/PROJECTID/obj/2210/elements?id=1234",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
attributeLocatorItem: {
|
|
95
|
+
attributeIdentifier: "a2",
|
|
96
|
+
element: "/gdc/md/PROJECTID/obj/2210/elements?id=1234",
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
measureLocatorItem: {
|
|
101
|
+
measureIdentifier: "m1",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
export const invalidMeasureColumnWidthItemLocatorsTooShort = {
|
|
108
|
+
measureColumnWidthItem: {
|
|
109
|
+
width: { value: 100 },
|
|
110
|
+
locators: [
|
|
111
|
+
{
|
|
112
|
+
measureLocatorItem: {
|
|
113
|
+
measureIdentifier: "m1",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export const transformedWeakMeasureColumnWidth = {
|
|
120
|
+
measureColumnWidthItem: {
|
|
121
|
+
width: { value: 100 },
|
|
122
|
+
locator: {
|
|
123
|
+
measureLocatorItem: {
|
|
124
|
+
measureIdentifier: "m1",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
export const validSliceMeasureColumnWidthItem = {
|
|
130
|
+
sliceMeasureColumnWidthItem: {
|
|
131
|
+
width: { value: 100 },
|
|
132
|
+
locators: [
|
|
133
|
+
{
|
|
134
|
+
measureLocatorItem: {
|
|
135
|
+
measureIdentifier: "m1",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
export const invalidSliceMeasureColumnWidthItem = {
|
|
142
|
+
sliceMeasureColumnWidthItem: {
|
|
143
|
+
width: { value: 100 },
|
|
144
|
+
locators: [
|
|
145
|
+
{
|
|
146
|
+
measureLocatorItem: {
|
|
147
|
+
measureIdentifier: "m1",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
measureLocatorItem: {
|
|
152
|
+
measureIdentifier: "m2",
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
export const validMixedValuesColumnWidthItem = {
|
|
159
|
+
mixedValuesColumnWidthItem: {
|
|
160
|
+
width: { value: 100 },
|
|
161
|
+
locators: [
|
|
162
|
+
{
|
|
163
|
+
measureLocatorItem: {
|
|
164
|
+
measureIdentifier: "m1",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
export const invalidMixedValueColumnWidthItem = {
|
|
171
|
+
mixedValuesColumnWidthItem: {
|
|
172
|
+
width: { value: 100 },
|
|
173
|
+
locators: [
|
|
174
|
+
{
|
|
175
|
+
measureLocatorItem: {
|
|
176
|
+
measureIdentifier: "m1",
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
measureLocatorItem: {
|
|
181
|
+
measureIdentifier: "m2",
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
};
|
package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
2
|
+
import { type Mock } from "vitest";
|
|
3
|
+
import { type IAttribute, type IInsight, type IInsightDefinition } from "@gooddata/sdk-model";
|
|
4
|
+
import { type IDrillEvent, type IDrillEventIntersectionElement, type VisType } from "@gooddata/sdk-ui";
|
|
5
|
+
import { type IDrillDownDefinition } from "../../interfaces/Visualization.js";
|
|
6
|
+
export declare function createDrillDefinition(fromAttribute: IAttribute, targetUri: string): IDrillDownDefinition;
|
|
7
|
+
export declare function insightDefinitionToInsight(insightDefinition: IInsightDefinition, uri: string, identifier: string): IInsight;
|
|
8
|
+
export declare function createDrillEvent(type: VisType, intersection: IDrillEventIntersectionElement[]): IDrillEvent;
|
|
9
|
+
/**
|
|
10
|
+
* Find the last call to a render function in the mock calls that matches given mounting point
|
|
11
|
+
* This is useful when need to separate between `renderVisualization` and `renderConfigurationPanel`
|
|
12
|
+
* Using second parameter - mounting point - as a differentiator
|
|
13
|
+
* @returns a React element passed to render function
|
|
14
|
+
*/
|
|
15
|
+
export declare function getLastRenderEl<T = any>(func: Mock, element: HTMLElement): ReactElement<T> | undefined;
|
|
16
|
+
//# sourceMappingURL=pluggableVisualizations.test.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluggableVisualizations.test.helpers.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAG1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,WAAW,EAChB,KAAK,8BAA8B,EAEnC,KAAK,OAAO,EACf,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,oBAAoB,CAMxG;AAED,wBAAgB,0BAA0B,CACtC,iBAAiB,EAAE,kBAAkB,EACrC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,GACnB,QAAQ,CAUV;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,8BAA8B,EAAE,GAAG,WAAW,CAS3G;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,SAAS,CAEtG"}
|
package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
import { localIdRef, uriRef, } from "@gooddata/sdk-model";
|
|
3
|
+
export function createDrillDefinition(fromAttribute, targetUri) {
|
|
4
|
+
return {
|
|
5
|
+
type: "drillDown",
|
|
6
|
+
origin: localIdRef(fromAttribute.attribute.localIdentifier),
|
|
7
|
+
target: uriRef(targetUri),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function insightDefinitionToInsight(insightDefinition, uri, identifier) {
|
|
11
|
+
return {
|
|
12
|
+
...insightDefinition,
|
|
13
|
+
insight: {
|
|
14
|
+
...insightDefinition.insight,
|
|
15
|
+
identifier,
|
|
16
|
+
uri,
|
|
17
|
+
ref: uriRef(uri),
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export function createDrillEvent(type, intersection) {
|
|
22
|
+
return {
|
|
23
|
+
dataView: null,
|
|
24
|
+
drillContext: {
|
|
25
|
+
type,
|
|
26
|
+
intersection,
|
|
27
|
+
element: null,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Find the last call to a render function in the mock calls that matches given mounting point
|
|
33
|
+
* This is useful when need to separate between `renderVisualization` and `renderConfigurationPanel`
|
|
34
|
+
* Using second parameter - mounting point - as a differentiator
|
|
35
|
+
* @returns a React element passed to render function
|
|
36
|
+
*/
|
|
37
|
+
export function getLastRenderEl(func, element) {
|
|
38
|
+
return [...func.mock.calls].reverse().find((call) => call[1] === element)?.[0];
|
|
39
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IDrillEventIntersectionElement } from "@gooddata/sdk-ui";
|
|
2
|
+
import { type IDrillDownDefinition } from "../../interfaces/Visualization.js";
|
|
3
|
+
export declare const reverseAndTrimIntersectionMock: {
|
|
4
|
+
drillConfigRegion: IDrillDownDefinition;
|
|
5
|
+
intersectionWithOuterDepartment: IDrillEventIntersectionElement[];
|
|
6
|
+
intersectionWithOuterRegion: IDrillEventIntersectionElement[];
|
|
7
|
+
intersectionWithOuterDepartmentResult: IDrillEventIntersectionElement[];
|
|
8
|
+
intersectionWithOuterRegionResult: IDrillEventIntersectionElement[];
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=reverseAndTrimIntersectionMock.d.ts.map
|
package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverseAndTrimIntersectionMock.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AA+F9E,eAAO,MAAM,8BAA8B;;;;;;CAM1C,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
import { ReferenceData, ReferenceMd } from "@gooddata/reference-workspace";
|
|
3
|
+
import { localIdRef } from "@gooddata/sdk-model";
|
|
4
|
+
const { Department, Region, Won } = ReferenceMd;
|
|
5
|
+
const drillConfigRegion = {
|
|
6
|
+
type: "drillDown",
|
|
7
|
+
origin: localIdRef(Region.Default.attribute.localIdentifier),
|
|
8
|
+
target: Department.Default.attribute.displayForm,
|
|
9
|
+
};
|
|
10
|
+
const regionUri = "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/1024";
|
|
11
|
+
const departmentUri = "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/1027";
|
|
12
|
+
const westCoastUri = ReferenceData.Region.WestCoast.uri;
|
|
13
|
+
const directSalesUri = ReferenceData.Department.DirectSales.uri;
|
|
14
|
+
const directSalesHeader = {
|
|
15
|
+
header: {
|
|
16
|
+
attributeHeaderItem: {
|
|
17
|
+
name: "Direct Sales",
|
|
18
|
+
uri: directSalesUri,
|
|
19
|
+
},
|
|
20
|
+
attributeHeader: {
|
|
21
|
+
name: Department.Default.attribute.alias,
|
|
22
|
+
localIdentifier: Department.Default.attribute.localIdentifier,
|
|
23
|
+
uri: departmentUri,
|
|
24
|
+
ref: {
|
|
25
|
+
uri: departmentUri,
|
|
26
|
+
},
|
|
27
|
+
identifier: "mock-identifier",
|
|
28
|
+
formOf: {
|
|
29
|
+
identifier: "mock-attribute",
|
|
30
|
+
name: "Mock Attribute",
|
|
31
|
+
ref: { uri: departmentUri },
|
|
32
|
+
uri: departmentUri,
|
|
33
|
+
},
|
|
34
|
+
primaryLabel: { uri: departmentUri },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const westCoastHeader = {
|
|
39
|
+
header: {
|
|
40
|
+
attributeHeaderItem: {
|
|
41
|
+
name: "West Coast",
|
|
42
|
+
uri: westCoastUri,
|
|
43
|
+
},
|
|
44
|
+
attributeHeader: {
|
|
45
|
+
name: Region.Default.attribute.alias,
|
|
46
|
+
localIdentifier: Region.Default.attribute.localIdentifier,
|
|
47
|
+
uri: regionUri,
|
|
48
|
+
ref: {
|
|
49
|
+
uri: regionUri,
|
|
50
|
+
},
|
|
51
|
+
identifier: "mock-identifier",
|
|
52
|
+
formOf: {
|
|
53
|
+
identifier: "mock-attribute",
|
|
54
|
+
name: "Mock Attribute",
|
|
55
|
+
ref: { uri: regionUri },
|
|
56
|
+
uri: regionUri,
|
|
57
|
+
},
|
|
58
|
+
primaryLabel: { uri: regionUri },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
const measureHeader = {
|
|
63
|
+
header: {
|
|
64
|
+
measureHeaderItem: {
|
|
65
|
+
name: Won.measure.title,
|
|
66
|
+
format: "#,##0.00",
|
|
67
|
+
localIdentifier: Won.measure.localIdentifier,
|
|
68
|
+
uri: "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/9203",
|
|
69
|
+
identifier: undefined,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const intersectionWithOuterDepartment = [
|
|
74
|
+
directSalesHeader,
|
|
75
|
+
westCoastHeader,
|
|
76
|
+
measureHeader,
|
|
77
|
+
];
|
|
78
|
+
const intersectionWithOuterRegion = [
|
|
79
|
+
westCoastHeader,
|
|
80
|
+
directSalesHeader,
|
|
81
|
+
measureHeader,
|
|
82
|
+
];
|
|
83
|
+
const intersectionWithOuterDepartmentResult = [
|
|
84
|
+
westCoastHeader,
|
|
85
|
+
directSalesHeader,
|
|
86
|
+
];
|
|
87
|
+
const intersectionWithOuterRegionResult = [westCoastHeader];
|
|
88
|
+
export const reverseAndTrimIntersectionMock = {
|
|
89
|
+
drillConfigRegion,
|
|
90
|
+
intersectionWithOuterDepartment,
|
|
91
|
+
intersectionWithOuterRegion,
|
|
92
|
+
intersectionWithOuterDepartmentResult,
|
|
93
|
+
intersectionWithOuterRegionResult,
|
|
94
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IInsightDefinition } from "@gooddata/sdk-model";
|
|
2
|
+
import { type IDrillEventIntersectionElement } from "@gooddata/sdk-ui";
|
|
3
|
+
export declare const targetUri = "target-uri";
|
|
4
|
+
export declare const intersection: IDrillEventIntersectionElement[];
|
|
5
|
+
export declare const sourceInsightDef: IInsightDefinition;
|
|
6
|
+
export declare const expectedInsightDefRegion: IInsightDefinition;
|
|
7
|
+
export declare const expectedInsightDefDepartment: IInsightDefinition;
|
|
8
|
+
//# sourceMappingURL=getInsightWithDrillDownAppliedMock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInsightWithDrillDownAppliedMock.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,KAAK,kBAAkB,EAO1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kBAAkB,CAAC;AAQvE,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,eAAO,MAAM,YAAY,EAAE,8BAA8B,EAgExD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,kBAS7B,CAAC;AAUH,eAAO,MAAM,wBAAwB,EAAE,kBAoBtC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,kBAiB1C,CAAC"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// (C) 2020-2026 GoodData Corporation
|
|
2
|
+
import { ReferenceData, ReferenceMd } from "@gooddata/reference-workspace";
|
|
3
|
+
import { newAttribute, newBucket, newInsightDefinition, newNegativeAttributeFilter, newPositiveAttributeFilter, uriRef, } from "@gooddata/sdk-model";
|
|
4
|
+
const { Department, Region, Won } = ReferenceMd;
|
|
5
|
+
const regionUri = "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/1024";
|
|
6
|
+
const departmentUri = "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/1027";
|
|
7
|
+
const westCoastUri = ReferenceData.Region.WestCoast.uri;
|
|
8
|
+
const directSalesUri = ReferenceData.Department.DirectSales.uri;
|
|
9
|
+
export const targetUri = "target-uri";
|
|
10
|
+
export const intersection = [
|
|
11
|
+
{
|
|
12
|
+
header: {
|
|
13
|
+
attributeHeaderItem: {
|
|
14
|
+
name: "Direct Sales",
|
|
15
|
+
uri: directSalesUri,
|
|
16
|
+
},
|
|
17
|
+
attributeHeader: {
|
|
18
|
+
name: Department.Default.attribute.alias,
|
|
19
|
+
localIdentifier: Department.Default.attribute.localIdentifier,
|
|
20
|
+
uri: departmentUri,
|
|
21
|
+
ref: {
|
|
22
|
+
uri: departmentUri,
|
|
23
|
+
},
|
|
24
|
+
identifier: "mock-identifier",
|
|
25
|
+
formOf: {
|
|
26
|
+
identifier: "mock-attribute",
|
|
27
|
+
name: "Mock Attribute",
|
|
28
|
+
ref: { uri: departmentUri },
|
|
29
|
+
uri: departmentUri,
|
|
30
|
+
},
|
|
31
|
+
primaryLabel: {
|
|
32
|
+
uri: departmentUri,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
header: {
|
|
39
|
+
attributeHeaderItem: {
|
|
40
|
+
name: "West Coast",
|
|
41
|
+
uri: westCoastUri,
|
|
42
|
+
},
|
|
43
|
+
attributeHeader: {
|
|
44
|
+
name: Region.Default.attribute.alias,
|
|
45
|
+
localIdentifier: Region.Default.attribute.localIdentifier,
|
|
46
|
+
uri: regionUri,
|
|
47
|
+
ref: {
|
|
48
|
+
uri: regionUri,
|
|
49
|
+
},
|
|
50
|
+
identifier: "mock-identifier",
|
|
51
|
+
formOf: {
|
|
52
|
+
identifier: "mock-attribute",
|
|
53
|
+
name: "Mock Attribute",
|
|
54
|
+
ref: { uri: regionUri },
|
|
55
|
+
uri: regionUri,
|
|
56
|
+
},
|
|
57
|
+
primaryLabel: {
|
|
58
|
+
uri: regionUri,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
header: {
|
|
65
|
+
measureHeaderItem: {
|
|
66
|
+
name: Won.measure.title,
|
|
67
|
+
format: "#,##0.00",
|
|
68
|
+
localIdentifier: Won.measure.localIdentifier,
|
|
69
|
+
uri: "/gdc/md/lmnivlu3sowt63jvr2mo1wlse5fyv203/obj/9203",
|
|
70
|
+
identifier: undefined,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
export const sourceInsightDef = newInsightDefinition("visualizationClass-url", (b) => {
|
|
76
|
+
return b
|
|
77
|
+
.title("sourceInsight")
|
|
78
|
+
.buckets([
|
|
79
|
+
newBucket("measure", Won),
|
|
80
|
+
newBucket("view", Department.Default),
|
|
81
|
+
newBucket("segment", Region.Default),
|
|
82
|
+
])
|
|
83
|
+
.filters([newNegativeAttributeFilter(Department.Default, [])]);
|
|
84
|
+
});
|
|
85
|
+
const replacedAttributeRegion = newAttribute(uriRef(targetUri), (b) => b.localId(Region.Default.attribute.localIdentifier));
|
|
86
|
+
const replacedAttributeDepartment = newAttribute(uriRef(targetUri), (b) => b.localId(Department.Default.attribute.localIdentifier));
|
|
87
|
+
export const expectedInsightDefRegion = newInsightDefinition("visualizationClass-url", (b) => {
|
|
88
|
+
return b
|
|
89
|
+
.title("sourceInsight")
|
|
90
|
+
.buckets([
|
|
91
|
+
newBucket("measure", Won),
|
|
92
|
+
newBucket("view", Department.Default),
|
|
93
|
+
newBucket("segment", replacedAttributeRegion),
|
|
94
|
+
])
|
|
95
|
+
.filters([
|
|
96
|
+
newNegativeAttributeFilter(Department.Default, []),
|
|
97
|
+
newPositiveAttributeFilter(newAttribute(uriRef(regionUri)), {
|
|
98
|
+
uris: [westCoastUri],
|
|
99
|
+
}),
|
|
100
|
+
newPositiveAttributeFilter(newAttribute(uriRef(departmentUri)), {
|
|
101
|
+
uris: [directSalesUri],
|
|
102
|
+
}),
|
|
103
|
+
]);
|
|
104
|
+
});
|
|
105
|
+
export const expectedInsightDefDepartment = newInsightDefinition("visualizationClass-url", (b) => {
|
|
106
|
+
return b
|
|
107
|
+
.title("sourceInsight")
|
|
108
|
+
.buckets([
|
|
109
|
+
newBucket("measure", Won),
|
|
110
|
+
newBucket("view", replacedAttributeDepartment),
|
|
111
|
+
newBucket("segment", Region.Default),
|
|
112
|
+
])
|
|
113
|
+
.filters([
|
|
114
|
+
newNegativeAttributeFilter(Department.Default, []),
|
|
115
|
+
newPositiveAttributeFilter(newAttribute(uriRef(departmentUri)), {
|
|
116
|
+
uris: [directSalesUri],
|
|
117
|
+
}),
|
|
118
|
+
]);
|
|
119
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const DummyVisConstruct: {
|
|
2
|
+
projectId: string;
|
|
3
|
+
backend: import("@gooddata/sdk-backend-spi").IAnalyticalBackend;
|
|
4
|
+
element: () => null;
|
|
5
|
+
configPanelElement: () => null;
|
|
6
|
+
callbacks: {
|
|
7
|
+
onError: () => void;
|
|
8
|
+
afterRender: () => void;
|
|
9
|
+
onDrill: () => void;
|
|
10
|
+
onExportReady: () => void;
|
|
11
|
+
onLoadingChanged: () => void;
|
|
12
|
+
pushData: () => void;
|
|
13
|
+
};
|
|
14
|
+
renderFun: () => void;
|
|
15
|
+
visualizationProperties: {};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=visConstruct.fixture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visConstruct.fixture.d.ts","sourceRoot":"","sources":["../../../../src/internal/components/pluggableVisualizations/visConstruct.fixture.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;CAe7B,CAAC"}
|