@openmrs/esm-stock-management-app 3.0.1-pre.803 → 3.0.1-pre.818
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 +10 -1
- package/README.md +4 -2
- package/dist/600.js.map +1 -1
- package/dist/606.js.map +1 -1
- package/dist/793.js +1 -1
- package/dist/793.js.map +1 -1
- package/dist/880.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +15 -15
- package/dist/routes.json +1 -1
- package/package.json +3 -2
- package/src/core/api/api.ts +1 -1
- package/src/core/api/types/Auditable.ts +2 -2
- package/src/core/api/types/BaseOpenmrsData.ts +2 -2
- package/src/core/api/types/BaseOpenmrsMetadata.ts +2 -2
- package/src/core/api/types/BaseOpenmrsObject.ts +1 -1
- package/src/core/api/types/BatchJob.ts +1 -1
- package/src/core/api/types/LocationTree.ts +1 -1
- package/src/core/api/types/OpenmrsData.ts +3 -3
- package/src/core/api/types/OpenmrsMetadata.ts +3 -3
- package/src/core/api/types/Retireable.ts +2 -2
- package/src/core/api/types/Voidable.ts +2 -2
- package/src/core/api/types/concept/Concept.ts +4 -4
- package/src/core/api/types/concept/ConceptName.ts +2 -2
- package/src/core/api/types/concept/Drug.ts +2 -2
- package/src/core/api/types/identity/Patient.ts +1 -1
- package/src/core/api/types/identity/Privilege.ts +1 -1
- package/src/core/api/types/identity/Session.ts +3 -3
- package/src/core/api/types/identity/User.ts +2 -2
- package/src/core/api/types/identity/UserRoleScope.ts +3 -3
- package/src/core/api/types/identity/UserRoleScopeLocation.ts +1 -1
- package/src/core/api/types/identity/UserRoleScopeOperationType.ts +1 -1
- package/src/core/api/types/stockItem/StockBatch.ts +2 -2
- package/src/core/api/types/stockItem/StockItem.ts +6 -6
- package/src/core/api/types/stockItem/StockItemPackagingUOM.ts +3 -3
- package/src/core/api/types/stockItem/StockItemReference.ts +3 -3
- package/src/core/api/types/stockItem/StockItemTransaction.ts +1 -1
- package/src/core/api/types/stockItem/StockRule.ts +1 -1
- package/src/core/api/types/stockOperation/StockOperation.ts +8 -8
- package/src/core/api/types/stockOperation/StockOperationDTO.ts +3 -3
- package/src/core/api/types/stockOperation/StockOperationItem.ts +5 -5
- package/src/core/api/types/stockOperation/StockOperationItemDTO.ts +2 -2
- package/src/core/api/types/stockOperation/StockOperationType.ts +2 -2
- package/src/core/api/types/stockOperation/StockSource.ts +2 -2
- package/src/core/components/carbon/controlled-combo-box/controlled-combo-box.component.tsx +1 -1
- package/src/core/components/carbon/controlled-dropdown/controlled-dropdown.component.tsx +2 -2
- package/src/core/components/carbon/controlled-number-input/controlled-number-input.component.tsx +3 -3
- package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.component.tsx +3 -3
- package/src/core/components/carbon/controlled-text-area/controlled-text-area.component.tsx +3 -3
- package/src/core/components/carbon/controlled-text-input/controlled-text-input.component.tsx +3 -3
- package/src/core/components/carbon/types.ts +1 -1
- package/src/core/components/side-nav/side-nav.component.tsx +1 -1
- package/src/core/components/table/table.component.tsx +1 -1
- package/src/core/components/table/types.ts +1 -1
- package/src/core/components/tabs/types.ts +1 -1
- package/src/core/components/tabs/vertical-tabs.component.tsx +1 -1
- package/src/core/print/PrintTemplate.ts +1 -1
- package/src/core/utils/utils.ts +1 -1
- package/src/stock-batch/stock-batch.resource.ts +4 -4
- package/src/stock-home/stock-home-inventory-expiry.resource.tsx +1 -1
- package/src/stock-home/stock-home-inventory-items.resource.tsx +1 -1
- package/src/stock-home/stock-home-issuing.resource.tsx +1 -1
- package/src/stock-home/stock-home-metrics.tsx +1 -1
- package/src/stock-home/stock-home-receiving.resource.tsx +1 -1
- package/src/stock-home/useDisposalList.tsx +1 -1
- package/src/stock-items/add-stock-item/add-stock-item.component.tsx +3 -3
- package/src/stock-items/add-stock-item/add-stock-item.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/add-stock-item.test.tsx +1 -1
- package/src/stock-items/add-stock-item/batch-information/batch-information-locations/batch-information-locations-filter.component.tsx +2 -2
- package/src/stock-items/add-stock-item/batch-information/batch-information.component.tsx +1 -1
- package/src/stock-items/add-stock-item/batch-information/batch-information.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/concepts-selector/concepts-selector.component.tsx +3 -3
- package/src/stock-items/add-stock-item/dispensing-package-measurement/dispensing-package-measurement.component.tsx +3 -3
- package/src/stock-items/add-stock-item/dispensing-unit-selector/dispensing-unit-selector.component.tsx +3 -3
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +3 -3
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete-modal-button.component.tsx +1 -1
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete-modal.component.tsx +1 -1
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +2 -2
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +4 -4
- package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.component.tsx +4 -4
- package/src/stock-items/add-stock-item/quantities/quantities.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx +3 -3
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +3 -3
- package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.component.tsx +2 -2
- package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.resource.ts +1 -1
- package/src/stock-items/add-stock-item/stock-item-references/stock-references-selector.component.tsx +4 -4
- package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.component.tsx +3 -3
- package/src/stock-items/add-stock-item/stock-item-rules/edit-stock-rule.component.tsx +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.component.tsx +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.resource.tsx +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/stock-rules.resource.ts +3 -3
- package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +2 -2
- package/src/stock-items/add-stock-item/transactions/printout/transactions-print-action.component.tsx +2 -3
- package/src/stock-items/add-stock-item/transactions/transaction-filters/transaction-locations-filter.component.tsx +2 -2
- package/src/stock-items/add-stock-item/transactions/transactions.component.tsx +1 -1
- package/src/stock-items/add-stock-item/transactions/transactions.resource.tsx +1 -1
- package/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx +1 -1
- package/src/stock-items/stock-item.utils.tsx +2 -2
- package/src/stock-items/stock-items-table.resource.ts +1 -1
- package/src/stock-items/stock-items.resource.ts +10 -10
- package/src/stock-items/types.ts +3 -3
- package/src/stock-locations/add-locations-form.component.tsx +1 -1
- package/src/stock-locations/location-admin-form.component.tsx +1 -1
- package/src/stock-locations/stock-locations-table.resource.tsx +2 -2
- package/src/stock-lookups/stock-lookups.resource.ts +13 -13
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-items-table.tsx +1 -1
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-operation-expanded-row.component.tsx +1 -1
- package/src/stock-operations/edit-stock-operation/edit-stock-operation-action-menu.component.tsx +1 -1
- package/src/stock-operations/stock-operation-actions.component.tsx +2 -2
- package/src/stock-operations/stock-operation-links.component.tsx +2 -2
- package/src/stock-operations/stock-operation-status/stock-operation-status-row.tsx +1 -1
- package/src/stock-operations/stock-operation-types-selector/stock-operation-types-selector.component.tsx +1 -1
- package/src/stock-operations/stock-operation.utils.tsx +3 -3
- package/src/stock-operations/stock-operations-dialog/stock-operations-approve-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-approve-dispatch-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-cancel-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-complete-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-completed-dispatch-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx +5 -2
- package/src/stock-operations/stock-operations-dialog/stock-operations-issue-stock-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-print-button.component.tsx +5 -6
- package/src/stock-operations/stock-operations-dialog/stock-operations-reject-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-dialog/stock-operations-return-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/hooks/useFilterableStockItems.ts +2 -2
- package/src/stock-operations/stock-operations-forms/hooks/useOperationTypePermisions.ts +1 -1
- package/src/stock-operations/stock-operations-forms/hooks/useParties.ts +3 -3
- package/src/stock-operations/stock-operations-forms/hooks/useSearchUser.ts +5 -1
- package/src/stock-operations/stock-operations-forms/hooks/useStockItemBatchNumbers.ts +1 -1
- package/src/stock-operations/stock-operations-forms/hooks/useStockOperationLinks.ts +2 -2
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.test.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/quantity-uom-selector.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/stock-item-search.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/input-components/unique-batch-no-entry-input.component.tsx +2 -3
- package/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx +2 -4
- package/src/stock-operations/stock-operations-forms/step2.test.tsx +3 -4
- package/src/stock-operations/stock-operations-forms/step3.test.tsx +1 -2
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx +16 -7
- package/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-item-batch-no-cell.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-item-cell.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-item-expiry-cell.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx +4 -4
- package/src/stock-operations/stock-operations-forms/stock-issue-form-initializer-with-related-requisition-operation.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/stock-item-form/stock-item-form.workspace.tsx +7 -4
- package/src/stock-operations/stock-operations-forms/stock-operation-form.component.tsx +9 -9
- package/src/stock-operations/stock-operations-forms/stock-operations-form-utils.ts +1 -1
- package/src/stock-operations/stock-operations-table.component.tsx +1 -1
- package/src/stock-operations/stock-operations-table.resource.tsx +1 -1
- package/src/stock-operations/stock-operations.resource.ts +9 -9
- package/src/stock-operations/stock-print-reports/GoodsReceivedNote.tsx +1 -1
- package/src/stock-operations/stock-print-reports/RequisitionDocument.tsx +1 -1
- package/src/stock-operations/stock-print-reports/StockOperationReport.tsx +4 -4
- package/src/stock-operations/stock-print-reports/StockTransferDocument.tsx +1 -1
- package/src/stock-reports/generate-report/create-stock-report.component.tsx +3 -3
- package/src/stock-reports/stock-reports.resource.ts +1 -1
- package/src/stock-sources/add-stock-sources/add-stock-sources.component.tsx +2 -2
- package/src/stock-sources/add-stock-sources/add-stock-sources.test.tsx +2 -2
- package/src/stock-sources/edit-stock-source/edit-stock-source.component.tsx +1 -1
- package/src/stock-sources/stock-sources-items-table.resource.ts +1 -1
- package/src/stock-sources/stock-sources.resource.ts +3 -3
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.component.tsx +7 -7
- package/src/stock-user-role-scopes/edit-stock-user-scope/edit-stock-user-scope-action-menu.component.tsx +1 -1
- package/src/stock-user-role-scopes/stock-user-role-scopes-items-table.resource.ts +1 -1
- package/src/stock-user-role-scopes/stock-user-role-scopes.resource.ts +3 -3
package/.eslintrc
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
"parser": "@typescript-eslint/parser",
|
11
11
|
"plugins": [
|
12
12
|
"@typescript-eslint",
|
13
|
+
"import",
|
13
14
|
"react-hooks",
|
14
15
|
"testing-library"
|
15
16
|
],
|
@@ -24,6 +25,14 @@
|
|
24
25
|
"@typescript-eslint/no-var-requires": "off",
|
25
26
|
"@typescript-eslint/ban-ts-comment": "off",
|
26
27
|
"@typescript-eslint/ban-types": "off",
|
28
|
+
// Use `import type` instead of `import` for type imports https://typescript-eslint.io/blog/consistent-type-imports-and-exports-why-and-how
|
29
|
+
"@typescript-eslint/consistent-type-imports": [
|
30
|
+
"error",
|
31
|
+
{
|
32
|
+
"fixStyle": "inline-type-imports"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"import/no-duplicates": "error",
|
27
36
|
"no-restricted-imports": [
|
28
37
|
"error",
|
29
38
|
{
|
@@ -53,7 +62,7 @@
|
|
53
62
|
{
|
54
63
|
"files": ["e2e/**/*.spec.ts"],
|
55
64
|
"rules": {
|
56
|
-
"testing-library/prefer-screen-queries": "off"
|
65
|
+
"testing-library/prefer-screen-queries": "off"
|
57
66
|
}
|
58
67
|
}
|
59
68
|
]
|
package/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
-
# OpenMRS Stock Management
|
1
|
+
# OpenMRS ESM Stock Management App
|
2
2
|
|
3
|
-
|
3
|
+

|
4
|
+
|
5
|
+
An O3 frontend module for managing stock. It uses the [stock management backend module](https://github.com/openmrs/openmrs-module-stockmanagement).
|