@dhis2/analytics 21.2.3 → 22.0.0-alpha.2

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 (80) hide show
  1. package/build/cjs/components/FileMenu/FileMenu.js +6 -0
  2. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +18 -4
  3. package/build/cjs/components/OpenFileDialog/FileList.js +5 -5
  4. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +24 -20
  5. package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +17 -16
  6. package/build/cjs/components/OpenFileDialog/styles/FileList.style.js +10 -0
  7. package/build/cjs/index.js +16 -4
  8. package/build/cjs/locales/ar/translations.json +1 -0
  9. package/build/cjs/locales/ar_EG/translations.json +1 -0
  10. package/build/cjs/locales/ar_IQ/translations.json +1 -0
  11. package/build/cjs/locales/ckb/translations.json +1 -0
  12. package/build/cjs/locales/cs/translations.json +1 -0
  13. package/build/cjs/locales/da/translations.json +1 -0
  14. package/build/cjs/locales/en/translations.json +3 -14
  15. package/build/cjs/locales/es/translations.json +1 -0
  16. package/build/cjs/locales/fr/translations.json +1 -0
  17. package/build/cjs/locales/id/translations.json +1 -0
  18. package/build/cjs/locales/km/translations.json +1 -0
  19. package/build/cjs/locales/lo/translations.json +1 -0
  20. package/build/cjs/locales/my/translations.json +1 -0
  21. package/build/cjs/locales/nb/translations.json +54 -53
  22. package/build/cjs/locales/nl/translations.json +1 -0
  23. package/build/cjs/locales/prs/translations.json +1 -0
  24. package/build/cjs/locales/ps/translations.json +1 -0
  25. package/build/cjs/locales/pt/translations.json +1 -0
  26. package/build/cjs/locales/pt_BR/translations.json +1 -0
  27. package/build/cjs/locales/ru/translations.json +1 -0
  28. package/build/cjs/locales/sv/translations.json +1 -0
  29. package/build/cjs/locales/tet/translations.json +1 -0
  30. package/build/cjs/locales/tg/translations.json +1 -0
  31. package/build/cjs/locales/uk/translations.json +1 -0
  32. package/build/cjs/locales/ur/translations.json +1 -0
  33. package/build/cjs/locales/uz/translations.json +1 -0
  34. package/build/cjs/locales/uz_Latn/translations.json +1 -0
  35. package/build/cjs/locales/vi/translations.json +1 -0
  36. package/build/cjs/locales/zh/translations.json +1 -0
  37. package/build/cjs/locales/zh_CN/translations.json +1 -0
  38. package/build/cjs/modules/visTypes.js +14 -21
  39. package/build/cjs/visualizations/package-lock.json +1788 -0
  40. package/build/es/components/FileMenu/FileMenu.js +6 -0
  41. package/build/es/components/OpenFileDialog/CustomSelectOption.js +17 -4
  42. package/build/es/components/OpenFileDialog/FileList.js +5 -5
  43. package/build/es/components/OpenFileDialog/OpenFileDialog.js +25 -22
  44. package/build/es/components/OpenFileDialog/VisTypeFilter.js +18 -14
  45. package/build/es/components/OpenFileDialog/styles/FileList.style.js +3 -0
  46. package/build/es/index.js +1 -1
  47. package/build/es/locales/ar/translations.json +1 -0
  48. package/build/es/locales/ar_EG/translations.json +1 -0
  49. package/build/es/locales/ar_IQ/translations.json +1 -0
  50. package/build/es/locales/ckb/translations.json +1 -0
  51. package/build/es/locales/cs/translations.json +1 -0
  52. package/build/es/locales/da/translations.json +1 -0
  53. package/build/es/locales/en/translations.json +3 -14
  54. package/build/es/locales/es/translations.json +1 -0
  55. package/build/es/locales/fr/translations.json +1 -0
  56. package/build/es/locales/id/translations.json +1 -0
  57. package/build/es/locales/km/translations.json +1 -0
  58. package/build/es/locales/lo/translations.json +1 -0
  59. package/build/es/locales/my/translations.json +1 -0
  60. package/build/es/locales/nb/translations.json +54 -53
  61. package/build/es/locales/nl/translations.json +1 -0
  62. package/build/es/locales/prs/translations.json +1 -0
  63. package/build/es/locales/ps/translations.json +1 -0
  64. package/build/es/locales/pt/translations.json +1 -0
  65. package/build/es/locales/pt_BR/translations.json +1 -0
  66. package/build/es/locales/ru/translations.json +1 -0
  67. package/build/es/locales/sv/translations.json +1 -0
  68. package/build/es/locales/tet/translations.json +1 -0
  69. package/build/es/locales/tg/translations.json +1 -0
  70. package/build/es/locales/uk/translations.json +1 -0
  71. package/build/es/locales/ur/translations.json +1 -0
  72. package/build/es/locales/uz/translations.json +1 -0
  73. package/build/es/locales/uz_Latn/translations.json +1 -0
  74. package/build/es/locales/vi/translations.json +1 -0
  75. package/build/es/locales/zh/translations.json +1 -0
  76. package/build/es/locales/zh_CN/translations.json +1 -0
  77. package/build/es/modules/visTypes.js +10 -19
  78. package/build/es/visualizations/package-lock.json +1788 -0
  79. package/package.json +1 -1
  80. package/CHANGELOG.md +0 -2908
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "",
233
234
  "Category": "",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "سلسله (لړۍ)",
