@dhis2/analytics 28.1.2 → 29.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__/InterpretationsUnit.stories.js +9 -6
- package/build/cjs/__fixtures__/interpretationsMockData.js +204 -0
- package/build/cjs/components/Interpretations/DashboardItemInterpretations/DashboardInterpretationThread.js +56 -0
- package/build/cjs/components/Interpretations/DashboardItemInterpretations/DashboardItemInterpretations.js +54 -0
- package/build/cjs/components/Interpretations/DashboardItemInterpretations/index.js +12 -0
- package/build/cjs/components/Interpretations/InterpretationModal/Comment.js +12 -17
- package/build/cjs/components/Interpretations/InterpretationModal/CommentAddForm.js +20 -34
- package/build/cjs/components/Interpretations/InterpretationModal/CommentDeleteButton.js +11 -36
- package/build/cjs/components/Interpretations/InterpretationModal/CommentUpdateForm.js +11 -27
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationModal.js +11 -68
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationThread.js +11 -24
- package/build/cjs/components/Interpretations/InterpretationsProvider/InterpretationsManager.js +275 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/InterpretationsProvider.js +28 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/__tests__/groupInterpretationIdsByDate.spec.js +37 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/__tests__/hooks.spec.js +565 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/groupInterpretationIdsByDate.js +16 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/hooks.js +278 -0
- package/build/cjs/components/Interpretations/InterpretationsProvider/index.js +12 -0
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationForm.js +25 -30
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationList.js +8 -38
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +22 -73
- package/build/cjs/components/Interpretations/common/Interpretation/Interpretation.js +20 -34
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +10 -12
- package/build/cjs/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +13 -24
- package/build/cjs/components/Interpretations/common/Message/MessageEditorContainer.js +3 -3
- package/build/cjs/index.js +72 -63
- package/build/cjs/locales/en/translations.json +10 -1
- package/build/cjs/modules/pivotTable/getHeaderForDisplay.js +1 -1
- package/build/es/__demo__/InterpretationsUnit.stories.js +9 -6
- package/build/es/__fixtures__/interpretationsMockData.js +198 -0
- package/build/es/components/Interpretations/DashboardItemInterpretations/DashboardInterpretationThread.js +48 -0
- package/build/es/components/Interpretations/DashboardItemInterpretations/DashboardItemInterpretations.js +45 -0
- package/build/es/components/Interpretations/DashboardItemInterpretations/index.js +1 -0
- package/build/es/components/Interpretations/InterpretationModal/Comment.js +14 -19
- package/build/es/components/Interpretations/InterpretationModal/CommentAddForm.js +21 -35
- package/build/es/components/Interpretations/InterpretationModal/CommentDeleteButton.js +11 -35
- package/build/es/components/Interpretations/InterpretationModal/CommentUpdateForm.js +12 -28
- package/build/es/components/Interpretations/InterpretationModal/InterpretationModal.js +12 -69
- package/build/es/components/Interpretations/InterpretationModal/InterpretationThread.js +11 -24
- package/build/es/components/Interpretations/InterpretationsProvider/InterpretationsManager.js +268 -0
- package/build/es/components/Interpretations/InterpretationsProvider/InterpretationsProvider.js +19 -0
- package/build/es/components/Interpretations/InterpretationsProvider/__tests__/groupInterpretationIdsByDate.spec.js +35 -0
- package/build/es/components/Interpretations/InterpretationsProvider/__tests__/hooks.spec.js +561 -0
- package/build/es/components/Interpretations/InterpretationsProvider/groupInterpretationIdsByDate.js +9 -0
- package/build/es/components/Interpretations/InterpretationsProvider/hooks.js +258 -0
- package/build/es/components/Interpretations/InterpretationsProvider/index.js +1 -0
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationForm.js +26 -31
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationList.js +8 -38
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +23 -75
- package/build/es/components/Interpretations/common/Interpretation/Interpretation.js +21 -35
- package/build/es/components/Interpretations/common/Interpretation/InterpretationDeleteButton.js +11 -13
- package/build/es/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +14 -25
- package/build/es/components/Interpretations/common/Message/MessageEditorContainer.js +3 -3
- package/build/es/index.js +3 -1
- package/build/es/locales/en/translations.json +10 -1
- package/build/es/modules/pivotTable/getHeaderForDisplay.js +1 -1
- package/package.json +1 -1
- package/build/cjs/components/Interpretations/common/Interpretation/useLike.js +0 -56
- package/build/es/components/Interpretations/common/Interpretation/useLike.js +0 -50
package/build/cjs/index.js
CHANGED
|
@@ -21,9 +21,10 @@ var _exportNames = {
|
|
|
21
21
|
VisTypeIcon: true,
|
|
22
22
|
LegendKey: true,
|
|
23
23
|
AboutAOUnit: true,
|
|
24
|
+
DashboardItemInterpretations: true,
|
|
24
25
|
InterpretationsUnit: true,
|
|
26
|
+
InterpretationsProvider: true,
|
|
25
27
|
InterpretationModal: true,
|
|
26
|
-
InterpretationThread: true,
|
|
27
28
|
TranslationDialog: true,
|
|
28
29
|
OfflineTooltip: true,
|
|
29
30
|
CachedDataQueryProvider: true,
|
|
@@ -319,13 +320,13 @@ Object.defineProperty(exports, "Analytics", {
|
|
|
319
320
|
Object.defineProperty(exports, "BIMONTHLY", {
|
|
320
321
|
enumerable: true,
|
|
321
322
|
get: function () {
|
|
322
|
-
return
|
|
323
|
+
return _index12.BIMONTHLY;
|
|
323
324
|
}
|
|
324
325
|
});
|
|
325
326
|
Object.defineProperty(exports, "BIWEEKLY", {
|
|
326
327
|
enumerable: true,
|
|
327
328
|
get: function () {
|
|
328
|
-
return
|
|
329
|
+
return _index12.BIWEEKLY;
|
|
329
330
|
}
|
|
330
331
|
});
|
|
331
332
|
Object.defineProperty(exports, "COLOR_SET_BASIC", {
|
|
@@ -385,7 +386,7 @@ Object.defineProperty(exports, "CachedDataQueryProvider", {
|
|
|
385
386
|
Object.defineProperty(exports, "DAILY", {
|
|
386
387
|
enumerable: true,
|
|
387
388
|
get: function () {
|
|
388
|
-
return
|
|
389
|
+
return _index12.DAILY;
|
|
389
390
|
}
|
|
390
391
|
});
|
|
391
392
|
Object.defineProperty(exports, "DEFAULT_AXIS_IDS", {
|
|
@@ -550,6 +551,12 @@ Object.defineProperty(exports, "DIMENSION_TYPE_PROGRAM_INDICATOR", {
|
|
|
550
551
|
return _dataTypes.DIMENSION_TYPE_PROGRAM_INDICATOR;
|
|
551
552
|
}
|
|
552
553
|
});
|
|
554
|
+
Object.defineProperty(exports, "DashboardItemInterpretations", {
|
|
555
|
+
enumerable: true,
|
|
556
|
+
get: function () {
|
|
557
|
+
return _index2.DashboardItemInterpretations;
|
|
558
|
+
}
|
|
559
|
+
});
|
|
553
560
|
Object.defineProperty(exports, "DashboardPluginWrapper", {
|
|
554
561
|
enumerable: true,
|
|
555
562
|
get: function () {
|
|
@@ -595,7 +602,7 @@ Object.defineProperty(exports, "DynamicDimension", {
|
|
|
595
602
|
Object.defineProperty(exports, "FINANCIAL", {
|
|
596
603
|
enumerable: true,
|
|
597
604
|
get: function () {
|
|
598
|
-
return
|
|
605
|
+
return _index12.FINANCIAL;
|
|
599
606
|
}
|
|
600
607
|
});
|
|
601
608
|
Object.defineProperty(exports, "FONT_STYLE_AXIS_LABELS", {
|
|
@@ -685,25 +692,25 @@ Object.defineProperty(exports, "FONT_STYLE_VISUALIZATION_TITLE", {
|
|
|
685
692
|
Object.defineProperty(exports, "FYAPR", {
|
|
686
693
|
enumerable: true,
|
|
687
694
|
get: function () {
|
|
688
|
-
return
|
|
695
|
+
return _index12.FYAPR;
|
|
689
696
|
}
|
|
690
697
|
});
|
|
691
698
|
Object.defineProperty(exports, "FYJUL", {
|
|
692
699
|
enumerable: true,
|
|
693
700
|
get: function () {
|
|
694
|
-
return
|
|
701
|
+
return _index12.FYJUL;
|
|
695
702
|
}
|
|
696
703
|
});
|
|
697
704
|
Object.defineProperty(exports, "FYNOV", {
|
|
698
705
|
enumerable: true,
|
|
699
706
|
get: function () {
|
|
700
|
-
return
|
|
707
|
+
return _index12.FYNOV;
|
|
701
708
|
}
|
|
702
709
|
});
|
|
703
710
|
Object.defineProperty(exports, "FYOCT", {
|
|
704
711
|
enumerable: true,
|
|
705
712
|
get: function () {
|
|
706
|
-
return
|
|
713
|
+
return _index12.FYOCT;
|
|
707
714
|
}
|
|
708
715
|
});
|
|
709
716
|
Object.defineProperty(exports, "FileMenu", {
|
|
@@ -763,19 +770,19 @@ Object.defineProperty(exports, "ITEM_PROP_ID", {
|
|
|
763
770
|
Object.defineProperty(exports, "InterpretationModal", {
|
|
764
771
|
enumerable: true,
|
|
765
772
|
get: function () {
|
|
766
|
-
return
|
|
773
|
+
return _index5.InterpretationModal;
|
|
767
774
|
}
|
|
768
775
|
});
|
|
769
|
-
Object.defineProperty(exports, "
|
|
776
|
+
Object.defineProperty(exports, "InterpretationsProvider", {
|
|
770
777
|
enumerable: true,
|
|
771
778
|
get: function () {
|
|
772
|
-
return
|
|
779
|
+
return _index4.InterpretationsProvider;
|
|
773
780
|
}
|
|
774
781
|
});
|
|
775
782
|
Object.defineProperty(exports, "InterpretationsUnit", {
|
|
776
783
|
enumerable: true,
|
|
777
784
|
get: function () {
|
|
778
|
-
return
|
|
785
|
+
return _index3.InterpretationsUnit;
|
|
779
786
|
}
|
|
780
787
|
});
|
|
781
788
|
Object.defineProperty(exports, "LAYOUT", {
|
|
@@ -865,7 +872,7 @@ Object.defineProperty(exports, "LegendKey", {
|
|
|
865
872
|
Object.defineProperty(exports, "MONTHLY", {
|
|
866
873
|
enumerable: true,
|
|
867
874
|
get: function () {
|
|
868
|
-
return
|
|
875
|
+
return _index12.MONTHLY;
|
|
869
876
|
}
|
|
870
877
|
});
|
|
871
878
|
Object.defineProperty(exports, "OfflineTooltip", {
|
|
@@ -901,19 +908,19 @@ Object.defineProperty(exports, "PivotTable", {
|
|
|
901
908
|
Object.defineProperty(exports, "QUARTERLY", {
|
|
902
909
|
enumerable: true,
|
|
903
910
|
get: function () {
|
|
904
|
-
return
|
|
911
|
+
return _index12.QUARTERLY;
|
|
905
912
|
}
|
|
906
913
|
});
|
|
907
914
|
Object.defineProperty(exports, "SIXMONTHLY", {
|
|
908
915
|
enumerable: true,
|
|
909
916
|
get: function () {
|
|
910
|
-
return
|
|
917
|
+
return _index12.SIXMONTHLY;
|
|
911
918
|
}
|
|
912
919
|
});
|
|
913
920
|
Object.defineProperty(exports, "SIXMONTHLYAPR", {
|
|
914
921
|
enumerable: true,
|
|
915
922
|
get: function () {
|
|
916
|
-
return
|
|
923
|
+
return _index12.SIXMONTHLYAPR;
|
|
917
924
|
}
|
|
918
925
|
});
|
|
919
926
|
Object.defineProperty(exports, "TEXT_ALIGN_CENTER", {
|
|
@@ -937,25 +944,25 @@ Object.defineProperty(exports, "TEXT_ALIGN_RIGHT", {
|
|
|
937
944
|
Object.defineProperty(exports, "TranslationDialog", {
|
|
938
945
|
enumerable: true,
|
|
939
946
|
get: function () {
|
|
940
|
-
return
|
|
947
|
+
return _index7.TranslationDialog;
|
|
941
948
|
}
|
|
942
949
|
});
|
|
943
950
|
Object.defineProperty(exports, "USER_ORG_UNIT", {
|
|
944
951
|
enumerable: true,
|
|
945
952
|
get: function () {
|
|
946
|
-
return
|
|
953
|
+
return _index9.USER_ORG_UNIT;
|
|
947
954
|
}
|
|
948
955
|
});
|
|
949
956
|
Object.defineProperty(exports, "USER_ORG_UNIT_CHILDREN", {
|
|
950
957
|
enumerable: true,
|
|
951
958
|
get: function () {
|
|
952
|
-
return
|
|
959
|
+
return _index9.USER_ORG_UNIT_CHILDREN;
|
|
953
960
|
}
|
|
954
961
|
});
|
|
955
962
|
Object.defineProperty(exports, "USER_ORG_UNIT_GRANDCHILDREN", {
|
|
956
963
|
enumerable: true,
|
|
957
964
|
get: function () {
|
|
958
|
-
return
|
|
965
|
+
return _index9.USER_ORG_UNIT_GRANDCHILDREN;
|
|
959
966
|
}
|
|
960
967
|
});
|
|
961
968
|
Object.defineProperty(exports, "VALUE_TYPE_AGE", {
|
|
@@ -1267,43 +1274,43 @@ Object.defineProperty(exports, "VisualizationOptions", {
|
|
|
1267
1274
|
Object.defineProperty(exports, "WEEKLY", {
|
|
1268
1275
|
enumerable: true,
|
|
1269
1276
|
get: function () {
|
|
1270
|
-
return
|
|
1277
|
+
return _index12.WEEKLY;
|
|
1271
1278
|
}
|
|
1272
1279
|
});
|
|
1273
1280
|
Object.defineProperty(exports, "WEEKLYSAT", {
|
|
1274
1281
|
enumerable: true,
|
|
1275
1282
|
get: function () {
|
|
1276
|
-
return
|
|
1283
|
+
return _index12.WEEKLYSAT;
|
|
1277
1284
|
}
|
|
1278
1285
|
});
|
|
1279
1286
|
Object.defineProperty(exports, "WEEKLYSUN", {
|
|
1280
1287
|
enumerable: true,
|
|
1281
1288
|
get: function () {
|
|
1282
|
-
return
|
|
1289
|
+
return _index12.WEEKLYSUN;
|
|
1283
1290
|
}
|
|
1284
1291
|
});
|
|
1285
1292
|
Object.defineProperty(exports, "WEEKLYTHU", {
|
|
1286
1293
|
enumerable: true,
|
|
1287
1294
|
get: function () {
|
|
1288
|
-
return
|
|
1295
|
+
return _index12.WEEKLYTHU;
|
|
1289
1296
|
}
|
|
1290
1297
|
});
|
|
1291
1298
|
Object.defineProperty(exports, "WEEKLYWED", {
|
|
1292
1299
|
enumerable: true,
|
|
1293
1300
|
get: function () {
|
|
1294
|
-
return
|
|
1301
|
+
return _index12.WEEKLYWED;
|
|
1295
1302
|
}
|
|
1296
1303
|
});
|
|
1297
1304
|
Object.defineProperty(exports, "WEEKS_THIS_YEAR", {
|
|
1298
1305
|
enumerable: true,
|
|
1299
1306
|
get: function () {
|
|
1300
|
-
return
|
|
1307
|
+
return _index12.WEEKS_THIS_YEAR;
|
|
1301
1308
|
}
|
|
1302
1309
|
});
|
|
1303
1310
|
Object.defineProperty(exports, "YEARLY", {
|
|
1304
1311
|
enumerable: true,
|
|
1305
1312
|
get: function () {
|
|
1306
|
-
return
|
|
1313
|
+
return _index12.YEARLY;
|
|
1307
1314
|
}
|
|
1308
1315
|
});
|
|
1309
1316
|
Object.defineProperty(exports, "apiFetchDimensions", {
|
|
@@ -1393,7 +1400,7 @@ Object.defineProperty(exports, "axisIsEmpty", {
|
|
|
1393
1400
|
Object.defineProperty(exports, "canDimensionBeAddedToAxis", {
|
|
1394
1401
|
enumerable: true,
|
|
1395
1402
|
get: function () {
|
|
1396
|
-
return
|
|
1403
|
+
return _index10.canDimensionBeAddedToAxis;
|
|
1397
1404
|
}
|
|
1398
1405
|
});
|
|
1399
1406
|
Object.defineProperty(exports, "colorSets", {
|
|
@@ -1405,13 +1412,13 @@ Object.defineProperty(exports, "colorSets", {
|
|
|
1405
1412
|
Object.defineProperty(exports, "convertOuLevelsToUids", {
|
|
1406
1413
|
enumerable: true,
|
|
1407
1414
|
get: function () {
|
|
1408
|
-
return
|
|
1415
|
+
return _index0.convertOuLevelsToUids;
|
|
1409
1416
|
}
|
|
1410
1417
|
});
|
|
1411
1418
|
Object.defineProperty(exports, "createVisualization", {
|
|
1412
1419
|
enumerable: true,
|
|
1413
1420
|
get: function () {
|
|
1414
|
-
return
|
|
1421
|
+
return _index11.createVisualization;
|
|
1415
1422
|
}
|
|
1416
1423
|
});
|
|
1417
1424
|
Object.defineProperty(exports, "dataTypeMap", {
|
|
@@ -1501,31 +1508,31 @@ Object.defineProperty(exports, "getAdaptedUiLayoutByType", {
|
|
|
1501
1508
|
Object.defineProperty(exports, "getAllLockedDimensionIds", {
|
|
1502
1509
|
enumerable: true,
|
|
1503
1510
|
get: function () {
|
|
1504
|
-
return
|
|
1511
|
+
return _index10.getAllLockedDimensionIds;
|
|
1505
1512
|
}
|
|
1506
1513
|
});
|
|
1507
1514
|
Object.defineProperty(exports, "getAvailableAxes", {
|
|
1508
1515
|
enumerable: true,
|
|
1509
1516
|
get: function () {
|
|
1510
|
-
return
|
|
1517
|
+
return _index10.getAvailableAxes;
|
|
1511
1518
|
}
|
|
1512
1519
|
});
|
|
1513
1520
|
Object.defineProperty(exports, "getAxisMaxNumberOfDimensions", {
|
|
1514
1521
|
enumerable: true,
|
|
1515
1522
|
get: function () {
|
|
1516
|
-
return
|
|
1523
|
+
return _index10.getAxisMaxNumberOfDimensions;
|
|
1517
1524
|
}
|
|
1518
1525
|
});
|
|
1519
1526
|
Object.defineProperty(exports, "getAxisMaxNumberOfItems", {
|
|
1520
1527
|
enumerable: true,
|
|
1521
1528
|
get: function () {
|
|
1522
|
-
return
|
|
1529
|
+
return _index10.getAxisMaxNumberOfItems;
|
|
1523
1530
|
}
|
|
1524
1531
|
});
|
|
1525
1532
|
Object.defineProperty(exports, "getAxisMinNumberOfDimensions", {
|
|
1526
1533
|
enumerable: true,
|
|
1527
1534
|
get: function () {
|
|
1528
|
-
return
|
|
1535
|
+
return _index10.getAxisMinNumberOfDimensions;
|
|
1529
1536
|
}
|
|
1530
1537
|
});
|
|
1531
1538
|
Object.defineProperty(exports, "getAxisName", {
|
|
@@ -1543,7 +1550,7 @@ Object.defineProperty(exports, "getAxisNameByLayoutType", {
|
|
|
1543
1550
|
Object.defineProperty(exports, "getAxisPerLockedDimension", {
|
|
1544
1551
|
enumerable: true,
|
|
1545
1552
|
get: function () {
|
|
1546
|
-
return
|
|
1553
|
+
return _index10.getAxisPerLockedDimension;
|
|
1547
1554
|
}
|
|
1548
1555
|
});
|
|
1549
1556
|
Object.defineProperty(exports, "getColorByValueFromLegendSet", {
|
|
@@ -1561,13 +1568,13 @@ Object.defineProperty(exports, "getDimensionById", {
|
|
|
1561
1568
|
Object.defineProperty(exports, "getDimensionMaxNumberOfItems", {
|
|
1562
1569
|
enumerable: true,
|
|
1563
1570
|
get: function () {
|
|
1564
|
-
return
|
|
1571
|
+
return _index10.getDimensionMaxNumberOfItems;
|
|
1565
1572
|
}
|
|
1566
1573
|
});
|
|
1567
1574
|
Object.defineProperty(exports, "getDisallowedDimensions", {
|
|
1568
1575
|
enumerable: true,
|
|
1569
1576
|
get: function () {
|
|
1570
|
-
return
|
|
1577
|
+
return _index10.getDisallowedDimensions;
|
|
1571
1578
|
}
|
|
1572
1579
|
});
|
|
1573
1580
|
Object.defineProperty(exports, "getDisplayNameByVisType", {
|
|
@@ -1645,13 +1652,13 @@ Object.defineProperty(exports, "getTextAlignOptions", {
|
|
|
1645
1652
|
Object.defineProperty(exports, "getTransferableDimension", {
|
|
1646
1653
|
enumerable: true,
|
|
1647
1654
|
get: function () {
|
|
1648
|
-
return
|
|
1655
|
+
return _index10.getTransferableDimension;
|
|
1649
1656
|
}
|
|
1650
1657
|
});
|
|
1651
1658
|
Object.defineProperty(exports, "hasAxisTooManyItems", {
|
|
1652
1659
|
enumerable: true,
|
|
1653
1660
|
get: function () {
|
|
1654
|
-
return
|
|
1661
|
+
return _index10.hasAxisTooManyItems;
|
|
1655
1662
|
}
|
|
1656
1663
|
});
|
|
1657
1664
|
Object.defineProperty(exports, "hasCustomAxes", {
|
|
@@ -1663,19 +1670,19 @@ Object.defineProperty(exports, "hasCustomAxes", {
|
|
|
1663
1670
|
Object.defineProperty(exports, "hasDimensionTooManyItems", {
|
|
1664
1671
|
enumerable: true,
|
|
1665
1672
|
get: function () {
|
|
1666
|
-
return
|
|
1673
|
+
return _index10.hasDimensionTooManyItems;
|
|
1667
1674
|
}
|
|
1668
1675
|
});
|
|
1669
1676
|
Object.defineProperty(exports, "hasRelativeItems", {
|
|
1670
1677
|
enumerable: true,
|
|
1671
1678
|
get: function () {
|
|
1672
|
-
return
|
|
1679
|
+
return _index1.hasRelativeItems;
|
|
1673
1680
|
}
|
|
1674
1681
|
});
|
|
1675
1682
|
Object.defineProperty(exports, "isAxisFull", {
|
|
1676
1683
|
enumerable: true,
|
|
1677
1684
|
get: function () {
|
|
1678
|
-
return
|
|
1685
|
+
return _index10.isAxisFull;
|
|
1679
1686
|
}
|
|
1680
1687
|
});
|
|
1681
1688
|
Object.defineProperty(exports, "isColumnBasedType", {
|
|
@@ -1687,7 +1694,7 @@ Object.defineProperty(exports, "isColumnBasedType", {
|
|
|
1687
1694
|
Object.defineProperty(exports, "isDimensionLocked", {
|
|
1688
1695
|
enumerable: true,
|
|
1689
1696
|
get: function () {
|
|
1690
|
-
return
|
|
1697
|
+
return _index10.isDimensionLocked;
|
|
1691
1698
|
}
|
|
1692
1699
|
});
|
|
1693
1700
|
Object.defineProperty(exports, "isDualAxisType", {
|
|
@@ -1843,7 +1850,7 @@ Object.defineProperty(exports, "layoutReplaceDimension", {
|
|
|
1843
1850
|
Object.defineProperty(exports, "ouIdHelper", {
|
|
1844
1851
|
enumerable: true,
|
|
1845
1852
|
get: function () {
|
|
1846
|
-
return
|
|
1853
|
+
return _index9.ouIdHelper;
|
|
1847
1854
|
}
|
|
1848
1855
|
});
|
|
1849
1856
|
Object.defineProperty(exports, "preparePayloadForSave", {
|
|
@@ -1904,32 +1911,34 @@ var _utils = require("./components/FileMenu/utils.js");
|
|
|
1904
1911
|
var _VisTypeIcon = _interopRequireDefault(require("./components/VisTypeIcon.js"));
|
|
1905
1912
|
var _LegendKey = _interopRequireDefault(require("./components/LegendKey/LegendKey.js"));
|
|
1906
1913
|
var _AboutAOUnit = _interopRequireDefault(require("./components/AboutAOUnit/AboutAOUnit.js"));
|
|
1907
|
-
var _index2 = require("./components/Interpretations/
|
|
1908
|
-
var _index3 = require("./components/Interpretations/
|
|
1909
|
-
var _index4 = require("./components/
|
|
1910
|
-
|
|
1914
|
+
var _index2 = require("./components/Interpretations/DashboardItemInterpretations/index.js");
|
|
1915
|
+
var _index3 = require("./components/Interpretations/InterpretationsUnit/index.js");
|
|
1916
|
+
var _index4 = require("./components/Interpretations/InterpretationsProvider/index.js");
|
|
1917
|
+
var _index5 = require("./components/Interpretations/InterpretationModal/index.js");
|
|
1918
|
+
var _index6 = require("./components/Toolbar/index.js");
|
|
1919
|
+
Object.keys(_index6).forEach(function (key) {
|
|
1911
1920
|
if (key === "default" || key === "__esModule") return;
|
|
1912
1921
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1913
|
-
if (key in exports && exports[key] ===
|
|
1922
|
+
if (key in exports && exports[key] === _index6[key]) return;
|
|
1914
1923
|
Object.defineProperty(exports, key, {
|
|
1915
1924
|
enumerable: true,
|
|
1916
1925
|
get: function () {
|
|
1917
|
-
return
|
|
1926
|
+
return _index6[key];
|
|
1918
1927
|
}
|
|
1919
1928
|
});
|
|
1920
1929
|
});
|
|
1921
|
-
var
|
|
1930
|
+
var _index7 = require("./components/TranslationDialog/index.js");
|
|
1922
1931
|
var _OfflineTooltip = require("./components/OfflineTooltip.js");
|
|
1923
1932
|
var _CachedDataQueryProvider = require("./components/CachedDataQueryProvider.js");
|
|
1924
|
-
var
|
|
1925
|
-
Object.keys(
|
|
1933
|
+
var _index8 = require("./components/RichText/index.js");
|
|
1934
|
+
Object.keys(_index8).forEach(function (key) {
|
|
1926
1935
|
if (key === "default" || key === "__esModule") return;
|
|
1927
1936
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1928
|
-
if (key in exports && exports[key] ===
|
|
1937
|
+
if (key in exports && exports[key] === _index8[key]) return;
|
|
1929
1938
|
Object.defineProperty(exports, key, {
|
|
1930
1939
|
enumerable: true,
|
|
1931
1940
|
get: function () {
|
|
1932
|
-
return
|
|
1941
|
+
return _index8[key];
|
|
1933
1942
|
}
|
|
1934
1943
|
});
|
|
1935
1944
|
});
|
|
@@ -1939,10 +1948,10 @@ var _dimensions = require("./api/dimensions.js");
|
|
|
1939
1948
|
var _organisationUnits = require("./api/organisationUnits.js");
|
|
1940
1949
|
var _axis = require("./modules/axis.js");
|
|
1941
1950
|
var _predefinedDimensions = require("./modules/predefinedDimensions.js");
|
|
1942
|
-
var
|
|
1943
|
-
var
|
|
1951
|
+
var _index9 = require("./modules/ouIdHelper/index.js");
|
|
1952
|
+
var _index0 = require("./modules/ouLevelUtils/index.js");
|
|
1944
1953
|
var _getAdaptedUiLayoutByType = require("./modules/getAdaptedUiLayoutByType.js");
|
|
1945
|
-
var
|
|
1954
|
+
var _index1 = require("./modules/relativeItems/index.js");
|
|
1946
1955
|
var _layout = require("./modules/layout/layout.js");
|
|
1947
1956
|
var _layoutFilterDimensions = require("./modules/layout/layoutFilterDimensions.js");
|
|
1948
1957
|
var _layoutGetAllAxes = require("./modules/layout/layoutGetAllAxes.js");
|
|
@@ -1982,15 +1991,15 @@ var _itemIsValid = require("./modules/layout/itemIsValid.js");
|
|
|
1982
1991
|
var _visTypeToLayoutType = require("./modules/visTypeToLayoutType.js");
|
|
1983
1992
|
var _visTypes = require("./modules/visTypes.js");
|
|
1984
1993
|
var _layoutTypes = require("./modules/layoutTypes.js");
|
|
1985
|
-
var
|
|
1986
|
-
var
|
|
1994
|
+
var _index10 = require("./modules/layoutUiRules/index.js");
|
|
1995
|
+
var _index11 = require("./visualizations/index.js");
|
|
1987
1996
|
var _fontStyle = require("./modules/fontStyle.js");
|
|
1988
1997
|
var _legends = require("./modules/legends.js");
|
|
1989
1998
|
var _hideEmptyRowItems = require("./modules/hideEmptyRowItems.js");
|
|
1990
1999
|
var _renderValue = require("./modules/renderValue.js");
|
|
1991
2000
|
var _response = require("./modules/response/event/response.js");
|
|
1992
2001
|
var _colorSets = require("./visualizations/util/colors/colorSets.js");
|
|
1993
|
-
var
|
|
2002
|
+
var _index12 = require("./components/PeriodDimension/utils/index.js");
|
|
1994
2003
|
var _relativePeriods = require("./components/PeriodDimension/utils/relativePeriods.js");
|
|
1995
2004
|
var _fixedPeriods = require("./components/PeriodDimension/utils/fixedPeriods.js");
|
|
1996
2005
|
var _VisualizationOptions = _interopRequireDefault(require("./components/Options/VisualizationOptions.js"));
|
|
@@ -164,10 +164,14 @@
|
|
|
164
164
|
"map": "map",
|
|
165
165
|
"visualization": "visualization",
|
|
166
166
|
"Untitled {{visualizationType}}, {{date}}": "Untitled {{visualizationType}}, {{date}}",
|
|
167
|
+
"Back to all interpretations": "Back to all interpretations",
|
|
168
|
+
"Could not load interpretation details": "Could not load interpretation details",
|
|
169
|
+
"The request to fetch interpretation comments failed": "The request to fetch interpretation comments failed",
|
|
167
170
|
"Edit": "Edit",
|
|
168
171
|
"Write a reply": "Write a reply",
|
|
172
|
+
"Could not post reply": "Could not post reply",
|
|
169
173
|
"Post reply": "Post reply",
|
|
170
|
-
"
|
|
174
|
+
"Could not delete comment": "Could not delete comment",
|
|
171
175
|
"Could not update comment": "Could not update comment",
|
|
172
176
|
"Enter comment text": "Enter comment text",
|
|
173
177
|
"Update": "Update",
|
|
@@ -176,9 +180,12 @@
|
|
|
176
180
|
"The interpretation couldn’t be displayed. Try again or contact your system administrator.": "The interpretation couldn’t be displayed. Try again or contact your system administrator.",
|
|
177
181
|
"Hide interpretation": "Hide interpretation",
|
|
178
182
|
"Write an interpretation": "Write an interpretation",
|
|
183
|
+
"Could not post interpretation": "Could not post interpretation",
|
|
179
184
|
"Other people viewing this interpretation in the future may see more data.": "Other people viewing this interpretation in the future may see more data.",
|
|
180
185
|
"Post interpretation": "Post interpretation",
|
|
181
186
|
"Interpretations": "Interpretations",
|
|
187
|
+
"Error loading interpretations": "Error loading interpretations",
|
|
188
|
+
"Could not load interpretations": "Could not load interpretations",
|
|
182
189
|
"Reply": "Reply",
|
|
183
190
|
"{{count}} replies": "{{count}} reply",
|
|
184
191
|
"{{count}} replies_plural": "{{count}} replies",
|
|
@@ -188,7 +195,9 @@
|
|
|
188
195
|
"See interpretation": "See interpretation",
|
|
189
196
|
"Open in app": "Open in app",
|
|
190
197
|
"Share": "Share",
|
|
198
|
+
"Could not delete interpretation": "Could not delete interpretation",
|
|
191
199
|
"Manage sharing": "Manage sharing",
|
|
200
|
+
"Could not update interpretation text": "Could not update interpretation text",
|
|
192
201
|
"Could not update interpretation": "Could not update interpretation",
|
|
193
202
|
"Enter interpretation text": "Enter interpretation text",
|
|
194
203
|
"Not available offline": "Not available offline",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomDataProvider } from '@dhis2/app-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { InterpretationsProvider } from '../components/Interpretations/InterpretationsProvider/InterpretationsProvider.js';
|
|
3
4
|
import { InterpretationsUnit } from '../components/Interpretations/InterpretationsUnit/index.js';
|
|
4
5
|
export default {
|
|
5
6
|
title: 'IntepretationsUnit'
|
|
@@ -11,15 +12,16 @@ export const Default = () => {
|
|
|
11
12
|
interpretations: []
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
}, /*#__PURE__*/React.createElement(
|
|
15
|
+
}, /*#__PURE__*/React.createElement(InterpretationsProvider, {
|
|
15
16
|
currentUser: {
|
|
16
17
|
name: 'Tom Wakiki'
|
|
17
|
-
}
|
|
18
|
+
}
|
|
19
|
+
}, /*#__PURE__*/React.createElement(InterpretationsUnit, {
|
|
18
20
|
id: "abcd",
|
|
19
21
|
onReplyIconClick: Function.prototype,
|
|
20
22
|
type: "eventVisualization",
|
|
21
23
|
visualizationHasTimeDimension: true
|
|
22
|
-
}));
|
|
24
|
+
})));
|
|
23
25
|
};
|
|
24
26
|
export const WithNoTimeDimensionsWarning = () => {
|
|
25
27
|
return /*#__PURE__*/React.createElement(CustomDataProvider, {
|
|
@@ -28,15 +30,16 @@ export const WithNoTimeDimensionsWarning = () => {
|
|
|
28
30
|
interpretations: []
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
|
-
}, /*#__PURE__*/React.createElement(
|
|
33
|
+
}, /*#__PURE__*/React.createElement(InterpretationsProvider, {
|
|
32
34
|
currentUser: {
|
|
33
35
|
name: 'Tom Wakiki'
|
|
34
|
-
}
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React.createElement(InterpretationsUnit, {
|
|
35
38
|
id: "abcd",
|
|
36
39
|
onReplyIconClick: Function.prototype,
|
|
37
40
|
type: "eventVisualization",
|
|
38
41
|
visualizationHasTimeDimension: false
|
|
39
|
-
}));
|
|
42
|
+
})));
|
|
40
43
|
};
|
|
41
44
|
WithNoTimeDimensionsWarning.story = {
|
|
42
45
|
name: 'With no time dimensions warning'
|