@dhis2/analytics 27.0.0 → 28.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/__demo__/PivotTable.stories.js +116 -92
- package/build/cjs/components/FileMenu/__tests__/utils.spec.js +18 -91
- package/build/cjs/components/FileMenu/utils.js +5 -29
- package/build/cjs/modules/pivotTable/PivotTableEngine.js +20 -3
- package/build/es/__demo__/PivotTable.stories.js +114 -91
- package/build/es/components/FileMenu/__tests__/utils.spec.js +18 -91
- package/build/es/components/FileMenu/utils.js +6 -30
- package/build/es/modules/pivotTable/PivotTableEngine.js +20 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.TruncatedHeaderCell = exports.SmallEmptyRowsShown = exports.SmallEmptyRowsHidden = exports.SimpleTitleSubtitleFilter = exports.SimpleNoRowsSmall = exports.SimpleNoRowsLarge = exports.SimpleNoColumnsSingleCell = exports.SimpleNoColumnsLabel = exports.SimpleNoColumnsDeep = exports.SimpleNoColumns = exports.SimpleDataAsFilter = exports.SimpleCommaDgs = exports.SimpleColumn = exports.SimpleAvgTotalAggregationTypeRows = exports.SimpleAvgTotalAggregationTypeColumns = exports.Simple = exports.NarrativeDataAsFilter = exports.Narrative = exports.LegendFixedText = exports.LegendFixedRow = exports.LegendFixedLightFill = exports.LegendFixedDarkFill = exports.LegendByDataItem = exports.HierarchyRows = exports.HierarchyNone = exports.HierarchyColumns = exports.EmptyRowsShown = exports.EmptyRowsHidden = exports.EmptyColumnsWeeklyShown = exports.EmptyColumnsWeeklyHidden = exports.EmptyColumnsShown = exports.EmptyColumnsHidden = exports.EmptyColumnsAssignedCatsShown = exports.EmptyColumnsAssignedCatsHidden = exports.Degs = exports.DeepTotals = exports.DeepTitleSubtitleFilter = exports.DeepSubtotals = exports.DeepSmallCompact = exports.DeepRow = exports.DeepResize = exports.DeepLargeComfortable = exports.DeepFilter = exports.DeepDimensionLabels = exports.DeepColumn = exports.DeepAllTotals = exports.Deep = exports.CumulativeEmptyColumnsWeeklyShown = exports.CumulativeEmptyColumnsWeeklyHidden = void 0;
|
|
6
|
+
exports.default = exports.TruncatedHeaderCell = exports.SmallEmptyRowsShown = exports.SmallEmptyRowsHidden = exports.SimpleTitleSubtitleFilter = exports.SimpleRow = exports.SimpleNoRowsSmall = exports.SimpleNoRowsLarge = exports.SimpleNoColumnsSingleCell = exports.SimpleNoColumnsLabel = exports.SimpleNoColumnsDeep = exports.SimpleNoColumns = exports.SimpleDataAsFilter = exports.SimpleCommaDgs = exports.SimpleColumn = exports.SimpleAvgTotalAggregationTypeRows = exports.SimpleAvgTotalAggregationTypeColumns = exports.Simple = exports.NarrativeDataAsFilter = exports.Narrative = exports.LegendFixedText = exports.LegendFixedRow = exports.LegendFixedLightFill = exports.LegendFixedDarkFill = exports.LegendByDataItem = exports.HierarchyRows = exports.HierarchyNone = exports.HierarchyColumns = exports.EmptyRowsShown = exports.EmptyRowsHidden = exports.EmptyColumnsWeeklyShown = exports.EmptyColumnsWeeklyHidden = exports.EmptyColumnsShown = exports.EmptyColumnsHidden = exports.EmptyColumnsAssignedCatsShown = exports.EmptyColumnsAssignedCatsHidden = exports.Degs = exports.DeepTotals = exports.DeepTitleSubtitleFilter = exports.DeepSubtotals = exports.DeepSmallCompact = exports.DeepRow = exports.DeepResize = exports.DeepLargeComfortable = exports.DeepFilter = exports.DeepDimensionLabels = exports.DeepColumn = exports.DeepAllTotals = exports.Deep = exports.CumulativeEmptyColumnsWeeklyShown = exports.CumulativeEmptyColumnsWeeklyHidden = void 0;
|
|
7
7
|
var _ui = require("@dhis2/ui");
|
|
8
8
|
var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -208,10 +208,34 @@ exports.SimpleColumn = SimpleColumn;
|
|
|
208
208
|
SimpleColumn.story = {
|
|
209
209
|
name: 'simple - column %'
|
|
210
210
|
};
|
|
211
|
-
const
|
|
211
|
+
const SimpleRow = (_, _ref7) => {
|
|
212
212
|
let {
|
|
213
213
|
pivotTableOptions
|
|
214
214
|
} = _ref7;
|
|
215
|
+
const visualization = {
|
|
216
|
+
..._diseaseWeeksVisualization.default,
|
|
217
|
+
...visualizationReset,
|
|
218
|
+
...pivotTableOptions,
|
|
219
|
+
numberType: _pivotTableConstants.NUMBER_TYPE_ROW_PERCENTAGE
|
|
220
|
+
};
|
|
221
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
222
|
+
style: {
|
|
223
|
+
width: 800,
|
|
224
|
+
height: 600
|
|
225
|
+
}
|
|
226
|
+
}, /*#__PURE__*/_react.default.createElement(_index.PivotTable, {
|
|
227
|
+
data: diseaseWeeksData,
|
|
228
|
+
visualization: visualization
|
|
229
|
+
}));
|
|
230
|
+
};
|
|
231
|
+
exports.SimpleRow = SimpleRow;
|
|
232
|
+
SimpleRow.story = {
|
|
233
|
+
name: 'simple - row %'
|
|
234
|
+
};
|
|
235
|
+
const SimpleDataAsFilter = (_, _ref8) => {
|
|
236
|
+
let {
|
|
237
|
+
pivotTableOptions
|
|
238
|
+
} = _ref8;
|
|
215
239
|
const visualization = {
|
|
216
240
|
..._simpleVisualization.default,
|
|
217
241
|
...visualizationReset,
|
|
@@ -233,10 +257,10 @@ exports.SimpleDataAsFilter = SimpleDataAsFilter;
|
|
|
233
257
|
SimpleDataAsFilter.story = {
|
|
234
258
|
name: 'simple - data as filter'
|
|
235
259
|
};
|
|
236
|
-
const SimpleNoColumns = (_,
|
|
260
|
+
const SimpleNoColumns = (_, _ref9) => {
|
|
237
261
|
let {
|
|
238
262
|
pivotTableOptions
|
|
239
|
-
} =
|
|
263
|
+
} = _ref9;
|
|
240
264
|
const visualization = {
|
|
241
265
|
..._simpleVisualization.default,
|
|
242
266
|
...visualizationReset,
|
|
@@ -262,10 +286,10 @@ exports.SimpleNoColumns = SimpleNoColumns;
|
|
|
262
286
|
SimpleNoColumns.story = {
|
|
263
287
|
name: 'simple - no columns'
|
|
264
288
|
};
|
|
265
|
-
const SimpleNoColumnsSingleCell = (_,
|
|
289
|
+
const SimpleNoColumnsSingleCell = (_, _ref10) => {
|
|
266
290
|
let {
|
|
267
291
|
pivotTableOptions
|
|
268
|
-
} =
|
|
292
|
+
} = _ref10;
|
|
269
293
|
const visualization = {
|
|
270
294
|
..._simpleVisualization.default,
|
|
271
295
|
...visualizationReset,
|
|
@@ -289,10 +313,10 @@ exports.SimpleNoColumnsSingleCell = SimpleNoColumnsSingleCell;
|
|
|
289
313
|
SimpleNoColumnsSingleCell.story = {
|
|
290
314
|
name: 'simple - no columns (single cell)'
|
|
291
315
|
};
|
|
292
|
-
const SimpleNoColumnsDeep = (_,
|
|
316
|
+
const SimpleNoColumnsDeep = (_, _ref11) => {
|
|
293
317
|
let {
|
|
294
318
|
pivotTableOptions
|
|
295
|
-
} =
|
|
319
|
+
} = _ref11;
|
|
296
320
|
const visualization = {
|
|
297
321
|
..._simpleVisualization.default,
|
|
298
322
|
...visualizationReset,
|
|
@@ -317,10 +341,10 @@ exports.SimpleNoColumnsDeep = SimpleNoColumnsDeep;
|
|
|
317
341
|
SimpleNoColumnsDeep.story = {
|
|
318
342
|
name: 'simple - no columns (deep)'
|
|
319
343
|
};
|
|
320
|
-
const SimpleNoColumnsLabel = (_,
|
|
344
|
+
const SimpleNoColumnsLabel = (_, _ref12) => {
|
|
321
345
|
let {
|
|
322
346
|
pivotTableOptions
|
|
323
|
-
} =
|
|
347
|
+
} = _ref12;
|
|
324
348
|
const visualization = {
|
|
325
349
|
..._simpleVisualization.default,
|
|
326
350
|
...visualizationReset,
|
|
@@ -347,10 +371,10 @@ exports.SimpleNoColumnsLabel = SimpleNoColumnsLabel;
|
|
|
347
371
|
SimpleNoColumnsLabel.story = {
|
|
348
372
|
name: 'simple - no columns (label)'
|
|
349
373
|
};
|
|
350
|
-
const SimpleNoRowsSmall = (_,
|
|
374
|
+
const SimpleNoRowsSmall = (_, _ref13) => {
|
|
351
375
|
let {
|
|
352
376
|
pivotTableOptions
|
|
353
|
-
} =
|
|
377
|
+
} = _ref13;
|
|
354
378
|
const visualization = {
|
|
355
379
|
..._simpleVisualization.default,
|
|
356
380
|
...visualizationReset,
|
|
@@ -377,10 +401,10 @@ exports.SimpleNoRowsSmall = SimpleNoRowsSmall;
|
|
|
377
401
|
SimpleNoRowsSmall.story = {
|
|
378
402
|
name: 'simple - no rows (small)'
|
|
379
403
|
};
|
|
380
|
-
const SimpleNoRowsLarge = (_,
|
|
404
|
+
const SimpleNoRowsLarge = (_, _ref14) => {
|
|
381
405
|
let {
|
|
382
406
|
pivotTableOptions
|
|
383
|
-
} =
|
|
407
|
+
} = _ref14;
|
|
384
408
|
const visualization = {
|
|
385
409
|
..._simpleVisualization.default,
|
|
386
410
|
...visualizationReset,
|
|
@@ -407,10 +431,10 @@ exports.SimpleNoRowsLarge = SimpleNoRowsLarge;
|
|
|
407
431
|
SimpleNoRowsLarge.story = {
|
|
408
432
|
name: 'simple - no rows (large)'
|
|
409
433
|
};
|
|
410
|
-
const SimpleAvgTotalAggregationTypeColumns = (_,
|
|
434
|
+
const SimpleAvgTotalAggregationTypeColumns = (_, _ref15) => {
|
|
411
435
|
let {
|
|
412
436
|
pivotTableOptions
|
|
413
|
-
} =
|
|
437
|
+
} = _ref15;
|
|
414
438
|
const visualization = {
|
|
415
439
|
..._avgTotalAggregationTypeVisualization.default,
|
|
416
440
|
...visualizationReset,
|
|
@@ -432,10 +456,10 @@ exports.SimpleAvgTotalAggregationTypeColumns = SimpleAvgTotalAggregationTypeColu
|
|
|
432
456
|
SimpleAvgTotalAggregationTypeColumns.story = {
|
|
433
457
|
name: 'simple - avg totalAggregationType columns'
|
|
434
458
|
};
|
|
435
|
-
const SimpleAvgTotalAggregationTypeRows = (_,
|
|
459
|
+
const SimpleAvgTotalAggregationTypeRows = (_, _ref16) => {
|
|
436
460
|
let {
|
|
437
461
|
pivotTableOptions
|
|
438
|
-
} =
|
|
462
|
+
} = _ref16;
|
|
439
463
|
const visualization = {
|
|
440
464
|
..._avgTotalAggregationTypeVisualization.default,
|
|
441
465
|
...visualizationReset,
|
|
@@ -459,10 +483,10 @@ exports.SimpleAvgTotalAggregationTypeRows = SimpleAvgTotalAggregationTypeRows;
|
|
|
459
483
|
SimpleAvgTotalAggregationTypeRows.story = {
|
|
460
484
|
name: 'simple - avg totalAggregationType rows'
|
|
461
485
|
};
|
|
462
|
-
const Deep = (_,
|
|
486
|
+
const Deep = (_, _ref17) => {
|
|
463
487
|
let {
|
|
464
488
|
pivotTableOptions
|
|
465
|
-
} =
|
|
489
|
+
} = _ref17;
|
|
466
490
|
const visualization = {
|
|
467
491
|
..._deepVisualization.default,
|
|
468
492
|
...visualizationReset,
|
|
@@ -483,10 +507,10 @@ exports.Deep = Deep;
|
|
|
483
507
|
Deep.story = {
|
|
484
508
|
name: 'deep'
|
|
485
509
|
};
|
|
486
|
-
const DeepFilter = (_,
|
|
510
|
+
const DeepFilter = (_, _ref18) => {
|
|
487
511
|
let {
|
|
488
512
|
pivotTableOptions
|
|
489
|
-
} =
|
|
513
|
+
} = _ref18;
|
|
490
514
|
const visualization = {
|
|
491
515
|
..._deepWithFiltersVisualization.default,
|
|
492
516
|
...visualizationReset,
|
|
@@ -507,10 +531,10 @@ exports.DeepFilter = DeepFilter;
|
|
|
507
531
|
DeepFilter.story = {
|
|
508
532
|
name: 'deep - filter'
|
|
509
533
|
};
|
|
510
|
-
const DeepTitleSubtitleFilter = (_,
|
|
534
|
+
const DeepTitleSubtitleFilter = (_, _ref19) => {
|
|
511
535
|
let {
|
|
512
536
|
pivotTableOptions
|
|
513
|
-
} =
|
|
537
|
+
} = _ref19;
|
|
514
538
|
const visualization = {
|
|
515
539
|
..._deepVisualization.default,
|
|
516
540
|
...visualizationReset,
|
|
@@ -533,10 +557,10 @@ exports.DeepTitleSubtitleFilter = DeepTitleSubtitleFilter;
|
|
|
533
557
|
DeepTitleSubtitleFilter.story = {
|
|
534
558
|
name: 'deep - title / subtitle / filter'
|
|
535
559
|
};
|
|
536
|
-
const DeepDimensionLabels = (_,
|
|
560
|
+
const DeepDimensionLabels = (_, _ref20) => {
|
|
537
561
|
let {
|
|
538
562
|
pivotTableOptions
|
|
539
|
-
} =
|
|
563
|
+
} = _ref20;
|
|
540
564
|
const visualization = {
|
|
541
565
|
..._deepVisualization.default,
|
|
542
566
|
...visualizationReset,
|
|
@@ -556,10 +580,10 @@ exports.DeepDimensionLabels = DeepDimensionLabels;
|
|
|
556
580
|
DeepDimensionLabels.story = {
|
|
557
581
|
name: 'deep - dimension labels'
|
|
558
582
|
};
|
|
559
|
-
const DeepSmallCompact = (_,
|
|
583
|
+
const DeepSmallCompact = (_, _ref21) => {
|
|
560
584
|
let {
|
|
561
585
|
pivotTableOptions
|
|
562
|
-
} =
|
|
586
|
+
} = _ref21;
|
|
563
587
|
const visualization = {
|
|
564
588
|
..._deepVisualization.default,
|
|
565
589
|
...visualizationReset,
|
|
@@ -581,10 +605,10 @@ exports.DeepSmallCompact = DeepSmallCompact;
|
|
|
581
605
|
DeepSmallCompact.story = {
|
|
582
606
|
name: 'deep - small / compact'
|
|
583
607
|
};
|
|
584
|
-
const DeepLargeComfortable = (_,
|
|
608
|
+
const DeepLargeComfortable = (_, _ref22) => {
|
|
585
609
|
let {
|
|
586
610
|
pivotTableOptions
|
|
587
|
-
} =
|
|
611
|
+
} = _ref22;
|
|
588
612
|
const visualization = {
|
|
589
613
|
..._deepVisualization.default,
|
|
590
614
|
...visualizationReset,
|
|
@@ -606,10 +630,10 @@ exports.DeepLargeComfortable = DeepLargeComfortable;
|
|
|
606
630
|
DeepLargeComfortable.story = {
|
|
607
631
|
name: 'deep - large / comfortable'
|
|
608
632
|
};
|
|
609
|
-
const DeepRow = (_,
|
|
633
|
+
const DeepRow = (_, _ref23) => {
|
|
610
634
|
let {
|
|
611
635
|
pivotTableOptions
|
|
612
|
-
} =
|
|
636
|
+
} = _ref23;
|
|
613
637
|
const visualization = {
|
|
614
638
|
..._deepVisualization.default,
|
|
615
639
|
...visualizationReset,
|
|
@@ -634,10 +658,10 @@ exports.DeepRow = DeepRow;
|
|
|
634
658
|
DeepRow.story = {
|
|
635
659
|
name: 'deep - row %'
|
|
636
660
|
};
|
|
637
|
-
const DeepColumn = (_,
|
|
661
|
+
const DeepColumn = (_, _ref24) => {
|
|
638
662
|
let {
|
|
639
663
|
pivotTableOptions
|
|
640
|
-
} =
|
|
664
|
+
} = _ref24;
|
|
641
665
|
const visualization = {
|
|
642
666
|
..._deepVisualization.default,
|
|
643
667
|
...visualizationReset,
|
|
@@ -662,10 +686,10 @@ exports.DeepColumn = DeepColumn;
|
|
|
662
686
|
DeepColumn.story = {
|
|
663
687
|
name: 'deep - column %'
|
|
664
688
|
};
|
|
665
|
-
const ResizingPivotTable =
|
|
689
|
+
const ResizingPivotTable = _ref25 => {
|
|
666
690
|
let {
|
|
667
691
|
visualization
|
|
668
|
-
} =
|
|
692
|
+
} = _ref25;
|
|
669
693
|
const [size, setSize] = (0, _react.useState)(() => ({
|
|
670
694
|
width: 400,
|
|
671
695
|
height: 300
|
|
@@ -696,10 +720,10 @@ const ResizingPivotTable = _ref24 => {
|
|
|
696
720
|
ResizingPivotTable.propTypes = {
|
|
697
721
|
visualization: _propTypes.default.object.isRequired
|
|
698
722
|
};
|
|
699
|
-
const DeepResize = (_,
|
|
723
|
+
const DeepResize = (_, _ref26) => {
|
|
700
724
|
let {
|
|
701
725
|
pivotTableOptions
|
|
702
|
-
} =
|
|
726
|
+
} = _ref26;
|
|
703
727
|
const visualization = {
|
|
704
728
|
..._deepVisualization.default,
|
|
705
729
|
...visualizationReset,
|
|
@@ -713,10 +737,10 @@ exports.DeepResize = DeepResize;
|
|
|
713
737
|
DeepResize.story = {
|
|
714
738
|
name: 'deep - resize'
|
|
715
739
|
};
|
|
716
|
-
const DeepTotals = (_,
|
|
740
|
+
const DeepTotals = (_, _ref27) => {
|
|
717
741
|
let {
|
|
718
742
|
pivotTableOptions
|
|
719
|
-
} =
|
|
743
|
+
} = _ref27;
|
|
720
744
|
const visualization = {
|
|
721
745
|
..._deepVisualization.default,
|
|
722
746
|
...visualizationReset,
|
|
@@ -738,10 +762,10 @@ exports.DeepTotals = DeepTotals;
|
|
|
738
762
|
DeepTotals.story = {
|
|
739
763
|
name: 'deep - totals'
|
|
740
764
|
};
|
|
741
|
-
const DeepSubtotals = (_,
|
|
765
|
+
const DeepSubtotals = (_, _ref28) => {
|
|
742
766
|
let {
|
|
743
767
|
pivotTableOptions
|
|
744
|
-
} =
|
|
768
|
+
} = _ref28;
|
|
745
769
|
const visualization = {
|
|
746
770
|
..._deepVisualization.default,
|
|
747
771
|
...visualizationReset,
|
|
@@ -763,10 +787,10 @@ exports.DeepSubtotals = DeepSubtotals;
|
|
|
763
787
|
DeepSubtotals.story = {
|
|
764
788
|
name: 'deep - subtotals'
|
|
765
789
|
};
|
|
766
|
-
const DeepAllTotals = (_,
|
|
790
|
+
const DeepAllTotals = (_, _ref29) => {
|
|
767
791
|
let {
|
|
768
792
|
pivotTableOptions
|
|
769
|
-
} =
|
|
793
|
+
} = _ref29;
|
|
770
794
|
const visualization = {
|
|
771
795
|
..._deepVisualization.default,
|
|
772
796
|
...visualizationReset,
|
|
@@ -790,10 +814,10 @@ exports.DeepAllTotals = DeepAllTotals;
|
|
|
790
814
|
DeepAllTotals.story = {
|
|
791
815
|
name: 'deep - all totals'
|
|
792
816
|
};
|
|
793
|
-
const SmallEmptyRowsShown = (_,
|
|
817
|
+
const SmallEmptyRowsShown = (_, _ref30) => {
|
|
794
818
|
let {
|
|
795
819
|
pivotTableOptions
|
|
796
|
-
} =
|
|
820
|
+
} = _ref30;
|
|
797
821
|
const visualization = {
|
|
798
822
|
..._diseaseWeeksVisualization.default,
|
|
799
823
|
...visualizationReset,
|
|
@@ -817,10 +841,10 @@ exports.SmallEmptyRowsShown = SmallEmptyRowsShown;
|
|
|
817
841
|
SmallEmptyRowsShown.story = {
|
|
818
842
|
name: 'small empty rows - shown'
|
|
819
843
|
};
|
|
820
|
-
const SmallEmptyRowsHidden = (_,
|
|
844
|
+
const SmallEmptyRowsHidden = (_, _ref31) => {
|
|
821
845
|
let {
|
|
822
846
|
pivotTableOptions
|
|
823
|
-
} =
|
|
847
|
+
} = _ref31;
|
|
824
848
|
const visualization = {
|
|
825
849
|
..._diseaseWeeksVisualization.default,
|
|
826
850
|
...visualizationReset,
|
|
@@ -845,10 +869,10 @@ exports.SmallEmptyRowsHidden = SmallEmptyRowsHidden;
|
|
|
845
869
|
SmallEmptyRowsHidden.story = {
|
|
846
870
|
name: 'small empty rows - hidden'
|
|
847
871
|
};
|
|
848
|
-
const EmptyRowsShown = (_,
|
|
872
|
+
const EmptyRowsShown = (_, _ref32) => {
|
|
849
873
|
let {
|
|
850
874
|
pivotTableOptions
|
|
851
|
-
} =
|
|
875
|
+
} = _ref32;
|
|
852
876
|
const visualization = {
|
|
853
877
|
..._emptyRowsVisualization.default,
|
|
854
878
|
...visualizationReset,
|
|
@@ -872,10 +896,10 @@ exports.EmptyRowsShown = EmptyRowsShown;
|
|
|
872
896
|
EmptyRowsShown.story = {
|
|
873
897
|
name: 'empty rows - shown'
|
|
874
898
|
};
|
|
875
|
-
const EmptyRowsHidden = (_,
|
|
899
|
+
const EmptyRowsHidden = (_, _ref33) => {
|
|
876
900
|
let {
|
|
877
901
|
pivotTableOptions
|
|
878
|
-
} =
|
|
902
|
+
} = _ref33;
|
|
879
903
|
const visualization = {
|
|
880
904
|
..._emptyRowsVisualization.default,
|
|
881
905
|
...visualizationReset,
|
|
@@ -896,10 +920,10 @@ exports.EmptyRowsHidden = EmptyRowsHidden;
|
|
|
896
920
|
EmptyRowsHidden.story = {
|
|
897
921
|
name: 'empty rows - hidden'
|
|
898
922
|
};
|
|
899
|
-
const EmptyColumnsShown = (_,
|
|
923
|
+
const EmptyColumnsShown = (_, _ref34) => {
|
|
900
924
|
let {
|
|
901
925
|
pivotTableOptions
|
|
902
|
-
} =
|
|
926
|
+
} = _ref34;
|
|
903
927
|
const visualization = {
|
|
904
928
|
..._lastFiveYearsVisualization.default,
|
|
905
929
|
...pivotTableOptions,
|
|
@@ -919,10 +943,10 @@ exports.EmptyColumnsShown = EmptyColumnsShown;
|
|
|
919
943
|
EmptyColumnsShown.story = {
|
|
920
944
|
name: 'empty columns - shown'
|
|
921
945
|
};
|
|
922
|
-
const EmptyColumnsHidden = (_,
|
|
946
|
+
const EmptyColumnsHidden = (_, _ref35) => {
|
|
923
947
|
let {
|
|
924
948
|
pivotTableOptions
|
|
925
|
-
} =
|
|
949
|
+
} = _ref35;
|
|
926
950
|
const visualization = {
|
|
927
951
|
..._lastFiveYearsVisualization.default,
|
|
928
952
|
...pivotTableOptions,
|
|
@@ -942,10 +966,10 @@ exports.EmptyColumnsHidden = EmptyColumnsHidden;
|
|
|
942
966
|
EmptyColumnsHidden.story = {
|
|
943
967
|
name: 'empty columns - hidden'
|
|
944
968
|
};
|
|
945
|
-
const EmptyColumnsWeeklyShown = (_,
|
|
969
|
+
const EmptyColumnsWeeklyShown = (_, _ref36) => {
|
|
946
970
|
let {
|
|
947
971
|
pivotTableOptions
|
|
948
|
-
} =
|
|
972
|
+
} = _ref36;
|
|
949
973
|
const visualization = {
|
|
950
974
|
..._weeklyColumnsVisualization.default,
|
|
951
975
|
...pivotTableOptions,
|
|
@@ -965,10 +989,10 @@ exports.EmptyColumnsWeeklyShown = EmptyColumnsWeeklyShown;
|
|
|
965
989
|
EmptyColumnsWeeklyShown.story = {
|
|
966
990
|
name: 'empty columns (weekly) - shown'
|
|
967
991
|
};
|
|
968
|
-
const CumulativeEmptyColumnsWeeklyShown = (_,
|
|
992
|
+
const CumulativeEmptyColumnsWeeklyShown = (_, _ref37) => {
|
|
969
993
|
let {
|
|
970
994
|
pivotTableOptions
|
|
971
|
-
} =
|
|
995
|
+
} = _ref37;
|
|
972
996
|
const visualization = {
|
|
973
997
|
..._weeklyColumnsVisualization.default,
|
|
974
998
|
...pivotTableOptions,
|
|
@@ -989,10 +1013,10 @@ exports.CumulativeEmptyColumnsWeeklyShown = CumulativeEmptyColumnsWeeklyShown;
|
|
|
989
1013
|
CumulativeEmptyColumnsWeeklyShown.story = {
|
|
990
1014
|
name: 'cumulative + empty columns (weekly) - shown'
|
|
991
1015
|
};
|
|
992
|
-
const EmptyColumnsWeeklyHidden = (_,
|
|
1016
|
+
const EmptyColumnsWeeklyHidden = (_, _ref38) => {
|
|
993
1017
|
let {
|
|
994
1018
|
pivotTableOptions
|
|
995
|
-
} =
|
|
1019
|
+
} = _ref38;
|
|
996
1020
|
const visualization = {
|
|
997
1021
|
..._weeklyColumnsVisualization.default,
|
|
998
1022
|
...pivotTableOptions,
|
|
@@ -1012,10 +1036,10 @@ exports.EmptyColumnsWeeklyHidden = EmptyColumnsWeeklyHidden;
|
|
|
1012
1036
|
EmptyColumnsWeeklyHidden.story = {
|
|
1013
1037
|
name: 'empty columns (weekly) - hidden'
|
|
1014
1038
|
};
|
|
1015
|
-
const CumulativeEmptyColumnsWeeklyHidden = (_,
|
|
1039
|
+
const CumulativeEmptyColumnsWeeklyHidden = (_, _ref39) => {
|
|
1016
1040
|
let {
|
|
1017
1041
|
pivotTableOptions
|
|
1018
|
-
} =
|
|
1042
|
+
} = _ref39;
|
|
1019
1043
|
const visualization = {
|
|
1020
1044
|
..._weeklyColumnsVisualization.default,
|
|
1021
1045
|
...pivotTableOptions,
|
|
@@ -1036,10 +1060,10 @@ exports.CumulativeEmptyColumnsWeeklyHidden = CumulativeEmptyColumnsWeeklyHidden;
|
|
|
1036
1060
|
CumulativeEmptyColumnsWeeklyHidden.story = {
|
|
1037
1061
|
name: 'cumulative + empty columns (weekly) - hidden'
|
|
1038
1062
|
};
|
|
1039
|
-
const EmptyColumnsAssignedCatsShown = (_,
|
|
1063
|
+
const EmptyColumnsAssignedCatsShown = (_, _ref40) => {
|
|
1040
1064
|
let {
|
|
1041
1065
|
pivotTableOptions
|
|
1042
|
-
} =
|
|
1066
|
+
} = _ref40;
|
|
1043
1067
|
const visualization = {
|
|
1044
1068
|
..._emptyColumnsVisualization.default,
|
|
1045
1069
|
...visualizationReset,
|
|
@@ -1060,10 +1084,10 @@ exports.EmptyColumnsAssignedCatsShown = EmptyColumnsAssignedCatsShown;
|
|
|
1060
1084
|
EmptyColumnsAssignedCatsShown.story = {
|
|
1061
1085
|
name: 'empty columns + assigned cats (shown)'
|
|
1062
1086
|
};
|
|
1063
|
-
const EmptyColumnsAssignedCatsHidden = (_,
|
|
1087
|
+
const EmptyColumnsAssignedCatsHidden = (_, _ref41) => {
|
|
1064
1088
|
let {
|
|
1065
1089
|
pivotTableOptions
|
|
1066
|
-
} =
|
|
1090
|
+
} = _ref41;
|
|
1067
1091
|
const visualization = {
|
|
1068
1092
|
..._emptyColumnsVisualization.default,
|
|
1069
1093
|
...visualizationReset,
|
|
@@ -1084,10 +1108,10 @@ exports.EmptyColumnsAssignedCatsHidden = EmptyColumnsAssignedCatsHidden;
|
|
|
1084
1108
|
EmptyColumnsAssignedCatsHidden.story = {
|
|
1085
1109
|
name: 'empty columns + assigned cats (hidden)'
|
|
1086
1110
|
};
|
|
1087
|
-
const LegendFixedLightFill = (_,
|
|
1111
|
+
const LegendFixedLightFill = (_, _ref42) => {
|
|
1088
1112
|
let {
|
|
1089
1113
|
pivotTableOptions
|
|
1090
|
-
} =
|
|
1114
|
+
} = _ref42;
|
|
1091
1115
|
const visualization = {
|
|
1092
1116
|
..._targetWithLegendVisualization.default,
|
|
1093
1117
|
...visualizationReset,
|
|
@@ -1116,10 +1140,10 @@ exports.LegendFixedLightFill = LegendFixedLightFill;
|
|
|
1116
1140
|
LegendFixedLightFill.story = {
|
|
1117
1141
|
name: 'legend - fixed (light fill)'
|
|
1118
1142
|
};
|
|
1119
|
-
const LegendFixedDarkFill = (_,
|
|
1143
|
+
const LegendFixedDarkFill = (_, _ref43) => {
|
|
1120
1144
|
let {
|
|
1121
1145
|
pivotTableOptions
|
|
1122
|
-
} =
|
|
1146
|
+
} = _ref43;
|
|
1123
1147
|
const visualization = {
|
|
1124
1148
|
..._targetWithLegendVisualization.default,
|
|
1125
1149
|
...visualizationReset,
|
|
@@ -1149,10 +1173,10 @@ exports.LegendFixedDarkFill = LegendFixedDarkFill;
|
|
|
1149
1173
|
LegendFixedDarkFill.story = {
|
|
1150
1174
|
name: 'legend - fixed (dark fill)'
|
|
1151
1175
|
};
|
|
1152
|
-
const LegendFixedText = (_,
|
|
1176
|
+
const LegendFixedText = (_, _ref44) => {
|
|
1153
1177
|
let {
|
|
1154
1178
|
pivotTableOptions
|
|
1155
|
-
} =
|
|
1179
|
+
} = _ref44;
|
|
1156
1180
|
const visualization = {
|
|
1157
1181
|
..._targetWithLegendVisualization.default,
|
|
1158
1182
|
...visualizationReset,
|
|
@@ -1177,10 +1201,10 @@ exports.LegendFixedText = LegendFixedText;
|
|
|
1177
1201
|
LegendFixedText.story = {
|
|
1178
1202
|
name: 'legend - fixed (text)'
|
|
1179
1203
|
};
|
|
1180
|
-
const LegendFixedRow = (_,
|
|
1204
|
+
const LegendFixedRow = (_, _ref45) => {
|
|
1181
1205
|
let {
|
|
1182
1206
|
pivotTableOptions
|
|
1183
|
-
} =
|
|
1207
|
+
} = _ref45;
|
|
1184
1208
|
const visualization = {
|
|
1185
1209
|
..._targetWithLegendVisualization.default,
|
|
1186
1210
|
...visualizationReset,
|
|
@@ -1208,10 +1232,10 @@ exports.LegendFixedRow = LegendFixedRow;
|
|
|
1208
1232
|
LegendFixedRow.story = {
|
|
1209
1233
|
name: 'legend - fixed (% row)'
|
|
1210
1234
|
};
|
|
1211
|
-
const LegendByDataItem = (_,
|
|
1235
|
+
const LegendByDataItem = (_, _ref46) => {
|
|
1212
1236
|
let {
|
|
1213
1237
|
pivotTableOptions
|
|
1214
|
-
} =
|
|
1238
|
+
} = _ref46;
|
|
1215
1239
|
const visualization = {
|
|
1216
1240
|
..._targetWithLegendVisualization.default,
|
|
1217
1241
|
...visualizationReset,
|
|
@@ -1243,10 +1267,10 @@ exports.LegendByDataItem = LegendByDataItem;
|
|
|
1243
1267
|
LegendByDataItem.story = {
|
|
1244
1268
|
name: 'legend - by data item'
|
|
1245
1269
|
};
|
|
1246
|
-
const HierarchyNone = (_,
|
|
1270
|
+
const HierarchyNone = (_, _ref47) => {
|
|
1247
1271
|
let {
|
|
1248
1272
|
pivotTableOptions
|
|
1249
|
-
} =
|
|
1273
|
+
} = _ref47;
|
|
1250
1274
|
const visualization = {
|
|
1251
1275
|
..._hierarchyVisualization.default,
|
|
1252
1276
|
...visualizationReset,
|
|
@@ -1271,10 +1295,10 @@ exports.HierarchyNone = HierarchyNone;
|
|
|
1271
1295
|
HierarchyNone.story = {
|
|
1272
1296
|
name: 'hierarchy - none'
|
|
1273
1297
|
};
|
|
1274
|
-
const HierarchyRows = (_,
|
|
1298
|
+
const HierarchyRows = (_, _ref48) => {
|
|
1275
1299
|
let {
|
|
1276
1300
|
pivotTableOptions
|
|
1277
|
-
} =
|
|
1301
|
+
} = _ref48;
|
|
1278
1302
|
const visualization = {
|
|
1279
1303
|
..._hierarchyVisualization.default,
|
|
1280
1304
|
...visualizationReset,
|
|
@@ -1298,10 +1322,10 @@ exports.HierarchyRows = HierarchyRows;
|
|
|
1298
1322
|
HierarchyRows.story = {
|
|
1299
1323
|
name: 'hierarchy - rows'
|
|
1300
1324
|
};
|
|
1301
|
-
const HierarchyColumns = (_,
|
|
1325
|
+
const HierarchyColumns = (_, _ref49) => {
|
|
1302
1326
|
let {
|
|
1303
1327
|
pivotTableOptions
|
|
1304
|
-
} =
|
|
1328
|
+
} = _ref49;
|
|
1305
1329
|
const visualization = {
|
|
1306
1330
|
..._hierarchyVisualization.default,
|
|
1307
1331
|
...visualizationReset,
|
|
@@ -1327,10 +1351,10 @@ exports.HierarchyColumns = HierarchyColumns;
|
|
|
1327
1351
|
HierarchyColumns.story = {
|
|
1328
1352
|
name: 'hierarchy - columns'
|
|
1329
1353
|
};
|
|
1330
|
-
const Narrative = (_,
|
|
1354
|
+
const Narrative = (_, _ref50) => {
|
|
1331
1355
|
let {
|
|
1332
1356
|
pivotTableOptions
|
|
1333
|
-
} =
|
|
1357
|
+
} = _ref50;
|
|
1334
1358
|
const visualization = {
|
|
1335
1359
|
..._narrativeVisualization.default,
|
|
1336
1360
|
...visualizationReset,
|
|
@@ -1352,10 +1376,10 @@ exports.Narrative = Narrative;
|
|
|
1352
1376
|
Narrative.story = {
|
|
1353
1377
|
name: 'narrative'
|
|
1354
1378
|
};
|
|
1355
|
-
const NarrativeDataAsFilter = (_,
|
|
1379
|
+
const NarrativeDataAsFilter = (_, _ref51) => {
|
|
1356
1380
|
let {
|
|
1357
1381
|
pivotTableOptions
|
|
1358
|
-
} =
|
|
1382
|
+
} = _ref51;
|
|
1359
1383
|
const visualization = {
|
|
1360
1384
|
..._narrativeVisualization.default,
|
|
1361
1385
|
...visualizationReset,
|
|
@@ -1383,10 +1407,10 @@ exports.NarrativeDataAsFilter = NarrativeDataAsFilter;
|
|
|
1383
1407
|
NarrativeDataAsFilter.story = {
|
|
1384
1408
|
name: 'narrative - data as filter'
|
|
1385
1409
|
};
|
|
1386
|
-
const Degs = (_,
|
|
1410
|
+
const Degs = (_, _ref52) => {
|
|
1387
1411
|
let {
|
|
1388
1412
|
pivotTableOptions
|
|
1389
|
-
} =
|
|
1413
|
+
} = _ref52;
|
|
1390
1414
|
const visualization = {
|
|
1391
1415
|
..._degsVisualization.default,
|
|
1392
1416
|
...visualizationReset,
|
|
@@ -1406,10 +1430,10 @@ exports.Degs = Degs;
|
|
|
1406
1430
|
Degs.story = {
|
|
1407
1431
|
name: 'DEGS'
|
|
1408
1432
|
};
|
|
1409
|
-
const TruncatedHeaderCell = (_,
|
|
1433
|
+
const TruncatedHeaderCell = (_, _ref53) => {
|
|
1410
1434
|
let {
|
|
1411
1435
|
pivotTableOptions
|
|
1412
|
-
} =
|
|
1436
|
+
} = _ref53;
|
|
1413
1437
|
const widths = [250, 200, 500];
|
|
1414
1438
|
const [width, setWidth] = (0, _react.useState)(250);
|
|
1415
1439
|
const toggleWidth = () => setWidth(currentWidth => {
|