@openmrs/esm-stock-management-app 1.0.1-pre.330 → 1.0.1-pre.336

Sign up to get free protection for your applications and to get access to all the features.
@@ -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={1371:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(935),t.e(375),t.e(672),t.e(979)]).then((()=>()=>t(5453)))},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],979:[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(1371);_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(33),t.e(672),t.e(220)]).then((()=>()=>t(3880)))},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={220:[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=_})();
@@ -27,6 +27,32 @@
27
27
  "hash": "808a33c2b23b9333",
28
28
  "childrenByOrder": {}
29
29
  },
30
+ {
31
+ "rendered": true,
32
+ "initial": false,
33
+ "entry": false,
34
+ "recorded": false,
35
+ "reason": "split chunk (cache group: defaultVendors)",
36
+ "size": 3277526,
37
+ "sizes": {
38
+ "javascript": 3277526
39
+ },
40
+ "names": [],
41
+ "idHints": [
42
+ "vendors"
43
+ ],
44
+ "runtime": [
45
+ "@openmrs/esm-stock-management-app"
46
+ ],
47
+ "files": [
48
+ "33.js"
49
+ ],
50
+ "auxiliaryFiles": [
51
+ "33.js.map"
52
+ ],
53
+ "hash": "34d0e4fc92c4290b",
54
+ "childrenByOrder": {}
55
+ },
30
56
  {
31
57
  "rendered": true,
32
58
  "initial": false,
@@ -78,7 +104,7 @@
78
104
  "auxiliaryFiles": [
79
105
  "openmrs-esm-stock-management-app.js.map"
80
106
  ],
81
- "hash": "55e1194155964240",
107
+ "hash": "36fef91fe5598db1",
82
108
  "childrenByOrder": {}
83
109
  },
84
110
  {
@@ -86,12 +112,12 @@
86
112
  "initial": true,
87
113
  "entry": true,
88
114
  "recorded": false,
89
- "size": 4313561,
115
+ "size": 4353955,
90
116
  "sizes": {
91
117
  "consume-shared": 252,
92
- "javascript": 4291612,
118
+ "javascript": 4332007,
93
119
  "share-init": 252,
94
- "runtime": 21445
120
+ "runtime": 21444
95
121
  },
96
122
  "names": [
97
123
  "main"
@@ -106,7 +132,7 @@
106
132
  "auxiliaryFiles": [
107
133
  "main.js.map"
108
134
  ],
109
- "hash": "4a8de7e5af9880bb",
135
+ "hash": "4a8146752fae697f",
110
136
  "childrenByOrder": {}
111
137
  },
112
138
  {
@@ -114,23 +140,23 @@
114
140
  "initial": false,
115
141
  "entry": false,
116
142
  "recorded": false,
117
- "size": 7103,
143
+ "size": 917158,
118
144
  "sizes": {
119
- "javascript": 7103
145
+ "javascript": 916948,
146
+ "consume-shared": 210
120
147
  },
121
148
  "names": [],
122
149
  "idHints": [],
123
150
  "runtime": [
124
- "@openmrs/esm-stock-management-app",
125
- "main"
151
+ "@openmrs/esm-stock-management-app"
126
152
  ],
127
153
  "files": [
128
- "294.js"
154
+ "220.js"
129
155
  ],
130
156
  "auxiliaryFiles": [
131
- "294.js.map"
157
+ "220.js.map"
132
158
  ],
133
- "hash": "c1ce890cbedb6cf3",
159
+ "hash": "56ec62cd710fb270",
134
160
  "childrenByOrder": {}
135
161
  },
136
162
  {
@@ -138,25 +164,23 @@
138
164
  "initial": false,
139
165
  "entry": false,
140
166
  "recorded": false,
141
- "reason": "split chunk (cache group: defaultVendors)",
142
- "size": 3250542,
167
+ "size": 7103,
143
168
  "sizes": {
144
- "javascript": 3250542
169
+ "javascript": 7103
145
170
  },
146
171
  "names": [],
147
- "idHints": [
148
- "vendors"
149
- ],
172
+ "idHints": [],
150
173
  "runtime": [
151
- "@openmrs/esm-stock-management-app"
174
+ "@openmrs/esm-stock-management-app",
175
+ "main"
152
176
  ],
153
177
  "files": [
154
- "375.js"
178
+ "294.js"
155
179
  ],
156
180
  "auxiliaryFiles": [
157
- "375.js.map"
181
+ "294.js.map"
158
182
  ],
159
- "hash": "c1d1ce30f925fd75",
183
+ "hash": "c1ce890cbedb6cf3",
160
184
  "childrenByOrder": {}
161
185
  },
162
186
  {
@@ -327,30 +351,6 @@
327
351
  ],
328
352
  "hash": "ec5f549cbfd789c7",
329
353
  "childrenByOrder": {}
330
- },
331
- {
332
- "rendered": true,
333
- "initial": false,
334
- "entry": false,
335
- "recorded": false,
336
- "size": 903747,
337
- "sizes": {
338
- "javascript": 903537,
339
- "consume-shared": 210
340
- },
341
- "names": [],
342
- "idHints": [],
343
- "runtime": [
344
- "@openmrs/esm-stock-management-app"
345
- ],
346
- "files": [
347
- "979.js"
348
- ],
349
- "auxiliaryFiles": [
350
- "979.js.map"
351
- ],
352
- "hash": "1e00550985a95c26",
353
- "childrenByOrder": {}
354
354
  }
