@kenyaemr/esm-bed-management-app 1.0.1-pre.4 → 8.0.2

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 (177) hide show
  1. package/.turbo/turbo-build.log +36 -0
  2. package/README.md +6 -38
  3. package/dist/130.js +2 -0
  4. package/dist/{800.js.LICENSE.txt → 130.js.LICENSE.txt} +2 -0
  5. package/dist/130.js.map +1 -0
  6. package/dist/148.js +1 -0
  7. package/dist/148.js.map +1 -0
  8. package/dist/169.js +1 -0
  9. package/dist/169.js.map +1 -0
  10. package/dist/271.js +1 -0
  11. package/dist/319.js +1 -0
  12. package/dist/325.js +1 -0
  13. package/dist/325.js.map +1 -0
  14. package/dist/339.js +1 -0
  15. package/dist/339.js.map +1 -0
  16. package/dist/455.js +1 -1
  17. package/dist/455.js.LICENSE.txt +6 -0
  18. package/dist/455.js.map +1 -1
  19. package/dist/460.js +1 -0
  20. package/dist/501.js +1 -0
  21. package/dist/501.js.map +1 -0
  22. package/dist/542.js +1 -0
  23. package/dist/542.js.map +1 -0
  24. package/dist/574.js +1 -1
  25. package/dist/591.js +2 -0
  26. package/dist/{26.js.LICENSE.txt → 591.js.LICENSE.txt} +3 -3
  27. package/dist/591.js.map +1 -0
  28. package/dist/644.js +1 -0
  29. package/dist/757.js +1 -0
  30. package/dist/766.js +2 -0
  31. package/dist/{330.js.LICENSE.txt → 766.js.LICENSE.txt} +0 -9
  32. package/dist/766.js.map +1 -0
  33. package/dist/{294.js → 784.js} +2 -2
  34. package/dist/{294.js.map → 784.js.map} +1 -1
  35. package/dist/788.js +1 -0
  36. package/dist/807.js +1 -0
  37. package/dist/833.js +1 -0
  38. package/dist/main.js +1 -1
  39. package/dist/main.js.map +1 -1
  40. package/dist/openmrs-esm-bed-management-app.js +1 -0
  41. package/dist/{esm-kenyaemr-bed-management-app.js.buildmanifest.json → openmrs-esm-bed-management-app.js.buildmanifest.json} +202 -155
  42. package/dist/openmrs-esm-bed-management-app.js.map +1 -0
  43. package/dist/routes.json +1 -1
  44. package/jest.config.js +3 -0
  45. package/package-lock.json +5893 -0
  46. package/package.json +25 -83
  47. package/src/__mocks__/react-i18next.js +18 -14
  48. package/src/admin-card-link.component.tsx +7 -10
  49. package/src/bed-administration/bed-administration-form.component.tsx +65 -99
  50. package/src/bed-administration/bed-administration-table.component.tsx +68 -127
  51. package/src/bed-administration/bed-administration-table.scss +12 -16
  52. package/src/bed-administration/bed-administration-types.ts +8 -0
  53. package/src/bed-administration/bed-administration.resource.ts +16 -18
  54. package/src/bed-administration/edit-bed-form.component.tsx +20 -31
  55. package/src/bed-administration/new-bed-form.component.tsx +28 -44
  56. package/src/bed-tag/bed-tag-administration-table.component.tsx +192 -0
  57. package/src/bed-tag/bed-tags-admin-form.component.tsx +127 -0
  58. package/src/bed-tag/edit-tag-form.component.tsx +72 -0
  59. package/src/bed-tag/new-tag-form.component.tsx +76 -0
  60. package/src/bed-type/bed-type-admin-form.component.tsx +166 -0
  61. package/src/bed-type/bed-type-administration-table.component.tsx +198 -0
  62. package/src/bed-type/edit-bed-type.component.tsx +72 -0
  63. package/src/bed-type/new-bed-type-form.component.tsx +80 -0
  64. package/src/card-header/card-header.component.tsx +20 -0
  65. package/src/card-header/card-header.scss +45 -0
  66. package/src/config-schema.ts +9 -17
  67. package/src/declarations.d.ts +5 -5
  68. package/src/empty-state/empty-state.component.tsx +6 -21
  69. package/src/empty-state/empty-state.scss +10 -10
  70. package/src/header/header.component.tsx +14 -23
  71. package/src/header/header.scss +11 -11
  72. package/src/header/illustration.component.tsx +3 -3
  73. package/src/home.component.tsx +4 -4
  74. package/src/index.ts +26 -40
  75. package/src/left-panel/left-panel.component.tsx +7 -17
  76. package/src/left-panel/left-panel.scss +8 -7
  77. package/src/left-panel-link.component.tsx +14 -24
  78. package/src/root.component.tsx +14 -10
  79. package/src/root.scss +2 -2
  80. package/src/routes.json +12 -2
  81. package/src/setup-tests.ts +1 -1
  82. package/src/summary/summary.component.tsx +16 -30
  83. package/src/summary/summary.resource.ts +169 -60
  84. package/src/summary/summary.scss +31 -29
  85. package/src/types.ts +50 -29
  86. package/src/ward-card/ward-card.component.tsx +5 -12
  87. package/src/ward-card/ward-card.scss +2 -2
  88. package/src/ward-with-beds/ward-with-beds.component.tsx +28 -47
  89. package/src/ward-with-beds/ward-with-beds.scss +5 -5
  90. package/translations/am.json +51 -0
  91. package/translations/ar.json +51 -0
  92. package/translations/en.json +48 -4
  93. package/translations/es.json +51 -0
  94. package/translations/fr.json +51 -0
  95. package/translations/he.json +51 -0
  96. package/translations/km.json +51 -0
  97. package/translations/zh.json +51 -0
  98. package/translations/zh_CN.json +51 -0
  99. package/tsconfig.json +3 -21
  100. package/webpack.config.js +1 -1
  101. package/.editorconfig +0 -12
  102. package/.eslintignore +0 -2
  103. package/.eslintrc +0 -37
  104. package/.husky/pre-commit +0 -4
  105. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  106. package/.idea/modules.xml +0 -8
  107. package/.idea/vcs.xml +0 -6
  108. package/.prettierignore +0 -14
  109. package/.turbo.json +0 -18
  110. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
  111. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  112. package/.yarn/versions/6816f0d4.yml +0 -0
  113. package/LICENSE +0 -373
  114. package/dist/187.js +0 -1
  115. package/dist/187.js.map +0 -1
  116. package/dist/207.js +0 -1
  117. package/dist/207.js.map +0 -1
  118. package/dist/26.js +0 -2
  119. package/dist/26.js.map +0 -1
  120. package/dist/283.js +0 -1
  121. package/dist/283.js.map +0 -1
  122. package/dist/330.js +0 -2
  123. package/dist/330.js.map +0 -1
  124. package/dist/352.js +0 -1
  125. package/dist/352.js.map +0 -1
  126. package/dist/404.js +0 -1
  127. package/dist/404.js.map +0 -1
  128. package/dist/558.js +0 -2
  129. package/dist/558.js.LICENSE.txt +0 -14
  130. package/dist/558.js.map +0 -1
  131. package/dist/629.js +0 -1
  132. package/dist/629.js.map +0 -1
  133. package/dist/707.js +0 -1
  134. package/dist/707.js.map +0 -1
  135. package/dist/800.js +0 -2
  136. package/dist/800.js.map +0 -1
  137. package/dist/884.js +0 -1
  138. package/dist/884.js.map +0 -1
  139. package/dist/933.js +0 -1
  140. package/dist/933.js.map +0 -1
  141. package/dist/959.js +0 -1
  142. package/dist/959.js.map +0 -1
  143. package/dist/esm-kenyaemr-bed-management-app.js +0 -1
  144. package/dist/esm-kenyaemr-bed-management-app.js.map +0 -1
  145. package/i18next-parser.config.js +0 -89
  146. package/src/assets/landing-page.png +0 -0
  147. package/src/assets/logo.svg +0 -1
  148. package/src/bed-admission/active-patients/active-patients-table.component.tsx +0 -299
  149. package/src/bed-admission/active-patients/active-visits.resource.ts +0 -171
  150. package/src/bed-admission/active-patients/admission-action-button-styles.scss +0 -0
  151. package/src/bed-admission/active-patients/admission-action-button.component.tsx +0 -26
  152. package/src/bed-admission/active-patients/index.tsx +0 -15
  153. package/src/bed-admission/active-patients/patient-queues.resource.ts +0 -136
  154. package/src/bed-admission/active-patients/styles.scss +0 -284
  155. package/src/bed-admission/active-patients/view-action-menu.component.tsx +0 -33
  156. package/src/bed-admission/admitted-patients/active-admissions.resource.ts +0 -121
  157. package/src/bed-admission/admitted-patients/admitted-patients-table.component.tsx +0 -280
  158. package/src/bed-admission/admitted-patients/admitted-patients.component.tsx +0 -22
  159. package/src/bed-admission/admitted-patients/location-combo-box.component.tsx +0 -55
  160. package/src/bed-admission/admitted-patients/styles.scss +0 -284
  161. package/src/bed-admission/bed-admission-tabs-styles.scss +0 -30
  162. package/src/bed-admission/bed-admission-tabs.component.tsx +0 -69
  163. package/src/bed-admission/bed-admission.component.tsx +0 -15
  164. package/src/bed-admission/bed-admission.resource.ts +0 -35
  165. package/src/bed-admission/bed-layout/bed-layout-list.component.tsx +0 -101
  166. package/src/bed-admission/bed-layout/bed-layout.component.tsx +0 -64
  167. package/src/bed-admission/bed-layout/bed-layout.scss +0 -118
  168. package/src/bed-admission/bed-layout/min-bed-layout.component.tsx +0 -26
  169. package/src/bed-admission/createDashboardLink.tsx +0 -47
  170. package/src/bed-admission/discharged-patients/discharged-patients.componet.tsx +0 -19
  171. package/src/bed-admission/helpers/functions.ts +0 -102
  172. package/src/bed-admission/types.ts +0 -133
  173. package/src/workspace/allocate-bed-workspace.component.tsx +0 -141
  174. package/src/workspace/allocate-bed.scss +0 -117
  175. package/src/workspace/overlay.component.tsx +0 -55
  176. package/src/workspace/overlay.scss +0 -96
  177. /package/dist/{294.js.LICENSE.txt → 784.js.LICENSE.txt} +0 -0
