@dhis2/analytics 21.0.3 → 21.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/build/cjs/api/analytics/AnalyticsRequest.js +6 -2
  3. package/build/cjs/api/analytics/AnalyticsRequestDimensionsMixin.js +6 -2
  4. package/build/cjs/api/analytics/__tests__/AnalyticsRequest.spec.js +1 -2
  5. package/build/cjs/locales/ar/translations.json +47 -0
  6. package/build/cjs/locales/ar_EG/translations.json +47 -0
  7. package/build/cjs/locales/ar_IQ/translations.json +47 -0
  8. package/build/cjs/locales/ckb/translations.json +31 -0
  9. package/build/cjs/locales/cs/translations.json +39 -0
  10. package/build/cjs/locales/da/translations.json +31 -0
  11. package/build/cjs/locales/es/translations.json +31 -0
  12. package/build/cjs/locales/fr/translations.json +32 -1
  13. package/build/cjs/locales/id/translations.json +27 -0
  14. package/build/cjs/locales/km/translations.json +27 -0
  15. package/build/cjs/locales/lo/translations.json +27 -0
  16. package/build/cjs/locales/my/translations.json +27 -0
  17. package/build/cjs/locales/nb/translations.json +31 -0
  18. package/build/cjs/locales/nl/translations.json +32 -1
  19. package/build/cjs/locales/prs/translations.json +31 -0
  20. package/build/cjs/locales/ps/translations.json +31 -0
  21. package/build/cjs/locales/pt/translations.json +31 -0
  22. package/build/cjs/locales/pt_BR/translations.json +31 -0
  23. package/build/cjs/locales/ru/translations.json +39 -0
  24. package/build/cjs/locales/sv/translations.json +31 -0
  25. package/build/cjs/locales/tet/translations.json +27 -0
  26. package/build/cjs/locales/tg/translations.json +31 -0
  27. package/build/cjs/locales/uk/translations.json +39 -0
  28. package/build/cjs/locales/ur/translations.json +31 -0
  29. package/build/cjs/locales/uz/translations.json +27 -0
  30. package/build/cjs/locales/uz_Latn/translations.json +27 -0
  31. package/build/cjs/locales/vi/translations.json +27 -0
  32. package/build/cjs/locales/zh/translations.json +27 -0
  33. package/build/cjs/locales/zh_CN/translations.json +27 -0
  34. package/build/cjs/modules/layout/dimension.js +9 -2
  35. package/build/cjs/modules/layout/dimensionCreate.js +14 -6
  36. package/build/es/api/analytics/AnalyticsRequest.js +6 -2
  37. package/build/es/api/analytics/AnalyticsRequestDimensionsMixin.js +6 -2
  38. package/build/es/api/analytics/__tests__/AnalyticsRequest.spec.js +1 -2
  39. package/build/es/locales/ar/translations.json +47 -0
  40. package/build/es/locales/ar_EG/translations.json +47 -0
  41. package/build/es/locales/ar_IQ/translations.json +47 -0
  42. package/build/es/locales/ckb/translations.json +31 -0
  43. package/build/es/locales/cs/translations.json +39 -0
  44. package/build/es/locales/da/translations.json +31 -0
  45. package/build/es/locales/es/translations.json +31 -0
  46. package/build/es/locales/fr/translations.json +32 -1
  47. package/build/es/locales/id/translations.json +27 -0
  48. package/build/es/locales/km/translations.json +27 -0
  49. package/build/es/locales/lo/translations.json +27 -0
  50. package/build/es/locales/my/translations.json +27 -0
  51. package/build/es/locales/nb/translations.json +31 -0
  52. package/build/es/locales/nl/translations.json +32 -1
  53. package/build/es/locales/prs/translations.json +31 -0
  54. package/build/es/locales/ps/translations.json +31 -0
  55. package/build/es/locales/pt/translations.json +31 -0
  56. package/build/es/locales/pt_BR/translations.json +31 -0
  57. package/build/es/locales/ru/translations.json +39 -0
  58. package/build/es/locales/sv/translations.json +31 -0
  59. package/build/es/locales/tet/translations.json +27 -0
  60. package/build/es/locales/tg/translations.json +31 -0
  61. package/build/es/locales/uk/translations.json +39 -0
  62. package/build/es/locales/ur/translations.json +31 -0
  63. package/build/es/locales/uz/translations.json +27 -0
  64. package/build/es/locales/uz_Latn/translations.json +27 -0
  65. package/build/es/locales/vi/translations.json +27 -0
  66. package/build/es/locales/zh/translations.json +27 -0
  67. package/build/es/locales/zh_CN/translations.json +27 -0
  68. package/build/es/modules/layout/dimension.js +7 -1
  69. package/build/es/modules/layout/dimensionCreate.js +15 -7
  70. package/package.json +1 -1