355
355
  ]
356
356
  }
@@ -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,EAAoBa,EAAzB,CACA,IAAIC,EAAO,UACPC,EAAWf,EAAoBa,EAAEC,GACrC,GAAGC,GAAYA,IAAaJ,EAAY,MAAM,IAAIH,MAAM,mGAExD,OADAR,EAAoBa,EAAEC,GAAQH,EACvBX,EAAoBgB,EAAEF,EAAMF,EALD,CAKW,EAI9CZ,EAAoBiB,EAAEC,EAAS,CAC9B1B,IA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ACZzJ,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.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,IAAKD,E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3C,GACrDsI,GAAoB,CACtB,IAAIE,EAAY5D,IAAyB,SAAfA,EAAMU,KAAkB,UAAYV,EAAMU,MAChEmD,EAAU7D,GAASA,EAAMW,QAAUX,EAAMW,OAAOd,IACpD0D,EAAMO,QAAU,iBAAmB/F,EAAU,cAAgB6F,EAAY,KAAOC,EAAU,IAC1FN,EAAM9H,KAAO,iBACb8H,EAAM7C,KAAOkD,EACbL,EAAMQ,QAAUF,EAChBH,EAAmB,GAAGH,EACvB,CACD,GAEwC,SAAWxF,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":""}
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","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.330"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","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.336"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-stock-management-app",
3
- "version": "1.0.1-pre.330",
3
+ "version": "1.0.1-pre.336",
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",
package/src/constants.ts CHANGED
@@ -22,6 +22,12 @@ export const today = () => {
22
22
  return new Date(date.getFullYear(), date.getMonth(), date.getDate());
23
23
  };
24
24
 
25
+ export const StockFilters = Object.freeze({
26
+ SOURCES: "Sources",
27
+ OPERATION: "Operation",
28
+ STATUS: "Status",
29
+ });
30
+
25
31
  // privileges
26
32
  /** @type {string}: App: stockmanagement.dashboard, Able to view stock management application dashboard*/
27
33
  export const APP_STOCKMANAGEMENT_DASHBOARD = "App: stockmanagement.dashboard";
