@openmrs/esm-fast-data-entry-app 1.0.1-pre.10 → 1.0.1-pre.102

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 (118) hide show
  1. package/README.md +21 -2
  2. package/dist/153.js +1 -0
  3. package/dist/153.js.map +1 -0
  4. package/dist/233.js +2 -0
  5. package/dist/233.js.LICENSE.txt +9 -0
  6. package/dist/233.js.map +1 -0
  7. package/dist/262.js +1 -0
  8. package/dist/262.js.map +1 -0
  9. package/dist/279.js +1 -0
  10. package/dist/279.js.map +1 -0
  11. package/dist/294.js +2 -0
  12. package/dist/294.js.LICENSE.txt +9 -0
  13. package/dist/294.js.map +1 -0
  14. package/dist/319.js +1 -0
  15. package/dist/327.js +1 -0
  16. package/dist/327.js.map +1 -0
  17. package/dist/409.js +2 -0
  18. package/dist/409.js.LICENSE.txt +27 -0
  19. package/dist/409.js.map +1 -0
  20. package/dist/415.js +1 -0
  21. package/dist/415.js.map +1 -0
  22. package/dist/559.js +1 -0
  23. package/dist/559.js.map +1 -0
  24. package/dist/574.js +1 -0
  25. package/dist/651.js +1 -0
  26. package/dist/651.js.map +1 -0
  27. package/dist/706.js +1 -0
  28. package/dist/706.js.map +1 -0
  29. package/dist/757.js +1 -0
  30. package/dist/788.js +1 -0
  31. package/dist/800.js +2 -0
  32. package/dist/800.js.LICENSE.txt +5 -0
  33. package/dist/800.js.map +1 -0
  34. package/dist/807.js +1 -0
  35. package/dist/820.js +1 -0
  36. package/dist/820.js.map +1 -0
  37. package/dist/833.js +1 -0
  38. package/dist/883.js +1 -0
  39. package/dist/883.js.map +1 -0
  40. package/dist/889.js +1 -0
  41. package/dist/889.js.map +1 -0
  42. package/dist/897.js +2 -0
  43. package/dist/897.js.LICENSE.txt +21 -0
  44. package/dist/897.js.map +1 -0
  45. package/dist/92.js +1 -0
  46. package/dist/92.js.map +1 -0
  47. package/dist/935.js +2 -0
  48. package/dist/935.js.LICENSE.txt +19 -0
  49. package/dist/935.js.map +1 -0
  50. package/dist/959.js +1 -0
  51. package/dist/959.js.map +1 -0
  52. package/dist/main.js +1 -0
  53. package/dist/main.js.map +1 -0
  54. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  55. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +742 -0
  56. package/dist/openmrs-esm-fast-data-entry-app.js.map +1 -0
  57. package/dist/routes.json +1 -0
  58. package/jest.config.json +2 -1
  59. package/package.json +13 -10
  60. package/src/CancelModal.tsx +48 -0
  61. package/src/CompleteModal.tsx +46 -0
  62. package/src/FormBootstrap.tsx +18 -3
  63. package/src/add-group-modal/AddGroupModal.tsx +113 -34
  64. package/src/add-group-modal/styles.scss +14 -4
  65. package/src/config-schema.ts +22 -0
  66. package/src/context/FormWorkflowContext.tsx +13 -1
  67. package/src/context/FormWorkflowReducer.ts +13 -3
  68. package/src/context/GroupFormWorkflowContext.tsx +41 -6
  69. package/src/context/GroupFormWorkflowReducer.ts +170 -12
  70. package/src/form-entry-workflow/FormEntryWorkflow.tsx +67 -101
  71. package/src/form-entry-workflow/styles.scss +2 -1
  72. package/src/forms-page/FormsPage.tsx +8 -3
  73. package/src/forms-page/forms-table/FormsTable.tsx +11 -5
  74. package/src/group-form-entry-workflow/GroupFormEntryWorkflow.tsx +13 -400
  75. package/src/group-form-entry-workflow/GroupSessionWorkspace.tsx +247 -0
  76. package/src/group-form-entry-workflow/SessionDetailsForm.tsx +131 -0
  77. package/src/group-form-entry-workflow/SessionMetaWorkspace.tsx +107 -0
  78. package/src/group-form-entry-workflow/attendance-table/AttendanceTable.tsx +144 -0
  79. package/src/group-form-entry-workflow/attendance-table/index.ts +1 -0
  80. package/src/group-form-entry-workflow/{group-banner/GroupBanner.test.tsx → group-display-header/GroupDisplayHeader.test.tsx} +2 -2
  81. package/src/group-form-entry-workflow/{group-banner/GroupBanner.tsx → group-display-header/GroupDisplayHeader.tsx} +23 -5
  82. package/src/group-form-entry-workflow/group-display-header/index.ts +3 -0
  83. package/src/group-form-entry-workflow/group-search/CompactGroupResults.tsx +61 -28
  84. package/src/group-form-entry-workflow/group-search/CompactGroupSearch.tsx +5 -0
  85. package/src/group-form-entry-workflow/group-search/GroupSearch.tsx +65 -8
  86. package/src/group-form-entry-workflow/group-search/group-search.scss +8 -6
  87. package/src/group-form-entry-workflow/group-search-header/GroupSearchHeader.tsx +41 -10
  88. package/src/group-form-entry-workflow/styles.scss +12 -1
  89. package/src/hooks/index.ts +1 -0
  90. package/src/hooks/useGetPatient.ts +1 -1
  91. package/src/hooks/useGetPatients.ts +34 -0
  92. package/src/hooks/useGetSystemSetting.ts +38 -0
  93. package/src/hooks/usePostEndpoint.ts +76 -0
  94. package/src/hooks/useSearchEndpoint.ts +120 -0
  95. package/src/hooks/useStartVisit.ts +92 -0
  96. package/src/index.ts +13 -65
  97. package/src/patient-card/styles.scss +1 -0
  98. package/src/routes.json +24 -0
  99. package/tools/i18next-parser.config.js +93 -0
  100. package/translations/am.json +69 -0
  101. package/translations/en.json +29 -9
  102. package/translations/es.json +69 -0
  103. package/translations/fr.json +69 -0
  104. package/translations/he.json +69 -0
  105. package/translations/km.json +69 -0
  106. package/.editorconfig +0 -12
  107. package/.eslintignore +0 -2
  108. package/.eslintrc.js +0 -10
  109. package/.husky/pre-push +0 -1
  110. package/.prettierignore +0 -14
  111. package/.tx/config +0 -9
  112. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  113. package/.yarn/versions/45b499b6.yml +0 -0
  114. package/src/group-form-entry-workflow/group-banner/index.ts +0 -3
  115. package/src/group-form-entry-workflow/group-search/mock-group-data.ts +0 -79
  116. package/src/group-form-entry-workflow/group-search/useGroupSearch.ts +0 -14
  117. package/src/hooks/usePostCohort.ts +0 -18
  118. /package/src/group-form-entry-workflow/{group-banner → group-display-header}/styles.scss +0 -0
@@ -0,0 +1,69 @@
1
+ {
2
+ "actions": "Actions",
3
+ "allFieldsRequired": "All fields are required unless marked optional",
4
+ "allForms": "All Forms",
5
+ "areYouSure": "Are you sure?",
6
+ "cancel": "Cancel",
7
+ "cancelExplanation": "You will lose any unsaved changes on the current form. Do you want to discard the current session?",
8
+ "changeGroup": "Choose a different group",
9
+ "chooseGroupError": "Please choose a group.",
10
+ "clearSearch": "Clear",
11
+ "complete": "Complete",
12
+ "createGroup": "Create Group",
13
+ "createNewGroup": "Create New Group",
14
+ "createNewPatient": "Create new patient",
15
+ "createNewSession": "Create New Session",
16
+ "discard": "Discard",
17
+ "editGroup": "Edit Group",
18
+ "error": "Error",
19
+ "errorCopy": "Sorry, there was an error. You can try to reload this page, or contact the site administrator and quote the error code above.",
20
+ "errorLoadingData": "Error Loading Data",
21
+ "fastDataEntry": "Fast Data Entry",
22
+ "fillForm": "Fill Form",
23
+ "findGroup": "Find group",
24
+ "formName": "Form Name",
25
+ "formsAppMenuLink": "Fast Data Entry",
26
+ "formsFilled": "Forms filled",
27
+ "goToForm": "Go To Form",
28
+ "groupNameError": "Please enter a group name.",
29
+ "identifier": "Patient ID",
30
+ "markAbsentPatients": "The patients in this group. Patients that are not present in the session should be marked as absent.",
31
+ "members": "members",
32
+ "name": "Name",
33
+ "newGroupName": "New Group Name",
34
+ "newGroupSession": "New Group Session",
35
+ "nextPatient": "Next Patient",
36
+ "noFormsFound": "No Forms To Show",
37
+ "noFormsFoundMessage": "No forms could be found for this category. Please double check the form concept uuids and access permissions.",
38
+ "noGroupsFoundMessage": "Sorry, no groups have been found",
39
+ "noMoreResults": "End of search results",
40
+ "noPatientError": "Please enter at least one patient.",
41
+ "or": "or",
42
+ "orLabelName": "OR label name",
43
+ "patientIsPresent": "Patient is present",
44
+ "patientsInGroup": "Patients in group",
45
+ "postError": "POST Error",
46
+ "practitionerName": "Practitioner Name",
47
+ "remove": "Remove",
48
+ "resumeGroupSession": "Resume Group Session",
49
+ "resumeSession": "Resume Session",
50
+ "save": "Save",
51
+ "saveAndComplete": "Save & Complete",
52
+ "saveExplanation": "Do you want to save the current form and exit the workflow?",
53
+ "saveForm": "Save Form",
54
+ "saveSession": "Save Session",
55
+ "search": "Search",
56
+ "searchForGroup": "Search for a group by name",
57
+ "searchResultsText": "search result(s)",
58
+ "selectGroupFirst": "Please select a group first",
59
+ "selectPatientFirst": "Please select a patient first",
60
+ "sessionDate": "Session Date",
61
+ "sessionDetails": "1. Session details",
62
+ "sessionName": "Session Name",
63
+ "sessionNotes": "Session Notes",
64
+ "sessionParticipants": "2. Session participants",
65
+ "startGroupSession": "Start Group Session",
66
+ "trySearchWithPatientUniqueID": "Try searching with the cohort's description",
67
+ "unknown": "Unknown",
68
+ "unknownPostError": "An unknown error occurred while saving data"
69
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "actions": "Actions",
3
+ "allFieldsRequired": "All fields are required unless marked optional",
4
+ "allForms": "All Forms",
5
+ "areYouSure": "Are you sure?",
6
+ "cancel": "Cancel",
7
+ "cancelExplanation": "You will lose any unsaved changes on the current form. Do you want to discard the current session?",
8
+ "changeGroup": "Choose a different group",
9
+ "chooseGroupError": "Please choose a group.",
10
+ "clearSearch": "Clear",
11
+ "complete": "Complete",
12
+ "createGroup": "Create Group",
13
+ "createNewGroup": "Create New Group",
14
+ "createNewPatient": "Create new patient",
15
+ "createNewSession": "Create New Session",
16
+ "discard": "Discard",
17
+ "editGroup": "Edit Group",
18
+ "error": "Error",
19
+ "errorCopy": "Sorry, there was an error. You can try to reload this page, or contact the site administrator and quote the error code above.",
20
+ "errorLoadingData": "Error Loading Data",
21
+ "fastDataEntry": "Fast Data Entry",
22
+ "fillForm": "Fill Form",
23
+ "findGroup": "Find group",
24
+ "formName": "Form Name",
25
+ "formsAppMenuLink": "Fast Data Entry",
26
+ "formsFilled": "Forms filled",
27
+ "goToForm": "Go To Form",
28
+ "groupNameError": "Please enter a group name.",
29
+ "identifier": "Patient ID",
30
+ "markAbsentPatients": "The patients in this group. Patients that are not present in the session should be marked as absent.",
31
+ "members": "members",
32
+ "name": "Name",
33
+ "newGroupName": "New Group Name",
34
+ "newGroupSession": "New Group Session",
35
+ "nextPatient": "Next Patient",
36
+ "noFormsFound": "No Forms To Show",
37
+ "noFormsFoundMessage": "No forms could be found for this category. Please double check the form concept uuids and access permissions.",
38
+ "noGroupsFoundMessage": "Sorry, no groups have been found",
39
+ "noMoreResults": "End of search results",
40
+ "noPatientError": "Please enter at least one patient.",
41
+ "or": "or",
42
+ "orLabelName": "OR label name",
43
+ "patientIsPresent": "Patient is present",
44
+ "patientsInGroup": "Patients in group",
45
+ "postError": "POST Error",
46
+ "practitionerName": "Practitioner Name",
47
+ "remove": "Remove",
48
+ "resumeGroupSession": "Resume Group Session",
49
+ "resumeSession": "Resume Session",
50
+ "save": "Save",
51
+ "saveAndComplete": "Save & Complete",
52
+ "saveExplanation": "Do you want to save the current form and exit the workflow?",
53
+ "saveForm": "Save Form",
54
+ "saveSession": "Save Session",
55
+ "search": "Search",
56
+ "searchForGroup": "Search for a group by name",
57
+ "searchResultsText": "search result(s)",
58
+ "selectGroupFirst": "Please select a group first",
59
+ "selectPatientFirst": "Please select a patient first",
60
+ "sessionDate": "Session Date",
61
+ "sessionDetails": "1. Session details",
62
+ "sessionName": "Session Name",
63
+ "sessionNotes": "Session Notes",
64
+ "sessionParticipants": "2. Session participants",
65
+ "startGroupSession": "Start Group Session",
66
+ "trySearchWithPatientUniqueID": "Try searching with the cohort's description",
67
+ "unknown": "Unknown",
68
+ "unknownPostError": "An unknown error occurred while saving data"
69
+ }
package/.editorconfig DELETED
@@ -1,12 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- charset = utf-8
7
- trim_trailing_whitespace = true
8
- insert_final_newline = true
9
- end_of_line = lf
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
package/.eslintignore DELETED
@@ -1,2 +0,0 @@
1
- src/**/*.test.tsx
2
- **/*.d.tsx
package/.eslintrc.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- "extends": [
3
- "eslint:recommended",
4
- "ts-react-important-stuff",
5
- "plugin:prettier/recommended",
6
- 'react-app',
7
- 'plugin:@typescript-eslint/recommended',
8
- ],
9
- "parser": "@typescript-eslint/parser",
10
- }
package/.husky/pre-push DELETED
@@ -1 +0,0 @@
1
- yarn verify
package/.prettierignore DELETED
@@ -1,14 +0,0 @@
1
- # directories
2
- .husky/
3
- dist/
4
- node_modules/
5
-
6
- # dotfiles and generated
7
- .*
8
- yarn.lock
9
-
10
- # by file type
11
- **/*.css
12
- **/*.scss
13
- **/*.md
14
- **/*.json
package/.tx/config DELETED
@@ -1,9 +0,0 @@
1
- [main]
2
- host = https://www.transifex.com
3
-
4
- [openmrs-esm-fast-data-entry-app.esm-fast-data-entry-app]
5
- file_filter = translations/<lang>.json
6
- minimum_perc = 0
7
- source_file = translations/en.json
8
- source_lang = en
9
- type = KEYVALUEJSON