@@ -1,4 +1,20 @@
1
1
  {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "Тавсиф йўқ",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times": "",
13
+ "Notifications": "Билдиришномалар",
14
+ "You're subscribed and getting updates about new interpretations.": "",
15
+ "Unsubscribe": "",
16
+ "Subscribe to get updates about new interpretations.": "",
17
+ "Subscribe": "",
2
18
  "Data Type": "Маълумот тури",
3
19
  "All types": "Барча турлари",
4
20
  "Totals only": "",
@@ -101,6 +117,17 @@
101
117
  "Options": "Вариант",
102
118
  "Hide": "Беркитиш",
103
119
  "Update": "Янгилаш",
120
+ "{{count}} org units": "",
121
+ "{{count}} levels": "",
122
+ "{{count}} groups": "",
123
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
124
+ "Nothing selected": "",
125
+ "User organisation unit": "Ташкилий бўлим фойдаланувчиси",
126
+ "User sub-units": "Фойдаланувчига бўйсунувчи бирликлар",
127
+ "User sub-x2-units": "Фойдаланувчига бўйсунувчи 2 поғонадаги бўлимлар",
128
+ "Select a level": "Поғонани танланг",
129
+ "Select a group": "Гуруҳни танланг",
130
+ "Deselect all": "Барча танланганни бекор қилиш",
104
131
  "Period type": "Давр тури",
105
132
  "Year": "Йил",
106
133
  "Select year": "Йилни танланг",
@@ -1,4 +1,20 @@
1
1
  {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "Tavsif yoʼq",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times": "",
13
+ "Notifications": "",
14
+ "You're subscribed and getting updates about new interpretations.": "",
15
+ "Unsubscribe": "",
16
+ "Subscribe to get updates about new interpretations.": "",
17
+ "Subscribe": "",
2
18
  "Data Type": "Maʼlumot turi",
3
19
  "All types": "Barcha turlari",
4
20
  "Totals only": "",
@@ -101,6 +117,17 @@
101
117
  "Options": "Вариант",
102
118
  "Hide": "Berkitish",
103
119
  "Update": "Янгилаш",
120
+ "{{count}} org units": "",
121
+ "{{count}} levels": "",
122
+ "{{count}} groups": "",
123
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
124
+ "Nothing selected": "",
125
+ "User organisation unit": "Ташкилий бўлим фойдаланувчиси",
126
+ "User sub-units": "Фойдаланувчига бўйсунувчи бирликлар",
127
+ "User sub-x2-units": "Фойдаланувчига бўйсунувчи 2 даражали бирликлар",
128
+ "Select a level": "Pogʼonani tanlang",
129
+ "Select a group": "Guruhni tanlang",
130
+ "Deselect all": "Barcha tanlanganni bekor qilish",
104
131
  "Period type": "Davr turi",
105
132
  "Year": "Yil",
106
133
  "Select year": "Yilni tanlang",
@@ -1,4 +1,20 @@
1
1
  {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "Không mô tả",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times": "",
13
+ "Notifications": "",
14
+ "You're subscribed and getting updates about new interpretations.": "",
15
+ "Unsubscribe": "",
16
+ "Subscribe to get updates about new interpretations.": "",
17
+ "Subscribe": "",
2
18
  "Data Type": "Loại dữ liệu",
3
19
  "All types": "Các loại",
4
20
  "Totals only": "",
@@ -101,6 +117,17 @@
101
117
  "Options": "Tùy chọn",
102
118
  "Hide": "Ẩn",
103
119
  "Update": "Cập nhật",
120
+ "{{count}} org units": "",
121
+ "{{count}} levels": "",
122
+ "{{count}} groups": "",
123
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
124
+ "Nothing selected": "",
125
+ "User organisation unit": "Đơn vị người dùng",
126
+ "User sub-units": "Đơn-vị-con người dùng",
127
+ "User sub-x2-units": "Đơn-vị-con-x2 người dùng",
128
+ "Select a level": "Chọn mức",
129
+ "Select a group": "Chọn nhóm",
130
+ "Deselect all": "Bỏ chọn tất cả",
104
131
  "Period type": "Loại thời điểm",
105
132
  "Year": "Năm",
106
133
  "Select year": "Chọn năm",
@@ -1,4 +1,20 @@
1
1
  {
2
+ "view only": "只读",
3
+ "view and edit": "查看和编辑",
4
+ "all users ({{accessLevel}})": "所有用户 ({{accessLevel}})",
5
+ "{{userOrGroup}} ({{accessLevel}})": "{{userOrGroup}} ({{accessLevel}})",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "与 {{commaSeparatedListOfUsersAndGroups}} 共享",
7
+ "Not shared with any users or groups": "不与任何用户或组共享",
8
+ "About this visualization": "关于此可视化",
9
+ "No description": "无描述",
10
+ "Last updated {{time}}": "最后更新 {{time}}",
11
+ "Created {{time}} by {{author}}": "由 {{author}} 在 {{time}} 创建",
12
+ "Viewed {{count}} times": "查看了 {{count}} 次",
13
+ "Notifications": "通知",
14
+ "You're subscribed and getting updates about new interpretations.": "您已订阅并获取有关新解释的更新。",
15
+ "Unsubscribe": "退订",
16
+ "Subscribe to get updates about new interpretations.": "订阅以获取有关新解释的更新。",
17
+ "Subscribe": "订阅",
2
18
  "Data Type": "数据类型",
3
19
  "All types": "所有类型",
4
20
  "Totals only": "总计",
@@ -101,6 +117,17 @@
101
117
  "Options": "选项",
102
118
  "Hide": "隐藏",
103
119
  "Update": "更新",
120
+ "{{count}} org units": "{{count}} 个组织单位",
121
+ "{{count}} levels": "{{count}} 级",
122
+ "{{count}} groups": "{{count}} 组",
123
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "已选择:{{commaSeparatedListOfOrganisationUnits}}",
124
+ "Nothing selected": "未选择任何内容",
125
+ "User organisation unit": "用户所在机构",
126
+ "User sub-units": "我的下属机构",
127
+ "User sub-x2-units": "该用户2级下属机构",
128
+ "Select a level": "选择一个等级",
129
+ "Select a group": "选择一个组",
130
+ "Deselect all": "取消全选",
104
131
  "Period type": "周期类型",
105
132
  "Year": "年",
106
133
  "Select year": "选择年份",
@@ -1,4 +1,20 @@
1
1
  {
2
+ "view only": "",
3
+ "view and edit": "",
4
+ "all users ({{accessLevel}})": "",
5
+ "{{userOrGroup}} ({{accessLevel}})": "",
6
+ "Shared with {{commaSeparatedListOfUsersAndGroups}}": "",
7
+ "Not shared with any users or groups": "",
8
+ "About this visualization": "",
9
+ "No description": "没有描述",
10
+ "Last updated {{time}}": "",
11
+ "Created {{time}} by {{author}}": "",
12
+ "Viewed {{count}} times": "",
13
+ "Notifications": "通知",
14
+ "You're subscribed and getting updates about new interpretations.": "",
15
+ "Unsubscribe": "",
16
+ "Subscribe to get updates about new interpretations.": "",
17
+ "Subscribe": "",
2
18
  "Data Type": "",
3
19
  "All types": "",
4
20
  "Totals only": "",
@@ -101,6 +117,17 @@
101
117
  "Options": "选项",
102
118
  "Hide": "隐藏",
103
119
  "Update": "更新",
120
+ "{{count}} org units": "",
121
+ "{{count}} levels": "",
122
+ "{{count}} groups": "",
123
+ "Selected: {{commaSeparatedListOfOrganisationUnits}}": "",
124
+ "Nothing selected": "",
125
+ "User organisation unit": "用户所在机构",
126
+ "User sub-units": "下属机构",
127
+ "User sub-x2-units": "二级下属机构",
128
+ "Select a level": "",
129
+ "Select a group": "",
130
+ "Deselect all": "去全选",
104
131
  "Period type": "周期类型",
105
132
  "Year": "年",
106
133
  "Select year": "选择年份",
@@ -17,4 +17,10 @@ export const DIMENSION_PROP_ITEMS = {
17
17
  required: false,
18
18
  isValid: prop => Array.isArray(prop)
19
19
  };
20
- export const DIMENSION_PROPS = [DIMENSION_PROP_ID, DIMENSION_PROP_ITEMS];
20
+ export const DIMENSION_PROP_FILTER = {
21
+ name: 'filter',
22
+ defaultValue: [],
23
+ required: false,
24
+ isValid: prop => isString(prop)
25
+ };
26
+ export const DIMENSION_PROPS = [DIMENSION_PROP_ID, DIMENSION_PROP_ITEMS, DIMENSION_PROP_FILTER];
@@ -1,7 +1,15 @@
1
- import { DIMENSION_PROP_ID, DIMENSION_PROP_ITEMS } from './dimension';
2
- export const dimensionCreate = (dimensionId, itemIds = []) => ({
3
- [DIMENSION_PROP_ID.name]: dimensionId,
4
- [DIMENSION_PROP_ITEMS.name]: itemIds.map(id => ({
5
- id
6
- }))
7
- });
1
+ import { DIMENSION_PROP_ID, DIMENSION_PROP_ITEMS, DIMENSION_PROP_FILTER } from './dimension';
2
+ export const dimensionCreate = (dimensionId, itemIds = [], args = {}) => {
3
+ const dimension = {
4
+ [DIMENSION_PROP_ID.name]: dimensionId,
5
+ ...(itemIds.length && {
6
+ [DIMENSION_PROP_ITEMS.name]: itemIds.map(id => ({
7
+ id
8
+ }))
9
+ }),
10
+ ...(args.filter && {
11
+ [DIMENSION_PROP_FILTER.name]: args.filter
12
+ })
13
+ };
14
+ return dimension;
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "21.0.3",
3
+ "version": "21.0.7",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {