@dhis2/analytics 26.6.6 → 26.6.8

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.
@@ -1,74 +1,74 @@
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": "",
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
8
  "No description": "ບໍ່ມີລາຍລະອຽດ",
9
9
  "Last updated {{time}}": "ແກ້ໄຂລ່າສຸດ {{time}}",
10
- "Created {{time}} by {{author}}": "",
11
- "Created {{time}}": "",
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": "",
18
- "About this map": "",
19
- "About this line list": "",
20
- "About this visualization": "",
21
- "This app could not retrieve required data.": "",
10
+ "Created {{time}} by {{author}}": "ສ້າງ {{time}} ໂດຍ {{author}}",
11
+ "Created {{time}}": "ສ້າງ {{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": "ສະໝັກ",
18
+ "About this map": "ກ່ຽວກັບແຜນທີ່",
19
+ "About this line list": "ກ່ຽວກັບບັນຊີລາຍຊື່",
20
+ "About this visualization": "ກ່ຽວກັບການສ້າງພາບຂໍ້ມູນ",
21
+ "This app could not retrieve required data.": "ແອັບນີ້ບໍ່ສາມາດດຶງຂໍ້ມູນທີ່ຕ້ອງການໄດ້",
22
22
  "Network error": "ຂໍ້ຜິດພາດທາງເຄື່ອຂ່າຍ",
23
- "Data / Edit calculation": "",
24
- "Data / New calculation": "",
23
+ "Data / Edit calculation": "ຂໍ້ມູນ / ແກ້ໄຂການຄິດໄລ່",
24
+ "Data / New calculation": "ຂໍ້ມູນ / ຄິດໄລ່ໃໝ່",
25
25
  "Remove item": "ລົບລາຍການ",
26
- "Check formula": "",
27
- "Calculation name": "",
28
- "Shown in table headers and chart axes/legends": "",
29
- "Delete calculation": "",
30
- "Cancel": "Cancel",
31
- "The calculation can only be saved with a valid formula": "",
32
- "Add a name to save this calculation": "",
33
- "Save calculation": "",
34
- "Are you sure you want to delete this calculation? It may be used by other visualizations.": "",
35
- "Yes, delete": "",
36
- "Totals only": "",
37
- "Details only": "",
26
+ "Check formula": "ກວດເບິ່ງສູດ",
27
+ "Calculation name": "ຊື່ການຄິດໄລ່",
28
+ "Shown in table headers and chart axes/legends": "ສະ​ແດງ​​ຢູ່​ເທິງຕາ​ຕະ​ລາງ​ ແລະ​ ແກນ​ແຜນ​ວາດ",
29
+ "Delete calculation": "ລົບການຄິດໄລ່",
30
+ "Cancel": "ຍົກເລີກ",
31
+ "The calculation can only be saved with a valid formula": "ການຄິດໄລ່ແມ່ນຖືກບັນທຶກດ້ວຍສູດທີ່ຖືກຕ້ອງເທົ່ານັ້ນ",
32
+ "Add a name to save this calculation": "ເພີ່ມຊື່ເພື່ບັນທຶກການຄິດໄລ່",
33
+ "Save calculation": "ບັນທຶກການຄິດໄລ່",
34
+ "Are you sure you want to delete this calculation? It may be used by other visualizations.": "ເຈົ້າແນ່ໃຈບໍ່ສິລືບຂໍ້ມູນການຄິດໄລ່ນີ້? ຂໍ້ມູນດັ້ງກ່າວອາດຈະຖືກນໍາໃຊ້ໃນການສ້າງພາບຂໍ້ມູນໃໝ່ກໍ່ເປັນໄດ້",
35
+ "Yes, delete": "ຢືນຢັນ, ລົບ",
36
+ "Totals only": "ທັງໝົດເທົ່ານັ້ນ",
37
+ "Details only": "ລາຍລະອຽດເທົ່ານັ້ນ",
38
38
  "Loading": "ກໍາລັງໂຫຼດ",
39
39
  "Data elements": "ອົງປະກອບຂໍ້ມູນ",
