@dhis2/analytics 29.4.2 → 29.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/build/cjs/__demo__/AboutAOUnit.stories.js +142 -0
  2. package/build/cjs/__demo__/PivotTable.event.stories.js +67 -2
  3. package/build/cjs/__demo__/data/event/eventou.data.json +123 -0
  4. package/build/cjs/__demo__/data/event/eventou.visualization.json +139 -0
  5. package/build/cjs/__demo__/data/event/eventstatus.data.hidena.json +122 -0
  6. package/build/cjs/__demo__/data/event/eventstatus.data.json +132 -0
  7. package/build/cjs/__demo__/data/event/eventstatus.data.org.json +117 -0
  8. package/build/cjs/__demo__/data/event/eventstatus.visualization.json +154 -0
  9. package/build/cjs/__demo__/data/event/integer.data.json +225 -39
  10. package/build/cjs/__demo__/data/event/integer.visualization.json +3 -1
  11. package/build/cjs/components/AboutAOUnit/AboutAOUnit.js +15 -8
  12. package/build/cjs/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
  13. package/build/cjs/index.js +8 -0
  14. package/build/cjs/locales/en/translations.json +16 -0
  15. package/build/cjs/modules/dimensions.js +68 -0
  16. package/build/cjs/modules/eventVisualization/__tests__/eventVisualization.spec.js +42 -0
  17. package/build/cjs/modules/eventVisualization/eventVisualization.js +31 -0
  18. package/build/cjs/modules/response/event/__tests__/response.spec.js +23 -0
  19. package/build/cjs/modules/response/event/response.js +25 -3
  20. package/build/es/__demo__/AboutAOUnit.stories.js +132 -0
  21. package/build/es/__demo__/PivotTable.event.stories.js +63 -1
  22. package/build/es/__demo__/data/event/eventou.data.json +123 -0
  23. package/build/es/__demo__/data/event/eventou.visualization.json +139 -0
  24. package/build/es/__demo__/data/event/eventstatus.data.hidena.json +122 -0
  25. package/build/es/__demo__/data/event/eventstatus.data.json +132 -0
  26. package/build/es/__demo__/data/event/eventstatus.data.org.json +117 -0
  27. package/build/es/__demo__/data/event/eventstatus.visualization.json +154 -0
  28. package/build/es/__demo__/data/event/integer.data.json +225 -39
  29. package/build/es/__demo__/data/event/integer.visualization.json +3 -1
  30. package/build/es/components/AboutAOUnit/AboutAOUnit.js +16 -9
  31. package/build/es/components/AboutAOUnit/styles/AboutAOUnit.style.js +2 -2
  32. package/build/es/index.js +4 -0
  33. package/build/es/locales/en/translations.json +16 -0
  34. package/build/es/modules/dimensions.js +61 -0
  35. package/build/es/modules/eventVisualization/__tests__/eventVisualization.spec.js +40 -0
  36. package/build/es/modules/eventVisualization/eventVisualization.js +25 -0
  37. package/build/es/modules/response/event/__tests__/response.spec.js +24 -1
  38. package/build/es/modules/response/event/response.js +23 -2
  39. package/package.json +9 -7
@@ -0,0 +1,123 @@
1
+ {
2
+ "headers": [
3
+ {
4
+ "name": "A03MvHHogjR.ou",
5
+ "column": "Organisation unit",
6
+ "valueType": "ORGANISATION_UNIT",
7
+ "type": "org.hisp.dhis.organisationunit.OrganisationUnit",
8
+ "hidden": false,
9
+ "meta": true
10
+ },
11
+ {
12
+ "name": "A03MvHHogjR.eventdate",
13
+ "column": "Report date",
14
+ "valueType": "DATE",
15
+ "type": "java.time.LocalDate",
16
+ "hidden": false,
17
+ "meta": true
18
+ },
19
+ {
20
+ "name": "value",
21
+ "column": "Value",
22
+ "valueType": "NUMBER",
23
+ "type": "java.lang.Double",
24
+ "hidden": false,
25
+ "meta": false
26
+ }
27
+ ],
28
+ "metaData": {
29
+ "items": {
30
+ "202510": {
31
+ "name": "202510"
32
+ },
33
+ "202511": {
34
+ "name": "202511"
35
+ },
36
+ "202512": {
37
+ "name": "202512"
38
+ },
39
+ "202601": {
40
+ "name": "202601"
41
+ },
42
+ "202602": {
43
+ "name": "202602"
44
+ },
45
+ "202603": {
46
+ "name": "202603"
47
+ },
48
+ "IpHINAT79UW": {
49
+ "name": "Child Programme"
50
+ },
51
+ "ZzYYXq4fJie": {
52
+ "name": "Baby Postnatal"
53
+ },
54
+ "USER_ORGUNIT": {
55
+ "organisationUnits": [
56
+ "ImspTQPwCqd"
57
+ ]
58
+ },
59
+ "A03MvHHogjR.ou": {
60
+ "name": "Organisation unit"
61
+ },
62
+ "ImspTQPwCqd": {
63
+ "name": "Sierra Leone"
64
+ },
65
+ "A03MvHHogjR.eventdate": {
66
+ "name": "Report date"
67
+ },
68
+ "A03MvHHogjR": {
69
+ "name": "Birth"
70
+ }
71
+ },
72
+ "dimensions": {
73
+ "A03MvHHogjR.eventdate": [
74
+ "202510",
75
+ "202511",
76
+ "202512",
77
+ "202601",
78
+ "202602",
79
+ "202603"
80
+ ],
81
+ "pe": [],
82
+ "A03MvHHogjR.ou": [
83
+ "ImspTQPwCqd"
84
+ ]
85
+ }
86
+ },
87
+ "rowContext": {},
88
+ "width": 3,
89
+ "rows": [
90
+ [
91
+ "ImspTQPwCqd",
92
+ "202510",
93
+ "973"
94
+ ],
95
+ [
96
+ "ImspTQPwCqd",
97
+ "202511",
98
+ "932"
99
+ ],
100
+ [
101
+ "ImspTQPwCqd",
102
+ "202512",
103
+ "858"
104
+ ],
105
+ [
106
+ "ImspTQPwCqd",
107
+ "202601",
108
+ "694"
109
+ ],
110
+ [
111
+ "ImspTQPwCqd",
112
+ "202602",
113
+ "629"
114
+ ],
115
+ [
116
+ "ImspTQPwCqd",
117
+ "202603",
118
+ "694"
119
+ ]
120
+ ],
121
+ "headerWidth": 3,
122
+ "height": 6
123
+ }
@@ -0,0 +1,139 @@
1
+ {
2
+ "name": "Event orgunit",
3
+ "created": "2025-07-02T10:27:50.483",
4
+ "lastUpdated": "2025-07-02T10:27:50.483",
5
+ "translations": [],
6
+ "createdBy": {
7
+ "id": "xE7jOejl9FI",
8
+ "code": null,
9
+ "name": "John Traore",
10
+ "displayName": "John Traore",
11
+ "username": "admin"
12
+ },
13
+ "favorites": [],
14
+ "lastUpdatedBy": {
15
+ "id": "xE7jOejl9FI",
16
+ "code": null,
17
+ "name": "John Traore",
18
+ "displayName": "John Traore",
19
+ "username": "admin"
20
+ },
21
+ "sharing": {
22
+ "owner": "xE7jOejl9FI",
23
+ "external": false,
24
+ "users": {},
25
+ "userGroups": {},
26
+ "public": "rw------"
27
+ },
28
+ "regressionType": "NONE",
29
+ "displayDensity": "NORMAL",
30
+ "fontSize": "NORMAL",
31
+ "sortOrder": 0,
32
+ "topLimit": 0,
33
+ "hideEmptyRows": false,
34
+ "showHierarchy": false,
35
+ "completedOnly": false,
36
+ "skipRounding": false,
37
+ "dataDimensionItems": [],
38
+ "dataElementGroupSetDimensions": [],
39
+ "organisationUnitGroupSetDimensions": [],
40
+ "categoryDimensions": [],
41
+ "categoryOptionGroupSetDimensions": [],
42
+ "attributeDimensions": [],
43
+ "programIndicatorDimensions": [],
44
+ "subscribers": [],
45
+ "digitGroupSeparator": "SPACE",
46
+ "hideEmptyRowItems": "NONE",
47
+ "hideLegend": false,
48
+ "noSpaceBetweenColumns": false,
49
+ "cumulativeValues": false,
50
+ "percentStackedValues": false,
51
+ "showData": false,
52
+ "colTotals": true,
53
+ "rowTotals": true,
54
+ "rowSubTotals": true,
55
+ "colSubTotals": true,
56
+ "hideTitle": false,
57
+ "hideSubtitle": false,
58
+ "showDimensionLabels": true,
59
+ "interpretations": [],
60
+ "program": {
61
+ "enrollmentDateLabel": "Date of enrollment",
62
+ "incidentDateLabel": "Date of birth",
63
+ "id": "IpHINAT79UW",
64
+ "name": "Child Programme"
65
+ },
66
+ "programStage": {
67
+ "executionDateLabel": "Report date",
68
+ "id": "A03MvHHogjR",
69
+ "name": "Birth"
70
+ },
71
+ "dataType": "AGGREGATED_VALUES",
72
+ "outputType": "EVENT",
73
+ "collapseDataDimensions": false,
74
+ "hideNaData": false,
75
+ "simpleDimensions": [
76
+ {
77
+ "parent": "COLUMN",
78
+ "dimension": "ou",
79
+ "values": [
80
+ "ImspTQPwCqd"
81
+ ]
82
+ }
83
+ ],
84
+ "legacy": true,
85
+ "type": "PIVOT_TABLE",
86
+ "filters": [],
87
+ "parentGraphMap": {
88
+ "ImspTQPwCqd": ""
89
+ },
90
+ "columns": [
91
+ {
92
+ "items": [
93
+ {
94
+ "name": "Sierra Leone",
95
+ "id": "ImspTQPwCqd"
96
+ }
97
+ ],
98
+ "dimension": "A03MvHHogjR.ou",
99
+ "programStage": {
100
+ "id": "A03MvHHogjR"
101
+ }
102
+ }
103
+ ],
104
+ "rows": [
105
+ {
106
+ "items": [
107
+ {
108
+ "dimensionItemType": "PERIOD",
109
+ "id": "LAST_6_MONTHS"
110
+ }
111
+ ],
112
+ "dimension": "A03MvHHogjR.eventdate",
113
+ "programStage": {
114
+ "id": "A03MvHHogjR"
115
+ }
116
+ }
117
+ ],
118
+ "displayName": "Event orgunit",
119
+ "access": {
120
+ "manage": true,
121
+ "externalize": true,
122
+ "write": true,
123
+ "read": true,
124
+ "update": true,
125
+ "delete": true
126
+ },
127
+ "user": {
128
+ "id": "xE7jOejl9FI",
129
+ "code": null,
130
+ "name": "John Traore",
131
+ "displayName": "John Traore",
132
+ "username": "admin"
133
+ },
134
+ "favorite": false,
135
+ "subscribed": false,
136
+ "displayFormName": "Event orgunit",
137
+ "id": "xLPn5T11Vd4",
138
+ "attributeValues": []
139
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "headers": [
3
+ {
4
+ "name": "A03MvHHogjR.ou",
5
+ "column": "Organisation unit",
6
+ "valueType": "ORGANISATION_UNIT",
7
+ "type": "org.hisp.dhis.organisationunit.OrganisationUnit",
8
+ "hidden": false,
9
+ "meta": true
10
+ },
11
+ {
12
+ "name": "A03MvHHogjR.eventdate",
13
+ "column": "Report date",
14
+ "valueType": "DATE",
15
+ "type": "java.time.LocalDate",
16
+ "hidden": false,
17
+ "meta": true
18
+ },
19
+ {
20
+ "name": "A03MvHHogjR.eventstatus",
21
+ "column": "Event status",
22
+ "valueType": "TEXT",
23
+ "type": "java.lang.String",
24
+ "hidden": false,
25
+ "meta": true
26
+ },
27
+ {
28
+ "name": "value",
29
+ "column": "Value",
30
+ "valueType": "NUMBER",
31
+ "type": "java.lang.Double",
32
+ "hidden": false,
33
+ "meta": false
34
+ }
35
+ ],
36
+ "metaData": {
37
+ "items": {
38
+ "202511": {
39
+ "name": "202511"
40
+ },
41
+ "202512": {
42
+ "name": "202512"
43
+ },
44
+ "202601": {
45
+ "name": "202601"
46
+ },
47
+ "ImspTQPwCqd": {
48
+ "name": "Sierra Leone"
49
+ },
50
+ "A03MvHHogjR.eventdate": {
51
+ "name": "Report date"
52
+ },
53
+ "A03MvHHogjR.eventstatus": {
54
+ "name": "Event status"
55
+ },
56
+ "A03MvHHogjR.eventstatus_ACTIVE": {
57
+ "name": "Active"
58
+ },
59
+ "IpHINAT79UW": {
60
+ "name": "Child Programme"
61
+ },
62
+ "ZzYYXq4fJie": {
63
+ "name": "Baby Postnatal"
64
+ },
65
+ "USER_ORGUNIT": {
66
+ "organisationUnits": [
67
+ "ImspTQPwCqd"
68
+ ]
69
+ },
70
+ "A03MvHHogjR": {
71
+ "name": "Birth"
72
+ },
73
+ "A03MvHHogjR.ou": {
74
+ "name": "Organisation unit"
75
+ }
76
+ },
77
+ "dimensions": {
78
+ "A03MvHHogjR.eventdate": [
79
+ "202511",
80
+ "202512",
81
+ "202601"
82
+ ],
83
+ "A03MvHHogjR.eventstatus": [
84
+ "A03MvHHogjR.eventstatus_ACTIVE"
85
+ ],
86
+ "pe": [],
87
+ "A03MvHHogjR.ou": [
88
+ "ImspTQPwCqd"
89
+ ]
90
+ }
91
+ },
92
+ "rowContext": {},
93
+ "width": 4,
94
+ "headerWidth": 4,
95
+ "height": 3,
96
+ "rows": [
97
+ [
98
+ "ImspTQPwCqd",
99
+ "202511",
100
+ "A03MvHHogjR.eventstatus_ACTIVE",
101
+ "925"
102
+ ],
103
+ [
104
+ "ImspTQPwCqd",
105
+ "202512",
106
+ "A03MvHHogjR.eventstatus_ACTIVE",
107
+ "858"
108
+ ],
109
+ [
110
+ "ImspTQPwCqd",
111
+ "202601",
112
+ "A03MvHHogjR.eventstatus_ACTIVE",
113
+ "690"
114
+ ],
115
+ [
116
+ "ImspTQPwCqd",
117
+ "202511",
118
+ "",
119
+ "12"
120
+ ]
121
+ ]
122
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "headers": [
3
+ {
4
+ "name": "A03MvHHogjR.ou",
5
+ "column": "Organisation unit",
6
+ "valueType": "ORGANISATION_UNIT",
7
+ "type": "org.hisp.dhis.organisationunit.OrganisationUnit",
8
+ "hidden": false,
9
+ "meta": true
10
+ },
11
+ {
12
+ "name": "A03MvHHogjR.eventdate",
13
+ "column": "Report date",
14
+ "valueType": "DATE",
15
+ "type": "java.time.LocalDate",
16
+ "hidden": false,
17
+ "meta": true
18
+ },
19
+ {
20
+ "name": "A03MvHHogjR.eventstatus",
21
+ "column": "Event status",
22
+ "valueType": "TEXT",
23
+ "type": "java.lang.String",
24
+ "hidden": false,
25
+ "meta": true
26
+ },
27
+ {
28
+ "name": "value",
29
+ "column": "Value",
30
+ "valueType": "NUMBER",
31
+ "type": "java.lang.Double",
32
+ "hidden": false,
33
+ "meta": false
34
+ }
35
+ ],
36
+ "metaData": {
37
+ "items": {
38
+ "202511": {
39
+ "name": "202511"
40
+ },
41
+ "202512": {
42
+ "name": "202512"
43
+ },
44
+ "202601": {
45
+ "name": "202601"
46
+ },
47
+ "ImspTQPwCqd": {
48
+ "name": "Sierra Leone"
49
+ },
50
+ "A03MvHHogjR.eventdate": {
51
+ "name": "Report date"
52
+ },
53
+ "A03MvHHogjR.eventstatus": {
54
+ "name": "Event status"
55
+ },
56
+ "A03MvHHogjR.eventstatus_ACTIVE": {
57
+ "name": "Active"
58
+ },
59
+ "IpHINAT79UW": {
60
+ "name": "Child Programme"
61
+ },
62
+ "ZzYYXq4fJie": {
63
+ "name": "Baby Postnatal"
64
+ },
65
+ "USER_ORGUNIT": {
66
+ "organisationUnits": [
67
+ "ImspTQPwCqd"
68
+ ]
69
+ },
70
+ "A03MvHHogjR": {
71
+ "name": "Birth"
72
+ },
73
+ "A03MvHHogjR.ou": {
74
+ "name": "Organisation unit"
75
+ },
76
+ "": {
77
+ "name": "No value",
78
+ "style": {
79
+ "fontStyle": "italic",
80
+ "color": "#6C7787",
81
+ "fontFamily": "monospace",
82
+ "letterSpacing": "-0.3px"
83
+ }
84
+ }
85
+ },
86
+ "dimensions": {
87
+ "A03MvHHogjR.eventdate": [
88
+ "202511",
89
+ "202512",
90
+ "202601"
91
+ ],
92
+ "A03MvHHogjR.eventstatus": [
93
+ "A03MvHHogjR.eventstatus_ACTIVE",
94
+ ""
95
+ ],
96
+ "pe": [],
97
+ "A03MvHHogjR.ou": [
98
+ "ImspTQPwCqd"
99
+ ]
100
+ }
101
+ },
102
+ "rowContext": {},
103
+ "width": 4,
104
+ "headerWidth": 4,
105
+ "height": 3,
106
+ "rows": [
107
+ [
108
+ "ImspTQPwCqd",
109
+ "202511",
110
+ "A03MvHHogjR.eventstatus_ACTIVE",
111
+ "925"
112
+ ],
113
+ [
114
+ "ImspTQPwCqd",
115
+ "202512",
116
+ "A03MvHHogjR.eventstatus_ACTIVE",
117
+ "858"
118
+ ],
119
+ [
120
+ "ImspTQPwCqd",
121
+ "202601",
122
+ "A03MvHHogjR.eventstatus_ACTIVE",
123
+ "690"
124
+ ],
125
+ [
126
+ "ImspTQPwCqd",
127
+ "202511",
128
+ "",
129
+ "12"
130
+ ]
131
+ ]
132
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "headers": [
3
+ {
4
+ "name": "A03MvHHogjR.ou",
5
+ "column": "Organisation unit",
6
+ "valueType": "ORGANISATION_UNIT",
7
+ "type": "org.hisp.dhis.organisationunit.OrganisationUnit",
8
+ "hidden": false,
9
+ "meta": true
10
+ },
11
+ {
12
+ "name": "A03MvHHogjR.eventdate",
13
+ "column": "Report date",
14
+ "valueType": "DATE",
15
+ "type": "java.time.LocalDate",
16
+ "hidden": false,
17
+ "meta": true
18
+ },
19
+ {
20
+ "name": "A03MvHHogjR.eventstatus",
21
+ "column": "Event status",
22
+ "valueType": "TEXT",
23
+ "type": "java.lang.String",
24
+ "hidden": false,
25
+ "meta": true
26
+ },
27
+ {
28
+ "name": "value",
29
+ "column": "Value",
30
+ "valueType": "NUMBER",
31
+ "type": "java.lang.Double",
32
+ "hidden": false,
33
+ "meta": false
34
+ }
35
+ ],
36
+ "metaData": {
37
+ "items": {
38
+ "202511": {
39
+ "name": "202511"
40
+ },
41
+ "202512": {
42
+ "name": "202512"
43
+ },
44
+ "202601": {
45
+ "name": "202601"
46
+ },
47
+ "ImspTQPwCqd": {
48
+ "name": "Sierra Leone"
49
+ },
50
+ "A03MvHHogjR.eventdate": {
51
+ "name": "Report date"
52
+ },
53
+ "A03MvHHogjR.eventstatus": {
54
+ "name": "Event status"
55
+ },
56
+ "IpHINAT79UW": {
57
+ "name": "Child Programme"
58
+ },
59
+ "ZzYYXq4fJie": {
60
+ "name": "Baby Postnatal"
61
+ },
62
+ "USER_ORGUNIT": {
63
+ "organisationUnits": [
64
+ "ImspTQPwCqd"
65
+ ]
66
+ },
67
+ "A03MvHHogjR": {
68
+ "name": "Birth"
69
+ },
70
+ "A03MvHHogjR.ou": {
71
+ "name": "Organisation unit"
72
+ }
73
+ },
74
+ "dimensions": {
75
+ "A03MvHHogjR.eventdate": [
76
+ "202511",
77
+ "202512",
78
+ "202601"
79
+ ],
80
+ "A03MvHHogjR.eventstatus": [],
81
+ "pe": [],
82
+ "A03MvHHogjR.ou": [
83
+ "ImspTQPwCqd"
84
+ ]
85
+ }
86
+ },
87
+ "rowContext": {},
88
+ "width": 4,
89
+ "headerWidth": 4,
90
+ "height": 3,
91
+ "rows": [
92
+ [
93
+ "ImspTQPwCqd",
94
+ "202511",
95
+ "ACTIVE",
96
+ "925"
97
+ ],
98
+ [
99
+ "ImspTQPwCqd",
100
+ "202512",
101
+ "ACTIVE",
102
+ "858"
103
+ ],
104
+ [
105
+ "ImspTQPwCqd",
106
+ "202601",
107
+ "ACTIVE",
108
+ "690"
109
+ ],
110
+ [
111
+ "ImspTQPwCqd",
112
+ "202511",
113
+ "",
114
+ "12"
115
+ ]
116
+ ]
117
+ }