@dhis2/analytics 22.0.0-alpha.3 → 23.0.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 +3009 -0
- package/build/cjs/__demo__/OpenFileDialog.stories.js +39 -6
- package/build/cjs/__fixtures__/fixtures.js +1 -0
- package/build/cjs/__fixtures__/json/api/analytics/enrollments.json +206 -0
- package/build/cjs/api/analytics/Analytics.js +6 -0
- package/build/cjs/api/analytics/AnalyticsEnrollments.js +48 -0
- package/build/cjs/api/analytics/__tests__/AnalyticsEnrollments.spec.js +50 -0
- package/build/cjs/api/analytics/__tests__/__snapshots__/AnalyticsEnrollments.spec.js.snap +3 -0
- package/build/cjs/components/CachedDataQueryProvider.js +4 -10
- package/build/cjs/components/FileMenu/FileMenu.js +6 -0
- package/build/cjs/components/OpenFileDialog/CustomSelectOption.js +18 -4
- package/build/cjs/components/OpenFileDialog/FileList.js +5 -5
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.js +26 -21
- package/build/cjs/components/OpenFileDialog/OpenFileDialog.styles.js +2 -2
- package/build/cjs/components/OpenFileDialog/VisTypeFilter.js +17 -16
- package/build/cjs/components/OpenFileDialog/utils.js +33 -74
- package/build/cjs/index.js +16 -4
- package/build/cjs/locales/ar/translations.json +9 -0
- package/build/cjs/locales/ar_EG/translations.json +9 -0
- package/build/cjs/locales/ar_IQ/translations.json +9 -0
- package/build/cjs/locales/ckb/translations.json +9 -0
- package/build/cjs/locales/cs/translations.json +9 -0
- package/build/cjs/locales/da/translations.json +9 -0
- package/build/cjs/locales/en/translations.json +3 -21
- package/build/cjs/locales/es/translations.json +9 -0
- package/build/cjs/locales/fr/translations.json +9 -0
- package/build/cjs/locales/id/translations.json +9 -0
- package/build/cjs/locales/km/translations.json +9 -0
- package/build/cjs/locales/lo/translations.json +9 -0
- package/build/cjs/locales/my/translations.json +9 -0
- package/build/cjs/locales/nb/translations.json +9 -0
- package/build/cjs/locales/nl/translations.json +9 -0
- package/build/cjs/locales/prs/translations.json +9 -0
- package/build/cjs/locales/ps/translations.json +9 -0
- package/build/cjs/locales/pt/translations.json +9 -0
- package/build/cjs/locales/pt_BR/translations.json +9 -0
- package/build/cjs/locales/ru/translations.json +9 -0
- package/build/cjs/locales/sv/translations.json +9 -0
- package/build/cjs/locales/tet/translations.json +9 -0
- package/build/cjs/locales/tg/translations.json +9 -0
- package/build/cjs/locales/uk/translations.json +9 -0
- package/build/cjs/locales/ur/translations.json +9 -0
- package/build/cjs/locales/uz/translations.json +9 -0
- package/build/cjs/locales/uz_Latn/translations.json +9 -0
- package/build/cjs/locales/vi/translations.json +9 -0
- package/build/cjs/locales/zh/translations.json +10 -1
- package/build/cjs/locales/zh_CN/translations.json +9 -0
- package/build/cjs/modules/layoutUiRules/rules.js +5 -1
- package/build/cjs/modules/visTypes.js +14 -21
- package/build/es/__demo__/OpenFileDialog.stories.js +38 -6
- package/build/es/__fixtures__/fixtures.js +1 -0
- package/build/es/__fixtures__/json/api/analytics/enrollments.json +206 -0
- package/build/es/api/analytics/Analytics.js +5 -0
- package/build/es/api/analytics/AnalyticsEnrollments.js +38 -0
- package/build/es/api/analytics/__tests__/AnalyticsEnrollments.spec.js +40 -0
- package/build/es/api/analytics/__tests__/__snapshots__/AnalyticsEnrollments.spec.js.snap +3 -0
- package/build/es/components/CachedDataQueryProvider.js +4 -10
- package/build/es/components/FileMenu/FileMenu.js +6 -0
- package/build/es/components/OpenFileDialog/CustomSelectOption.js +17 -4
- package/build/es/components/OpenFileDialog/FileList.js +5 -5
- package/build/es/components/OpenFileDialog/OpenFileDialog.js +27 -23
- package/build/es/components/OpenFileDialog/OpenFileDialog.styles.js +2 -2
- package/build/es/components/OpenFileDialog/VisTypeFilter.js +18 -14
- package/build/es/components/OpenFileDialog/utils.js +32 -71
- package/build/es/index.js +1 -1
- package/build/es/locales/ar/translations.json +9 -0
- package/build/es/locales/ar_EG/translations.json +9 -0
- package/build/es/locales/ar_IQ/translations.json +9 -0
- package/build/es/locales/ckb/translations.json +9 -0
- package/build/es/locales/cs/translations.json +9 -0
- package/build/es/locales/da/translations.json +9 -0
- package/build/es/locales/en/translations.json +3 -21
- package/build/es/locales/es/translations.json +9 -0
- package/build/es/locales/fr/translations.json +9 -0
- package/build/es/locales/id/translations.json +9 -0
- package/build/es/locales/km/translations.json +9 -0
- package/build/es/locales/lo/translations.json +9 -0
- package/build/es/locales/my/translations.json +9 -0
- package/build/es/locales/nb/translations.json +9 -0
- package/build/es/locales/nl/translations.json +9 -0
- package/build/es/locales/prs/translations.json +9 -0
- package/build/es/locales/ps/translations.json +9 -0
- package/build/es/locales/pt/translations.json +9 -0
- package/build/es/locales/pt_BR/translations.json +9 -0
- package/build/es/locales/ru/translations.json +9 -0
- package/build/es/locales/sv/translations.json +9 -0
- package/build/es/locales/tet/translations.json +9 -0
- package/build/es/locales/tg/translations.json +9 -0
- package/build/es/locales/uk/translations.json +9 -0
- package/build/es/locales/ur/translations.json +9 -0
- package/build/es/locales/uz/translations.json +9 -0
- package/build/es/locales/uz_Latn/translations.json +9 -0
- package/build/es/locales/vi/translations.json +9 -0
- package/build/es/locales/zh/translations.json +10 -1
- package/build/es/locales/zh_CN/translations.json +9 -0
- package/build/es/modules/layoutUiRules/rules.js +6 -2
- package/build/es/modules/visTypes.js +10 -19
- package/package.json +2 -2
- package/build/cjs/components/OpenFileDialog/styles/FileList.style.js +0 -10
- package/build/cjs/visualizations/package-lock.json +0 -1788
- package/build/es/components/OpenFileDialog/styles/FileList.style.js +0 -3
- package/build/es/visualizations/package-lock.json +0 -1788
|
@@ -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": "تجدید یا نوي یې کړئ",
|
|
@@ -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 dados",
|
|
20
22
|
"All types": "Todos os 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": "Opções",
|
|
119
128
|
"Hide": "Esconder",
|
|
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": "",
|
|
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": "Opções",
|
|
119
128
|
"Hide": "",
|
|
120
129
|
"Update": "Actualizar",
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"Unsubscribe": "",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "",
|
|
20
20
|
"Subscribe": "",
|
|
21
|
+
"This app could not retrieve required data.": "",
|
|
22
|
+
"Network error": "",
|
|
21
23
|
"Data Type": "Тип данных",
|
|
22
24
|
"All types": "Все типы",
|
|
23
25
|
"Totals only": "",
|
|
@@ -117,6 +119,13 @@
|
|
|
117
119
|
"No event reports found. Click New event report to get started.": "",
|
|
118
120
|
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
119
121
|
"New event report": "",
|
|
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": "Параметры",
|
|
121
130
|
"Hide": "Скрыть",
|
|
122
131
|
"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": "Alternativ",
|
|
119
128
|
"Hide": "",
|
|
120
129
|
"Update": "Uppdatera",
|
|
@@ -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": "Opsoens",
|
|
118
127
|
"Hide": "Subar",
|
|
119
128
|
"Update": "Atualiza",
|
|
@@ -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": "",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "",
|
|
20
20
|
"Subscribe": "",
|
|
21
|
+
"This app could not retrieve required data.": "",
|
|
22
|
+
"Network error": "",
|
|
21
23
|
"Data Type": "",
|
|
22
24
|
"All types": "",
|
|
23
25
|
"Totals only": "",
|
|
@@ -117,6 +119,13 @@
|
|
|
117
119
|
"No event reports found. Click New event report to get started.": "",
|
|
118
120
|
"No event reports found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
119
121
|
"New event report": "",
|
|
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": "Опції",
|
|
121
130
|
"Hide": "Сховати",
|
|
122
131
|
"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": "اپڈیٹ",
|
|
@@ -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": "Янгилаш",
|
|
@@ -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": "Maʼlumot turi",
|
|
19
21
|
"All types": "Barcha turlari",
|
|
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": "Berkitish",
|
|
119
128
|
"Update": "Янгилаш",
|
|
@@ -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": "Loại dữ liệu",
|
|
19
21
|
"All types": "Các loại",
|
|
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": "Tùy chọn",
|
|
118
127
|
"Hide": "Ẩn",
|
|
119
128
|
"Update": "Cập nhật",
|
|
@@ -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": "更新",
|
|
@@ -224,7 +233,7 @@
|
|
|
224
233
|
"Choose a locale to translate from the menu above": "从上面的菜单中选择要翻译的语言环境",
|
|
225
234
|
"Translate: {{objectName}}": "翻译:{{objectName}}",
|
|
226
235
|
"Save translations": "保存翻译",
|
|
227
|
-
"Could not load translations": "",
|
|
236
|
+
"Could not load translations": "无法加载翻译",
|
|
228
237
|
"Retry": "重试",
|
|
229
238
|
"Series": "系列",
|
|
230
239
|
"Category": "分类",
|
|
@@ -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": "更新",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXIS_ID_COLUMNS, AXIS_ID_ROWS, AXIS_ID_FILTERS } from '../layout/axis.js';
|
|
2
2
|
import { DIMENSION_ID_PERIOD, DIMENSION_ID_DATA, DIMENSION_ID_ORGUNIT } from '../predefinedDimensions.js';
|
|
3
|
-
import { VIS_TYPE_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR, VIS_TYPE_LINE, VIS_TYPE_AREA, VIS_TYPE_STACKED_AREA, VIS_TYPE_RADAR, VIS_TYPE_GAUGE, VIS_TYPE_PIE, VIS_TYPE_SINGLE_VALUE, VIS_TYPE_YEAR_OVER_YEAR_LINE, VIS_TYPE_YEAR_OVER_YEAR_COLUMN, VIS_TYPE_PIVOT_TABLE, VIS_TYPE_SCATTER } from '../visTypes.js';
|
|
3
|
+
import { VIS_TYPE_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR, VIS_TYPE_LINE, VIS_TYPE_AREA, VIS_TYPE_STACKED_AREA, VIS_TYPE_RADAR, VIS_TYPE_GAUGE, VIS_TYPE_PIE, VIS_TYPE_SINGLE_VALUE, VIS_TYPE_YEAR_OVER_YEAR_LINE, VIS_TYPE_YEAR_OVER_YEAR_COLUMN, VIS_TYPE_PIVOT_TABLE, VIS_TYPE_SCATTER, VIS_TYPE_LINE_LIST } from '../visTypes.js';
|
|
4
4
|
const RULE_PROP_AVAILABLE_AXES = 'availableAxes',
|
|
5
5
|
RULE_PROP_MAX_DIMS_PER_AXIS = 'maxNumberOfDimsPerAxis',
|
|
6
6
|
RULE_PROP_MIN_DIMS_PER_AXIS = 'minNumberOfDimsPerAxis',
|
|
@@ -79,6 +79,9 @@ const scatterRules = {
|
|
|
79
79
|
[DIMENSION_ID_ORGUNIT]: AXIS_ID_ROWS
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
+
const lineListRules = {
|
|
83
|
+
[RULE_PROP_AVAILABLE_AXES]: [AXIS_ID_COLUMNS, AXIS_ID_FILTERS]
|
|
84
|
+
};
|
|
82
85
|
const visTypeToRules = {
|
|
83
86
|
[VIS_TYPE_COLUMN]: defaultRules,
|
|
84
87
|
[VIS_TYPE_STACKED_COLUMN]: defaultRules,
|
|
@@ -94,7 +97,8 @@ const visTypeToRules = {
|
|
|
94
97
|
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: yearOverYearRules,
|
|
95
98
|
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: yearOverYearRules,
|
|
96
99
|
[VIS_TYPE_PIVOT_TABLE]: pivotTableRules,
|
|
97
|
-
[VIS_TYPE_SCATTER]: scatterRules
|
|
100
|
+
[VIS_TYPE_SCATTER]: scatterRules,
|
|
101
|
+
[VIS_TYPE_LINE_LIST]: lineListRules
|
|
98
102
|
};
|
|
99
103
|
|
|
100
104
|
const getRulesByVisType = visType => {
|
|
@@ -16,6 +16,9 @@ export const VIS_TYPE_YEAR_OVER_YEAR_COLUMN = 'YEAR_OVER_YEAR_COLUMN';
|
|
|
16
16
|
export const VIS_TYPE_SINGLE_VALUE = 'SINGLE_VALUE';
|
|
17
17
|
export const VIS_TYPE_PIVOT_TABLE = 'PIVOT_TABLE';
|
|
18
18
|
export const VIS_TYPE_SCATTER = 'SCATTER';
|
|
19
|
+
export const VIS_TYPE_LINE_LIST = 'LINE_LIST';
|
|
20
|
+
export const VIS_TYPE_GROUP_ALL = 'ALL';
|
|
21
|
+
export const VIS_TYPE_GROUP_CHARTS = 'CHARTS';
|
|
19
22
|
export const visTypeDisplayNames = {
|
|
20
23
|
[VIS_TYPE_PIVOT_TABLE]: i18n.t('Pivot table'),
|
|
21
24
|
[VIS_TYPE_COLUMN]: i18n.t('Column'),
|
|
@@ -31,24 +34,10 @@ export const visTypeDisplayNames = {
|
|
|
31
34
|
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: i18n.t('Year over year (line)'),
|
|
32
35
|
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: i18n.t('Year over year (column)'),
|
|
33
36
|
[VIS_TYPE_SINGLE_VALUE]: i18n.t('Single value'),
|
|
34
|
-
[VIS_TYPE_SCATTER]: i18n.t('Scatter')
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
[VIS_TYPE_COLUMN]: i18n.t('Compare sizes of related elements vertically. Recommend period as filter.'),
|
|
39
|
-
[VIS_TYPE_STACKED_COLUMN]: i18n.t('Compare parts of a whole against related elements vertically. Recommend data or org. unit as series.'),
|
|
40
|
-
[VIS_TYPE_BAR]: i18n.t('Compare sizes of related elements horizontally. Recommend period as filter.'),
|
|
41
|
-
[VIS_TYPE_STACKED_BAR]: i18n.t('Compare parts of a whole against related elements horizontally. Recommend data or org. unit as series.'),
|
|
42
|
-
[VIS_TYPE_LINE]: i18n.t('Track or compare changes over time. Recommend period as category.'),
|
|
43
|
-
[VIS_TYPE_AREA]: i18n.t('Track or compare changes over time. Recommend period as category.'),
|
|
44
|
-
[VIS_TYPE_STACKED_AREA]: i18n.t('Track or compare parts of a whole over time. Recommend data as series and period as category.'),
|
|
45
|
-
[VIS_TYPE_PIE]: i18n.t('Compare parts of a whole at a single point in time. Recommend period as filter.'),
|
|
46
|
-
[VIS_TYPE_RADAR]: i18n.t('Compare several items against multiple variables.'),
|
|
47
|
-
[VIS_TYPE_GAUGE]: i18n.t('Compare a percentage indicator against a 100% scale. Recommend period as filter.'),
|
|
48
|
-
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: i18n.t('Compare changes over time between multiple time periods.'),
|
|
49
|
-
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: i18n.t('Compare changes over time between multiple time periods.'),
|
|
50
|
-
[VIS_TYPE_SINGLE_VALUE]: i18n.t('Display a single value. Recommend relative period to show latest data.'),
|
|
51
|
-
[VIS_TYPE_SCATTER]: i18n.t('View the relationship between two data items at a place or time. Recommended for finding outliers.')
|
|
37
|
+
[VIS_TYPE_SCATTER]: i18n.t('Scatter'),
|
|
38
|
+
[VIS_TYPE_LINE_LIST]: i18n.t('Line list'),
|
|
39
|
+
[VIS_TYPE_GROUP_ALL]: i18n.t('All types'),
|
|
40
|
+
[VIS_TYPE_GROUP_CHARTS]: i18n.t('All charts')
|
|
52
41
|
};
|
|
53
42
|
export const visTypeIcons = {
|
|
54
43
|
[VIS_TYPE_PIVOT_TABLE]: IconTable24,
|
|
@@ -65,7 +54,9 @@ export const visTypeIcons = {
|
|
|
65
54
|
[VIS_TYPE_YEAR_OVER_YEAR_LINE]: IconVisualizationLineMulti24,
|
|
66
55
|
[VIS_TYPE_YEAR_OVER_YEAR_COLUMN]: IconVisualizationColumnMulti24,
|
|
67
56
|
[VIS_TYPE_SINGLE_VALUE]: IconVisualizationSingleValue24,
|
|
68
|
-
[VIS_TYPE_SCATTER]: IconVisualizationScatter24
|
|
57
|
+
[VIS_TYPE_SCATTER]: IconVisualizationScatter24,
|
|
58
|
+
[VIS_TYPE_LINE_LIST]: IconTable24 // TODO different icon @joe
|
|
59
|
+
|
|
69
60
|
};
|
|
70
61
|
export const getDisplayNameByVisType = visType => {
|
|
71
62
|
const displayName = visTypeDisplayNames[visType];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/analytics",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.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": "^6.2.0",
|
|
36
36
|
"@dhis2/cli-style": "^10.1.1",
|
|
37
37
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
38
|
-
"@dhis2/ui": "^7.
|
|
38
|
+
"@dhis2/ui": "^7.14.3",
|
|
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",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const _defaultExport = [".datatable-row.jsx-670715550{cursor:pointer;}"];
|
|
8
|
-
_defaultExport.__hash = "670715550";
|
|
9
|
-
var _default = _defaultExport;
|
|
10
|
-
exports.default = _default;
|