@gooddata/sdk-ui-ext 11.54.0-alpha.5 → 11.54.0-alpha.7

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.
Files changed (89) hide show
  1. package/NOTICE +849 -114
  2. package/esm/dataLoaders/{dataLoaders.mock.d.ts → dataLoaders.test.helpers.d.ts} +1 -1
  3. package/esm/dataLoaders/dataLoaders.test.helpers.d.ts.map +1 -0
  4. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/{utils.fixture.d.ts → utils.test.helpers.d.ts} +1 -1
  5. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.test.helpers.d.ts.map +1 -0
  6. package/esm/internal/components/configurationControls/colors/coloredItemsList/{mock.d.ts → coloredItemsList.test.helpers.d.ts} +1 -1
  7. package/esm/internal/components/configurationControls/colors/coloredItemsList/coloredItemsList.test.helpers.d.ts.map +1 -0
  8. package/esm/internal/components/pluggableVisualizations/areaChart/{getInsightWithDrillDownAppliedMock.d.ts → getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  9. package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  10. package/esm/internal/components/pluggableVisualizations/baseChart/{getInsightWithDrillDownAppliedMock.d.ts → getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  11. package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  12. package/esm/internal/components/pluggableVisualizations/{treeMap/getInsightWithDrillDownAppliedMock.d.ts → bulletChart/getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  13. package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  14. package/esm/internal/components/pluggableVisualizations/{getInsightWithDrillDownAppliedMock.d.ts → getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  15. package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  16. package/esm/internal/components/pluggableVisualizations/{bulletChart/getInsightWithDrillDownAppliedMock.d.ts → heatMap/getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  17. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  18. package/esm/internal/components/pluggableVisualizations/mekko/MekkoDescriptor.js +1 -1
  19. package/esm/internal/components/pluggableVisualizations/pivotTable/{getInsightWithDrillDownAppliedMock.d.ts → getInsightWithDrillDownAppliedMock.test.helpers.d.ts} +1 -1
  20. package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.test.helpers.d.ts.map +1 -0
  21. package/esm/internal/components/pluggableVisualizations/pivotTable/{mockReferencePoint.d.ts → mockReferencePoint.test.helpers.d.ts} +1 -1
  22. package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.test.helpers.d.ts.map +1 -0
  23. package/esm/internal/components/pluggableVisualizations/pivotTable/{sortMocks.d.ts → sortMocks.test.helpers.d.ts} +1 -1
  24. package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.test.helpers.d.ts.map +1 -0
  25. package/esm/internal/components/pluggableVisualizations/pivotTable/{widthItemsMock.d.ts → widthItemsMock.test.helpers.d.ts} +1 -1
  26. package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.test.helpers.d.ts.map +1 -0
  27. package/esm/internal/components/pluggableVisualizations/{reverseAndTrimIntersectionMock.d.ts → reverseAndTrimIntersectionMock.test.helpers.d.ts} +1 -1
  28. package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.test.helpers.d.ts.map +1 -0
  29. package/esm/internal/components/{pluggableVisualizations/visConstruct.fixture.d.ts → visConstruct.test.helpers.d.ts} +1 -1
  30. package/esm/internal/components/visConstruct.test.helpers.d.ts.map +1 -0
  31. package/esm/internal/constants/bucket.d.ts +1 -0
  32. package/esm/internal/constants/bucket.d.ts.map +1 -1
  33. package/esm/internal/constants/bucket.js +2 -1
  34. package/esm/internal/constants/supportedProperties.d.ts.map +1 -1
  35. package/esm/internal/constants/supportedProperties.js +1 -0
  36. package/esm/internal/constants/uiConfig.js +8 -8
  37. package/esm/internal/interfaces/typeGuards.test.helpers.d.ts +6 -0
  38. package/esm/internal/interfaces/typeGuards.test.helpers.d.ts.map +1 -0
  39. package/esm/internal/interfaces/typeGuards.test.helpers.js +21 -0
  40. package/esm/internal/translations/pt-BR.localization-bundle.js +2 -2
  41. package/esm/internal/translations/pt-PT.localization-bundle.js +2 -2
  42. package/esm/internal/{mocks/uiConfigMocks.d.ts → utils/uiConfigMocks.test.helpers.d.ts} +1 -1
  43. package/esm/internal/utils/uiConfigMocks.test.helpers.d.ts.map +1 -0
  44. package/package.json +28 -28
  45. package/esm/dataLoaders/dataLoaders.mock.d.ts.map +0 -1
  46. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.d.ts.map +0 -1
  47. package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.d.ts.map +0 -1
  48. package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  49. package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  50. package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  51. package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  52. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts +0 -8
  53. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  54. package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  55. package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.d.ts.map +0 -1
  56. package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.d.ts.map +0 -1
  57. package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.d.ts.map +0 -1
  58. package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts.map +0 -1
  59. package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.d.ts.map +0 -1
  60. package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.js +0 -119
  61. package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.d.ts.map +0 -1
  62. package/esm/internal/mocks/referencePointMocks.d.ts +0 -187
  63. package/esm/internal/mocks/referencePointMocks.d.ts.map +0 -1
  64. package/esm/internal/mocks/referencePointMocks.js +0 -4045
  65. package/esm/internal/mocks/testColorHelper.d.ts +0 -19
  66. package/esm/internal/mocks/testColorHelper.d.ts.map +0 -1
  67. package/esm/internal/mocks/testColorHelper.js +0 -65
  68. package/esm/internal/mocks/testMocks.d.ts +0 -24
  69. package/esm/internal/mocks/testMocks.d.ts.map +0 -1
  70. package/esm/internal/mocks/testMocks.js +0 -739
  71. package/esm/internal/mocks/uiConfigMocks.d.ts.map +0 -1
  72. package/esm/internal/mocks/visualizationObjectMocks.d.ts +0 -7
  73. package/esm/internal/mocks/visualizationObjectMocks.d.ts.map +0 -1
  74. package/esm/internal/mocks/visualizationObjectMocks.js +0 -49
  75. /package/esm/dataLoaders/{dataLoaders.mock.js → dataLoaders.test.helpers.js} +0 -0
  76. /package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/{utils.fixture.js → utils.test.helpers.js} +0 -0
  77. /package/esm/internal/components/configurationControls/colors/coloredItemsList/{mock.js → coloredItemsList.test.helpers.js} +0 -0
  78. /package/esm/internal/components/pluggableVisualizations/areaChart/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  79. /package/esm/internal/components/pluggableVisualizations/baseChart/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  80. /package/esm/internal/components/pluggableVisualizations/bulletChart/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  81. /package/esm/internal/components/pluggableVisualizations/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  82. /package/esm/internal/components/pluggableVisualizations/heatMap/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  83. /package/esm/internal/components/pluggableVisualizations/pivotTable/{getInsightWithDrillDownAppliedMock.js → getInsightWithDrillDownAppliedMock.test.helpers.js} +0 -0
  84. /package/esm/internal/components/pluggableVisualizations/pivotTable/{mockReferencePoint.js → mockReferencePoint.test.helpers.js} +0 -0
  85. /package/esm/internal/components/pluggableVisualizations/pivotTable/{sortMocks.js → sortMocks.test.helpers.js} +0 -0
  86. /package/esm/internal/components/pluggableVisualizations/pivotTable/{widthItemsMock.js → widthItemsMock.test.helpers.js} +0 -0
  87. /package/esm/internal/components/pluggableVisualizations/{reverseAndTrimIntersectionMock.js → reverseAndTrimIntersectionMock.test.helpers.js} +0 -0
  88. /package/esm/internal/components/{pluggableVisualizations/visConstruct.fixture.js → visConstruct.test.helpers.js} +0 -0
  89. /package/esm/internal/{mocks/uiConfigMocks.js → utils/uiConfigMocks.test.helpers.js} +0 -0
@@ -1,4045 +0,0 @@
1
- // (C) 2019-2026 GoodData Corporation
2
- import { idRef, uriRef } from "@gooddata/sdk-model";
3
- import { OverTimeComparisonTypes, VisualizationTypes } from "@gooddata/sdk-ui";
4
- import { DATE_DATASET_ATTRIBUTE, } from "../interfaces/Visualization.js";
5
- export const dateDatasetRef = uriRef("data.dataset.1");
6
- export const masterMeasureItems = [
7
- {
8
- localIdentifier: "m1",
9
- type: "metric",
10
- aggregation: null,
11
- attribute: "aazb6kroa3iC",
12
- showInPercent: null,
13
- showOnSecondaryAxis: null,
14
- },
15
- {
16
- localIdentifier: "m2",
17
- type: "metric",
18
- aggregation: null,
19
- attribute: "af2Ewj9Re2vK",
20
- showInPercent: null,
21
- showOnSecondaryAxis: null,
22
- },
23
- {
24
- localIdentifier: "m3",
25
- type: "metric",
26
- aggregation: null,
27
- attribute: "dt.opportunitysnapshot.snapshotdate",
28
- showInPercent: null,
29
- showOnSecondaryAxis: true,
30
- },
31
- {
32
- localIdentifier: "m4",
33
- type: "metric",
34
- aggregation: null,
35
- attribute: "acfWntEMcom0",
36
- showInPercent: null,
37
- showOnSecondaryAxis: true,
38
- },
39
- ];
40
- export const derivedMeasureItems = [
41
- {
42
- localIdentifier: "m1_pop",
43
- type: "metric",
44
- aggregation: null,
45
- attribute: "aazb6kroa3iC",
46
- showInPercent: null,
47
- showOnSecondaryAxis: null,
48
- masterLocalIdentifier: "m1",
49
- overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
50
- },
51
- {
52
- localIdentifier: "m2_pop",
53
- type: "metric",
54
- aggregation: null,
55
- attribute: "af2Ewj9Re2vK",
56
- showInPercent: null,
57
- showOnSecondaryAxis: null,
58
- masterLocalIdentifier: "m2",
59
- overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
60
- },
61
- {
62
- localIdentifier: "m3_pop",
63
- type: "metric",
64
- aggregation: null,
65
- attribute: "dt.opportunitysnapshot.snapshotdate",
66
- showInPercent: null,
67
- showOnSecondaryAxis: true,
68
- masterLocalIdentifier: "m3",
69
- overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
70
- },
71
- {
72
- localIdentifier: "m4_pop",
73
- type: "metric",
74
- aggregation: null,
75
- attribute: "acfWntEMcom0",
76
- showInPercent: null,
77
- showOnSecondaryAxis: true,
78
- masterLocalIdentifier: "m4",
79
- overTimeComparisonType: OverTimeComparisonTypes.PREVIOUS_PERIOD,
80
- },
81
- {
82
- localIdentifier: "m5_pop",
83
- type: "metric",
84
- aggregation: null,
85
- attribute: "acfWntEMcom0",
86
- showInPercent: null,
87
- showOnSecondaryAxis: null,
88
- masterLocalIdentifier: "m4",
89
- overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
90
- },
91
- {
92
- localIdentifier: "m6_pop",
93
- type: "metric",
94
- aggregation: null,
95
- attribute: "acfWntEMcom0",
96
- showInPercent: null,
97
- showOnSecondaryAxis: null,
98
- masterLocalIdentifier: "am3",
99
- overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
100
- },
101
- ];
102
- export const arithmeticMeasureItems = [
103
- {
104
- localIdentifier: "am1",
105
- type: "metric",
106
- aggregation: null,
107
- attribute: null,
108
- showInPercent: null,
109
- showOnSecondaryAxis: null,
110
- operator: "sum",
111
- operandLocalIdentifiers: ["m1", "m2"],
112
- },
113
- {
114
- localIdentifier: "am2",
115
- type: "metric",
116
- aggregation: null,
117
- attribute: null,
118
- showInPercent: null,
119
- showOnSecondaryAxis: null,
120
- operator: "sum",
121
- operandLocalIdentifiers: ["m1", "am1"],
122
- },
123
- {
124
- localIdentifier: "am3",
125
- type: "metric",
126
- aggregation: null,
127
- attribute: null,
128
- showInPercent: null,
129
- showOnSecondaryAxis: null,
130
- operator: "sum",
131
- operandLocalIdentifiers: ["m1", "m1"],
132
- },
133
- {
134
- localIdentifier: "am4",
135
- type: "metric",
136
- aggregation: null,
137
- attribute: null,
138
- showInPercent: null,
139
- showOnSecondaryAxis: null,
140
- operator: "sum",
141
- operandLocalIdentifiers: ["m1_pop", "m1"],
142
- },
143
- {
144
- localIdentifier: "am5",
145
- type: "metric",
146
- aggregation: null,
147
- attribute: null,
148
- showInPercent: null,
149
- showOnSecondaryAxis: null,
150
- operator: "sum",
151
- operandLocalIdentifiers: ["m3", "m4"],
152
- },
153
- {
154
- localIdentifier: "am6",
155
- type: "metric",
156
- aggregation: null,
157
- attribute: null,
158
- showInPercent: null,
159
- showOnSecondaryAxis: null,
160
- operator: "sum",
161
- operandLocalIdentifiers: ["m2_pop", "m1"],
162
- },
163
- {
164
- localIdentifier: "am7",
165
- type: "metric",
166
- aggregation: null,
167
- attribute: null,
168
- showInPercent: null,
169
- showOnSecondaryAxis: null,
170
- operator: "sum",
171
- operandLocalIdentifiers: ["m1", "m3"],
172
- },
173
- ];
174
- export const masterMeasuresWithPercentage = masterMeasureItems.map((measure) => ({
175
- ...measure,
176
- showInPercent: true,
177
- }));
178
- export const attributeFilter = {
179
- attribute: "some.attribute",
180
- displayFormRef: uriRef("some/attribute/df/uri"),
181
- isInverted: false,
182
- selectedElements: [],
183
- totalElementsCount: 10,
184
- };
185
- export const dateFilter = {
186
- attribute: DATE_DATASET_ATTRIBUTE,
187
- overTimeComparisonType: OverTimeComparisonTypes.NOTHING,
188
- interval: {
189
- granularity: "GDC.year",
190
- interval: [-1, 0],
191
- name: "name",
192
- type: "absolute",
193
- },
194
- };
195
- export const measureValueFilter = {
196
- measureLocalIdentifier: masterMeasureItems[0].localIdentifier,
197
- condition: {
198
- comparison: {
199
- operator: "GREATER_THAN",
200
- value: 100,
201
- },
202
- },
203
- };
204
- export const measureValueFilterWithDimensionality = {
205
- measureLocalIdentifier: masterMeasureItems[0].localIdentifier,
206
- condition: {
207
- comparison: {
208
- operator: "GREATER_THAN",
209
- value: 100,
210
- },
211
- },
212
- dimensionality: ["a1", "a2"],
213
- };
214
- export const measureValueFilterWithDimensionalityRefs = {
215
- measureLocalIdentifier: masterMeasureItems[0].localIdentifier,
216
- condition: {
217
- comparison: {
218
- operator: "GREATER_THAN",
219
- value: 100,
220
- },
221
- },
222
- dimensionality: [idRef("catalogAttr1", "displayForm"), idRef("catalogAttr2", "displayForm")],
223
- };
224
- export const measureValueFilterWithMixedDimensionality = {
225
- measureLocalIdentifier: masterMeasureItems[0].localIdentifier,
226
- condition: {
227
- comparison: {
228
- operator: "GREATER_THAN",
229
- value: 100,
230
- },
231
- },
232
- dimensionality: ["a1", idRef("catalogAttr1", "displayForm")],
233
- };
234
- export const rankingFilter = {
235
- measure: masterMeasureItems[0].localIdentifier,
236
- operator: "TOP",
237
- value: 3,
238
- };
239
- export const dateFilterSamePeriodPreviousYear = {
240
- attribute: DATE_DATASET_ATTRIBUTE,
241
- overTimeComparisonType: OverTimeComparisonTypes.SAME_PERIOD_PREVIOUS_YEAR,
242
- interval: {
243
- granularity: "GDC.year",
244
- interval: [-10, -5],
245
- name: "interval",
246
- type: "absolute",
247
- },
248
- };
249
- export const dateFilterBucketAllTime = {
250
- localIdentifier: "filters",
251
- items: [
252
- {
253
- localIdentifier: "f1",
254
- type: "date",
255
- attribute: "attr.datedataset",
256
- filters: [
257
- {
258
- overTimeComparisonType: "same_period_previous_year",
259
- attribute: "attr.datedataset",
260
- interval: {
261
- name: "all_time",
262
- granularity: "GDC.time.year",
263
- interval: [1, 3],
264
- type: "absolute",
265
- },
266
- },
267
- ],
268
- aggregation: null,
269
- },
270
- ],
271
- };
272
- export const samePeriodPrevYearFiltersBucket = {
273
- localIdentifier: "filters",
274
- items: [
275
- {
276
- localIdentifier: "f1",
277
- type: "date",
278
- attribute: "attr.datedataset",
279
- filters: [
280
- {
281
- overTimeComparisonType: "same_period_previous_year",
282
- attribute: "attr.datedataset",
283
- interval: {
284
- name: "last_year",
285
- granularity: "GDC.time.year",
286
- interval: ["-1", "-1"],
287
- type: "absolute",
288
- },
289
- },
290
- ],
291
- aggregation: null,
292
- dateDatasetRef,
293
- },
294
- ],
295
- };
296
- export const twoDateFiltersBucket = {
297
- localIdentifier: "filters",
298
- items: [
299
- {
300
- localIdentifier: "f1",
301
- type: "date",
302
- attribute: "attr.datedataset",
303
- filters: [
304
- {
305
- overTimeComparisonType: "same_period_previous_year",
306
- attribute: "attr.datedataset",
307
- interval: {
308
- name: "all_time",
309
- granularity: "GDC.time.year",
310
- interval: [0, 0],
311
- type: "relative",
312
- },
313
- },
314
- ],
315
- aggregation: null,
316
- dateDatasetRef,
317
- },
318
- {
319
- localIdentifier: "f2",
320
- type: "date",
321
- attribute: "attr.datedataset",
322
- filters: [
323
- {
324
- overTimeComparisonType: "same_period_previous_year",
325
- attribute: "attr.datedataset",
326
- interval: {
327
- name: "last_year",
328
- granularity: "GDC.time.year",
329
- interval: ["-1", "-1"],
330
- type: "absolute",
331
- },
332
- },
333
- ],
334
- aggregation: null,
335
- dateDatasetRef,
336
- },
337
- ],
338
- };
339
- export const attributeFilterBucketItem = {
340
- localIdentifier: "filters",
341
- items: [
342
- {
343
- attribute: "attr.account.id",
344
- filters: [
345
- {
346
- attribute: "attr.account.id",
347
- displayFormRef: uriRef("account/attribute/df/uri"),
348
- selectedElements: [],
349
- totalElementsCount: 10,
350
- isInverted: false,
351
- },
352
- ],
353
- localIdentifier: "attr1",
354
- autoCreated: false,
355
- },
356
- ],
357
- };
358
- export const rankingFilterBucketItem = {
359
- localIdentifier: "rf1",
360
- filters: [
361
- {
362
- measure: masterMeasureItems[0].localIdentifier,
363
- operator: "TOP",
364
- value: 3,
365
- },
366
- ],
367
- };
368
- export const emptyReferencePoint = {
369
- buckets: [
370
- {
371
- localIdentifier: "measures",
372
- items: [],
373
- },
374
- {
375
- localIdentifier: "view",
376
- items: [],
377
- },
378
- {
379
- localIdentifier: "stack",
380
- items: [],
381
- },
382
- ],
383
- filters: {
384
- localIdentifier: "filters",
385
- items: [],
386
- },
387
- };
388
- export const attributeItems = [
389
- {
390
- localIdentifier: "a1",
391
- type: "attribute",
392
- aggregation: null,
393
- attribute: "attr.owner.department",
394
- dfRef: uriRef("a1/df"),
395
- },
396
- {
397
- localIdentifier: "a2",
398
- type: "attribute",
399
- aggregation: null,
400
- attribute: "attr.stage.iswon",
401
- dfRef: uriRef("a2/df"),
402
- },
403
- {
404
- localIdentifier: "a3",
405
- type: "attribute",
406
- attribute: "attr.owner.region",
407
- dfRef: uriRef("a3/df"),
408
- },
409
- ];
410
- export const sliceByWeekBucketItem = {
411
- localIdentifier: "date-week-attribute",
412
- type: "date",
413
- attribute: DATE_DATASET_ATTRIBUTE,
414
- granularity: "GDC.time.week_us",
415
- };
416
- export const geoAttributeItems = [
417
- {
418
- localIdentifier: "a1",
419
- type: "attribute",
420
- aggregation: null,
421
- attribute: "attr.owner.country",
422
- locationDisplayFormRef: uriRef("/geo/attribute/displayform/uri/1"),
423
- dfRef: { uri: "/geo/attribute/displayform/uri/2" },
424
- },
425
- {
426
- localIdentifier: "a2",
427
- type: "attribute",
428
- aggregation: null,
429
- attribute: "attr.owner.city",
430
- },
431
- {
432
- localIdentifier: "a3",
433
- type: "attribute",
434
- aggregation: null,
435
- attribute: "attr.owner.country",
436
- locationDisplayFormRef: uriRef("/geo/attribute/displayform/uri/1"),
437
- dfRef: { uri: "/geo/attribute/displayform/uri/2" },
438
- displayForms: [
439
- {
440
- id: "attr.owner.country_name",
441
- ref: { uri: "/geo/attribute/displayform/uri/2" },
442
- type: "GDC.text",
443
- title: "Country name",
444
- isDefault: true,
445
- },
446
- {
447
- id: "attr.owner.country_latitude",
448
- ref: { uri: "/geo/attribute/displayform/uri/3" },
449
- type: "GDC.geo.pin_latitude",
450
- title: "Country latitude",
451
- isDefault: false,
452
- },
453
- {
454
- id: "attr.owner.country_longitude",
455
- ref: { uri: "/geo/attribute/displayform/uri/4" },
456
- type: "GDC.geo.pin_longitude",
457
- title: "Country longitude",
458
- isDefault: false,
459
- },
460
- ],
461
- },
462
- ];
463
- export const geoAttributeFilters = [
464
- {
465
- localIdentifier: "a1",
466
- type: "attribute",
467
- aggregation: null,
468
- attribute: "attr.owner.country",
469
- filters: [
470
- {
471
- attribute: "attr.owner.country",
472
- displayFormRef: uriRef("owner/attribute/df/uri"),
473
- isInverted: false,
474
- totalElementsCount: 10,
475
- selectedElements: [
476
- {
477
- title: "string",
478
- uri: "string",
479
- },
480
- ],
481
- },
482
- ],
483
- },
484
- {
485
- localIdentifier: "a2",
486
- type: "attribute",
487
- aggregation: null,
488
- attribute: "attr.owner.city",
489
- filters: [
490
- {
491
- attribute: "attr.owner.city",
492
- displayFormRef: uriRef("owner/attribute/df/uri"),
493
- totalElementsCount: 10,
494
- isInverted: true,
495
- selectedElements: [
496
- {
497
- title: "string",
498
- uri: "string",
499
- },
500
- ],
501
- },
502
- ],
503
- },
504
- ];
505
- export const attributeFilters = [
506
- {
507
- localIdentifier: "a1",
508
- type: "attribute",
509
- aggregation: null,
510
- attribute: "attr.owner.department",
511
- filters: [
512
- {
513
- attribute: "attr.owner.department",
514
- displayFormRef: uriRef("owner/attribute/df/uri"),
515
- isInverted: false,
516
- totalElementsCount: 10,
517
- selectedElements: [
518
- {
519
- title: "string",
520
- uri: "string",
521
- },
522
- ],
523
- },
524
- ],
525
- },
526
- {
527
- localIdentifier: "a2",
528
- type: "attribute",
529
- aggregation: null,
530
- attribute: "attr.stage.iswon",
531
- filters: [
532
- {
533
- attribute: "attr.stage.iswon",
534
- displayFormRef: uriRef("iswon/attribute/df/uri"),
535
- totalElementsCount: 10,
536
- isInverted: true,
537
- selectedElements: [
538
- {
539
- title: "string",
540
- uri: "string",
541
- },
542
- ],
543
- },
544
- ],
545
- },
546
- {
547
- localIdentifier: "a3",
548
- type: "attribute",
549
- attribute: "attr.owner.region",
550
- filters: [
551
- {
552
- attribute: "attr.owner.region",
553
- displayFormRef: uriRef("owner/attribute/df/uri"),
554
- isInverted: true,
555
- totalElementsCount: 10,
556
- selectedElements: [],
557
- },
558
- ],
559
- },
560
- ];
561
- export const dateFilterItem = {
562
- localIdentifier: "a1",
563
- type: "date",
564
- attribute: "attr.datedataset",
565
- aggregation: null,
566
- showInPercent: null,
567
- filters: [dateFilter],
568
- };
569
- export const dateItem = {
570
- localIdentifier: "a1",
571
- type: "date",
572
- attribute: "attr.datedataset",
573
- aggregation: null,
574
- showInPercent: null,
575
- dateDatasetRef: idRef("ds1"),
576
- };
577
- export const dateItem2 = {
578
- localIdentifier: "a2",
579
- type: "date",
580
- attribute: "attr.datedataset.2",
581
- aggregation: null,
582
- showInPercent: null,
583
- dateDatasetRef: idRef("ds2"),
584
- };
585
- export const dateItem3 = {
586
- localIdentifier: "a3",
587
- type: "date",
588
- attribute: "attr.datedataset.3",
589
- aggregation: null,
590
- showInPercent: null,
591
- dateDatasetRef: idRef("ds3"),
592
- };
593
- export const overTimeComparisonDateItem = {
594
- aggregation: null,
595
- showInPercent: null,
596
- operator: null,
597
- operandLocalIdentifiers: null,
598
- granularity: null,
599
- masterLocalIdentifier: null,
600
- localIdentifier: "2fb4a818526f4ca18c926b1a11adc859",
601
- filters: [dateFilterSamePeriodPreviousYear],
602
- attribute: "attr.datedataset",
603
- dateDatasetRef,
604
- };
605
- export const dateItemWithDateDataset = {
606
- localIdentifier: "a1",
607
- type: "date",
608
- attribute: "attr.datedataset",
609
- aggregation: null,
610
- showInPercent: null,
611
- dateDatasetRef,
612
- };
613
- const defaultSortItem = {
614
- attributeSortItem: {
615
- attributeIdentifier: "a1",
616
- direction: "asc",
617
- },
618
- };
619
- const columnWidths = [
620
- {
621
- attributeColumnWidthItem: {
622
- attributeIdentifier: "a1",
623
- width: { value: 100 },
624
- },
625
- },
626
- ];
627
- export const justViewByReferencePoint = {
628
- buckets: [
629
- {
630
- localIdentifier: "measures",
631
- items: [],
632
- },
633
- {
634
- localIdentifier: "view",
635
- items: attributeItems.slice(0, 1),
636
- },
637
- {
638
- localIdentifier: "stack",
639
- items: [],
640
- },
641
- ],
642
- filters: {
643
- localIdentifier: "filters",
644
- items: [],
645
- },
646
- };
647
- export const justTrendByRefPoint = {
648
- buckets: [
649
- {
650
- localIdentifier: "measures",
651
- items: [],
652
- },
653
- {
654
- localIdentifier: "trend",
655
- items: attributeItems.slice(0, 1),
656
- },
657
- {
658
- localIdentifier: "segment",
659
- items: [],
660
- },
661
- ],
662
- filters: {
663
- localIdentifier: "filters",
664
- items: [],
665
- },
666
- };
667
- export const secondaryMeasuresAndAttributeReferencePoint = {
668
- buckets: [
669
- {
670
- localIdentifier: "measures",
671
- items: [],
672
- },
673
- {
674
- localIdentifier: "secondary_measures",
675
- items: masterMeasureItems.slice(0, 3),
676
- },
677
- {
678
- localIdentifier: "attribute",
679
- items: attributeItems.slice(0, 2),
680
- },
681
- ],
682
- filters: {
683
- localIdentifier: "filters",
684
- items: attributeFilters.slice(0, 2),
685
- },
686
- properties: {
687
- sortItems: [defaultSortItem],
688
- },
689
- };
690
- export const secondaryMeasureReferencePoint = {
691
- buckets: [
692
- {
693
- localIdentifier: "measures",
694
- items: [],
695
- },
696
- {
697
- localIdentifier: "secondary_measures",
698
- items: masterMeasureItems.slice(0, 1),
699
- },
700
- {
701
- localIdentifier: "attribute",
702
- items: [],
703
- },
704
- ],
705
- filters: {
706
- localIdentifier: "filters",
707
- items: [],
708
- },
709
- properties: {
710
- sortItems: [defaultSortItem],
711
- },
712
- };
713
- export const measuresOnSecondaryAxisAndAttributeReferencePoint = {
714
- buckets: [
715
- {
716
- localIdentifier: "measures",
717
- items: masterMeasureItems.slice(2, 4),
718
- },
719
- {
720
- localIdentifier: "attribute",
721
- items: attributeItems.slice(0, 1),
722
- },
723
- ],
724
- filters: {
725
- localIdentifier: "filters",
726
- items: [],
727
- },
728
- };
729
- export const secondaryAndTertiaryMeasuresWithTwoAttributesReferencePoint = {
730
- buckets: [
731
- {
732
- localIdentifier: "measures",
733
- items: [],
734
- },
735
- {
736
- localIdentifier: "secondary_measures",
737
- items: masterMeasureItems.slice(0, 1),
738
- },
739
- {
740
- localIdentifier: "tertiary_measures",
741
- items: masterMeasureItems.slice(1, 2),
742
- },
743
- {
744
- localIdentifier: "attribute",
745
- items: attributeItems.slice(0, 2),
746
- },
747
- ],
748
- filters: {
749
- localIdentifier: "filters",
750
- items: attributeFilters.slice(0, 2),
751
- },
752
- };
753
- export const measuresAndDateReferencePoint = {
754
- buckets: [
755
- {
756
- localIdentifier: "measures",
757
- items: masterMeasureItems.slice(0, 1),
758
- },
759
- {
760
- localIdentifier: "attribute",
761
- items: [dateItem],
762
- },
763
- ],
764
- filters: {
765
- localIdentifier: "filters",
766
- items: [],
767
- },
768
- };
769
- export const simpleStackedReferencePoint = {
770
- buckets: [
771
- {
772
- localIdentifier: "measures",
773
- items: masterMeasureItems.slice(0, 1),
774
- },
775
- {
776
- localIdentifier: "view",
777
- items: attributeItems.slice(0, 1),
778
- },
779
- {
780
- localIdentifier: "stack",
781
- items: attributeItems.slice(1, 2),
782
- },
783
- ],
784
- filters: {
785
- localIdentifier: "filters",
786
- items: attributeFilters.slice(0, 2),
787
- },
788
- properties: {
789
- sortItems: [defaultSortItem],
790
- controls: {
791
- columnWidths,
792
- test: "test",
793
- },
794
- },
795
- };
796
- export const simpleStackedWithoutPropertiesReferencePoint = {
797
- ...simpleStackedReferencePoint,
798
- properties: {},
799
- };
800
- export const oneMetricReferencePoint = {
801
- buckets: [
802
- {
803
- localIdentifier: "measures",
804
- items: masterMeasureItems.slice(0, 1),
805
- },
806
- {
807
- localIdentifier: "view",
808
- items: [],
809
- },
810
- {
811
- localIdentifier: "stack",
812
- items: [],
813
- },
814
- ],
815
- filters: {
816
- localIdentifier: "filters",
817
- items: [],
818
- },
819
- };
820
- export const oneMetricOneCategory = {
821
- buckets: [
822
- {
823
- localIdentifier: "measures",
824
- items: masterMeasureItems.slice(0, 1),
825
- },
826
- {
827
- localIdentifier: "view",
828
- items: attributeItems.slice(0, 1),
829
- },
830
- {
831
- localIdentifier: "stack",
832
- items: [],
833
- },
834
- ],
835
- filters: {
836
- localIdentifier: "filters",
837
- items: [],
838
- },
839
- };
840
- export const oneMetricOneTrendBy = {
841
- buckets: [
842
- {
843
- localIdentifier: "measures",
844
- items: masterMeasureItems.slice(0, 1),
845
- },
846
- {
847
- localIdentifier: "trend",
848
- items: attributeItems.slice(0, 1),
849
- },
850
- {
851
- localIdentifier: "segment",
852
- items: [],
853
- },
854
- ],
855
- filters: {
856
- localIdentifier: "filters",
857
- items: [],
858
- },
859
- };
860
- export const oneMeasureWithInvalidOverTimeComparisonRefPoint = {
861
- buckets: [
862
- {
863
- localIdentifier: "measures",
864
- items: [masterMeasureItems[0], derivedMeasureItems[0]],
865
- },
866
- {
867
- localIdentifier: "view",
868
- items: [],
869
- },
870
- {
871
- localIdentifier: "stack",
872
- items: [],
873
- },
874
- ],
875
- filters: {
876
- localIdentifier: "filters",
877
- items: [],
878
- },
879
- };
880
- export const measureWithDerivedWithoutDateFilterRefPoint = {
881
- buckets: [
882
- {
883
- localIdentifier: "measures",
884
- items: [masterMeasureItems[0], derivedMeasureItems[0], arithmeticMeasureItems[3]],
885
- },
886
- {
887
- localIdentifier: "view",
888
- items: [],
889
- },
890
- {
891
- localIdentifier: "stack",
892
- items: [],
893
- },
894
- ],
895
- filters: {
896
- localIdentifier: "filters",
897
- items: [],
898
- },
899
- };
900
- export const samePeriodPreviousYearRefPoint = {
901
- buckets: [
902
- {
903
- localIdentifier: "measures",
904
- items: [masterMeasureItems[0], derivedMeasureItems[0]],
905
- },
906
- {
907
- localIdentifier: "view",
908
- items: [dateItemWithDateDataset],
909
- },
910
- {
911
- localIdentifier: "stack",
912
- items: [],
913
- },
914
- ],
915
- filters: samePeriodPrevYearFiltersBucket,
916
- };
917
- export const measureWithDerivedAndPercentageRefPoint = {
918
- buckets: [
919
- {
920
- localIdentifier: "measures",
921
- items: [
922
- masterMeasuresWithPercentage[0],
923
- {
924
- ...derivedMeasureItems[0],
925
- showInPercent: true,
926
- },
927
- ],
928
- },
929
- {
930
- localIdentifier: "view",
931
- items: attributeItems.slice(0, 1),
932
- },
933
- ],
934
- filters: samePeriodPrevYearFiltersBucket,
935
- };
936
- export const multipleMeasuresWithPercentageRefPoint = {
937
- buckets: [
938
- {
939
- localIdentifier: "measures",
940
- items: masterMeasuresWithPercentage.slice(0, 2),
941
- },
942
- {
943
- localIdentifier: "view",
944
- items: attributeItems.slice(0, 1),
945
- },
946
- ],
947
- filters: samePeriodPrevYearFiltersBucket,
948
- };
949
- export const multipleSecondaryMeasuresWithPercentageRefPoint = {
950
- buckets: [
951
- {
952
- localIdentifier: "measures",
953
- items: masterMeasuresWithPercentage.slice(2, 4),
954
- },
955
- {
956
- localIdentifier: "view",
957
- items: attributeItems.slice(0, 1),
958
- },
959
- ],
960
- filters: samePeriodPrevYearFiltersBucket,
961
- };
962
- export const attributeInStackReferencePoint = {
963
- buckets: [
964
- {
965
- localIdentifier: "measures",
966
- items: [masterMeasureItems[0], masterMeasureItems[1]],
967
- },
968
- {
969
- localIdentifier: "view",
970
- items: [],
971
- },
972
- {
973
- localIdentifier: "stack",
974
- items: [attributeItems[0]],
975
- },
976
- ],
977
- filters: {
978
- localIdentifier: "filters",
979
- items: [],
980
- },
981
- };
982
- const firstMeasureDerivedBuckets = [
983
- {
984
- localIdentifier: "measures",
985
- items: [derivedMeasureItems[0], masterMeasureItems[0]],
986
- },
987
- {
988
- localIdentifier: "view",
989
- items: [],
990
- },
991
- ];
992
- export const measureWithDerivedAsFirstRefPoint = {
993
- buckets: firstMeasureDerivedBuckets,
994
- filters: samePeriodPrevYearFiltersBucket,
995
- };
996
- export const measureWithDerivedAsFirstWithStackRefPoint = {
997
- buckets: [
998
- ...firstMeasureDerivedBuckets,
999
- {
1000
- localIdentifier: "stack",
1001
- items: attributeItems.slice(0, 1),
1002
- },
1003
- ],
1004
- filters: samePeriodPrevYearFiltersBucket,
1005
- };
1006
- export const measureWithDerivedAsFirstWithDateInStackRefPoint = {
1007
- buckets: [
1008
- {
1009
- localIdentifier: "measures",
1010
- items: [derivedMeasureItems[0], masterMeasureItems[0]],
1011
- },
1012
- {
1013
- localIdentifier: "view",
1014
- items: [dateItem, dateItem],
1015
- },
1016
- {
1017
- localIdentifier: "stack",
1018
- items: [dateItem2],
1019
- },
1020
- ],
1021
- filters: samePeriodPrevYearFiltersBucket,
1022
- };
1023
- export const samePeriodPreviousYearAndAttributesRefPoint = {
1024
- buckets: [
1025
- {
1026
- localIdentifier: "measures",
1027
- items: [masterMeasureItems[0], derivedMeasureItems[0]],
1028
- },
1029
- {
1030
- localIdentifier: "attribute",
1031
- items: [dateItem, ...attributeItems],
1032
- },
1033
- ],
1034
- filters: {
1035
- localIdentifier: "filters",
1036
- items: [],
1037
- },
1038
- };
1039
- export const measureWithDateAfterOtherAttributes = {
1040
- buckets: [
1041
- {
1042
- localIdentifier: "measures",
1043
- items: [masterMeasureItems[0], derivedMeasureItems[0]],
1044
- },
1045
- {
1046
- localIdentifier: "attribute",
1047
- items: [...attributeItems.slice(0, 2), dateItem],
1048
- },
1049
- ],
1050
- filters: {
1051
- localIdentifier: "filters",
1052
- items: [],
1053
- },
1054
- };
1055
- export const multipleMetricsAndCategoriesReferencePoint = {
1056
- buckets: [
1057
- {
1058
- localIdentifier: "measures",
1059
- items: masterMeasureItems,
1060
- },
1061
- {
1062
- localIdentifier: "view",
1063
- items: attributeItems,
1064
- },
1065
- {
1066
- localIdentifier: "stack",
1067
- items: [],
1068
- },
1069
- ],
1070
- filters: {
1071
- localIdentifier: "filters",
1072
- items: attributeFilters,
1073
- },
1074
- properties: {
1075
- sortItems: [defaultSortItem],
1076
- },
1077
- };
1078
- export const multipleMetricBucketsAndCategoryReferencePoint = {
1079
- buckets: [
1080
- {
1081
- localIdentifier: "measures",
1082
- items: masterMeasureItems.slice(0, 1),
1083
- },
1084
- {
1085
- localIdentifier: "secondary_measures",
1086
- items: masterMeasureItems.slice(1, 2),
1087
- },
1088
- {
1089
- localIdentifier: "tertiary_measures",
1090
- items: masterMeasureItems.slice(2, 3),
1091
- },
1092
- {
1093
- localIdentifier: "view",
1094
- items: attributeItems.slice(0, 1),
1095
- },
1096
- {
1097
- localIdentifier: "stack",
1098
- items: [],
1099
- },
1100
- ],
1101
- filters: {
1102
- localIdentifier: "filters",
1103
- items: attributeFilters.slice(0, 1),
1104
- },
1105
- properties: {
1106
- sortItems: [defaultSortItem],
1107
- },
1108
- };
1109
- export const multipleMetricBucketsWithPercentageRefPoint = {
1110
- buckets: [
1111
- {
1112
- localIdentifier: "measures",
1113
- items: masterMeasuresWithPercentage.slice(0, 2),
1114
- },
1115
- {
1116
- localIdentifier: "secondary_measures",
1117
- items: masterMeasuresWithPercentage.slice(2, 4),
1118
- },
1119
- {
1120
- localIdentifier: "view",
1121
- items: attributeItems.slice(0, 1),
1122
- },
1123
- ],
1124
- filters: {
1125
- localIdentifier: "filters",
1126
- items: attributeFilters.slice(0, 1),
1127
- },
1128
- };
1129
- export const oneMetricAndManyCategoriesReferencePoint = {
1130
- buckets: [
1131
- {
1132
- localIdentifier: "measures",
1133
- items: masterMeasureItems.slice(0, 1),
1134
- },
1135
- {
1136
- localIdentifier: "view",
1137
- items: attributeItems,
1138
- },
1139
- {
1140
- localIdentifier: "stack",
1141
- items: [],
1142
- },
1143
- ],
1144
- filters: {
1145
- localIdentifier: "filters",
1146
- items: attributeFilters,
1147
- },
1148
- };
1149
- export const oneMetricAndTwoCategoriesReferencePoint = {
1150
- buckets: [
1151
- {
1152
- localIdentifier: "measures",
1153
- items: masterMeasureItems.slice(0, 1),
1154
- },
1155
- {
1156
- localIdentifier: "view",
1157
- items: attributeItems.slice(0, 2),
1158
- },
1159
- {
1160
- localIdentifier: "stack",
1161
- items: [],
1162
- },
1163
- ],
1164
- filters: {
1165
- localIdentifier: "filters",
1166
- items: attributeFilters,
1167
- },
1168
- };
1169
- export const oneMetricAndTwoTrendByRefPoint = {
1170
- buckets: [
1171
- {
1172
- localIdentifier: "measures",
1173
- items: masterMeasureItems.slice(0, 1),
1174
- },
1175
- {
1176
- localIdentifier: "trend",
1177
- items: attributeItems.slice(0, 2),
1178
- },
1179
- {
1180
- localIdentifier: "segment",
1181
- items: [],
1182
- },
1183
- ],
1184
- filters: {
1185
- localIdentifier: "filters",
1186
- items: attributeFilters,
1187
- },
1188
- };
1189
- export const twoMetricAndTwoCategoriesRefPoint = {
1190
- buckets: [
1191
- {
1192
- localIdentifier: "measures",
1193
- items: masterMeasureItems.slice(0, 2),
1194
- },
1195
- {
1196
- localIdentifier: "view",
1197
- items: attributeItems.slice(0, 2),
1198
- },
1199
- {
1200
- localIdentifier: "stack",
1201
- items: [],
1202
- },
1203
- ],
1204
- filters: {
1205
- localIdentifier: "filters",
1206
- items: [],
1207
- },
1208
- };
1209
- export const twoMetricAndTwoTrendByRefPoint = {
1210
- buckets: [
1211
- {
1212
- localIdentifier: "measures",
1213
- items: masterMeasureItems.slice(0, 2),
1214
- },
1215
- {
1216
- localIdentifier: "trend",
1217
- items: attributeItems.slice(0, 2),
1218
- },
1219
- {
1220
- localIdentifier: "segment",
1221
- items: [],
1222
- },
1223
- ],
1224
- filters: {
1225
- localIdentifier: "filters",
1226
- items: [],
1227
- },
1228
- };
1229
- export const twoStackedMetricAndTwoCategoriesRefPoint = {
1230
- buckets: [
1231
- {
1232
- localIdentifier: "measures",
1233
- items: masterMeasureItems.slice(0, 2),
1234
- },
1235
- {
1236
- localIdentifier: "view",
1237
- items: attributeItems.slice(0, 2),
1238
- },
1239
- {
1240
- localIdentifier: "stack",
1241
- items: [],
1242
- },
1243
- ],
1244
- filters: {
1245
- localIdentifier: "filters",
1246
- items: [],
1247
- },
1248
- properties: {
1249
- controls: {
1250
- stackMeasures: true,
1251
- },
1252
- },
1253
- };
1254
- export const twoSegmentedMetricAndTwoTrendByRefPoint = {
1255
- buckets: [
1256
- {
1257
- localIdentifier: "measures",
1258
- items: masterMeasureItems.slice(0, 2),
1259
- },
1260
- {
1261
- localIdentifier: "trend",
1262
- items: attributeItems.slice(0, 2),
1263
- },
1264
- {
1265
- localIdentifier: "segment",
1266
- items: [],
1267
- },
1268
- ],
1269
- filters: {
1270
- localIdentifier: "filters",
1271
- items: [],
1272
- },
1273
- properties: {
1274
- controls: {
1275
- stackMeasures: true,
1276
- },
1277
- },
1278
- };
1279
- export const twoMetricAndOneCategoryRefPoint = {
1280
- buckets: [
1281
- {
1282
- localIdentifier: "measures",
1283
- items: masterMeasureItems.slice(0, 2),
1284
- },
1285
- {
1286
- localIdentifier: "view",
1287
- items: attributeItems.slice(0, 1),
1288
- },
1289
- {
1290
- localIdentifier: "stack",
1291
- items: [],
1292
- },
1293
- ],
1294
- filters: {
1295
- localIdentifier: "filters",
1296
- items: [],
1297
- },
1298
- };
1299
- export const twoMetricAndOneTrendByRefPoint = {
1300
- buckets: [
1301
- {
1302
- localIdentifier: "measures",
1303
- items: masterMeasureItems.slice(0, 2),
1304
- },
1305
- {
1306
- localIdentifier: "trend",
1307
- items: attributeItems.slice(0, 1),
1308
- },
1309
- {
1310
- localIdentifier: "segment",
1311
- items: [],
1312
- },
1313
- ],
1314
- filters: {
1315
- localIdentifier: "filters",
1316
- items: [],
1317
- },
1318
- };
1319
- export const twoStackedMetricAndOneCategoryRefPoint = {
1320
- buckets: [
1321
- {
1322
- localIdentifier: "measures",
1323
- items: masterMeasureItems.slice(0, 2),
1324
- },
1325
- {
1326
- localIdentifier: "view",
1327
- items: attributeItems.slice(0, 1),
1328
- },
1329
- {
1330
- localIdentifier: "stack",
1331
- items: [],
1332
- },
1333
- ],
1334
- filters: {
1335
- localIdentifier: "filters",
1336
- items: [],
1337
- },
1338
- properties: {
1339
- controls: {
1340
- stackMeasures: true,
1341
- },
1342
- },
1343
- };
1344
- export const oneMetricAndOneCategoryAndOneStackRefPoint = {
1345
- buckets: [
1346
- {
1347
- localIdentifier: "measures",
1348
- items: masterMeasureItems.slice(0, 1),
1349
- },
1350
- {
1351
- localIdentifier: "view",
1352
- items: attributeItems.slice(0, 1),
1353
- },
1354
- {
1355
- localIdentifier: "stack",
1356
- items: attributeItems.slice(1, 2),
1357
- },
1358
- ],
1359
- filters: {
1360
- localIdentifier: "filters",
1361
- items: [],
1362
- },
1363
- };
1364
- export const twoMetricsAndOneCategoryAndOneStackRefPoint = {
1365
- buckets: [
1366
- {
1367
- localIdentifier: "measures",
1368
- items: masterMeasureItems.slice(0, 2),
1369
- },
1370
- {
1371
- localIdentifier: "view",
1372
- items: attributeItems.slice(0, 1),
1373
- },
1374
- {
1375
- localIdentifier: "stack",
1376
- items: attributeItems.slice(1, 2),
1377
- },
1378
- ],
1379
- filters: {
1380
- localIdentifier: "filters",
1381
- items: [],
1382
- },
1383
- };
1384
- export const twoSegmentedMetricAndOneTrendByRefPoint = {
1385
- buckets: [
1386
- {
1387
- localIdentifier: "measures",
1388
- items: masterMeasureItems.slice(0, 2),
1389
- },
1390
- {
1391
- localIdentifier: "trend",
1392
- items: attributeItems.slice(0, 1),
1393
- },
1394
- {
1395
- localIdentifier: "segment",
1396
- items: [],
1397
- },
1398
- ],
1399
- filters: {
1400
- localIdentifier: "filters",
1401
- items: [],
1402
- },
1403
- properties: {
1404
- controls: {
1405
- stackMeasures: true,
1406
- },
1407
- },
1408
- };
1409
- export const oneMetricAndOneTrendAndOneSegmentByRefPoint = {
1410
- buckets: [
1411
- {
1412
- localIdentifier: "measures",
1413
- items: masterMeasureItems.slice(0, 1),
1414
- },
1415
- {
1416
- localIdentifier: "trend",
1417
- items: attributeItems.slice(0, 1),
1418
- },
1419
- {
1420
- localIdentifier: "segment",
1421
- items: attributeItems.slice(1, 2),
1422
- },
1423
- ],
1424
- filters: {
1425
- localIdentifier: "filters",
1426
- items: [],
1427
- },
1428
- };
1429
- export const twoMetricAndOneTrendAndOneSegmentByRefPoint = {
1430
- buckets: [
1431
- {
1432
- localIdentifier: "measures",
1433
- items: masterMeasureItems.slice(0, 2),
1434
- },
1435
- {
1436
- localIdentifier: "trend",
1437
- items: attributeItems.slice(0, 1),
1438
- },
1439
- {
1440
- localIdentifier: "segment",
1441
- items: attributeItems.slice(1, 2),
1442
- },
1443
- ],
1444
- filters: {
1445
- localIdentifier: "filters",
1446
- items: [],
1447
- },
1448
- };
1449
- export const oneMetricAndManyCategoriesAndOneStackRefPoint = {
1450
- buckets: [
1451
- {
1452
- localIdentifier: "measures",
1453
- items: masterMeasureItems.slice(0, 1),
1454
- },
1455
- {
1456
- localIdentifier: "view",
1457
- items: attributeItems.slice(0, 2),
1458
- },
1459
- {
1460
- localIdentifier: "stack",
1461
- items: attributeItems.slice(2, 3),
1462
- },
1463
- ],
1464
- filters: {
1465
- localIdentifier: "filters",
1466
- items: attributeFilters.slice(0, 3),
1467
- },
1468
- };
1469
- export const dateAsFirstCategoryReferencePoint = {
1470
- buckets: [
1471
- {
1472
- localIdentifier: "measures",
1473
- items: masterMeasureItems.slice(0, 1),
1474
- },
1475
- {
1476
- localIdentifier: "attribute",
1477
- items: [dateItem, attributeItems[1]],
1478
- },
1479
- ],
1480
- filters: {
1481
- localIdentifier: "filters",
1482
- items: [],
1483
- },
1484
- };
1485
- export const twoDatesInRowsAndOneDateInColumnsReferencePoint = {
1486
- buckets: [
1487
- {
1488
- localIdentifier: "measures",
1489
- items: masterMeasureItems.slice(0, 1),
1490
- },
1491
- {
1492
- localIdentifier: "attribute",
1493
- items: [{ ...dateItem }, { ...dateItem2 }],
1494
- },
1495
- {
1496
- localIdentifier: "columns",
1497
- items: [{ ...dateItem }],
1498
- },
1499
- ],
1500
- filters: {
1501
- localIdentifier: "filters",
1502
- items: [],
1503
- },
1504
- };
1505
- export const oneDateInRowsAndOneDateInColumnsReferencePoint = {
1506
- buckets: [
1507
- {
1508
- localIdentifier: "measures",
1509
- items: masterMeasureItems.slice(0, 1),
1510
- },
1511
- {
1512
- localIdentifier: "attribute",
1513
- items: [{ ...dateItem }],
1514
- },
1515
- {
1516
- localIdentifier: "columns",
1517
- items: [{ ...dateItem2 }],
1518
- },
1519
- ],
1520
- filters: {
1521
- localIdentifier: "filters",
1522
- items: [],
1523
- },
1524
- };
1525
- export const oneDateInRowsAndSameOneDateInColumnsReferencePoint = {
1526
- buckets: [
1527
- {
1528
- localIdentifier: "measures",
1529
- items: masterMeasureItems.slice(0, 1),
1530
- },
1531
- {
1532
- localIdentifier: "attribute",
1533
- items: [{ ...dateItem }],
1534
- },
1535
- {
1536
- localIdentifier: "columns",
1537
- items: [{ ...dateItem }],
1538
- },
1539
- ],
1540
- filters: {
1541
- localIdentifier: "filters",
1542
- items: [],
1543
- },
1544
- };
1545
- export const twoAttributesAndDateInRowsAndOneDateInColumnsReferencePoint = {
1546
- buckets: [
1547
- {
1548
- localIdentifier: "measures",
1549
- items: masterMeasureItems.slice(0, 1),
1550
- },
1551
- {
1552
- localIdentifier: "attribute",
1553
- items: [attributeItems[0], attributeItems[1], { ...dateItem }],
1554
- },
1555
- {
1556
- localIdentifier: "columns",
1557
- items: [{ ...dateItem2 }],
1558
- },
1559
- ],
1560
- filters: {
1561
- localIdentifier: "filters",
1562
- items: [],
1563
- },
1564
- };
1565
- export const twoAttributesInViewAndOneDateInColumnsReferencePoint = {
1566
- buckets: [
1567
- {
1568
- localIdentifier: "measures",
1569
- items: masterMeasureItems.slice(0, 1),
1570
- },
1571
- {
1572
- localIdentifier: "view",
1573
- items: [attributeItems[0], attributeItems[1]],
1574
- },
1575
- {
1576
- localIdentifier: "stack",
1577
- items: [{ ...dateItem2 }],
1578
- },
1579
- ],
1580
- filters: {
1581
- localIdentifier: "filters",
1582
- items: [],
1583
- },
1584
- };
1585
- export const threeDatesInColumnsReferencePoint = {
1586
- buckets: [
1587
- {
1588
- localIdentifier: "measures",
1589
- items: masterMeasureItems.slice(0, 1),
1590
- },
1591
- {
1592
- localIdentifier: "attribute",
1593
- items: [],
1594
- },
1595
- {
1596
- localIdentifier: "columns",
1597
- items: [{ ...dateItem }, { ...dateItem }, { ...dateItem2 }],
1598
- },
1599
- ],
1600
- filters: {
1601
- localIdentifier: "filters",
1602
- items: [],
1603
- },
1604
- };
1605
- export const attributeAndDateInViewByAndDateInStackByReferencePoint = {
1606
- buckets: [
1607
- {
1608
- localIdentifier: "measures",
1609
- items: masterMeasureItems.slice(0, 1),
1610
- },
1611
- {
1612
- localIdentifier: "view",
1613
- items: [attributeItems[1], dateItem],
1614
- },
1615
- {
1616
- localIdentifier: "stack",
1617
- items: [dateItem2],
1618
- },
1619
- ],
1620
- filters: {
1621
- localIdentifier: "filters",
1622
- items: [],
1623
- },
1624
- };
1625
- export const attributeAndColumnsReferencePoint = {
1626
- buckets: [
1627
- {
1628
- localIdentifier: "attribute",
1629
- items: [attributeItems[1]],
1630
- },
1631
- {
1632
- localIdentifier: "columns",
1633
- items: [attributeItems[1], ...masterMeasureItems.slice(0, 2)],
1634
- },
1635
- ],
1636
- filters: {
1637
- localIdentifier: "filters",
1638
- items: attributeFilters.slice(0, 1),
1639
- },
1640
- };
1641
- export const attributesAndColumnsReferencePoint = {
1642
- buckets: [
1643
- {
1644
- localIdentifier: "attribute",
1645
- items: [...attributeItems.slice(0, 2)],
1646
- },
1647
- {
1648
- localIdentifier: "columns",
1649
- items: [...masterMeasureItems.slice(0, 2)],
1650
- },
1651
- ],
1652
- filters: {
1653
- localIdentifier: "filters",
1654
- items: attributeFilters.slice(0, 1),
1655
- },
1656
- };
1657
- export const attributesAndColumnsWithDatesReferencePoint = {
1658
- buckets: [
1659
- {
1660
- localIdentifier: "attribute",
1661
- items: [dateItem, attributeItems[1]],
1662
- },
1663
- {
1664
- localIdentifier: "columns",
1665
- items: [dateItem, ...attributeItems.slice(0, 2), ...masterMeasureItems.slice(0, 2)],
1666
- },
1667
- ],
1668
- filters: {
1669
- localIdentifier: "filters",
1670
- items: attributeFilters.slice(0, 1),
1671
- },
1672
- };
1673
- export const dateAsSecondViewByItemReferencePoint = {
1674
- buckets: [
1675
- {
1676
- localIdentifier: "measures",
1677
- items: masterMeasureItems.slice(0, 1),
1678
- },
1679
- {
1680
- localIdentifier: "view",
1681
- items: [attributeItems[1], dateItem],
1682
- },
1683
- {
1684
- localIdentifier: "stack",
1685
- items: [],
1686
- },
1687
- ],
1688
- filters: {
1689
- localIdentifier: "filters",
1690
- items: [],
1691
- },
1692
- };
1693
- export const dateAndAttributeInViewByAndEmptyStackBy = {
1694
- buckets: [
1695
- {
1696
- localIdentifier: "measures",
1697
- items: masterMeasureItems.slice(0, 1),
1698
- },
1699
- {
1700
- localIdentifier: "view",
1701
- items: [dateItem, attributeItems[1]],
1702
- },
1703
- {
1704
- localIdentifier: "stack",
1705
- items: [],
1706
- },
1707
- ],
1708
- filters: {
1709
- localIdentifier: "filters",
1710
- items: [],
1711
- },
1712
- };
1713
- export const dateInColumnsAndMultipleMeasuresTable = {
1714
- buckets: [
1715
- {
1716
- localIdentifier: "measures",
1717
- items: masterMeasureItems,
1718
- },
1719
- {
1720
- localIdentifier: "attributes",
1721
- items: [],
1722
- },
1723
- {
1724
- localIdentifier: "columns",
1725
- items: [dateItem],
1726
- },
1727
- ],
1728
- filters: {
1729
- localIdentifier: "filters",
1730
- items: [],
1731
- },
1732
- };
1733
- export const dateInColumnsAndMultipleMeasuresTreemap = {
1734
- buckets: [
1735
- {
1736
- localIdentifier: "measures",
1737
- items: masterMeasureItems,
1738
- },
1739
- {
1740
- localIdentifier: "view",
1741
- items: [],
1742
- },
1743
- {
1744
- localIdentifier: "segment",
1745
- items: [dateItem],
1746
- },
1747
- ],
1748
- filters: {
1749
- localIdentifier: "filters",
1750
- items: [],
1751
- },
1752
- };
1753
- export const datesInViewByAndAttributeInStackBy = {
1754
- buckets: [
1755
- {
1756
- localIdentifier: "measures",
1757
- items: masterMeasureItems.slice(0, 1),
1758
- },
1759
- {
1760
- localIdentifier: "view",
1761
- items: [{ ...dateItem }, { ...dateItem }],
1762
- },
1763
- {
1764
- localIdentifier: "stack",
1765
- items: [attributeItems[0]],
1766
- },
1767
- ],
1768
- filters: {
1769
- localIdentifier: "filters",
1770
- items: [],
1771
- },
1772
- };
1773
- export const att1AndAtt2inViewByAndAtt3inStackBy = {
1774
- buckets: [
1775
- {
1776
- localIdentifier: "measures",
1777
- items: masterMeasureItems.slice(0, 1),
1778
- },
1779
- {
1780
- localIdentifier: "view",
1781
- items: [attributeItems[0], attributeItems[1]],
1782
- },
1783
- {
1784
- localIdentifier: "stack",
1785
- items: [attributeItems[2]],
1786
- },
1787
- ],
1788
- filters: {
1789
- localIdentifier: "filters",
1790
- items: [],
1791
- },
1792
- };
1793
- export const twoMeasuresAndDateAsSecondViewByItemReferencePoint = {
1794
- buckets: [
1795
- {
1796
- localIdentifier: "measures",
1797
- items: masterMeasureItems.slice(0, 2),
1798
- },
1799
- {
1800
- localIdentifier: "view",
1801
- items: [attributeItems[1], dateItem],
1802
- },
1803
- {
1804
- localIdentifier: "stack",
1805
- items: [],
1806
- },
1807
- ],
1808
- filters: {
1809
- localIdentifier: "filters",
1810
- items: [],
1811
- },
1812
- };
1813
- export const threeDifferentDatesReferencePoint = {
1814
- buckets: [
1815
- {
1816
- localIdentifier: "measures",
1817
- items: masterMeasureItems.slice(0, 1),
1818
- },
1819
- {
1820
- localIdentifier: "rows",
1821
- items: [dateItem, dateItem2],
1822
- },
1823
- {
1824
- localIdentifier: "columns",
1825
- items: [dateItem3],
1826
- },
1827
- ],
1828
- filters: {
1829
- localIdentifier: "filters",
1830
- items: [],
1831
- },
1832
- };
1833
- export const threeDifferentDatesReferencePointChart = {
1834
- buckets: [
1835
- {
1836
- localIdentifier: "measures",
1837
- items: masterMeasureItems,
1838
- },
1839
- {
1840
- localIdentifier: "view",
1841
- items: [dateItem, dateItem2],
1842
- },
1843
- {
1844
- localIdentifier: "stack",
1845
- items: [dateItem3],
1846
- },
1847
- ],
1848
- filters: {
1849
- localIdentifier: "filters",
1850
- items: [],
1851
- },
1852
- };
1853
- export const twoIdenticalDatesInRows = {
1854
- buckets: [
1855
- {
1856
- localIdentifier: "measures",
1857
- items: masterMeasureItems.slice(0, 1),
1858
- },
1859
- {
1860
- localIdentifier: "rows",
1861
- items: [dateItem, dateItem],
1862
- },
1863
- {
1864
- localIdentifier: "columns",
1865
- items: [dateItem2],
1866
- },
1867
- ],
1868
- filters: {
1869
- localIdentifier: "filters",
1870
- items: [],
1871
- },
1872
- };
1873
- export const threeIdenticalDatesInRowsAndColumns = {
1874
- buckets: [
1875
- {
1876
- localIdentifier: "measures",
1877
- items: masterMeasureItems.slice(0, 1),
1878
- },
1879
- {
1880
- localIdentifier: "rows",
1881
- items: [dateItem, dateItem],
1882
- },
1883
- {
1884
- localIdentifier: "columns",
1885
- items: [dateItem],
1886
- },
1887
- ],
1888
- filters: {
1889
- localIdentifier: "filters",
1890
- items: [],
1891
- },
1892
- };
1893
- export const twoIdenticalDatesInRowsAndColumns = {
1894
- buckets: [
1895
- {
1896
- localIdentifier: "measures",
1897
- items: masterMeasureItems.slice(0, 1),
1898
- },
1899
- {
1900
- localIdentifier: "rows",
1901
- items: [dateItem, dateItem2],
1902
- },
1903
- {
1904
- localIdentifier: "columns",
1905
- items: [dateItem],
1906
- },
1907
- ],
1908
- filters: {
1909
- localIdentifier: "filters",
1910
- items: [],
1911
- },
1912
- };
1913
- export const twoIdenticalDatesInRowsWithSingleMeasure = {
1914
- buckets: [
1915
- {
1916
- localIdentifier: "measures",
1917
- items: masterMeasureItems.slice(0, 1),
1918
- },
1919
- {
1920
- localIdentifier: "attributes",
1921
- items: [{ ...dateItem }, { ...dateItem }],
1922
- },
1923
- {
1924
- localIdentifier: "columns",
1925
- items: [dateItem2],
1926
- },
1927
- ],
1928
- filters: {
1929
- localIdentifier: "filters",
1930
- items: [],
1931
- },
1932
- };
1933
- export const twoDatesInColumnChart = {
1934
- buckets: [
1935
- {
1936
- localIdentifier: "measures",
1937
- items: masterMeasureItems.slice(0, 1),
1938
- },
1939
- {
1940
- localIdentifier: "view",
1941
- items: [dateItem],
1942
- },
1943
- {
1944
- localIdentifier: "stack",
1945
- items: [dateItem2],
1946
- },
1947
- ],
1948
- filters: {
1949
- localIdentifier: "filters",
1950
- items: [],
1951
- },
1952
- };
1953
- export const threeDatesInColumnChart = {
1954
- buckets: [
1955
- {
1956
- localIdentifier: "measures",
1957
- items: masterMeasureItems.slice(0, 1),
1958
- },
1959
- {
1960
- localIdentifier: "view",
1961
- items: [dateItem, dateItem2],
1962
- },
1963
- {
1964
- localIdentifier: "stack",
1965
- items: [dateItem3],
1966
- },
1967
- ],
1968
- filters: {
1969
- localIdentifier: "filters",
1970
- items: [],
1971
- },
1972
- };
1973
- export const onlyStackColumnChart = {
1974
- buckets: [
1975
- {
1976
- localIdentifier: "measures",
1977
- items: masterMeasureItems.slice(0, 1),
1978
- },
1979
- {
1980
- localIdentifier: "view",
1981
- items: [],
1982
- },
1983
- {
1984
- localIdentifier: "stack",
1985
- items: [dateItem],
1986
- },
1987
- ],
1988
- filters: {
1989
- localIdentifier: "filters",
1990
- items: [],
1991
- },
1992
- };
1993
- export const onlyStackTreemapMultipleMeasures = {
1994
- buckets: [
1995
- {
1996
- localIdentifier: "measures",
1997
- items: masterMeasureItems,
1998
- },
1999
- {
2000
- localIdentifier: "view",
2001
- items: [],
2002
- },
2003
- {
2004
- localIdentifier: "segment",
2005
- items: [dateItem],
2006
- },
2007
- ],
2008
- filters: {
2009
- localIdentifier: "filters",
2010
- items: [],
2011
- },
2012
- };
2013
- export const multipleDatesInRowsOnly = {
2014
- buckets: [
2015
- {
2016
- localIdentifier: "measures",
2017
- items: masterMeasureItems.slice(0, 1),
2018
- },
2019
- {
2020
- localIdentifier: "rows",
2021
- items: [dateItem, dateItem, dateItem2, dateItem3],
2022
- },
2023
- {
2024
- localIdentifier: "columns",
2025
- items: [],
2026
- },
2027
- ],
2028
- filters: {
2029
- localIdentifier: "filters",
2030
- items: [],
2031
- },
2032
- };
2033
- export const threeDatesSameDimensionRowsReferencePoint = {
2034
- buckets: [
2035
- {
2036
- localIdentifier: "measures",
2037
- items: masterMeasureItems,
2038
- },
2039
- {
2040
- localIdentifier: "rows",
2041
- items: [dateItem, dateItem],
2042
- },
2043
- {
2044
- localIdentifier: "columns",
2045
- items: [dateItem2],
2046
- },
2047
- ],
2048
- filters: {
2049
- localIdentifier: "filters",
2050
- items: [],
2051
- },
2052
- };
2053
- export const multipleDatesNotAsFirstReferencePointWithSingleMeasureColumn = {
2054
- buckets: [
2055
- {
2056
- localIdentifier: "measures",
2057
- items: masterMeasureItems.slice(0, 1),
2058
- },
2059
- {
2060
- localIdentifier: "view",
2061
- items: [attributeItems[0], dateItem],
2062
- },
2063
- {
2064
- localIdentifier: "stack",
2065
- items: [dateItem2],
2066
- },
2067
- ],
2068
- filters: {
2069
- localIdentifier: "filters",
2070
- items: [],
2071
- },
2072
- };
2073
- export const multipleDatesNotAsFirstReferencePoint = {
2074
- buckets: [
2075
- {
2076
- localIdentifier: "measures",
2077
- items: masterMeasureItems,
2078
- },
2079
- {
2080
- localIdentifier: "attribute",
2081
- items: [attributeItems[0], dateItem, dateItem2],
2082
- },
2083
- {
2084
- localIdentifier: "columns",
2085
- items: [],
2086
- },
2087
- ],
2088
- filters: {
2089
- localIdentifier: "filters",
2090
- items: [],
2091
- },
2092
- };
2093
- export const multipleDatesNotAsFirstReferencePointWithSingleMeasure = {
2094
- buckets: [
2095
- {
2096
- localIdentifier: "measures",
2097
- items: masterMeasureItems.slice(0, 1),
2098
- },
2099
- {
2100
- localIdentifier: "attribute",
2101
- items: [attributeItems[0], dateItem, dateItem2],
2102
- },
2103
- {
2104
- localIdentifier: "columns",
2105
- items: [],
2106
- },
2107
- ],
2108
- filters: {
2109
- localIdentifier: "filters",
2110
- items: [],
2111
- },
2112
- };
2113
- export const multipleMeasureAndDateInRowsAndColumReferencePoint = {
2114
- buckets: [
2115
- {
2116
- localIdentifier: "measures",
2117
- items: masterMeasureItems.slice(0, 2),
2118
- },
2119
- {
2120
- localIdentifier: "rows",
2121
- items: [dateItem],
2122
- },
2123
- {
2124
- localIdentifier: "columns",
2125
- items: [dateItem2],
2126
- },
2127
- ],
2128
- filters: {
2129
- localIdentifier: "filters",
2130
- items: [],
2131
- },
2132
- };
2133
- export const dateAsSecondCategoryReferencePoint = {
2134
- buckets: [
2135
- {
2136
- localIdentifier: "measures",
2137
- items: masterMeasureItems.slice(0, 1),
2138
- },
2139
- {
2140
- localIdentifier: "attribute",
2141
- items: attributeItems,
2142
- },
2143
- ],
2144
- filters: {
2145
- localIdentifier: "filters",
2146
- items: [],
2147
- },
2148
- };
2149
- export const dateAsThirdCategoryReferencePointWithoutStack = {
2150
- buckets: [
2151
- {
2152
- localIdentifier: "measures",
2153
- items: masterMeasureItems.slice(0, 1),
2154
- },
2155
- {
2156
- localIdentifier: "attribute",
2157
- items: [...attributeItems.slice(0, 2), dateItem],
2158
- },
2159
- ],
2160
- filters: {
2161
- localIdentifier: "filters",
2162
- items: [],
2163
- },
2164
- };
2165
- export const dateAsSecondCategoryReferencePointWithoutStack = {
2166
- buckets: [
2167
- {
2168
- localIdentifier: "measures",
2169
- items: masterMeasureItems.slice(0, 1),
2170
- },
2171
- {
2172
- localIdentifier: "attribute",
2173
- items: [dateItem],
2174
- },
2175
- ],
2176
- filters: {
2177
- localIdentifier: "filters",
2178
- items: [],
2179
- },
2180
- };
2181
- export const multipleAttributesReferencePoint = {
2182
- buckets: [
2183
- {
2184
- localIdentifier: "measures",
2185
- items: masterMeasureItems.slice(0, 1),
2186
- },
2187
- {
2188
- localIdentifier: "view",
2189
- items: attributeItems,
2190
- },
2191
- {
2192
- localIdentifier: "stack",
2193
- items: attributeItems.slice(2, 3),
2194
- },
2195
- ],
2196
- filters: {
2197
- localIdentifier: "filters",
2198
- items: [],
2199
- },
2200
- };
2201
- export const oneMetricOneStackReferencePoint = {
2202
- buckets: [
2203
- {
2204
- localIdentifier: "measures",
2205
- items: masterMeasureItems.slice(0, 1),
2206
- },
2207
- {
2208
- localIdentifier: "view",
2209
- items: [],
2210
- },
2211
- {
2212
- localIdentifier: "stack",
2213
- items: attributeItems.slice(2, 3),
2214
- },
2215
- ],
2216
- filters: {
2217
- localIdentifier: "filters",
2218
- items: [],
2219
- },
2220
- };
2221
- export const multipleMetricsNoCategoriesReferencePoint = {
2222
- buckets: [
2223
- {
2224
- localIdentifier: "measures",
2225
- items: masterMeasureItems,
2226
- },
2227
- {
2228
- localIdentifier: "view",
2229
- items: [],
2230
- },
2231
- {
2232
- localIdentifier: "stack",
2233
- items: [],
2234
- },
2235
- ],
2236
- filters: {
2237
- localIdentifier: "filters",
2238
- items: [],
2239
- },
2240
- properties: {
2241
- sortItems: [
2242
- {
2243
- measureSortItem: {
2244
- direction: "desc",
2245
- locators: [
2246
- {
2247
- measureLocatorItem: {
2248
- measureIdentifier: "m1",
2249
- },
2250
- },
2251
- ],
2252
- },
2253
- },
2254
- ],
2255
- },
2256
- };
2257
- export const twoMetricNoViewByRefpoint = {
2258
- buckets: [
2259
- {
2260
- localIdentifier: "measures",
2261
- items: masterMeasureItems.slice(0, 1),
2262
- },
2263
- {
2264
- localIdentifier: "secondary_measures",
2265
- items: masterMeasureItems.slice(0, 1),
2266
- },
2267
- {
2268
- localIdentifier: "view",
2269
- items: [],
2270
- },
2271
- ],
2272
- filters: {
2273
- localIdentifier: "filters",
2274
- items: [],
2275
- },
2276
- };
2277
- export const noMetricInAnyBucketRefPoint = {
2278
- buckets: [
2279
- {
2280
- localIdentifier: "measures",
2281
- items: [],
2282
- },
2283
- {
2284
- localIdentifier: "secondary_measures",
2285
- items: [],
2286
- },
2287
- {
2288
- localIdentifier: "view",
2289
- items: attributeItems.slice(0, 2),
2290
- },
2291
- ],
2292
- filters: {
2293
- localIdentifier: "filters",
2294
- items: [],
2295
- },
2296
- };
2297
- export const onePrimaryMetricAndOneViewByRefPoint = {
2298
- buckets: [
2299
- {
2300
- localIdentifier: "measures",
2301
- items: masterMeasureItems.slice(0, 1),
2302
- },
2303
- {
2304
- localIdentifier: "secondary_measures",
2305
- items: [],
2306
- },
2307
- {
2308
- localIdentifier: "view",
2309
- items: attributeItems.slice(0, 1),
2310
- },
2311
- ],
2312
- filters: {
2313
- localIdentifier: "filters",
2314
- items: [],
2315
- },
2316
- };
2317
- export const oneSecondaryMetricAndOneViewByRefPoint = {
2318
- buckets: [
2319
- {
2320
- localIdentifier: "measures",
2321
- items: [],
2322
- },
2323
- {
2324
- localIdentifier: "secondary_measures",
2325
- items: masterMeasureItems.slice(0, 1),
2326
- },
2327
- {
2328
- localIdentifier: "view",
2329
- items: attributeItems.slice(0, 1),
2330
- },
2331
- ],
2332
- filters: {
2333
- localIdentifier: "filters",
2334
- items: [],
2335
- },
2336
- };
2337
- export const oneSecondaryMetricAndOneViewByAreaChartComboRefPoint = {
2338
- buckets: [
2339
- {
2340
- localIdentifier: "measures",
2341
- items: [],
2342
- },
2343
- {
2344
- localIdentifier: "secondary_measures",
2345
- items: masterMeasureItems.slice(0, 1),
2346
- },
2347
- {
2348
- localIdentifier: "view",
2349
- items: attributeItems.slice(0, 1),
2350
- },
2351
- ],
2352
- filters: {
2353
- localIdentifier: "filters",
2354
- items: [],
2355
- },
2356
- properties: {
2357
- controls: {
2358
- primaryChartType: VisualizationTypes.AREA,
2359
- },
2360
- },
2361
- };
2362
- export const twoPrimaryStackedMetricAndOneViewByReferencePoint = {
2363
- buckets: [
2364
- {
2365
- localIdentifier: "measures",
2366
- items: masterMeasureItems.slice(0, 2),
2367
- },
2368
- {
2369
- localIdentifier: "secondary_measures",
2370
- items: [],
2371
- },
2372
- {
2373
- localIdentifier: "view",
2374
- items: attributeItems.slice(0, 1),
2375
- },
2376
- ],
2377
- filters: {
2378
- localIdentifier: "filters",
2379
- items: [],
2380
- },
2381
- properties: {
2382
- controls: {
2383
- stackMeasures: true,
2384
- },
2385
- },
2386
- };
2387
- export const twoMetricsAndOneViewByRefPoint = {
2388
- buckets: [
2389
- {
2390
- localIdentifier: "measures",
2391
- items: masterMeasureItems.slice(0, 1),
2392
- },
2393
- {
2394
- localIdentifier: "secondary_measures",
2395
- items: masterMeasureItems.slice(1, 2),
2396
- },
2397
- {
2398
- localIdentifier: "view",
2399
- items: attributeItems.slice(0, 1),
2400
- },
2401
- ],
2402
- filters: {
2403
- localIdentifier: "filters",
2404
- items: [],
2405
- },
2406
- };
2407
- export const oneMetricNoCategoriesReferencePoint = {
2408
- buckets: [
2409
- {
2410
- localIdentifier: "measures",
2411
- items: masterMeasureItems.slice(0, 1),
2412
- },
2413
- {
2414
- localIdentifier: "view",
2415
- items: [],
2416
- },
2417
- {
2418
- localIdentifier: "stack",
2419
- items: [],
2420
- },
2421
- ],
2422
- filters: {
2423
- localIdentifier: "filters",
2424
- items: [],
2425
- },
2426
- };
2427
- export const oneMetricNoTrendByRefPoint = {
2428
- buckets: [
2429
- {
2430
- localIdentifier: "measures",
2431
- items: masterMeasureItems.slice(0, 1),
2432
- },
2433
- {
2434
- localIdentifier: "trend",
2435
- items: [],
2436
- },
2437
- {
2438
- localIdentifier: "segment",
2439
- items: [],
2440
- },
2441
- ],
2442
- filters: {
2443
- localIdentifier: "filters",
2444
- items: [],
2445
- },
2446
- };
2447
- export const metricWithViewByDateAndDateFilterReferencePoint = {
2448
- buckets: [
2449
- {
2450
- localIdentifier: "measures",
2451
- items: masterMeasureItems.slice(0, 1),
2452
- },
2453
- {
2454
- localIdentifier: "view",
2455
- items: [dateItem],
2456
- },
2457
- {
2458
- localIdentifier: "stack",
2459
- items: [],
2460
- },
2461
- ],
2462
- filters: dateFilterBucketAllTime,
2463
- };
2464
- export const oneMetricAndCategoryAndStackReferencePoint = {
2465
- buckets: [
2466
- {
2467
- localIdentifier: "measures",
2468
- items: masterMeasureItems.slice(0, 1),
2469
- },
2470
- {
2471
- localIdentifier: "view",
2472
- items: attributeItems.slice(0, 1),
2473
- },
2474
- {
2475
- localIdentifier: "stack",
2476
- items: attributeItems.slice(1, 2),
2477
- },
2478
- ],
2479
- filters: {
2480
- localIdentifier: "filters",
2481
- items: [],
2482
- },
2483
- };
2484
- export const oneMetricAndGeoCategoryAndStackReferencePoint = {
2485
- buckets: [
2486
- {
2487
- localIdentifier: "measures",
2488
- items: masterMeasureItems.slice(0, 1),
2489
- },
2490
- {
2491
- localIdentifier: "view",
2492
- items: geoAttributeItems.slice(0, 1),
2493
- },
2494
- {
2495
- localIdentifier: "stack",
2496
- items: attributeItems.slice(1, 2),
2497
- },
2498
- ],
2499
- filters: {
2500
- localIdentifier: "filters",
2501
- items: [],
2502
- },
2503
- };
2504
- export const oneMetricAndLocationAndSegmentReferencePoint = {
2505
- buckets: [
2506
- {
2507
- localIdentifier: "measures",
2508
- items: masterMeasureItems.slice(0, 1),
2509
- },
2510
- {
2511
- localIdentifier: "location",
2512
- items: geoAttributeItems.slice(0, 1),
2513
- },
2514
- {
2515
- localIdentifier: "segment",
2516
- items: attributeItems.slice(1, 2),
2517
- },
2518
- ],
2519
- filters: {
2520
- localIdentifier: "filters",
2521
- items: [],
2522
- },
2523
- };
2524
- export const viewByWithDateAndGeoAttributeReferencePoint = {
2525
- buckets: [
2526
- {
2527
- localIdentifier: "measures",
2528
- items: masterMeasureItems.slice(0, 1),
2529
- },
2530
- {
2531
- localIdentifier: "view",
2532
- items: [...geoAttributeItems.slice(0, 1), dateItem],
2533
- },
2534
- {
2535
- localIdentifier: "stack",
2536
- items: [],
2537
- },
2538
- ],
2539
- filters: {
2540
- localIdentifier: "filters",
2541
- items: [],
2542
- },
2543
- };
2544
- export const viewByWithNonGeoAndGeoAttributeReferencePoint = {
2545
- buckets: [
2546
- {
2547
- localIdentifier: "measures",
2548
- items: masterMeasureItems.slice(0, 1),
2549
- },
2550
- {
2551
- localIdentifier: "view",
2552
- items: [...attributeItems.slice(0, 1), ...geoAttributeItems.slice(0, 1)],
2553
- },
2554
- {
2555
- localIdentifier: "stack",
2556
- items: [],
2557
- },
2558
- ],
2559
- filters: {
2560
- localIdentifier: "filters",
2561
- items: [],
2562
- },
2563
- };
2564
- export const sameCategoryAndStackReferencePoint = {
2565
- buckets: [
2566
- {
2567
- localIdentifier: "measures",
2568
- items: masterMeasureItems.slice(0, 1),
2569
- },
2570
- {
2571
- localIdentifier: "view",
2572
- items: attributeItems.slice(0, 1),
2573
- },
2574
- {
2575
- localIdentifier: "stack",
2576
- items: attributeItems.slice(0, 1),
2577
- },
2578
- ],
2579
- filters: {
2580
- localIdentifier: "filters",
2581
- items: attributeFilters.slice(1, 2),
2582
- },
2583
- properties: {
2584
- sortItems: [defaultSortItem],
2585
- },
2586
- };
2587
- export const oneStackAndNoCategoriesReferencePoint = {
2588
- buckets: [
2589
- {
2590
- localIdentifier: "measures",
2591
- items: masterMeasureItems.slice(0, 1),
2592
- },
2593
- {
2594
- localIdentifier: "view",
2595
- items: [],
2596
- },
2597
- {
2598
- localIdentifier: "stack",
2599
- items: attributeItems.slice(0, 1),
2600
- },
2601
- ],
2602
- filters: {
2603
- localIdentifier: "filters",
2604
- items: [],
2605
- },
2606
- };
2607
- export const overTimeComparisonRecommendationRefPoint = {
2608
- buckets: [
2609
- {
2610
- localIdentifier: "measures",
2611
- items: masterMeasureItems.slice(0, 1),
2612
- },
2613
- {
2614
- localIdentifier: "view",
2615
- items: [dateItem],
2616
- },
2617
- ],
2618
- filters: {
2619
- localIdentifier: "filters",
2620
- items: [
2621
- {
2622
- localIdentifier: "f1",
2623
- type: "date",
2624
- attribute: "attr.datedataset",
2625
- filters: [dateFilter],
2626
- aggregation: null,
2627
- },
2628
- ],
2629
- },
2630
- };
2631
- export const comparisonAndTrendingRecommendationReferencePoint = {
2632
- buckets: [
2633
- {
2634
- localIdentifier: "measures",
2635
- items: masterMeasureItems.slice(0, 1),
2636
- },
2637
- {
2638
- localIdentifier: "view",
2639
- items: [],
2640
- },
2641
- ],
2642
- filters: {
2643
- localIdentifier: "filters",
2644
- items: [],
2645
- },
2646
- };
2647
- export const percentRecommendationReferencePoint = {
2648
- buckets: [
2649
- {
2650
- localIdentifier: "measures",
2651
- items: masterMeasureItems.slice(0, 1),
2652
- },
2653
- {
2654
- localIdentifier: "view",
2655
- items: attributeItems.slice(0, 1),
2656
- },
2657
- {
2658
- localIdentifier: "stack",
2659
- items: [],
2660
- },
2661
- ],
2662
- filters: {
2663
- localIdentifier: "filters",
2664
- items: [],
2665
- },
2666
- };
2667
- export const TableRefencePointWithInvalidSort = {
2668
- ...dateAsFirstCategoryReferencePoint,
2669
- properties: {
2670
- sortItems: [
2671
- {
2672
- attributeSortItem: {
2673
- attributeIdentifier: "unknown",
2674
- direction: "asc",
2675
- },
2676
- },
2677
- ],
2678
- },
2679
- };
2680
- export const oneMetricAndManyCategoriesReferencePointWithInvalidSort = {
2681
- ...oneMetricAndManyCategoriesReferencePoint,
2682
- properties: {
2683
- sortItems: [
2684
- {
2685
- attributeSortItem: {
2686
- attributeIdentifier: "unknown",
2687
- direction: "asc",
2688
- },
2689
- },
2690
- ],
2691
- },
2692
- };
2693
- export const tableTotalsReferencePoint = {
2694
- buckets: [
2695
- {
2696
- localIdentifier: "measures",
2697
- items: masterMeasureItems.slice(0, 2),
2698
- },
2699
- {
2700
- localIdentifier: "attribute",
2701
- items: attributeItems.slice(0, 2),
2702
- totals: [
2703
- {
2704
- measureIdentifier: "m1",
2705
- attributeIdentifier: "a1",
2706
- type: "sum",
2707
- alias: "Sum",
2708
- },
2709
- {
2710
- measureIdentifier: "m2",
2711
- attributeIdentifier: "a1",
2712
- type: "nat",
2713
- },
2714
- ],
2715
- },
2716
- ],
2717
- filters: {
2718
- localIdentifier: "filters",
2719
- items: attributeFilters.slice(0, 1),
2720
- },
2721
- properties: {
2722
- sortItems: [
2723
- {
2724
- attributeSortItem: {
2725
- attributeIdentifier: "a1",
2726
- direction: "asc",
2727
- },
2728
- },
2729
- ],
2730
- },
2731
- };
2732
- export const tableGrandAndSubtotalsReferencePoint = {
2733
- buckets: [
2734
- {
2735
- localIdentifier: "measures",
2736
- items: masterMeasureItems.slice(0, 2),
2737
- },
2738
- {
2739
- localIdentifier: "attribute",
2740
- items: attributeItems.slice(0, 2),
2741
- totals: [
2742
- {
2743
- measureIdentifier: "m1",
2744
- attributeIdentifier: "a2",
2745
- type: "sum",
2746
- alias: "Sum",
2747
- },
2748
- {
2749
- measureIdentifier: "m2",
2750
- attributeIdentifier: "a1",
2751
- type: "nat",
2752
- },
2753
- ],
2754
- },
2755
- ],
2756
- filters: {
2757
- localIdentifier: "filters",
2758
- items: attributeFilters.slice(0, 1),
2759
- },
2760
- properties: {
2761
- sortItems: [
2762
- {
2763
- attributeSortItem: {
2764
- attributeIdentifier: "a1",
2765
- direction: "asc",
2766
- },
2767
- },
2768
- ],
2769
- },
2770
- };
2771
- export const wrongBucketsOrderReferencePoint = {
2772
- buckets: [
2773
- {
2774
- localIdentifier: "measures",
2775
- items: masterMeasureItems.slice(0, 1),
2776
- },
2777
- {
2778
- localIdentifier: "stack",
2779
- items: attributeItems.slice(1, 2),
2780
- },
2781
- {
2782
- localIdentifier: "view",
2783
- items: attributeItems.slice(0, 1),
2784
- },
2785
- ],
2786
- filters: {
2787
- localIdentifier: "filters",
2788
- items: [],
2789
- },
2790
- };
2791
- export const bucketsJustStackReferencePoint = {
2792
- buckets: [
2793
- {
2794
- localIdentifier: "measures",
2795
- items: masterMeasureItems.slice(0, 1),
2796
- },
2797
- {
2798
- localIdentifier: "view",
2799
- items: [],
2800
- },
2801
- {
2802
- localIdentifier: "stack",
2803
- items: attributeItems.slice(1, 2),
2804
- },
2805
- ],
2806
- filters: {
2807
- localIdentifier: "filters",
2808
- items: [],
2809
- },
2810
- };
2811
- export const wrongBucketsOrderInLineReferencePoint = {
2812
- buckets: [
2813
- {
2814
- localIdentifier: "measures",
2815
- items: masterMeasureItems.slice(0, 1),
2816
- },
2817
- {
2818
- localIdentifier: "segment",
2819
- items: attributeItems.slice(1, 2),
2820
- },
2821
- {
2822
- localIdentifier: "trend",
2823
- items: attributeItems.slice(0, 1),
2824
- },
2825
- ],
2826
- filters: {
2827
- localIdentifier: "filters",
2828
- items: [],
2829
- },
2830
- };
2831
- export const twoMeasureBucketsReferencePoint = {
2832
- buckets: [
2833
- {
2834
- localIdentifier: "measures",
2835
- items: masterMeasureItems.slice(0, 2),
2836
- },
2837
- {
2838
- localIdentifier: "secondary_measures",
2839
- items: masterMeasureItems.slice(2),
2840
- },
2841
- {
2842
- localIdentifier: "view",
2843
- items: attributeItems.slice(0, 1),
2844
- },
2845
- ],
2846
- filters: {
2847
- localIdentifier: "filters",
2848
- items: [],
2849
- },
2850
- };
2851
- export const bulletChartWithMeasureInPrimaryBucket = {
2852
- buckets: [
2853
- {
2854
- localIdentifier: "measures",
2855
- items: masterMeasureItems.slice(0, 1),
2856
- },
2857
- {
2858
- localIdentifier: "secondary_measures",
2859
- items: [],
2860
- },
2861
- {
2862
- localIdentifier: "tertiary_measures",
2863
- items: [],
2864
- },
2865
- {
2866
- localIdentifier: "view",
2867
- items: [],
2868
- },
2869
- ],
2870
- filters: {
2871
- localIdentifier: "filters",
2872
- items: [],
2873
- },
2874
- };
2875
- export const bulletChartWithMeasureInSecondaryBucket = {
2876
- buckets: [
2877
- {
2878
- localIdentifier: "measures",
2879
- items: [],
2880
- },
2881
- {
2882
- localIdentifier: "secondary_measures",
2883
- items: masterMeasureItems.slice(1, 2),
2884
- },
2885
- {
2886
- localIdentifier: "tertiary_measures",
2887
- items: [],
2888
- },
2889
- {
2890
- localIdentifier: "view",
2891
- items: [],
2892
- },
2893
- ],
2894
- filters: {
2895
- localIdentifier: "filters",
2896
- items: [],
2897
- },
2898
- };
2899
- export const twoMeasuresBucketsTwoViewByReferencePoint = {
2900
- buckets: [
2901
- {
2902
- localIdentifier: "measures",
2903
- items: masterMeasureItems.slice(0, 1),
2904
- },
2905
- {
2906
- localIdentifier: "secondary_measures",
2907
- items: masterMeasureItems.slice(1, 2),
2908
- },
2909
- {
2910
- localIdentifier: "tertiary_measures",
2911
- items: [],
2912
- },
2913
- {
2914
- localIdentifier: "view",
2915
- items: attributeItems.slice(0, 2),
2916
- },
2917
- ],
2918
- filters: {
2919
- localIdentifier: "filters",
2920
- items: [],
2921
- },
2922
- };
2923
- export const threeMeasuresBucketsReferencePoint = {
2924
- buckets: [
2925
- {
2926
- localIdentifier: "measures",
2927
- items: masterMeasureItems.slice(0, 1),
2928
- },
2929
- {
2930
- localIdentifier: "secondary_measures",
2931
- items: masterMeasureItems.slice(1, 2),
2932
- },
2933
- {
2934
- localIdentifier: "tertiary_measures",
2935
- items: masterMeasureItems.slice(2, 3),
2936
- },
2937
- {
2938
- localIdentifier: "view",
2939
- items: attributeItems.slice(0, 1),
2940
- },
2941
- ],
2942
- filters: {
2943
- localIdentifier: "filters",
2944
- items: [],
2945
- },
2946
- };
2947
- export const threeMeasuresTwoViewByReferencePoint = {
2948
- buckets: [
2949
- {
2950
- localIdentifier: "measures",
2951
- items: masterMeasureItems.slice(0, 1),
2952
- },
2953
- {
2954
- localIdentifier: "secondary_measures",
2955
- items: masterMeasureItems.slice(1, 2),
2956
- },
2957
- {
2958
- localIdentifier: "tertiary_measures",
2959
- items: masterMeasureItems.slice(2, 3),
2960
- },
2961
- {
2962
- localIdentifier: "view",
2963
- items: attributeItems.slice(0, 2),
2964
- },
2965
- ],
2966
- filters: {
2967
- localIdentifier: "filters",
2968
- items: [],
2969
- },
2970
- };
2971
- export const multipleMetricsOneStackByReferencePoint = {
2972
- buckets: [
2973
- {
2974
- localIdentifier: "measures",
2975
- items: masterMeasureItems,
2976
- },
2977
- {
2978
- localIdentifier: "view",
2979
- items: [],
2980
- },
2981
- {
2982
- localIdentifier: "stack",
2983
- items: attributeItems.slice(0, 1),
2984
- },
2985
- ],
2986
- filters: {
2987
- localIdentifier: "filters",
2988
- items: [],
2989
- },
2990
- properties: {
2991
- sortItems: [defaultSortItem],
2992
- },
2993
- };
2994
- export const dateAttributeOnStackBucketReferencePoint = {
2995
- buckets: [
2996
- {
2997
- localIdentifier: "measures",
2998
- items: masterMeasureItems.slice(0, 1),
2999
- },
3000
- {
3001
- localIdentifier: "view",
3002
- items: [],
3003
- },
3004
- {
3005
- localIdentifier: "stack",
3006
- items: [dateFilterItem],
3007
- },
3008
- ],
3009
- filters: {
3010
- localIdentifier: "filters",
3011
- items: [
3012
- {
3013
- localIdentifier: "f1",
3014
- type: "date",
3015
- attribute: DATE_DATASET_ATTRIBUTE,
3016
- filters: [dateFilter],
3017
- aggregation: null,
3018
- },
3019
- ],
3020
- },
3021
- };
3022
- export const dateAttributeOnViewAndStackReferencePoint = {
3023
- buckets: [
3024
- {
3025
- localIdentifier: "measures",
3026
- items: masterMeasureItems.slice(0, 1),
3027
- },
3028
- {
3029
- localIdentifier: "view",
3030
- items: [
3031
- {
3032
- ...dateItem,
3033
- localIdentifier: "date1",
3034
- },
3035
- ],
3036
- },
3037
- {
3038
- localIdentifier: "stack",
3039
- items: [
3040
- {
3041
- ...dateItem,
3042
- localIdentifier: "date2",
3043
- },
3044
- ],
3045
- },
3046
- ],
3047
- filters: {
3048
- localIdentifier: "filters",
3049
- items: [],
3050
- },
3051
- };
3052
- export const dateAttributeOnRowsAndColumnsReferencePoint = {
3053
- buckets: [
3054
- {
3055
- localIdentifier: "measures",
3056
- items: masterMeasureItems.slice(0, 1),
3057
- },
3058
- {
3059
- localIdentifier: "attribute",
3060
- items: [
3061
- {
3062
- ...dateItem,
3063
- dateDatasetRef: uriRef("created"),
3064
- localIdentifier: "date1",
3065
- },
3066
- ],
3067
- },
3068
- {
3069
- localIdentifier: "columns",
3070
- items: [
3071
- {
3072
- ...dateItem,
3073
- dateDatasetRef: uriRef("created"),
3074
- localIdentifier: "date2",
3075
- },
3076
- ],
3077
- },
3078
- ],
3079
- filters: {
3080
- localIdentifier: "filters",
3081
- items: [],
3082
- },
3083
- };
3084
- export const dateAttributesOnRowsReferencePoint = {
3085
- buckets: [
3086
- {
3087
- localIdentifier: "measures",
3088
- items: masterMeasureItems.slice(0, 1),
3089
- },
3090
- {
3091
- localIdentifier: "attribute",
3092
- items: [
3093
- {
3094
- ...dateItem,
3095
- dateDatasetRef: uriRef("created"),
3096
- localIdentifier: "date1",
3097
- },
3098
- {
3099
- ...dateItem,
3100
- dateDatasetRef: uriRef("closed"),
3101
- localIdentifier: "date2",
3102
- },
3103
- {
3104
- ...dateItem,
3105
- dateDatasetRef: uriRef("snapshot"),
3106
- localIdentifier: "date3",
3107
- },
3108
- {
3109
- ...dateItem,
3110
- dateDatasetRef: uriRef("created"),
3111
- localIdentifier: "date4",
3112
- },
3113
- ],
3114
- },
3115
- {
3116
- localIdentifier: "columns",
3117
- items: [],
3118
- },
3119
- ],
3120
- filters: {
3121
- localIdentifier: "filters",
3122
- items: [],
3123
- },
3124
- };
3125
- export const headlineWithMeasureInPrimaryBucket = {
3126
- buckets: [
3127
- {
3128
- localIdentifier: "measures",
3129
- items: masterMeasureItems.slice(0, 1),
3130
- },
3131
- {
3132
- localIdentifier: "secondary_measures",
3133
- items: [],
3134
- },
3135
- ],
3136
- filters: {
3137
- localIdentifier: "filters",
3138
- items: [],
3139
- },
3140
- properties: {
3141
- sortItems: [
3142
- {
3143
- measureSortItem: {
3144
- direction: "desc",
3145
- locators: [
3146
- {
3147
- measureLocatorItem: {
3148
- measureIdentifier: "m1",
3149
- },
3150
- },
3151
- ],
3152
- },
3153
- },
3154
- ],
3155
- },
3156
- };
3157
- export const headlineWithMeasureInSecondaryBucket = {
3158
- buckets: [
3159
- {
3160
- localIdentifier: "measures",
3161
- items: [],
3162
- },
3163
- {
3164
- localIdentifier: "secondary_measures",
3165
- items: masterMeasureItems.slice(0, 1),
3166
- },
3167
- ],
3168
- filters: {
3169
- localIdentifier: "filters",
3170
- items: [],
3171
- },
3172
- properties: {
3173
- sortItems: [
3174
- {
3175
- measureSortItem: {
3176
- direction: "desc",
3177
- locators: [
3178
- {
3179
- measureLocatorItem: {
3180
- measureIdentifier: "m1",
3181
- },
3182
- },
3183
- ],
3184
- },
3185
- },
3186
- ],
3187
- },
3188
- };
3189
- export const twoAttributesWithFiltersReferencePoint = {
3190
- buckets: [
3191
- {
3192
- localIdentifier: "attribute",
3193
- items: attributeItems.slice(0, 2),
3194
- },
3195
- ],
3196
- filters: {
3197
- localIdentifier: "filters",
3198
- items: attributeFilters.slice(0, 2),
3199
- },
3200
- properties: {
3201
- sortItems: [defaultSortItem],
3202
- },
3203
- };
3204
- export const oneAttributeTwoFiltersReferencePoint = {
3205
- buckets: [
3206
- {
3207
- localIdentifier: "attribute",
3208
- items: attributeItems.slice(0, 1),
3209
- },
3210
- ],
3211
- filters: {
3212
- localIdentifier: "filters",
3213
- items: attributeFilters.slice(0, 2),
3214
- },
3215
- properties: {
3216
- sortItems: [defaultSortItem],
3217
- },
3218
- };
3219
- export const firstMeasureArithmeticAlongWithAttributeReferencePoint = {
3220
- buckets: [
3221
- {
3222
- localIdentifier: "measures",
3223
- items: [arithmeticMeasureItems[0], masterMeasureItems[0], masterMeasureItems[1]],
3224
- },
3225
- {
3226
- localIdentifier: "view",
3227
- items: attributeItems.slice(0, 1),
3228
- },
3229
- ],
3230
- filters: {
3231
- localIdentifier: "filters",
3232
- items: [],
3233
- },
3234
- };
3235
- export const firstMeasureArithmeticNoAttributeReferencePoint = {
3236
- buckets: [
3237
- {
3238
- localIdentifier: "measures",
3239
- items: [arithmeticMeasureItems[0], masterMeasureItems[0], masterMeasureItems[1]],
3240
- },
3241
- {
3242
- localIdentifier: "view",
3243
- items: [],
3244
- },
3245
- ],
3246
- filters: {
3247
- localIdentifier: "filters",
3248
- items: [],
3249
- },
3250
- };
3251
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedAreaReferencePoint = {
3252
- buckets: [
3253
- {
3254
- localIdentifier: "measures",
3255
- items: [
3256
- masterMeasureItems[0],
3257
- masterMeasureItems[1],
3258
- derivedMeasureItems[0],
3259
- derivedMeasureItems[1],
3260
- arithmeticMeasureItems[0],
3261
- arithmeticMeasureItems[1],
3262
- arithmeticMeasureItems[3],
3263
- arithmeticMeasureItems[5],
3264
- ],
3265
- },
3266
- {
3267
- localIdentifier: "view",
3268
- items: [],
3269
- },
3270
- {
3271
- localIdentifier: "stack",
3272
- items: [],
3273
- },
3274
- ],
3275
- filters: {
3276
- localIdentifier: "filters",
3277
- items: [],
3278
- },
3279
- };
3280
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedBubbleReferencePoint = {
3281
- buckets: [
3282
- {
3283
- localIdentifier: "measures",
3284
- items: [
3285
- masterMeasureItems[0],
3286
- masterMeasureItems[1],
3287
- derivedMeasureItems[0],
3288
- arithmeticMeasureItems[1],
3289
- ],
3290
- },
3291
- {
3292
- localIdentifier: "secondary_measures",
3293
- items: [derivedMeasureItems[1], arithmeticMeasureItems[0]],
3294
- },
3295
- {
3296
- localIdentifier: "tertiary_measures",
3297
- items: [arithmeticMeasureItems[3], arithmeticMeasureItems[5]],
3298
- },
3299
- {
3300
- localIdentifier: "view",
3301
- items: [],
3302
- },
3303
- ],
3304
- filters: {
3305
- localIdentifier: "filters",
3306
- items: [],
3307
- },
3308
- };
3309
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedHeatMapReferencePoint = {
3310
- buckets: [
3311
- {
3312
- localIdentifier: "measures",
3313
- items: [
3314
- derivedMeasureItems[0],
3315
- arithmeticMeasureItems[3],
3316
- masterMeasureItems[0],
3317
- masterMeasureItems[1],
3318
- derivedMeasureItems[1],
3319
- arithmeticMeasureItems[0],
3320
- arithmeticMeasureItems[1],
3321
- arithmeticMeasureItems[5],
3322
- ],
3323
- },
3324
- {
3325
- localIdentifier: "view",
3326
- items: [],
3327
- },
3328
- {
3329
- localIdentifier: "stack",
3330
- items: [],
3331
- },
3332
- ],
3333
- filters: {
3334
- localIdentifier: "filters",
3335
- items: [],
3336
- },
3337
- };
3338
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedPieReferencePoint = {
3339
- buckets: [
3340
- {
3341
- localIdentifier: "measures",
3342
- items: [
3343
- masterMeasureItems[0],
3344
- masterMeasureItems[1],
3345
- derivedMeasureItems[0],
3346
- derivedMeasureItems[1],
3347
- arithmeticMeasureItems[0],
3348
- arithmeticMeasureItems[1],
3349
- arithmeticMeasureItems[3],
3350
- arithmeticMeasureItems[5],
3351
- ],
3352
- },
3353
- {
3354
- localIdentifier: "view",
3355
- items: [],
3356
- },
3357
- ],
3358
- filters: {
3359
- localIdentifier: "filters",
3360
- items: [],
3361
- },
3362
- };
3363
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedScatterReferencePoint = {
3364
- buckets: [
3365
- {
3366
- localIdentifier: "measures",
3367
- items: [
3368
- derivedMeasureItems[0],
3369
- arithmeticMeasureItems[3],
3370
- masterMeasureItems[0],
3371
- masterMeasureItems[1],
3372
- ],
3373
- },
3374
- {
3375
- localIdentifier: "secondary_measures",
3376
- items: [
3377
- derivedMeasureItems[1],
3378
- arithmeticMeasureItems[0],
3379
- arithmeticMeasureItems[1],
3380
- arithmeticMeasureItems[5],
3381
- ],
3382
- },
3383
- {
3384
- localIdentifier: "attribute",
3385
- items: [],
3386
- },
3387
- ],
3388
- filters: {
3389
- localIdentifier: "filters",
3390
- items: [],
3391
- },
3392
- };
3393
- export const mixOfMeasuresWithDerivedAndArithmeticFromDerivedTreeMapReferencePoint = {
3394
- buckets: [
3395
- {
3396
- localIdentifier: "measures",
3397
- items: [
3398
- masterMeasureItems[0],
3399
- masterMeasureItems[1],
3400
- derivedMeasureItems[0],
3401
- derivedMeasureItems[1],
3402
- arithmeticMeasureItems[0],
3403
- arithmeticMeasureItems[1],
3404
- arithmeticMeasureItems[3],
3405
- arithmeticMeasureItems[5],
3406
- ],
3407
- },
3408
- {
3409
- localIdentifier: "view",
3410
- items: [],
3411
- },
3412
- {
3413
- localIdentifier: "segment",
3414
- items: [],
3415
- },
3416
- ],
3417
- filters: {
3418
- localIdentifier: "filters",
3419
- items: [],
3420
- },
3421
- };
3422
- export const stackMeasuresToPercentReferencePoint = {
3423
- buckets: [
3424
- {
3425
- localIdentifier: "measures",
3426
- items: [...masterMeasureItems.slice(0, 2)],
3427
- },
3428
- {
3429
- localIdentifier: "view",
3430
- items: [],
3431
- },
3432
- {
3433
- localIdentifier: "segment",
3434
- items: [],
3435
- },
3436
- ],
3437
- filters: {
3438
- localIdentifier: "filters",
3439
- items: [],
3440
- },
3441
- properties: {
3442
- controls: {
3443
- stackMeasuresToPercent: true,
3444
- },
3445
- },
3446
- };
3447
- export const oneMeasuresOneCategoryOneStackItemWithStackMeasuresToPercent = {
3448
- buckets: [
3449
- {
3450
- localIdentifier: "measures",
3451
- items: masterMeasureItems.slice(0, 1),
3452
- },
3453
- {
3454
- localIdentifier: "view",
3455
- items: attributeItems.slice(0, 1),
3456
- },
3457
- {
3458
- localIdentifier: "stack",
3459
- items: attributeItems.slice(1, 2),
3460
- },
3461
- ],
3462
- filters: {
3463
- localIdentifier: "filters",
3464
- items: [],
3465
- },
3466
- properties: {
3467
- controls: {
3468
- stackMeasuresToPercent: true,
3469
- },
3470
- },
3471
- };
3472
- export const oneMeasuresOneCategoryWithStackMeasuresToPercent = {
3473
- buckets: [
3474
- {
3475
- localIdentifier: "measures",
3476
- items: masterMeasureItems.slice(0, 1),
3477
- },
3478
- {
3479
- localIdentifier: "view",
3480
- items: attributeItems.slice(0, 1),
3481
- },
3482
- {
3483
- localIdentifier: "stack",
3484
- items: [],
3485
- },
3486
- ],
3487
- filters: {
3488
- localIdentifier: "filters",
3489
- items: [],
3490
- },
3491
- properties: {
3492
- controls: {
3493
- stackMeasuresToPercent: true,
3494
- },
3495
- },
3496
- };
3497
- export const twoMeasuresOneCategoryWithStackMeasuresToPercent = {
3498
- buckets: [
3499
- {
3500
- localIdentifier: "measures",
3501
- items: masterMeasureItems.slice(0, 2),
3502
- },
3503
- {
3504
- localIdentifier: "view",
3505
- items: attributeItems.slice(0, 1),
3506
- },
3507
- {
3508
- localIdentifier: "stack",
3509
- items: [],
3510
- },
3511
- ],
3512
- filters: {
3513
- localIdentifier: "filters",
3514
- items: [],
3515
- },
3516
- properties: {
3517
- controls: {
3518
- stackMeasuresToPercent: true,
3519
- },
3520
- },
3521
- };
3522
- export const measureValueFilterReferencePoint = {
3523
- buckets: [
3524
- {
3525
- localIdentifier: "measures",
3526
- items: masterMeasureItems.slice(0, 1),
3527
- },
3528
- {
3529
- localIdentifier: "secondary_measures",
3530
- items: masterMeasureItems.slice(1),
3531
- },
3532
- {
3533
- localIdentifier: "view",
3534
- items: attributeItems,
3535
- },
3536
- ],
3537
- filters: {
3538
- localIdentifier: "filters",
3539
- items: [
3540
- {
3541
- localIdentifier: "fbv1",
3542
- filters: [
3543
- {
3544
- measureLocalIdentifier: masterMeasureItems[0].localIdentifier,
3545
- condition: {
3546
- comparison: {
3547
- operator: "GREATER_THAN",
3548
- value: 100,
3549
- },
3550
- },
3551
- },
3552
- ],
3553
- },
3554
- {
3555
- localIdentifier: "fbv2",
3556
- filters: [
3557
- {
3558
- measureLocalIdentifier: masterMeasureItems[1].localIdentifier,
3559
- condition: {
3560
- range: {
3561
- operator: "BETWEEN",
3562
- from: 100,
3563
- to: 200,
3564
- },
3565
- },
3566
- },
3567
- ],
3568
- },
3569
- {
3570
- localIdentifier: "fbv3",
3571
- filters: [
3572
- {
3573
- measureLocalIdentifier: masterMeasureItems[2].localIdentifier,
3574
- },
3575
- ],
3576
- },
3577
- ],
3578
- },
3579
- };
3580
- export const measureValueFilterByDerivedReferencePoint = {
3581
- buckets: [
3582
- {
3583
- localIdentifier: "measures",
3584
- items: masterMeasureItems.slice(0, 1),
3585
- },
3586
- {
3587
- localIdentifier: "secondary_measures",
3588
- items: masterMeasureItems.slice(1).concat(derivedMeasureItems),
3589
- },
3590
- {
3591
- localIdentifier: "view",
3592
- items: attributeItems,
3593
- },
3594
- ],
3595
- filters: {
3596
- localIdentifier: "filters",
3597
- items: [
3598
- {
3599
- localIdentifier: "filter_by_derived_measure",
3600
- filters: [
3601
- {
3602
- measureLocalIdentifier: derivedMeasureItems[0].localIdentifier,
3603
- condition: {
3604
- comparison: {
3605
- operator: "GREATER_THAN",
3606
- value: 100,
3607
- },
3608
- },
3609
- },
3610
- ],
3611
- },
3612
- {
3613
- localIdentifier: "fbv2",
3614
- filters: [
3615
- {
3616
- measureLocalIdentifier: masterMeasureItems[1].localIdentifier,
3617
- condition: {
3618
- range: {
3619
- operator: "BETWEEN",
3620
- from: 100,
3621
- to: 200,
3622
- },
3623
- },
3624
- },
3625
- ],
3626
- },
3627
- ],
3628
- },
3629
- };
3630
- export const simpleGeoPushpinReferencePoint = {
3631
- buckets: [
3632
- {
3633
- localIdentifier: "location",
3634
- items: geoAttributeItems.slice(0, 1),
3635
- },
3636
- {
3637
- localIdentifier: "size",
3638
- items: masterMeasureItems.slice(0, 1),
3639
- },
3640
- {
3641
- localIdentifier: "color",
3642
- items: masterMeasureItems.slice(1, 2),
3643
- },
3644
- {
3645
- localIdentifier: "segment",
3646
- items: geoAttributeItems.slice(1, 2),
3647
- },
3648
- ],
3649
- filters: {
3650
- localIdentifier: "filters",
3651
- items: geoAttributeFilters.slice(0, 1),
3652
- },
3653
- properties: {
3654
- sortItems: [defaultSortItem],
3655
- },
3656
- };
3657
- export const latitudeLongitudeGeoPushpinReferencePoint = {
3658
- buckets: [
3659
- {
3660
- localIdentifier: "location",
3661
- items: geoAttributeItems.slice(2, 3),
3662
- },
3663
- {
3664
- localIdentifier: "size",
3665
- items: masterMeasureItems.slice(0, 1),
3666
- },
3667
- {
3668
- localIdentifier: "color",
3669
- items: masterMeasureItems.slice(1, 2),
3670
- },
3671
- {
3672
- localIdentifier: "segment",
3673
- items: geoAttributeItems.slice(1, 2),
3674
- },
3675
- ],
3676
- filters: {
3677
- localIdentifier: "filters",
3678
- items: geoAttributeFilters.slice(0, 1),
3679
- },
3680
- properties: {
3681
- sortItems: [defaultSortItem],
3682
- },
3683
- };
3684
- export const noLocationGeoPushpinReferencePoint = {
3685
- buckets: [
3686
- {
3687
- localIdentifier: "location",
3688
- items: [],
3689
- },
3690
- {
3691
- localIdentifier: "size",
3692
- items: [],
3693
- },
3694
- {
3695
- localIdentifier: "color",
3696
- items: [],
3697
- },
3698
- {
3699
- localIdentifier: "segment",
3700
- items: geoAttributeItems.slice(1, 2),
3701
- },
3702
- ],
3703
- filters: {
3704
- localIdentifier: "filters",
3705
- items: geoAttributeFilters.slice(0, 1),
3706
- },
3707
- properties: {
3708
- sortItems: [defaultSortItem],
3709
- },
3710
- };
3711
- export const twoMeasuresWithShowInPercentOnSecondaryAxisReferencePoint = {
3712
- buckets: [
3713
- {
3714
- localIdentifier: "measures",
3715
- items: masterMeasuresWithPercentage.slice(2, 3),
3716
- },
3717
- {
3718
- localIdentifier: "secondary_measures",
3719
- items: masterMeasuresWithPercentage.slice(3, 4),
3720
- },
3721
- {
3722
- localIdentifier: "view",
3723
- items: geoAttributeItems.slice(0, 1),
3724
- },
3725
- {
3726
- localIdentifier: "segment",
3727
- items: [],
3728
- },
3729
- ],
3730
- filters: {
3731
- localIdentifier: "filters",
3732
- items: geoAttributeFilters.slice(0, 1),
3733
- },
3734
- properties: {
3735
- sortItems: [defaultSortItem],
3736
- },
3737
- };
3738
- export const tableWithRowColTotalAndRankingFilter = {
3739
- buckets: [
3740
- {
3741
- localIdentifier: "measures",
3742
- items: masterMeasureItems.slice(0, 2),
3743
- },
3744
- {
3745
- localIdentifier: "attribute",
3746
- items: attributeItems.slice(0, 1),
3747
- totals: [
3748
- {
3749
- measureIdentifier: "m1",
3750
- attributeIdentifier: "a1",
3751
- type: "nat",
3752
- },
3753
- ],
3754
- },
3755
- {
3756
- localIdentifier: "columns",
3757
- items: attributeItems.slice(1),
3758
- totals: [
3759
- {
3760
- measureIdentifier: "m1",
3761
- attributeIdentifier: "a2",
3762
- type: "nat",
3763
- },
3764
- ],
3765
- },
3766
- ],
3767
- filters: {
3768
- localIdentifier: "filters",
3769
- items: [
3770
- {
3771
- localIdentifier: "ranking1",
3772
- filters: [rankingFilter],
3773
- },
3774
- ],
3775
- },
3776
- properties: {
3777
- sortItems: [],
3778
- },
3779
- };
3780
- export const tableWithNativeTotal = {
3781
- buckets: [
3782
- {
3783
- localIdentifier: "measures",
3784
- items: masterMeasureItems.slice(0, 2),
3785
- },
3786
- {
3787
- localIdentifier: "attribute",
3788
- items: attributeItems.slice(0, 2),
3789
- totals: [
3790
- {
3791
- measureIdentifier: "m1",
3792
- attributeIdentifier: "a1",
3793
- type: "sum",
3794
- alias: "Sum",
3795
- },
3796
- {
3797
- measureIdentifier: "m2",
3798
- attributeIdentifier: "a1",
3799
- type: "nat",
3800
- },
3801
- ],
3802
- },
3803
- ],
3804
- filters: {
3805
- localIdentifier: "filters",
3806
- items: attributeFilters.slice(0, 1),
3807
- },
3808
- properties: {
3809
- sortItems: [
3810
- {
3811
- attributeSortItem: {
3812
- attributeIdentifier: "a1",
3813
- direction: "asc",
3814
- },
3815
- },
3816
- ],
3817
- },
3818
- };
3819
- export const rankingFilterAndInvalidNatTotal = {
3820
- ...tableWithNativeTotal,
3821
- filters: {
3822
- localIdentifier: "filters",
3823
- items: [
3824
- ...tableWithNativeTotal.filters.items,
3825
- {
3826
- localIdentifier: "ranking1",
3827
- filters: [rankingFilter],
3828
- },
3829
- ],
3830
- },
3831
- };
3832
- export const measureValueFilterAndInvalidNatTotal = {
3833
- ...tableWithNativeTotal,
3834
- filters: {
3835
- localIdentifier: "filters",
3836
- items: [
3837
- ...tableWithNativeTotal.filters.items,
3838
- {
3839
- localIdentifier: "mvf1",
3840
- filters: [measureValueFilter],
3841
- },
3842
- ],
3843
- },
3844
- };
3845
- export const metricAndAttributeFromAndTo = {
3846
- buckets: [
3847
- {
3848
- localIdentifier: "measure",
3849
- items: [masterMeasureItems[0]],
3850
- },
3851
- {
3852
- localIdentifier: "attribute_from",
3853
- items: [attributeItems[0]],
3854
- },
3855
- {
3856
- localIdentifier: "attribute_to",
3857
- items: [attributeItems[1]],
3858
- },
3859
- ],
3860
- filters: {
3861
- localIdentifier: "filters",
3862
- items: [],
3863
- },
3864
- properties: {
3865
- sortItems: [],
3866
- },
3867
- };
3868
- export const tableWithMultipleMeasuresRowsAndColumns = {
3869
- buckets: [
3870
- {
3871
- localIdentifier: "measures",
3872
- items: masterMeasureItems.slice(0, 2),
3873
- },
3874
- {
3875
- localIdentifier: "attribute",
3876
- items: attributeItems.slice(0, 2),
3877
- },
3878
- {
3879
- localIdentifier: "attribute",
3880
- items: attributeItems.slice(0, 1),
3881
- },
3882
- ],
3883
- filters: {
3884
- localIdentifier: "filters",
3885
- items: [],
3886
- },
3887
- properties: {
3888
- sortItems: [],
3889
- },
3890
- };
3891
- const generateMeasuresItems = (count) => {
3892
- const result = [];
3893
- for (let i = 1; i <= count; i++) {
3894
- const item = {
3895
- ...masterMeasureItems[0],
3896
- localIdentifier: `m${i}`,
3897
- attribute: `attributeIdentifer-${i}`,
3898
- };
3899
- result.push(item);
3900
- }
3901
- return result;
3902
- };
3903
- const generateDerivedMeasuresItems = (count) => {
3904
- const result = [];
3905
- for (let i = 1; i <= count; i++) {
3906
- const item = {
3907
- ...derivedMeasureItems[0],
3908
- masterLocalIdentifier: `m${i}`,
3909
- localIdentifier: `m${i}_pop`,
3910
- attribute: `attributeIdentifier-${i}`,
3911
- };
3912
- result.push(item);
3913
- }
3914
- return result;
3915
- };
3916
- const generateAttributeItems = (count) => {
3917
- const result = [];
3918
- for (let i = 1; i <= count; i++) {
3919
- const item = {
3920
- ...attributeItems[0],
3921
- localIdentifier: `a${i}`,
3922
- attribute: `attributeIdentifer-${i}`,
3923
- dfRef: uriRef(`a${i}/df`),
3924
- };
3925
- result.push(item);
3926
- }
3927
- return result;
3928
- };
3929
- export const tableWith20MeasuresAndAttributesAndNoColumn = {
3930
- buckets: [
3931
- {
3932
- localIdentifier: "measures",
3933
- items: generateMeasuresItems(21),
3934
- },
3935
- {
3936
- localIdentifier: "attribute",
3937
- items: generateAttributeItems(21),
3938
- },
3939
- {
3940
- localIdentifier: "columns",
3941
- items: [],
3942
- },
3943
- ],
3944
- filters: {
3945
- localIdentifier: "filters",
3946
- items: [],
3947
- },
3948
- properties: {
3949
- sortItems: [],
3950
- },
3951
- };
3952
- export const tableWith20MeasuresAndAttributesAnd1Column = {
3953
- buckets: [
3954
- {
3955
- localIdentifier: "measures",
3956
- items: generateMeasuresItems(20),
3957
- },
3958
- {
3959
- localIdentifier: "attribute",
3960
- items: generateAttributeItems(20),
3961
- },
3962
- {
3963
- localIdentifier: "columns",
3964
- items: [
3965
- {
3966
- localIdentifier: "c1",
3967
- type: "attribute",
3968
- aggregation: null,
3969
- attribute: "column.attribute",
3970
- dfRef: uriRef("c1/df"),
3971
- },
3972
- ],
3973
- },
3974
- ],
3975
- filters: {
3976
- localIdentifier: "filters",
3977
- items: [],
3978
- },
3979
- properties: {
3980
- sortItems: [],
3981
- },
3982
- };
3983
- export const tableWith20MeasuresAndDerivedMeasuresNoRowsAnd1Column = {
3984
- buckets: [
3985
- {
3986
- localIdentifier: "measures",
3987
- items: [...generateMeasuresItems(20), ...generateDerivedMeasuresItems(20)],
3988
- },
3989
- {
3990
- localIdentifier: "attribute",
3991
- items: [],
3992
- },
3993
- {
3994
- localIdentifier: "columns",
3995
- items: [
3996
- {
3997
- localIdentifier: "c1",
3998
- type: "attribute",
3999
- aggregation: null,
4000
- attribute: "column.attribute",
4001
- dfRef: uriRef("c1/df"),
4002
- },
4003
- ],
4004
- },
4005
- ],
4006
- filters: {
4007
- localIdentifier: "filters",
4008
- items: [],
4009
- },
4010
- properties: {
4011
- sortItems: [],
4012
- },
4013
- };
4014
- export const tableWith50MeasuresAndDerivedMeasuresNoRowsNoColumns = {
4015
- buckets: [
4016
- {
4017
- localIdentifier: "measures",
4018
- items: [...generateMeasuresItems(50), ...generateDerivedMeasuresItems(50)],
4019
- },
4020
- {
4021
- localIdentifier: "attribute",
4022
- items: [],
4023
- },
4024
- {
4025
- localIdentifier: "columns",
4026
- items: [],
4027
- },
4028
- ],
4029
- filters: {
4030
- localIdentifier: "filters",
4031
- items: [overTimeComparisonDateItem],
4032
- },
4033
- properties: {
4034
- sortItems: [],
4035
- },
4036
- };
4037
- export const thresholdMeasure = {
4038
- localIdentifier: "thresholdMeasure",
4039
- type: "metric",
4040
- aggregation: null,
4041
- attribute: "aazb6kroa3iC",
4042
- showInPercent: null,
4043
- showOnSecondaryAxis: null,
4044
- isThresholdMeasure: true,
4045
- };