@dhis2/analytics 29.0.2 → 29.0.4

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 (63) hide show
  1. package/build/cjs/locales/ar/translations.json +12 -1
  2. package/build/cjs/locales/ar_IQ/translations.json +3 -1
  3. package/build/cjs/locales/ckb/translations.json +32 -12
  4. package/build/cjs/locales/cs/translations.json +46 -35
  5. package/build/cjs/locales/en_US/translations.json +478 -0
  6. package/build/cjs/locales/es/translations.json +13 -2
  7. package/build/cjs/locales/es_419/translations.json +14 -1
  8. package/build/cjs/locales/fr/translations.json +160 -149
  9. package/build/cjs/locales/hi_IN/translations.json +62 -42
  10. package/build/cjs/locales/id/translations.json +12 -1
  11. package/build/cjs/locales/index.js +66 -64
  12. package/build/cjs/locales/km/translations.json +84 -64
  13. package/build/cjs/locales/lo/translations.json +17 -6
  14. package/build/cjs/locales/my/translations.json +4 -0
  15. package/build/cjs/locales/nb/translations.json +12 -1
  16. package/build/cjs/locales/nl/translations.json +14 -1
  17. package/build/cjs/locales/prs/translations.json +12 -1
  18. package/build/cjs/locales/ps/translations.json +12 -1
  19. package/build/cjs/locales/pt/translations.json +12 -1
  20. package/build/cjs/locales/pt_BR/translations.json +13 -2
  21. package/build/cjs/locales/ru/translations.json +12 -1
  22. package/build/cjs/locales/tet/translations.json +12 -1
  23. package/build/cjs/locales/tg/translations.json +2 -0
  24. package/build/cjs/locales/uk/translations.json +12 -1
  25. package/build/cjs/locales/ur/translations.json +12 -1
  26. package/build/cjs/locales/uz_UZ_Cyrl/translations.json +12 -1
  27. package/build/cjs/locales/uz_UZ_Latn/translations.json +12 -1
  28. package/build/cjs/locales/vi/translations.json +38 -27
  29. package/build/cjs/locales/zh/translations.json +12 -1
  30. package/build/cjs/locales/zh_CN/translations.json +12 -1
  31. package/build/cjs/modules/pivotTable/useParentSize.js +6 -9
  32. package/build/es/locales/ar/translations.json +12 -1
  33. package/build/es/locales/ar_IQ/translations.json +3 -1
  34. package/build/es/locales/ckb/translations.json +32 -12
  35. package/build/es/locales/cs/translations.json +46 -35
  36. package/build/es/locales/en_US/translations.json +478 -0
  37. package/build/es/locales/es/translations.json +13 -2
  38. package/build/es/locales/es_419/translations.json +14 -1
  39. package/build/es/locales/fr/translations.json +160 -149
  40. package/build/es/locales/hi_IN/translations.json +62 -42
  41. package/build/es/locales/id/translations.json +12 -1
  42. package/build/es/locales/index.js +2 -0
  43. package/build/es/locales/km/translations.json +84 -64
  44. package/build/es/locales/lo/translations.json +17 -6
  45. package/build/es/locales/my/translations.json +4 -0
  46. package/build/es/locales/nb/translations.json +12 -1
  47. package/build/es/locales/nl/translations.json +14 -1
  48. package/build/es/locales/prs/translations.json +12 -1
  49. package/build/es/locales/ps/translations.json +12 -1
  50. package/build/es/locales/pt/translations.json +12 -1
  51. package/build/es/locales/pt_BR/translations.json +13 -2
  52. package/build/es/locales/ru/translations.json +12 -1
  53. package/build/es/locales/tet/translations.json +12 -1
  54. package/build/es/locales/tg/translations.json +2 -0
  55. package/build/es/locales/uk/translations.json +12 -1
  56. package/build/es/locales/ur/translations.json +12 -1
  57. package/build/es/locales/uz_UZ_Cyrl/translations.json +12 -1
  58. package/build/es/locales/uz_UZ_Latn/translations.json +12 -1
  59. package/build/es/locales/vi/translations.json +38 -27
  60. package/build/es/locales/zh/translations.json +12 -1
  61. package/build/es/locales/zh_CN/translations.json +12 -1
  62. package/build/es/modules/pivotTable/useParentSize.js +6 -9
  63. package/package.json +1 -1
