@openmrs/esm-dispensing-app 1.0.1-pre.99 → 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.
- package/.eslintrc +3 -1
- package/.husky/pre-commit +0 -0
- package/.husky/pre-push +0 -0
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +541 -0
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +550 -0
- package/README.md +35 -0
- package/jest.config.js +15 -0
- package/package.json +13 -10
- package/src/components/action-buttons.component.test.tsx +244 -0
- package/src/components/action-buttons.component.tsx +137 -0
- package/src/components/action-buttons.scss +5 -0
- package/src/components/medication-card.component.test.tsx +40 -0
- package/src/components/medication-card.component.tsx +10 -17
- package/src/components/medication-card.scss +5 -2
- package/src/components/medication-dispense-review.scss +9 -0
- package/src/components/medication-event.component.tsx +94 -0
- package/src/components/{medication-event-card.scss → medication-event.scss} +0 -9
- package/src/components/patient-details.component.tsx +4 -27
- package/src/components/patient-details.scss +0 -3
- package/src/config-schema.ts +141 -2
- package/src/constants.ts +24 -0
- package/src/dashboard/dispensing-dashboard.component.tsx +38 -0
- package/src/declarations.d.tsx +2 -0
- package/src/dispensing-tiles/dispensing-tiles.resource.tsx +2 -0
- package/src/dispensing.component.tsx +2 -12
- package/src/dispensing.test.tsx +1 -1
- package/src/forms/close-dispense-form.component.tsx +236 -0
- package/src/forms/dispense-form.component.tsx +124 -142
- package/src/forms/{dispense-form.scss → forms.scss} +6 -0
- package/src/forms/medication-dispense-review.component.test.tsx +142 -0
- package/src/forms/medication-dispense-review.component.tsx +562 -0
- package/src/forms/overlay/overlay.component.tsx +3 -1
- package/src/forms/pause-dispense-form.component.tsx +236 -0
- package/src/history/history-and-comments.component.tsx +326 -0
- package/src/history/history-and-comments.scss +57 -0
- package/src/index.ts +20 -35
- package/src/location/location.resource.test.tsx +189 -0
- package/src/location/location.resource.tsx +27 -0
- package/src/medication/medication.resource.test.tsx +181 -0
- package/src/medication/medication.resource.tsx +54 -0
- package/src/medication-dispense/medication-dispense.resource.test.tsx +294 -0
- package/src/medication-dispense/medication-dispense.resource.tsx +113 -45
- package/src/medication-request/medication-request.resource.test.tsx +1389 -0
- package/src/medication-request/medication-request.resource.tsx +145 -84
- package/src/pharmacy-header/pharmacy-header.component.tsx +5 -3
- package/src/pharmacy-header/pharmacy-header.scss +2 -2
- package/src/pharmacy-header/pharmacy-illustration.component.tsx +4 -4
- package/src/prescriptions/prescription-details.component.tsx +139 -0
- package/src/{components → prescriptions}/prescription-details.scss +13 -3
- package/src/{components → prescriptions}/prescription-expanded.component.tsx +9 -36
- package/src/{components → prescriptions}/prescription-expanded.scss +0 -18
- package/src/prescriptions/prescription-tab-lists.component.tsx +64 -18
- package/src/prescriptions/prescription-tab-panel.component.tsx +46 -26
- package/src/prescriptions/prescriptions.scss +8 -0
- package/src/routes.json +30 -0
- package/src/types.ts +196 -71
- package/src/utils.test.ts +3001 -0
- package/src/utils.ts +663 -42
- package/translations/en.json +60 -2
- package/translations/fr.json +100 -0
- package/.github/workflows/node.js.yml +0 -95
- package/dist/247.js +0 -1
- package/dist/294.js +0 -2
- package/dist/294.js.LICENSE.txt +0 -9
- package/dist/299.js +0 -1
- package/dist/484.js +0 -1
- package/dist/574.js +0 -1
- package/dist/595.js +0 -2
- package/dist/595.js.LICENSE.txt +0 -1
- package/dist/781.js +0 -1
- package/dist/900.js +0 -2
- package/dist/900.js.LICENSE.txt +0 -29
- package/dist/935.js +0 -2
- package/dist/935.js.LICENSE.txt +0 -19
- package/dist/96.js +0 -1
- package/dist/main.js +0 -1
- package/dist/openmrs-esm-dispensing-app.js +0 -1
- package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +0 -330
- package/dist/openmrs-esm-dispensing-app.old +0 -1
- package/jest.config.json +0 -18
- package/src/components/history-and-comments.component.tsx +0 -117
- package/src/components/history-and-comments.scss +0 -30
- package/src/components/medication-dispense-review.component.tsx +0 -263
- package/src/components/medication-event-card.component.tsx +0 -90
- package/src/components/prescription-details.component.tsx +0 -67
- 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
|