233
234
  "Category": "دسته بندی",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "سلسله (لړۍ)",
233
234
  "Category": "کټګوري",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "Série",
233
234
  "Category": "Categoria",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "Série",
233
234
  "Category": "Categoria",
@@ -236,6 +236,7 @@
236
236
  "Choose a locale to translate from the menu above": "",
237
237
  "Translate: {{objectName}}": "",
238
238
  "Save translations": "",
239
+ "Could not load translations": "",
239
240
  "Retry": "",
240
241
  "Series": "Ряды",
241
242
  "Category": "Категория",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "",
233
234
  "Category": "",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "",
225
225
  "Translate: {{objectName}}": "",
226
226
  "Save translations": "",
227
+ "Could not load translations": "",
227
228
  "Retry": "",
228
229
  "Series": "Séries",
229
230
  "Category": "Kategoria",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "Силсила",
233
234
  "Category": "Категория",
@@ -236,6 +236,7 @@
236
236
  "Choose a locale to translate from the menu above": "",
237
237
  "Translate: {{objectName}}": "",
238
238
  "Save translations": "",
239
+ "Could not load translations": "",
239
240
  "Retry": "",
240
241
  "Series": "",
241
242
  "Category": "Категорія",
@@ -228,6 +228,7 @@
228
228
  "Choose a locale to translate from the menu above": "",
229
229
  "Translate: {{objectName}}": "",
230
230
  "Save translations": "",
231
+ "Could not load translations": "",
231
232
  "Retry": "",
232
233
  "Series": "سیریز",
233
234
  "Category": "قسم",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "",
225
225
  "Translate: {{objectName}}": "",
226
226
  "Save translations": "",
227
+ "Could not load translations": "",
227
228
  "Retry": "",
228
229
  "Series": "Кетма-кетликлар",
229
230
  "Category": "Категория",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "",
225
225
  "Translate: {{objectName}}": "",
226
226
  "Save translations": "",
227
+ "Could not load translations": "",
227
228
  "Retry": "",
228
229
  "Series": "Ketma-ketliklar",
229
230
  "Category": "Kategoriya",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "",
225
225
  "Translate: {{objectName}}": "",
226
226
  "Save translations": "",
227
+ "Could not load translations": "",
227
228
  "Retry": "",
228
229
  "Series": "Chuỗi Dữ Liệu",
229
230
  "Category": "Phân loại",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
225
225
  "Translate: {{objectName}}": "翻译:{{objectName}}",
226
226
  "Save translations": "保存翻译",
227
+ "Could not load translations": "",
227
228
  "Retry": "重试",
228
229
  "Series": "系列",
