@openmrs/esm-stock-management-app 1.0.1-pre.327

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. package/.editorconfig +12 -0
  2. package/.eslintignore +2 -0
  3. package/.eslintrc +39 -0
  4. package/.husky/pre-commit +4 -0
  5. package/.husky/pre-push +6 -0
  6. package/.prettierignore +14 -0
  7. package/.turbo.json +18 -0
  8. package/.yarn/plugins/@yarnpkg/plugin-outdated.cjs +35 -0
  9. package/LICENSE +401 -0
  10. package/README.md +3 -0
  11. package/__mocks__/react-i18next.js +55 -0
  12. package/dist/26.js +2 -0
  13. package/dist/26.js.LICENSE.txt +32 -0
  14. package/dist/26.js.map +1 -0
  15. package/dist/294.js +2 -0
  16. package/dist/294.js.LICENSE.txt +9 -0
  17. package/dist/294.js.map +1 -0
  18. package/dist/375.js +2 -0
  19. package/dist/375.js.LICENSE.txt +40 -0
  20. package/dist/375.js.map +1 -0
  21. package/dist/46.js +1 -0
  22. package/dist/46.js.map +1 -0
  23. package/dist/484.js +1 -0
  24. package/dist/484.js.map +1 -0
  25. package/dist/574.js +1 -0
  26. package/dist/629.js +1 -0
  27. package/dist/629.js.map +1 -0
  28. package/dist/707.js +1 -0
  29. package/dist/707.js.map +1 -0
  30. package/dist/800.js +2 -0
  31. package/dist/800.js.LICENSE.txt +3 -0
  32. package/dist/800.js.map +1 -0
  33. package/dist/935.js +2 -0
  34. package/dist/935.js.LICENSE.txt +19 -0
  35. package/dist/935.js.map +1 -0
  36. package/dist/979.js +1 -0
  37. package/dist/979.js.map +1 -0
  38. package/dist/main.js +2 -0
  39. package/dist/main.js.LICENSE.txt +60 -0
  40. package/dist/main.js.map +1 -0
  41. package/dist/openmrs-esm-stock-management-app.js +1 -0
  42. package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +356 -0
  43. package/dist/openmrs-esm-stock-management-app.js.map +1 -0
  44. package/dist/routes.json +1 -0
  45. package/i18next-parser.config.js +89 -0
  46. package/jest.config.js +25 -0
  47. package/package.json +116 -0
  48. package/src/config-schema.ts +18 -0
  49. package/src/constants.ts +214 -0
  50. package/src/core/api/api.ts +34 -0
  51. package/src/core/api/types/Auditable.ts +9 -0
  52. package/src/core/api/types/BaseOpenmrsData.ts +4 -0
  53. package/src/core/api/types/BaseOpenmrsMetadata.ts +6 -0
  54. package/src/core/api/types/BaseOpenmrsObject.ts +3 -0
  55. package/src/core/api/types/BatchJob.ts +121 -0
  56. package/src/core/api/types/DashboardExtension.ts +8 -0
  57. package/src/core/api/types/Location.ts +16 -0
  58. package/src/core/api/types/LocationTree.ts +7 -0
  59. package/src/core/api/types/OpenmrsData.ts +5 -0
  60. package/src/core/api/types/OpenmrsMetadata.ts +8 -0
  61. package/src/core/api/types/OpenmrsObject.ts +3 -0
  62. package/src/core/api/types/PageableResult.ts +15 -0
  63. package/src/core/api/types/Party.ts +8 -0
  64. package/src/core/api/types/RecordPermission.ts +9 -0
  65. package/src/core/api/types/Retireable.ts +9 -0
  66. package/src/core/api/types/Voidable.ts +9 -0
  67. package/src/core/api/types/concept/Concept.ts +24 -0
  68. package/src/core/api/types/concept/ConceptName.ts +14 -0
  69. package/src/core/api/types/concept/Drug.ts +14 -0
  70. package/src/core/api/types/identity/Credentials.ts +4 -0
  71. package/src/core/api/types/identity/Patient.ts +3 -0
  72. package/src/core/api/types/identity/Person.ts +4 -0
  73. package/src/core/api/types/identity/PriviledgeScope.ts +9 -0
  74. package/src/core/api/types/identity/Privilege.ts +5 -0
  75. package/src/core/api/types/identity/Role.ts +5 -0
  76. package/src/core/api/types/identity/Session.ts +16 -0
  77. package/src/core/api/types/identity/User.ts +19 -0
  78. package/src/core/api/types/identity/UserRoleScope.ts +17 -0
  79. package/src/core/api/types/identity/UserRoleScopeLocation.ts +7 -0
  80. package/src/core/api/types/identity/UserRoleScopeOperationType.ts +6 -0
  81. package/src/core/api/types/stockItem/ImportResult.ts +9 -0
  82. package/src/core/api/types/stockItem/StockBatch.ts +8 -0
  83. package/src/core/api/types/stockItem/StockBatchDTO.ts +8 -0
  84. package/src/core/api/types/stockItem/StockItem.ts +63 -0
  85. package/src/core/api/types/stockItem/StockItemInventory.ts +10 -0
  86. package/src/core/api/types/stockItem/StockItemPackagingUOM.ts +20 -0
  87. package/src/core/api/types/stockItem/StockItemTransaction.ts +22 -0
  88. package/src/core/api/types/stockItem/StockRule.ts +28 -0
  89. package/src/core/api/types/stockOperation/LocationType.ts +4 -0
  90. package/src/core/api/types/stockOperation/StockOperation.ts +36 -0
  91. package/src/core/api/types/stockOperation/StockOperationAction.ts +24 -0
  92. package/src/core/api/types/stockOperation/StockOperationDTO.ts +64 -0
  93. package/src/core/api/types/stockOperation/StockOperationItem.ts +13 -0
  94. package/src/core/api/types/stockOperation/StockOperationItemCost.ts +14 -0
  95. package/src/core/api/types/stockOperation/StockOperationItemDTO.ts +29 -0
  96. package/src/core/api/types/stockOperation/StockOperationLinkDTO.ts +13 -0
  97. package/src/core/api/types/stockOperation/StockOperationStatus.ts +18 -0
  98. package/src/core/api/types/stockOperation/StockOperationType.ts +162 -0
  99. package/src/core/api/types/stockOperation/StockSource.ts +8 -0
  100. package/src/core/components/carbon/controlled-combo-box/controlled-combo-box.component.tsx +37 -0
  101. package/src/core/components/carbon/controlled-combo-box/controlled-combo-box.resource.tsx +0 -0
  102. package/src/core/components/carbon/controlled-combo-box/controlled-combo-box.scss +0 -0
  103. package/src/core/components/carbon/controlled-combo-box/controlled-combo-box.test.tsx +8 -0
  104. package/src/core/components/carbon/controlled-dropdown/controlled-dropdown.component.tsx +40 -0
  105. package/src/core/components/carbon/controlled-dropdown/controlled-dropdown.resource.tsx +0 -0
  106. package/src/core/components/carbon/controlled-dropdown/controlled-dropdown.scss +0 -0
  107. package/src/core/components/carbon/controlled-dropdown/controlled-dropdown.test.tsx +8 -0
  108. package/src/core/components/carbon/controlled-number-input/controlled-number-input.component.tsx +44 -0
  109. package/src/core/components/carbon/controlled-number-input/controlled-number-input.resource.tsx +0 -0
  110. package/src/core/components/carbon/controlled-number-input/controlled-number-input.scss +0 -0
  111. package/src/core/components/carbon/controlled-number-input/controlled-number-input.test.tsx +8 -0
  112. package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.component.tsx +54 -0
  113. package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.resource.tsx +0 -0
  114. package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.scss +0 -0
  115. package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.test.tsx +8 -0
  116. package/src/core/components/carbon/controlled-text-area/controlled-text-area.component.tsx +37 -0
  117. package/src/core/components/carbon/controlled-text-area/controlled-text-area.resource.tsx +0 -0
  118. package/src/core/components/carbon/controlled-text-area/controlled-text-area.scss +0 -0
  119. package/src/core/components/carbon/controlled-text-area/controlled-text-area.test.tsx +11 -0
  120. package/src/core/components/carbon/controlled-text-input/controlled-text-input.component.tsx +37 -0
  121. package/src/core/components/carbon/controlled-text-input/controlled-text-input.resource.tsx +0 -0
  122. package/src/core/components/carbon/controlled-text-input/controlled-text-input.scss +0 -0
  123. package/src/core/components/carbon/controlled-text-input/controlled-text-input.test.tsx +8 -0
  124. package/src/core/components/carbon/types.ts +7 -0
  125. package/src/core/components/card/metrics-card-component.tsx +102 -0
  126. package/src/core/components/card/metrics-card.scss +78 -0
  127. package/src/core/components/overlay/hook.ts +47 -0
  128. package/src/core/components/overlay/overlay.component.tsx +52 -0
  129. package/src/core/components/overlay/overlay.scss +97 -0
  130. package/src/core/components/side-nav/side-nav.component.tsx +62 -0
  131. package/src/core/components/side-nav/side-nav.scss +126 -0
  132. package/src/core/components/side-nav/types.ts +6 -0
  133. package/src/core/components/table/table.component.tsx +239 -0
  134. package/src/core/components/table/table.scss +173 -0
  135. package/src/core/components/table/types.ts +8 -0
  136. package/src/core/components/tabs/types.ts +7 -0
  137. package/src/core/components/tabs/vertical-tabs.component.tsx +53 -0
  138. package/src/core/components/tabs/vertical-tabs.scss +126 -0
  139. package/src/core/hooks/debounce-hook.ts +35 -0
  140. package/src/core/print/PrintStyles.ts +774 -0
  141. package/src/core/print/PrintTemplate.ts +65 -0
  142. package/src/core/print/printUtils.ts +19 -0
  143. package/src/core/utils/alert.ts +10 -0
  144. package/src/core/utils/datetimeUtils.ts +84 -0
  145. package/src/core/utils/debounce.ts +21 -0
  146. package/src/core/utils/imageUtils.ts +82 -0
  147. package/src/core/utils/stringUtils.ts +27 -0
  148. package/src/core/utils/utils.ts +70 -0
  149. package/src/createDashboardLink.tsx +43 -0
  150. package/src/dashboard/stock-management-dashboard-side-nav.component.tsx +50 -0
  151. package/src/dashboard/stock-management-dashboard.component.tsx +41 -0
  152. package/src/dashboard/stock-management-dashboard.scss +8 -0
  153. package/src/dashboard.meta.ts +5 -0
  154. package/src/declarations.d.ts +6 -0
  155. package/src/index.ts +64 -0
  156. package/src/root.component.tsx +12 -0
  157. package/src/root.scss +174 -0
  158. package/src/routes.json +53 -0
  159. package/src/setup-tests.ts +1 -0
  160. package/src/stock-app-menu-item/item.component.tsx +21 -0
  161. package/src/stock-app-menu-item/item.resource.ts +0 -0
  162. package/src/stock-app-menu-item/item.scss +17 -0
  163. package/src/stock-batch/stock-batch.resource.ts +79 -0
  164. package/src/stock-home/stock-home-detail-card.scss +211 -0
  165. package/src/stock-home/stock-home-detail-cards.component.tsx +62 -0
  166. package/src/stock-home/stock-home-inventory-card.component.tsx +80 -0
  167. package/src/stock-home/stock-home-inventory-expiry.resource.tsx +32 -0
  168. package/src/stock-home/stock-home-inventory-items.resource.tsx +28 -0
  169. package/src/stock-home/stock-home-issuing-card.component.tsx +84 -0
  170. package/src/stock-home/stock-home-issuing.resource.tsx +18 -0
  171. package/src/stock-home/stock-home-landing-page-component.tsx +14 -0
  172. package/src/stock-home/stock-home-metrics.tsx +112 -0
  173. package/src/stock-home/stock-home-receiving-card.component.tsx +66 -0
  174. package/src/stock-home/stock-home-receiving.resource.tsx +17 -0
  175. package/src/stock-home/stock-home.scss +13 -0
  176. package/src/stock-home/useDisposalList.tsx +18 -0
  177. package/src/stock-home/useStockList.tsx +36 -0
  178. package/src/stock-items/add-bulk-stock-item/add-stock-items-bulk-import-action-button.component.tsx +26 -0
  179. package/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.component.tsx +109 -0
  180. package/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.resource.ts +14 -0
  181. package/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.scss +0 -0
  182. package/src/stock-items/add-stock-item/add-stock-action-button.component.tsx +21 -0
  183. package/src/stock-items/add-stock-item/add-stock-item.component.tsx +84 -0
  184. package/src/stock-items/add-stock-item/add-stock-item.resource.tsx +36 -0
  185. package/src/stock-items/add-stock-item/add-stock-item.scss +5 -0
  186. package/src/stock-items/add-stock-item/batch-information/batch-information.component.tsx +98 -0
  187. package/src/stock-items/add-stock-item/batch-information/batch-information.resource.tsx +71 -0
  188. package/src/stock-items/add-stock-item/batch-information/batch-information.scss +0 -0
  189. package/src/stock-items/add-stock-item/concepts-selector/concepts-selector.component.tsx +79 -0
  190. package/src/stock-items/add-stock-item/concepts-selector/concepts-selector.resource.tsx +0 -0
  191. package/src/stock-items/add-stock-item/concepts-selector/concepts-selector.scss +0 -0
  192. package/src/stock-items/add-stock-item/concepts-selector/concepts-selector.test.tsx +8 -0
  193. package/src/stock-items/add-stock-item/dispensing-package-measurement/dispensing-package-measurement.component.tsx +76 -0
  194. package/src/stock-items/add-stock-item/dispensing-unit-selector/dispensing-unit-selector.component.tsx +66 -0
  195. package/src/stock-items/add-stock-item/dispensing-unit-selector/dispensing-unit-selector.resource.tsx +0 -0
  196. package/src/stock-items/add-stock-item/dispensing-unit-selector/dispensing-unit-selector.scss +0 -0
  197. package/src/stock-items/add-stock-item/dispensing-unit-selector/dispensing-unit-selector.test.tsx +8 -0
  198. package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +83 -0
  199. package/src/stock-items/add-stock-item/drug-selector/drug-selector.resource.tsx +50 -0
  200. package/src/stock-items/add-stock-item/drug-selector/drug-selector.scss +0 -0
  201. package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +255 -0
  202. package/src/stock-items/add-stock-item/packaging-units/packaging-units.resource.tsx +38 -0
  203. package/src/stock-items/add-stock-item/packaging-units/packaging-units.scss +21 -0
  204. package/src/stock-items/add-stock-item/packaging-units/validationSchema.ts +14 -0
  205. package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +95 -0
  206. package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.component.tsx +70 -0
  207. package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.resource.tsx +0 -0
  208. package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.scss +0 -0
  209. package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.test.tsx +8 -0
  210. package/src/stock-items/add-stock-item/quantities/quantities.component.tsx +83 -0
  211. package/src/stock-items/add-stock-item/quantities/quantities.resource.tsx +69 -0
  212. package/src/stock-items/add-stock-item/quantities/quantities.scss +0 -0
  213. package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx +67 -0
  214. package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.resource.tsx +0 -0
  215. package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.scss +0 -0
  216. package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.test.tsx +8 -0
  217. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +239 -0
  218. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.resource.tsx +14 -0
  219. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.scss +13 -0
  220. package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rule-button.component.tsx +30 -0
  221. package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.component.tsx +424 -0
  222. package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.scss +18 -0
  223. package/src/stock-items/add-stock-item/stock-item-rules/delete-stock-rule-modal.component.tsx +47 -0
  224. package/src/stock-items/add-stock-item/stock-item-rules/edit-stock-rule.component.tsx +37 -0
  225. package/src/stock-items/add-stock-item/stock-item-rules/edit-stock-rule.scss +0 -0
  226. package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.component.tsx +222 -0
  227. package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.resource.tsx +72 -0
  228. package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.scss +13 -0
  229. package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-delete.component.tsx +67 -0
  230. package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-delete.scss +0 -0
  231. package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-filter.component.tsx +38 -0
  232. package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-filter.scss +13 -0
  233. package/src/stock-items/add-stock-item/stock-item-rules/stock-rules.resource.ts +79 -0
  234. package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +132 -0
  235. package/src/stock-items/add-stock-item/stock-rules/stock-rules.component.tsx +16 -0
  236. package/src/stock-items/add-stock-item/stock-rules/stock-rules.resource.tsx +0 -0
  237. package/src/stock-items/add-stock-item/stock-rules/stock-rules.scss +0 -0
  238. package/src/stock-items/add-stock-item/transactions/transactions.component.tsx +151 -0
  239. package/src/stock-items/add-stock-item/transactions/transactions.resource.tsx +109 -0
  240. package/src/stock-items/add-stock-item/transactions/transactions.scss +0 -0
  241. package/src/stock-items/components/filter-stock-items/filter-stock-items.component.tsx +28 -0
  242. package/src/stock-items/components/filter-stock-items/filter-stock-items.resource.tsx +0 -0
  243. package/src/stock-items/components/filter-stock-items/filter-stock-items.scss +3 -0
  244. package/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx +30 -0
  245. package/src/stock-items/stock-item.utils.tsx +62 -0
  246. package/src/stock-items/stock-items-table.component.tsx +266 -0
  247. package/src/stock-items/stock-items-table.resource.ts +58 -0
  248. package/src/stock-items/stock-items-table.scss +66 -0
  249. package/src/stock-items/stock-items.component.tsx +12 -0
  250. package/src/stock-items/stock-items.resource.ts +365 -0
  251. package/src/stock-items/types.ts +8 -0
  252. package/src/stock-items/validationSchema.ts +67 -0
  253. package/src/stock-locations/stock-locations-table.component.tsx +69 -0
  254. package/src/stock-locations/stock-locations-table.resource.tsx +73 -0
  255. package/src/stock-locations/stock-locations-table.scss +0 -0
  256. package/src/stock-locations/stock-locations.component.tsx +12 -0
  257. package/src/stock-locations/stock-locations.resource.ts +0 -0
  258. package/src/stock-lookups/stock-lookups.resource.ts +306 -0
  259. package/src/stock-management-admin-card-link.component.tsx +29 -0
  260. package/src/stock-management-header/stock-management-Illustration.tsx +35 -0
  261. package/src/stock-management-header/stock-management-header.component.tsx +37 -0
  262. package/src/stock-management-header/stock-management-header.scss +58 -0
  263. package/src/stock-management.component.tsx +6 -0
  264. package/src/stock-operations/add-stock-operation/add-stock-operation.component.tsx +491 -0
  265. package/src/stock-operations/add-stock-operation/add-stock-operation.resource.tsx +33 -0
  266. package/src/stock-operations/add-stock-operation/add-stock-operation.scss +44 -0
  267. package/src/stock-operations/add-stock-operation/add-stock-operation.utils.tsx +241 -0
  268. package/src/stock-operations/add-stock-operation/add-stock-utils.ts +110 -0
  269. package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +352 -0
  270. package/src/stock-operations/add-stock-operation/stock-items-addition-row.component.tsx +347 -0
  271. package/src/stock-operations/add-stock-operation/stock-items-addition-row.resource.tsx +0 -0
  272. package/src/stock-operations/add-stock-operation/stock-items-addition-row.scss +0 -0
  273. package/src/stock-operations/add-stock-operation/stock-items-addition-row.test.tsx +11 -0
  274. package/src/stock-operations/add-stock-operation/stock-items-addition.component.scss +5 -0
  275. package/src/stock-operations/add-stock-operation/stock-items-addition.component.tsx +272 -0
  276. package/src/stock-operations/add-stock-operation/stock-operation-context/useStockOperationContext.tsx +22 -0
  277. package/src/stock-operations/add-stock-operation/stock-operation-submission.component.tsx +188 -0
  278. package/src/stock-operations/add-stock-operation/types.ts +55 -0
  279. package/src/stock-operations/add-stock-operation/validationSchema.ts +45 -0
  280. package/src/stock-operations/batch-no-selector/batch-no-selector.component.tsx +100 -0
  281. package/src/stock-operations/batch-no-selector/batch-no-selector.resource.tsx +46 -0
  282. package/src/stock-operations/batch-no-selector/batch-no-selector.scss +0 -0
  283. package/src/stock-operations/batch-no-selector/batch-no-selector.test.tsx +11 -0
  284. package/src/stock-operations/edit-stock-operation/edit-stock-operation-action-menu.component.tsx +73 -0
  285. package/src/stock-operations/party-selector/party-selector.component.tsx +58 -0
  286. package/src/stock-operations/qty-uom-selector/qty-uom-selector.component.tsx +65 -0
  287. package/src/stock-operations/qty-uom-selector/qty-uom-selector.resource.tsx +0 -0
  288. package/src/stock-operations/qty-uom-selector/qty-uom-selector.scss +0 -0
  289. package/src/stock-operations/qty-uom-selector/qty-uom-selector.test.tsx +11 -0
  290. package/src/stock-operations/stock-item-selector/stock-item-selector.component.tsx +74 -0
  291. package/src/stock-operations/stock-item-selector/stock-item-selector.resource.tsx +47 -0
  292. package/src/stock-operations/stock-item-selector/stock-item-selector.scss +0 -0
  293. package/src/stock-operations/stock-item-selector/stock-item-selector.test.tsx +11 -0
  294. package/src/stock-operations/stock-operation-operations-filter/stock-operation-operations-filter.component.tsx +27 -0
  295. package/src/stock-operations/stock-operation-operations-filter/stock-operation-operations-filter.scss +13 -0
  296. package/src/stock-operations/stock-operation-reason-selector/stock-operation-reason-selector.component.tsx +65 -0
  297. package/src/stock-operations/stock-operation-sources-filter/stock-operation-sources-filter.component.tsx +30 -0
  298. package/src/stock-operations/stock-operation-sources-filter/stock-operation-sources-filter.scss +13 -0
  299. package/src/stock-operations/stock-operation-statuses-filter/stock-operation-statuses-filter.component.tsx +32 -0
  300. package/src/stock-operations/stock-operation-statuses-filter/stock-operation-statuses-filter.scss +13 -0
  301. package/src/stock-operations/stock-operation-types-selector/stock-operation-types-selector.component.tsx +80 -0
  302. package/src/stock-operations/stock-operation.utils.tsx +106 -0
  303. package/src/stock-operations/stock-operations-dialog/stock-operations-approve-button.component.tsx +36 -0
  304. package/src/stock-operations/stock-operations-dialog/stock-operations-approve-dispatch-button.component.tsx +36 -0
  305. package/src/stock-operations/stock-operations-dialog/stock-operations-cancel-button.component.tsx +37 -0
  306. package/src/stock-operations/stock-operations-dialog/stock-operations-complete-button.component.tsx +36 -0
  307. package/src/stock-operations/stock-operations-dialog/stock-operations-completed-dispatch-button.component.tsx +36 -0
  308. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx +167 -0
  309. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss +14 -0
  310. package/src/stock-operations/stock-operations-dialog/stock-operations-issue-stock-button.component.tsx +58 -0
  311. package/src/stock-operations/stock-operations-dialog/stock-operations-print-button.component.tsx +160 -0
  312. package/src/stock-operations/stock-operations-dialog/stock-operations-reject-button.component.tsx +37 -0
  313. package/src/stock-operations/stock-operations-dialog/stock-operations-return-button.component.tsx +37 -0
  314. package/src/stock-operations/stock-operations-table.component.tsx +524 -0
  315. package/src/stock-operations/stock-operations-table.resource.tsx +77 -0
  316. package/src/stock-operations/stock-operations-table.scss +0 -0
  317. package/src/stock-operations/stock-operations.component.tsx +12 -0
  318. package/src/stock-operations/stock-operations.resource.ts +238 -0
  319. package/src/stock-operations/stock-print-reports/GoodsReceivedNote.tsx +147 -0
  320. package/src/stock-operations/stock-print-reports/RequisitionDocument.tsx +153 -0
  321. package/src/stock-operations/stock-print-reports/StockOperationReport.tsx +133 -0
  322. package/src/stock-operations/stock-print-reports/StockTransferDocument.tsx +161 -0
  323. package/src/stock-operations/swr-revalidation.ts +7 -0
  324. package/src/stock-operations/users-selector/users-selector.component.tsx +77 -0
  325. package/src/stock-operations/users-selector/users-selector.resource.tsx +47 -0
  326. package/src/stock-operations/validation-schema.ts +195 -0
  327. package/src/stock-reports/ReportType.ts +63 -0
  328. package/src/stock-reports/stock-reports.component.tsx +0 -0
  329. package/src/stock-reports/stock-reports.resource.ts +0 -0
  330. package/src/stock-settings/stock-settings.component.tsx +11 -0
  331. package/src/stock-settings/stock-settings.resource.ts +0 -0
  332. package/src/stock-sources/add-stock-source-button.component.tsx +21 -0
  333. package/src/stock-sources/add-stock-sources/add-stock-sources.component.tsx +152 -0
  334. package/src/stock-sources/add-stock-sources/add-stock-sources.scss +18 -0
  335. package/src/stock-sources/delete-stock-modal.component.tsx +47 -0
  336. package/src/stock-sources/edit-stock-source/edit-stock-source.component.tsx +35 -0
  337. package/src/stock-sources/edit-stock-source/edit-stock-source.scss +0 -0
  338. package/src/stock-sources/stock-sources-delete/stock-sources-delate.scss +0 -0
  339. package/src/stock-sources/stock-sources-delete/stock-sources-delete.component.tsx +72 -0
  340. package/src/stock-sources/stock-sources-filter/stock-sources-filter.component.tsx +35 -0
  341. package/src/stock-sources/stock-sources-filter/stock-sources-filter.scss +13 -0
  342. package/src/stock-sources/stock-sources-items-table.component.tsx +213 -0
  343. package/src/stock-sources/stock-sources-items-table.resource.ts +56 -0
  344. package/src/stock-sources/stock-sources.component.tsx +12 -0
  345. package/src/stock-sources/stock-sources.resource.ts +80 -0
  346. package/src/stock-sources/stock-sources.scss +220 -0
  347. package/src/stock-sources/swr-revalidation.ts +7 -0
  348. package/src/stock-tabs/commodity-tabs.component.tsx +43 -0
  349. package/src/stock-tabs/commodity-tabs.scss +0 -0
  350. package/src/stock-user-role-scopes/add-stock-user-role-scope-button.component.tsx +21 -0
  351. package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.component.tsx +525 -0
  352. package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.scss +37 -0
  353. package/src/stock-user-role-scopes/delete-stock-user-scope/delete-stock-user-scope.component.tsx +73 -0
  354. package/src/stock-user-role-scopes/delete-stock-user-scope/delete-stock-user-scope.scss +0 -0
  355. package/src/stock-user-role-scopes/delete-stock-user-scope-modal.component.tsx +47 -0
  356. package/src/stock-user-role-scopes/edit-stock-user-scope/edit-stock-user-scope-action-menu.component.tsx +35 -0
  357. package/src/stock-user-role-scopes/stock-user-role-scopes-items-table.component.tsx +284 -0
  358. package/src/stock-user-role-scopes/stock-user-role-scopes-items-table.resource.ts +31 -0
  359. package/src/stock-user-role-scopes/stock-user-role-scopes.component.tsx +12 -0
  360. package/src/stock-user-role-scopes/stock-user-role-scopes.resource.ts +76 -0
  361. package/src/stock-user-role-scopes/stock-user-role-scopes.scss +61 -0
  362. package/src/stock-user-role-scopes/swr-revalidation.ts +7 -0
  363. package/src/utils.ts +10 -0
  364. package/translations/en.json +24 -0
  365. package/tsconfig.json +23 -0
  366. package/webpack.config.js +1 -0
