@dhis2/analytics 23.10.2 → 23.11.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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # [23.11.0](https://github.com/dhis2/analytics/compare/v23.10.4...v23.11.0) (2022-06-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * export getColorByValueFromLegendSet ([#1249](https://github.com/dhis2/analytics/issues/1249)) ([6ce534d](https://github.com/dhis2/analytics/commit/6ce534d1d63d8aeac6ea44e7742681c10f57d709))
7
+
8
+ ## [23.10.4](https://github.com/dhis2/analytics/compare/v23.10.3...v23.10.4) (2022-05-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **translations:** sync translations from transifex (master) ([d09d69d](https://github.com/dhis2/analytics/commit/d09d69dd22984f3bbb4a2de4390eb61e4f867f35))
14
+
15
+ ## [23.10.3](https://github.com/dhis2/analytics/compare/v23.10.2...v23.10.3) (2022-05-27)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **translations:** sync translations from transifex (master) ([21c1d9f](https://github.com/dhis2/analytics/commit/21c1d9f788e2110a228ac04dbe755519c6f10fb1))
21
+
1
22
  ## [23.10.2](https://github.com/dhis2/analytics/compare/v23.10.1...v23.10.2) (2022-05-26)
2
23
 
3
24
 
@@ -7,7 +7,7 @@ exports.default = void 0;
7
7
 
8
8
  var _ui = require("@dhis2/ui");
9
9
 
10
- const _defaultExport = [".container.jsx-3203773516{width:180px;background:".concat(_ui.colors.white, ";padding:").concat(_ui.spacers.dp8, ";border:1px solid ").concat(_ui.colors.grey400, ";}"), ".legendSet.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(_ui.spacers.dp4, ";}"), ".legendSetName.jsx-3203773516{display:inline-block;font-size:13px;color:".concat(_ui.colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(_ui.spacers.dp4, " 0 ").concat(_ui.spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-3203773516{color:".concat(_ui.colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-3203773516{border-top:1px solid ".concat(_ui.colors.grey400, ";padding-top:").concat(_ui.spacers.dp8, ";margin-top:").concat(_ui.spacers.dp8, ";}")];
11
- _defaultExport.__hash = "3203773516";
10
+ const _defaultExport = [".container.jsx-2467849725{width:180px;background:".concat(_ui.colors.white, ";padding:").concat(_ui.spacers.dp8, ";}"), ".legendSet.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(_ui.spacers.dp4, ";}"), ".legendSetName.jsx-2467849725{display:inline-block;font-size:13px;color:".concat(_ui.colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(_ui.spacers.dp4, " 0 ").concat(_ui.spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-2467849725{color:".concat(_ui.colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-2467849725{border-top:1px solid ".concat(_ui.colors.grey400, ";padding-top:").concat(_ui.spacers.dp8, ";margin-top:").concat(_ui.spacers.dp8, ";}")];
11
+ _defaultExport.__hash = "2467849725";
12
12
  var _default = _defaultExport;
13
13
  exports.default = _default;
@@ -1131,6 +1131,12 @@ Object.defineProperty(exports, "getAxisPerLockedDimension", {
1131
1131
  return _index5.getAxisPerLockedDimension;
1132
1132
  }
1133
1133
  });
1134
+ Object.defineProperty(exports, "getColorByValueFromLegendSet", {
1135
+ enumerable: true,
1136
+ get: function () {
1137
+ return _legends.getColorByValueFromLegendSet;
1138
+ }
1139
+ });
1134
1140
  Object.defineProperty(exports, "getDimensionById", {
1135
1141
  enumerable: true,
1136
1142
  get: function () {
@@ -47,29 +47,31 @@ var _translations19 = _interopRequireDefault(require("./pt/translations.json"));
47
47
 
48
48
  var _translations20 = _interopRequireDefault(require("./pt_BR/translations.json"));
49
49
 
50
- var _translations21 = _interopRequireDefault(require("./ru/translations.json"));
50
+ var _translations21 = _interopRequireDefault(require("./ro/translations.json"));
51
51
 
52
- var _translations22 = _interopRequireDefault(require("./sv/translations.json"));
52
+ var _translations22 = _interopRequireDefault(require("./ru/translations.json"));
53
53
 
54
- var _translations23 = _interopRequireDefault(require("./tet/translations.json"));
54
+ var _translations23 = _interopRequireDefault(require("./sv/translations.json"));
55
55
 
56
- var _translations24 = _interopRequireDefault(require("./tg/translations.json"));
56
+ var _translations24 = _interopRequireDefault(require("./tet/translations.json"));
57
57
 
58
- var _translations25 = _interopRequireDefault(require("./uk/translations.json"));
58
+ var _translations25 = _interopRequireDefault(require("./tg/translations.json"));
59
59
 
60
- var _translations26 = _interopRequireDefault(require("./ur/translations.json"));
60
+ var _translations26 = _interopRequireDefault(require("./uk/translations.json"));
61
61
 
62
- var _translations27 = _interopRequireDefault(require("./uz/translations.json"));
62
+ var _translations27 = _interopRequireDefault(require("./ur/translations.json"));
63
63
 
64
- var _translations28 = _interopRequireDefault(require("./uz_Cyrl/translations.json"));
64
+ var _translations28 = _interopRequireDefault(require("./uz/translations.json"));
65
65
 
66
- var _translations29 = _interopRequireDefault(require("./uz_Latn/translations.json"));
66
+ var _translations29 = _interopRequireDefault(require("./uz_Cyrl/translations.json"));
67
67
 
68
- var _translations30 = _interopRequireDefault(require("./vi/translations.json"));
68
+ var _translations30 = _interopRequireDefault(require("./uz_Latn/translations.json"));
69
69
 
70
- var _translations31 = _interopRequireDefault(require("./zh/translations.json"));
70
+ var _translations31 = _interopRequireDefault(require("./vi/translations.json"));
71
71
 
72
- var _translations32 = _interopRequireDefault(require("./zh_CN/translations.json"));
72
+ var _translations32 = _interopRequireDefault(require("./zh/translations.json"));
73
+
74
+ var _translations33 = _interopRequireDefault(require("./zh_CN/translations.json"));
73
75
 
74
76
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
75
77
 
@@ -123,29 +125,31 @@ _d2I18n.default.addResources('pt', namespace, _translations19.default);
123
125
 
124
126
  _d2I18n.default.addResources('pt_BR', namespace, _translations20.default);
125
127
 
126
- _d2I18n.default.addResources('ru', namespace, _translations21.default);
128
+ _d2I18n.default.addResources('ro', namespace, _translations21.default);
129
+
130
+ _d2I18n.default.addResources('ru', namespace, _translations22.default);
127
131
 
128
- _d2I18n.default.addResources('sv', namespace, _translations22.default);
132
+ _d2I18n.default.addResources('sv', namespace, _translations23.default);
129
133
 
130
- _d2I18n.default.addResources('tet', namespace, _translations23.default);
134
+ _d2I18n.default.addResources('tet', namespace, _translations24.default);
131
135
 
132
- _d2I18n.default.addResources('tg', namespace, _translations24.default);
136
+ _d2I18n.default.addResources('tg', namespace, _translations25.default);
133
137
 
134
- _d2I18n.default.addResources('uk', namespace, _translations25.default);
138
+ _d2I18n.default.addResources('uk', namespace, _translations26.default);
135
139
 
136
- _d2I18n.default.addResources('ur', namespace, _translations26.default);
140
+ _d2I18n.default.addResources('ur', namespace, _translations27.default);
137
141
 
138
- _d2I18n.default.addResources('uz', namespace, _translations27.default);
142
+ _d2I18n.default.addResources('uz', namespace, _translations28.default);
139
143
 
140
- _d2I18n.default.addResources('uz_Cyrl', namespace, _translations28.default);
144
+ _d2I18n.default.addResources('uz_Cyrl', namespace, _translations29.default);
141
145
 
142
- _d2I18n.default.addResources('uz_Latn', namespace, _translations29.default);
146
+ _d2I18n.default.addResources('uz_Latn', namespace, _translations30.default);
143
147
 
144
- _d2I18n.default.addResources('vi', namespace, _translations30.default);
148
+ _d2I18n.default.addResources('vi', namespace, _translations31.default);
145
149
 
146
- _d2I18n.default.addResources('zh', namespace, _translations31.default);
150
+ _d2I18n.default.addResources('zh', namespace, _translations32.default);
147
151
 
148
- _d2I18n.default.addResources('zh_CN', namespace, _translations32.default);
152
+ _d2I18n.default.addResources('zh_CN', namespace, _translations33.default);
149
153
 
150
154
  var _default = _d2I18n.default;
151
155
  exports.default = _default;
@@ -195,8 +195,8 @@
195
195
  "This bi-week": "",
196
196
  "Last bi-week": "",
197
197
  "Last 4 bi-weeks": "",
198
- "This month": "",
199
- "Last month": "",
198
+ "This month": "ଚଳିତ ମାସ",
199
+ "Last month": "ଗତ ମାସ",
200
200
  "Last 3 months": "",
201
201
  "Last 6 months": "",
202
202
  "Last 12 months": "",
@@ -0,0 +1,336 @@
1
+ {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times_0": "",
13
+ "Viewed {{count}} times_1": "",
14
+ "Viewed {{count}} times_2": "",
15
+ "Notifications": "",
16
+ "You're subscribed and getting updates about new interpretations.": "",
17
+ "Unsubscribe": "",
18
+ "Subscribe to get updates about new interpretations.": "",
19
+ "Subscribe": "",
20
+ "This app could not retrieve required data.": "",
21
+ "Network error": "",
22
+ "Data Type": "",
23
+ "All types": "",
24
+ "Totals only": "",
25
+ "Details only": "",
26
+ "Disaggregation": "",
27
+ "No data": "",
28
+ "Loading": "",
29
+ "Search by data item name": "",
30
+ "No items selected": "",
31
+ "Selected Items": "",
32
+ "No indicators found": "",
33
+ "No data elements found": "",
34
+ "No data sets found": "",
35
+ "No event data items found": "",
36
+ "No program indicators found": "",
37
+ "No indicators found for \"{{- searchTerm}}\"": "",
38
+ "No data elements found for \"{{- searchTerm}}\"": "",
39
+ "No data sets found for \"{{- searchTerm}}\"": "",
40
+ "No event data items found for \"{{- searchTerm}}\"": "",
41
+ "No program indicators found for \"{{- searchTerm}}\"": "",
42
+ "Nothing found for \"{{- searchTerm}}\"": "",
43
+ "Metric type": "",
44
+ "All metrics": "",
45
+ "Move to {{axisName}}": "",
46
+ "Add to {{axisName}}": "",
47
+ "Not available for {{visualizationType}}": "",
48
+ "Remove Assigned Categories": "",
49
+ "Add Assigned Categories": "",
50
+ "Remove": "",
51
+ "Filter dimensions": "",
52
+ "Main dimensions": "",
53
+ "Your dimensions": "",
54
+ "Dimension recommended with selected data": "",
55
+ "All items": "",
56
+ "Automatically include all items": "",
57
+ "Select all {{- dimensionTitle}} items. With this option, new items added in the future will be automatically included.": "",
58
+ "Manually select items...": "",
59
+ "Nothing found in {{- dimensionTitle}}": "",
60
+ "Search": "Căutare",
61
+ "Nothing found for {{searchTerm}}": "",
62
+ "Delete {{fileType}}": "",
63
+ "This {{fileType}} and related interpretations will be deleted. Continue?": "",
64
+ "Cancel": "",
65
+ "Delete": "Lichidare",
66
+ "File": "Fişier",
67
+ "New": "Nou",
68
+ "Open…": "",
69
+ "Save": "salva",
70
+ "Save…": "",
71
+ "Save as…": "",
72
+ "Rename…": "",
73
+ "Translate…": "",
74
+ "Share…": "",
75
+ "Get link…": "",
76
+ "Open in this app": "",
77
+ "Close": "Închidere",
78
+ "Rename {{fileType}}": "",
79
+ "Name": "",
80
+ "Description": "Descriere",
81
+ "Rename": "",
82
+ "Save {{fileType}} as": "",
83
+ "event report": "",
84
+ "line list": "",
85
+ "map": "",
86
+ "visualization": "",
87
+ "Created by": "",
88
+ "Anyone": "Oricine",
89
+ "Only you": "",
90
+ "Others": "",
91
+ "Not supported by this app yet": "",
92
+ "Filter by name": "",
93
+ "Created": "",
94
+ "Last updated": "Ultima actualizare",
95
+ "Type": "",
96
+ "Clear filters": "",
97
+ "{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}": "",
98
+ "Open": "",
99
+ "Couldn't load items": "",
100
+ "There was a problem loading items. Try again or contact your system administrator.": "",
101
+ "No items found. Create a new to get started.": "",
102
+ "No items found. Try adjusting your search or filter options to find what you're looking for.": "",
103
+ "Create new": "",
104
+ "Open a visualization": "",
105
+ "Loading visualizations": "",
106
+ "Couldn't load visualizations": "",
107
+ "There was a problem loading visualizations. Try again or contact your system administrator.": "",
108
+ "No visualizations found. Click New visualization to get started.": "",
109
+ "No visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
110
+ "New visualization": "",
111
+ "Open a map": "",
112
+ "Loading maps": "",
113
+ "Couldn't load maps": "",
114
+ "There was a problem loading maps. Try again or contact your system administrator.": "",
115
+ "No maps found. Click New map to get started.": "",
116
+ "No maps found. Try adjusting your search or filter options to find what you're looking for.": "",
117
+ "New map": "",
118
+ "Open a line list": "",
119
+ "Loading line lists": "",
120
+ "Couldn't load line lists": "",
121
+ "There was a problem loading line lists. Try again or contact your system administrator.": "",
122
+ "No line lists found. Click New line list to get started.": "",
123
+ "No line lists found. Try adjusting your search or filter options to find what you're looking for.": "",
124
+ "New line list": "",
125
+ "Options": "",
126
+ "Hide": "",
127
+ "Update": "Actualizare",
128
+ "{{count}} org units_0": "",
129
+ "{{count}} org units_1": "",
130
+ "{{count}} org units_2": "",
131
+ "{{count}} levels_0": "",
132
+ "{{count}} levels_1": "",
133
+ "{{count}} levels_2": "",
134
+ "{{count}} groups_0": "",
135
+ "{{count}} groups_1": "",
136
+ "{{count}} groups_2": "",
137
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
138
+ "Nothing selected": "",
139
+ "User organisation unit": "",
140
+ "User sub-units": "",
141
+ "User sub-x2-units": "",
142
+ "Select a level": "",
143
+ "Select a group": "",
144
+ "Deselect all": "",
145
+ "Period type": "Tipul perioadei",
146
+ "Year": "An",
147
+ "Select year": "",
148
+ "Period": "",
149
+ "Relative periods": "Perioade relative",
150
+ "Fixed periods": "",
151
+ "Selected Periods": "",
152
+ "No periods selected": "",
153
+ "January": "",
154
+ "February": "",
155
+ "March": "",
156
+ "April": "",
157
+ "May": "",
158
+ "June": "",
159
+ "July": "",
160
+ "August": "",
161
+ "September": "",
162
+ "October": "",
163
+ "November": "",
164
+ "December": "",
165
+ "Week {{weekNumber}}": "",
166
+ "Bi-Week {{biWeekNumber}}": "",
167
+ "Daily": "",
168
+ "Weekly": "",
169
+ "Weekly (Start Wednesday)": "",
170
+ "Weekly (Start Thursday)": "",
171
+ "Weekly (Start Saturday)": "",
172
+ "Weekly (Start Sunday)": "",
173
+ "Bi-weekly": "",
174
+ "Monthly": "Lunar",
175
+ "Bi-monthly": "",
176
+ "Quarterly": "Trimestrial",
177
+ "Six-monthly": "",
178
+ "Six-monthly April": "",
179
+ "Yearly": "Anual",
180
+ "Financial year (Start November)": "",
181
+ "Financial year (Start October)": "",
182
+ "Financial year (Start July)": "",
183
+ "Financial year (Start April)": "",
184
+ "Today": "Astăzi",
185
+ "Yesterday": "Ieri",
186
+ "Last 3 days": "Ultimele 3 zile",
187
+ "Last 7 days": "Ultimele 7 zile",
188
+ "Last 14 days": "Ultimele 14 zile",
189
+ "Last 30 days": "",
190
+ "Last 60 days": "",
191
+ "Last 90 days": "",
192
+ "Last 180 days": "",
193
+ "This week": "Săptămâna aceasta",
194
+ "Last week": "Săptămâna trecută",
195
+ "Last 4 weeks": "Ultimele 4 săptămâni",
196
+ "Last 12 weeks": "",
197
+ "Last 52 weeks": "Ultimele 52 de săptămâni",
198
+ "Weeks this year": "Săptămâni în anul curent",
199
+ "This bi-week": "",
200
+ "Last bi-week": "",
201
+ "Last 4 bi-weeks": "",
202
+ "This month": "Luna aceasta",
203
+ "Last month": "Luna trecută",
204
+ "Last 3 months": "Ultimele 3 luni",
205
+ "Last 6 months": "Ultimele 6 luni",
206
+ "Last 12 months": "Ultimele 12 luni",
207
+ "Months this year": "Luni în anul curent",
208
+ "This bi-month": "",
209
+ "Last bi-month": "",
210
+ "Last 6 bi-months": "",
211
+ "Bi-months this year": "",
212
+ "This quarter": "",
213
+ "Last quarter": "Ultimul trimestru",
214
+ "Last 4 quarters": "Ultimele 4 trimestre",
215
+ "Quarters this year": "Trimestre în anul curent",
216
+ "This six-month": "",
217
+ "Last six-month": "Ultimele șase luni",
218
+ "Last 2 six-month": "",
219
+ "This financial year": "",
220
+ "Last financial year": "Ultimul an financiar",
221
+ "Last 5 financial years": "Ultimii 5 ani financiari",
222
+ "This year": "",
223
+ "Last year": "Anul trecut",
224
+ "Last 5 years": "Ultimii 5 ani",
225
+ "Last 10 years": "",
226
+ "Days": "Zile",
227
+ "Weeks": "Săptămâni",
228
+ "Bi-weeks": "",
229
+ "Months": "Luni",
230
+ "Bi-months": "Bi-lunar",
231
+ "Quarters": "Trimestre",
232
+ "Six-months": "Șase luni",
233
+ "Financial Years": "Ani financiari",
234
+ "Years": "Ani",
235
+ "Translating to": "",
236
+ "Choose a locale": "",
237
+ "Base locale reference": "",
238
+ "Choose a locale to translate from the menu above": "",
239
+ "Translate: {{objectName}}": "",
240
+ "Save translations": "",
241
+ "Could not load translations": "",
242
+ "Retry": "",
243
+ "Series": "",
244
+ "Category": "",
245
+ "Filter": "",
246
+ "Columns": "",
247
+ "Rows": "",
248
+ "Points": "",
249
+ "Reporting rate": "",
250
+ "Reporting rate on time": "",
251
+ "Actual reports": "",
252
+ "Actual reports on time": "",
253
+ "Expected reports": "",
254
+ "Program": "",
255
+ "Select a program": "",
256
+ "Indicators": "Indicatori",
257
+ "Indicator group": "",
258
+ "All groups": "",
259
+ "Indicator": "Indicator",
260
+ "No indicator groups found": "",
261
+ "Loading indicator groups": "",
262
+ "Data elements": "",
263
+ "Data element group": "",
264
+ "Data element": "",
265
+ "No data element groups found": "",
266
+ "Loading data element groups": "",
267
+ "Data sets": "",
268
+ "Data set": "",
269
+ "All data sets": "",
270
+ "Loading data sets": "",
271
+ "Event data items": "",
272
+ "All programs": "",
273
+ "Event data item": "",
274
+ "No programs found": "",
275
+ "Loading programs": "",
276
+ "Program indicators": "",
277
+ "Program indicator": "",
278
+ "Extra Small": "",
279
+ "Small": "",
280
+ "Regular": "",
281
+ "Large": "",
282
+ "Extra Large": "",
283
+ "Left": "",
284
+ "Center": "",
285
+ "Right": "",
286
+ "Start": "",
287
+ "Middle": "",
288
+ "End": "",
289
+ "Top": "",
290
+ "Bottom": "",
291
+ "{{dynamicOuNames}} and {{lastOuName}}": "",
292
+ "{{allDynamicOuNames}} levels": "",
293
+ "{{allDynamicOuNames}} groups": "",
294
+ "{{allDynamicOuNames}} levels in {{staticOuNames}}": "",
295
+ "{{allDynamicOuNames}} groups in {{staticOuNames}}": "",
296
+ "{{percentage}}% of total x values": "",
297
+ "{{percentage}}% of total y values": "",
298
+ "{{thresholdFactor}} × IQR Q1": "",
299
+ "{{thresholdFactor}} × IQR Q3": "",
300
+ "{{thresholdFactor}} × Modified Z-score low": "",
301
+ "{{thresholdFactor}} × Modified Z-score high": "",
302
+ "{{thresholdFactor}} × Z-score low": "",
303
+ "{{thresholdFactor}} × Z-score high": "",
304
+ "Data": "",
305
+ "Organisation unit": "Unitate organizațională",
306
+ "Assigned Categories": "",
307
+ "Pivot table": "",
308
+ "Area": "",
309
+ "Stacked area": "",
310
+ "Bar": "",
311
+ "Stacked bar": "",
312
+ "Column": "Coloană",
313
+ "Year over year (column)": "",
314
+ "Stacked column": "",
315
+ "Gauge": "",
316
+ "Line": "",
317
+ "Line list": "",
318
+ "Year over year (line)": "",
319
+ "Pie": "",
320
+ "Radar": "",
321
+ "Scatter": "",
322
+ "Single value": "",
323
+ "All charts": "",
324
+ "{{seriesName}} (trend)": "",
325
+ "Trend": "",
326
+ "No legend for this series": "",
327
+ "and {{amount}} more...": "",
328
+ "Linear Regression": "",
329
+ "Target": "",
330
+ "Base": "",
331
+ "Axis {{axisId}}": "",
332
+ "{{count}} items_0": "",
333
+ "{{count}} items_1": "",
334
+ "{{count}} items_2": "",
335
+ "Reset zoom": ""
336
+ }
@@ -13,8 +13,12 @@ exports.LEGEND_DISPLAY_STYLE_FILL = LEGEND_DISPLAY_STYLE_FILL;
13
13
  const LEGEND_DISPLAY_STYLE_TEXT = 'TEXT';
14
14
  exports.LEGEND_DISPLAY_STYLE_TEXT = LEGEND_DISPLAY_STYLE_TEXT;
15
15
 
16
- const getLegendByValueFromLegendSet = (legendSet, value) => legendSet.legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
17
- );
16
+ const getLegendByValueFromLegendSet = (legendSet, value) => {
17
+ var _legendSet$legends;
18
+
19
+ return legendSet === null || legendSet === void 0 ? void 0 : (_legendSet$legends = legendSet.legends) === null || _legendSet$legends === void 0 ? void 0 : _legendSet$legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
20
+ );
21
+ };
18
22
 
19
23
  exports.getLegendByValueFromLegendSet = getLegendByValueFromLegendSet;
20
24
 
@@ -1,4 +1,4 @@
1
1
  import { spacers, colors } from '@dhis2/ui';
2
- const _defaultExport = [".container.jsx-3203773516{width:180px;background:".concat(colors.white, ";padding:").concat(spacers.dp8, ";border:1px solid ").concat(colors.grey400, ";}"), ".legendSet.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(spacers.dp4, ";}"), ".legendSetName.jsx-3203773516{display:inline-block;font-size:13px;color:".concat(colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-3203773516{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(spacers.dp4, " 0 ").concat(spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-3203773516{color:".concat(colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-3203773516{border-top:1px solid ".concat(colors.grey400, ";padding-top:").concat(spacers.dp8, ";margin-top:").concat(spacers.dp8, ";}")];
3
- _defaultExport.__hash = "3203773516";
2
+ const _defaultExport = [".container.jsx-2467849725{width:180px;background:".concat(colors.white, ";padding:").concat(spacers.dp8, ";}"), ".legendSet.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-left:".concat(spacers.dp4, ";}"), ".legendSetName.jsx-2467849725{display:inline-block;font-size:13px;color:".concat(colors.grey700, ";margin-bottom:2px;}"), ".legend.jsx-2467849725{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:".concat(spacers.dp4, " 0 ").concat(spacers.dp4, " 6px;white-space:break-spaces;text-align:left;font-size:13px;}"), ".values.jsx-2467849725{color:".concat(colors.grey600, ";font-size:12px;padding-top:2px;}"), ".divider.jsx-2467849725{border-top:1px solid ".concat(colors.grey400, ";padding-top:").concat(spacers.dp8, ";margin-top:").concat(spacers.dp8, ";}")];
3
+ _defaultExport.__hash = "2467849725";
4
4
  export default _defaultExport;
package/build/es/index.js CHANGED
@@ -81,7 +81,7 @@ export { createVisualization } from './visualizations/index.js'; // Modules: fon
81
81
 
82
82
  export { FONT_STYLE_VISUALIZATION_TITLE, FONT_STYLE_VISUALIZATION_SUBTITLE, FONT_STYLE_HORIZONTAL_AXIS_TITLE, FONT_STYLE_VERTICAL_AXIS_TITLE, FONT_STYLE_LEGEND, FONT_STYLE_AXIS_LABELS, FONT_STYLE_REGRESSION_LINE_LABEL, FONT_STYLE_OPTION_FONT, FONT_STYLE_OPTION_FONT_SIZE, FONT_STYLE_OPTION_BOLD, FONT_STYLE_OPTION_ITALIC, FONT_STYLE_OPTION_UNDERLINE, FONT_STYLE_OPTION_TEXT_COLOR, FONT_STYLE_OPTION_TEXT_ALIGN, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER, TEXT_ALIGN_RIGHT, defaultFontStyle, getFontSizeOptions, getTextAlignOptions, deleteFontStyleOption } from './modules/fontStyle.js'; // Modules: legend
83
83
 
84
- export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT } from './modules/legends.js'; // Modules: general
84
+ export { LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM, LEGEND_DISPLAY_STRATEGY_FIXED, LEGEND_DISPLAY_STYLE_FILL, LEGEND_DISPLAY_STYLE_TEXT, getColorByValueFromLegendSet } from './modules/legends.js'; // Modules: general
85
85
 
86
86
  export { renderValue as formatValue } from './modules/renderValue.js'; // Utils: colorSets
87
87
 
@@ -27,6 +27,7 @@ import prsTranslations from './prs/translations.json';
27
27
  import psTranslations from './ps/translations.json';
28
28
  import ptTranslations from './pt/translations.json';
29
29
  import pt_BRTranslations from './pt_BR/translations.json';
30
+ import roTranslations from './ro/translations.json';
30
31
  import ruTranslations from './ru/translations.json';
31
32
  import svTranslations from './sv/translations.json';
32
33
  import tetTranslations from './tet/translations.json';
@@ -60,6 +61,7 @@ i18n.addResources('prs', namespace, prsTranslations);
60
61
  i18n.addResources('ps', namespace, psTranslations);
61
62
  i18n.addResources('pt', namespace, ptTranslations);
62
63
  i18n.addResources('pt_BR', namespace, pt_BRTranslations);
64
+ i18n.addResources('ro', namespace, roTranslations);
63
65
  i18n.addResources('ru', namespace, ruTranslations);
64
66
  i18n.addResources('sv', namespace, svTranslations);
65
67
  i18n.addResources('tet', namespace, tetTranslations);
@@ -195,8 +195,8 @@
195
195
  "This bi-week": "",
196
196
  "Last bi-week": "",
197
197
  "Last 4 bi-weeks": "",
198
- "This month": "",
199
- "Last month": "",
198
+ "This month": "ଚଳିତ ମାସ",
199
+ "Last month": "ଗତ ମାସ",
200
200
  "Last 3 months": "",
201
201
  "Last 6 months": "",
202
202
  "Last 12 months": "",
@@ -0,0 +1,336 @@
1
+ {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times_0": "",
13
+ "Viewed {{count}} times_1": "",
14
+ "Viewed {{count}} times_2": "",
15
+ "Notifications": "",
16
+ "You're subscribed and getting updates about new interpretations.": "",
17
+ "Unsubscribe": "",
18
+ "Subscribe to get updates about new interpretations.": "",
19
+ "Subscribe": "",
20
+ "This app could not retrieve required data.": "",
21
+ "Network error": "",
22
+ "Data Type": "",
23
+ "All types": "",
24
+ "Totals only": "",
25
+ "Details only": "",
26
+ "Disaggregation": "",
27
+ "No data": "",
28
+ "Loading": "",
29
+ "Search by data item name": "",
30
+ "No items selected": "",
31
+ "Selected Items": "",
32
+ "No indicators found": "",
33
+ "No data elements found": "",
34
+ "No data sets found": "",
35
+ "No event data items found": "",
36
+ "No program indicators found": "",
37
+ "No indicators found for \"{{- searchTerm}}\"": "",
38
+ "No data elements found for \"{{- searchTerm}}\"": "",
39
+ "No data sets found for \"{{- searchTerm}}\"": "",
40
+ "No event data items found for \"{{- searchTerm}}\"": "",
41
+ "No program indicators found for \"{{- searchTerm}}\"": "",
42
+ "Nothing found for \"{{- searchTerm}}\"": "",
43
+ "Metric type": "",
44
+ "All metrics": "",
45
+ "Move to {{axisName}}": "",
46
+ "Add to {{axisName}}": "",
47
+ "Not available for {{visualizationType}}": "",
48
+ "Remove Assigned Categories": "",
49
+ "Add Assigned Categories": "",
50
+ "Remove": "",
51
+ "Filter dimensions": "",
52
+ "Main dimensions": "",
53
+ "Your dimensions": "",
54
+ "Dimension recommended with selected data": "",
55
+ "All items": "",
56
+ "Automatically include all items": "",
57
+ "Select all {{- dimensionTitle}} items. With this option, new items added in the future will be automatically included.": "",
58
+ "Manually select items...": "",
59
+ "Nothing found in {{- dimensionTitle}}": "",
60
+ "Search": "Căutare",
61
+ "Nothing found for {{searchTerm}}": "",
62
+ "Delete {{fileType}}": "",
63
+ "This {{fileType}} and related interpretations will be deleted. Continue?": "",
64
+ "Cancel": "",
65
+ "Delete": "Lichidare",
66
+ "File": "Fişier",
67
+ "New": "Nou",
68
+ "Open…": "",
69
+ "Save": "salva",
70
+ "Save…": "",
71
+ "Save as…": "",
72
+ "Rename…": "",
73
+ "Translate…": "",
74
+ "Share…": "",
75
+ "Get link…": "",
76
+ "Open in this app": "",
77
+ "Close": "Închidere",
78
+ "Rename {{fileType}}": "",
79
+ "Name": "",
80
+ "Description": "Descriere",
81
+ "Rename": "",
82
+ "Save {{fileType}} as": "",
83
+ "event report": "",
84
+ "line list": "",
85
+ "map": "",
86
+ "visualization": "",
87
+ "Created by": "",
88
+ "Anyone": "Oricine",
89
+ "Only you": "",
90
+ "Others": "",
91
+ "Not supported by this app yet": "",
92
+ "Filter by name": "",
93
+ "Created": "",
94
+ "Last updated": "Ultima actualizare",
95
+ "Type": "",
96
+ "Clear filters": "",
97
+ "{{firstItemIndex}}-{{lastItemIndex}} of {{totalNumberOfItems}}": "",
98
+ "Open": "",
99
+ "Couldn't load items": "",
100
+ "There was a problem loading items. Try again or contact your system administrator.": "",
101
+ "No items found. Create a new to get started.": "",
102
+ "No items found. Try adjusting your search or filter options to find what you're looking for.": "",
103
+ "Create new": "",
104
+ "Open a visualization": "",
105
+ "Loading visualizations": "",
106
+ "Couldn't load visualizations": "",
107
+ "There was a problem loading visualizations. Try again or contact your system administrator.": "",
108
+ "No visualizations found. Click New visualization to get started.": "",
109
+ "No visualizations found. Try adjusting your search or filter options to find what you're looking for.": "",
110
+ "New visualization": "",
111
+ "Open a map": "",
112
+ "Loading maps": "",
113
+ "Couldn't load maps": "",
114
+ "There was a problem loading maps. Try again or contact your system administrator.": "",
115
+ "No maps found. Click New map to get started.": "",
116
+ "No maps found. Try adjusting your search or filter options to find what you're looking for.": "",
117
+ "New map": "",
118
+ "Open a line list": "",
119
+ "Loading line lists": "",
120
+ "Couldn't load line lists": "",
121
+ "There was a problem loading line lists. Try again or contact your system administrator.": "",
122
+ "No line lists found. Click New line list to get started.": "",
123
+ "No line lists found. Try adjusting your search or filter options to find what you're looking for.": "",
124
+ "New line list": "",
125
+ "Options": "",
126
+ "Hide": "",
127
+ "Update": "Actualizare",
128
+ "{{count}} org units_0": "",
129
+ "{{count}} org units_1": "",
130
+ "{{count}} org units_2": "",
131
+ "{{count}} levels_0": "",
132
+ "{{count}} levels_1": "",
133
+ "{{count}} levels_2": "",
134
+ "{{count}} groups_0": "",
135
+ "{{count}} groups_1": "",
136
+ "{{count}} groups_2": "",
137
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
138
+ "Nothing selected": "",
139
+ "User organisation unit": "",
140
+ "User sub-units": "",
141
+ "User sub-x2-units": "",
142
+ "Select a level": "",
143
+ "Select a group": "",
144
+ "Deselect all": "",
145
+ "Period type": "Tipul perioadei",
146
+ "Year": "An",
147
+ "Select year": "",
148
+ "Period": "",
149
+ "Relative periods": "Perioade relative",
150
+ "Fixed periods": "",
151
+ "Selected Periods": "",
152
+ "No periods selected": "",
153
+ "January": "",
154
+ "February": "",
155
+ "March": "",
156
+ "April": "",
157
+ "May": "",
158
+ "June": "",
159
+ "July": "",
160
+ "August": "",
161
+ "September": "",
162
+ "October": "",
163
+ "November": "",
164
+ "December": "",
165
+ "Week {{weekNumber}}": "",
166
+ "Bi-Week {{biWeekNumber}}": "",
167
+ "Daily": "",
168
+ "Weekly": "",
169
+ "Weekly (Start Wednesday)": "",
170
+ "Weekly (Start Thursday)": "",
171
+ "Weekly (Start Saturday)": "",
172
+ "Weekly (Start Sunday)": "",
173
+ "Bi-weekly": "",
174
+ "Monthly": "Lunar",
175
+ "Bi-monthly": "",
176
+ "Quarterly": "Trimestrial",
177
+ "Six-monthly": "",
178
+ "Six-monthly April": "",
179
+ "Yearly": "Anual",
180
+ "Financial year (Start November)": "",
181
+ "Financial year (Start October)": "",
182
+ "Financial year (Start July)": "",
183
+ "Financial year (Start April)": "",
184
+ "Today": "Astăzi",
185
+ "Yesterday": "Ieri",
186
+ "Last 3 days": "Ultimele 3 zile",
187
+ "Last 7 days": "Ultimele 7 zile",
188
+ "Last 14 days": "Ultimele 14 zile",
189
+ "Last 30 days": "",
190
+ "Last 60 days": "",
191
+ "Last 90 days": "",
192
+ "Last 180 days": "",
193
+ "This week": "Săptămâna aceasta",
194
+ "Last week": "Săptămâna trecută",
195
+ "Last 4 weeks": "Ultimele 4 săptămâni",
196
+ "Last 12 weeks": "",
197
+ "Last 52 weeks": "Ultimele 52 de săptămâni",
198
+ "Weeks this year": "Săptămâni în anul curent",
199
+ "This bi-week": "",
200
+ "Last bi-week": "",
201
+ "Last 4 bi-weeks": "",
202
+ "This month": "Luna aceasta",
203
+ "Last month": "Luna trecută",
204
+ "Last 3 months": "Ultimele 3 luni",
205
+ "Last 6 months": "Ultimele 6 luni",
206
+ "Last 12 months": "Ultimele 12 luni",
207
+ "Months this year": "Luni în anul curent",
208
+ "This bi-month": "",
209
+ "Last bi-month": "",
210
+ "Last 6 bi-months": "",
211
+ "Bi-months this year": "",
212
+ "This quarter": "",
213
+ "Last quarter": "Ultimul trimestru",
214
+ "Last 4 quarters": "Ultimele 4 trimestre",
215
+ "Quarters this year": "Trimestre în anul curent",
216
+ "This six-month": "",
217
+ "Last six-month": "Ultimele șase luni",
218
+ "Last 2 six-month": "",
219
+ "This financial year": "",
220
+ "Last financial year": "Ultimul an financiar",
221
+ "Last 5 financial years": "Ultimii 5 ani financiari",
222
+ "This year": "",
223
+ "Last year": "Anul trecut",
224
+ "Last 5 years": "Ultimii 5 ani",
225
+ "Last 10 years": "",
226
+ "Days": "Zile",
227
+ "Weeks": "Săptămâni",
228
+ "Bi-weeks": "",
229
+ "Months": "Luni",
230
+ "Bi-months": "Bi-lunar",
231
+ "Quarters": "Trimestre",
232
+ "Six-months": "Șase luni",
233
+ "Financial Years": "Ani financiari",
234
+ "Years": "Ani",
235
+ "Translating to": "",
236
+ "Choose a locale": "",
237
+ "Base locale reference": "",
238
+ "Choose a locale to translate from the menu above": "",
239
+ "Translate: {{objectName}}": "",
240
+ "Save translations": "",
241
+ "Could not load translations": "",
242
+ "Retry": "",
243
+ "Series": "",
244
+ "Category": "",
245
+ "Filter": "",
246
+ "Columns": "",
247
+ "Rows": "",
248
+ "Points": "",
249
+ "Reporting rate": "",
250
+ "Reporting rate on time": "",
251
+ "Actual reports": "",
252
+ "Actual reports on time": "",
253
+ "Expected reports": "",
254
+ "Program": "",
255
+ "Select a program": "",
256
+ "Indicators": "Indicatori",
257
+ "Indicator group": "",
258
+ "All groups": "",
259
+ "Indicator": "Indicator",
260
+ "No indicator groups found": "",
261
+ "Loading indicator groups": "",
262
+ "Data elements": "",
263
+ "Data element group": "",
264
+ "Data element": "",
265
+ "No data element groups found": "",
266
+ "Loading data element groups": "",
267
+ "Data sets": "",
268
+ "Data set": "",
269
+ "All data sets": "",
270
+ "Loading data sets": "",
271
+ "Event data items": "",
272
+ "All programs": "",
273
+ "Event data item": "",
274
+ "No programs found": "",
275
+ "Loading programs": "",
276
+ "Program indicators": "",
277
+ "Program indicator": "",
278
+ "Extra Small": "",
279
+ "Small": "",
280
+ "Regular": "",
281
+ "Large": "",
282
+ "Extra Large": "",
283
+ "Left": "",
284
+ "Center": "",
285
+ "Right": "",
286
+ "Start": "",
287
+ "Middle": "",
288
+ "End": "",
289
+ "Top": "",
290
+ "Bottom": "",
291
+ "{{dynamicOuNames}} and {{lastOuName}}": "",
292
+ "{{allDynamicOuNames}} levels": "",
293
+ "{{allDynamicOuNames}} groups": "",
294
+ "{{allDynamicOuNames}} levels in {{staticOuNames}}": "",
295
+ "{{allDynamicOuNames}} groups in {{staticOuNames}}": "",
296
+ "{{percentage}}% of total x values": "",
297
+ "{{percentage}}% of total y values": "",
298
+ "{{thresholdFactor}} × IQR Q1": "",
299
+ "{{thresholdFactor}} × IQR Q3": "",
300
+ "{{thresholdFactor}} × Modified Z-score low": "",
301
+ "{{thresholdFactor}} × Modified Z-score high": "",
302
+ "{{thresholdFactor}} × Z-score low": "",
303
+ "{{thresholdFactor}} × Z-score high": "",
304
+ "Data": "",
305
+ "Organisation unit": "Unitate organizațională",
306
+ "Assigned Categories": "",
307
+ "Pivot table": "",
308
+ "Area": "",
309
+ "Stacked area": "",
310
+ "Bar": "",
311
+ "Stacked bar": "",
312
+ "Column": "Coloană",
313
+ "Year over year (column)": "",
314
+ "Stacked column": "",
315
+ "Gauge": "",
316
+ "Line": "",
317
+ "Line list": "",
318
+ "Year over year (line)": "",
319
+ "Pie": "",
320
+ "Radar": "",
321
+ "Scatter": "",
322
+ "Single value": "",
323
+ "All charts": "",
324
+ "{{seriesName}} (trend)": "",
325
+ "Trend": "",
326
+ "No legend for this series": "",
327
+ "and {{amount}} more...": "",
328
+ "Linear Regression": "",
329
+ "Target": "",
330
+ "Base": "",
331
+ "Axis {{axisId}}": "",
332
+ "{{count}} items_0": "",
333
+ "{{count}} items_1": "",
334
+ "{{count}} items_2": "",
335
+ "Reset zoom": ""
336
+ }
@@ -2,8 +2,12 @@ export const LEGEND_DISPLAY_STRATEGY_BY_DATA_ITEM = 'BY_DATA_ITEM';
2
2
  export const LEGEND_DISPLAY_STRATEGY_FIXED = 'FIXED';
3
3
  export const LEGEND_DISPLAY_STYLE_FILL = 'FILL';
4
4
  export const LEGEND_DISPLAY_STYLE_TEXT = 'TEXT';
5
- export const getLegendByValueFromLegendSet = (legendSet, value) => legendSet.legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
6
- );
5
+ export const getLegendByValueFromLegendSet = (legendSet, value) => {
6
+ var _legendSet$legends;
7
+
8
+ return legendSet === null || legendSet === void 0 ? void 0 : (_legendSet$legends = legendSet.legends) === null || _legendSet$legends === void 0 ? void 0 : _legendSet$legends.find(legend => value >= legend.startValue && value < legend.endValue // TODO: Confirm inclusive/exclusive bounds
9
+ );
10
+ };
7
11
  export const getColorByValueFromLegendSet = (legendSet, value) => {
8
12
  const legend = getLegendByValueFromLegendSet(legendSet, value);
9
13
  return legend && legend.color;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "23.10.2",
3
+ "version": "23.11.0",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "@dhis2/cli-app-scripts": "^9.0.0",
36
36
  "@dhis2/cli-style": "^10.4.1",
37
37
  "@dhis2/d2-i18n": "^1.1.0",
38
- "@dhis2/ui": "^8.2.5",
38
+ "@dhis2/ui": "^8.3.1",
39
39
  "@sambego/storybook-state": "^2.0.1",
40
40
  "@storybook/addons": "^6.1.14",
41
41
  "@storybook/preset-create-react-app": "^3.1.7",