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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/NOTICE +92923 -17333
  2. package/esm/dataLoaders/dataLoaders.mock.d.ts +4 -0
  3. package/esm/dataLoaders/dataLoaders.mock.d.ts.map +1 -0
  4. package/esm/dataLoaders/dataLoaders.mock.js +52 -0
  5. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.d.ts +4 -0
  6. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.d.ts.map +1 -0
  7. package/esm/internal/components/attributeHierarchies/attributeHierarchyDialog/utils.fixture.js +6487 -0
  8. package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.d.ts +3 -0
  9. package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.d.ts.map +1 -0
  10. package/esm/internal/components/configurationControls/colors/coloredItemsList/mock.js +139 -0
  11. package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
  12. package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  13. package/esm/internal/components/pluggableVisualizations/areaChart/getInsightWithDrillDownAppliedMock.js +119 -0
  14. package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.d.ts +7 -0
  15. package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  16. package/esm/internal/components/pluggableVisualizations/baseChart/getInsightWithDrillDownAppliedMock.js +98 -0
  17. package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
  18. package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  19. package/esm/internal/components/pluggableVisualizations/bulletChart/getInsightWithDrillDownAppliedMock.js +110 -0
  20. package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.d.ts +45 -0
  21. package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.d.ts.map +1 -0
  22. package/esm/internal/components/pluggableVisualizations/geoCommon/viewportSync.test.helpers.js +48 -0
  23. package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.d.ts +13 -0
  24. package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  25. package/esm/internal/components/pluggableVisualizations/getInsightWithDrillDownAppliedMock.js +132 -0
  26. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts +8 -0
  27. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  28. package/esm/internal/components/pluggableVisualizations/heatMap/getInsightWithDrillDownAppliedMock.js +116 -0
  29. package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.d.ts +8 -0
  30. package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  31. package/esm/internal/components/pluggableVisualizations/lineChart/getInsightWithDrillDownAppliedMock.js +119 -0
  32. package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.d.ts +13 -0
  33. package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  34. package/esm/internal/components/pluggableVisualizations/pivotTable/getInsightWithDrillDownAppliedMock.js +229 -0
  35. package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.d.ts +5 -0
  36. package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.d.ts.map +1 -0
  37. package/esm/internal/components/pluggableVisualizations/pivotTable/mockReferencePoint.js +92 -0
  38. package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.d.ts +9 -0
  39. package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.d.ts.map +1 -0
  40. package/esm/internal/components/pluggableVisualizations/pivotTable/sortMocks.js +19 -0
  41. package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.d.ts +16 -0
  42. package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.d.ts.map +1 -0
  43. package/esm/internal/components/pluggableVisualizations/pivotTable/widthItemsMock.js +186 -0
  44. package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.d.ts +16 -0
  45. package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.d.ts.map +1 -0
  46. package/esm/internal/components/pluggableVisualizations/pluggableVisualizations.test.helpers.js +39 -0
  47. package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts +10 -0
  48. package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.d.ts.map +1 -0
  49. package/esm/internal/components/pluggableVisualizations/reverseAndTrimIntersectionMock.js +94 -0
  50. package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.d.ts +8 -0
  51. package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.d.ts.map +1 -0
  52. package/esm/internal/components/pluggableVisualizations/treeMap/getInsightWithDrillDownAppliedMock.js +119 -0
  53. package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.d.ts +17 -0
  54. package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.d.ts.map +1 -0
  55. package/esm/internal/components/pluggableVisualizations/visConstruct.fixture.js +18 -0
  56. package/esm/internal/index.d.ts +1 -1
  57. package/esm/internal/index.d.ts.map +1 -1
  58. package/esm/internal/index.js +1 -1
  59. package/esm/internal/mocks/referencePointMocks.d.ts +187 -0
  60. package/esm/internal/mocks/referencePointMocks.d.ts.map +1 -0
  61. package/esm/internal/mocks/referencePointMocks.js +4045 -0
  62. package/esm/internal/mocks/testColorHelper.d.ts +19 -0
  63. package/esm/internal/mocks/testColorHelper.d.ts.map +1 -0
  64. package/esm/internal/mocks/testColorHelper.js +65 -0
  65. package/esm/internal/mocks/testMocks.d.ts +24 -0
  66. package/esm/internal/mocks/testMocks.d.ts.map +1 -0
  67. package/esm/internal/mocks/testMocks.js +739 -0
  68. package/esm/internal/mocks/uiConfigMocks.d.ts +17 -0
  69. package/esm/internal/mocks/uiConfigMocks.d.ts.map +1 -0
  70. package/esm/internal/mocks/uiConfigMocks.js +125 -0
  71. package/esm/internal/mocks/visualizationObjectMocks.d.ts +7 -0
  72. package/esm/internal/mocks/visualizationObjectMocks.d.ts.map +1 -0
  73. package/esm/internal/mocks/visualizationObjectMocks.js +49 -0
  74. package/esm/internal/testDataProvider.d.ts +16 -0
  75. package/esm/internal/testDataProvider.d.ts.map +1 -0
  76. package/esm/internal/testDataProvider.js +36 -0
  77. package/esm/internal/testIntlProvider.d.ts.map +1 -0
  78. package/esm/internal/{tests/testIntlProvider.js → testIntlProvider.js} +2 -2
  79. package/package.json +21 -21
  80. package/esm/internal/tests/testIntlProvider.d.ts.map +0 -1
  81. /package/esm/internal/{tests/testIntlProvider.d.ts → testIntlProvider.d.ts} +0 -0
