@openmrs/esm-dispensing-app 1.0.1-pre.96 → 1.1.0

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 (86) hide show
  1. package/.eslintrc +3 -1
  2. package/.husky/pre-commit +0 -0
  3. package/.husky/pre-push +0 -0
  4. package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
  5. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
  6. package/README.md +35 -0
  7. package/jest.config.js +15 -0
  8. package/package.json +13 -10
  9. package/src/components/action-buttons.component.test.tsx +244 -0
  10. package/src/components/action-buttons.component.tsx +137 -0
  11. package/src/components/action-buttons.scss +5 -0
  12. package/src/components/medication-card.component.test.tsx +40 -0
  13. package/src/components/medication-card.component.tsx +10 -17
  14. package/src/components/medication-card.scss +5 -2
  15. package/src/components/medication-dispense-review.scss +9 -0
  16. package/src/components/medication-event.component.tsx +94 -0
  17. package/src/components/{medication-event-card.scss → medication-event.scss} +0 -9
  18. package/src/components/patient-details.component.tsx +4 -27
  19. package/src/components/patient-details.scss +0 -3
  20. package/src/config-schema.ts +141 -2
  21. package/src/constants.ts +24 -0
  22. package/src/dashboard/dispensing-dashboard.component.tsx +38 -0
  23. package/src/declarations.d.tsx +2 -0
  24. package/src/dispensing-tiles/dispensing-tiles.resource.tsx +2 -0
  25. package/src/dispensing.component.tsx +2 -12
  26. package/src/dispensing.test.tsx +1 -1
  27. package/src/forms/close-dispense-form.component.tsx +236 -0
  28. package/src/forms/dispense-form.component.tsx +124 -142
  29. package/src/forms/{dispense-form.scss → forms.scss} +6 -0
  30. package/src/forms/medication-dispense-review.component.test.tsx +142 -0
  31. package/src/forms/medication-dispense-review.component.tsx +562 -0
  32. package/src/forms/overlay/overlay.component.tsx +3 -1
  33. package/src/forms/pause-dispense-form.component.tsx +236 -0
  34. package/src/history/history-and-comments.component.tsx +326 -0
  35. package/src/history/history-and-comments.scss +57 -0
  36. package/src/index.ts +20 -35
  37. package/src/location/location.resource.test.tsx +189 -0
  38. package/src/location/location.resource.tsx +27 -0
  39. package/src/medication/medication.resource.test.tsx +181 -0
  40. package/src/medication/medication.resource.tsx +54 -0
  41. package/src/medication-dispense/medication-dispense.resource.test.tsx +294 -0
  42. package/src/medication-dispense/medication-dispense.resource.tsx +113 -45
  43. package/src/medication-request/medication-request.resource.test.tsx +1389 -0
  44. package/src/medication-request/medication-request.resource.tsx +145 -84
  45. package/src/pharmacy-header/pharmacy-header.component.tsx +5 -3
  46. package/src/pharmacy-header/pharmacy-header.scss +2 -2
  47. package/src/pharmacy-header/pharmacy-illustration.component.tsx +4 -4
  48. package/src/prescriptions/prescription-details.component.tsx +139 -0
  49. package/src/{components → prescriptions}/prescription-details.scss +13 -3
  50. package/src/{components → prescriptions}/prescription-expanded.component.tsx +9 -36
  51. package/src/{components → prescriptions}/prescription-expanded.scss +0 -18
  52. package/src/prescriptions/prescription-tab-lists.component.tsx +64 -18
  53. package/src/prescriptions/prescription-tab-panel.component.tsx +46 -26
  54. package/src/prescriptions/prescriptions.scss +8 -0
  55. package/src/routes.json +30 -0
  56. package/src/types.ts +196 -71
  57. package/src/utils.test.ts +3001 -0
  58. package/src/utils.ts +664 -43
  59. package/translations/en.json +60 -2
  60. package/translations/fr.json +100 -0
  61. package/.github/workflows/node.js.yml +0 -95
  62. package/dist/247.js +0 -1
  63. package/dist/294.js +0 -2
  64. package/dist/294.js.LICENSE.txt +0 -9
  65. package/dist/299.js +0 -1
  66. package/dist/484.js +0 -1
  67. package/dist/574.js +0 -1
  68. package/dist/595.js +0 -2
  69. package/dist/595.js.LICENSE.txt +0 -1
  70. package/dist/781.js +0 -1
  71. package/dist/900.js +0 -2
  72. package/dist/900.js.LICENSE.txt +0 -29
  73. package/dist/935.js +0 -2
  74. package/dist/935.js.LICENSE.txt +0 -19
  75. package/dist/96.js +0 -1
  76. package/dist/main.js +0 -1
  77. package/dist/openmrs-esm-dispensing-app.js +0 -1
  78. package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +0 -330
  79. package/dist/openmrs-esm-dispensing-app.old +0 -1
  80. package/jest.config.json +0 -18
  81. package/src/components/history-and-comments.component.tsx +0 -117
  82. package/src/components/history-and-comments.scss +0 -30
  83. package/src/components/medication-dispense-review.component.tsx +0 -263
  84. package/src/components/medication-event-card.component.tsx +0 -90
  85. package/src/components/prescription-details.component.tsx +0 -67
  86. package/src/forms/initialize-dispense-form-from-requests.component.tsx +0 -56
package/.eslintrc CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
3
3
  "parser": "@typescript-eslint/parser",
4
+ "plugins": ["unused-imports"],
4
5
  "ignorePatterns": ["**/*.test.tsx"],
5
6
  "rules": {
6
7
  "no-restricted-imports": [
@@ -27,6 +28,7 @@
27
28
  }
28
29
  ]
29
30
  }
30
- ]
31
+ ],
32
+ "unused-imports/no-unused-imports-ts": "error"
31
33
  }
32
34
  }
package/.husky/pre-commit CHANGED
File without changes
package/.husky/pre-push CHANGED
File without changes