@dhis2/analytics 22.0.0-alpha.1 → 22.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +2997 -0
  2. package/build/cjs/__demo__/FileMenu.stories.js +9 -17
  3. package/build/cjs/__fixtures__/fixtures.js +1 -0
  4. package/build/cjs/__fixtures__/json/api/analytics/enrollments.json +206 -0
  5. package/build/cjs/api/analytics/Analytics.js +6 -0
  6. package/build/cjs/api/analytics/AnalyticsEnrollments.js +48 -0
  7. package/build/cjs/api/analytics/__tests__/AnalyticsEnrollments.spec.js +50 -0
  8. package/build/cjs/api/analytics/__tests__/__snapshots__/AnalyticsEnrollments.spec.js.snap +3 -0
  9. package/build/cjs/components/CachedDataQueryProvider.js +70 -0
  10. package/build/cjs/components/FileMenu/FileMenu.js +3 -10
  11. package/build/cjs/components/FileMenu/__tests__/FileMenu.spec.js +3 -5
  12. package/build/cjs/components/FileMenu/utils.js +1 -1
  13. package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +4 -18
  14. package/build/cjs/components/OpenFileDialog/FileList.js +5 -5
  15. package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +30 -31
  16. package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +2 -2
  17. package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +16 -17
  18. package/build/cjs/components/OpenFileDialog/utils.js +20 -1
  19. package/build/cjs/index.js +18 -16
  20. package/build/cjs/locales/ar/translations.json +9 -0
  21. package/build/cjs/locales/ar_EG/translations.json +9 -0
  22. package/build/cjs/locales/ar_IQ/translations.json +9 -0
  23. package/build/cjs/locales/ckb/translations.json +9 -0
  24. package/build/cjs/locales/cs/translations.json +17 -8
  25. package/build/cjs/locales/da/translations.json +9 -0
  26. package/build/cjs/locales/en/translations.json +23 -3
  27. package/build/cjs/locales/es/translations.json +9 -0
  28. package/build/cjs/locales/fr/translations.json +9 -0
  29. package/build/cjs/locales/id/translations.json +9 -0
  30. package/build/cjs/locales/km/translations.json +9 -0
  31. package/build/cjs/locales/lo/translations.json +9 -0
  32. package/build/cjs/locales/my/translations.json +9 -0
  33. package/build/cjs/locales/nb/translations.json +9 -0
  34. package/build/cjs/locales/nl/translations.json +9 -0
  35. package/build/cjs/locales/prs/translations.json +9 -0
  36. package/build/cjs/locales/ps/translations.json +9 -0
  37. package/build/cjs/locales/pt/translations.json +9 -0
  38. package/build/cjs/locales/pt_BR/translations.json +9 -0
  39. package/build/cjs/locales/ru/translations.json +9 -0
  40. package/build/cjs/locales/sv/translations.json +9 -0
  41. package/build/cjs/locales/tet/translations.json +9 -0
  42. package/build/cjs/locales/tg/translations.json +9 -0
  43. package/build/cjs/locales/uk/translations.json +9 -0
  44. package/build/cjs/locales/ur/translations.json +9 -0
  45. package/build/cjs/locales/uz/translations.json +9 -0
  46. package/build/cjs/locales/uz_Latn/translations.json +9 -0
  47. package/build/cjs/locales/vi/translations.json +9 -0
  48. package/build/cjs/locales/zh/translations.json +10 -1
  49. package/build/cjs/locales/zh_CN/translations.json +9 -0
  50. package/build/cjs/modules/layoutUiRules/rules.js +5 -1
  51. package/build/cjs/modules/visTypes.js +21 -12
  52. package/build/es/__demo__/FileMenu.stories.js +9 -17
  53. package/build/es/__fixtures__/fixtures.js +1 -0
  54. package/build/es/__fixtures__/json/api/analytics/enrollments.json +206 -0
  55. package/build/es/api/analytics/Analytics.js +5 -0
  56. package/build/es/api/analytics/AnalyticsEnrollments.js +38 -0
  57. package/build/es/api/analytics/__tests__/AnalyticsEnrollments.spec.js +40 -0
  58. package/build/es/api/analytics/__tests__/__snapshots__/AnalyticsEnrollments.spec.js.snap +3 -0
  59. package/build/es/components/CachedDataQueryProvider.js +50 -0
  60. package/build/es/components/FileMenu/FileMenu.js +3 -10
  61. package/build/es/components/FileMenu/__tests__/FileMenu.spec.js +3 -5
  62. package/build/es/components/FileMenu/utils.js +1 -1
  63. package/build/es/components/OpenFileDialog/CustomSelectOption.js +4 -17
  64. package/build/es/components/OpenFileDialog/FileList.js +5 -5
  65. package/build/es/components/OpenFileDialog/OpenFileDialog.js +32 -32
  66. package/build/es/components/OpenFileDialog/OpenFileDialog.styles.js +2 -2
  67. package/build/es/components/OpenFileDialog/VisTypeFilter.js +14 -18
  68. package/build/es/components/OpenFileDialog/utils.js +18 -0
  69. package/build/es/index.js +3 -2
  70. package/build/es/locales/ar/translations.json +9 -0
  71. package/build/es/locales/ar_EG/translations.json +9 -0
  72. package/build/es/locales/ar_IQ/translations.json +9 -0
  73. package/build/es/locales/ckb/translations.json +9 -0
  74. package/build/es/locales/cs/translations.json +17 -8
  75. package/build/es/locales/da/translations.json +9 -0
  76. package/build/es/locales/en/translations.json +23 -3
  77. package/build/es/locales/es/translations.json +9 -0
  78. package/build/es/locales/fr/translations.json +9 -0
  79. package/build/es/locales/id/translations.json +9 -0
  80. package/build/es/locales/km/translations.json +9 -0
  81. package/build/es/locales/lo/translations.json +9 -0
  82. package/build/es/locales/my/translations.json +9 -0
  83. package/build/es/locales/nb/translations.json +9 -0
  84. package/build/es/locales/nl/translations.json +9 -0
  85. package/build/es/locales/prs/translations.json +9 -0
  86. package/build/es/locales/ps/translations.json +9 -0
  87. package/build/es/locales/pt/translations.json +9 -0
  88. package/build/es/locales/pt_BR/translations.json +9 -0
  89. package/build/es/locales/ru/translations.json +9 -0
  90. package/build/es/locales/sv/translations.json +9 -0
  91. package/build/es/locales/tet/translations.json +9 -0
  92. package/build/es/locales/tg/translations.json +9 -0
  93. package/build/es/locales/uk/translations.json +9 -0
  94. package/build/es/locales/ur/translations.json +9 -0
  95. package/build/es/locales/uz/translations.json +9 -0
  96. package/build/es/locales/uz_Latn/translations.json +9 -0
  97. package/build/es/locales/vi/translations.json +9 -0
  98. package/build/es/locales/zh/translations.json +10 -1
  99. package/build/es/locales/zh_CN/translations.json +9 -0
  100. package/build/es/modules/layoutUiRules/rules.js +6 -2
  101. package/build/es/modules/visTypes.js +19 -9
  102. package/package.json +2 -2
