@openmrs/esm-stock-management-app 1.0.1-pre.417 → 1.0.1-pre.420

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/dist/314.js +1 -0
  2. package/dist/314.js.map +1 -0
  3. package/dist/main.js +1 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/openmrs-esm-stock-management-app.js +1 -1
  6. package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +31 -31
  7. package/dist/openmrs-esm-stock-management-app.js.map +1 -1
  8. package/dist/routes.json +1 -1
  9. package/package.json +1 -1
  10. package/src/core/api/types/stockItem/StockItemReference.ts +18 -0
  11. package/src/core/components/carbon/controlled-text-input/controlled-text-input.component.tsx +2 -2
  12. package/src/core/components/tabs/vertical-tabs.scss +6 -3
  13. package/src/stock-items/add-stock-item/add-stock-item.component.tsx +8 -0
  14. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +3 -2
  15. package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.component.tsx +264 -0
  16. package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.resource.ts +39 -0
  17. package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.scss +23 -0
  18. package/src/stock-items/add-stock-item/stock-item-references/stock-references-selector.component.tsx +66 -0
  19. package/src/stock-items/add-stock-item/stock-item-references/validation-schema.ts +8 -0
  20. package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.component.tsx +0 -1
  21. package/src/stock-items/stock-items.resource.ts +72 -1
  22. package/src/stock-operations/stock-operation.utils.tsx +1 -1
  23. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx +1 -1
  24. package/src/stock-operations/stock-operations-table.component.tsx +8 -1
  25. package/src/stock-reports/generate-report/create-stock-report.component.tsx +59 -3
  26. package/src/stock-reports/report-validation-schema.ts +73 -36
  27. package/src/stock-sources/add-stock-sources/add-stock-sources.component.tsx +8 -3
  28. package/src/stock-sources/stock-sources-delete/stock-sources-delete.component.tsx +8 -3
  29. package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.component.tsx +7 -4
  30. package/src/stock-user-role-scopes/delete-stock-user-scope/delete-stock-user-scope.component.tsx +8 -3
  31. package/src/utils.ts +7 -0
  32. package/dist/39.js +0 -1
  33. package/dist/39.js.map +0 -1
  34. package/src/stock-items/add-stock-item/stock-rules/stock-rules.component.tsx +0 -16
  35. package/src/stock-items/add-stock-item/stock-rules/stock-rules.resource.tsx +0 -0
  36. package/src/stock-items/add-stock-item/stock-rules/stock-rules.scss +0 -0
  37. package/src/stock-operations/swr-revalidation.ts +0 -7
  38. package/src/stock-sources/swr-revalidation.ts +0 -7
  39. package/src/stock-user-role-scopes/swr-revalidation.ts +0 -7
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import addStockStyles from "../add-stock-item.scss";
3
-
4
- interface StockRulesProps {
5
- onSubmit?: () => void;
6
- }
7
-
8
- const StockRules: React.FC<StockRulesProps> = () => {
9
- return (
10
- <div className={addStockStyles.formContainer}>
11
- Stock rules Coming soon ...
12
- </div>
13
- );
14
- };
15
-
16
- export default StockRules;
@@ -1,7 +0,0 @@
1
- import { mutate } from "swr";
2
-
3
- export const handleMutate = (url: string) => {
4
- mutate((key) => typeof key === "string" && key.startsWith(url), undefined, {
5
- revalidate: true,
6
- });
7
- };
@@ -1,7 +0,0 @@
1
- import { mutate } from "swr";
2
-
3
- export const handleMutate = (url: string) => {
4
- mutate((key) => typeof key === "string" && key.startsWith(url), undefined, {
5
- revalidate: true,
6
- });
7
- };
@@ -1,7 +0,0 @@
1
- import { mutate } from "swr";
2
-
3
- export const handleMutate = (url: string) => {
4
- mutate((key) => typeof key === "string" && key.startsWith(url), undefined, {
5
- revalidate: true,
6
- });
7
- };