@@ -45,21 +45,21 @@
45
45
  "Drag items here, or double click in the list, to start building a calculation formula": "Kéo các mục vào đây hoặc nhấp đúp vào danh sách để bắt đầu xây dựng công thức tính toán",
46
46
  "Math operators": "Toán tử toán học",
47
47
  "Expression description": "Mô tả biểu thức",
48
- "Error loading value": "",
48
+ "Error loading value": "Lỗi tải giá trị",
49
49
  "None": "Không",
50
- "Data set(s)": "",
51
- "Zero is significant": "",
50
+ "Data set(s)": "Tập dữ liệu",
51
+ "Zero is significant": "Số 0 là quan trọng",
52
52
  "True": "Đúng",
53
53
  "False": "Sai",
54
54
  "Value type": "Loại giá trị",
55
55
  "Aggregation type": "Kiểu tổng hợp",
56
- "Category combo": "",
56
+ "Category combo": "Tổ hợp phân loại",
57
57
  "Option set": "Tập tùy chọn",
58
- "Group membership": "",
59
- "Legend set(s)": "",
60
- "Category option name": "",
61
- "Category combo name": "",
62
- "Categories name": "",
58
+ "Group membership": "Thành viên nhóm",
59
+ "Legend set(s)": "Tập Chú Thích",
60
+ "Category option name": "Tên tùy chọn phân loại",
61
+ "Category combo name": "Tên phân loại kết hợp",
62
+ "Categories name": "Tên phân loại",
63
63
  "Period type": "Loại thời điểm",
64
64
  "Indicators": "Các chỉ số",
65
65
  "Expiry days": "Ngày hết hạn",
@@ -67,37 +67,37 @@
67
67
  "Data element": "Phần tử dữ liệu",
68
68
  "Tracked entity attribute": "Thuộc Tính Đối Tượng Theo Dõi",
69
69
  "Numerator description": "Miêu tả tử số",
70
- "Numerator expression": "",
70
+ "Numerator expression": "Biểu thức tử số",
71
71
  "Denominator description": "Miêu tả mẩu số",
72
- "Denominator expression": "",
72
+ "Denominator expression": "Biểu thức mẫu số",
73
73
  "Annualized": "Hàng năm",
74
74
  "Yes": "Có",
75
75
  "No": "Không",
76
76
  "Indicator type": "Loại chỉ số",
77
- "Decimals in output": "",
78
- "There was a problem loading information for this data item.": "",
77
+ "Decimals in output": "Số thập phân trong dữ liệu đầu ra",
78
+ "There was a problem loading information for this data item.": "Đã có sự cố khi tải thông tin cho mục dữ liệu này.",
79
79
  "Name": "Tên",
80
80
  "Description": "Miêu tả",
81
81
  "Code": "Mã",
82
82
  "ID": "Định danh (ID)",
83
- "Last updated date": "",
83
+ "Last updated date": "Ngày cập nhật cuối",
84
84
  "Created date": "Ngày tạo",
85
85
  "Created by": "Được tạo bởi",
86
86
  "Custom": "Tùy chỉnh",
87
87
  "Program": "Chương trình",
88
- "Analytics type": "",
88
+ "Analytics type": "Loại phân tích",
89
89
  "Enrollment": "Đăng ký",
90
90
  "Event": "Sự Kiện",
91
- "Analytics period boundaries": "",
92
- "{{ offsetPeriodType }} × {{ offsetPeriods }}": "",
91
+ "Analytics period boundaries": "Ranh giới thời kỳ phân tích",
92
+ "{{ offsetPeriodType }} × {{ offsetPeriods }}": "{{ offsetPeriodType }} × {{ offsetPeriods }}",
93
93
  "Expression": "Biểu thức",
94
94
  "Filter": "Lọc",