229
230
  "Category": "分类",
@@ -224,6 +224,7 @@
224
224
  "Choose a locale to translate from the menu above": "",
225
225
  "Translate: {{objectName}}": "",
226
226
  "Save translations": "",
227
+ "Could not load translations": "",
227
228
  "Retry": "",
228
229
  "Series": "",
229
230
  "Category": "分类",
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isColumnBasedType = exports.isLegendSetType = exports.isVerticalType = exports.isTwoCategoryChartType = exports.isSingleValue = exports.isMultiType = exports.isDualAxisType = exports.isYearOverYear = exports.isStacked = exports.defaultVisType = exports.getDisplayNameByVisType = exports.visTypeIcons = exports.visTypeDescriptions = exports.visTypeDisplayNames = exports.VIS_TYPE_SCATTER = exports.VIS_TYPE_PIVOT_TABLE = exports.VIS_TYPE_SINGLE_VALUE = exports.VIS_TYPE_YEAR_OVER_YEAR_COLUMN = exports.VIS_TYPE_YEAR_OVER_YEAR_LINE = exports.VIS_TYPE_BUBBLE = exports.VIS_TYPE_GAUGE = exports.VIS_TYPE_RADAR = exports.VIS_TYPE_PIE = exports.VIS_TYPE_STACKED_AREA = exports.VIS_TYPE_AREA = exports.VIS_TYPE_LINE = exports.VIS_TYPE_STACKED_BAR = exports.VIS_TYPE_BAR = exports.VIS_TYPE_STACKED_COLUMN = exports.VIS_TYPE_COLUMN = void 0;
6
+ exports.isColumnBasedType = exports.isLegendSetType = exports.isVerticalType = exports.isTwoCategoryChartType = exports.isSingleValue = exports.isMultiType = exports.isDualAxisType = exports.isYearOverYear = exports.isStacked = exports.defaultVisType = exports.getDisplayNameByVisType = exports.visTypeIcons = exports.visTypeDisplayNames = exports.VIS_TYPE_GROUP_CHARTS = exports.VIS_TYPE_GROUP_ALL = exports.VIS_TYPE_LINE_LIST = exports.VIS_TYPE_SCATTER = exports.VIS_TYPE_PIVOT_TABLE = exports.VIS_TYPE_SINGLE_VALUE = exports.VIS_TYPE_YEAR_OVER_YEAR_COLUMN = exports.VIS_TYPE_YEAR_OVER_YEAR_LINE = exports.VIS_TYPE_BUBBLE = exports.VIS_TYPE_GAUGE = exports.VIS_TYPE_RADAR = exports.VIS_TYPE_PIE = exports.VIS_TYPE_STACKED_AREA = exports.VIS_TYPE_AREA = exports.VIS_TYPE_LINE = exports.VIS_TYPE_STACKED_BAR = exports.VIS_TYPE_BAR = exports.VIS_TYPE_STACKED_COLUMN = exports.VIS_TYPE_COLUMN = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
@@ -43,6 +43,12 @@ const VIS_TYPE_PIVOT_TABLE = 'PIVOT_TABLE';
43
43
  exports.VIS_TYPE_PIVOT_TABLE = VIS_TYPE_PIVOT_TABLE;
44
44
  const VIS_TYPE_SCATTER = 'SCATTER';
45
45
  exports.VIS_TYPE_SCATTER = VIS_TYPE_SCATTER;
