@dhis2/analytics 26.13.4 → 27.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.visTypeIcons = exports.visTypeDisplayNames = exports.isYearOverYear = exports.isVerticalType = exports.isTwoCategoryChartType = exports.isStacked = exports.isSingleValue = exports.isOutlierTable = exports.isMultiType = exports.isLegendSetType = exports.isDualAxisType = exports.isColumnBasedType = exports.getDisplayNameByVisType = exports.defaultVisType = exports.VIS_TYPE_YEAR_OVER_YEAR_LINE = exports.VIS_TYPE_YEAR_OVER_YEAR_COLUMN = exports.VIS_TYPE_STACKED_COLUMN = exports.VIS_TYPE_STACKED_BAR = exports.VIS_TYPE_STACKED_AREA = exports.VIS_TYPE_SINGLE_VALUE = exports.VIS_TYPE_SCATTER = exports.VIS_TYPE_RADAR = exports.VIS_TYPE_PIVOT_TABLE = exports.VIS_TYPE_PIE = exports.VIS_TYPE_OUTLIER_TABLE = exports.VIS_TYPE_LINE_LIST = exports.VIS_TYPE_LINE = exports.VIS_TYPE_GROUP_CHARTS = exports.VIS_TYPE_GROUP_ALL = exports.VIS_TYPE_GAUGE = exports.VIS_TYPE_COLUMN = exports.VIS_TYPE_BUBBLE = exports.VIS_TYPE_BAR = exports.VIS_TYPE_AREA = void 0;
6
+ exports.visTypeIcons = exports.visTypeDisplayNames = exports.isYearOverYear = exports.isVerticalType = exports.isTwoCategoryChartType = exports.isStacked = exports.isSingleValue = exports.isOutlierTable = exports.isMultiType = exports.isLegendSetType = exports.isDualAxisType = exports.isColumnBasedType = exports.getDisplayNameByVisType = exports.getApiEndpointByVisType = exports.defaultVisType = exports.VIS_TYPE_YEAR_OVER_YEAR_LINE = exports.VIS_TYPE_YEAR_OVER_YEAR_COLUMN = exports.VIS_TYPE_STACKED_COLUMN = exports.VIS_TYPE_STACKED_BAR = exports.VIS_TYPE_STACKED_AREA = exports.VIS_TYPE_SINGLE_VALUE = exports.VIS_TYPE_SCATTER = exports.VIS_TYPE_RADAR = exports.VIS_TYPE_PIVOT_TABLE = exports.VIS_TYPE_PIE = exports.VIS_TYPE_OUTLIER_TABLE = exports.VIS_TYPE_MAP = exports.VIS_TYPE_LINE_LIST = exports.VIS_TYPE_LINE = exports.VIS_TYPE_GROUP_CHARTS = exports.VIS_TYPE_GROUP_ALL = exports.VIS_TYPE_GAUGE = exports.VIS_TYPE_COLUMN = exports.VIS_TYPE_BUBBLE = exports.VIS_TYPE_BAR = exports.VIS_TYPE_AREA = void 0;
7
7
  var _ui = require("@dhis2/ui");
