@dhis2/analytics 23.13.13 → 24.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +15 -9
- package/build/cjs/components/AboutAOUnit/utils.js +48 -0
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationModal.js +3 -3
- package/build/cjs/components/Interpretations/InterpretationModal/InterpretationThread.js +14 -12
- package/build/cjs/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +4 -6
- package/build/cjs/components/Interpretations/common/RichTextEditor/RichTextEditor.js +1 -1
- package/build/cjs/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +2 -2
- package/build/cjs/components/Interpretations/common/UserMention/useUserSearchResults.js +1 -1
- package/build/cjs/locales/ar/translations.json +4 -1
- package/build/cjs/locales/ar_EG/translations.json +4 -1
- package/build/cjs/locales/ar_IQ/translations.json +4 -1
- package/build/cjs/locales/ckb/translations.json +4 -1
- package/build/cjs/locales/cs/translations.json +4 -1
- package/build/cjs/locales/da/translations.json +4 -1
- package/build/cjs/locales/en/translations.json +4 -1
- package/build/cjs/locales/es/translations.json +4 -1
- package/build/cjs/locales/fr/translations.json +4 -1
- package/build/cjs/locales/id/translations.json +4 -1
- package/build/cjs/locales/km/translations.json +4 -1
- package/build/cjs/locales/lo/translations.json +4 -1
- package/build/cjs/locales/my/translations.json +4 -1
- package/build/cjs/locales/nb/translations.json +4 -1
- package/build/cjs/locales/nl/translations.json +4 -1
- package/build/cjs/locales/or/translations.json +4 -1
- package/build/cjs/locales/prs/translations.json +4 -1
- package/build/cjs/locales/ps/translations.json +4 -1
- package/build/cjs/locales/pt/translations.json +4 -1
- package/build/cjs/locales/pt_BR/translations.json +4 -1
- package/build/cjs/locales/ro/translations.json +4 -1
- package/build/cjs/locales/ru/translations.json +4 -1
- package/build/cjs/locales/sv/translations.json +4 -1
- package/build/cjs/locales/tet/translations.json +4 -1
- package/build/cjs/locales/tg/translations.json +4 -1
- package/build/cjs/locales/uk/translations.json +4 -1
- package/build/cjs/locales/ur/translations.json +4 -1
- package/build/cjs/locales/uz/translations.json +4 -1
- package/build/cjs/locales/uz_Latn/translations.json +4 -1
- package/build/cjs/locales/vi/translations.json +4 -1
- package/build/cjs/locales/zh/translations.json +4 -1
- package/build/cjs/locales/zh_CN/translations.json +4 -1
- package/build/es/components/AboutAOUnit/AboutAOUnit.js +14 -9
- package/build/es/components/AboutAOUnit/utils.js +31 -0
- package/build/es/components/Interpretations/InterpretationModal/InterpretationModal.js +3 -3
- package/build/es/components/Interpretations/InterpretationModal/InterpretationThread.js +14 -12
- package/build/es/components/Interpretations/InterpretationsUnit/InterpretationsUnit.js +5 -7
- package/build/es/components/Interpretations/common/RichTextEditor/RichTextEditor.js +1 -1
- package/build/es/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +2 -2
- package/build/es/components/Interpretations/common/UserMention/useUserSearchResults.js +1 -1
- package/build/es/locales/ar/translations.json +4 -1
- package/build/es/locales/ar_EG/translations.json +4 -1
- package/build/es/locales/ar_IQ/translations.json +4 -1
- package/build/es/locales/ckb/translations.json +4 -1
- package/build/es/locales/cs/translations.json +4 -1
- package/build/es/locales/da/translations.json +4 -1
- package/build/es/locales/en/translations.json +4 -1
- package/build/es/locales/es/translations.json +4 -1
- package/build/es/locales/fr/translations.json +4 -1
- package/build/es/locales/id/translations.json +4 -1
- package/build/es/locales/km/translations.json +4 -1
- package/build/es/locales/lo/translations.json +4 -1
- package/build/es/locales/my/translations.json +4 -1
- package/build/es/locales/nb/translations.json +4 -1
- package/build/es/locales/nl/translations.json +4 -1
- package/build/es/locales/or/translations.json +4 -1
- package/build/es/locales/prs/translations.json +4 -1
- package/build/es/locales/ps/translations.json +4 -1
- package/build/es/locales/pt/translations.json +4 -1
- package/build/es/locales/pt_BR/translations.json +4 -1
- package/build/es/locales/ro/translations.json +4 -1
- package/build/es/locales/ru/translations.json +4 -1
- package/build/es/locales/sv/translations.json +4 -1
- package/build/es/locales/tet/translations.json +4 -1
- package/build/es/locales/tg/translations.json +4 -1
- package/build/es/locales/uk/translations.json +4 -1
- package/build/es/locales/ur/translations.json +4 -1
- package/build/es/locales/uz/translations.json +4 -1
- package/build/es/locales/uz_Latn/translations.json +4 -1
- package/build/es/locales/vi/translations.json +4 -1
- package/build/es/locales/zh/translations.json +4 -1
- package/build/es/locales/zh_CN/translations.json +4 -1
- package/package.json +3 -3
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "{{userOrGroup}} ({{accessLevel}})",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "Delt med {{commaSeparatedListOfUsersAndGroups}}",
|
|
7
7
|
"Not shared with any users or groups": "Ikke delt med noen brukere eller grupper",
|
|
8
|
-
"About this visualization": "Om denne visualiseringen",
|
|
9
8
|
"No description": "Ingen beskrivelse",
|
|
10
9
|
"Last updated {{time}}": "Sist oppdatert {{time}}",
|
|
11
10
|
"Created {{time}} by {{author}}": "Opprettet {{time}} av {{author}}",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "Vist 1 gang",
|
|
13
13
|
"Viewed {{count}} times_plural": "Vist {{count}} ganger",
|
|
14
14
|
"Notifications": "Varsler",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "Avslutt abonnementet",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "Abonner for å få oppdateringer om nye tolkninger.",
|
|
18
18
|
"Subscribe": "Abonner",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "Om denne visualiseringen",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "Datatype",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "بدون شرح",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times_0": "",
|
|
13
13
|
"Viewed {{count}} times_1": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "هېڅ ډول تشریح نه لري",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Sem descrição",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "Notificação",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "Tipo de dados",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times_0": "",
|
|
13
13
|
"Viewed {{count}} times_1": "",
|
|
14
14
|
"Viewed {{count}} times_2": "",
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
"Unsubscribe": "",
|
|
18
18
|
"Subscribe to get updates about new interpretations.": "",
|
|
19
19
|
"Subscribe": "",
|
|
20
|
+
"About this map": "",
|
|
21
|
+
"About this line list": "",
|
|
22
|
+
"About this visualization": "",
|
|
20
23
|
"This app could not retrieve required data.": "",
|
|
21
24
|
"Network error": "",
|
|
22
25
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Нет описания",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times_0": "",
|
|
13
13
|
"Viewed {{count}} times_1": "",
|
|
14
14
|
"Viewed {{count}} times_2": "",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"Unsubscribe": "",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "",
|
|
20
20
|
"Subscribe": "",
|
|
21
|
+
"About this map": "",
|
|
22
|
+
"About this line list": "",
|
|
23
|
+
"About this visualization": "",
|
|
21
24
|
"This app could not retrieve required data.": "",
|
|
22
25
|
"Network error": "",
|
|
23
26
|
"Data Type": "Тип данных",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Ingen beskrivning",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Notifications": "",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "",
|
|
17
17
|
"Subscribe": "",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "",
|
|
18
21
|
"This app could not retrieve required data.": "",
|
|
19
22
|
"Network error": "",
|
|
20
23
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Немає змалювання",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times_0": "",
|
|
13
13
|
"Viewed {{count}} times_1": "",
|
|
14
14
|
"Viewed {{count}} times_2": "",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"Unsubscribe": "",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "",
|
|
20
20
|
"Subscribe": "",
|
|
21
|
+
"About this map": "",
|
|
22
|
+
"About this line list": "",
|
|
23
|
+
"About this visualization": "",
|
|
21
24
|
"This app could not retrieve required data.": "",
|
|
22
25
|
"Network error": "",
|
|
23
26
|
"Data Type": "",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "کوئی وضاحت نہیں",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Viewed {{count}} times_plural": "",
|
|
14
14
|
"Notifications": "",
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"Unsubscribe": "",
|
|
17
17
|
"Subscribe to get updates about new interpretations.": "",
|
|
18
18
|
"Subscribe": "",
|
|
19
|
+
"About this map": "",
|
|
20
|
+
"About this line list": "",
|
|
21
|
+
"About this visualization": "",
|
|
19
22
|
"This app could not retrieve required data.": "",
|
|
20
23
|
"Network error": "",
|
|
21
24
|
"Data Type": "",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Тавсиф йўқ",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Notifications": "Билдиришномалар",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "",
|
|
17
17
|
"Subscribe": "",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "",
|
|
18
21
|
"This app could not retrieve required data.": "",
|
|
19
22
|
"Network error": "",
|
|
20
23
|
"Data Type": "Маълумот тури",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Tavsif yoʼq",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Notifications": "",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "",
|
|
17
17
|
"Subscribe": "",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "",
|
|
18
21
|
"This app could not retrieve required data.": "",
|
|
19
22
|
"Network error": "",
|
|
20
23
|
"Data Type": "Maʼlumot turi",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "Không mô tả",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Notifications": "",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "",
|
|
17
17
|
"Subscribe": "",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "",
|
|
18
21
|
"This app could not retrieve required data.": "",
|
|
19
22
|
"Network error": "",
|
|
20
23
|
"Data Type": "Loại dữ liệu",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "{{userOrGroup}} ({{accessLevel}})",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "与 {{commaSeparatedListOfUsersAndGroups}} 共享",
|
|
7
7
|
"Not shared with any users or groups": "不与任何用户或组共享",
|
|
8
|
-
"About this visualization": "关于此可视化",
|
|
9
8
|
"No description": "无描述",
|
|
10
9
|
"Last updated {{time}}": "最后更新 {{time}}",
|
|
11
10
|
"Created {{time}} by {{author}}": "由 {{author}} 在 {{time}} 创建",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "查看了 {{count}} 次",
|
|
13
13
|
"Notifications": "通知",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "您已订阅并获取有关新解释的更新。",
|
|
15
15
|
"Unsubscribe": "退订",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "订阅以获取有关新解释的更新。",
|
|
17
17
|
"Subscribe": "订阅",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "关于此可视化",
|
|
18
21
|
"This app could not retrieve required data.": "此应用无法检索所需数据。",
|
|
19
22
|
"Network error": "网络错误",
|
|
20
23
|
"Data Type": "数据类型",
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
"{{userOrGroup}} ({{accessLevel}})": "",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
|
|
7
7
|
"Not shared with any users or groups": "",
|
|
8
|
-
"About this visualization": "",
|
|
9
8
|
"No description": "没有描述",
|
|
10
9
|
"Last updated {{time}}": "",
|
|
11
10
|
"Created {{time}} by {{author}}": "",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times": "",
|
|
13
13
|
"Notifications": "通知",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
16
16
|
"Subscribe to get updates about new interpretations.": "",
|
|
17
17
|
"Subscribe": "",
|
|
18
|
+
"About this map": "",
|
|
19
|
+
"About this line list": "",
|
|
20
|
+
"About this visualization": "",
|
|
18
21
|
"This app could not retrieve required data.": "",
|
|
19
22
|
"Network error": "",
|
|
20
23
|
"Data Type": "",
|
|
@@ -8,12 +8,13 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { formatList } from '../../modules/list.js';
|
|
10
10
|
import styles from './styles/AboutAOUnit.style.js';
|
|
11
|
+
import { getTranslatedString, AOTypeMap } from './utils.js';
|
|
11
12
|
const READ_ONLY = 'r';
|
|
12
13
|
const READ_AND_WRITE = 'rw';
|
|
13
14
|
|
|
14
15
|
const getQueries = type => ({
|
|
15
16
|
ao: {
|
|
16
|
-
resource: type,
|
|
17
|
+
resource: AOTypeMap[type].apiEndpoint,
|
|
17
18
|
id: _ref => {
|
|
18
19
|
let {
|
|
19
20
|
id
|
|
@@ -36,22 +37,24 @@ const getQueries = type => ({
|
|
|
36
37
|
});
|
|
37
38
|
|
|
38
39
|
const getSubscribeMutation = (type, id) => ({
|
|
39
|
-
resource: "".concat(type, "/").concat(id, "/subscriber"),
|
|
40
|
+
resource: "".concat(AOTypeMap[type].apiEndpoint, "/").concat(id, "/subscriber"),
|
|
40
41
|
type: 'create'
|
|
41
42
|
});
|
|
42
43
|
|
|
43
44
|
const getUnsubscribeMutation = (type, id) => ({
|
|
44
|
-
resource: "".concat(type, "/").concat(id, "/subscriber"),
|
|
45
|
+
resource: "".concat(AOTypeMap[type].apiEndpoint, "/").concat(id, "/subscriber"),
|
|
45
46
|
type: 'delete'
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
const AboutAOUnit = _ref3 => {
|
|
50
|
+
var _data$ao$createdBy;
|
|
51
|
+
|
|
49
52
|
let {
|
|
50
53
|
type,
|
|
51
54
|
id
|
|
52
55
|
} = _ref3;
|
|
53
56
|
const [isExpanded, setIsExpanded] = useState(true);
|
|
54
|
-
const queries = useMemo(() => getQueries(type), []);
|
|
57
|
+
const queries = useMemo(() => getQueries(type), [type]);
|
|
55
58
|
const {
|
|
56
59
|
data,
|
|
57
60
|
loading: dataIsLoading,
|
|
@@ -59,8 +62,8 @@ const AboutAOUnit = _ref3 => {
|
|
|
59
62
|
} = useDataQuery(queries, {
|
|
60
63
|
lazy: true
|
|
61
64
|
});
|
|
62
|
-
const subscribeMutation = useMemo(() => getSubscribeMutation(type, id), []);
|
|
63
|
-
const unsubscribeMutation = useMemo(() => getUnsubscribeMutation(type, id), []);
|
|
65
|
+
const subscribeMutation = useMemo(() => getSubscribeMutation(type, id), [type, id]);
|
|
66
|
+
const unsubscribeMutation = useMemo(() => getUnsubscribeMutation(type, id), [type, id]);
|
|
64
67
|
const [subscribe, {
|
|
65
68
|
loading: subscribeIsLoading
|
|
66
69
|
}] = useDataMutation(subscribeMutation, {
|
|
@@ -89,7 +92,7 @@ const AboutAOUnit = _ref3 => {
|
|
|
89
92
|
id
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
|
-
}, [
|
|
95
|
+
}, [id, refetch]);
|
|
93
96
|
|
|
94
97
|
const getAccessLevelString = access => {
|
|
95
98
|
const re = new RegExp("(?<accessLevel>".concat(READ_AND_WRITE, "?)"));
|
|
@@ -136,7 +139,7 @@ const AboutAOUnit = _ref3 => {
|
|
|
136
139
|
className: "jsx-".concat(styles.__hash) + " " + "header"
|
|
137
140
|
}, /*#__PURE__*/React.createElement("span", {
|
|
138
141
|
className: "jsx-".concat(styles.__hash) + " " + "title"
|
|
139
|
-
},
|
|
142
|
+
}, getTranslatedString(type, 'unitTitle')), isExpanded ? /*#__PURE__*/React.createElement(IconChevronUp24, {
|
|
140
143
|
color: colors.grey700
|
|
141
144
|
}) : /*#__PURE__*/React.createElement(IconChevronDown24, {
|
|
142
145
|
color: colors.grey700
|
|
@@ -166,9 +169,11 @@ const AboutAOUnit = _ref3 => {
|
|
|
166
169
|
className: "jsx-".concat(styles.__hash) + " " + "detailLine"
|
|
167
170
|
}, /*#__PURE__*/React.createElement(IconUser16, {
|
|
168
171
|
color: colors.grey700
|
|
169
|
-
}), i18n.t('Created {{time}} by {{author}}', {
|
|
172
|
+
}), (_data$ao$createdBy = data.ao.createdBy) !== null && _data$ao$createdBy !== void 0 && _data$ao$createdBy.displayName ? i18n.t('Created {{time}} by {{author}}', {
|
|
170
173
|
time: moment(data.ao.created).fromNow(),
|
|
171
174
|
author: data.ao.createdBy.displayName
|
|
175
|
+
}) : i18n.t('Created {{time}}', {
|
|
176
|
+
time: moment(data.ao.created).fromNow()
|
|
172
177
|
})), /*#__PURE__*/React.createElement("p", {
|
|
173
178
|
className: "jsx-".concat(styles.__hash) + " " + "detailLine"
|
|
174
179
|
}, /*#__PURE__*/React.createElement(IconView16, {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import i18n from '@dhis2/d2-i18n';
|
|
2
|
+
export const AO_TYPE_VISUALIZATION = 'visualization';
|
|
3
|
+
export const AO_TYPE_MAP = 'map';
|
|
4
|
+
export const AO_TYPE_EVENT_VISUALIZATION = 'eventVisualization';
|
|
5
|
+
export const AOTypeMap = {
|
|
6
|
+
[AO_TYPE_VISUALIZATION]: {
|
|
7
|
+
apiEndpoint: 'visualizations'
|
|
8
|
+
},
|
|
9
|
+
[AO_TYPE_MAP]: {
|
|
10
|
+
apiEndpoint: 'maps'
|
|
11
|
+
},
|
|
12
|
+
[AO_TYPE_EVENT_VISUALIZATION]: {
|
|
13
|
+
apiEndpoint: 'eventVisualizations'
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const NO_TYPE = 'NO_TYPE';
|
|
17
|
+
const texts = {
|
|
18
|
+
[AO_TYPE_MAP]: {
|
|
19
|
+
unitTitle: i18n.t('About this map')
|
|
20
|
+
},
|
|
21
|
+
[AO_TYPE_EVENT_VISUALIZATION]: {
|
|
22
|
+
unitTitle: i18n.t('About this line list')
|
|
23
|
+
},
|
|
24
|
+
[AO_TYPE_VISUALIZATION]: {
|
|
25
|
+
unitTitle: i18n.t('About this visualization')
|
|
26
|
+
},
|
|
27
|
+
[NO_TYPE]: {
|
|
28
|
+
unitTitle: i18n.t('About this visualization')
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export const getTranslatedString = (type, key) => (texts[type] || texts[NO_TYPE])[key];
|
|
@@ -99,7 +99,7 @@ const InterpretationModal = _ref2 => {
|
|
|
99
99
|
id: interpretationId
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
}, [interpretationId]);
|
|
102
|
+
}, [interpretationId, refetch]);
|
|
103
103
|
return /*#__PURE__*/React.createElement(React.Fragment, null, shouldCssHideModal && /*#__PURE__*/React.createElement(Layer, null, /*#__PURE__*/React.createElement(CenteredContent, null, /*#__PURE__*/React.createElement(CircularLoader, null))), /*#__PURE__*/React.createElement(Modal, {
|
|
104
104
|
fluid: true,
|
|
105
105
|
onClose: handleClose,
|
|
@@ -112,7 +112,7 @@ const InterpretationModal = _ref2 => {
|
|
|
112
112
|
}, /*#__PURE__*/React.createElement("span", {
|
|
113
113
|
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "ellipsis"
|
|
114
114
|
}, i18n.t('Viewing interpretation: {{- visualisationName}}', {
|
|
115
|
-
visualisationName: visualization.displayName,
|
|
115
|
+
visualisationName: visualization.displayName || visualization.name,
|
|
116
116
|
nsSeparator: '^^'
|
|
117
117
|
}))), /*#__PURE__*/React.createElement(ModalContent, {
|
|
118
118
|
className: modalContentCSS.className
|
|
@@ -153,13 +153,13 @@ const InterpretationModal = _ref2 => {
|
|
|
153
153
|
|
|
154
154
|
InterpretationModal.propTypes = {
|
|
155
155
|
currentUser: PropTypes.object.isRequired,
|
|
156
|
-
downloadMenuComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired,
|
|
157
156
|
interpretationId: PropTypes.string.isRequired,
|
|
158
157
|
isVisualizationLoading: PropTypes.bool.isRequired,
|
|
159
158
|
pluginComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired,
|
|
160
159
|
visualization: PropTypes.object.isRequired,
|
|
161
160
|
onClose: PropTypes.func.isRequired,
|
|
162
161
|
onResponsesReceived: PropTypes.func.isRequired,
|
|
162
|
+
downloadMenuComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
|
|
163
163
|
initialFocus: PropTypes.bool,
|
|
164
164
|
onInterpretationUpdate: PropTypes.func
|
|
165
165
|
};
|
|
@@ -25,21 +25,23 @@ const InterpretationThread = _ref => {
|
|
|
25
25
|
focusRef.current.focus();
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
}, [initialFocus
|
|
28
|
+
}, [initialFocus]);
|
|
29
29
|
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
-
className: "jsx-
|
|
30
|
+
className: "jsx-615306698" + " " + (cx('container', {
|
|
31
31
|
fetching
|
|
32
32
|
}) || "")
|
|
33
33
|
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "jsx-
|
|
34
|
+
className: "jsx-615306698" + " " + 'scrollbox'
|
|
35
35
|
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "jsx-
|
|
36
|
+
className: "jsx-615306698" + " " + 'title'
|
|
37
37
|
}, /*#__PURE__*/React.createElement(IconClock16, {
|
|
38
38
|
color: colors.grey700
|
|
39
|
-
}), moment(interpretation.created).format('LLL')), /*#__PURE__*/React.createElement(DownloadMenu, {
|
|
39
|
+
}), moment(interpretation.created).format('LLL')), DownloadMenu && /*#__PURE__*/React.createElement(DownloadMenu, {
|
|
40
40
|
relativePeriodDate: interpretation.created,
|
|
41
|
-
className: "jsx-
|
|
42
|
-
}), /*#__PURE__*/React.createElement(
|
|
41
|
+
className: "jsx-615306698"
|
|
42
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "jsx-615306698" + " " + 'thread'
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Interpretation, {
|
|
43
45
|
currentUser: currentUser,
|
|
44
46
|
interpretation: interpretation,
|
|
45
47
|
onReplyIconClick: () => {
|
|
@@ -50,7 +52,7 @@ const InterpretationThread = _ref => {
|
|
|
50
52
|
onUpdated: () => onThreadUpdated(true),
|
|
51
53
|
onDeleted: onInterpretationDeleted
|
|
52
54
|
}), /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: "jsx-
|
|
55
|
+
className: "jsx-615306698" + " " + 'comments'
|
|
54
56
|
}, interpretation.comments.map(comment => /*#__PURE__*/React.createElement(Comment, {
|
|
55
57
|
key: comment.id,
|
|
56
58
|
comment: comment,
|
|
@@ -62,17 +64,17 @@ const InterpretationThread = _ref => {
|
|
|
62
64
|
interpretationId: interpretation.id,
|
|
63
65
|
onSave: () => onThreadUpdated(true),
|
|
64
66
|
focusRef: focusRef
|
|
65
|
-
})), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
66
|
-
id: "
|
|
67
|
-
}, [".container.jsx-
|
|
67
|
+
}))), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
68
|
+
id: "615306698"
|
|
69
|
+
}, [".thread.jsx-615306698{margin-top:var(--spacers-dp16);}", ".container.jsx-615306698{position:relative;overflow:hidden;max-height:calc(100vh - 285px);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".container.fetching.jsx-615306698::before{content:'';position:absolute;inset:0px;background-color:rgba(255,255,255,0.8);}", ".container.fetching.jsx-615306698::after{content:'';position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);width:24px;height:24px;border-width:4px;border-style:solid;border-color:rgba(110,122,138,0.15) rgba(110,122,138,0.15) rgb(20,124,215);border-image:initial;border-radius:50%;-webkit-animation:1s linear 0s infinite normal none running rotation-jsx-615306698;animation:1s linear 0s infinite normal none running rotation-jsx-615306698;}", ".scrollbox.jsx-615306698{overflow-y:auto;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;}", ".title.jsx-615306698{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;gap:var(--spacers-dp8);color:var(--colors-grey900);font-size:14px;line-height:18px;}", ".comments.jsx-615306698{padding-left:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding-top:var(--spacers-dp4);gap:var(--spacers-dp4);}", "@-webkit-keyframes rotation-jsx-615306698{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}", "@keyframes rotation-jsx-615306698{0%{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}"]));
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
InterpretationThread.propTypes = {
|
|
71
73
|
currentUser: PropTypes.object.isRequired,
|
|
72
|
-
downloadMenuComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired,
|
|
73
74
|
fetching: PropTypes.bool.isRequired,
|
|
74
75
|
interpretation: PropTypes.object.isRequired,
|
|
75
76
|
onInterpretationDeleted: PropTypes.func.isRequired,
|
|
77
|
+
downloadMenuComponent: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
|
|
76
78
|
initialFocus: PropTypes.bool,
|
|
77
79
|
onThreadUpdated: PropTypes.func
|
|
78
80
|
};
|