95
- "All available options are already selected": "",
96
- "No available options for this item": "",
97
- "Search by option name": "",
98
- "Back to all items": "",
95
+ "All available options are already selected": "Tất cả các tùy chọn có sẵn đã được chọn",
96
+ "No available options for this item": "Không có tùy chọn nào có sẵn cho mục này",
97
+ "Search by option name": "Tìm kiếm theo tên tùy chọn",
98
+ "Back to all items": "Quay lại tất cả các mục",
99
99
  "Options": "Tùy chọn",
100
- "Selected items": "",
100
+ "Selected items": "Các mục đã chọn",
101
101
  "Data Type": "Loại dữ liệu",
102
102
  "Only {{dataType}} can be used in {{visType}}": "Chỉ {{dataType}}được sử dụng trong {{visType}}",
103
103
  "All types": "Tất cả các loại",
@@ -105,7 +105,7 @@
105
105
  "No data": "Không có dữ liệu",
106
106
  "Search by data item name": "Tìm kiếm theo tên mục dữ liệu",
107
107
  "Selected Items": "Các mục đã chọn",
108
- "All available items are already selected": "",
108
+ "All available items are already selected": "Tất cả các mục có sẵn đã được chọn",
109
109
  "Calculation": "Tính toán",
110
110
  "Metric type": "Loại chỉ số đo lường",
111
111
  "All metrics": "Tất cả hệ đo lường",
@@ -121,7 +121,7 @@
121
121
  "No program indicators found for \"{{- searchTerm}}\"": "Không tìm thấy chỉ số chương trình nào cho \"{{- searchTerm}}\"",
122
122
  "No calculations found for \"{{- searchTerm}}\"": "Không tìm thấy tính toán nào cho \"{{- searchTerm}}\"",
123
123
  "Nothing found for \"{{- searchTerm}}\"": "Không tìm thấy gì cho {{- searchTerm}}",
124
- "Click to choose from available options": "",
124
+ "Click to choose from available options": "Nhấp để chọn từ các tùy chọn có sẵn",
125
125
  "Move to {{axisName}}": "Di chuyển đến {{axisName}}",
126
126
  "Add to {{axisName}}": "Thêm vào {{axisName}}",
127
127
  "Not available for {{visualizationType}}": "Không có sẵn cho {{visualizationType}}",
@@ -152,6 +152,7 @@
152
152
  "Share…": "Chia sẻ...",
153
153
  "Get link…": "Lấy đường dẫn liên kết...",
154
154
  "Open in this app": "Mở trong ứng dụng này",
155
+ "Copy to clipboard": "Sao chép vào bộ nhớ tạm",
155
156
  "Close": "Đóng lại",
156
157
  "Rename {{fileType}}": "Đổi tên {{fileType}}",
157
158
  "Rename": "Đổi tên",
@@ -161,11 +162,15 @@
161
162
  "line list": "danh sách dòng",
162
163
  "map": "bản đồ",
163
164
  "visualization": "trực quan hóa",
164
- "Untitled {{visualizationType}}, {{date}}": "",
165
+ "Untitled {{visualizationType}}, {{date}}": "{{visualizationType}}, {{date}} không tiêu đề",
166
+ "Back to all interpretations": "Quay lại tất cả các diễn giải",
167
+ "Could not load interpretation details": "",
168
+ "The request to fetch interpretation comments failed": "",
165
169
  "Edit": "Chỉnh sửa",
166
170
  "Write a reply": "Viết phản hồi",
171
+ "Could not post reply": "",
167
172
  "Post reply": "Đăng phản hồi",
168
- "Delete failed": "Xóa thất bại",
173
+ "Could not delete comment": "",
169
174
  "Could not update comment": "Không thể cập nhật bình luận",
170
175
  "Enter comment text": "Nhập văn bản bình luận",
171
176
  "Update": "Cập nhật",
@@ -174,9 +179,12 @@
174
179
  "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "Không thể hiển thị diễn giải. Hãy thử lại hoặc liên hệ với quản trị viên hệ thống của bạn.",
175
180
  "Hide interpretation": "Ẩn diễn giải",
176
181
  "Write an interpretation": "Viết diễn giải",