8
8
  var _index = _interopRequireDefault(require("../locales/index.js"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -27,6 +27,7 @@ const VIS_TYPE_BUBBLE = exports.VIS_TYPE_BUBBLE = 'BUBBLE';
27
27
  const VIS_TYPE_GROUP_ALL = exports.VIS_TYPE_GROUP_ALL = 'ALL';
28
28
  const VIS_TYPE_GROUP_CHARTS = exports.VIS_TYPE_GROUP_CHARTS = 'CHARTS';
29
29
  const VIS_TYPE_OUTLIER_TABLE = exports.VIS_TYPE_OUTLIER_TABLE = 'OUTLIER_TABLE';
30
+ const VIS_TYPE_MAP = exports.VIS_TYPE_MAP = 'MAP';
30
31
  const visTypeDisplayNames = exports.visTypeDisplayNames = {
31
32
  [VIS_TYPE_PIVOT_TABLE]: _index.default.t('Pivot table'),
32
33
  [VIS_TYPE_AREA]: _index.default.t('Area'),
@@ -46,7 +47,8 @@ const visTypeDisplayNames = exports.visTypeDisplayNames = {
46
47
  [VIS_TYPE_SINGLE_VALUE]: _index.default.t('Single value'),
47
48
  [VIS_TYPE_OUTLIER_TABLE]: _index.default.t('Outlier table'),
48
49
  [VIS_TYPE_GROUP_ALL]: _index.default.t('All types'),
49
- [VIS_TYPE_GROUP_CHARTS]: _index.default.t('All charts')
50
+ [VIS_TYPE_GROUP_CHARTS]: _index.default.t('All charts'),
51
+ [VIS_TYPE_MAP]: _index.default.t('Map')
50
52
  };
51
53
  const visTypeIcons = exports.visTypeIcons = {
52
54
  [VIS_TYPE_PIVOT_TABLE]: _ui.IconVisualizationPivotTable24,
@@ -67,6 +69,26 @@ const visTypeIcons = exports.visTypeIcons = {
67
69
  [VIS_TYPE_SINGLE_VALUE]: _ui.IconVisualizationSingleValue24,
68
70
  [VIS_TYPE_OUTLIER_TABLE]: _ui.IconVisualizationOutlierTable24
69
71
  };
72
+ const visTypeApiEndpoints = {
73
+ [VIS_TYPE_PIVOT_TABLE]: 'visualizations',
74
+ [VIS_TYPE_AREA]: 'visualizations',
75
+ [VIS_TYPE_STACKED_AREA]: 'visualizations',
76
+ [VIS_TYPE_BAR]: 'visualizations',
77
+ [VIS_TYPE_STACKED_BAR]: 'visualizations',
78
+ [VIS_TYPE_COLUMN]: 'visualizations',
79
+ [VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: 'visualizations',
80
+ [VIS_TYPE_STACKED_COLUMN]: 'visualizations',
81
+ [VIS_TYPE_GAUGE]: 'visualizations',
82
+ [VIS_TYPE_LINE]: 'visualizations',
83
+ [VIS_TYPE_YEAR_OVER_YEAR_LINE]: 'visualizations',
84
+ [VIS_TYPE_PIE]: 'visualizations',
85
+ [VIS_TYPE_RADAR]: 'visualizations',
86
+ [VIS_TYPE_SCATTER]: 'visualizations',
87
+ [VIS_TYPE_SINGLE_VALUE]: 'visualizations',
88
+ [VIS_TYPE_OUTLIER_TABLE]: 'visualizations',
89
+ [VIS_TYPE_LINE_LIST]: 'eventVisualizations',
90
+ [VIS_TYPE_MAP]: 'maps'
91
+ };
70
92
  const getDisplayNameByVisType = visType => {
71
93
  const displayName = visTypeDisplayNames[visType];
72
94
  if (!displayName) {
@@ -75,6 +97,14 @@ const getDisplayNameByVisType = visType => {
75
97
  return displayName;
76
98
  };
77
99
  exports.getDisplayNameByVisType = getDisplayNameByVisType;
100
+ const getApiEndpointByVisType = visType => {
101
+ const apiEndpoint = visTypeApiEndpoints[visType];
102
+ if (!apiEndpoint) {
103
+ throw new Error(`${visType} is not a valid visualization type`);
104
+ }
105
+ return apiEndpoint;
106
+ };
107
+ exports.getApiEndpointByVisType = getApiEndpointByVisType;
78
108
  const stackedTypes = [VIS_TYPE_STACKED_COLUMN, VIS_TYPE_STACKED_BAR, VIS_TYPE_STACKED_AREA];
79
109
  const yearOverYearTypes = [VIS_TYPE_YEAR_OVER_YEAR_LINE, VIS_TYPE_YEAR_OVER_YEAR_COLUMN];
80
110
  const dualAxisTypes = [VIS_TYPE_COLUMN, VIS_TYPE_BAR, VIS_TYPE_LINE, VIS_TYPE_AREA];
@@ -195,10 +195,33 @@ export const SimpleColumn = (_, _ref6) => {
195
195
  SimpleColumn.story = {
196
196
  name: 'simple - column %'
197
197
  };
198
- export const SimpleDataAsFilter = (_, _ref7) => {
198
+ export const SimpleRow = (_, _ref7) => {
199
199
  let {
200
200
  pivotTableOptions
201
201
  } = _ref7;
202
+ const visualization = {
203
+ ...diseaseWeeksVisualization,
204
+ ...visualizationReset,
205
+ ...pivotTableOptions,
206
+ numberType: NUMBER_TYPE_ROW_PERCENTAGE
207
+ };
208
+ return /*#__PURE__*/React.createElement("div", {
209
+ style: {
210
+ width: 800,
211
+ height: 600
212
+ }
213
+ }, /*#__PURE__*/React.createElement(PivotTable, {
214
+ data: diseaseWeeksData,
215
+ visualization: visualization
216
+ }));
217
+ };
218
+ SimpleRow.story = {
219
+ name: 'simple - row %'
220
+ };
221
+ export const SimpleDataAsFilter = (_, _ref8) => {
222
+ let {
223
+ pivotTableOptions
224
+ } = _ref8;
202
225
  const visualization = {
203
226
  ...simpleVisualization,
204
227
  ...visualizationReset,
@@ -219,10 +242,10 @@ export const SimpleDataAsFilter = (_, _ref7) => {
219
242
  SimpleDataAsFilter.story = {
220
243
  name: 'simple - data as filter'
221
244
  };
222
- export const SimpleNoColumns = (_, _ref8) => {
245
+ export const SimpleNoColumns = (_, _ref9) => {
223
246
  let {
224
247
  pivotTableOptions
225
- } = _ref8;
248
+ } = _ref9;
226
249
  const visualization = {
227
250
  ...simpleVisualization,
228
251
  ...visualizationReset,
@@ -247,10 +270,10 @@ export const SimpleNoColumns = (_, _ref8) => {
247
270
  SimpleNoColumns.story = {
248
271
  name: 'simple - no columns'
249
272
  };
250
- export const SimpleNoColumnsSingleCell = (_, _ref9) => {
273
+ export const SimpleNoColumnsSingleCell = (_, _ref10) => {
251
274
  let {
252
275
  pivotTableOptions
253
- } = _ref9;
276
+ } = _ref10;
254
277
  const visualization = {
255
278
  ...simpleVisualization,
256
279
  ...visualizationReset,
@@ -273,10 +296,10 @@ export const SimpleNoColumnsSingleCell = (_, _ref9) => {
273
296
  SimpleNoColumnsSingleCell.story = {
274
297
  name: 'simple - no columns (single cell)'
275
298
  };
276
- export const SimpleNoColumnsDeep = (_, _ref10) => {
299
+ export const SimpleNoColumnsDeep = (_, _ref11) => {
277
300
  let {
278
301
  pivotTableOptions
279
- } = _ref10;
302
+ } = _ref11;
280
303
  const visualization = {
281
304
  ...simpleVisualization,
282
305
  ...visualizationReset,
@@ -300,10 +323,10 @@ export const SimpleNoColumnsDeep = (_, _ref10) => {
300
323
  SimpleNoColumnsDeep.story = {
301
324
  name: 'simple - no columns (deep)'
302
325
  };
303
- export const SimpleNoColumnsLabel = (_, _ref11) => {
326
+ export const SimpleNoColumnsLabel = (_, _ref12) => {
304
327
  let {
305
328
  pivotTableOptions
306
- } = _ref11;
329
+ } = _ref12;
307
330
  const visualization = {
308
331
  ...simpleVisualization,
309
332
  ...visualizationReset,
@@ -329,10 +352,10 @@ export const SimpleNoColumnsLabel = (_, _ref11) => {
329
352
  SimpleNoColumnsLabel.story = {
330
353
  name: 'simple - no columns (label)'
331
354
  };
332
- export const SimpleNoRowsSmall = (_, _ref12) => {
355
+ export const SimpleNoRowsSmall = (_, _ref13) => {
333
356
  let {
334
357
  pivotTableOptions
335
- } = _ref12;
358
+ } = _ref13;
336
359
  const visualization = {
337
360
  ...simpleVisualization,
338
361
  ...visualizationReset,
@@ -358,10 +381,10 @@ export const SimpleNoRowsSmall = (_, _ref12) => {
358
381
  SimpleNoRowsSmall.story = {
359
382
  name: 'simple - no rows (small)'
360
383
  };
361
- export const SimpleNoRowsLarge = (_, _ref13) => {
384
+ export const SimpleNoRowsLarge = (_, _ref14) => {
362
385
  let {
363
386
  pivotTableOptions
364
- } = _ref13;
387
+ } = _ref14;
365
388
  const visualization = {
366
389
  ...simpleVisualization,
367
390
  ...visualizationReset,
@@ -387,10 +410,10 @@ export const SimpleNoRowsLarge = (_, _ref13) => {
387
410
  SimpleNoRowsLarge.story = {
388
411
  name: 'simple - no rows (large)'
389
412
  };
390
- export const SimpleAvgTotalAggregationTypeColumns = (_, _ref14) => {
413
+ export const SimpleAvgTotalAggregationTypeColumns = (_, _ref15) => {
391
414
  let {
392
415
  pivotTableOptions
393
- } = _ref14;
416
+ } = _ref15;
394
417
  const visualization = {
395
418
  ...avgVisualization,
396
419
  ...visualizationReset,
@@ -411,10 +434,10 @@ export const SimpleAvgTotalAggregationTypeColumns = (_, _ref14) => {
411
434
  SimpleAvgTotalAggregationTypeColumns.story = {
412
435
  name: 'simple - avg totalAggregationType columns'
413
436
  };
414
- export const SimpleAvgTotalAggregationTypeRows = (_, _ref15) => {
437
+ export const SimpleAvgTotalAggregationTypeRows = (_, _ref16) => {
415
438
  let {
416
439
  pivotTableOptions
417
- } = _ref15;
440
+ } = _ref16;
418
441
  const visualization = {
419
442
  ...avgVisualization,
420
443
  ...visualizationReset,
@@ -437,10 +460,10 @@ export const SimpleAvgTotalAggregationTypeRows = (_, _ref15) => {
437
460
  SimpleAvgTotalAggregationTypeRows.story = {
438
461
  name: 'simple - avg totalAggregationType rows'
439
462
  };
440
- export const Deep = (_, _ref16) => {
463
+ export const Deep = (_, _ref17) => {
441
464
  let {
442
465
  pivotTableOptions
443
- } = _ref16;
466
+ } = _ref17;
444
467
  const visualization = {
445
468
  ...deepVisualization,
446
469
  ...visualizationReset,
@@ -460,10 +483,10 @@ export const Deep = (_, _ref16) => {
460
483
  Deep.story = {
461
484
  name: 'deep'
462
485
  };
463
- export const DeepFilter = (_, _ref17) => {
486
+ export const DeepFilter = (_, _ref18) => {
464
487
  let {
465
488
  pivotTableOptions
466
- } = _ref17;
489
+ } = _ref18;
467
490
  const visualization = {
468
491
  ...deepWithFiltersVisualization,
469
492
  ...visualizationReset,
@@ -483,10 +506,10 @@ export const DeepFilter = (_, _ref17) => {
483
506
  DeepFilter.story = {
484
507
  name: 'deep - filter'
485
508
  };
486
- export const DeepTitleSubtitleFilter = (_, _ref18) => {
509
+ export const DeepTitleSubtitleFilter = (_, _ref19) => {
487
510
  let {
488
511
  pivotTableOptions
489
- } = _ref18;
512
+ } = _ref19;
490
513
  const visualization = {
491
514
  ...deepVisualization,
492
515
  ...visualizationReset,
@@ -508,10 +531,10 @@ export const DeepTitleSubtitleFilter = (_, _ref18) => {
508
531
  DeepTitleSubtitleFilter.story = {
509
532
  name: 'deep - title / subtitle / filter'
510
533
  };
511
- export const DeepDimensionLabels = (_, _ref19) => {
534
+ export const DeepDimensionLabels = (_, _ref20) => {
512
535
  let {
513
536
  pivotTableOptions
514
- } = _ref19;
537
+ } = _ref20;
515
538
  const visualization = {
516
539
  ...deepVisualization,
517
540
  ...visualizationReset,
@@ -530,10 +553,10 @@ export const DeepDimensionLabels = (_, _ref19) => {
530
553
  DeepDimensionLabels.story = {
531
554
  name: 'deep - dimension labels'
532
555
  };
533
- export const DeepSmallCompact = (_, _ref20) => {
556
+ export const DeepSmallCompact = (_, _ref21) => {
534
557
  let {
535
558
  pivotTableOptions
536
- } = _ref20;
559
+ } = _ref21;
537
560
  const visualization = {
538
561
  ...deepVisualization,
539
562
  ...visualizationReset,
@@ -554,10 +577,10 @@ export const DeepSmallCompact = (_, _ref20) => {
554
577
  DeepSmallCompact.story = {
555
578
  name: 'deep - small / compact'
556
579
  };
557
- export const DeepLargeComfortable = (_, _ref21) => {
580
+ export const DeepLargeComfortable = (_, _ref22) => {
558
581
  let {
559
582
  pivotTableOptions
560
- } = _ref21;
583
+ } = _ref22;
561
584
  const visualization = {
562
585
  ...deepVisualization,
563
586
  ...visualizationReset,
@@ -578,10 +601,10 @@ export const DeepLargeComfortable = (_, _ref21) => {
578
601
  DeepLargeComfortable.story = {
579
602
  name: 'deep - large / comfortable'
580
603
  };
581
- export const DeepRow = (_, _ref22) => {
604
+ export const DeepRow = (_, _ref23) => {
582
605
  let {
583
606
  pivotTableOptions
584
- } = _ref22;
607
+ } = _ref23;
585
608
  const visualization = {
586
609
  ...deepVisualization,
587
610
  ...visualizationReset,
@@ -605,10 +628,10 @@ export const DeepRow = (_, _ref22) => {
605
628
  DeepRow.story = {
606
629
  name: 'deep - row %'
607
630
  };
608
- export const DeepColumn = (_, _ref23) => {
631
+ export const DeepColumn = (_, _ref24) => {
609
632
  let {
610
633
  pivotTableOptions
611
- } = _ref23;
634
+ } = _ref24;
612
635
  const visualization = {
613
636
  ...deepVisualization,
614
637
  ...visualizationReset,
@@ -632,10 +655,10 @@ export const DeepColumn = (_, _ref23) => {
632
655
  DeepColumn.story = {
633
656
  name: 'deep - column %'
634
657
  };
635
- const ResizingPivotTable = _ref24 => {
658
+ const ResizingPivotTable = _ref25 => {
636
659
  let {
637
660
  visualization
638
- } = _ref24;
661
+ } = _ref25;
639
662
  const [size, setSize] = useState(() => ({
640
663
  width: 400,
641
664
  height: 300
@@ -666,10 +689,10 @@ const ResizingPivotTable = _ref24 => {
666
689
  ResizingPivotTable.propTypes = {
667
690
  visualization: PropTypes.object.isRequired
668
691
  };
669
- export const DeepResize = (_, _ref25) => {
692
+ export const DeepResize = (_, _ref26) => {
670
693
  let {
671
694
  pivotTableOptions
672
- } = _ref25;
695
+ } = _ref26;
673
696
  const visualization = {
674
697
  ...deepVisualization,
675
698
  ...visualizationReset,
@@ -682,10 +705,10 @@ export const DeepResize = (_, _ref25) => {
682
705
  DeepResize.story = {
683
706
  name: 'deep - resize'
684
707
  };
685
- export const DeepTotals = (_, _ref26) => {
708
+ export const DeepTotals = (_, _ref27) => {
686
709
  let {
687
710
  pivotTableOptions
688
- } = _ref26;
711
+ } = _ref27;
689
712
  const visualization = {
690
713
  ...deepVisualization,
691
714
  ...visualizationReset,
@@ -706,10 +729,10 @@ export const DeepTotals = (_, _ref26) => {
706
729
  DeepTotals.story = {
707
730
  name: 'deep - totals'
708
731
  };
709
- export const DeepSubtotals = (_, _ref27) => {
732
+ export const DeepSubtotals = (_, _ref28) => {
710
733
  let {
711
734
  pivotTableOptions
712
- } = _ref27;
735
+ } = _ref28;
713
736
  const visualization = {
714
737
  ...deepVisualization,
715
738
  ...visualizationReset,
@@ -730,10 +753,10 @@ export const DeepSubtotals = (_, _ref27) => {
730
753
  DeepSubtotals.story = {
731
754
  name: 'deep - subtotals'
732
755
  };
733
- export const DeepAllTotals = (_, _ref28) => {
756
+ export const DeepAllTotals = (_, _ref29) => {
734
757
  let {
735
758
  pivotTableOptions
736
- } = _ref28;
759
+ } = _ref29;
737
760
  const visualization = {
738
761
  ...deepVisualization,
739
762
  ...visualizationReset,
@@ -756,10 +779,10 @@ export const DeepAllTotals = (_, _ref28) => {
756
779
  DeepAllTotals.story = {
757
780
  name: 'deep - all totals'
758
781
  };
759
- export const SmallEmptyRowsShown = (_, _ref29) => {
782
+ export const SmallEmptyRowsShown = (_, _ref30) => {
760
783
  let {
761
784
  pivotTableOptions
762
- } = _ref29;
785
+ } = _ref30;
763
786
  const visualization = {
764
787
  ...diseaseWeeksVisualization,
765
788
  ...visualizationReset,
@@ -782,10 +805,10 @@ export const SmallEmptyRowsShown = (_, _ref29) => {
782
805
  SmallEmptyRowsShown.story = {
783
806
  name: 'small empty rows - shown'
784
807
  };
785
- export const SmallEmptyRowsHidden = (_, _ref30) => {
808
+ export const SmallEmptyRowsHidden = (_, _ref31) => {
786
809
  let {
787
810
  pivotTableOptions
788
- } = _ref30;
811
+ } = _ref31;
789
812
  const visualization = {
790
813
  ...diseaseWeeksVisualization,
791
814
  ...visualizationReset,
@@ -809,10 +832,10 @@ export const SmallEmptyRowsHidden = (_, _ref30) => {
809
832
  SmallEmptyRowsHidden.story = {
810
833
  name: 'small empty rows - hidden'
811
834
  };
812
- export const EmptyRowsShown = (_, _ref31) => {
835
+ export const EmptyRowsShown = (_, _ref32) => {
813
836
  let {
814
837
  pivotTableOptions
815
- } = _ref31;
838
+ } = _ref32;
816
839
  const visualization = {
817
840
  ...emptyRowsVisualization,
818
841
  ...visualizationReset,
@@ -835,10 +858,10 @@ export const EmptyRowsShown = (_, _ref31) => {
835
858
  EmptyRowsShown.story = {
836
859
  name: 'empty rows - shown'
837
860
  };
838
- export const EmptyRowsHidden = (_, _ref32) => {
861
+ export const EmptyRowsHidden = (_, _ref33) => {
839
862
  let {
840
863
  pivotTableOptions
841
- } = _ref32;
864
+ } = _ref33;
842
865
  const visualization = {
843
866
  ...emptyRowsVisualization,
844
867
  ...visualizationReset,
@@ -858,10 +881,10 @@ export const EmptyRowsHidden = (_, _ref32) => {
858
881
  EmptyRowsHidden.story = {
859
882
  name: 'empty rows - hidden'
860
883
  };
861
- export const EmptyColumnsShown = (_, _ref33) => {
884
+ export const EmptyColumnsShown = (_, _ref34) => {
862
885
  let {
863
886
  pivotTableOptions
864
- } = _ref33;
887
+ } = _ref34;
865
888
  const visualization = {
866
889
  ...lastFiveYearsVisualization,
867
890
  ...pivotTableOptions,
@@ -880,10 +903,10 @@ export const EmptyColumnsShown = (_, _ref33) => {
880
903
  EmptyColumnsShown.story = {
881
904
  name: 'empty columns - shown'
882
905
  };
883
- export const EmptyColumnsHidden = (_, _ref34) => {
906
+ export const EmptyColumnsHidden = (_, _ref35) => {
884
907
  let {
885
908
  pivotTableOptions
886
- } = _ref34;
909
+ } = _ref35;
887
910
  const visualization = {
888
911
  ...lastFiveYearsVisualization,
889
912
  ...pivotTableOptions,
@@ -902,10 +925,10 @@ export const EmptyColumnsHidden = (_, _ref34) => {
902
925
  EmptyColumnsHidden.story = {
903
926
  name: 'empty columns - hidden'
904
927
  };
905
- export const EmptyColumnsWeeklyShown = (_, _ref35) => {
928
+ export const EmptyColumnsWeeklyShown = (_, _ref36) => {
906
929
  let {
907
930
  pivotTableOptions
908
- } = _ref35;
931
+ } = _ref36;
909
932
  const visualization = {
910
933
  ...weeklyColumnsVisualization,
911
934
  ...pivotTableOptions,
@@ -924,10 +947,10 @@ export const EmptyColumnsWeeklyShown = (_, _ref35) => {
924
947
  EmptyColumnsWeeklyShown.story = {
925
948
  name: 'empty columns (weekly) - shown'
926
949
  };
927
- export const CumulativeEmptyColumnsWeeklyShown = (_, _ref36) => {
950
+ export const CumulativeEmptyColumnsWeeklyShown = (_, _ref37) => {
928
951
  let {
929
952
  pivotTableOptions
930
- } = _ref36;
953
+ } = _ref37;
931
954
  const visualization = {
932
955
  ...weeklyColumnsVisualization,
933
956
  ...pivotTableOptions,
@@ -947,10 +970,10 @@ export const CumulativeEmptyColumnsWeeklyShown = (_, _ref36) => {
947
970
  CumulativeEmptyColumnsWeeklyShown.story = {
948
971
  name: 'cumulative + empty columns (weekly) - shown'
949
972
  };
950
- export const EmptyColumnsWeeklyHidden = (_, _ref37) => {
973
+ export const EmptyColumnsWeeklyHidden = (_, _ref38) => {
951
974
  let {
952
975
  pivotTableOptions
953
- } = _ref37;
976
+ } = _ref38;
954
977
  const visualization = {
955
978
  ...weeklyColumnsVisualization,
956
979
  ...pivotTableOptions,
@@ -969,10 +992,10 @@ export const EmptyColumnsWeeklyHidden = (_, _ref37) => {
969
992
  EmptyColumnsWeeklyHidden.story = {
970
993
  name: 'empty columns (weekly) - hidden'
971
994
  };
972
- export const CumulativeEmptyColumnsWeeklyHidden = (_, _ref38) => {
995
+ export const CumulativeEmptyColumnsWeeklyHidden = (_, _ref39) => {
973
996
  let {
974
997
  pivotTableOptions
975
- } = _ref38;
998
+ } = _ref39;
976
999
  const visualization = {
977
1000
  ...weeklyColumnsVisualization,
978
1001
  ...pivotTableOptions,
@@ -992,10 +1015,10 @@ export const CumulativeEmptyColumnsWeeklyHidden = (_, _ref38) => {
992
1015
  CumulativeEmptyColumnsWeeklyHidden.story = {
993
1016
  name: 'cumulative + empty columns (weekly) - hidden'
994
1017
  };
995
- export const EmptyColumnsAssignedCatsShown = (_, _ref39) => {
1018
+ export const EmptyColumnsAssignedCatsShown = (_, _ref40) => {
996
1019
  let {
997
1020
  pivotTableOptions
998
- } = _ref39;
1021
+ } = _ref40;
999
1022
  const visualization = {
1000
1023
  ...emptyColumnsVisualization,
1001
1024
  ...visualizationReset,
@@ -1015,10 +1038,10 @@ export const EmptyColumnsAssignedCatsShown = (_, _ref39) => {
1015
1038
  EmptyColumnsAssignedCatsShown.story = {
1016
1039
  name: 'empty columns + assigned cats (shown)'
1017
1040
  };
1018
- export const EmptyColumnsAssignedCatsHidden = (_, _ref40) => {
1041
+ export const EmptyColumnsAssignedCatsHidden = (_, _ref41) => {
1019
1042
  let {
1020
1043
  pivotTableOptions
1021
- } = _ref40;
1044
+ } = _ref41;
1022
1045
  const visualization = {
1023
1046
  ...emptyColumnsVisualization,
1024
1047
  ...visualizationReset,
@@ -1038,10 +1061,10 @@ export const EmptyColumnsAssignedCatsHidden = (_, _ref40) => {
1038
1061
  EmptyColumnsAssignedCatsHidden.story = {
1039
1062
  name: 'empty columns + assigned cats (hidden)'
1040
1063
  };
1041
- export const LegendFixedLightFill = (_, _ref41) => {
1064
+ export const LegendFixedLightFill = (_, _ref42) => {
1042
1065
  let {
1043
1066
  pivotTableOptions
1044
- } = _ref41;
1067
+ } = _ref42;
1045
1068
  const visualization = {
1046
1069
  ...targetVisualization,
1047
1070
  ...visualizationReset,
@@ -1069,10 +1092,10 @@ export const LegendFixedLightFill = (_, _ref41) => {
1069
1092
  LegendFixedLightFill.story = {
1070
1093
  name: 'legend - fixed (light fill)'
1071
1094
  };
1072
- export const LegendFixedDarkFill = (_, _ref42) => {
1095
+ export const LegendFixedDarkFill = (_, _ref43) => {
1073
1096
  let {
1074
1097
  pivotTableOptions
1075
- } = _ref42;
1098
+ } = _ref43;
1076
1099
  const visualization = {
1077
1100
  ...targetVisualization,
1078
1101
  ...visualizationReset,
@@ -1101,10 +1124,10 @@ export const LegendFixedDarkFill = (_, _ref42) => {
1101
1124
  LegendFixedDarkFill.story = {
1102
1125
  name: 'legend - fixed (dark fill)'
1103
1126
  };
1104
- export const LegendFixedText = (_, _ref43) => {
1127
+ export const LegendFixedText = (_, _ref44) => {
1105
1128
  let {
1106
1129
  pivotTableOptions
1107
- } = _ref43;
1130
+ } = _ref44;
1108
1131
  const visualization = {
1109
1132
  ...targetVisualization,
1110
1133
  ...visualizationReset,
@@ -1128,10 +1151,10 @@ export const LegendFixedText = (_, _ref43) => {
1128
1151
  LegendFixedText.story = {
1129
1152
  name: 'legend - fixed (text)'
1130
1153
  };
1131
- export const LegendFixedRow = (_, _ref44) => {
1154
+ export const LegendFixedRow = (_, _ref45) => {
1132
1155
  let {
1133
1156
  pivotTableOptions
1134
- } = _ref44;
1157
+ } = _ref45;
1135
1158
  const visualization = {
1136
1159
  ...targetVisualization,
1137
1160
  ...visualizationReset,
@@ -1158,10 +1181,10 @@ export const LegendFixedRow = (_, _ref44) => {
1158
1181
  LegendFixedRow.story = {
1159
1182
  name: 'legend - fixed (% row)'
1160
1183
  };
1161
- export const LegendByDataItem = (_, _ref45) => {
1184
+ export const LegendByDataItem = (_, _ref46) => {
1162
1185
  let {
1163
1186
  pivotTableOptions
1164
- } = _ref45;
1187
+ } = _ref46;
1165
1188
  const visualization = {
1166
1189
  ...targetVisualization,
1167
1190
  ...visualizationReset,
@@ -1192,10 +1215,10 @@ export const LegendByDataItem = (_, _ref45) => {
1192
1215
  LegendByDataItem.story = {
1193
1216
  name: 'legend - by data item'
1194
1217
  };
1195
- export const HierarchyNone = (_, _ref46) => {
1218
+ export const HierarchyNone = (_, _ref47) => {
1196
1219
  let {
1197
1220
  pivotTableOptions
1198
- } = _ref46;
1221
+ } = _ref47;
1199
1222
  const visualization = {
1200
1223
  ...hierarchyVisualization,
1201
1224
  ...visualizationReset,
@@ -1219,10 +1242,10 @@ export const HierarchyNone = (_, _ref46) => {
1219
1242
  HierarchyNone.story = {
1220
1243
  name: 'hierarchy - none'
1221
1244
  };
1222
- export const HierarchyRows = (_, _ref47) => {
1245
+ export const HierarchyRows = (_, _ref48) => {
1223
1246
  let {
1224
1247
  pivotTableOptions
1225
- } = _ref47;
1248
+ } = _ref48;
1226
1249
  const visualization = {
1227
1250
  ...hierarchyVisualization,
1228
1251
  ...visualizationReset,
@@ -1245,10 +1268,10 @@ export const HierarchyRows = (_, _ref47) => {
1245
1268
  HierarchyRows.story = {
1246
1269
  name: 'hierarchy - rows'
1247
1270
  };
1248
- export const HierarchyColumns = (_, _ref48) => {
1271
+ export const HierarchyColumns = (_, _ref49) => {
1249
1272
  let {
1250
1273
  pivotTableOptions
1251
- } = _ref48;
1274
+ } = _ref49;
1252
1275
  const visualization = {
1253
1276
  ...hierarchyVisualization,
1254
1277
  ...visualizationReset,
@@ -1273,10 +1296,10 @@ export const HierarchyColumns = (_, _ref48) => {
1273
1296
  HierarchyColumns.story = {
1274
1297
  name: 'hierarchy - columns'
1275
1298
  };
1276
- export const Narrative = (_, _ref49) => {
1299
+ export const Narrative = (_, _ref50) => {
1277
1300
  let {
1278
1301
  pivotTableOptions
1279
- } = _ref49;
1302
+ } = _ref50;
1280
1303
  const visualization = {
1281
1304
  ...narrativeVisualization,
1282
1305
  ...visualizationReset,
@@ -1297,10 +1320,10 @@ export const Narrative = (_, _ref49) => {
1297
1320
  Narrative.story = {
1298
1321
  name: 'narrative'
1299
1322
  };
1300
- export const NarrativeDataAsFilter = (_, _ref50) => {
1323
+ export const NarrativeDataAsFilter = (_, _ref51) => {
1301
1324
  let {
1302
1325
  pivotTableOptions
1303
- } = _ref50;
1326
+ } = _ref51;
1304
1327
  const visualization = {
1305
1328
  ...narrativeVisualization,
1306
1329
  ...visualizationReset,
@@ -1327,10 +1350,10 @@ export const NarrativeDataAsFilter = (_, _ref50) => {
1327
1350
  NarrativeDataAsFilter.story = {
1328
1351
  name: 'narrative - data as filter'
1329
1352
  };
1330
- export const Degs = (_, _ref51) => {
1353
+ export const Degs = (_, _ref52) => {
1331
1354
  let {
1332
1355
  pivotTableOptions
1333
- } = _ref51;
1356
+ } = _ref52;
1334
1357
  const visualization = {
1335
1358
  ...degsVisualization,
1336
1359
  ...visualizationReset,
@@ -1349,10 +1372,10 @@ export const Degs = (_, _ref51) => {
1349
1372
  Degs.story = {
1350
1373
  name: 'DEGS'
1351
1374
  };
1352
- export const TruncatedHeaderCell = (_, _ref52) => {
1375
+ export const TruncatedHeaderCell = (_, _ref53) => {
1353
1376
  let {
1354
1377
  pivotTableOptions
1355
- } = _ref52;
1378
+ } = _ref53;
1356
1379
  const widths = [250, 200, 500];
1357
1380
  const [width, setWidth] = useState(250);
1358
1381
  const toggleWidth = () => setWidth(currentWidth => {
@@ -48,8 +48,7 @@ export const FileMenu = _ref => {
48
48
  type: fileType,
49
49
  object: fileObject,
50
50
  onClose: onDialogClose,
51
- onRename: onRename,
52
- onError: onError
51
+ onRename: onRename
53
52
  });
54
53
  case 'translate':
55
54
  return /*#__PURE__*/React.createElement(TranslationDialog, {