@dhis2/analytics 29.4.1 → 29.4.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/build/cjs/__demo__/AboutAOUnit.stories.js +142 -0
- package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +15 -8
- package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
- package/build/cjs/components/FileMenu/DeleteDialog.js +1 -1
- package/build/cjs/components/TranslationDialog/TranslationModal/TranslationForm.js +1 -0
- package/build/cjs/components/UserMention/useUserSearchResults.js +1 -1
- package/build/cjs/locales/en/translations.json +0 -12
- package/build/cjs/locales/id/translations.json +6 -6
- package/build/cjs/locales/km/translations.json +6 -6
- package/build/cjs/locales/lo/translations.json +6 -6
- package/build/cjs/locales/my/translations.json +6 -6
- package/build/cjs/locales/tet/translations.json +6 -6
- package/build/cjs/locales/th/translations.json +6 -6
- package/build/cjs/locales/vi/translations.json +6 -6
- package/build/cjs/locales/zh/translations.json +6 -6
- package/build/cjs/locales/zh_CN/translations.json +6 -6
- package/build/cjs/modules/pivotTable/useScrollPosition.js +2 -2
- package/build/cjs/modules/utils.js +1 -0
- package/build/es/__demo__/AboutAOUnit.stories.js +132 -0
- package/build/es/components/AboutAOUnit/AboutAOUnit.js +16 -9
- package/build/es/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
- package/build/es/components/FileMenu/DeleteDialog.js +1 -1
- package/build/es/components/TranslationDialog/TranslationModal/TranslationForm.js +1 -0
- package/build/es/components/UserMention/useUserSearchResults.js +2 -2
- package/build/es/locales/en/translations.json +0 -12
- package/build/es/locales/id/translations.json +6 -6
- package/build/es/locales/km/translations.json +6 -6
- package/build/es/locales/lo/translations.json +6 -6
- package/build/es/locales/my/translations.json +6 -6
- package/build/es/locales/tet/translations.json +6 -6
- package/build/es/locales/th/translations.json +6 -6
- package/build/es/locales/vi/translations.json +6 -6
- package/build/es/locales/zh/translations.json +6 -6
- package/build/es/locales/zh_CN/translations.json +6 -6
- package/build/es/modules/pivotTable/useScrollPosition.js +3 -3
- package/build/es/modules/utils.js +1 -0
- package/package.json +6 -7
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Last updated {{time}}": "最近更新的{{time}}",
|
|
10
10
|
"Created {{time}} by {{author}}": "",
|
|
11
11
|
"Created {{time}}": "",
|
|
12
|
-
"Viewed {{count}}
|
|
12
|
+
"Viewed {{count}} times_0": "",
|
|
13
13
|
"Notifications": "通知",
|
|
14
14
|
"You're subscribed and getting updates about new interpretations.": "",
|
|
15
15
|
"Unsubscribe": "",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"Error loading interpretations": "",
|
|
187
187
|
"Could not load interpretations": "",
|
|
188
188
|
"Reply": "回复",
|
|
189
|
-
"{{count}}
|
|
189
|
+
"{{count}} replies_0": "",
|
|
190
190
|
"View replies": "",
|
|
191
191
|
"Unlike": "不喜欢",
|
|
192
192
|
"Like": "Like",
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"No line lists found. Try adjusting your search or filter options to find what you're looking for.": "",
|
|
237
237
|
"New line list": "",
|
|
238
238
|
"Hide": "隐藏",
|
|
239
|
-
"{{count}} org
|
|
240
|
-
"{{count}}
|
|
241
|
-
"{{count}}
|
|
239
|
+
"{{count}} org units_0": "",
|
|
240
|
+
"{{count}} levels_0": "",
|
|
241
|
+
"{{count}} groups_0": "",
|
|
242
242
|
"Selected: {{commaSeparatedListOfOrganisationUnits}}": "已选择:{{commaSeparatedListOfOrganisationUnits}}",
|
|
243
243
|
"Nothing selected": "未选择任何内容",
|
|
244
244
|
"User organisation unit": "用户所在机构",
|
|
@@ -467,6 +467,6 @@
|
|
|
467
467
|
"Target": "目标",
|
|
468
468
|
"Base": "基",
|
|
469
469
|
"Axis {{axisId}}": "轴{{axisId}}",
|
|
470
|
-
"{{count}}
|
|
470
|
+
"{{count}} items_0": "",
|
|
471
471
|
"Reset zoom": ""
|
|
472
472
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import debounce from 'lodash/debounce';
|
|
2
|
-
import { useState,
|
|
2
|
+
import { useState, useMemo, useEffect } from 'react';
|
|
3
3
|
export const useScrollPosition = (containerRef, debounceWait = 10) => {
|
|
4
4
|
const [scrollPosition, setScrollPosition] = useState({
|
|
5
5
|
x: 0,
|
|
6
6
|
y: 0
|
|
7
7
|
});
|
|
8
|
-
const onScroll =
|
|
8
|
+
const onScroll = useMemo(() => debounce(() => {
|
|
9
9
|
const scroll = {
|
|
10
10
|
x: containerRef.current.scrollLeft,
|
|
11
11
|
y: containerRef.current.scrollTop
|
|
12
12
|
};
|
|
13
13
|
setScrollPosition(scroll);
|
|
14
|
-
}, debounceWait));
|
|
14
|
+
}, debounceWait), [containerRef, debounceWait]);
|
|
15
15
|
useEffect(() => {
|
|
16
16
|
const currentRef = containerRef.current;
|
|
17
17
|
if (!currentRef) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/analytics",
|
|
3
|
-
"version": "29.4.
|
|
3
|
+
"version": "29.4.3",
|
|
4
4
|
"main": "./build/cjs/index.js",
|
|
5
5
|
"module": "./build/es/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -35,10 +35,8 @@
|
|
|
35
35
|
"@dhis2/cli-style": "^10.7.9",
|
|
36
36
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
37
37
|
"@dhis2/ui": "^10.12.7",
|
|
38
|
-
"@
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@storybook/react": "^8.3.6",
|
|
41
|
-
"@storybook/react-webpack5": "^8.3.6",
|
|
38
|
+
"@storybook/preset-create-react-app": "^10.3.4",
|
|
39
|
+
"@storybook/react-webpack5": "^10.3.4",
|
|
42
40
|
"@testing-library/dom": "^10.4.0",
|
|
43
41
|
"@testing-library/jest-dom": "^6.6.3",
|
|
44
42
|
"@testing-library/react": "^16.3.0",
|
|
@@ -48,8 +46,9 @@
|
|
|
48
46
|
"react": "^18.3.1",
|
|
49
47
|
"react-dom": "^18.3.1",
|
|
50
48
|
"react-scripts": "^5.0.1",
|
|
51
|
-
"storybook": "^
|
|
52
|
-
"styled-jsx": "^4.0.1"
|
|
49
|
+
"storybook": "^10.3.4",
|
|
50
|
+
"styled-jsx": "^4.0.1",
|
|
51
|
+
"eslint-plugin-storybook": "10.3.4"
|
|
53
52
|
},
|
|
54
53
|
"peerDependencies": {
|
|
55
54
|
"@dhis2/app-runtime": "^3",
|