182
+ "Could not post interpretation": "",
177
183
  "Other people viewing this interpretation in the future may see more data.": "Những người khác xem bản diễn giải này trong tương lai có thể thấy nhiều dữ liệu hơn.",
178
184
  "Post interpretation": "Đăng diễn giải",
179
185
  "Interpretations": "Diễn giải ",
186
+ "Error loading interpretations": "",
187
+ "Could not load interpretations": "",
180
188
  "Reply": "Trả lời",
181
189
  "{{count}} replies": "{{count}} câu trả lời",
182
190
  "View replies": "Xem trả lời",
@@ -185,7 +193,9 @@
185
193
  "See interpretation": "Xem diễn giải",
186
194
  "Open in app": "Mở trong ứng dụng",
187
195
  "Share": "Chia sẻ",
196
+ "Could not delete interpretation": "",
188
197
  "Manage sharing": "Quản lý chia sẻ",
198
+ "Could not update interpretation text": "",
189
199
  "Could not update interpretation": "Không thể cập nhật diễn giải",
190
200
  "Enter interpretation text": "Nhập nội dung cho diễn giải",
191
201
  "Not available offline": "Không có cho ngoại tuyến",
@@ -404,9 +414,10 @@
404
414
  "Data": "Dữ liệu",
405
415
  "Organisation unit": "Đơn vị",
406
416
  "Assigned Categories": "Phân loại được chỉ định",
417
+ "No value": "Không có giá trị",
407
418
  "Text": "Văn bản",
408
419
  "Long text": "Văn bản dài",
409
- "Multi text": "",
420
+ "Multi text": "Nhiều văn bản",
410
421
  "Letter": "Ký tự",
411
422
  "Phone number": "Số điện thoại",
412
423
  "Email": "Email",
@@ -152,6 +152,7 @@
152
152
  "Share…": "分享…",
153
153
  "Get link…": "获取链接…",
154
154
  "Open in this app": "在该App打开",
155
+ "Copy to clipboard": "复制到剪贴板",
155
156
  "Close": "关闭",
156
157
  "Rename {{fileType}}": "重命名{{fileType}}",
157
158
  "Rename": "改名",
@@ -162,10 +163,14 @@
162
163
  "map": "地图",
163
164
  "visualization": "可视化",
164
165
  "Untitled {{visualizationType}}, {{date}}": "无标题的{{visualizationType}} 、{{date}}",
166
+ "Back to all interpretations": "回到所有注释",
167
+ "Could not load interpretation details": "",
168
+ "The request to fetch interpretation comments failed": "",
165
169
  "Edit": "编辑",
166
170
  "Write a reply": "书写应答",
171
+ "Could not post reply": "",
167
172
  "Post reply": "发表回复",
168
- "Delete failed": "删除失败",
173
+ "Could not delete comment": "",
169
174
  "Could not update comment": "无法更新评论",
170
175
  "Enter comment text": "输入评论文本",
171
176
  "Update": "更新",
@@ -174,9 +179,12 @@
174
179
  "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "无法显示解释。重试或联系您的系统管理员。",
175
180
  "Hide interpretation": "隐藏解释",
176
181
  "Write an interpretation": "书写注释",
182
+ "Could not post interpretation": "",
177
183
  "Other people viewing this interpretation in the future may see more data.": "将来查看此解释的其他人可能会看到更多数据。",
178
184
  "Post interpretation": "后解释",
179
185
  "Interpretations": "解释",
186
+ "Error loading interpretations": "",
187
+ "Could not load interpretations": "",
180
188
  "Reply": "应答",
181
189
  "{{count}} replies": "{{count}}条回复",
182
190
  "View replies": "查看回复",
@@ -185,7 +193,9 @@
185
193
  "See interpretation": "见解释",
186
194
  "Open in app": "在应用程序中打开",
187
195
  "Share": "分享",
196
+ "Could not delete interpretation": "",
188
197
  "Manage sharing": "管理共享",
198
+ "Could not update interpretation text": "",
189
199
  "Could not update interpretation": "无法更新解释",
