@openmrs/esm-dispensing-app 1.0.1-pre.99 → 1.1.1-pre.241

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 (108) 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/.yarn/versions/dc1d8cd4.yml +0 -0
  7. package/README.md +35 -0
  8. package/dist/153.js +1 -0
  9. package/dist/153.js.map +1 -0
  10. package/dist/294.js +1 -1
  11. package/dist/294.js.map +1 -0
  12. package/dist/361.js +2 -0
  13. package/dist/361.js.LICENSE.txt +24 -0
  14. package/dist/361.js.map +1 -0
  15. package/dist/484.js +1 -1
  16. package/dist/484.js.map +1 -0
  17. package/dist/49.js +1 -0
  18. package/dist/49.js.map +1 -0
  19. package/dist/559.js +1 -0
  20. package/dist/559.js.map +1 -0
  21. package/dist/574.js +1 -1
  22. package/dist/641.js +1 -0
  23. package/dist/641.js.map +1 -0
  24. package/dist/757.js +1 -0
  25. package/dist/771.js +1 -0
  26. package/dist/771.js.map +1 -0
  27. package/dist/800.js +2 -0
  28. package/dist/800.js.LICENSE.txt +5 -0
  29. package/dist/800.js.map +1 -0
  30. package/dist/935.js +1 -1
  31. package/dist/935.js.map +1 -0
  32. package/dist/main.js +1 -1
  33. package/dist/main.js.map +1 -0
  34. package/dist/openmrs-esm-dispensing-app.js +1 -1
  35. package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +142 -74
  36. package/dist/openmrs-esm-dispensing-app.js.map +1 -0
  37. package/dist/routes.json +1 -0
  38. package/jest.config.js +15 -0
  39. package/package.json +14 -10
  40. package/src/components/action-buttons.component.test.tsx +244 -0
  41. package/src/components/action-buttons.component.tsx +137 -0
  42. package/src/components/action-buttons.scss +5 -0
  43. package/src/components/medication-card.component.test.tsx +40 -0
  44. package/src/components/medication-card.component.tsx +10 -17
  45. package/src/components/medication-card.scss +5 -2
  46. package/src/components/medication-dispense-review.scss +9 -0
  47. package/src/components/medication-event.component.tsx +94 -0
  48. package/src/components/{medication-event-card.scss → medication-event.scss} +0 -9
  49. package/src/components/patient-details.component.tsx +4 -27
  50. package/src/components/patient-details.scss +0 -3
  51. package/src/config-schema.ts +141 -2
  52. package/src/constants.ts +24 -0
  53. package/src/dashboard/dispensing-dashboard.component.tsx +38 -0
  54. package/src/declarations.d.tsx +2 -0
  55. package/src/dispensing-tiles/dispensing-tiles.resource.tsx +2 -0
  56. package/src/dispensing.component.tsx +2 -12
  57. package/src/dispensing.test.tsx +1 -1
  58. package/src/forms/close-dispense-form.component.tsx +236 -0
  59. package/src/forms/dispense-form.component.tsx +124 -142
  60. package/src/forms/{dispense-form.scss → forms.scss} +6 -0
  61. package/src/forms/medication-dispense-review.component.test.tsx +142 -0
  62. package/src/forms/medication-dispense-review.component.tsx +562 -0
  63. package/src/forms/overlay/overlay.component.tsx +3 -1
  64. package/src/forms/pause-dispense-form.component.tsx +236 -0
  65. package/src/history/history-and-comments.component.tsx +326 -0
  66. package/src/history/history-and-comments.scss +57 -0
  67. package/src/index.ts +20 -35
  68. package/src/location/location.resource.test.tsx +189 -0
  69. package/src/location/location.resource.tsx +27 -0
  70. package/src/medication/medication.resource.test.tsx +181 -0
  71. package/src/medication/medication.resource.tsx +54 -0
  72. package/src/medication-dispense/medication-dispense.resource.test.tsx +294 -0
  73. package/src/medication-dispense/medication-dispense.resource.tsx +113 -45
  74. package/src/medication-request/medication-request.resource.test.tsx +1389 -0
  75. package/src/medication-request/medication-request.resource.tsx +145 -84
  76. package/src/pharmacy-header/pharmacy-header.component.tsx +5 -3
  77. package/src/pharmacy-header/pharmacy-header.scss +2 -2
  78. package/src/pharmacy-header/pharmacy-illustration.component.tsx +4 -4
  79. package/src/prescriptions/prescription-details.component.tsx +139 -0
  80. package/src/{components → prescriptions}/prescription-details.scss +13 -3
  81. package/src/{components → prescriptions}/prescription-expanded.component.tsx +9 -36
  82. package/src/{components → prescriptions}/prescription-expanded.scss +0 -18
  83. package/src/prescriptions/prescription-tab-lists.component.tsx +64 -18
  84. package/src/prescriptions/prescription-tab-panel.component.tsx +46 -26
  85. package/src/prescriptions/prescriptions.scss +8 -0
  86. package/src/routes.json +30 -0
  87. package/src/types.ts +196 -71
  88. package/src/utils.test.ts +3001 -0
  89. package/src/utils.ts +663 -42
  90. package/translations/en.json +60 -2
  91. package/translations/fr.json +100 -0
  92. package/.github/workflows/node.js.yml +0 -95
  93. package/dist/247.js +0 -1
  94. package/dist/299.js +0 -1
  95. package/dist/595.js +0 -2
  96. package/dist/595.js.LICENSE.txt +0 -1
  97. package/dist/781.js +0 -1
  98. package/dist/900.js +0 -2
  99. package/dist/900.js.LICENSE.txt +0 -29
  100. package/dist/96.js +0 -1
  101. package/dist/openmrs-esm-dispensing-app.old +0 -1
  102. package/jest.config.json +0 -18
  103. package/src/components/history-and-comments.component.tsx +0 -117
  104. package/src/components/history-and-comments.scss +0 -30
  105. package/src/components/medication-dispense-review.component.tsx +0 -263
  106. package/src/components/medication-event-card.component.tsx +0 -90
  107. package/src/components/prescription-details.component.tsx +0 -67
  108. 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