@@ -0,0 +1,739 @@
1
+ // (C) 2019-2026 GoodData Corporation
2
+ import { newAttribute, } from "@gooddata/sdk-model";
3
+ import { BucketNames } from "@gooddata/sdk-ui";
4
+ //
5
+ // Test insight definitions
6
+ //
7
+ export const EMPTY_TITLE = "empty_title";
8
+ export const emptyInsight = {
9
+ insight: {
10
+ visualizationUrl: "column",
11
+ buckets: [],
12
+ filters: [],
13
+ sorts: [],
14
+ properties: {},
15
+ title: "Empty insight",
16
+ },
17
+ };
18
+ export const dummyInsight = {
19
+ insight: {
20
+ visualizationUrl: "column",
21
+ buckets: [
22
+ {
23
+ localIdentifier: "attribute",
24
+ items: [newAttribute("attr1", (a) => a.localId("a1"))],
25
+ },
26
+ ],
27
+ filters: [],
28
+ sorts: [],
29
+ properties: {},
30
+ title: "Dummy insight with single attribute",
31
+ },
32
+ };
33
+ export const insightWithSinglePrimaryAndSecondaryMeasureNoIdentifier = {
34
+ insight: {
35
+ visualizationUrl: "local:headline",
36
+ buckets: [
37
+ {
38
+ localIdentifier: BucketNames.MEASURES,
39
+ items: [
40
+ {
41
+ measure: {
42
+ localIdentifier: "m1",
43
+ definition: {
44
+ measureDefinition: {
45
+ item: {
46
+ uri: "/gdc/md/project/obj/1269",
47
+ },
48
+ },
49
+ },
50
+ },
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ localIdentifier: BucketNames.SECONDARY_MEASURES,
56
+ items: [
57
+ {
58
+ measure: {
59
+ localIdentifier: "m2",
60
+ definition: {
61
+ measureDefinition: {
62
+ item: {
63
+ uri: "/gdc/md/project/obj/1279",
64
+ },
65
+ },
66
+ },
67
+ },
68
+ },
69
+ ],
70
+ },
71
+ ],
72
+ filters: [],
73
+ sorts: [],
74
+ properties: {},
75
+ identifier: "test-insight-primary-secondary",
76
+ uri: "/gdc/md/project/obj/1234",
77
+ ref: {
78
+ identifier: "test-insight-primary-secondary",
79
+ },
80
+ title: "Dummy insight with single primary and secondary measure",
81
+ },
82
+ };
83
+ export const insightWithSinglePrimaryAndSecondaryMeasure = {
84
+ insight: {
85
+ visualizationUrl: "local:headline",
86
+ buckets: [
87
+ {
88
+ localIdentifier: BucketNames.MEASURES,
89
+ items: [
90
+ {
91
+ measure: {
92
+ localIdentifier: "m1",
93
+ definition: {
94
+ measureDefinition: {
95
+ item: {
96
+ uri: "/gdc/md/project/obj/1269",
97
+ },
98
+ },
99
+ },
100
+ },
101
+ },
102
+ ],
103
+ },
104
+ {
105
+ localIdentifier: BucketNames.SECONDARY_MEASURES,
106
+ items: [
107
+ {
108
+ measure: {
109
+ localIdentifier: "m2",
110
+ definition: {
111
+ measureDefinition: {
112
+ item: {
113
+ uri: "/gdc/md/project/obj/1279",
114
+ },
115
+ },
116
+ },
117
+ },
118
+ },
119
+ ],
120
+ },
121
+ ],
122
+ filters: [],
123
+ sorts: [],
124
+ properties: {},
125
+ identifier: "dummy_insight",
126
+ uri: "/gdc/md/project/obj/1234",
127
+ ref: {
128
+ identifier: "dummy_insight",
129
+ },
130
+ title: "Dummy insight with single primary and secondary measure",
131
+ },
132
+ };
133
+ export const insightWithStacking = {
134
+ insight: {
135
+ visualizationUrl: "column",
136
+ buckets: [
137
+ {
138
+ localIdentifier: BucketNames.MEASURES,
139
+ items: [
140
+ {
141
+ measure: {
142
+ localIdentifier: "m1",
143
+ definition: {
144
+ measureDefinition: {
145
+ item: {
146
+ uri: "/gdc/md/project/obj/1280",
147
+ },
148
+ },
149
+ },
150
+ },
151
+ },
152
+ ],
153
+ },
154
+ {
155
+ localIdentifier: BucketNames.VIEW,
156
+ items: [
157
+ {
158
+ attribute: {
159
+ localIdentifier: "a1",
160
+ displayForm: {
161
+ uri: "/gdc/md/project/obj/1027",
162
+ },
163
+ },
164
+ },
165
+ ],
166
+ },
167
+ {
168
+ localIdentifier: BucketNames.STACK,
169
+ items: [
170
+ {
171
+ attribute: {
172
+ localIdentifier: "a2",
173
+ displayForm: {
174
+ uri: "/gdc/md/project/obj/1028",
175
+ },
176
+ },
177
+ },
178
+ ],
179
+ },
180
+ ],
181
+ filters: [],
182
+ sorts: [],
183
+ properties: {},
184
+ title: "Dummy insight with single attribute",
185
+ },
186
+ };
187
+ export const insightWithSingleMeasureAndTwoViewBy = {
188
+ insight: {
189
+ visualizationUrl: "column",
190
+ buckets: [
191
+ {
192
+ localIdentifier: BucketNames.MEASURES,
193
+ items: [
194
+ {
195
+ measure: {
196
+ localIdentifier: "m1",
197
+ definition: {
198
+ measureDefinition: {
199
+ item: {
200
+ uri: "/gdc/md/project/obj/1280",
201
+ },
202
+ },
203
+ },
204
+ },
205
+ },
206
+ ],
207
+ },
208
+ {
209
+ localIdentifier: BucketNames.VIEW,
210
+ items: [
211
+ {
212
+ attribute: {
213
+ localIdentifier: "a1",
214
+ displayForm: {
215
+ uri: "/gdc/md/project/obj/1027",
216
+ },
217
+ },
218
+ },
219
+ {
220
+ attribute: {
221
+ localIdentifier: "a2",
222
+ displayForm: {
223
+ uri: "/gdc/md/project/obj/1028",
224
+ },
225
+ },
226
+ },
227
+ ],
228
+ },
229
+ {
230
+ localIdentifier: BucketNames.STACK,
231
+ items: [],
232
+ },
233
+ ],
234
+ filters: [],
235
+ sorts: [],
236
+ properties: {},
237
+ title: "Dummy insight with two viewby attributes",
238
+ },
239
+ };
240
+ export const insightWithTwoMeasuresAndViewBy = {
241
+ insight: {
242
+ visualizationUrl: "column",
243
+ buckets: [
244
+ {
245
+ localIdentifier: BucketNames.MEASURES,
246
+ items: [
247
+ {
248
+ measure: {
249
+ localIdentifier: "m1",
250
+ definition: {
251
+ measureDefinition: {
252
+ item: {
253
+ uri: "/gdc/md/project/obj/1279",
254
+ },
255
+ },
256
+ },
257
+ },
258
+ },
259
+ {
260
+ measure: {
261
+ localIdentifier: "m2",
262
+ definition: {
263
+ measureDefinition: {
264
+ item: {
265
+ uri: "/gdc/md/project/obj/1280",
266
+ },
267
+ },
268
+ },
269
+ },
270
+ },
271
+ ],
272
+ },
273
+ {
274
+ localIdentifier: BucketNames.VIEW,
275
+ items: [
276
+ {
277
+ attribute: {
278
+ localIdentifier: "a1",
279
+ displayForm: {
280
+ uri: "/gdc/md/project/obj/1027",
281
+ },
282
+ },
283
+ },
284
+ ],
285
+ },
286
+ {
287
+ localIdentifier: BucketNames.STACK,
288
+ items: [],
289
+ },
290
+ ],
291
+ filters: [],
292
+ sorts: [],
293
+ properties: {},
294
+ title: "Dummy insight with two viewby attributes",
295
+ },
296
+ };
297
+ export const insightWithTwoMeasuresAndTwoViewBy = {
298
+ insight: {
299
+ visualizationUrl: "column",
300
+ buckets: [
301
+ {
302
+ localIdentifier: BucketNames.MEASURES,
303
+ items: [
304
+ {
305
+ measure: {
306
+ localIdentifier: "m1",
307
+ definition: {
308
+ measureDefinition: {
309
+ item: {
310
+ uri: "/gdc/md/project/obj/1279",
311
+ },
312
+ },
313
+ },
314
+ },
315
+ },
316
+ {
317
+ measure: {
318
+ localIdentifier: "m2",
319
+ definition: {
320
+ measureDefinition: {
321
+ item: {
322
+ uri: "/gdc/md/project/obj/1280",
323
+ },
324
+ },
325
+ },
326
+ },
327
+ },
328
+ ],
329
+ },
330
+ {
331
+ localIdentifier: BucketNames.VIEW,
332
+ items: [
333
+ {
334
+ attribute: {
335
+ localIdentifier: "a1",
336
+ displayForm: {
337
+ uri: "/gdc/md/project/obj/1027",
338
+ },
339
+ },
340
+ },
341
+ {
342
+ attribute: {
343
+ localIdentifier: "a2",
344
+ displayForm: {
345
+ uri: "/gdc/md/project/obj/1028",
346
+ },
347
+ },
348
+ },
349
+ ],
350
+ },
351
+ {
352
+ localIdentifier: BucketNames.STACK,
353
+ items: [],
354
+ },
355
+ ],
356
+ filters: [],
357
+ sorts: [],
358
+ properties: {},
359
+ title: "Dummy insight with two viewby attributes",
360
+ },
361
+ };
362
+ export const insightWithSingleMeasure = {
363
+ insight: {
364
+ visualizationUrl: "column",
365
+ buckets: [
366
+ {
367
+ localIdentifier: BucketNames.MEASURES,
368
+ items: [
369
+ {
370
+ measure: {
371
+ localIdentifier: "m1",
372
+ definition: {
373
+ measureDefinition: {
374
+ item: {
375
+ uri: "/gdc/md/project/obj/1279",
376
+ },
377
+ },
378
+ },
379
+ },
380
+ },
381
+ ],
382
+ },
383
+ ],
384
+ filters: [],
385
+ sorts: [],
386
+ properties: {},
387
+ title: "Dummy insight with single measure",
388
+ },
389
+ };
390
+ export const insightWithSingleSecondaryMeasure = {
391
+ insight: {
392
+ visualizationUrl: "column",
393
+ buckets: [
394
+ {
395
+ localIdentifier: BucketNames.SECONDARY_MEASURES,
396
+ items: [
397
+ {
398
+ measure: {
399
+ localIdentifier: "m1",
400
+ definition: {
401
+ measureDefinition: {
402
+ item: {
403
+ uri: "/gdc/md/project/obj/1279",
404
+ },
405
+ },
406
+ },
407
+ },
408
+ },
409
+ ],
410
+ },
411
+ ],
412
+ filters: [],
413
+ sorts: [],
414
+ properties: {},
415
+ title: "Dummy insight with single measure",
416
+ },
417
+ };
418
+ export const insightWithSingleMeasureAndViewBy = {
419
+ insight: {
420
+ visualizationUrl: "column",
421
+ buckets: [
422
+ {
423
+ localIdentifier: BucketNames.MEASURES,
424
+ items: [
425
+ {
426
+ measure: {
427
+ localIdentifier: "m1",
428
+ definition: {
429
+ measureDefinition: {
430
+ item: {
431
+ uri: "/gdc/md/project/obj/1279",
432
+ },
433
+ },
434
+ },
435
+ },
436
+ },
437
+ ],
438
+ },
439
+ {
440
+ localIdentifier: BucketNames.VIEW,
441
+ items: [
442
+ {
443
+ attribute: {
444
+ localIdentifier: "a1",
445
+ displayForm: {
446
+ uri: "/gdc/md/project/obj/1027",
447
+ },
448
+ },
449
+ },
450
+ ],
451
+ },
452
+ ],
453
+ filters: [],
454
+ sorts: [],
455
+ properties: {},
456
+ title: "Dummy insight with single measure",
457
+ },
458
+ };
459
+ export const insightWithSingleMeasureAndViewByAndStack = {
460
+ insight: {
461
+ visualizationUrl: "column",
462
+ buckets: [
463
+ {
464
+ localIdentifier: BucketNames.MEASURES,
465
+ items: [
466
+ {
467
+ measure: {
468
+ localIdentifier: "m1",
469
+ definition: {
470
+ measureDefinition: {
471
+ item: {
472
+ uri: "/gdc/md/project/obj/1279",
473
+ },
474
+ },
475
+ },
476
+ },
477
+ },
478
+ ],
479
+ },
480
+ {
481
+ localIdentifier: BucketNames.VIEW,
482
+ items: [
483
+ {
484
+ attribute: {
485
+ localIdentifier: "a1",
486
+ displayForm: {
487
+ uri: "/gdc/md/project/obj/1027",
488
+ },
489
+ },
490
+ },
491
+ ],
492
+ },
493
+ {
494
+ localIdentifier: BucketNames.STACK,
495
+ items: [
496
+ {
497
+ attribute: {
498
+ localIdentifier: "a2",
499
+ displayForm: {
500
+ uri: "/gdc/md/project/obj/1028",
501
+ },
502
+ },
503
+ },
504
+ ],
505
+ },
506
+ ],
507
+ filters: [],
508
+ sorts: [],
509
+ properties: {},
510
+ title: "Dummy insight with single measure",
511
+ },
512
+ };
513
+ export const insightWithSingleMeasureAndStack = {
514
+ insight: {
515
+ visualizationUrl: "column",
516
+ buckets: [
517
+ {
518
+ localIdentifier: BucketNames.MEASURES,
519
+ items: [
520
+ {
521
+ measure: {
522
+ localIdentifier: "m1",
523
+ definition: {
524
+ measureDefinition: {
525
+ item: {
526
+ uri: "/gdc/md/project/obj/1279",
527
+ },
528
+ },
529
+ },
530
+ },
531
+ },
532
+ ],
533
+ },
534
+ {
535
+ localIdentifier: BucketNames.STACK,
536
+ items: [
537
+ {
538
+ attribute: {
539
+ localIdentifier: "a2",
540
+ displayForm: {
541
+ uri: "/gdc/md/project/obj/1028",
542
+ },
543
+ },
544
+ },
545
+ ],
546
+ },
547
+ ],
548
+ filters: [],
549
+ sorts: [],
550
+ properties: {},
551
+ title: "Dummy insight with single measure",
552
+ },
553
+ };
554
+ export const insightWithSingleAttribute = {
555
+ insight: {
556
+ visualizationUrl: "local:column",
557
+ buckets: [
558
+ {
559
+ localIdentifier: BucketNames.VIEW,
560
+ items: [
561
+ {
562
+ attribute: {
563
+ localIdentifier: "a1",
564
+ displayForm: {
565
+ uri: "/gdc/md/project/obj/1027",
566
+ },
567
+ },
568
+ },
569
+ ],
570
+ },
571
+ ],
572
+ filters: [],
573
+ sorts: [],
574
+ properties: {},
575
+ title: "Dummy insight with single measure",
576
+ },
577
+ };
578
+ export const insightWithNoMeasureAndOneAttribute = {
579
+ insight: {
580
+ visualizationUrl: "table",
581
+ buckets: [
582
+ {
583
+ localIdentifier: BucketNames.ATTRIBUTE,
584
+ items: [
585
+ {
586
+ attribute: {
587
+ localIdentifier: "a1",
588
+ displayForm: {
589
+ uri: "/gdc/md/project/obj/1028",
590
+ },
591
+ },
592
+ },
593
+ ],
594
+ },
595
+ ],
596
+ filters: [],
597
+ sorts: [],
598
+ properties: {},
599
+ title: "Dummy insight with no measure and one attribute",
600
+ },
601
+ };
602
+ export const insightWithOneColumnAndOneAttribute = {
603
+ insight: {
604
+ visualizationUrl: "table",
605
+ buckets: [
606
+ {
607
+ localIdentifier: BucketNames.ATTRIBUTE,
608
+ items: [
609
+ {
610
+ attribute: {
611
+ localIdentifier: "a1",
612
+ displayForm: {
613
+ uri: "/gdc/md/project/obj/1028",
614
+ },
615
+ },
616
+ },
617
+ ],
618
+ },
619
+ {
620
+ localIdentifier: BucketNames.COLUMNS,
621
+ items: [
622
+ {
623
+ attribute: {
624
+ localIdentifier: "a1_clone",
625
+ displayForm: {
626
+ uri: "/gdc/md/project/obj/1028",
627
+ },
628
+ },
629
+ },
630
+ ],
631
+ },
632
+ ],
633
+ filters: [],
634
+ sorts: [],
635
+ properties: {},
636
+ title: "Dummy insight with one column and one attribute",
637
+ },
638
+ };
639
+ export const insightWithSingleMeasureAndOneAttribute = {
640
+ insight: {
641
+ visualizationUrl: "table",
642
+ buckets: [
643
+ {
644
+ localIdentifier: BucketNames.MEASURES,
645
+ items: [
646
+ {
647
+ measure: {
648
+ localIdentifier: "m1",
649
+ definition: {
650
+ measureDefinition: {
651
+ item: {
652
+ uri: "/gdc/md/project/obj/1279",
653
+ },
654
+ },
655
+ },
656
+ },
657
+ },
658
+ ],
659
+ },
660
+ {
661
+ localIdentifier: BucketNames.ATTRIBUTE,
662
+ items: [
663
+ {
664
+ attribute: {
665
+ localIdentifier: "a1",
666
+ displayForm: {
667
+ uri: "/gdc/md/project/obj/1028",
668
+ },
669
+ },
670
+ },
671
+ ],
672
+ },
673
+ ],
674
+ filters: [],
675
+ sorts: [],
676
+ properties: {},
677
+ title: "Dummy insight with single measure and one attribute",
678
+ },
679
+ };
680
+ export const insightWithNoMeasureAndOneColumn = {
681
+ insight: {
682
+ visualizationUrl: "table",
683
+ buckets: [
684
+ {
685
+ localIdentifier: BucketNames.COLUMNS,
686
+ items: [
687
+ {
688
+ attribute: {
689
+ localIdentifier: "a1",
690
+ displayForm: {
691
+ uri: "/gdc/md/project/obj/1028",
692
+ },
693
+ },
694
+ },
695
+ ],
696
+ },
697
+ ],
698
+ filters: [],
699
+ sorts: [],
700
+ properties: {},
701
+ title: "Dummy insight with no measure and one column",
702
+ },
703
+ };
704
+ //
705
+ // Visualization classes
706
+ //
707
+ export const dummyTableVisualizationClass = {
708
+ visualizationClass: {
709
+ identifier: "tableVis",
710
+ uri: "test",
711
+ url: "local:table",
712
+ title: EMPTY_TITLE,
713
+ icon: "",
714
+ iconSelected: "",
715
+ checksum: "",
716
+ },
717
+ };
718
+ export const dummyColumnVisualizationClass = {
719
+ visualizationClass: {
720
+ identifier: "columnVis",
721
+ uri: "test",
722
+ title: EMPTY_TITLE,
723
+ url: "local:column",
724
+ icon: "",
725
+ iconSelected: "",
726
+ checksum: "",
727
+ },
728
+ };
729
+ export const dummyUnknownTypeVisualizationClass = {
730
+ visualizationClass: {
731
+ title: EMPTY_TITLE,
732
+ identifier: "fun",
733
+ uri: "test",
734
+ url: "unknown",
735
+ icon: "",
736
+ iconSelected: "",
737
+ checksum: "",
738
+ },
739
+ };