@dhis2/analytics 26.6.14 → 26.7.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.
Files changed (52) hide show
  1. package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +5 -3
  2. package/build/cjs/components/Interpretations/InterpretationModal/CommentAddForm.js +5 -4
  3. package/build/cjs/components/Interpretations/InterpretationModal/CommentUpdateForm.js +4 -3
  4. package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationForm.js +5 -4
  5. package/build/cjs/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +5 -4
  6. package/build/cjs/components/Interpretations/common/Message/Message.js +2 -2
  7. package/build/cjs/components/Interpretations/common/Message/MessageEditorContainer.js +5 -5
  8. package/build/cjs/components/Interpretations/common/index.js +0 -11
  9. package/build/cjs/components/{Interpretations/common/RichTextEditor/RichTextEditor.js → RichText/Editor/Editor.js} +76 -53
  10. package/build/cjs/components/RichText/Editor/__tests__/Editor.spec.js +38 -0
  11. package/build/cjs/components/RichText/Editor/__tests__/convertCtrlKey.spec.js +204 -0
  12. package/build/cjs/components/{Interpretations/common/RichTextEditor → RichText/Editor}/markdownHandler.js +12 -6
  13. package/build/cjs/components/{Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js → RichText/Editor/styles/Editor.style.js} +2 -2
  14. package/build/cjs/components/RichText/Parser/MdParser.js +106 -0
  15. package/build/cjs/components/RichText/Parser/Parser.js +35 -0
  16. package/build/cjs/components/RichText/Parser/__tests__/MdParser.spec.js +42 -0
  17. package/build/cjs/components/RichText/Parser/__tests__/Parser.spec.js +41 -0
  18. package/build/cjs/components/RichText/index.js +26 -0
  19. package/build/cjs/components/{Interpretations/common/UserMention → UserMention}/UserMentionWrapper.js +19 -9
  20. package/build/cjs/components/{Interpretations/common/UserMention → UserMention}/styles/UserMentionWrapper.style.js +2 -2
  21. package/build/cjs/components/{Interpretations/common/UserMention → UserMention}/useUserSearchResults.js +2 -2
  22. package/build/cjs/index.js +58 -46
  23. package/build/cjs/locales/en/translations.json +11 -11
  24. package/build/es/components/AboutAOUnit/AboutAOUnit.js +5 -3
  25. package/build/es/components/Interpretations/InterpretationModal/CommentAddForm.js +2 -1
  26. package/build/es/components/Interpretations/InterpretationModal/CommentUpdateForm.js +2 -1
  27. package/build/es/components/Interpretations/InterpretationsUnit/InterpretationForm.js +3 -2
  28. package/build/es/components/Interpretations/common/Interpretation/InterpretationUpdateForm.js +2 -1
  29. package/build/es/components/Interpretations/common/Message/Message.js +1 -1
  30. package/build/es/components/Interpretations/common/Message/MessageEditorContainer.js +5 -5
  31. package/build/es/components/Interpretations/common/index.js +0 -1
  32. package/build/es/components/{Interpretations/common/RichTextEditor/RichTextEditor.js → RichText/Editor/Editor.js} +51 -28
  33. package/build/es/components/RichText/Editor/__tests__/Editor.spec.js +35 -0
  34. package/build/es/components/RichText/Editor/__tests__/convertCtrlKey.spec.js +202 -0
  35. package/build/es/components/{Interpretations/common/RichTextEditor → RichText/Editor}/markdownHandler.js +12 -6
  36. package/build/es/components/{Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js → RichText/Editor/styles/Editor.style.js} +2 -2
  37. package/build/es/components/RichText/Parser/MdParser.js +98 -0
  38. package/build/es/components/RichText/Parser/Parser.js +25 -0
  39. package/build/es/components/RichText/Parser/__tests__/MdParser.spec.js +40 -0
  40. package/build/es/components/RichText/Parser/__tests__/Parser.spec.js +38 -0
  41. package/build/es/components/RichText/index.js +3 -0
  42. package/build/es/components/{Interpretations/common/UserMention → UserMention}/UserMentionWrapper.js +19 -8
  43. package/build/es/components/UserMention/styles/UserMentionWrapper.style.js +16 -0
  44. package/build/es/components/{Interpretations/common/UserMention → UserMention}/useUserSearchResults.js +2 -2
  45. package/build/es/index.js +1 -0
  46. package/build/es/locales/en/translations.json +11 -11
  47. package/package.json +2 -2
  48. package/build/cjs/components/Interpretations/common/RichTextEditor/index.js +0 -12
  49. package/build/es/components/Interpretations/common/RichTextEditor/index.js +0 -1
  50. package/build/es/components/Interpretations/common/UserMention/styles/UserMentionWrapper.style.js +0 -16
  51. /package/build/cjs/components/{Interpretations/common/UserMention → UserMention}/UserList.js +0 -0
  52. /package/build/es/components/{Interpretations/common/UserMention → UserMention}/UserList.js +0 -0