@@ -1,19 +1,19 @@
1
1
  @use '@carbon/layout';
2
2
 
3
3
  .container {
4
- margin: 1rem;
4
+ margin: layout.$spacing-05;
5
5
  }
6
6
 
7
7
  .backButton {
8
8
  align-items: center;
9
9
  display: flex;
10
10
  justify-content: flex-start;
11
- margin-left: 1rem;
12
-
11
+ margin-left: layout.$spacing-05;
12
+
13
13
  button {
14
14
  display: flex;
15
15
  padding-left: 0 !important;
16
-
16
+
17
17
  svg {
18
18
  order: 1;
19
19
  margin-right: layout.$spacing-03;
@@ -24,4 +24,4 @@
24
24
  order: 2;
25
25
  }
26
26
  }
27
- }
27
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
@@ -1,7 +1,51 @@
1
1
  {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
2
11
  "bedManagement": "Bed Management",
3
- "headTitle": "",
4
- "home": "Home",
5
- "manageBed": "Manage Beds",
6
- "wardType": ""
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
7
51
  }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Acciones",
3
+ "addBed": "Añadir cama",
4
+ "addBedTag": "Crear Etiqueta de Cama",
5
+ "addBedtype": "Añadir Tipo de Cama",
6
+ "addBedType": "Crear Tipo de Cama",
7
+ "allocationStatus": "Asignado",
8
+ "bedId": "ID de la Cama",
9
+ "bedIdPlaceholder": "p. ej. BMW-201",
10
+ "bedLocation": "Ubicación",
11
+ "bedManagement": "Administración de Camas",
12
+ "bedName": "Nombre de la Cama",
13
+ "beds": "Camas",
14
+ "bedTag": "Nombre de la Etiqueta de la Cama",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Añadir Tipo de Cama",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Compruebe los filtros anteriores",
19
+ "chooseBedtype": "Elija un tipo de cama",
20
+ "chooseOccupiedStatus": "Elija el estado ocupado",
21
+ "createNewBed": "Crear una nueva cama",
22
+ "description": "Descripción",
23
+ "displayName": "Mostrar Nombre",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Editar etiqueta",
26
+ "editBedTag": "Editar Etiqueta de la Cama",
27
+ "editBedType": "Editar Tipo de Cama",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error al crear cama",
30
+ "errorFetchingbedInformation": "Error al obtener información de la cama",
31
+ "filterByOccupancyStatus": "Filtrar por estado de ocupación",
32
+ "formCreated": "Añadir Tipo de Cama",
33
+ "formSaved": "Tipo de Cama",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Ubicaciones",
37
+ "manageBeds": "Administrar Camas",
38
+ "name": "Nombre",
39
+ "no": "No",
40
+ "No data": "No hay datos para mostrar",
41
+ "occupancyStatus": "Ocupada",
42
+ "or": "o",
43
+ "pleaseFillField": "",
44
+ "required": "Obligatorio",
45
+ "save": "Guardar",
46
+ "saveSuccessMessage": "fue guardado exitosamente.",
47
+ "selectBedLocation": "Seleccione una ubicación para la cama",
48
+ "viewBeds": "Ver camas",
49
+ "wardAllocation": "Asignación de sala",
50
+ "yes": "Sí"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Ajouter un lit",
4
+ "addBedTag": "Créer une étiquette de lit",
5
+ "addBedtype": "Ajouter type de lit",
6
+ "addBedType": "Créer Type de lit",
7
+ "allocationStatus": "Attribué",
8
+ "bedId": "Identifiant du Lit",
9
+ "bedIdPlaceholder": "exemple : BMW-201",
10
+ "bedLocation": "Emplacement",
11
+ "bedManagement": "Gestion du lit",
12
+ "bedName": "Nom du lit",
13
+ "beds": "Lits",
14
+ "bedTag": "Nom de l'étiquette du lit",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Ajouter un type de lit",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Vérifiez les filtres ci-dessus",
19
+ "chooseBedtype": "Choisir un type de lit",
20
+ "chooseOccupiedStatus": " Choisissez le statut occupé",
21
+ "createNewBed": "Créer un nouveau lit",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Afficher un tag",
26
+ "editBedTag": "Afficher un Tag de lit",
27
+ "editBedType": "Afficher un type de lit",
28
+ "error": "Erreur",
29
+ "errorCreatingForm": "Erreur lors de la création du lit",
30
+ "errorFetchingbedInformation": " Erreur lors de la récupération des informations sur le lit",
31
+ "filterByOccupancyStatus": "Filtrer par statut d'occupation",
32
+ "formCreated": "Ajouter un type de lit",
33
+ "formSaved": "Type de lit",
34
+ "headerTitle": "",
35
+ "ids": "Identifiant",
36
+ "location": "Emplacements",
37
+ "manageBeds": "Gestion des lits",
38
+ "name": "Nom",
39
+ "no": "Non",
40
+ "No data": "Pas de données à afficher",
41
+ "occupancyStatus": "Occupé",
42
+ "or": "ou",
43
+ "pleaseFillField": "",
44
+ "required": "Requis",
45
+ "save": "Enregistrer",
46
+ "saveSuccessMessage": "a été enregistré avec succès.",
47
+ "selectBedLocation": "Sélectionner un emplacement de lit",
48
+ "viewBeds": "Voir lits",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Oui"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "actions": "Actions",
3
+ "addBed": "Add bed",
4
+ "addBedTag": "Create Bed Tag",
5
+ "addBedtype": "Add Bed Type",
6
+ "addBedType": "Create Bed type",
7
+ "allocationStatus": "Allocated",
8
+ "bedId": "Bed ID",
9
+ "bedIdPlaceholder": "e.g. BMW-201",
10
+ "bedLocation": "Location",
11
+ "bedManagement": "Bed Management",
12
+ "bedName": "Bed Name",
13
+ "beds": "Beds",
14
+ "bedTag": "Bed Tag Name",
15
+ "bedTagPlaceholder": "",
16
+ "bedType": "Add Bed Type",
17
+ "bedTypePlaceholder": "",
18
+ "checkFilters": "Check the filters above",
19
+ "chooseBedtype": "Choose a bed type",
20
+ "chooseOccupiedStatus": "Choose occupied status",
21
+ "createNewBed": "Create a new bed",
22
+ "description": "Description",
23
+ "displayName": "Display Name",
24
+ "displayNamePlaceholder": "",
25
+ "editBed": "Edit Tag",
26
+ "editBedTag": "Edit Bed Tag",
27
+ "editBedType": "Edit Bed Type",
28
+ "error": "Error",
29
+ "errorCreatingForm": "Error creating bed",
30
+ "errorFetchingbedInformation": "Error fetching bed information",
31
+ "filterByOccupancyStatus": "Filter by occupancy status",
32
+ "formCreated": "Add bed Type",
33
+ "formSaved": "Bed Type",
34
+ "headerTitle": "",
35
+ "ids": "Id",
36
+ "location": "Locations",
37
+ "manageBeds": "Manage Beds",
38
+ "name": "Name",
39
+ "no": "No",
40
+ "No data": "No data to display",
41
+ "occupancyStatus": "Occupied",
42
+ "or": "or",
43
+ "pleaseFillField": "",
44
+ "required": "Required",
45
+ "save": "Save",
46
+ "saveSuccessMessage": "was saved successfully.",
47
+ "selectBedLocation": "Select a bed location",
48
+ "viewBeds": "View beds",
49
+ "wardAllocation": "Ward Allocation",
50
+ "yes": "Yes"
51
+ }
package/tsconfig.json CHANGED
@@ -1,23 +1,5 @@
1
1
  {
2
- "compilerOptions": {
3
- "esModuleInterop": true,
4
- "module": "esnext",
5
- "allowSyntheticDefaultImports": true,
6
- "jsx": "react",
7
- "skipLibCheck": true,
8
- "moduleResolution": "node",
9
- "lib": [
10
- "dom",
11
- "es5",
12
- "scripthost",
13
- "es2015",
14
- "es2015.promise",
15
- "es2016.array.include",
16
- "es2018",
17
- "es2020"
18
- ],
19
- "resolveJsonModule": true,
20
- "noEmit": true,
21
- "target": "esnext"
22
- }
2
+ "extends": "../../tsconfig.json",
3
+ "include": ["src/**/*"],
4
+ "exclude": ["src/**/*.test.tsx"]
23
5
  }
