@openmrs/esm-stock-management-app 1.0.1-pre.38 → 1.0.1-pre.380

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/56.js +1 -0
  2. package/dist/56.js.map +1 -0
  3. package/dist/835.js +2 -0
  4. package/dist/835.js.map +1 -0
  5. package/dist/main.js +1 -1
  6. package/dist/main.js.map +1 -1
  7. package/dist/openmrs-esm-stock-management-app.js +1 -1
  8. package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +42 -42
  9. package/dist/openmrs-esm-stock-management-app.js.map +1 -1
  10. package/dist/routes.json +1 -1
  11. package/package.json +1 -1
  12. package/src/core/api/types/BatchJob.ts +2 -2
  13. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +0 -1
  14. package/src/stock-items/stock-items-table.component.tsx +22 -3
  15. package/src/stock-items/types.ts +79 -0
  16. package/src/stock-locations/add-locations-form.component.tsx +74 -0
  17. package/src/stock-locations/location-admin-form.component.tsx +164 -0
  18. package/src/stock-locations/stock-locations-table.component.tsx +33 -10
  19. package/src/stock-locations/stock-locations-table.resource.tsx +67 -12
  20. package/src/stock-locations/stock-locations-table.scss +3 -0
  21. package/src/stock-lookups/stock-lookups.resource.ts +1 -1
  22. package/src/stock-operations/add-stock-operation/add-stock-operation.component.tsx +18 -8
  23. package/src/stock-operations/add-stock-operation/add-stock-utils.ts +0 -2
  24. package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +28 -37
  25. package/src/stock-operations/stock-operation.utils.tsx +17 -2
  26. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx +12 -12
  27. package/src/stock-operations/stock-operations-dialog/stock-operations-issue-stock-button.component.tsx +10 -2
  28. package/src/stock-operations/stock-operations-table.component.tsx +16 -15
  29. package/src/stock-operations/validation-schema.ts +0 -3
  30. package/src/stock-reports/ReportType.ts +2 -2
  31. package/src/stock-reports/generate-report/create-stock-report.component.tsx +635 -31
  32. package/src/stock-reports/generate-report/create-stock-report.scss +9 -2
  33. package/src/stock-reports/report-list/stock-reports.component.tsx +8 -1
  34. package/src/stock-reports/report-validation-schema.ts +40 -0
  35. package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.component.tsx +7 -19
  36. package/tsconfig.json +2 -1
  37. package/dist/500.js +0 -2
  38. package/dist/500.js.map +0 -1
  39. package/dist/842.js +0 -1
  40. package/dist/842.js.map +0 -1
  41. /package/dist/{500.js.LICENSE.txt → 835.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,g={4521:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(935),t.e(500),t.e(672),t.e(842)]).then((()=>()=>t(1443)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);y.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,y.d(o,a),o},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",y.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-stock-management-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.4.1-pre.1561",(()=>Promise.all([y.e(800),y.e(672)]).then((()=>()=>y(4800))))),l("dayjs","1.11.10",(()=>y.e(484).then((()=>()=>y(7484))))),l("react-i18next","11.18.6",(()=>Promise.all([y.e(672),y.e(629)]).then((()=>()=>y(707))))),l("react-router-dom","6.21.1",(()=>Promise.all([y.e(26),y.e(935),y.e(672)]).then((()=>()=>y(8026))))),l("react","18.2.0",(()=>y.e(294).then((()=>()=>y(7294))))),l("swr/_internal","2.2.5",(()=>Promise.all([y.e(46),y.e(672)]).then((()=>()=>y(46)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),o=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,f,p=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||f<p!=n)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?l(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&a(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",f=(e,r,t,n)=>{var o=s(e,t);return l(n,o)||p(u(e,t,o,n)),c(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},c=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?f(r,0,t,n):o())),h={},m={1672:()=>d("default","react",[1,18],(()=>y.e(294).then((()=>()=>y(7294))))),1914:()=>d("default","react-router-dom",[1,6],(()=>y.e(26).then((()=>()=>y(8026))))),2653:()=>d("default","dayjs",[1,1],(()=>y.e(484).then((()=>()=>y(7484))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(707).then((()=>()=>y(707))))),5512:()=>d("default","swr/_internal",[1,2],(()=>y.e(46).then((()=>()=>y(46))))),7248:()=>d("default","@openmrs/esm-framework",[1,5],(()=>y.e(800).then((()=>()=>y(4800)))))},v={672:[1672],842:[1914,2653,3397,5512,7248]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete h[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=m[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={122:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(672!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(r&&r(t);s<a.length;s++)o=a[s],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var _=y(4521);_openmrs_esm_stock_management_app=_})();
1
+ var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,g={1371:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(935),t.e(835),t.e(672),t.e(56)]).then((()=>()=>t(5464)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);y.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,y.d(o,a),o},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",y.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-stock-management-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.4.1-pre.1561",(()=>Promise.all([y.e(800),y.e(672)]).then((()=>()=>y(4800))))),l("dayjs","1.11.10",(()=>y.e(484).then((()=>()=>y(7484))))),l("react-i18next","11.18.6",(()=>Promise.all([y.e(672),y.e(629)]).then((()=>()=>y(707))))),l("react-router-dom","6.21.1",(()=>Promise.all([y.e(26),y.e(935),y.e(672)]).then((()=>()=>y(8026))))),l("react","18.2.0",(()=>y.e(294).then((()=>()=>y(7294))))),l("swr/_internal","2.2.5",(()=>Promise.all([y.e(46),y.e(672)]).then((()=>()=>y(46)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),o=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,f,p=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||f<p!=n)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?l(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&a(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",f=(e,r,t,n)=>{var o=s(e,t);return l(n,o)||p(u(e,t,o,n)),c(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},c=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?f(r,0,t,n):o())),h={},m={1672:()=>d("default","react",[1,18],(()=>y.e(294).then((()=>()=>y(7294))))),1914:()=>d("default","react-router-dom",[1,6],(()=>y.e(26).then((()=>()=>y(8026))))),2653:()=>d("default","dayjs",[1,1],(()=>y.e(484).then((()=>()=>y(7484))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(707).then((()=>()=>y(707))))),5512:()=>d("default","swr/_internal",[1,2],(()=>y.e(46).then((()=>()=>y(46))))),7248:()=>d("default","@openmrs/esm-framework",[1,5],(()=>y.e(800).then((()=>()=>y(4800)))))},v={56:[1914,2653,3397,5512,7248],672:[1672]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete h[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=m[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={122:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(672!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(r&&r(t);s<a.length;s++)o=a[s],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var _=y(1371);_openmrs_esm_stock_management_app=_})();
@@ -54,16 +54,40 @@
54
54
  "hash": "acc8ddae60337eb2",
55
55
  "childrenByOrder": {}
56
56
  },
57
+ {
58
+ "rendered": true,
59
+ "initial": false,
60
+ "entry": false,
61
+ "recorded": false,
62
+ "size": 1027049,
63
+ "sizes": {
64
+ "javascript": 1026839,
65
+ "consume-shared": 210
66
+ },
67
+ "names": [],
68
+ "idHints": [],
69
+ "runtime": [
70
+ "@openmrs/esm-stock-management-app"
71
+ ],
72
+ "files": [
73
+ "56.js"
74
+ ],
75
+ "auxiliaryFiles": [
76
+ "56.js.map"
77
+ ],
78
+ "hash": "3e1478879e180635",
79
+ "childrenByOrder": {}
80
+ },
57
81
  {
58
82
  "rendered": true,
59
83
  "initial": true,
60
84
  "entry": true,
61
85
  "recorded": false,
62
- "size": 21352,
86
+ "size": 21351,
63
87
  "sizes": {
64
88
  "javascript": 42,
65
89
  "share-init": 252,
66
- "runtime": 21058
90
+ "runtime": 21057
67
91
  },
68
92
  "names": [
69
93
  "@openmrs/esm-stock-management-app"
@@ -78,7 +102,7 @@
78
102
  "auxiliaryFiles": [
79
103
  "openmrs-esm-stock-management-app.js.map"
80
104
  ],
81
- "hash": "27c155f61736442c",
105
+ "hash": "8f3722e42ad48ed0",
82
106
  "childrenByOrder": {}
83
107
  },
84
108
  {
@@ -86,12 +110,12 @@
86
110
  "initial": true,
87
111
  "entry": true,
88
112
  "recorded": false,
89
- "size": 4662654,
113
+ "size": 4776098,
90
114
  "sizes": {
91
115
  "consume-shared": 252,
92
- "javascript": 4640705,
116
+ "javascript": 4754150,
93
117
  "share-init": 252,
94
- "runtime": 21445
118
+ "runtime": 21444
95
119
  },
96
120
  "names": [
97
121
  "main"
@@ -106,7 +130,7 @@
106
130
  "auxiliaryFiles": [
107
131
  "main.js.map"
108
132
  ],
109
- "hash": "7f808c46bf3d79cc",
133
+ "hash": "7d2a0b9a180a3088",
110
134
  "childrenByOrder": {}
111
135
  },
112
136
  {
@@ -157,32 +181,6 @@
157
181
  "hash": "0eb218fc21d670bb",
158
182
  "childrenByOrder": {}
159
183
  },
160
- {
161
- "rendered": true,
162
- "initial": false,
163
- "entry": false,
164
- "recorded": false,
165
- "reason": "split chunk (cache group: defaultVendors)",
166
- "size": 3552100,
167
- "sizes": {
168
- "javascript": 3552100
169
- },
170
- "names": [],
171
- "idHints": [
172
- "vendors"
173
- ],
174
- "runtime": [
175
- "@openmrs/esm-stock-management-app"
176
- ],
177
- "files": [
178
- "500.js"
179
- ],
180
- "auxiliaryFiles": [
181
- "500.js.map"
182
- ],
183
- "hash": "46adb7fc1638718c",
184
- "childrenByOrder": {}
185
- },
186
184
  {
187
185
  "rendered": true,
188
186
  "initial": false,
@@ -247,7 +245,7 @@
247
245
  ],
248
246
  "files": [],
249
247
  "auxiliaryFiles": [],
250
- "hash": "1f6edaf853c0b238",
248
+ "hash": "cb374d1c8f7aca10",
251
249
  "childrenByOrder": {}
252
250
  },
253
251
  {
@@ -298,7 +296,7 @@
298
296
  "auxiliaryFiles": [
299
297
  "800.js.map"
300
298
  ],
301
- "hash": "bd5c297f5460214b",
299
+ "hash": "df22fba10e470419",
302
300
  "childrenByOrder": {}
303
301
  },
304
302
  {
@@ -306,23 +304,25 @@
306
304
  "initial": false,
307
305
  "entry": false,
308
306
  "recorded": false,
309
- "size": 951282,
307
+ "reason": "split chunk (cache group: defaultVendors)",
308
+ "size": 3589778,
310
309
  "sizes": {
311
- "javascript": 951072,
312
- "consume-shared": 210
310
+ "javascript": 3589778
313
311
  },
314
312
  "names": [],
315
- "idHints": [],
313
+ "idHints": [
314
+ "vendors"
315
+ ],
316
316
  "runtime": [
317
317
  "@openmrs/esm-stock-management-app"
318
318
  ],
319
319
  "files": [
320
- "842.js"
320
+ "835.js"
321
321
  ],
322
322
  "auxiliaryFiles": [
323
- "842.js.map"
323
+ "835.js.map"
324
324
  ],
325
- "hash": "46680aa24d84bb4f",
325
+ "hash": "b85dc435ca33dcdf",
326
326
  "childrenByOrder": {}
327
327
  },
328
328
  {
@@ -1 +1 @@
1
- {"version":3,"file":"openmrs-esm-stock-management-app.js","mappings":"6DACIA,EADAC,ECAAC,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAgBAC,EAMAC,EAOAC,EA8BAC,EAMAC,EA6CAC,EAYAC,EACAC,EASAC,E,kBChJJ,IAAIC,EAAY,CACf,UAAW,IACHC,QAAQC,IAAI,CAACC,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,KAAMD,EAAoBC,EAAE,OAAOC,MAAK,IAAM,IAASF,EAAoB,SAG3KR,EAAM,CAACW,EAAQC,KAClBJ,EAAoBK,EAAID,EACxBA,EACCJ,EAAoBM,EAAET,EAAWM,GAC9BN,EAAUM,KACVL,QAAQS,UAAUL,MAAK,KACxB,MAAM,IAAIM,MAAM,WAAaL,EAAS,iCAAiC,IAG1EH,EAAoBK,OAAII,EACjBL,GAEJM,EAAO,CAACC,EAAYC,KACvB,GAAKZ,EAAo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F,EAASA,EAC9D,MAAOyF,EAAgBzF,GAAW,CAEpC,EAcF,IAAIiG,EAAuB,CAACC,EAA4BC,KACvD,IAGInI,EAAUgC,GAHToG,EAAUC,EAAaC,GAAWH,EAGhB9E,EAAI,EAC3B,GAAG+E,EAASG,MAAMrI,GAAgC,IAAxBuH,EAAgBvH,KAAa,CACtD,IAAIF,KAAYqI,EACZzJ,EAAoBM,EAAEmJ,EAAarI,KACrCpB,EAAoB0B,EAAEN,GAAYqI,EAAYrI,IAG7CsI,GAAsBA,EAAQ1J,EAClC,CAEA,IADGsJ,GAA4BA,EAA2BC,GACrD9E,EAAI+E,EAAS9E,OAAQD,IACzBrB,EAAUoG,EAAS/E,GAChBzE,EAAoBM,EAAEuI,EAAiBzF,IAAYyF,EAAgBzF,IACrEyF,EAAgBzF,GAAS,KAE1ByF,EAAgBzF,GAAW,CAC5B,EAIGwG,EAAqBlG,WAA0D,8CAAIA,WAA0D,+CAAK,GACtJkG,EAAmB9G,QAAQuG,EAAqBvD,KAAK,KAAM,IAC3D8D,EAAmBzF,KAAOkF,EAAqBvD,KAAK,KAAM8D,EAAmBzF,KAAK2B,KAAK8D,G,KCrFvF5J,EAAoBgF,QAAKvE,ECGzB,IAAIoJ,EAAsB7J,EAAoB,M","sources":["webpack://@openmrs/esm-stock-management-app/webpack/runtime/create fake namespace object","webpack://@openmrs/esm-stock-management-app/webpack/runtime/load script","webpack://@openmrs/esm-stock-management-app/webpack/runtime/consumes","webpack://@openmrs/esm-stock-management-app/webpack/container-entry","webpack://@openmrs/esm-stock-management-app/webpack/bootstrap","webpack://@openmrs/esm-stock-management-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-stock-management-app/webpack/runtime/define property getters","webpack://@openmrs/esm-stock-management-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-stock-management-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-stock-management-app/webpack/runtime/global","webpack://@openmrs/esm-stock-management-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-stock-management-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-stock-management-app/webpack/runtime/node module decorator","webpack://@openmrs/esm-stock-management-app/webpack/runtime/sharing","webpack://@openmrs/esm-stock-management-app/webpack/runtime/publicPath","webpack://@openmrs/esm-stock-management-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-stock-management-app/webpack/runtime/nonce","webpack://@openmrs/esm-stock-management-app/webpack/startup"],"names":["leafPrototypes","getProto","inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","warn","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","Object","getPrototypeOf","obj","t","value","mode","this","ns","create","r","def","current","indexOf","getOwnPropertyNames","forEach","key","definition","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","Function","window","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","fn","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","initPromises","initTokens","initToken","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","replace","p","str","split","map","exec","apply","b","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"openmrs-esm-stock-management-app.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K,KAAM8D,EAAmBzF,KAAK2B,KAAK8D,G,KCrFvF5J,EAAoBgF,QAAKvE,ECGzB,IAAIoJ,EAAsB7J,EAAoB,M","sources":["webpack://@openmrs/esm-stock-management-app/webpack/runtime/create fake namespace object","webpack://@openmrs/esm-stock-management-app/webpack/runtime/load script","webpack://@openmrs/esm-stock-management-app/webpack/runtime/consumes","webpack://@openmrs/esm-stock-management-app/webpack/container-entry","webpack://@openmrs/esm-stock-management-app/webpack/bootstrap","webpack://@openmrs/esm-stock-management-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-stock-management-app/webpack/runtime/define property getters","webpack://@openmrs/esm-stock-management-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-stock-management-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-stock-management-app/webpack/runtime/global","webpack://@openmrs/esm-stock-management-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-stock-management-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-stock-management-app/webpack/runtime/node module decorator","webpack://@openmrs/esm-stock-management-app/webpack/runtime/sharing","webpack://@openmrs/esm-stock-management-app/webpack/runtime/publicPath","webpack://@openmrs/esm-stock-management-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-stock-management-app/webpack/runtime/nonce","webpack://@openmrs/esm-stock-management-app/webpack/startup"],"names":["leafPrototypes","getProto","inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","warn","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","Error","undefined","init","shareScope","initScope","S","name","oldScope","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","id","loaded","__webpack_modules__","call","m","c","n","getter","__esModule","a","Object","getPrototypeOf","obj","t","value","mode","this","ns","create","r","def","current","indexOf","getOwnPropertyNames","forEach","key","definition","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","Function","window","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","i","length","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","fn","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","initPromises","initTokens","initToken","scope","uniqueName","register","version","factory","eager","versions","activeVersion","from","scriptUrl","importScripts","location","currentScript","replace","p","str","split","map","exec","apply","b","range","pop","requiredVersion","scopeName","msg","console","entry","promise","fallback","consumes","onFactory","onError","error","installedChunks","j","installedChunkData","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.38"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.380"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-stock-management-app",
3
- "version": "1.0.1-pre.38",
3
+ "version": "1.0.1-pre.380",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Stock management microfrontend for OpenMRS 3.x",
6
6
  "browser": "dist/openmrs-esm-stock-management-app.js",
@@ -10,7 +10,7 @@ export interface BatchJobOwner {
10
10
  }
11
11
 
12
12
  export interface BatchJob {
13
- uuid: string;
13
+ uuid?: string;
14
14
  batchJobType?: string;
15
15
  status?: string;
16
16
  description?: string;
@@ -38,7 +38,7 @@ export interface BatchJob {
38
38
  outputArtifactFileExt?: string;
39
39
  outputArtifactViewable?: boolean;
40
40
  owners?: BatchJobOwner[];
41
- permission: RecordPermission | null | undefined;
41
+ permission?: RecordPermission | null | undefined;
42
42
  }
43
43
 
44
44
  export const BatchJobTypeReport = "Report";
@@ -24,7 +24,6 @@ import rootStyles from "../../../root.scss";
24
24
  import { closeOverlay } from "../../../core/components/overlay/hook";
25
25
  import { expirationOptions, radioOptions } from "./stock-item-details.resource";
26
26
  import { handleMutate } from "../../../stock-operations/swr-revalidation";
27
- import { useStockItem } from "../../stock-items.resource";
28
27
 
29
28
  interface StockItemDetailsProps {
30
29
  model: StockItemDTO;
@@ -20,7 +20,7 @@ import {
20
20
  } from "@carbon/react";
21
21
  import { Edit } from "@carbon/react/icons";
22
22
  import { isDesktop } from "@openmrs/esm-framework";
23
- import React, { useMemo } from "react";
23
+ import React, { useMemo, useState, useEffect } from "react";
24
24
  import { useTranslation } from "react-i18next";
25
25
  import { ResourceRepresentation } from "../core/api/api";
26
26
  import AddStockItemActionButton from "./add-stock-item/add-stock-action-button.component";
@@ -30,6 +30,7 @@ import { useStockItemsPages } from "./stock-items-table.resource";
30
30
  import styles from "./stock-items-table.scss";
31
31
  import AddStockItemsBulktImportActionButton from "./add-bulk-stock-item/add-stock-items-bulk-import-action-button.component";
32
32
  import EditStockItemActionsMenu from "./edit-stock-item/edit-stock-item-action-menu.component";
33
+ import { useDebounce } from "../core/hooks/debounce-hook";
33
34
 
34
35
  interface StockItemsTableProps {
35
36
  from?: string;
@@ -37,6 +38,7 @@ interface StockItemsTableProps {
37
38
 
38
39
  const StockItemsTableComponent: React.FC<StockItemsTableProps> = () => {
39
40
  const { t } = useTranslation();
41
+ const [searchInput, setSearchInput] = useState("");
40
42
 
41
43
  const {
42
44
  isLoading,
@@ -48,8 +50,21 @@ const StockItemsTableComponent: React.FC<StockItemsTableProps> = () => {
48
50
  setCurrentPage,
49
51
  isDrug,
50
52
  setDrug,
53
+ setSearchString,
51
54
  } = useStockItemsPages(ResourceRepresentation.Full);
52
55
 
56
+ const handleSearch = (query: string) => {
57
+ setSearchInput(query);
58
+ };
59
+
60
+ const debouncedSearch = useDebounce((query: string) => {
61
+ setSearchString(query);
62
+ }, 1000);
63
+
64
+ useEffect(() => {
65
+ debouncedSearch(searchInput);
66
+ }, [searchInput, debouncedSearch]);
67
+
53
68
  const tableHeaders = useMemo(
54
69
  () => [
55
70
  {
@@ -158,7 +173,6 @@ const StockItemsTableComponent: React.FC<StockItemsTableProps> = () => {
158
173
  getTableProps,
159
174
  getRowProps,
160
175
  getBatchActionProps,
161
- onInputChange,
162
176
  }) => (
163
177
  <TableContainer>
164
178
  <TableToolbar
@@ -175,7 +189,12 @@ const StockItemsTableComponent: React.FC<StockItemsTableProps> = () => {
175
189
  alignItems: "center",
176
190
  }}
177
191
  >
178
- <TableToolbarSearch persistent onChange={onInputChange} />
192
+ <TableToolbarSearch
193
+ persistent
194
+ value={searchInput}
195
+ onChange={(e) => handleSearch(e.target.value)}
196
+ />
197
+
179
198
  <FilterStockItems
180
199
  filterType={isDrug}
181
200
  changeFilterType={setDrug}
@@ -1,8 +1,87 @@
1
1
  import { StockItemDTO } from "../core/api/types/stockItem/StockItem";
2
2
  import { StockOperationDTO } from "../core/api/types/stockOperation/StockOperationDTO";
3
+ import { KeyedMutator } from "swr";
3
4
 
4
5
  export type SaveStockItem = (item: StockItemDTO) => Promise<void>;
5
6
  export type SaveStockOperation = (item: StockOperationDTO) => Promise<void>;
6
7
  export type SaveStockOperationAction = (
7
8
  item: StockOperationDTO
8
9
  ) => Promise<void>;
10
+
11
+ export type LocationMutator = KeyedMutator<{
12
+ data: {
13
+ results: Array<Location>;
14
+ };
15
+ }>;
16
+
17
+ export type Location = {
18
+ uuid: string;
19
+ display: string;
20
+ name: string;
21
+ description: string | null;
22
+ address1: string | null;
23
+ address2: string | null;
24
+ cityVillage: string | null;
25
+ stateProvince: string | null;
26
+ country: string | null;
27
+ postalCode: string | null;
28
+ latitude: string | null;
29
+ longitude: string | null;
30
+ countyDistrict: string | null;
31
+ address3: string | null;
32
+ address4: string | null;
33
+ address5: string | null;
34
+ address6: string | null;
35
+ tags: Tag[];
36
+ parentLocation: Location;
37
+ childLocations: Location[];
38
+ retired: boolean;
39
+ auditInfo: {
40
+ creator: {
41
+ uuid: string;
42
+ display: string;
43
+ links: Array<{
44
+ rel: string;
45
+ uri: string;
46
+ resourceAlias: string;
47
+ }>;
48
+ };
49
+ dateCreated: string;
50
+ changedBy: null;
51
+ dateChanged: null;
52
+ };
53
+ address7: string | null;
54
+ address8: string | null;
55
+ address9: string | null;
56
+ address10: string | null;
57
+ address11: string | null;
58
+ address12: string | null;
59
+ address13: string | null;
60
+ address14: string | null;
61
+ address15: string | null;
62
+ links: Array<{
63
+ rel: string;
64
+ uri: string;
65
+ resourceAlias: string;
66
+ }>;
67
+ resourceVersion: string;
68
+ };
69
+
70
+ export type Tag = {
71
+ uuid: string;
72
+ display: string;
73
+ name: string;
74
+ description?: string;
75
+ retired: boolean;
76
+ links: Array<{
77
+ rel: string;
78
+ uri: string;
79
+ resourceAlias: string;
80
+ }>;
81
+ resourceVersion: string;
82
+ };
83
+ export interface locationData {
84
+ uuid?: string;
85
+ name: string;
86
+ tags: [];
87
+ }
@@ -0,0 +1,74 @@
1
+ import React, { useCallback } from "react";
2
+ import { useTranslation } from "react-i18next";
3
+ import { showToast, showNotification, useConfig } from "@openmrs/esm-framework";
4
+ import { saveLocation } from "./stock-locations-table.resource";
5
+ import { locationData, LocationMutator } from "../stock-items/types";
6
+ import LocationAdministrationForm from "./location-admin-form.component";
7
+
8
+ interface LocationFormProps {
9
+ showModal: boolean;
10
+ onModalChange: (showModal: boolean) => void;
11
+ mutate: LocationMutator;
12
+ }
13
+
14
+ const NewLocationForm: React.FC<LocationFormProps> = ({
15
+ showModal,
16
+ onModalChange,
17
+ mutate,
18
+ }) => {
19
+ const { t } = useTranslation();
20
+ const headerTitle = t("addLocation", "Create new Location");
21
+
22
+ const initialData: locationData = {
23
+ uuid: "",
24
+ name: "",
25
+ tags: [],
26
+ };
27
+
28
+ const handleCreateQuestion = useCallback(
29
+ (formData: locationData) => {
30
+ const { name, tags } = formData;
31
+
32
+ const locationbject = {
33
+ name,
34
+ tags,
35
+ };
36
+ saveLocation({ locationPayload: locationbject })
37
+ .then(() => {
38
+ showToast({
39
+ title: t("formCreated", "Add Location"),
40
+ kind: "success",
41
+ critical: true,
42
+ description: t(`Location ${name} was created successfully.`),
43
+ });
44
+
45
+ mutate();
46
+ onModalChange(false);
47
+ })
48
+ .catch((error) => {
49
+ showNotification({
50
+ title: t("errorCreatingForm", "Error creating location"),
51
+ kind: "error",
52
+ critical: true,
53
+ description: error?.message,
54
+ });
55
+ onModalChange(false);
56
+ });
57
+ onModalChange(false);
58
+ },
59
+ [onModalChange, mutate, t]
60
+ );
61
+
62
+ return (
63
+ <>
64
+ <LocationAdministrationForm
65
+ onModalChange={onModalChange}
66
+ showModal={showModal}
67
+ handleCreateQuestion={handleCreateQuestion}
68
+ headerTitle={headerTitle}
69
+ initialData={initialData}
70
+ />
71
+ </>
72
+ );
73
+ };
74
+ export default NewLocationForm;