@@ -300,13 +300,13 @@ Object.defineProperty(exports, "Analytics", {
300
300
  Object.defineProperty(exports, "BIMONTHLY", {
301
301
  enumerable: true,
302
302
  get: function () {
303
- return _index11.BIMONTHLY;
303
+ return _index12.BIMONTHLY;
304
304
  }
305
305
  });
306
306
  Object.defineProperty(exports, "BIWEEKLY", {
307
307
  enumerable: true,
308
308
  get: function () {
309
- return _index11.BIWEEKLY;
309
+ return _index12.BIWEEKLY;
310
310
  }
311
311
  });
312
312
  Object.defineProperty(exports, "COLOR_SET_BASIC", {
@@ -366,7 +366,7 @@ Object.defineProperty(exports, "CachedDataQueryProvider", {
366
366
  Object.defineProperty(exports, "DAILY", {
367
367
  enumerable: true,
368
368
  get: function () {
369
- return _index11.DAILY;
369
+ return _index12.DAILY;
370
370
  }
371
371
  });
372
372
  Object.defineProperty(exports, "DEFAULT_AXIS_IDS", {
@@ -570,7 +570,7 @@ Object.defineProperty(exports, "DynamicDimension", {
570
570
  Object.defineProperty(exports, "FINANCIAL", {
571
571
  enumerable: true,
572
572
  get: function () {
573
- return _index11.FINANCIAL;
573
+ return _index12.FINANCIAL;
574
574
  }
575
575
  });
576
576
  Object.defineProperty(exports, "FONT_STYLE_AXIS_LABELS", {
@@ -660,25 +660,25 @@ Object.defineProperty(exports, "FONT_STYLE_VISUALIZATION_TITLE", {
660
660
  Object.defineProperty(exports, "FYAPR", {
661
661
  enumerable: true,
662
662
  get: function () {
663
- return _index11.FYAPR;
663
+ return _index12.FYAPR;
664
664
  }
665
665
  });
666
666
  Object.defineProperty(exports, "FYJUL", {
667
667
  enumerable: true,
668
668
  get: function () {
669
- return _index11.FYJUL;
669
+ return _index12.FYJUL;
670
670
  }
671
671
  });
672
672
  Object.defineProperty(exports, "FYNOV", {
673
673
  enumerable: true,
674
674
  get: function () {
675
- return _index11.FYNOV;
675
+ return _index12.FYNOV;
676
676
  }
677
677
  });
678
678
  Object.defineProperty(exports, "FYOCT", {
679
679
  enumerable: true,
680
680
  get: function () {
681
- return _index11.FYOCT;
681
+ return _index12.FYOCT;
682
682
  }
683
683
  });
684
684
  Object.defineProperty(exports, "FileMenu", {
@@ -816,7 +816,7 @@ Object.defineProperty(exports, "LegendKey", {
816
816
  Object.defineProperty(exports, "MONTHLY", {
817
817
  enumerable: true,
818
818
  get: function () {
819
- return _index11.MONTHLY;
819
+ return _index12.MONTHLY;
820
820
  }
821
821
  });
822
822
  Object.defineProperty(exports, "OfflineTooltip", {
@@ -846,19 +846,19 @@ Object.defineProperty(exports, "PivotTable", {
846
846
  Object.defineProperty(exports, "QUARTERLY", {
847
847
  enumerable: true,
848
848
  get: function () {
849
- return _index11.QUARTERLY;
849
+ return _index12.QUARTERLY;
850
850
  }
851
851
  });
852
852
  Object.defineProperty(exports, "SIXMONTHLY", {
853
853
  enumerable: true,
854
854
  get: function () {
855
- return _index11.SIXMONTHLY;
855
+ return _index12.SIXMONTHLY;
856
856
  }
857
857
  });
858
858
  Object.defineProperty(exports, "SIXMONTHLYAPR", {
859
859
  enumerable: true,
860
860
  get: function () {
861
- return _index11.SIXMONTHLYAPR;
861
+ return _index12.SIXMONTHLYAPR;
862
862
  }
863
863
  });
864
864
  Object.defineProperty(exports, "TEXT_ALIGN_CENTER", {
@@ -888,19 +888,19 @@ Object.defineProperty(exports, "TranslationDialog", {
888
888
  Object.defineProperty(exports, "USER_ORG_UNIT", {
889
889
  enumerable: true,
890
890
  get: function () {
891
- return _index6.USER_ORG_UNIT;
891
+ return _index7.USER_ORG_UNIT;
892
892
  }
893
893
  });
894
894
  Object.defineProperty(exports, "USER_ORG_UNIT_CHILDREN", {
895
895
  enumerable: true,
896
896
  get: function () {
897
- return _index6.USER_ORG_UNIT_CHILDREN;
897
+ return _index7.USER_ORG_UNIT_CHILDREN;
898
898
  }
899
899
  });
900
900
  Object.defineProperty(exports, "USER_ORG_UNIT_GRANDCHILDREN", {
901
901
  enumerable: true,
902
902
  get: function () {
903
- return _index6.USER_ORG_UNIT_GRANDCHILDREN;
903
+ return _index7.USER_ORG_UNIT_GRANDCHILDREN;
904
904
  }
905
905
  });
906
906
  Object.defineProperty(exports, "VALUE_TYPE_AGE", {
@@ -1164,43 +1164,43 @@ Object.defineProperty(exports, "VisualizationOptions", {
1164
1164
  Object.defineProperty(exports, "WEEKLY", {
1165
1165
  enumerable: true,
1166
1166
  get: function () {
1167
- return _index11.WEEKLY;
1167
+ return _index12.WEEKLY;
1168
1168
  }
1169
1169
  });
1170
1170
  Object.defineProperty(exports, "WEEKLYSAT", {
1171
1171
  enumerable: true,
1172
1172
  get: function () {
1173
- return _index11.WEEKLYSAT;
1173
+ return _index12.WEEKLYSAT;
1174
1174
  }
1175
1175
  });
1176
1176
  Object.defineProperty(exports, "WEEKLYSUN", {
1177
1177
  enumerable: true,
1178
1178
  get: function () {
1179
- return _index11.WEEKLYSUN;
1179
+ return _index12.WEEKLYSUN;
1180
1180
  }
1181
1181
  });
1182
1182
  Object.defineProperty(exports, "WEEKLYTHU", {
1183
1183
  enumerable: true,
1184
1184
  get: function () {
1185
- return _index11.WEEKLYTHU;
1185
+ return _index12.WEEKLYTHU;
1186
1186
  }
1187
1187
  });
1188
1188
  Object.defineProperty(exports, "WEEKLYWED", {
1189
1189
  enumerable: true,
1190
1190
  get: function () {
1191
- return _index11.WEEKLYWED;
1191
+ return _index12.WEEKLYWED;
1192
1192
  }
1193
1193
  });
1194
1194
  Object.defineProperty(exports, "WEEKS_THIS_YEAR", {
1195
1195
  enumerable: true,
1196
1196
  get: function () {
1197
- return _index11.WEEKS_THIS_YEAR;
1197
+ return _index12.WEEKS_THIS_YEAR;
1198
1198
  }
1199
1199
  });
1200
1200
  Object.defineProperty(exports, "YEARLY", {
1201
1201
  enumerable: true,
1202
1202
  get: function () {
1203
- return _index11.YEARLY;
1203
+ return _index12.YEARLY;
1204
1204
  }
1205
1205
  });
1206
1206
  Object.defineProperty(exports, "apiFetchDimensions", {
@@ -1290,7 +1290,7 @@ Object.defineProperty(exports, "axisIsEmpty", {
1290
1290
  Object.defineProperty(exports, "canDimensionBeAddedToAxis", {
1291
1291
  enumerable: true,
1292
1292
  get: function () {
1293
- return _index9.canDimensionBeAddedToAxis;
1293
+ return _index10.canDimensionBeAddedToAxis;
1294
1294
  }
1295
1295
  });
1296
1296
  Object.defineProperty(exports, "colorSets", {
@@ -1302,13 +1302,13 @@ Object.defineProperty(exports, "colorSets", {
1302
1302
  Object.defineProperty(exports, "convertOuLevelsToUids", {
1303
1303
  enumerable: true,
1304
1304
  get: function () {
1305
- return _index7.convertOuLevelsToUids;
1305
+ return _index8.convertOuLevelsToUids;
1306
1306
  }
1307
1307
  });
1308
1308
  Object.defineProperty(exports, "createVisualization", {
1309
1309
  enumerable: true,
1310
1310
  get: function () {
1311
- return _index10.createVisualization;
1311
+ return _index11.createVisualization;
1312
1312
  }
1313
1313
  });
1314
1314
  Object.defineProperty(exports, "dataTypeMap", {
@@ -1398,31 +1398,31 @@ Object.defineProperty(exports, "getAdaptedUiLayoutByType", {
1398
1398
  Object.defineProperty(exports, "getAllLockedDimensionIds", {
1399
1399
  enumerable: true,
1400
1400
  get: function () {
1401
- return _index9.getAllLockedDimensionIds;
1401
+ return _index10.getAllLockedDimensionIds;
1402
1402
  }
1403
1403
  });
1404
1404
  Object.defineProperty(exports, "getAvailableAxes", {
1405
1405
  enumerable: true,
1406
1406
  get: function () {
1407
- return _index9.getAvailableAxes;
1407
+ return _index10.getAvailableAxes;
1408
1408
  }
1409
1409
  });
1410
1410
  Object.defineProperty(exports, "getAxisMaxNumberOfDimensions", {
1411
1411
  enumerable: true,
1412
1412
  get: function () {
1413
- return _index9.getAxisMaxNumberOfDimensions;
1413
+ return _index10.getAxisMaxNumberOfDimensions;
1414
1414
  }
1415
1415
  });
1416
1416
  Object.defineProperty(exports, "getAxisMaxNumberOfItems", {
1417
1417
  enumerable: true,
1418
1418
  get: function () {
1419
- return _index9.getAxisMaxNumberOfItems;
1419
+ return _index10.getAxisMaxNumberOfItems;
1420
1420
  }
1421
1421
  });
1422
1422
  Object.defineProperty(exports, "getAxisMinNumberOfDimensions", {
1423
1423
  enumerable: true,
1424
1424
  get: function () {
1425
- return _index9.getAxisMinNumberOfDimensions;
1425
+ return _index10.getAxisMinNumberOfDimensions;
1426
1426
  }
1427
1427
  });
1428
1428
  Object.defineProperty(exports, "getAxisName", {
@@ -1440,7 +1440,7 @@ Object.defineProperty(exports, "getAxisNameByLayoutType", {
1440
1440
  Object.defineProperty(exports, "getAxisPerLockedDimension", {
1441
1441
  enumerable: true,
1442
1442
  get: function () {
1443
- return _index9.getAxisPerLockedDimension;
1443
+ return _index10.getAxisPerLockedDimension;
1444
1444
  }
1445
1445
  });
1446
1446
  Object.defineProperty(exports, "getColorByValueFromLegendSet", {
@@ -1458,13 +1458,13 @@ Object.defineProperty(exports, "getDimensionById", {
1458
1458
  Object.defineProperty(exports, "getDimensionMaxNumberOfItems", {
1459
1459
  enumerable: true,
1460
1460
  get: function () {
1461
- return _index9.getDimensionMaxNumberOfItems;
1461
+ return _index10.getDimensionMaxNumberOfItems;
1462
1462
  }
1463
1463
  });
1464
1464
  Object.defineProperty(exports, "getDisallowedDimensions", {
1465
1465
  enumerable: true,
1466
1466
  get: function () {
1467
- return _index9.getDisallowedDimensions;
1467
+ return _index10.getDisallowedDimensions;
1468
1468
  }
1469
1469
  });
1470
1470
  Object.defineProperty(exports, "getDisplayNameByVisType", {
@@ -1530,13 +1530,13 @@ Object.defineProperty(exports, "getTextAlignOptions", {
1530
1530
  Object.defineProperty(exports, "getTransferableDimension", {
1531
1531
  enumerable: true,
1532
1532
  get: function () {
1533
- return _index9.getTransferableDimension;
1533
+ return _index10.getTransferableDimension;
1534
1534
  }
1535
1535
  });
1536
1536
  Object.defineProperty(exports, "hasAxisTooManyItems", {
1537
1537
  enumerable: true,
1538
1538
  get: function () {
1539
- return _index9.hasAxisTooManyItems;
1539
+ return _index10.hasAxisTooManyItems;
1540
1540
  }
1541
1541
  });
1542
1542
  Object.defineProperty(exports, "hasCustomAxes", {
@@ -1548,19 +1548,19 @@ Object.defineProperty(exports, "hasCustomAxes", {
1548
1548
  Object.defineProperty(exports, "hasDimensionTooManyItems", {
1549
1549
  enumerable: true,
1550
1550
  get: function () {
1551
- return _index9.hasDimensionTooManyItems;
1551
+ return _index10.hasDimensionTooManyItems;
1552
1552
  }
1553
1553
  });
1554
1554
  Object.defineProperty(exports, "hasRelativeItems", {
1555
1555
  enumerable: true,
1556
1556
  get: function () {
1557
- return _index8.hasRelativeItems;
1557
+ return _index9.hasRelativeItems;
1558
1558
  }
1559
1559
  });
1560
1560
  Object.defineProperty(exports, "isAxisFull", {
1561
1561
  enumerable: true,
1562
1562
  get: function () {
1563
- return _index9.isAxisFull;
1563
+ return _index10.isAxisFull;
1564
1564
  }
1565
1565
  });
1566
1566
  Object.defineProperty(exports, "isColumnBasedType", {
@@ -1572,7 +1572,7 @@ Object.defineProperty(exports, "isColumnBasedType", {
1572
1572
  Object.defineProperty(exports, "isDimensionLocked", {
1573
1573
  enumerable: true,
1574
1574
  get: function () {
1575
- return _index9.isDimensionLocked;
1575
+ return _index10.isDimensionLocked;
1576
1576
  }
1577
1577
  });
1578
1578
  Object.defineProperty(exports, "isDualAxisType", {
@@ -1728,7 +1728,7 @@ Object.defineProperty(exports, "layoutReplaceDimension", {
1728
1728
  Object.defineProperty(exports, "ouIdHelper", {
1729
1729
  enumerable: true,
1730
1730
  get: function () {
1731
- return _index6.ouIdHelper;
1731
+ return _index7.ouIdHelper;
1732
1732
  }
1733
1733
  });
1734
1734
  Object.defineProperty(exports, "preparePayloadForSaveAs", {
@@ -1788,15 +1788,27 @@ Object.keys(_index4).forEach(function (key) {
1788
1788
  var _index5 = require("./components/TranslationDialog/index.js");
1789
1789
  var _OfflineTooltip = require("./components/OfflineTooltip.js");
1790
1790
  var _CachedDataQueryProvider = require("./components/CachedDataQueryProvider.js");
1791
+ var _index6 = require("./components/RichText/index.js");
1792
+ Object.keys(_index6).forEach(function (key) {
1793
+ if (key === "default" || key === "__esModule") return;
1794
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
1795
+ if (key in exports && exports[key] === _index6[key]) return;
1796
+ Object.defineProperty(exports, key, {
1797
+ enumerable: true,
1798
+ get: function () {
1799
+ return _index6[key];
1800
+ }
1801
+ });
1802
+ });
1791
1803
  var _Analytics = _interopRequireDefault(require("./api/analytics/Analytics.js"));
1792
1804
  var _dimensions = require("./api/dimensions.js");
1793
1805
  var _organisationUnits = require("./api/organisationUnits.js");
1794
1806
  var _axis = require("./modules/axis.js");
1795
1807
  var _predefinedDimensions = require("./modules/predefinedDimensions.js");
1796
- var _index6 = require("./modules/ouIdHelper/index.js");
1797
- var _index7 = require("./modules/ouLevelUtils/index.js");
1808
+ var _index7 = require("./modules/ouIdHelper/index.js");
1809
+ var _index8 = require("./modules/ouLevelUtils/index.js");
1798
1810
  var _getAdaptedUiLayoutByType = require("./modules/getAdaptedUiLayoutByType.js");
1799
- var _index8 = require("./modules/relativeItems/index.js");
1811
+ var _index9 = require("./modules/relativeItems/index.js");
1800
1812
  var _layout = require("./modules/layout/layout.js");
1801
1813
  var _layoutFilterDimensions = require("./modules/layout/layoutFilterDimensions.js");
1802
1814
  var _layoutGetAllAxes = require("./modules/layout/layoutGetAllAxes.js");
@@ -1836,13 +1848,13 @@ var _itemIsValid = require("./modules/layout/itemIsValid.js");
1836
1848
  var _visTypeToLayoutType = require("./modules/visTypeToLayoutType.js");
1837
1849
  var _visTypes = require("./modules/visTypes.js");
1838
1850
  var _layoutTypes = require("./modules/layoutTypes.js");
1839
- var _index9 = require("./modules/layoutUiRules/index.js");
1840
- var _index10 = require("./visualizations/index.js");
1851
+ var _index10 = require("./modules/layoutUiRules/index.js");
1852
+ var _index11 = require("./visualizations/index.js");
1841
1853
  var _fontStyle = require("./modules/fontStyle.js");
1842
1854
  var _legends = require("./modules/legends.js");
1843
1855
  var _renderValue = require("./modules/renderValue.js");
1844
1856
  var _colorSets = require("./visualizations/util/colors/colorSets.js");
1845
- var _index11 = require("./components/PeriodDimension/utils/index.js");
1857
+ var _index12 = require("./components/PeriodDimension/utils/index.js");
1846
1858
  var _relativePeriods = require("./components/PeriodDimension/utils/relativePeriods.js");
1847
1859
  var _fixedPeriods = require("./components/PeriodDimension/utils/fixedPeriods.js");
1848
1860
  var _VisualizationOptions = _interopRequireDefault(require("./components/Options/VisualizationOptions.js"));
@@ -134,17 +134,6 @@
134
134
  "Manage sharing": "Manage sharing",
135
135
  "Could not update interpretation": "Could not update interpretation",
136
136
  "Enter interpretation text": "Enter interpretation text",
137
- "Bold text": "Bold text",
138
- "Italic text": "Italic text",
139
- "Link to a URL": "Link to a URL",
140
- "Mention a user": "Mention a user",
141
- "Add emoji": "Add emoji",
142
- "Preview": "Preview",
143
- "Back to write mode": "Back to write mode",
144
- "Too many results. Try refining the search.": "Too many results. Try refining the search.",
145
- "Search for a user": "Search for a user",
146
- "Searching for \"{{- searchText}}\"": "Searching for \"{{- searchText}}\"",
147
- "No results found": "No results found",
148
137
  "Not available offline": "Not available offline",
149
138
  "Created by": "Created by",
150
139
  "Anyone": "Anyone",
@@ -276,6 +265,13 @@
276
265
  "Six-months": "Six-months",
277
266
  "Financial Years": "Financial Years",
278
267
  "Years": "Years",
268
+ "Bold text": "Bold text",
269
+ "Italic text": "Italic text",
270
+ "Link to a URL": "Link to a URL",
271
+ "Mention a user": "Mention a user",
272
+ "Add emoji": "Add emoji",
273
+ "Preview": "Preview",
274
+ "Back to write mode": "Back to write mode",
279
275
  "Interpretations and details": "Interpretations and details",
280
276
  "Translating to": "Translating to",
281
277
  "Choose a locale": "Choose a locale",
@@ -286,6 +282,10 @@
286
282
  "Cannot save while offline": "Cannot save while offline",
287
283
  "Could not load translations": "Could not load translations",
288
284
  "Retry": "Retry",
285
+ "Too many results. Try refining the search.": "Too many results. Try refining the search.",
286
+ "Search for a user": "Search for a user",
287
+ "Searching for \"{{- searchText}}\"": "Searching for \"{{- searchText}}\"",
288
+ "No results found": "No results found",
289
289
  "Series": "Series",
290
290
  "Category": "Category",
291
291
  "Filter": "Filter",
@@ -1,13 +1,13 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
2
  import { useDataQuery, useDataMutation, useTimeZoneConversion } from '@dhis2/app-runtime';
3
3
  import i18n from '@dhis2/d2-i18n';
4
- import { Parser as RichTextParser } from '@dhis2/d2-ui-rich-text';
5
4
  import { Button, CircularLoader, IconChevronDown24, IconChevronUp24, IconClock16, IconShare16, IconSubscribe24, IconSubscribeOff24, IconUser16, IconView16, colors } from '@dhis2/ui';
6
5
  import cx from 'classnames';
7
6
  import moment from 'moment';
8
7
  import PropTypes from 'prop-types';
9
8
  import React, { useEffect, useMemo, useState, forwardRef, useImperativeHandle } from 'react';
10
9
  import { formatList } from '../../modules/list.js';
10
+ import { RichTextParser } from '../RichText/index.js';
11
11
  import styles from './styles/AboutAOUnit.style.js';
12
12
  import { getTranslatedString, AOTypeMap } from './utils.js';
13
13
  const READ_ONLY = 'r';
@@ -145,12 +145,14 @@ const AboutAOUnit = /*#__PURE__*/forwardRef((_ref3, ref) => {
145
145
  small: true
146
146
  })), data && /*#__PURE__*/React.createElement("div", {
147
147
  className: `jsx-${styles.__hash}` + " " + "content"
148
- }, /*#__PURE__*/React.createElement("p", {
148
+ }, /*#__PURE__*/React.createElement("div", {
149
149
  className: `jsx-${styles.__hash}` + " " + (cx('detailLine', {
150
150
  description: true,
151
151
  noDescription: !data.ao.displayDescription
152
152
  }) || "")
153
- }, data.ao.displayDescription ? /*#__PURE__*/React.createElement(RichTextParser, null, data.ao.displayDescription) : i18n.t('No description')), /*#__PURE__*/React.createElement("div", {
153
+ }, data.ao.displayDescription ? /*#__PURE__*/React.createElement(RichTextParser, null, data.ao.displayDescription) : /*#__PURE__*/React.createElement("p", {
154
+ className: `jsx-${styles.__hash}`
155
+ }, i18n.t('No description'))), /*#__PURE__*/React.createElement("div", {
154
156
  className: `jsx-${styles.__hash}`
155
157
  }, /*#__PURE__*/React.createElement("p", {
156
158
  className: `jsx-${styles.__hash}` + " " + "detailLine"
@@ -3,7 +3,8 @@ import i18n from '@dhis2/d2-i18n';
3
3
  import { Button } from '@dhis2/ui';
4
4
  import PropTypes from 'prop-types';
5
5
  import React, { useRef, useState } from 'react';
6
- import { RichTextEditor, MessageEditorContainer, MessageButtonStrip, MessageInput } from '../common/index.js';
6
+ import { RichTextEditor } from '../../RichText/index.js';
7
+ import { MessageEditorContainer, MessageButtonStrip, MessageInput } from '../common/index.js';
7
8
  export const CommentAddForm = _ref => {
8
9
  let {
9
10
  interpretationId,
@@ -4,7 +4,8 @@ import i18n from '@dhis2/d2-i18n';
4
4
  import { Button, spacers, colors } from '@dhis2/ui';
5
5
  import PropTypes from 'prop-types';
6
6
  import React, { useState, useRef } from 'react';
7
- import { MessageEditorContainer, RichTextEditor, MessageButtonStrip } from '../common/index.js';
7
+ import { RichTextEditor } from '../../RichText/index.js';
8
+ import { MessageEditorContainer, MessageButtonStrip } from '../common/index.js';
8
9
  export const CommentUpdateForm = _ref => {
9
10
  let {
10
11
  interpretationId,
@@ -3,7 +3,8 @@ import i18n from '@dhis2/d2-i18n';
3
3
  import { Button, Input } from '@dhis2/ui';
4
4
  import PropTypes from 'prop-types';
5
5
  import React, { useRef, useState } from 'react';
6
- import { RichTextEditor, MessageEditorContainer, MessageButtonStrip } from '../common/index.js';
6
+ import { RichTextEditor } from '../../RichText/index.js';
7
+ import { MessageEditorContainer, MessageButtonStrip } from '../common/index.js';
7
8
  export const InterpretationForm = _ref => {
8
9
  let {
9
10
  type,
@@ -38,7 +39,7 @@ export const InterpretationForm = _ref => {
38
39
  return /*#__PURE__*/React.createElement(MessageEditorContainer, {
39
40
  currentUser: currentUser,
40
41
  dataTest: "interpretation-form"
41
- }, showRichTextEditor ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(RichTextEditor, {
42
+ }, showRichTextEditor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(RichTextEditor, {
42
43
  disabled: saveMutationInProgress,
43
44
  inputPlaceholder: inputPlaceholder,
44
45
  onChange: setInterpretationText,
@@ -4,7 +4,8 @@ import i18n from '@dhis2/d2-i18n';
4
4
  import { Button, spacers, colors } from '@dhis2/ui';
5
5
  import PropTypes from 'prop-types';
6
6
  import React, { useState } from 'react';
7
- import { MessageEditorContainer, RichTextEditor, MessageButtonStrip, InterpretationSharingLink } from '../index.js';
7
+ import { RichTextEditor } from '../../../RichText/index.js';
8
+ import { MessageEditorContainer, MessageButtonStrip, InterpretationSharingLink } from '../index.js';
8
9
  const mutation = {
9
10
  resource: 'interpretations',
10
11
  type: 'update',
@@ -1,10 +1,10 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
2
  import { useTimeZoneConversion } from '@dhis2/app-runtime';
3
- import { Parser as RichTextParser } from '@dhis2/d2-ui-rich-text';
4
3
  import { UserAvatar, spacers, colors } from '@dhis2/ui';
5
4
  import moment from 'moment';
6
5
  import PropTypes from 'prop-types';
7
6
  import React from 'react';
7
+ import { RichTextParser } from '../../../RichText/index.js';
8
8
  const Message = _ref => {
9
9
  let {
10
10
  children,
@@ -10,18 +10,18 @@ const MessageEditorContainer = _ref => {
10
10
  } = _ref;
11
11
  return /*#__PURE__*/React.createElement("div", {
12
12
  "data-test": dataTest,
13
- className: _JSXStyle.dynamic([["3807884305", [spacers.dp8, spacers.dp12]]]) + " " + "container"
13
+ className: _JSXStyle.dynamic([["969803715", [spacers.dp8, spacers.dp12]]]) + " " + "container"
14
14
  }, /*#__PURE__*/React.createElement("div", {
15
- className: _JSXStyle.dynamic([["3807884305", [spacers.dp8, spacers.dp12]]]) + " " + "avatar"
15
+ className: _JSXStyle.dynamic([["969803715", [spacers.dp8, spacers.dp12]]]) + " " + "avatar"
16
16
  }, /*#__PURE__*/React.createElement(UserAvatar, {
17
17
  name: currentUser.name,
18
18
  medium: true
19
19
  })), /*#__PURE__*/React.createElement("div", {
20
- className: _JSXStyle.dynamic([["3807884305", [spacers.dp8, spacers.dp12]]]) + " " + "editor"
20
+ className: _JSXStyle.dynamic([["969803715", [spacers.dp8, spacers.dp12]]]) + " " + "editor"
21
21
  }, children), /*#__PURE__*/React.createElement(_JSXStyle, {
22
- id: "3807884305",
22
+ id: "969803715",
23
23
  dynamic: [spacers.dp8, spacers.dp12]
24
- }, [`.container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:${spacers.dp8};margin-top:${spacers.dp12};}`, ".avatar.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;}", ".editor.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}"]));
24
+ }, [`.container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:${spacers.dp8};margin-top:${spacers.dp12};}`, ".avatar.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;}", ".editor.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;height:100%;}"]));
25
25
  };
26
26
  MessageEditorContainer.propTypes = {
27
27
  currentUser: PropTypes.object.isRequired,
@@ -1,4 +1,3 @@
1
1
  export * from './Interpretation/index.js';
2
2
  export * from './Message/index.js';
3
- export * from './RichTextEditor/index.js';
4
3
  export * from './getInterpretationAccess.js';