46
+ const VIS_TYPE_LINE_LIST = 'LINE_LIST';
47
+ exports.VIS_TYPE_LINE_LIST = VIS_TYPE_LINE_LIST;
48
+ const VIS_TYPE_GROUP_ALL = 'ALL';
49
+ exports.VIS_TYPE_GROUP_ALL = VIS_TYPE_GROUP_ALL;
50
+ const VIS_TYPE_GROUP_CHARTS = 'CHARTS';
51
+ exports.VIS_TYPE_GROUP_CHARTS = VIS_TYPE_GROUP_CHARTS;
46
52
  const visTypeDisplayNames = {
47
53
  [VIS_TYPE_PIVOT_TABLE]: _index.default.t('Pivot table'),
48
54
  [VIS_TYPE_COLUMN]: _index.default.t('Column'),
@@ -58,27 +64,12 @@ const visTypeDisplayNames = {
58
64
  [VIS_TYPE_YEAR_OVER_YEAR_LINE]: _index.default.t('Year over year (line)'),
59
65
  [VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: _index.default.t('Year over year (column)'),
60
66
  [VIS_TYPE_SINGLE_VALUE]: _index.default.t('Single value'),
61
- [VIS_TYPE_SCATTER]: _index.default.t('Scatter')
67
+ [VIS_TYPE_SCATTER]: _index.default.t('Scatter'),
68
+ [VIS_TYPE_LINE_LIST]: _index.default.t('Line list'),
69
+ [VIS_TYPE_GROUP_ALL]: _index.default.t('All types'),
70
+ [VIS_TYPE_GROUP_CHARTS]: _index.default.t('All charts')
62
71
  };
63
72
  exports.visTypeDisplayNames = visTypeDisplayNames;
64
- const visTypeDescriptions = {
65
- [VIS_TYPE_PIVOT_TABLE]: _index.default.t('View data and indicators in a manipulatable table.'),
66
- [VIS_TYPE_COLUMN]: _index.default.t('Compare sizes of related elements vertically. Recommend period as filter.'),
67
- [VIS_TYPE_STACKED_COLUMN]: _index.default.t('Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.'),
68
- [VIS_TYPE_BAR]: _index.default.t('Compare sizes of related elements horizontally. Recommend period as filter.'),
69
- [VIS_TYPE_STACKED_BAR]: _index.default.t('Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.'),
70
- [VIS_TYPE_LINE]: _index.default.t('Track or compare changes over time. Recommend period as category.'),
71
- [VIS_TYPE_AREA]: _index.default.t('Track or compare changes over time. Recommend period as category.'),
72
- [VIS_TYPE_STACKED_AREA]: _index.default.t('Track or compare parts of a whole over time. Recommend data as series and period as category.'),
73
- [VIS_TYPE_PIE]: _index.default.t('Compare parts of a whole at a single point in time. Recommend period as filter.'),
74
- [VIS_TYPE_RADAR]: _index.default.t('Compare several items against multiple variables.'),
75
- [VIS_TYPE_GAUGE]: _index.default.t('Compare a percentage indicator against a 100% scale. Recommend period as filter.'),
76
- [VIS_TYPE_YEAR_OVER_YEAR_LINE]: _index.default.t('Compare changes over time between multiple time periods.'),
77
- [VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: _index.default.t('Compare changes over time between multiple time periods.'),
78
- [VIS_TYPE_SINGLE_VALUE]: _index.default.t('Display a single value. Recommend relative period to show latest data.'),
79
- [VIS_TYPE_SCATTER]: _index.default.t('View the relationship between two data items at a place or time. Recommended for finding outliers.')
80
- };
81
- exports.visTypeDescriptions = visTypeDescriptions;
82
73
  const visTypeIcons = {
83
74
  [VIS_TYPE_PIVOT_TABLE]: _ui.IconTable24,
84
75
  [VIS_TYPE_BAR]: _ui.IconVisualizationBar24,
@@ -94,7 +85,9 @@ const visTypeIcons = {
94
85
  [VIS_TYPE_YEAR_OVER_YEAR_LINE]: _ui.IconVisualizationLineMulti24,
95
86
  [VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: _ui.IconVisualizationColumnMulti24,
96
87
  [VIS_TYPE_SINGLE_VALUE]: _ui.IconVisualizationSingleValue24,
97
- [VIS_TYPE_SCATTER]: _ui.IconVisualizationScatter24
88
+ [VIS_TYPE_SCATTER]: _ui.IconVisualizationScatter24,
89
+ [VIS_TYPE_LINE_LIST]: _ui.IconTable24 // TODO different icon @joe
90
+
98
91
  };
99
92
  exports.visTypeIcons = visTypeIcons;
100
93