@@ -19,8 +19,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
19
19
 
20
20
  var _react = _interopRequireWildcard(require("react"));
21
21
 
22
- var _visTypes = require("../../modules/visTypes.js");
23
-
24
22
  var _CreatedByFilter = require("./CreatedByFilter.js");
25
23
 
26
24
  var _FileList = require("./FileList.js");
@@ -70,8 +68,6 @@ const getQuery = type => ({
70
68
  const OpenFileDialog = ({
71
69
  type,
72
70
  open,
73
- filterVisTypes,
74
- defaultFilterVisType,
75
71
  onClose,
76
72
  onFileSelect,
77
73
  onNew,
@@ -81,7 +77,7 @@ const OpenFileDialog = ({
81
77
  const defaultFilters = {
82
78
  searchTerm: '',
83
79
  createdBy: _CreatedByFilter.CREATED_BY_ALL,
84
- visType: defaultFilterVisType
80
+ visType: _VisTypeFilter.VIS_TYPE_ALL
85
81
  };
86
82
  const [{
87
83
  sortField,
@@ -112,23 +108,26 @@ const OpenFileDialog = ({
112
108
  break;
113
109
  }
114
110
 
115
- if (filters.visType) {
116
- switch (filters.visType) {
117
- case _visTypes.VIS_TYPE_ALL:
118
- break;
111
+ switch (filters.visType) {
112
+ case _VisTypeFilter.VIS_TYPE_ALL:
113
+ break;
119
114
 
120
- case _visTypes.VIS_TYPE_CHARTS:
121
- queryFilters.push('type:!eq:PIVOT_TABLE');
122
- break;
115
+ case _VisTypeFilter.VIS_TYPE_CHARTS:
116
+ queryFilters.push('type:!eq:PIVOT_TABLE');
117
+ break;
123
118
 
124
- default:
125
- queryFilters.push("type:eq:".concat(filters.visType));
126
- break;
127
- }
119
+ default:
120
+ queryFilters.push("type:eq:".concat(filters.visType));
121
+ break;
128
122
  }
129
123
 
130
124
  if (filters.searchTerm) {
131
125
  queryFilters.push("name:ilike:".concat(filters.searchTerm));
126
+ } // for ER 2.38 only show line list ER types
127
+
128
+
129
+ if (type === _utils.AO_TYPE_EVENT_REPORT || type === _utils.AO_TYPE_EVENT_VISUALIZATION) {
130
+ queryFilters.push('dataType:eq:EVENTS');
132
131
  }
133
132
 
134
133
  return queryFilters;
@@ -159,13 +158,16 @@ const OpenFileDialog = ({
159
158
  }
160
159
  }, [open, page, sortField, sortDirection]);
161
160
  (0, _react.useEffect)(() => {
162
- // reset pagination when filters are applied/changed
163
- setPage(1);
164
- refetch({
165
- sortField,
166
- sortDirection,
167
- filters: formatFilters()
168
- });
161
+ // avoid fetching data when the dialog is first rendered (hidden)
162
+ if (open) {
163
+ // reset pagination when filters are applied/changed
164
+ setPage(1);
165
+ refetch({
166
+ sortField,
167
+ sortDirection,
168
+ filters: formatFilters()
169
+ });
170
+ }
169
171
  }, [filters]);
170
172
  const headers = [{
171
173
  field: 'displayName',
@@ -181,7 +183,7 @@ const OpenFileDialog = ({
181
183
  width: '110px'
182
184
  }];
183
185
 
184
- if (filterVisTypes !== null && filterVisTypes !== void 0 && filterVisTypes.length) {
186
+ if (type === _utils.AO_TYPE_VISUALIZATION) {
185
187
  headers.splice(1, 0, {
186
188
  field: 'type',
187
189
  label: _d2I18n.default.t('Type'),
@@ -214,10 +216,9 @@ const OpenFileDialog = ({
214
216
  searchTerm: value
215
217
  }), 200));
216
218
  }
217
- })), (filterVisTypes === null || filterVisTypes === void 0 ? void 0 : filterVisTypes.length) && /*#__PURE__*/_react.default.createElement("div", {
219
+ })), type === _utils.AO_TYPE_VISUALIZATION && /*#__PURE__*/_react.default.createElement("div", {
218
220
  className: "jsx-".concat(_OpenFileDialogStyles.styles.__hash) + " " + "type-field-container"
219
221
  }, /*#__PURE__*/_react.default.createElement(_VisTypeFilter.VisTypeFilter, {
220
- visTypes: filterVisTypes,
221
222
  selected: filters.visType,
222
223
  onChange: value => setFilters({ ...filters,
223
224
  visType: value
@@ -286,9 +287,9 @@ const OpenFileDialog = ({
286
287
  onClose();
287
288
  }
288
289
  }, (0, _utils.getTranslatedString)(type, 'newButtonLabel'))))))))), (data === null || data === void 0 ? void 0 : data.files[_utils.AOTypeMap[type].apiEndpoint].length) > 0 && /*#__PURE__*/_react.default.createElement(_FileList.FileList, {
290
+ type: type,
289
291
  data: data.files[_utils.AOTypeMap[type].apiEndpoint],
290
- onSelect: onFileSelect,
291
- showVisTypeColumn: Boolean(filterVisTypes === null || filterVisTypes === void 0 ? void 0 : filterVisTypes.length)
292
+ onSelect: onFileSelect
292
293
  }))), (data === null || data === void 0 ? void 0 : data.files[_utils.AOTypeMap[type].apiEndpoint].length) > 0 && /*#__PURE__*/_react.default.createElement(_ui.DataTableToolbar, {
293
294
  position: "bottom"
294
295
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -309,9 +310,7 @@ OpenFileDialog.propTypes = {
309
310
  type: _propTypes.default.oneOf(Object.keys(_utils.AOTypeMap)).isRequired,
310
311
  onClose: _propTypes.default.func.isRequired,
311
312
  onFileSelect: _propTypes.default.func.isRequired,
312
- onNew: _propTypes.default.func.isRequired,
313
- defaultFilterVisType: _propTypes.default.string,
314
- filterVisTypes: _propTypes.default.array
313
+ onNew: _propTypes.default.func.isRequired
315
314
  };
316
315
  var _default = OpenFileDialog;
317
316
  exports.default = _default;
@@ -7,6 +7,6 @@ exports.styles = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const styles = [".data-table-body.jsx-2890213967{min-height:465px;}", ".pagination-controls.jsx-2890213967{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", ".search-and-filter-bar.jsx-2890213967{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:".concat(_ui.spacers.dp8, ";}"), ".search-field-container.jsx-2890213967{min-width:220px;}", ".type-field-container.jsx-2890213967,.created-by-field-container.jsx-2890213967{min-width:180px;}", ".info-cell.jsx-2890213967{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:".concat(_ui.spacers.dp32, " 0;}"), ".info-container.jsx-2890213967{max-width:400px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".info-text.jsx-2890213967{text-align:center;font-size:14px;line-height:19px;color:".concat(_ui.colors.grey700, ";}"), ".info-button.jsx-2890213967{margin-top:".concat(_ui.spacers.dp12, ";}")];
10
+ const styles = [".data-table-body.jsx-1047699013{min-height:465px;}", ".pagination-controls.jsx-1047699013{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}", ".search-and-filter-bar.jsx-1047699013{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:".concat(_ui.spacers.dp4, ";-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:").concat(_ui.spacers.dp8, ";}"), ".search-field-container.jsx-1047699013{min-width:220px;}", ".type-field-container.jsx-1047699013,.created-by-field-container.jsx-1047699013{min-width:180px;}", ".info-cell.jsx-1047699013{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:".concat(_ui.spacers.dp32, " 0;}"), ".info-container.jsx-1047699013{max-width:400px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}", ".info-text.jsx-1047699013{text-align:center;font-size:14px;line-height:19px;color:".concat(_ui.colors.grey700, ";}"), ".info-button.jsx-1047699013{margin-top:".concat(_ui.spacers.dp12, ";}")];
11
11
  exports.styles = styles;
12
- styles.__hash = "2890213967";
12
+ styles.__hash = "1047699013";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.VisTypeFilter = void 0;
6
+ exports.default = exports.VisTypeFilter = exports.VIS_TYPE_CHARTS = exports.VIS_TYPE_ALL = void 0;
7
7
 
8
8
  var _d2I18n = _interopRequireDefault(require("@dhis2/d2-i18n"));
9
9
 
@@ -21,8 +21,12 @@ var _CustomSelectOption = require("./CustomSelectOption.js");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
+ const VIS_TYPE_ALL = 'all';
25
+ exports.VIS_TYPE_ALL = VIS_TYPE_ALL;
26
+ const VIS_TYPE_CHARTS = 'charts';
27
+ exports.VIS_TYPE_CHARTS = VIS_TYPE_CHARTS;
28
+
24
29
  const VisTypeFilter = ({
25
- visTypes,
26
30
  selected,
27
31
  onChange
28
32
  }) => /*#__PURE__*/_react.default.createElement(_ui.SingleSelect, {
@@ -33,31 +37,26 @@ const VisTypeFilter = ({
33
37
  prefix: _d2I18n.default.t('Type'),
34
38
  dense: true,
35
39
  maxHeight: "400px"
36
- }, visTypes === null || visTypes === void 0 ? void 0 : visTypes.map(({
37
- type,
38
- disabled,
39
- insertDivider
40
- }) => /*#__PURE__*/_react.default.createElement(_CustomSelectOption.CustomSelectOption, {
40
+ }, /*#__PURE__*/_react.default.createElement(_ui.SingleSelectOption, {
41
+ label: _d2I18n.default.t('All types'),
42
+ value: VIS_TYPE_ALL
43
+ }), /*#__PURE__*/_react.default.createElement(_ui.SingleSelectOption, {
44
+ label: _d2I18n.default.t('All charts'),
45
+ value: VIS_TYPE_CHARTS
46
+ }), /*#__PURE__*/_react.default.createElement(_ui.Divider, null), Object.entries(_visTypes.visTypeDisplayNames).map(([type, label]) => /*#__PURE__*/_react.default.createElement(_CustomSelectOption.CustomSelectOption, {
41
47
  key: type,
42
- disabled: disabled,
43
- label: (0, _visTypes.getDisplayNameByVisType)(type),
44
- insertDivider: insertDivider,
48
+ label: label,
45
49
  value: type,
46
- icon: _visTypes.visTypeIcons[type] ? /*#__PURE__*/_react.default.createElement(_VisTypeIcon.VisTypeIcon, {
50
+ icon: /*#__PURE__*/_react.default.createElement(_VisTypeIcon.VisTypeIcon, {
47
51
  type: type,
48
52
  useSmall: true,
49
53
  color: _ui.colors.grey600
50
- }) : undefined
54
+ })
51
55
  })));
52
56
 
53
57
  exports.VisTypeFilter = VisTypeFilter;
54
58
  VisTypeFilter.propTypes = {
55
59
  selected: _propTypes.default.string,
56
- visTypes: _propTypes.default.arrayOf(_propTypes.default.shape({
57
- disabled: _propTypes.default.bool,
58
- insertDivider: _propTypes.default.bool,
59
- type: _propTypes.default.string
60
- })),
61
60
  onChange: _propTypes.default.func
62
61
  };
63
62
  var _default = VisTypeFilter;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getTranslatedString = exports.AOTypeMap = exports.AO_TYPE_EVENT_REPORT = exports.AO_TYPE_EVENT_CHART = exports.AO_TYPE_MAP = exports.AO_TYPE_VISUALIZATION = void 0;
6
+ exports.getTranslatedString = exports.AOTypeMap = exports.AO_TYPE_EVENT_VISUALIZATION = exports.AO_TYPE_EVENT_REPORT = exports.AO_TYPE_EVENT_CHART = exports.AO_TYPE_MAP = exports.AO_TYPE_VISUALIZATION = void 0;
7
7
 
8
8
  var _d2I18n = _interopRequireDefault(require("@dhis2/d2-i18n"));
9
9
 
@@ -17,6 +17,8 @@ const AO_TYPE_EVENT_CHART = 'eventChart';
17
17
  exports.AO_TYPE_EVENT_CHART = AO_TYPE_EVENT_CHART;
18
18
  const AO_TYPE_EVENT_REPORT = 'eventReport';
19
19
  exports.AO_TYPE_EVENT_REPORT = AO_TYPE_EVENT_REPORT;
20
+ const AO_TYPE_EVENT_VISUALIZATION = 'eventVisualization';
21
+ exports.AO_TYPE_EVENT_VISUALIZATION = AO_TYPE_EVENT_VISUALIZATION;
20
22
  const AOTypeMap = {
21
23
  [AO_TYPE_VISUALIZATION]: {
22
24
  apiEndpoint: 'visualizations'
@@ -29,6 +31,9 @@ const AOTypeMap = {
29
31
  },
30
32
  [AO_TYPE_EVENT_REPORT]: {
31
33
  apiEndpoint: 'eventReports'
34
+ },
35
+ [AO_TYPE_EVENT_VISUALIZATION]: {
36
+ apiEndpoint: 'eventVisualizations'
32
37
  }
33
38
  };
34
39
  exports.AOTypeMap = AOTypeMap;
@@ -86,6 +91,20 @@ const getTranslatedString = (type, key) => {
86
91
  };
87
92
  break;
88
93
  }
94
+
95
+ case 'eventVisualization':
96
+ {
97
+ texts = {
98
+ modalTitle: _d2I18n.default.t('Open an event visualization'),
99
+ loadingText: _d2I18n.default.t('Loading event visualizations'),
100
+ errorTitle: _d2I18n.default.t("Couldn't load event visualizations"),
101
+ errorText: _d2I18n.default.t('There was a problem loading event visualizations. Try again or contact your system administrator.'),
102
+ noDataText: _d2I18n.default.t('No event visualizations found. Click New event visualization to get started.'),
103
+ noFilteredDataText: _d2I18n.default.t("No event visualizations found. Try adjusting your search or filter options to find what you're looking for."),
104
+ newButtonLabel: _d2I18n.default.t('New event visualization')
105
+ };
106
+ break;
107
+ }
89
108
  }
90
109
 
91
110
  return texts[key];
@@ -93,6 +93,18 @@ Object.defineProperty(exports, "AboutAOUnit", {
93
93
  return _AboutAOUnit.default;
94
94
  }
95
95
  });
96
+ Object.defineProperty(exports, "CachedDataQueryProvider", {
97
+ enumerable: true,
98
+ get: function () {
99
+ return _CachedDataQueryProvider.CachedDataQueryProvider;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "useCachedDataQuery", {
103
+ enumerable: true,
104
+ get: function () {
105
+ return _CachedDataQueryProvider.useCachedDataQuery;
106
+ }
107
+ });
96
108
  Object.defineProperty(exports, "Analytics", {
97
109
  enumerable: true,
98
110
  get: function () {
@@ -525,18 +537,6 @@ Object.defineProperty(exports, "getLayoutTypeByVisType", {
525
537
  return _visTypeToLayoutType.getLayoutTypeByVisType;
526
538
  }
527
539
  });
528
- Object.defineProperty(exports, "VIS_TYPE_ALL", {
529
- enumerable: true,
530
- get: function () {
531
- return _visTypes.VIS_TYPE_ALL;
532
- }
533
- });
534
- Object.defineProperty(exports, "VIS_TYPE_CHARTS", {
535
- enumerable: true,
536
- get: function () {
537
- return _visTypes.VIS_TYPE_CHARTS;
538
- }
539
- });
540
540
  Object.defineProperty(exports, "VIS_TYPE_COLUMN", {
541
541
  enumerable: true,
542
542
  get: function () {
@@ -633,16 +633,16 @@ Object.defineProperty(exports, "VIS_TYPE_SCATTER", {
633
633
  return _visTypes.VIS_TYPE_SCATTER;
634
634
  }
635
635
  });
636
- Object.defineProperty(exports, "VIS_TYPE_LINE_LIST", {
636
+ Object.defineProperty(exports, "visTypeDisplayNames", {
637
637
  enumerable: true,
638
638
  get: function () {
639
- return _visTypes.VIS_TYPE_LINE_LIST;
639
+ return _visTypes.visTypeDisplayNames;
640
640
  }
641
641
  });
642
- Object.defineProperty(exports, "visTypeDisplayNames", {
642
+ Object.defineProperty(exports, "visTypeDescriptions", {
643
643
  enumerable: true,
644
644
  get: function () {
645
- return _visTypes.visTypeDisplayNames;
645
+ return _visTypes.visTypeDescriptions;
646
646
  }
647
647
  });
648
648
  Object.defineProperty(exports, "visTypeIcons", {
@@ -1186,6 +1186,8 @@ var _LegendKey = _interopRequireDefault(require("./components/LegendKey/LegendKe
1186
1186
 
1187
1187
  var _AboutAOUnit = _interopRequireDefault(require("./components/AboutAOUnit/AboutAOUnit.js"));
1188
1188
 
1189
+ var _CachedDataQueryProvider = require("./components/CachedDataQueryProvider.js");
1190
+
1189
1191
  var _Analytics = _interopRequireDefault(require("./api/analytics/Analytics.js"));
1190
1192
 
1191
1193
  var _dimensions = require("./api/dimensions.js");
@@ -20,6 +20,8 @@
20
20
  "Unsubscribe": "",
21
21
  "Subscribe to get updates about new interpretations.": "",
22
22
  "Subscribe": "",
23
+ "This app could not retrieve required data.": "",
24
+ "Network error": "",
23
25
  "Data Type": "نوع البيانات",
24
26
  "All types": "جميع الأنواع",
25
27
  "Totals only": "",
@@ -119,6 +121,13 @@
119
121
  "No event reports found. Click New event report to get started.": "",
120
122
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
121
123
  "New event report": "",
124
+ "Open an event visualization": "",
125
+ "Loading event visualizations": "",
126
+ "Couldn't load event visualizations": "",
127
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
128
+ "No event visualizations found. Click New event visualization to get started.": "",
129
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
130
+ "New event visualization": "",
122
131
  "Options": "الخيارات",
123
132
  "Hide": "إخفاء",
124
133
  "Update": "تحديث",
@@ -20,6 +20,8 @@
20
20
  "Unsubscribe": "",
21
21
  "Subscribe to get updates about new interpretations.": "",
22
22
  "Subscribe": "",
23
+ "This app could not retrieve required data.": "",
24
+ "Network error": "",
23
25
  "Data Type": "",
24
26
  "All types": "",
25
27
  "Totals only": "",
@@ -119,6 +121,13 @@
119
121
  "No event reports found. Click New event report to get started.": "",
120
122
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
121
123
  "New event report": "",
124
+ "Open an event visualization": "",
125
+ "Loading event visualizations": "",
126
+ "Couldn't load event visualizations": "",
127
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
128
+ "No event visualizations found. Click New event visualization to get started.": "",
129
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
130
+ "New event visualization": "",
122
131
  "Options": "",
123
132
  "Hide": "",
124
133
  "Update": "",
@@ -20,6 +20,8 @@
20
20
  "Unsubscribe": "",
21
21
  "Subscribe to get updates about new interpretations.": "",
22
22
  "Subscribe": "",
23
+ "This app could not retrieve required data.": "",
24
+ "Network error": "",
23
25
  "Data Type": "",
24
26
  "All types": "",
25
27
  "Totals only": "",
@@ -119,6 +121,13 @@
119
121
  "No event reports found. Click New event report to get started.": "",
120
122
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
121
123
  "New event report": "",
124
+ "Open an event visualization": "",
125
+ "Loading event visualizations": "",
126
+ "Couldn't load event visualizations": "",
127
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
128
+ "No event visualizations found. Click New event visualization to get started.": "",
129
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
130
+ "New event visualization": "",
122
131
  "Options": "الخيارات",
123
132
  "Hide": "إخفاء",
124
133
  "Update": "تحديث",
@@ -16,6 +16,8 @@
16
16
  "Unsubscribe": "",
17
17
  "Subscribe to get updates about new interpretations.": "",
18
18
  "Subscribe": "",
19
+ "This app could not retrieve required data.": "",
20
+ "Network error": "",
19
21
  "Data Type": "",
20
22
  "All types": "",
21
23
  "Totals only": "",
@@ -115,6 +117,13 @@
115
117
  "No event reports found. Click New event report to get started.": "",
116
118
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
117
119
  "New event report": "",
120
+ "Open an event visualization": "",
121
+ "Loading event visualizations": "",
122
+ "Couldn't load event visualizations": "",
123
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
124
+ "No event visualizations found. Click New event visualization to get started.": "",
125
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
126
+ "New event visualization": "",
118
127
  "Options": "",
119
128
  "Hide": "شاردنەوە",
120
129
  "Update": "نوێ کردنەوە",
@@ -18,6 +18,8 @@
18
18
  "Unsubscribe": "Odhlásit odběr",
19
19
  "Subscribe to get updates about new interpretations.": "Přihlaste se k odběru novinek o nových interpretacích.",
20
20
  "Subscribe": "Odebírat",
21
+ "This app could not retrieve required data.": "",
22
+ "Network error": "",
21
23
  "Data Type": "Typ dat",
22
24
  "All types": "Všechny typy",
23
25
  "Totals only": "Pouze součty",
@@ -117,6 +119,13 @@
117
119
  "No event reports found. Click New event report to get started.": "Nebyly nalezeny žádné zprávy o událostech. Začněte kliknutím na Nový přehled událostí.",
118
120
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "Nebyly nalezeny žádné zprávy o událostech. Zkuste upravit možnosti vyhledávání nebo filtrování, abyste našli to, co hledáte.",
119
121
  "New event report": "Nová zpráva o události",
122
+ "Open an event visualization": "",
123
+ "Loading event visualizations": "",
124
+ "Couldn't load event visualizations": "",
125
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
126
+ "No event visualizations found. Click New event visualization to get started.": "",
127
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
128
+ "New event visualization": "",
120
129
  "Options": "Možnosti",
121
130
  "Hide": "Skrýt",
122
131
  "Update": "Aktualizovat",
@@ -230,14 +239,14 @@
230
239
  "Six-months": "Půlrok",
231
240
  "Financial Years": "Finanční roky",
232
241
  "Years": "Let",
233
- "Translating to": "",
234
- "Choose a locale": "",
235
- "Base locale reference": "",
236
- "Choose a locale to translate from the menu above": "",
237
- "Translate: {{objectName}}": "",
238
- "Save translations": "",
239
- "Could not load translations": "",
240
- "Retry": "",
242
+ "Translating to": "Překlad do",
243
+ "Choose a locale": "Vyberte národní prostředí",
244
+ "Base locale reference": "Odkaz na základní národní prostředí",
245
+ "Choose a locale to translate from the menu above": "Z nabídky výše vyberte národní prostředí, které chcete přeložit",
246
+ "Translate: {{objectName}}": "Přeložit: {{objectName}}",
247
+ "Save translations": "Uložit překlady",
248
+ "Could not load translations": "Nelze načíst překlady",
249
+ "Retry": "Opakovat",
241
250
  "Series": "Série",
242
251
  "Category": "Kategorie",
243
252
  "Filter": "Filtr",
@@ -16,6 +16,8 @@
16
16
  "Unsubscribe": "",
17
17
  "Subscribe to get updates about new interpretations.": "",
18
18
  "Subscribe": "",
19
+ "This app could not retrieve required data.": "",
20
+ "Network error": "",
19
21
  "Data Type": "",
20
22
  "All types": "",
21
23
  "Totals only": "",
@@ -115,6 +117,13 @@
115
117
  "No event reports found. Click New event report to get started.": "",
116
118
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
117
119
  "New event report": "",
120
+ "Open an event visualization": "",
121
+ "Loading event visualizations": "",
122
+ "Couldn't load event visualizations": "",
123
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
124
+ "No event visualizations found. Click New event visualization to get started.": "",
125
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
126
+ "New event visualization": "",
118
127
  "Options": "",
119
128
  "Hide": "",
120
129
  "Update": "Update",
@@ -16,6 +16,8 @@
16
16
  "Unsubscribe": "Unsubscribe",
17
17
  "Subscribe to get updates about new interpretations.": "Subscribe to get updates about new interpretations.",
18
18
  "Subscribe": "Subscribe",
19
+ "This app could not retrieve required data.": "This app could not retrieve required data.",
20
+ "Network error": "Network error",
19
21
  "Data Type": "Data Type",
20
22
  "All types": "All types",
21
23
  "Totals only": "Totals only",
@@ -81,13 +83,13 @@
81
83
  "Anyone": "Anyone",
82
84
  "Only you": "Only you",
83
85
  "Others": "Others",
84
- "Not supported by this app yet": "Not supported by this app yet",
85
86
  "Filter by name": "Filter by name",
86
87
  "Created": "Created",
87
88
  "Last updated": "Last updated",
88
89
  "Type": "Type",
89
90
  "Clear filters": "Clear filters",
90
91
  "{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}": "{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}",
92
+ "All charts": "All charts",
91
93
  "Open": "Open",
92
94
  "Couldn't load items": "Couldn't load items",
93
95
  "There was a problem loading items. Try again or contact your system administrator.": "There was a problem loading items. Try again or contact your system administrator.",
@@ -115,6 +117,13 @@
115
117
  "No event reports found. Click New event report to get started.": "No event reports found. Click New event report to get started.",
116
118
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "No event reports found. Try adjusting your search or filter options to find what you're looking for.",
117
119
  "New event report": "New event report",
120
+ "Open an event visualization": "Open an event visualization",
121
+ "Loading event visualizations": "Loading event visualizations",
122
+ "Couldn't load event visualizations": "Couldn't load event visualizations",
123
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "There was a problem loading event visualizations. Try again or contact your system administrator.",
124
+ "No event visualizations found. Click New event visualization to get started.": "No event visualizations found. Click New event visualization to get started.",
125
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.",
126
+ "New event visualization": "New event visualization",
118
127
  "Options": "Options",
119
128
  "Hide": "Hide",
120
129
  "Update": "Update",
@@ -309,8 +318,19 @@
309
318
  "Year over year (column)": "Year over year (column)",
310
319
  "Single value": "Single value",
311
320
  "Scatter": "Scatter",
312
- "Line list": "Line list",
313
- "All charts": "All charts",
321
+ "View data and indicators in a manipulatable table.": "View data and indicators in a manipulatable table.",
322
+ "Compare sizes of related elements vertically. Recommend period as filter.": "Compare sizes of related elements vertically. Recommend period as filter.",
323
+ "Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.": "Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.",
324
+ "Compare sizes of related elements horizontally. Recommend period as filter.": "Compare sizes of related elements horizontally. Recommend period as filter.",
325
+ "Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.": "Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.",
326
+ "Track or compare changes over time. Recommend period as category.": "Track or compare changes over time. Recommend period as category.",
327
+ "Track or compare parts of a whole over time. Recommend data as series and period as category.": "Track or compare parts of a whole over time. Recommend data as series and period as category.",
328
+ "Compare parts of a whole at a single point in time. Recommend period as filter.": "Compare parts of a whole at a single point in time. Recommend period as filter.",
329
+ "Compare several items against multiple variables.": "Compare several items against multiple variables.",
330
+ "Compare a percentage indicator against a 100% scale. Recommend period as filter.": "Compare a percentage indicator against a 100% scale. Recommend period as filter.",
331
+ "Compare changes over time between multiple time periods.": "Compare changes over time between multiple time periods.",
332
+ "Display a single value. Recommend relative period to show latest data.": "Display a single value. Recommend relative period to show latest data.",
333
+ "View the relationship between two data items at a place or time. Recommended for finding outliers.": "View the relationship between two data items at a place or time. Recommended for finding outliers.",
314
334
  "{{seriesName}} (trend)": "{{seriesName}} (trend)",
315
335
  "Trend": "Trend",
316
336
  "No legend for this series": "No legend for this series",
@@ -16,6 +16,8 @@
16
16
  "Unsubscribe": "",
17
17
  "Subscribe to get updates about new interpretations.": "",
18
18
  "Subscribe": "",
19
+ "This app could not retrieve required data.": "",
20
+ "Network error": "",
19
21
  "Data Type": "Tipo de datos",
20
22
  "All types": "Todos los tipos",
21
23
  "Totals only": "",
@@ -115,6 +117,13 @@
115
117
  "No event reports found. Click New event report to get started.": "",
116
118
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
117
119
  "New event report": "",
120
+ "Open an event visualization": "",
121
+ "Loading event visualizations": "",
122
+ "Couldn't load event visualizations": "",
123
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
124
+ "No event visualizations found. Click New event visualization to get started.": "",
125
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
126
+ "New event visualization": "",
118
127
  "Options": "Opciones",
119
128
  "Hide": "Ocultar",
120
129
  "Update": "Actualizar",
@@ -16,6 +16,8 @@
16
16
  "Unsubscribe": "",
17
17
  "Subscribe to get updates about new interpretations.": "",
18
18
  "Subscribe": "",
19
+ "This app could not retrieve required data.": "",
20
+ "Network error": "",
19
21
  "Data Type": "Type de données",
20
22
  "All types": "Tous les types",
21
23
  "Totals only": "Totaux uniquement",
@@ -115,6 +117,13 @@
115
117
  "No event reports found. Click New event report to get started.": "",
116
118
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
117
119
  "New event report": "",
120
+ "Open an event visualization": "",
121
+ "Loading event visualizations": "",
122
+ "Couldn't load event visualizations": "",
123
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
124
+ "No event visualizations found. Click New event visualization to get started.": "",
125
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
126
+ "New event visualization": "",
118
127
  "Options": "Options",
119
128
  "Hide": "Masquer",
120
129
  "Update": "Mettre à jour",
@@ -15,6 +15,8 @@
15
15
  "Unsubscribe": "",
16
16
  "Subscribe to get updates about new interpretations.": "",
17
17
  "Subscribe": "",
18
+ "This app could not retrieve required data.": "",
19
+ "Network error": "",
18
20
  "Data Type": "Tipe Data",
19
21
  "All types": "Semua jenis",
20
22
  "Totals only": "Total saja",
@@ -114,6 +116,13 @@
114
116
  "No event reports found. Click New event report to get started.": "",
115
117
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
116
118
  "New event report": "",
119
+ "Open an event visualization": "",
120
+ "Loading event visualizations": "",
121
+ "Couldn't load event visualizations": "",
122
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
123
+ "No event visualizations found. Click New event visualization to get started.": "",
124
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
125
+ "New event visualization": "",
117
126
  "Options": "Opsi",
118
127
  "Hide": "Sembunyikan",
119
128
  "Update": "Perbarui",
@@ -15,6 +15,8 @@
15
15
  "Unsubscribe": "",
16
16
  "Subscribe to get updates about new interpretations.": "",
17
17
  "Subscribe": "",
18
+ "This app could not retrieve required data.": "",
19
+ "Network error": "",
18
20
  "Data Type": "",
19
21
  "All types": "",
20
22
  "Totals only": "",
@@ -114,6 +116,13 @@
114
116
  "No event reports found. Click New event report to get started.": "",
115
117
  "No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
116
118
  "New event report": "",
119
+ "Open an event visualization": "",
120
+ "Loading event visualizations": "",
121
+ "Couldn't load event visualizations": "",
122
+ "There was a problem loading event visualizations. Try again or contact your system administrator.": "",
123
+ "No event visualizations found. Click New event visualization to get started.": "",
124
+ "No event visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
125
+ "New event visualization": "",
117
126
  "Options": "",
118
127
  "Hide": "",
119
128
  "Update": "ធ្វើ​បច្ចុប្បន្នភាព",