@@ -18,7 +18,7 @@ const StockHomeReceivingCard = () => {
18
18
 
19
19
  if (isLoading) return <></>;
20
20
 
21
- if (items.length === 0) {
21
+ if (items?.length === 0) {
22
22
  return (
23
23
  <>
24
24
  <p className={styles.content}>
@@ -1,7 +1,7 @@
1
- import React, { ReactNode, useState } from "react";
1
+ import React, { ReactNode, useMemo, useState } from "react";
2
2
  import { Control, Controller, FieldValues } from "react-hook-form";
3
3
  import { StockItemPackagingUOMDTO } from "../../../core/api/types/stockItem/StockItemPackagingUOM";
4
- import { Select, SelectItem, SelectSkeleton } from "@carbon/react";
4
+ import { ComboBox, SelectSkeleton } from "@carbon/react";
5
5
 
6
6
  interface DispensingPackageMeasurementProps<T> {
7
7
  dispensingUnitPackagingUoMUuid?: string;
@@ -24,52 +24,48 @@ interface DispensingPackageMeasurementProps<T> {
24
24
  const DispensingPackageMeasurement = <T,>(
25
25
  props: DispensingPackageMeasurementProps<T>
26
26
  ) => {
27
- const [item, setItem] = useState("");
27
+ const initialSelectedItem = useMemo<StockItemPackagingUOMDTO | null>(
28
+ () => (props?.packagingUnits.length > 0 ? props?.packagingUnits[0] : null),
29
+ [props?.packagingUnits]
30
+ );
28
31
 
29
32
  if (props.isLoading) return <SelectSkeleton />;
30
33
 
31
- if (!(props.packagingUnits && props.packagingUnits.length > 0)) return <></>;
34
+ if (!(props?.packagingUnits && props?.packagingUnits.length > 0))
35
+ return <></>;
32
36
  return (
33
- <Controller
34
- name={props.controllerName}
35
- control={props.control}
36
- render={({ field: { onChange, value, ref } }) => (
37
- <Select
38
- labelText={props.title}
39
- name={props.name}
40
- control={props.control}
41
- controllerName={props.controllerName}
42
- id={props.name}
43
- size={"md"}
44
- onChange={(data: { selectedItem?: StockItemPackagingUOMDTO }) => {
45
- props.onDispensingUnitPackagingUoMUuidChange?.(data?.selectedItem);
46
- onChange(data?.selectedItem?.uuid);
47
- setItem(data?.selectedItem?.uuid);
48
- }}
49
- ref={ref}
50
- value={item}
51
- invalid={props.invalid}
52
- invalidText={props.invalidText}
53
- >
54
- {!item ? (
55
- <SelectItem disabled hidden value={null} text={props.placeholder} />
56
- ) : (
57
- ""
58
- )}
59
- {props.packagingUnits?.map((uom, index) => {
60
- return (
61
- <SelectItem
62
- key={`${index}-${uom.uuid}`}
63
- value={uom.uuid}
64
- text={uom.packagingUomName}
65
- >
66
- {uom?.packagingUomName}
67
- </SelectItem>
68
- );
69
- })}
70
- </Select>
71
- )}
72
- />
37
+ <div>
38
+ <Controller
39
+ name={props.controllerName}
40
+ control={props.control}
41
+ defaultValue={initialSelectedItem.uuid ?? ""}
42
+ render={({ field: { onChange, ref } }) => (
43
+ <ComboBox
44
+ titleText={props.title}
45
+ name={props.name}
46
+ control={props.control}
47
+ controllerName={props.controllerName}
48
+ id={props.name}
49
+ size={"sm"}
50
+ items={props.packagingUnits ?? []}
51
+ onChange={(data: { selectedItem?: StockItemPackagingUOMDTO }) => {
52
+ props.onDispensingUnitPackagingUoMUuidChange?.(
53
+ data?.selectedItem
54
+ );
55
+ onChange(data?.selectedItem?.uuid);
56
+ }}
57
+ initialSelectedItem={initialSelectedItem}
58
+ itemToString={(s: StockItemPackagingUOMDTO) =>
59
+ s.packagingUomName ?? ""
60
+ }
61
+ placeholder={props.placeholder}
62
+ invalid={props.invalid}
63
+ invalidText={props.invalidText}
64
+ ref={ref}
65
+ />
66
+ )}
67
+ />
68
+ </div>
73
69
  );
74
70
  };
75
71
 
@@ -63,4 +63,28 @@
63
63
  left: 0.5rem;
64
64
  margin-right: -50%;
65
65
  }
66
- }
66
+ }
67
+
68
+ .toolbarContent {
69
+ display: flex;
70
+ align-items: center;
71
+ }
72
+
73
+ .filterContainer{
74
+ display: flex;
75
+ align-items: center;
76
+ }
77
+ .dateAlign{
78
+ padding-top: 8px;
79
+ height: 100%;
80
+ }
81
+ .filtersAlign{
82
+ padding-bottom: 8px;
83
+
84
+ :global(.cds--list-box__menu) {
85
+ min-width: 15rem;
86
+ z-index: 1;
87
+ }
88
+ }
89
+
90
+
@@ -0,0 +1,89 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import {
3
+ getStockOperationTypes,
4
+ useConcept,
5
+ } from "../stock-lookups/stock-lookups.resource";
6
+ import { DropdownSkeleton, MultiSelect } from "@carbon/react";
7
+ import { StockFilters } from "../constants";
8
+ import { StockOperationStatusTypes } from "../core/api/types/stockOperation/StockOperationStatus";
9
+ import styles from "../stock-items/stock-items-table.scss";
10
+
11
+ interface StockOperationFiltersProps {
12
+ conceptUuid?: string;
13
+ onFilterChange: (selectedItems: any[], filterType: string) => void;
14
+ filterName: string;
15
+ }
16
+
17
+ const StockOperationsFilters: React.FC<StockOperationFiltersProps> = ({
18
+ conceptUuid,
19
+ onFilterChange,
20
+ filterName,
21
+ }) => {
22
+ const { items, isLoading } = useConcept(conceptUuid);
23
+ const [isDataLoading, setIsDataLoading] = useState(false);
24
+ const [dataItems, setDataItems] = useState([]);
25
+
26
+ useEffect(() => {
27
+ setIsDataLoading(true);
28
+ switch (filterName) {
29
+ case StockFilters.STATUS:
30
+ setDataItems(
31
+ StockOperationStatusTypes.map((option) => ({
32
+ uuid: option,
33
+ display: option,
34
+ }))
35
+ );
36
+ break;
37
+ case StockFilters.SOURCES:
38
+ if (items?.answers?.length) {
39
+ setDataItems([...items.answers]);
40
+ setIsDataLoading(isLoading);
41
+ }
42
+
43
+ break;
44
+ case StockFilters.OPERATION:
45
+ getStockOperationTypes().then((response) => {
46
+ setIsDataLoading(true);
47
+ if (response.data?.results.length) {
48
+ setDataItems(
49
+ response.data.results.map((result) => ({
50
+ uuid: result.uuid,
51
+ display: result.name,
52
+ }))
53
+ );
54
+ }
55
+
56
+ setIsDataLoading(false);
57
+ });
58
+ }
59
+ setIsDataLoading(false);
60
+ }, [filterName, isLoading, items.answers]);
61
+
62
+ if (isDataLoading) {
63
+ return <DropdownSkeleton />;
64
+ }
65
+
66
+ return (
67
+ <MultiSelect
68
+ className={styles.filtersAlign}
69
+ id="multiSelect"
70
+ label={filterName}
71
+ size="md"
72
+ labelInline={true}
73
+ items={dataItems}
74
+ itemToString={(item) => (item ? item.display : "Not Set")}
75
+ onChange={({ selectedItems }) => {
76
+ if (selectedItems) {
77
+ onFilterChange(
78
+ selectedItems.map((selectedItem) => selectedItem.display),
79
+ filterName
80
+ );
81
+ }
82
+ }}
83
+ placeholder={`Filter by ${filterName}`}
84
+ style={{ minWidth: "auto", width: "auto" }}
85
+ />
86
+ );
87
+ };
88
+
89
+ export default StockOperationsFilters;