@dhis2/analytics 24.0.0 → 24.0.3
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 +21 -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/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 +5 -2
- 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/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/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 +5 -2
- 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 +1 -1
|
@@ -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": "",
|
|
@@ -257,7 +260,7 @@
|
|
|
257
260
|
"This year": "Поточний рік",
|
|
258
261
|
"Last year": "Минулий рік",
|
|
259
262
|
"Last 5 years": "Останні 5 років",
|
|
260
|
-
"Last 10 years": "",
|
|
263
|
+
"Last 10 years": "Останні 10 років",
|
|
261
264
|
"Days": "Дні",
|
|
262
265
|
"Weeks": "Тижні",
|
|
263
266
|
"Bi-weeks": "Двотижневі проміжки",
|
|
@@ -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": "",
|
|
@@ -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
|
};
|
|
@@ -4,7 +4,7 @@ import i18n from '@dhis2/d2-i18n';
|
|
|
4
4
|
import { CircularLoader, IconChevronDown24, IconChevronUp24, colors, spacers } from '@dhis2/ui';
|
|
5
5
|
import cx from 'classnames';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
-
import React, { useEffect, useState, useImperativeHandle, forwardRef } from 'react';
|
|
7
|
+
import React, { useCallback, useEffect, useState, useImperativeHandle, forwardRef } from 'react';
|
|
8
8
|
import { InterpretationForm } from './InterpretationForm.js';
|
|
9
9
|
import { InterpretationList } from './InterpretationList.js';
|
|
10
10
|
const interpretationsQuery = {
|
|
@@ -40,17 +40,15 @@ export const InterpretationsUnit = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
40
40
|
} = useDataQuery(interpretationsQuery, {
|
|
41
41
|
lazy: true
|
|
42
42
|
});
|
|
43
|
-
|
|
44
|
-
const onCompleteAction = () => {
|
|
43
|
+
const onCompleteAction = useCallback(() => {
|
|
45
44
|
refetch({
|
|
46
45
|
type,
|
|
47
46
|
id
|
|
48
47
|
});
|
|
49
|
-
};
|
|
50
|
-
|
|
48
|
+
}, [type, id, refetch]);
|
|
51
49
|
useImperativeHandle(ref, () => ({
|
|
52
50
|
refresh: onCompleteAction
|
|
53
|
-
}), []);
|
|
51
|
+
}), [onCompleteAction]);
|
|
54
52
|
useEffect(() => {
|
|
55
53
|
if (id) {
|
|
56
54
|
refetch({
|
|
@@ -58,7 +56,7 @@ export const InterpretationsUnit = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
58
56
|
id
|
|
59
57
|
});
|
|
60
58
|
}
|
|
61
|
-
}, [type, id]);
|
|
59
|
+
}, [type, id, refetch]);
|
|
62
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
61
|
className: _JSXStyle.dynamic([["4120713286", [spacers.dp16, colors.grey400, colors.white, spacers.dp32, colors.grey900]]]) + " " + (cx('container', {
|
|
64
62
|
expanded: isExpanded
|
|
@@ -188,7 +188,7 @@ export const RichTextEditor = /*#__PURE__*/forwardRef((_ref5, externalRef) => {
|
|
|
188
188
|
var _textareaRef$current;
|
|
189
189
|
|
|
190
190
|
return (_textareaRef$current = textareaRef.current) === null || _textareaRef$current === void 0 ? void 0 : _textareaRef$current.focus();
|
|
191
|
-
}, [textareaRef
|
|
191
|
+
}, [textareaRef]);
|
|
192
192
|
return /*#__PURE__*/React.createElement("div", {
|
|
193
193
|
className: "jsx-".concat(mainClasses.__hash) + " " + "container"
|
|
194
194
|
}, /*#__PURE__*/React.createElement(Toolbar, {
|
package/build/es/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { colors, spacers, theme } from '@dhis2/ui';
|
|
2
2
|
export const mainClasses = [".container.jsx-2278350860{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;}", ".preview.jsx-2278350860{font-size:14px;line-height:19px;color:".concat(colors.grey900, ";}"), ".textarea.jsx-2278350860{width:100%;box-sizing:border-box;padding:".concat(spacers.dp8, " ").concat(spacers.dp12, ";color:").concat(colors.grey900, ";background-color:").concat(colors.white, ";border:1px solid ").concat(colors.grey500, ";border-radius:3px;box-shadow:inset 0 0 0 1px rgba(102,113,123,0.15), inset 0 1px 2px 0 rgba(102,113,123,0.1);outline:0;font-size:14px;line-height:").concat(spacers.dp16, ";-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;}"), ".textarea.jsx-2278350860:focus{outline:none;box-shadow:0 0 0 3px ".concat(theme.focus, ";}"), ".textarea.jsx-2278350860:disabled{background-color:".concat(colors.grey100, ";border-color:").concat(colors.grey500, ";color:").concat(theme.disabled, ";cursor:not-allowed;}")];
|
|
3
3
|
mainClasses.__hash = "2278350860";
|
|
4
|
-
export const toolbarClasses = [".toolbar.jsx-
|
|
5
|
-
toolbarClasses.__hash = "
|
|
4
|
+
export const toolbarClasses = [".toolbar.jsx-2267496677{background:".concat(colors.grey050, ";border-radius:3px;border:1px solid ").concat(colors.grey300, ";margin-bottom:").concat(spacers.dp4, ";}"), ".actionsWrapper.jsx-2267496677{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:".concat(spacers.dp4, ";-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:").concat(spacers.dp4, ";}"), ".mainActions.jsx-2267496677{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:".concat(spacers.dp4, ";margin-top:").concat(spacers.dp2, ";}"), ".sideActions.jsx-2267496677{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".previewWrapper.jsx-2267496677{margin:".concat(spacers.dp4, ";text-align:right;}")];
|
|
5
|
+
toolbarClasses.__hash = "2267496677";
|
|
6
6
|
export const tooltipAnchorClasses = [".tooltip.jsx-2182400256{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}"];
|
|
7
7
|
tooltipAnchorClasses.__hash = "2182400256";
|
|
8
8
|
export const emojisPopoverClasses = [".emojisList.jsx-2802175370{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:".concat(spacers.dp8, ";list-style-type:none;margin:0 ").concat(spacers.dp4, " 0 ").concat(spacers.dp8, ";padding:0;}"), ".emojisList.jsx-2802175370 li.jsx-2802175370{cursor:pointer;}"];
|
|
@@ -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": "",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"Unsubscribe": "",
|
|
21
21
|
"Subscribe to get updates about new interpretations.": "",
|
|
22
22
|
"Subscribe": "",
|
|
23
|
+
"About this map": "",
|
|
24
|
+
"About this line list": "",
|
|
25
|
+
"About this visualization": "",
|
|
23
26
|
"This app could not retrieve required data.": "",
|
|
24
27
|
"Network error": "",
|
|
25
28
|
"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": "",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"Unsubscribe": "",
|
|
21
21
|
"Subscribe to get updates about new interpretations.": "",
|
|
22
22
|
"Subscribe": "",
|
|
23
|
+
"About this map": "",
|
|
24
|
+
"About this line list": "",
|
|
25
|
+
"About this visualization": "",
|
|
23
26
|
"This app could not retrieve required data.": "",
|
|
24
27
|
"Network error": "",
|
|
25
28
|
"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": "",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"Unsubscribe": "",
|
|
21
21
|
"Subscribe to get updates about new interpretations.": "",
|
|
22
22
|
"Subscribe": "",
|
|
23
|
+
"About this map": "",
|
|
24
|
+
"About this line list": "",
|
|
25
|
+
"About this visualization": "",
|
|
23
26
|
"This app could not retrieve required data.": "",
|
|
24
27
|
"Network error": "",
|
|
25
28
|
"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}})": "{{userOrGroup}} ({{accessLevel}})",
|
|
6
6
|
"Shared with {{commaSeparatedListOfUsersAndGroups}}": "Sdíleno s {{commaSeparatedListOfUsersAndGroups}}",
|
|
7
7
|
"Not shared with any users or groups": "Nesdíleno s žádnými uživateli ani skupinami",
|
|
8
|
-
"About this visualization": "O této vizualizaci",
|
|
9
8
|
"No description": "Bez popisu",
|
|
10
9
|
"Last updated {{time}}": "Poslední aktualizace {{time}}",
|
|
11
10
|
"Created {{time}} by {{author}}": "Vytvořeno {{time}} uživatelem {{author}}",
|
|
11
|
+
"Created {{time}}": "",
|
|
12
12
|
"Viewed {{count}} times_0": "Zobrazeno 1 krát",
|
|
13
13
|
"Viewed {{count}} times_1": "Zobrazeno {{count}}krát",
|
|
14
14
|
"Viewed {{count}} times_2": "Zobrazeno {{count}}krát",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"Unsubscribe": "Odhlásit odběr",
|
|
19
19
|
"Subscribe to get updates about new interpretations.": "Přihlaste se k odběru novinek o nových interpretacích.",
|
|
20
20
|
"Subscribe": "Odebírat",
|
|
21
|
+
"About this map": "",
|
|
22
|
+
"About this line list": "",
|
|
23
|
+
"About this visualization": "O této vizualizaci",
|
|
21
24
|
"This app could not retrieve required data.": "Tato aplikace nemohla načíst požadovaná data.",
|
|
22
25
|
"Network error": "Chyba sítě",
|
|
23
26
|
"Data Type": "Typ dat",
|
|
@@ -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": "Sin descripción",
|
|
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": "Tipo de datos",
|
|
@@ -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": "Aucune 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": "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": "Type de données",
|