package/webpack.config.js CHANGED
@@ -1 +1 @@
1
- module.exports = require("openmrs/default-webpack-config");
1
+ module.exports = require('openmrs/default-webpack-config');
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 DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "parser": "@typescript-eslint/parser",
3
- "plugins": ["@typescript-eslint"],
4
- "extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
5
- "rules": {
6
- "curly": ["error", "all"],
7
- "no-restricted-imports": [
8
- "error",
9
- {
10
- "paths": [
11
- {
12
- "name": "lodash",
13
- "message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
14
- },
15
- {
16
- "name": "lodash-es",
17
- "message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
18
- }
19
- ],
20
- "patterns": [
21
- {
22
- "group": ["carbon-components-react"],
23
- "message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
24
- },
25
- {
26
- "group": ["@carbon/icons-react"],
27
- "message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
28
- },
29
- {
30
- "group": ["@import '~carbon-components/src/globals/scss/vars'"],
31
- "message": "Import from `@carbon/styles/scss`. e.g. `@use '@carbon/styles/scss/type'`"
32
- }
33
- ]
34
- }
35
- ]
36
- }
37
- }
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- yarn verify
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- </profile>
6
- </component>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/esm-ugandaemr-bed-management-app.iml" filepath="$PROJECT_DIR$/.idea/esm-ugandaemr-bed-management-app.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
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/.turbo.json DELETED
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "https://turbo.build/schema.json",
3
- "pipeline": {
4
- "build": {
5
- "outputs": [".next/**", "!.next/cache/**"]
6
- },
7
- "lint": {},
8
- "extract-translations": {
9
- "outputs": ["./translations/*"]
10
- },
11
- "test": {},
12
- "coverage": {
13
- "outputs": ["coverage/**"]
14
- },
15
- "typescript": {},
16
- "verify": {}
17
- }
18
- }