190
200
  "Enter interpretation text": "输入解释文本",
191
201
  "Not available offline": "离线不可用",
@@ -404,6 +414,7 @@
404
414
  "Data": "数据",
405
415
  "Organisation unit": "机构",
406
416
  "Assigned Categories": "指定的分类",
417
+ "No value": "无值",
407
418
  "Text": "文本",
408
419
  "Long text": "长文本",
409
420
  "Multi text": "多种文本",
@@ -152,6 +152,7 @@
152
152
  "Share…": "",
153
153
  "Get link…": "",
154
154
  "Open in this app": "",
155
+ "Copy to clipboard": "复制到剪贴板",
155
156
  "Close": "关闭",
156
157
  "Rename {{fileType}}": "",
157
158
  "Rename": "重命名",
@@ -162,10 +163,14 @@
162
163
  "map": "",
163
164
  "visualization": "",
164
165
  "Untitled {{visualizationType}}, {{date}}": "",
166
+ "Back to all interpretations": "回到所有注释",
167
+ "Could not load interpretation details": "",
168
+ "The request to fetch interpretation comments failed": "",
165
169
  "Edit": "编辑",
166
170
  "Write a reply": "",
171
+ "Could not post reply": "",
167
172
  "Post reply": "",
168
- "Delete failed": "删除失败",
173
+ "Could not delete comment": "",
169
174
  "Could not update comment": "",
170
175
  "Enter comment text": "",
171
176
  "Update": "更新",
@@ -174,9 +179,12 @@
174
179
  "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "",
175
180
  "Hide interpretation": "",
176
181
  "Write an interpretation": "",
182
+ "Could not post interpretation": "",
177
183
  "Other people viewing this interpretation in the future may see more data.": "",
178
184
  "Post interpretation": "",
179
185
  "Interpretations": "注释",
186
+ "Error loading interpretations": "",
187
+ "Could not load interpretations": "",
180
188
  "Reply": "回复",
181
189
  "{{count}} replies": "",
182
190
  "View replies": "",
@@ -185,7 +193,9 @@
185
193
  "See interpretation": "",
186
194
  "Open in app": "",
187
195
  "Share": "分享",
196
+ "Could not delete interpretation": "",
188
197
  "Manage sharing": "",
198
+ "Could not update interpretation text": "",
189
199
  "Could not update interpretation": "",
190
200
  "Enter interpretation text": "",
191
201
  "Not available offline": "离线不可用",
@@ -404,6 +414,7 @@
404
414
  "Data": "数据",
405
415
  "Organisation unit": "机构",
406
416
  "Assigned Categories": "",
417
+ "No value": "没有值",
407
418
  "Text": "文本",
408
419
  "Long text": "长文本",
409
420
  "Multi text": "",
@@ -1,28 +1,25 @@
1
1
  import { useState, useEffect } from 'react';
2
2
  import ResizeObserver from 'resize-observer-polyfill';
3
- const initialState = {
3
+ const initialSize = {
4
4
  width: 0,
5
5
  height: 0
6
6
  };
7
- export const useParentSize = (elementRef, renderCounter, initialSize = initialState) => {
8
- const [size, setSize] = useState({
9
- width: initialSize.width || 0,
10
- height: initialSize.height || 0
11
- });
7
+ export const useParentSize = (elementRef, renderCounter) => {
8
+ const [size, setSize] = useState(initialSize);
12
9
  useEffect(() => {
13
10
  const el = elementRef.current && elementRef.current.parentElement;
14
11
  if (!el) {
15
12
  return;
16
13
  }
17
14
  const onResize = () => {
18
- setSize({
15
+ setTimeout(() => setSize({
19
16
  width: el.clientWidth,
20
17
  height: el.clientHeight
21
- });
18
+ }), 0);
22
19
  };
23
20
  onResize(el);
24
21
  if (renderCounter) {
25
- setSize(initialState);
22
+ setSize(initialSize);
26
23
  }
27
24
  const observer = new ResizeObserver(onResize);
28
25
  observer.observe(el);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "29.0.2",
3
+ "version": "29.0.4",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {