@openmrs/esm-fast-data-entry-app 1.0.1-pre.8 → 1.0.1-pre.82

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 (84) hide show
  1. package/README.md +21 -2
  2. package/dist/132.js +1 -0
  3. package/dist/168.js +1 -0
  4. package/dist/229.js +1 -0
  5. package/dist/247.js +1 -0
  6. package/dist/255.js +1 -0
  7. package/dist/294.js +2 -0
  8. package/dist/294.js.LICENSE.txt +9 -0
  9. package/dist/32.js +1 -0
  10. package/dist/327.js +1 -0
  11. package/dist/403.js +2 -0
  12. package/dist/403.js.LICENSE.txt +14 -0
  13. package/dist/553.js +2 -0
  14. package/dist/553.js.LICENSE.txt +14 -0
  15. package/dist/569.js +2 -0
  16. package/dist/569.js.LICENSE.txt +27 -0
  17. package/dist/574.js +1 -0
  18. package/dist/595.js +2 -0
  19. package/dist/595.js.LICENSE.txt +1 -0
  20. package/dist/617.js +1 -0
  21. package/dist/68.js +2 -0
  22. package/dist/68.js.LICENSE.txt +21 -0
  23. package/dist/74.js +1 -0
  24. package/dist/757.js +1 -0
  25. package/dist/776.js +1 -0
  26. package/dist/804.js +1 -0
  27. package/dist/820.js +1 -0
  28. package/dist/935.js +2 -0
  29. package/dist/935.js.LICENSE.txt +19 -0
  30. package/dist/main.js +1 -0
  31. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  32. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +612 -0
  33. package/dist/openmrs-esm-fast-data-entry-app.old +1 -0
  34. package/package.json +9 -9
  35. package/src/CancelModal.tsx +48 -0
  36. package/src/CompleteModal.tsx +46 -0
  37. package/src/FormBootstrap.tsx +18 -3
  38. package/src/add-group-modal/AddGroupModal.tsx +80 -27
  39. package/src/add-group-modal/styles.scss +14 -4
  40. package/src/config-schema.ts +22 -0
  41. package/src/context/FormWorkflowContext.tsx +13 -1
  42. package/src/context/FormWorkflowReducer.ts +13 -3
  43. package/src/context/GroupFormWorkflowContext.tsx +41 -6
  44. package/src/context/GroupFormWorkflowReducer.ts +170 -12
  45. package/src/form-entry-workflow/FormEntryWorkflow.tsx +67 -101
  46. package/src/form-entry-workflow/styles.scss +2 -1
  47. package/src/forms-page/FormsPage.tsx +8 -3
  48. package/src/forms-page/forms-table/FormsTable.tsx +11 -5
  49. package/src/group-form-entry-workflow/GroupFormEntryWorkflow.tsx +13 -400
  50. package/src/group-form-entry-workflow/GroupSessionWorkspace.tsx +247 -0
  51. package/src/group-form-entry-workflow/SessionDetailsForm.tsx +122 -0
  52. package/src/group-form-entry-workflow/SessionMetaWorkspace.tsx +107 -0
  53. package/src/group-form-entry-workflow/attendance-table/AttendanceTable.tsx +105 -0
  54. package/src/group-form-entry-workflow/attendance-table/index.ts +1 -0
  55. package/src/group-form-entry-workflow/{group-banner/GroupBanner.test.tsx → group-display-header/GroupDisplayHeader.test.tsx} +2 -2
  56. package/src/group-form-entry-workflow/{group-banner/GroupBanner.tsx → group-display-header/GroupDisplayHeader.tsx} +23 -5
  57. package/src/group-form-entry-workflow/group-display-header/index.ts +3 -0
  58. package/src/group-form-entry-workflow/group-search/CompactGroupResults.tsx +61 -28
  59. package/src/group-form-entry-workflow/group-search/CompactGroupSearch.tsx +5 -0
  60. package/src/group-form-entry-workflow/group-search/GroupSearch.tsx +65 -8
  61. package/src/group-form-entry-workflow/group-search/group-search.scss +8 -6
  62. package/src/group-form-entry-workflow/group-search-header/GroupSearchHeader.tsx +11 -7
  63. package/src/group-form-entry-workflow/styles.scss +12 -1
  64. package/src/hooks/index.ts +1 -0
  65. package/src/hooks/useGetSystemSetting.ts +38 -0
  66. package/src/hooks/usePostEndpoint.ts +70 -0
  67. package/src/hooks/useSearchEndpoint.ts +120 -0
  68. package/src/hooks/useStartVisit.ts +92 -0
  69. package/src/patient-card/styles.scss +1 -0
  70. package/tools/i18next-parser.config.js +93 -0
  71. package/translations/en.json +27 -9
  72. package/translations/fr.json +50 -0
  73. package/.editorconfig +0 -12
  74. package/.eslintignore +0 -2
  75. package/.eslintrc.js +0 -10
  76. package/.husky/pre-push +0 -1
  77. package/.prettierignore +0 -14
  78. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  79. package/.yarn/versions/7ee3eceb.yml +0 -0
  80. package/src/group-form-entry-workflow/group-banner/index.ts +0 -3
  81. package/src/group-form-entry-workflow/group-search/mock-group-data.ts +0 -79
  82. package/src/group-form-entry-workflow/group-search/useGroupSearch.ts +0 -14
  83. package/src/hooks/usePostCohort.ts +0 -18
  84. /package/src/group-form-entry-workflow/{group-banner → group-display-header}/styles.scss +0 -0
@@ -0,0 +1,27 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+ Permission to use, copy, modify, and/or distribute this software for any
10
+ purpose with or without fee is hereby granted.
11
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
+ PERFORMANCE OF THIS SOFTWARE.
18
+ ***************************************************************************** */
19
+
20
+ /** @license React v16.13.1
21
+ * react-is.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
package/dist/574.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","allFieldsRequired":"All fields are required unless marked optional","allForms":"All Forms","areYouSure":"Are you sure?","cancel":"Cancel","cancelExplanation":"You will lose any unsaved changes on the current form. Do you want to discard the current session?","changeGroup":"Choose a different group","chooseGroupError":"Please choose a group.","clearSearch":"Clear","complete":"Complete","createGroup":"Create Group","createNewGroup":"Create New Group","createNewPatient":"Create new patient","createNewSession":"Create New Session","discard":"Discard","error":"Error","errorCopy":"Sorry, there was an error. You can try to reload this page, or contact the site administrator and quote the error code above.","errorLoadingData":"Error Loading Data","fastDataEntry":"Fast Data Entry","fillForm":"Fill Form","findGroup":"Find group","formName":"Form Name","formsAppMenuLink":"Fast Data Entry","formsFilled":"Forms filled","goToForm":"Go To Form","groupNameError":"Please enter a group name.","identifier":"Identifier","markAbsentPatients":"The patients in this group. Patients that are not present in the session should be marked as absent.","members":"members","name":"Name","newGroupName":"New Group Name","newGroupSession":"New Group Session","nextPatient":"Next Patient","noFormsFound":"No Forms To Show","noFormsFoundMessage":"No forms could be found for this category. Please double check the form concept uuids and access permissions.","noGroupsFoundMessage":"Sorry, no groups have been found","noMoreResults":"End of search results","noPatientError":"Please enter at least one patient.","or":"or","orLabelName":"OR label name","patientIsPresent":"Patient is present","patientsInGroup":"Patients in group","postError":"POST Error","practitionerName":"Practitioner Name","remove":"Remove","resumeGroupSession":"Resume Group Session","resumeSession":"Resume Session","saveAndComplete":"Save & Complete","saveExplanation":"Do you want to save the current form and exit the workflow?","saveForm":"Save Form","saveSession":"Save Session","search":"Search","searchForGroup":"Search for a group by name","searchResultsText":"search result(s)","selectGroupFirst":"Please select a group first","selectPatientFirst":"Please select a patient first","sessionDate":"Session Date","sessionDetails":"1. Session details","sessionName":"Session Name","sessionNotes":"Session Notes","sessionParticipants":"2. Session participants","startGroupSession":"Start Group Session","trySearchWithPatientUniqueID":"Try searching with the cohort\'s description","unknown":"Unknown","unknownPostError":"An unknown error occured while saving data"}')}}]);