40
- "Search by data element name": "",
41
- "No data elements found for \"{{- searchTerm}}\"": "",
42
- "No data elements found": "",
43
- "Drag items here, or double click in the list, to start building a calculation formula": "",
40
+ "Search by data element name": "ຄົ້ນຫາໂດຍຊື່ອົງປະກອບຂໍ້ມູນ",
41
+ "No data elements found for \"{{- searchTerm}}\"": "ບໍ່ພົບອົງປະກອບຂໍ້ມູນຂອງ \"{{- searchTerm}}\"",
42
+ "No data elements found": "ບໍ່ພົບອົງປະກອບຂໍ໊ມູນ",
43
+ "Drag items here, or double click in the list, to start building a calculation formula": "ລາກລາຍການມາບ່ອນນີ້, ຫຼືຄລິກສອງເທື່ອໃນລາຍການເພື່ອສ້າງສູດການຄິດໄລ່",
44
44
  "Math operators": "",
45
- "Data Type": "",
46
- "Only {{dataType}} can be used in {{visType}}": "",
47
- "All types": "",
45
+ "Data Type": "ຊະນິດຂໍ້ມູນ",
46
+ "Only {{dataType}} can be used in {{visType}}": "ມີພຽງ {{dataType}} ທີສາມາດໃຊ້ໃນ {{visType}}",
47
+ "All types": "ທຸກຊະນິດ",
48
48
  "Disaggregation": "Disaggregation",
49
49
  "No data": "ບໍ່ມີຂໍ້ມູນ",
50
- "Search by data item name": "",
51
- "No items selected": "",
52
- "Selected Items": "",
53
- "No indicators found": "",
54
- "No data sets found": "",
55
- "No event data items found": "",
56
- "No program indicators found": "",
57
- "No calculations found": "",
58
- "No indicators found for \"{{- searchTerm}}\"": "",
59
- "No data sets found for \"{{- searchTerm}}\"": "",
60
- "No event data items found for \"{{- searchTerm}}\"": "",
61
- "No program indicators found for \"{{- searchTerm}}\"": "",
62
- "No calculations found for \"{{- searchTerm}}\"": "",
63
- "Nothing found for \"{{- searchTerm}}\"": "",
64
- "Calculation": "",
50
+ "Search by data item name": "ຄົ້ນຫາໂດຍຊື່ລາຍການຂໍ້ມູນ",
51
+ "No items selected": "ບໍ່ມີລາຍການທີ່ຖືກເລືອກ",
52
+ "Selected Items": "ລາຍການທີ່ເລືອກ",
53
+ "No indicators found": "ບໍ່ພົບຕົວຊີ້ວັດ",
54
+ "No data sets found": "ບໍ່ພົບຊຸດຂໍ້ມູນ",
55
+ "No event data items found": "ບໍ່ພົບຂໍ້ມູນເຫດການ",
56
+ "No program indicators found": "ບໍ່ພົບໂປຼແກຼມຕົວຊີ້ວັດ",
57
+ "No calculations found": "ບໍ່ພົບການຄິດໄລ່",
58
+ "No indicators found for \"{{- searchTerm}}\"": "ບໍ່ພົບຕົວຊີ້ວັດສຳລັບ \"{{- searchTerm}}\"",
59
+ "No data sets found for \"{{- searchTerm}}\"": "ບໍ່ພົບຊຸດຂໍ້ມູນສຳລັບ \"{{- searchTerm}}\"",
60
+ "No event data items found for \"{{- searchTerm}}\"": "ບໍ່ພົບຂໍ້ມູນເຫດການສຳລັບ \"{{- searchTerm}}\"",
61
+ "No program indicators found for \"{{- searchTerm}}\"": "ບໍ່ພົບໂປຼແກຼມຕົວຊີ້ວັດສຳລັບ \"{{- searchTerm}}\"",
62
+ "No calculations found for \"{{- searchTerm}}\"": "ບໍ່ພົບການຄິດໄລ່ສຳລັບ \"{{- serachTerm}}\"",
63
+ "Nothing found for \"{{- searchTerm}}\"": "ບໍ່ພົບຫຍັງສຳລັບ \"{{- searchTerm}}\"",
64
+ "Calculation": "ການຄິດໄລ່",
65
65
  "Metric type": "",
66
66
  "All metrics": "ທຸກການປັບປຸງ",
67
- "Move to {{axisName}}": "",
68
- "Add to {{axisName}}": "",
69
- "Not available for {{visualizationType}}": "",
70
- "Remove Assigned Categories": "",
71
- "Add Assigned Categories": "",
67
+ "Move to {{axisName}}": "ຍ້າຍໄປ {{axisName}}",
68
+ "Add to {{axisName}}": "ເພີ່ມໃສ່ {{axisName}}",
69
+ "Not available for {{visualizationType}}": "ບໍ່ມີສໍາລັບ {{visualizationType}}",
70
+ "Remove Assigned Categories": "ລົບກຸ່ມທີ່ຖືກມອບໝາຍ",
71
+ "Add Assigned Categories": "ເພີ່ມກຸ່ມທີ່ຖືກມອບໝາຍ",
72
72
  "Remove": "ລົບອອກ",
73
73
  "Filter dimensions": "",
74
74
  "Main dimensions": "",
@@ -372,7 +372,15 @@ class PivotTableEngine {
372
372
  return undefined;
373
373
  }
374
374
  const cellValue = this.data[row][column];
375
- if (cellValue && !Array.isArray(cellValue)) {
375
+ if (!cellValue) {
376
+ // Empty cell
377
+ // The cell still needs to get the valueType to render correctly 0 and cumulative values
378
+ return {
379
+ valueType: _valueTypes.VALUE_TYPE_NUMBER,
380
+ totalAggregationType: _pivotTableConstants.AGGREGATE_TYPE_SUM
381
+ };
382
+ }
383
+ if (!Array.isArray(cellValue)) {
376
384
  // This is a total cell
377
385
  return {
378
386
  valueType: cellValue.valueType,
@@ -399,11 +407,6 @@ class PivotTableEngine {
399
407
  };
400
408
  }
401
409
 
402
- // Empty cell
403
- // The cell still needs to get the valueType to render correctly 0 and cumulative values
404
- //
405
- // OR
406
- //
407
410
  // Data is in Filter
408
411
  // TODO : This assumes the server ignores text types, we should confirm this is the case
409
412
  return {
@@ -1,74 +1,74 @@
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": "",
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
8
  "No description": "ບໍ່ມີລາຍລະອຽດ",
9
9
  "Last updated {{time}}": "ແກ້ໄຂລ່າສຸດ {{time}}",
10
- "Created {{time}} by {{author}}": "",
11
- "Created {{time}}": "",
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": "",
18
- "About this map": "",
19
- "About this line list": "",
20
- "About this visualization": "",
21
- "This app could not retrieve required data.": "",
10
+ "Created {{time}} by {{author}}": "ສ້າງ {{time}} ໂດຍ {{author}}",
11
+ "Created {{time}}": "ສ້າງ {{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": "ສະໝັກ",
18
+ "About this map": "ກ່ຽວກັບແຜນທີ່",
19
+ "About this line list": "ກ່ຽວກັບບັນຊີລາຍຊື່",
20
+ "About this visualization": "ກ່ຽວກັບການສ້າງພາບຂໍ້ມູນ",
21
+ "This app could not retrieve required data.": "ແອັບນີ້ບໍ່ສາມາດດຶງຂໍ້ມູນທີ່ຕ້ອງການໄດ້",
22
22
  "Network error": "ຂໍ້ຜິດພາດທາງເຄື່ອຂ່າຍ",
23
- "Data / Edit calculation": "",
24
- "Data / New calculation": "",
23
+ "Data / Edit calculation": "ຂໍ້ມູນ / ແກ້ໄຂການຄິດໄລ່",
24
+ "Data / New calculation": "ຂໍ້ມູນ / ຄິດໄລ່ໃໝ່",
25
25
  "Remove item": "ລົບລາຍການ",
26
- "Check formula": "",
27
- "Calculation name": "",
28
- "Shown in table headers and chart axes/legends": "",
29
- "Delete calculation": "",
30
- "Cancel": "Cancel",
31
- "The calculation can only be saved with a valid formula": "",
32
- "Add a name to save this calculation": "",
33
- "Save calculation": "",
34
- "Are you sure you want to delete this calculation? It may be used by other visualizations.": "",
35
- "Yes, delete": "",
36
- "Totals only": "",
37
- "Details only": "",
26
+ "Check formula": "ກວດເບິ່ງສູດ",
27
+ "Calculation name": "ຊື່ການຄິດໄລ່",
28
+ "Shown in table headers and chart axes/legends": "ສະ​ແດງ​​ຢູ່​ເທິງຕາ​ຕະ​ລາງ​ ແລະ​ ແກນ​ແຜນ​ວາດ",
29
+ "Delete calculation": "ລົບການຄິດໄລ່",
30
+ "Cancel": "ຍົກເລີກ",
31
+ "The calculation can only be saved with a valid formula": "ການຄິດໄລ່ແມ່ນຖືກບັນທຶກດ້ວຍສູດທີ່ຖືກຕ້ອງເທົ່ານັ້ນ",
32
+ "Add a name to save this calculation": "ເພີ່ມຊື່ເພື່ບັນທຶກການຄິດໄລ່",
33
+ "Save calculation": "ບັນທຶກການຄິດໄລ່",
34
+ "Are you sure you want to delete this calculation? It may be used by other visualizations.": "ເຈົ້າແນ່ໃຈບໍ່ສິລືບຂໍ້ມູນການຄິດໄລ່ນີ້? ຂໍ້ມູນດັ້ງກ່າວອາດຈະຖືກນໍາໃຊ້ໃນການສ້າງພາບຂໍ້ມູນໃໝ່ກໍ່ເປັນໄດ້",
35
+ "Yes, delete": "ຢືນຢັນ, ລົບ",
36
+ "Totals only": "ທັງໝົດເທົ່ານັ້ນ",
37
+ "Details only": "ລາຍລະອຽດເທົ່ານັ້ນ",
38
38
  "Loading": "ກໍາລັງໂຫຼດ",
39
39
  "Data elements": "ອົງປະກອບຂໍ້ມູນ",
40
- "Search by data element name": "",
41
- "No data elements found for \"{{- searchTerm}}\"": "",
42
- "No data elements found": "",
43
- "Drag items here, or double click in the list, to start building a calculation formula": "",
40
+ "Search by data element name": "ຄົ້ນຫາໂດຍຊື່ອົງປະກອບຂໍ້ມູນ",
41
+ "No data elements found for \"{{- searchTerm}}\"": "ບໍ່ພົບອົງປະກອບຂໍ້ມູນຂອງ \"{{- searchTerm}}\"",
42
+ "No data elements found": "ບໍ່ພົບອົງປະກອບຂໍ໊ມູນ",
43
+ "Drag items here, or double click in the list, to start building a calculation formula": "ລາກລາຍການມາບ່ອນນີ້, ຫຼືຄລິກສອງເທື່ອໃນລາຍການເພື່ອສ້າງສູດການຄິດໄລ່",
44
44
  "Math operators": "",
45
- "Data Type": "",
46
- "Only {{dataType}} can be used in {{visType}}": "",
47
- "All types": "",
45
+ "Data Type": "ຊະນິດຂໍ້ມູນ",
46
+ "Only {{dataType}} can be used in {{visType}}": "ມີພຽງ {{dataType}} ທີສາມາດໃຊ້ໃນ {{visType}}",
47
+ "All types": "ທຸກຊະນິດ",
48
48
  "Disaggregation": "Disaggregation",
49
49
  "No data": "ບໍ່ມີຂໍ້ມູນ",
50
- "Search by data item name": "",
51
- "No items selected": "",
52
- "Selected Items": "",
53
- "No indicators found": "",
54
- "No data sets found": "",
55
- "No event data items found": "",
56
- "No program indicators found": "",
57
- "No calculations found": "",
58
- "No indicators found for \"{{- searchTerm}}\"": "",
59
- "No data sets found for \"{{- searchTerm}}\"": "",
60
- "No event data items found for \"{{- searchTerm}}\"": "",
61
- "No program indicators found for \"{{- searchTerm}}\"": "",
62
- "No calculations found for \"{{- searchTerm}}\"": "",
63
- "Nothing found for \"{{- searchTerm}}\"": "",
64
- "Calculation": "",
50
+ "Search by data item name": "ຄົ້ນຫາໂດຍຊື່ລາຍການຂໍ້ມູນ",
51
+ "No items selected": "ບໍ່ມີລາຍການທີ່ຖືກເລືອກ",
52
+ "Selected Items": "ລາຍການທີ່ເລືອກ",
53
+ "No indicators found": "ບໍ່ພົບຕົວຊີ້ວັດ",
54
+ "No data sets found": "ບໍ່ພົບຊຸດຂໍ້ມູນ",
55
+ "No event data items found": "ບໍ່ພົບຂໍ້ມູນເຫດການ",
56
+ "No program indicators found": "ບໍ່ພົບໂປຼແກຼມຕົວຊີ້ວັດ",
57
+ "No calculations found": "ບໍ່ພົບການຄິດໄລ່",
58
+ "No indicators found for \"{{- searchTerm}}\"": "ບໍ່ພົບຕົວຊີ້ວັດສຳລັບ \"{{- searchTerm}}\"",
59
+ "No data sets found for \"{{- searchTerm}}\"": "ບໍ່ພົບຊຸດຂໍ້ມູນສຳລັບ \"{{- searchTerm}}\"",
60
+ "No event data items found for \"{{- searchTerm}}\"": "ບໍ່ພົບຂໍ້ມູນເຫດການສຳລັບ \"{{- searchTerm}}\"",
61
+ "No program indicators found for \"{{- searchTerm}}\"": "ບໍ່ພົບໂປຼແກຼມຕົວຊີ້ວັດສຳລັບ \"{{- searchTerm}}\"",
62
+ "No calculations found for \"{{- searchTerm}}\"": "ບໍ່ພົບການຄິດໄລ່ສຳລັບ \"{{- serachTerm}}\"",
63
+ "Nothing found for \"{{- searchTerm}}\"": "ບໍ່ພົບຫຍັງສຳລັບ \"{{- searchTerm}}\"",
64
+ "Calculation": "ການຄິດໄລ່",
65
65
  "Metric type": "",
66
66
  "All metrics": "ທຸກການປັບປຸງ",
67
- "Move to {{axisName}}": "",
68
- "Add to {{axisName}}": "",
69
- "Not available for {{visualizationType}}": "",
70
- "Remove Assigned Categories": "",
71
- "Add Assigned Categories": "",
67
+ "Move to {{axisName}}": "ຍ້າຍໄປ {{axisName}}",
68
+ "Add to {{axisName}}": "ເພີ່ມໃສ່ {{axisName}}",
69
+ "Not available for {{visualizationType}}": "ບໍ່ມີສໍາລັບ {{visualizationType}}",
70
+ "Remove Assigned Categories": "ລົບກຸ່ມທີ່ຖືກມອບໝາຍ",
71
+ "Add Assigned Categories": "ເພີ່ມກຸ່ມທີ່ຖືກມອບໝາຍ",
72
72
  "Remove": "ລົບອອກ",
73
73
  "Filter dimensions": "",
74
74
  "Main dimensions": "",
@@ -365,7 +365,15 @@ export class PivotTableEngine {
365
365
  return undefined;
366
366
  }
367
367
  const cellValue = this.data[row][column];
368
- if (cellValue && !Array.isArray(cellValue)) {
368
+ if (!cellValue) {
369
+ // Empty cell
370
+ // The cell still needs to get the valueType to render correctly 0 and cumulative values
371
+ return {
372
+ valueType: VALUE_TYPE_NUMBER,
373
+ totalAggregationType: AGGREGATE_TYPE_SUM
374
+ };
375
+ }
376
+ if (!Array.isArray(cellValue)) {
369
377
  // This is a total cell
370
378
  return {
371
379
  valueType: cellValue.valueType,
@@ -392,11 +400,6 @@ export class PivotTableEngine {
392
400
  };
393
401
  }
394
402
 
395
- // Empty cell
396
- // The cell still needs to get the valueType to render correctly 0 and cumulative values
397
- //
398
- // OR
399
- //
400
403
  // Data is in Filter
401
404
  // TODO : This assumes the server ignores text types, we should confirm this is the case
402
405
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "26.6.6",
3
+ "version": "26.6.8",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {