@openmrs/esm-stock-management-app 1.0.1-pre.438 → 1.0.1-pre.444
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/574.js +1 -1
- package/dist/800.js +1 -1
- package/dist/800.js.map +1 -1
- package/dist/830.js +1 -0
- package/dist/830.js.map +1 -0
- 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 +31 -31
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/core/components/carbon/controlled-number-input/controlled-number-input.component.tsx +1 -1
- package/src/core/components/tabs/vertical-tabs.scss +1 -2
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +27 -12
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.resource.tsx +9 -35
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +179 -64
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.scss +33 -21
- package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +4 -2
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +6 -5
- package/src/stock-items/stock-items.resource.ts +10 -1
- package/translations/en.json +272 -24
- package/dist/699.js +0 -1
- package/dist/699.js.map +0 -1
@@ -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(180),t.e(672),t.e(
|
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(180),t.e(672),t.e(830)]).then((()=>()=>t(45)))},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.7.1-pre.2076",(()=>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],830:[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=_})();
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"auxiliaryFiles": [
|
79
79
|
"openmrs-esm-stock-management-app.js.map"
|
80
80
|
],
|
81
|
-
"hash": "
|
81
|
+
"hash": "07d43af166495059",
|
82
82
|
"childrenByOrder": {}
|
83
83
|
},
|
84
84
|
{
|
@@ -86,10 +86,10 @@
|
|
86
86
|
"initial": true,
|
87
87
|
"entry": true,
|
88
88
|
"recorded": false,
|
89
|
-
"size":
|
89
|
+
"size": 4769928,
|
90
90
|
"sizes": {
|
91
91
|
"consume-shared": 252,
|
92
|
-
"javascript":
|
92
|
+
"javascript": 4747979,
|
93
93
|
"share-init": 252,
|
94
94
|
"runtime": 21445
|
95
95
|
},
|
@@ -106,7 +106,7 @@
|
|
106
106
|
"auxiliaryFiles": [
|
107
107
|
"main.js.map"
|
108
108
|
],
|
109
|
-
"hash": "
|
109
|
+
"hash": "043c36f499af5b80",
|
110
110
|
"childrenByOrder": {}
|
111
111
|
},
|
112
112
|
{
|
@@ -188,9 +188,9 @@
|
|
188
188
|
"initial": false,
|
189
189
|
"entry": false,
|
190
190
|
"recorded": false,
|
191
|
-
"size":
|
191
|
+
"size": 9382,
|
192
192
|
"sizes": {
|
193
|
-
"javascript":
|
193
|
+
"javascript": 9382
|
194
194
|
},
|
195
195
|
"names": [],
|
196
196
|
"idHints": [],
|
@@ -202,7 +202,7 @@
|
|
202
202
|
"574.js"
|
203
203
|
],
|
204
204
|
"auxiliaryFiles": [],
|
205
|
-
"hash": "
|
205
|
+
"hash": "998b340f1db57f85",
|
206
206
|
"childrenByOrder": {}
|
207
207
|
},
|
208
208
|
{
|
@@ -255,23 +255,23 @@
|
|
255
255
|
"initial": false,
|
256
256
|
"entry": false,
|
257
257
|
"recorded": false,
|
258
|
-
"size":
|
258
|
+
"size": 39719,
|
259
259
|
"sizes": {
|
260
|
-
"javascript":
|
261
|
-
"consume-shared": 210
|
260
|
+
"javascript": 39719
|
262
261
|
},
|
263
262
|
"names": [],
|
264
263
|
"idHints": [],
|
265
264
|
"runtime": [
|
266
|
-
"@openmrs/esm-stock-management-app"
|
265
|
+
"@openmrs/esm-stock-management-app",
|
266
|
+
"main"
|
267
267
|
],
|
268
268
|
"files": [
|
269
|
-
"
|
269
|
+
"707.js"
|
270
270
|
],
|
271
271
|
"auxiliaryFiles": [
|
272
|
-
"
|
272
|
+
"707.js.map"
|
273
273
|
],
|
274
|
-
"hash": "
|
274
|
+
"hash": "e9b7d1108fb062e0",
|
275
275
|
"childrenByOrder": {}
|
276
276
|
},
|
277
277
|
{
|
@@ -279,23 +279,26 @@
|
|
279
279
|
"initial": false,
|
280
280
|
"entry": false,
|
281
281
|
"recorded": false,
|
282
|
-
"
|
282
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
283
|
+
"size": 1783159,
|
283
284
|
"sizes": {
|
284
|
-
"javascript":
|
285
|
+
"javascript": 1783159
|
285
286
|
},
|
286
287
|
"names": [],
|
287
|
-
"idHints": [
|
288
|
+
"idHints": [
|
289
|
+
"vendors"
|
290
|
+
],
|
288
291
|
"runtime": [
|
289
292
|
"@openmrs/esm-stock-management-app",
|
290
293
|
"main"
|
291
294
|
],
|
292
295
|
"files": [
|
293
|
-
"
|
296
|
+
"800.js"
|
294
297
|
],
|
295
298
|
"auxiliaryFiles": [
|
296
|
-
"
|
299
|
+
"800.js.map"
|
297
300
|
],
|
298
|
-
"hash": "
|
301
|
+
"hash": "63121f39673cb859",
|
299
302
|
"childrenByOrder": {}
|
300
303
|
},
|
301
304
|
{
|
@@ -303,26 +306,23 @@
|
|
303
306
|
"initial": false,
|
304
307
|
"entry": false,
|
305
308
|
"recorded": false,
|
306
|
-
"
|
307
|
-
"size": 1774162,
|
309
|
+
"size": 1078747,
|
308
310
|
"sizes": {
|
309
|
-
"javascript":
|
311
|
+
"javascript": 1078537,
|
312
|
+
"consume-shared": 210
|
310
313
|
},
|
311
314
|
"names": [],
|
312
|
-
"idHints": [
|
313
|
-
"vendors"
|
314
|
-
],
|
315
|
+
"idHints": [],
|
315
316
|
"runtime": [
|
316
|
-
"@openmrs/esm-stock-management-app"
|
317
|
-
"main"
|
317
|
+
"@openmrs/esm-stock-management-app"
|
318
318
|
],
|
319
319
|
"files": [
|
320
|
-
"
|
320
|
+
"830.js"
|
321
321
|
],
|
322
322
|
"auxiliaryFiles": [
|
323
|
-
"
|
323
|
+
"830.js.map"
|
324
324
|
],
|
325
|
-
"hash": "
|
325
|
+
"hash": "7c2b5d7edcce9652",
|
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,I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AAfA,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":""}
|
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,OAG3KR,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,IAAK,IAAM,EACXkB,KAAM,IAAM,G,GC5BTS,EAA2B,CAAC,EAGhC,SAASnB,EAAoBoB,GAE5B,IAAIC,EAAeF,EAAyBC,GAC5C,QAAqBX,IAAjBY,EACH,OAAOA,EAAaH,QAGrB,IAAIf,EAASg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D,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","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"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.
|
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"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.444"}
|
package/package.json
CHANGED
package/src/core/components/carbon/controlled-number-input/controlled-number-input.component.tsx
CHANGED
@@ -20,7 +20,7 @@ const ControlledNumberInput = <T,>(props: ControlledNumberInputProps<T>) => {
|
|
20
20
|
render={({ field: { onChange, value, ref } }) => (
|
21
21
|
<NumberInput
|
22
22
|
label={props.label}
|
23
|
-
id={`${props.name}-${props.
|
23
|
+
id={`${props.name}-${props.id}-${props.row?.uuid}`}
|
24
24
|
value={props.row?.factor ?? value}
|
25
25
|
min={props.min}
|
26
26
|
hideSteppers={props.hideSteppers || false}
|
@@ -1,8 +1,10 @@
|
|
1
|
-
import React, { ReactNode,
|
1
|
+
import React, { ReactNode, useState } from "react";
|
2
|
+
import { useTranslation } from "react-i18next";
|
2
3
|
import { ComboBox, InlineLoading } from "@carbon/react";
|
3
4
|
import { Drug } from "../../../core/api/types/concept/Drug";
|
4
5
|
import { Control, Controller, FieldValues } from "react-hook-form";
|
5
6
|
import { useDrugsHook } from "./drug-selector.resource";
|
7
|
+
import { fetchStockItem } from "../../stock-items.resource";
|
6
8
|
|
7
9
|
interface DrugSelectorProps<T> {
|
8
10
|
placeholder?: string;
|
@@ -19,19 +21,23 @@ interface DrugSelectorProps<T> {
|
|
19
21
|
}
|
20
22
|
|
21
23
|
const DrugSelector = <T,>(props: DrugSelectorProps<T>) => {
|
22
|
-
const { isLoading, drugList } = useDrugsHook();
|
23
|
-
|
24
24
|
const [inputValue, setInputValue] = useState("");
|
25
|
+
const { t } = useTranslation();
|
26
|
+
const { isLoading, drugList } = useDrugsHook(inputValue);
|
27
|
+
const [showExistenceError, setShowExistenceError] = useState(false);
|
28
|
+
|
25
29
|
const handleInputChange = (value) => {
|
26
30
|
setInputValue(value);
|
27
31
|
};
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
|
33
|
+
const checkDrugExistence = (drugUuid?: string | null) => {
|
34
|
+
if (!drugUuid) return;
|
35
|
+
|
36
|
+
fetchStockItem(drugUuid).then((result: any) => {
|
37
|
+
const itemExists = (result?.results?.length ?? 0) !== 0;
|
38
|
+
setShowExistenceError(itemExists);
|
39
|
+
});
|
40
|
+
};
|
35
41
|
|
36
42
|
return (
|
37
43
|
<div>
|
@@ -46,14 +52,18 @@ const DrugSelector = <T,>(props: DrugSelectorProps<T>) => {
|
|
46
52
|
controllerName={props.controllerName}
|
47
53
|
id={props.name}
|
48
54
|
size={"md"}
|
49
|
-
items={
|
55
|
+
items={drugList || []}
|
50
56
|
initialSelectedItem={
|
51
57
|
drugList?.find((p) => p.uuid === props.drugUuid) ?? ""
|
52
58
|
}
|
53
59
|
itemToString={drugName}
|
54
60
|
onChange={(data: { selectedItem: Drug }) => {
|
61
|
+
setShowExistenceError(false);
|
55
62
|
props.onDrugChanged?.(data.selectedItem);
|
56
|
-
onChange(data
|
63
|
+
onChange(data?.selectedItem?.uuid);
|
64
|
+
if (data?.selectedItem?.uuid) {
|
65
|
+
checkDrugExistence(data?.selectedItem?.uuid);
|
66
|
+
}
|
57
67
|
}}
|
58
68
|
onInputChange={(event) => handleInputChange(event)}
|
59
69
|
inputValue={inputValue}
|
@@ -71,6 +81,11 @@ const DrugSelector = <T,>(props: DrugSelectorProps<T>) => {
|
|
71
81
|
description="Searching..."
|
72
82
|
/>
|
73
83
|
)}
|
84
|
+
{showExistenceError && (
|
85
|
+
<div style={{ color: "#da1e28" }}>
|
86
|
+
{t("itemAlreadyExists", "Item already exits")}
|
87
|
+
</div>
|
88
|
+
)}
|
74
89
|
</div>
|
75
90
|
);
|
76
91
|
};
|
@@ -1,50 +1,24 @@
|
|
1
1
|
import { ResourceRepresentation } from "../../../core/api/api";
|
2
|
-
import { useEffect, useState } from "react";
|
3
2
|
import {
|
4
|
-
|
3
|
+
DrugFilterCriteria,
|
5
4
|
useDrugs,
|
6
5
|
} from "../../../stock-lookups/stock-lookups.resource";
|
7
|
-
import { debounce } from "../../../core/utils/debounce";
|
8
6
|
|
9
|
-
export function useDrugsHook(filter?:
|
10
|
-
const
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
export function useDrugsHook(searchTerm?: string, filter?: DrugFilterCriteria) {
|
8
|
+
const defaultFilters: DrugFilterCriteria = {
|
9
|
+
v: ResourceRepresentation.Default,
|
10
|
+
q: searchTerm,
|
11
|
+
limit: 20,
|
12
|
+
};
|
13
|
+
const drugsFilter: DrugFilterCriteria = filter || defaultFilters;
|
16
14
|
|
17
15
|
const {
|
18
16
|
items: { results: drugList },
|
19
17
|
isLoading,
|
20
|
-
} = useDrugs(
|
21
|
-
|
22
|
-
const [searchString, setSearchString] = useState("");
|
23
|
-
|
24
|
-
// Drug filter type
|
25
|
-
const [limit, setLimit] = useState(filter?.limit || 10);
|
26
|
-
const [representation, setRepresentation] = useState(
|
27
|
-
filter?.v || ResourceRepresentation.Default
|
28
|
-
);
|
29
|
-
|
30
|
-
useEffect(() => {
|
31
|
-
debounce(
|
32
|
-
() =>
|
33
|
-
setConceptFilter({
|
34
|
-
startIndex: 0,
|
35
|
-
v: representation,
|
36
|
-
limit: limit,
|
37
|
-
q: searchString,
|
38
|
-
}),
|
39
|
-
500
|
40
|
-
);
|
41
|
-
}, [searchString, limit, representation]);
|
18
|
+
} = useDrugs(drugsFilter);
|
42
19
|
|
43
20
|
return {
|
44
21
|
drugList,
|
45
|
-
setLimit,
|
46
|
-
setRepresentation,
|
47
|
-
setSearchString,
|
48
22
|
isLoading,
|
49
23
|
};
|
50
24
|
}
|