@@ -0,0 +1,73 @@
1
+ import { StockOperationFilter } from "../stock-operations/stock-operations.resource";
2
+ import { useMemo, useState } from "react";
3
+ import { usePagination } from "@openmrs/esm-framework";
4
+ import { useTranslation } from "react-i18next";
5
+ import { useStockLocations } from "../stock-lookups/stock-lookups.resource";
6
+
7
+ export function useStockLocationPages(filter: StockOperationFilter) {
8
+ const { locations, isErrorLocation, isLoadingLocations } =
9
+ useStockLocations(filter);
10
+
11
+ const pageSizes = [10, 20, 30, 40, 50];
12
+ const [currentPageSize, setPageSize] = useState(10);
13
+
14
+ const {
15
+ goTo,
16
+ results: paginatedQueueEntries,
17
+ currentPage,
18
+ } = usePagination(locations.results, currentPageSize);
19
+
20
+ const { t } = useTranslation();
21
+
22
+ const tableHeaders = useMemo(
23
+ () => [
24
+ {
25
+ id: 0,
26
+ header: t("name", "Name"),
27
+ key: "name",
28
+ },
29
+ {
30
+ id: 1,
31
+ header: t("tags", "Tags"),
32
+ key: "tags",
33
+ },
34
+ {
35
+ id: 2,
36
+ header: t("childLocations", "Child Locations"),
37
+ key: "childLocations",
38
+ },
39
+ {
40
+ id: 3,
41
+ header: t("actions", "Actions"),
42
+ key: "actions",
43
+ },
44
+ ],
45
+ [t]
46
+ );
47
+
48
+ const tableRows = useMemo(() => {
49
+ return locations?.results?.map((location) => ({
50
+ id: location?.uuid,
51
+ key: `key-${location?.uuid}`,
52
+ uuid: `${location?.uuid}`,
53
+ name: `${location?.name}`,
54
+ tags: location?.tags?.map((p) => p.display)?.join(", ") ?? "",
55
+ childLocations:
56
+ location?.childLocations?.map((p) => p.display)?.join(", ") ?? "",
57
+ }));
58
+ }, [locations?.results]);
59
+
60
+ return {
61
+ items: locations.results,
62
+ currentPage,
63
+ currentPageSize,
64
+ paginatedQueueEntries,
65
+ goTo,
66
+ pageSizes,
67
+ isLoadingLocations,
68
+ isErrorLocation,
69
+ setPageSize,
70
+ tableHeaders,
71
+ tableRows,
72
+ };
73
+ }
File without changes
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import StockLocationsItems from "./stock-locations-table.component";
3
+
4
+ function StockLocations() {
5
+ return (
6
+ <div style={{ margin: "5px" }}>
7
+ <StockLocationsItems />
8
+ </div>
9
+ );
10
+ }
11
+
12
+ export default StockLocations;
@@ -0,0 +1,306 @@
1
+ import {
2
+ FetchResponse,
3
+ OpenmrsResource,
4
+ fhirBaseUrl,
5
+ openmrsFetch,
6
+ useSession,
7
+ } from "@openmrs/esm-framework";
8
+ import { ResourceFilterCriteria, toQueryParams } from "../core/api/api";
9
+ import { PageableResult } from "../core/api/types/PageableResult";
10
+ import {
11
+ OpenMRSLocation,
12
+ OpenMRSLocationTag,
13
+ } from "../core/api/types/Location";
14
+ import useSWR from "swr";
15
+ import { Role } from "../core/api/types/identity/Role";
16
+ import { User } from "../core/api/types/identity/User";
17
+ import { StockOperationType } from "../core/api/types/stockOperation/StockOperationType";
18
+ import { Concept } from "../core/api/types/concept/Concept";
19
+ import { Party } from "../core/api/types/Party";
20
+ import { Drug } from "../core/api/types/concept/Drug";
21
+ import { Patient } from "../core/api/types/identity/Patient";
22
+ import { useMemo } from "react";
23
+ import { uniqBy } from "lodash-es";
24
+
25
+ export type PatientFilterCriteria = ResourceFilterCriteria;
26
+
27
+ export type UserFilterCriteria = ResourceFilterCriteria;
28
+
29
+ export type DrugFilterCriteria = ResourceFilterCriteria;
30
+
31
+ export type ConceptFilterCriteria = ResourceFilterCriteria;
32
+
33
+ export type LocationFilterCriteria = ResourceFilterCriteria;
34
+ interface FHIRResponse {
35
+ entry: Array<{ resource: fhir.Location }>;
36
+ total: number;
37
+ type: string;
38
+ resourceType: string;
39
+ }
40
+
41
+ // getLocations
42
+ export function useStockLocations(filter: LocationFilterCriteria) {
43
+ const apiUrl = `ws/rest/v1/location${toQueryParams(filter, false)}`;
44
+ const { data, error, isLoading } = useSWR<
45
+ {
46
+ data: PageableResult<OpenMRSLocation>;
47
+ },
48
+ Error
49
+ >(apiUrl, openmrsFetch);
50
+ return {
51
+ locations: data?.data || <PageableResult<OpenMRSLocation>>{},
52
+ isErrorLocation: error,
53
+ isLoadingLocations: isLoading,
54
+ };
55
+ }
56
+ /* Get locations tagged to perform stock related activities.
57
+ Unless a location is tag as main store, main pharmacy or dispensing, it will not be fetched.
58
+ */
59
+ export function useStockTagLocations() {
60
+ const apiUrl = `${fhirBaseUrl}/Location?_summary=data&_tag=main store,main pharmacy,dispensary `;
61
+ const { data, error, isLoading } = useSWR<{ data: FHIRResponse }>(
62
+ apiUrl,
63
+ openmrsFetch
64
+ );
65
+ const stockLocations = useMemo(
66
+ () => data?.data?.entry?.map((response) => response.resource) ?? [],
67
+ [data?.data?.entry]
68
+ );
69
+ return {
70
+ stockLocations: uniqBy(stockLocations, "id") ?? [],
71
+ isLoading,
72
+ error,
73
+ };
74
+ }
75
+
76
+ // getLocationWithIdByUuid
77
+ export function useLocationWithIdByUuid(id: string) {
78
+ const apiUrl = `ws/rest/v1/stockmanagement/location/${id}`;
79
+ const { data, error, isLoading } = useSWR<
80
+ {
81
+ data: PageableResult<OpenMRSLocation>;
82
+ },
83
+ Error
84
+ >(apiUrl, openmrsFetch);
85
+ return {
86
+ items: data.data ? data.data : [],
87
+ isLoading,
88
+ isError: error,
89
+ };
90
+ }
91
+
92
+ // deleteLocation
93
+ export function deleteLocation(id: string) {
94
+ const apiUrl = `ws/rest/v1/stockmanagement/location/${id}`;
95
+ const abortController = new AbortController();
96
+ return openmrsFetch(apiUrl, {
97
+ method: "DELETE",
98
+ headers: {
99
+ "Content-Type": "application/json",
100
+ },
101
+ signal: abortController.signal,
102
+ });
103
+ }
104
+
105
+ // getLocationTags
106
+ export function useLocationTags(q: string) {
107
+ const apiUrl = `ws/rest/v1/locationtag?v=default${
108
+ q && q.length > 0 ? "&q=" + encodeURIComponent(q) : ""
109
+ }`;
110
+ const { data, error, isLoading } = useSWR<
111
+ {
112
+ data: PageableResult<OpenMRSLocationTag>;
113
+ },
114
+ Error
115
+ >(apiUrl, openmrsFetch);
116
+ return {
117
+ items: data.data ? data.data : [],
118
+ isLoading,
119
+ isError: error,
120
+ };
121
+ }
122
+
123
+ // getRoles
124
+ export function useRoles(filter: ResourceFilterCriteria) {
125
+ const apiUrl = `ws/rest/v1/role${toQueryParams(filter)}`;
126
+ const { data, error, isLoading } = useSWR<
127
+ {
128
+ data: PageableResult<Role>;
129
+ },
130
+ Error
131
+ >(apiUrl, openmrsFetch);
132
+ return {
133
+ items: data?.data || <PageableResult<Role>>{},
134
+ isLoading,
135
+ isError: error,
136
+ };
137
+ }
138
+
139
+ // getStockOperationTypes
140
+ export function useStockOperationTypes() {
141
+ const apiUrl = `ws/rest/v1/stockmanagement/stockoperationtype?v=default`;
142
+ const { data, isLoading, error } = useSWR<
143
+ {
144
+ data: PageableResult<StockOperationType>;
145
+ },
146
+ Error
147
+ >(apiUrl, openmrsFetch);
148
+ return {
149
+ types: data?.data || <PageableResult<StockOperationType>>{},
150
+ isLoading,
151
+ isError: error,
152
+ };
153
+ }
154
+
155
+ export function getStockOperationTypes(): Promise<
156
+ FetchResponse<PageableResult<StockOperationType>>
157
+ > {
158
+ const apiUrl = `ws/rest/v1/stockmanagement/stockoperationtype?v=default`;
159
+ return openmrsFetch(apiUrl);
160
+ }
161
+
162
+ // getUsers
163
+ export function useUsers(filter: UserFilterCriteria) {
164
+ const apiUrl = `ws/rest/v1/user${toQueryParams(filter)}`;
165
+ const { data, error, isLoading } = useSWR<
166
+ {
167
+ data: PageableResult<User>;
168
+ },
169
+ Error
170
+ >(apiUrl, openmrsFetch);
171
+ return {
172
+ items: data?.data || <PageableResult<User>>{},
173
+ isLoading,
174
+ isError: error,
175
+ };
176
+ }
177
+
178
+ // getUser
179
+ export function useUser(id: string) {
180
+ const apiUrl = `ws/rest/v1/user${id}`;
181
+ const { data, error, isLoading } = useSWR<
182
+ {
183
+ data: User;
184
+ },
185
+ Error
186
+ >(apiUrl, openmrsFetch);
187
+ return {
188
+ data: data?.data || <User>{},
189
+ isLoading,
190
+ isError: error,
191
+ };
192
+ }
193
+
194
+ // getConceptById
195
+ export function useConceptById(id: string) {
196
+ const apiUrl = `ws/rest/v1/concept/${id}`;
197
+ const { data, error, isLoading } = useSWR<
198
+ {
199
+ data: Concept;
200
+ },
201
+ Error
202
+ >(apiUrl, openmrsFetch);
203
+ return {
204
+ items: data?.data || <Concept>{},
205
+ isLoading,
206
+ isError: error,
207
+ };
208
+ }
209
+
210
+ // getParties
211
+ export function useParties() {
212
+ const apiUrl = `ws/rest/v1/stockmanagement/party?v=default`;
213
+ const { data, error, isLoading } = useSWR<
214
+ {
215
+ data: PageableResult<Party>;
216
+ },
217
+ Error
218
+ >(apiUrl, openmrsFetch);
219
+ return {
220
+ items: data?.data || <PageableResult<Party>>{},
221
+ isLoading,
222
+ isError: error,
223
+ };
224
+ }
225
+
226
+ export function getParties(): Promise<FetchResponse<PageableResult<Party>>> {
227
+ const apiUrl = `ws/rest/v1/stockmanagement/party?v=default`;
228
+ return openmrsFetch(apiUrl);
229
+ }
230
+
231
+ // getDrugs
232
+ export function useDrugs(filter: DrugFilterCriteria) {
233
+ const apiUrl = `ws/rest/v1/drug${toQueryParams(filter)}`;
234
+ const { data, error, isLoading } = useSWR<
235
+ {
236
+ data: PageableResult<Drug>;
237
+ },
238
+ Error
239
+ >(apiUrl, openmrsFetch);
240
+ return {
241
+ items: data?.data || <PageableResult<Drug>>{},
242
+ isLoading,
243
+ isError: error,
244
+ };
245
+ }
246
+
247
+ // getConcepts
248
+ export function useConcepts(filter: ConceptFilterCriteria) {
249
+ const apiUrl = `ws/rest/v1/concept${toQueryParams(filter)}`;
250
+ const { data, error, isLoading } = useSWR<
251
+ {
252
+ data: PageableResult<Concept>;
253
+ },
254
+ Error
255
+ >(apiUrl, openmrsFetch);
256
+ return {
257
+ items: data?.data || <PageableResult<Concept>>{},
258
+ isLoading,
259
+ isError: error,
260
+ };
261
+ }
262
+
263
+ // getPatients
264
+ export function usePatients(filter: ConceptFilterCriteria) {
265
+ const apiUrl = `ws/rest/v1/patient${toQueryParams(filter)}`;
266
+ const { data, error, isLoading } = useSWR<
267
+ {
268
+ data: PageableResult<Patient>;
269
+ },
270
+ Error
271
+ >(apiUrl, openmrsFetch);
272
+ return {
273
+ items: data.data ? data.data : [],
274
+ isLoading,
275
+ isError: error,
276
+ };
277
+ }
278
+
279
+ type UserRole = {
280
+ results: Array<{
281
+ userUuid: string;
282
+ locations: Array<OpenmrsResource>;
283
+ operationTypes: Array<{
284
+ uuid: string;
285
+ operationTypeName: string;
286
+ operationTypeUuid: string;
287
+ }>;
288
+ }>;
289
+ };
290
+
291
+ export const useUserRoles = () => {
292
+ const { user: loggedInUser } = useSession();
293
+ const url = `/ws/rest/v1/stockmanagement/userrolescope`;
294
+ const { data, isLoading, error } = useSWR<{ data: UserRole }>(
295
+ url,
296
+ openmrsFetch
297
+ );
298
+ const currentUserRoles = data?.data?.results.find(
299
+ (user) => user.userUuid === loggedInUser.uuid
300
+ );
301
+ return {
302
+ userRoles: currentUserRoles,
303
+ isLoading,
304
+ error,
305
+ };
306
+ };
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import { useTranslation } from "react-i18next";
3
+ import { Layer, ClickableTile } from "@carbon/react";
4
+ import { ArrowRight } from "@carbon/react/icons";
5
+
6
+ const StockManagementCardLink: React.FC = () => {
7
+ const { t } = useTranslation();
8
+ const header = t("manageStock", "Manage Stock");
9
+ return (
10
+ <Layer>
11
+ <ClickableTile
12
+ href={window.getOpenmrsSpaBase() + "stock-management"}
13
+ rel="noopener noreferrer"
14
+ >
15
+ <div>
16
+ <div className="heading">{header}</div>
17
+ <div className="content">
18
+ {t("stockManagement", "Stock Management")}
19
+ </div>
20
+ </div>
21
+ <div className="iconWrapper">
22
+ <ArrowRight size={16} />
23
+ </div>
24
+ </ClickableTile>
25
+ </Layer>
26
+ );
27
+ };
28
+
29
+ export default StockManagementCardLink;
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+
3
+ const StockManagementIllustration: React.FC = () => {
4
+ return (
5
+ <svg
6
+ width="72"
7
+ height="72"
8
+ viewBox="0 0 62 58"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ >
11
+ <defs>
12
+ <path id="whv9q6f4ta" d="M0 0h62v30.508H0z" />
13
+ <path id="hp71ojgcnc" d="M0 0h24.603v26.571H0z" />
14
+ </defs>
15
+ <g fill="none">
16
+ <g opacity=".193" transform="matrix(-1 0 0 1 62 26.571)">
17
+ <path
18
+ d="M62 0c0 16.85-13.916 30.508-31.037 30.508S0 16.849 0 0h62z"
19
+ fill="var(--brand-03)"
20
+ mask="url(#rt0c8mo6eb)"
21
+ />
22
+ </g>
23
+ <g opacity=".396" transform="matrix(-1 0 0 1 60.032 0)">
24
+ <path
25
+ d="m24.603 26.571-13.35-23.51C9.592.141 5.884-.869 3.011.817.138 2.503-.855 6.272.804 9.193l9.874 17.378"
26
+ fill="var(--brand-03)"
27
+ mask="url(#hgianthqwd)"
28
+ />
29
+ </g>
30
+ </g>
31
+ </svg>
32
+ );
33
+ };
34
+
35
+ export default StockManagementIllustration;
@@ -0,0 +1,37 @@
1
+ import { formatDate, useSession } from "@openmrs/esm-framework";
2
+ import React from "react";
3
+ import styles from "./stock-management-header.scss";
4
+ import StockManagementIllustration from "./stock-management-Illustration";
5
+ import { Calendar, Location } from "@carbon/react/icons";
6
+ import { useTranslation } from "react-i18next";
7
+
8
+ export const StockManagementHeader: React.FC = () => {
9
+ const { t } = useTranslation();
10
+ const userSession = useSession();
11
+ const userLocation = userSession?.sessionLocation?.display;
12
+
13
+ return (
14
+ <div className={styles.header}>
15
+ <div className={styles["left-justified-items"]}>
16
+ <StockManagementIllustration />
17
+ <div className={styles["page-labels"]}>
18
+ <p>{t("home", "Home")}</p>
19
+ <p className={styles["page-name"]}>
20
+ {t("stockManagement", "Stock Management")}
21
+ </p>
22
+ </div>
23
+ </div>
24
+ <div className={styles["right-justified-items"]}>
25
+ <div className={styles["date-and-location"]}>
26
+ <Location size={16} />
27
+ <span className={styles.value}>{userLocation}</span>
28
+ <span className={styles.middot}>&middot;</span>
29
+ <Calendar size={16} />
30
+ <span className={styles.value}>
31
+ {formatDate(new Date(), { mode: "standard" })}
32
+ </span>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ );
37
+ };
@@ -0,0 +1,58 @@
1
+ @use '@carbon/styles/scss/colors';
2
+ @use '@carbon/styles/scss/spacing';
3
+ @use '@carbon/styles/scss/type';
4
+ @import '~@openmrs/esm-styleguide/src/vars';
5
+
6
+ .header {
7
+ @include type.type-style('body-compact-02');
8
+ color: colors.$gray-70;
9
+ height: spacing.$spacing-12;
10
+ background-color: $ui-02;
11
+ display: flex;
12
+ padding-left: 8px;
13
+ justify-content: space-between;
14
+ }
15
+
16
+ .left-justified-items {
17
+ display: flex;
18
+ flex-direction: row;
19
+ align-items: center;
20
+ cursor: pointer;
21
+ }
22
+
23
+ .right-justified-items {
24
+ @include type.type-style('body-compact-02');
25
+ color: colors.$gray-70;
26
+ margin: 0.5rem;
27
+ }
28
+
29
+ .page-name {
30
+ @include type.type-style('heading-04');
31
+ }
32
+
33
+ .page-labels {
34
+ margin: 1rem;
35
+ }
36
+
37
+ .middot {
38
+ margin: 0 0.5rem;
39
+ }
40
+
41
+ .date-and-location {
42
+ display: flex;
43
+ justify-content: flex-end;
44
+ align-items: center;
45
+ margin-right: 1rem;
46
+ }
47
+
48
+ .value {
49
+ margin-left: 0.25rem;
50
+ }
51
+
52
+ .middot {
53
+ margin: 0 0.5rem;
54
+ }
55
+
56
+ .view {
57
+ @include type.type-style('label-01');
58
+ }
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { ExtensionSlot } from "@openmrs/esm-framework";
3
+
4
+ export default function StockManagement() {
5
+ return <ExtensionSlot name="stock-management-dashboard-slot" />;
6
+ }