@openmrs/esm-stock-management-app 3.1.1-pre.1179 → 3.1.1-pre.1186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +0 -5
- package/.husky/pre-push +0 -3
- package/dist/130.js +1 -1
- package/dist/130.js.map +1 -1
- package/dist/2177.js +1 -1
- package/dist/2177.js.map +1 -1
- package/dist/3066.js +2 -0
- package/dist/3066.js.map +1 -0
- package/dist/3220.js +1 -1
- package/dist/3220.js.map +1 -1
- package/dist/4300.js +1 -1
- package/dist/4732.js +1 -1
- package/dist/4732.js.map +1 -1
- package/dist/5125.js +1 -1
- package/dist/5125.js.map +1 -1
- package/dist/5333.js +1 -1
- package/dist/5333.js.map +1 -1
- package/dist/5609.js +1 -1
- package/dist/5609.js.map +1 -1
- package/dist/6184.js +1 -1
- package/dist/6184.js.map +1 -1
- package/dist/6757.js +1 -1
- package/dist/6757.js.map +1 -1
- package/dist/8161.js +1 -1
- package/dist/8161.js.map +1 -1
- package/dist/9186.js +1 -1
- package/dist/9186.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +64 -64
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/constants.ts +2 -3
- package/src/core/components/carbon/controlled-combo-box.component.tsx +12 -9
- package/src/core/components/carbon/controlled-radio-button-group.component.tsx +21 -16
- package/src/core/components/table/table.component.tsx +26 -17
- package/src/core/components/table/table.scss +4 -0
- package/src/core/components/table/types.ts +12 -0
- package/src/core/components/tabs/vertical-tabs.component.tsx +2 -6
- package/src/declarations.d.ts +0 -3
- package/src/stock-home/stock-home-inventory-card.component.tsx +2 -2
- package/src/stock-items/add-stock-item/add-stock-item.component.tsx +1 -1
- package/src/stock-items/add-stock-item/batch-information/batch-information-locations/batch-information-locations-filter.component.tsx +0 -3
- package/src/stock-items/add-stock-item/batch-information/batch-information.component.tsx +4 -4
- package/src/stock-items/add-stock-item/dispensing-package-measurement/dispensing-package-measurement.component.tsx +2 -5
- package/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx +4 -8
- package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete.modal.tsx +2 -2
- package/src/stock-items/add-stock-item/packaging-units/packaging-units.component.tsx +32 -18
- package/src/stock-items/add-stock-item/packaging-units-concept-selector/packaging-units-concept-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/preferred-vendor-selector/preferred-vendor-selector.component.tsx +0 -3
- package/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +10 -10
- package/src/stock-items/add-stock-item/stock-item-references/stock-item-references.component.tsx +36 -27
- package/src/stock-items/add-stock-item/stock-item-references/stock-references-selector.component.tsx +2 -5
- package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.component.tsx +16 -16
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.component.tsx +10 -9
- package/src/stock-items/add-stock-item/stock-item-rules/stock-rules-filter.component.tsx +8 -3
- package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +2 -2
- package/src/stock-items/add-stock-item/transactions/printout/printable-bincard-transaction-header.component.tsx +5 -5
- package/src/stock-items/add-stock-item/transactions/printout/printable-stockcard-transaction-header.component.tsx +3 -3
- package/src/stock-items/add-stock-item/transactions/printout/transactions-print-action.component.tsx +2 -5
- package/src/stock-items/add-stock-item/transactions/printout/transactions-print-bincard-preview.modal.tsx +1 -1
- package/src/stock-items/add-stock-item/transactions/transaction-filters/transaction-locations-filter.component.tsx +0 -3
- package/src/stock-items/components/filter-stock-items/filter-stock-items.component.tsx +6 -4
- package/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx +1 -1
- package/src/stock-items/stock-items-table.component.tsx +21 -15
- package/src/stock-items/stock-items-table.resource.ts +1 -1
- package/src/stock-items/stock-items.resource.ts +1 -2
- package/src/stock-locations/add-locations-form.workspace.tsx +9 -11
- package/src/stock-locations/location-admin-form.component.tsx +9 -4
- package/src/stock-locations/stock-locations-table.component.tsx +3 -3
- package/src/stock-lookups/stock-lookups.resource.ts +2 -2
- package/src/stock-management-admin-card-link.component.tsx +1 -1
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-items-table.tsx +12 -8
- package/src/stock-operations/add-stock-operation/stock-operations-expanded-row/stock-operation-expanded-row.component.tsx +4 -4
- package/src/stock-operations/edit-stock-operation/edit-stock-operation-action-menu.component.tsx +6 -7
- package/src/stock-operations/stock-operation-operations-filter/stock-operation-operations-filter.component.tsx +7 -3
- package/src/stock-operations/stock-operation-sources-filter/stock-operation-sources-filter.component.tsx +8 -4
- package/src/stock-operations/stock-operation-statuses-filter/stock-operation-statuses-filter.component.tsx +16 -14
- package/src/stock-operations/stock-operation-types-selector/stock-operation-types-selector.component.tsx +4 -4
- package/src/stock-operations/stock-operations-filters.component.tsx +4 -2
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.test.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/qty-uim-selector.test.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/quantity-uom-selector.component.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/input-components/stock-item-search.component.tsx +3 -4
- package/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx +6 -6
- package/src/stock-operations/stock-operations-forms/step2.test.tsx +1 -5
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx +15 -16
- package/src/stock-operations/stock-operations-forms/steps/quantity-uom-cell.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx +24 -21
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx +4 -4
- package/src/stock-operations/stock-operations-forms/stock-item-form/stock-item-form.workspace.tsx +60 -53
- package/src/stock-operations/stock-operations-forms/stock-operation-form.component.tsx +17 -12
- package/src/stock-operations/stock-operations-modal/stock-operations-completed-dispatch-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-modal/stock-operations-issue-stock-button.component.tsx +1 -1
- package/src/stock-operations/stock-operations-modal/stock-operations-print-button.component.tsx +6 -2
- package/src/stock-operations/stock-operations-modal/stock-operations-reject-button.component.tsx +4 -5
- package/src/stock-operations/stock-operations-modal/stock-operations.modal.tsx +4 -2
- package/src/stock-operations/stock-operations-table.component.tsx +16 -12
- package/src/stock-operations/stock-operations-table.resource.ts +1 -0
- package/src/stock-reports/generate-report/create-stock-report.workspace.tsx +31 -35
- package/src/stock-reports/report-list/stock-reports.component.tsx +5 -9
- package/src/stock-reports/stock-reports.resource.ts +1 -1
- package/src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx +6 -6
- package/src/stock-sources/stock-sources-items-table.component.tsx +14 -10
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.workspace.tsx +52 -53
- package/src/stock-user-role-scopes/delete-stock-user-scope/delete-stock-user-scope.component.tsx +1 -1
- package/src/stock-user-role-scopes/delete-stock-user-scope.modal.tsx +4 -1
- package/src/stock-user-role-scopes/stock-user-role-scopes-items-table.component.tsx +8 -12
- package/translations/en.json +105 -71
- package/dist/2474.js +0 -2
- package/dist/2474.js.map +0 -1
- package/src/core/components/carbon/controlled-dropdown.component.tsx +0 -37
- /package/dist/{2474.js.LICENSE.txt → 3066.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,f,p,c,d,h,m,v,g,b,y,w,_={60588:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(2177),t.e(961),t.e(2415),t.e(1116),t.e(6072),t.e(9897),t.e(5125)]).then((()=>()=>t(55125)))},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})}},j={};function k(e){var r=j[e];if(void 0!==r)return r.exports;var t=j[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,k),t.exports}k.m=_,k.c=j,k.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return k.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,k.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);k.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,k.d(o,a),o},k.d=(e,r)=>{for(var t in r)k.o(r,t)&&!k.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},k.f={},k.e=e=>Promise.all(Object.keys(k.f).reduce(((r,t)=>(k.f[t](e,r),r)),[])),k.u=e=>e+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),k.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",k.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var f=l[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,k.nc&&i.setAttribute("nonce",k.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),s&&document.head.appendChild(i)}},k.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{k.S={};var e={},r={};k.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];k.o(k.S,t)||(k.S[t]={});var a=k.S[t],i="@openmrs/esm-stock-management-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","8.0.1-pre.
|
|
1
|
+
var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,f,p,c,d,h,m,v,g,b,y,w,_={60588:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(2177),t.e(961),t.e(2415),t.e(1116),t.e(6072),t.e(9897),t.e(5125)]).then((()=>()=>t(55125)))},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})}},j={};function k(e){var r=j[e];if(void 0!==r)return r.exports;var t=j[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,k),t.exports}k.m=_,k.c=j,k.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return k.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,k.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);k.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,k.d(o,a),o},k.d=(e,r)=>{for(var t in r)k.o(r,t)&&!k.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},k.f={},k.e=e=>Promise.all(Object.keys(k.f).reduce(((r,t)=>(k.f[t](e,r),r)),[])),k.u=e=>e+".js",k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),k.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",k.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var f=l[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,k.nc&&i.setAttribute("nonce",k.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),s&&document.head.appendChild(i)}},k.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{k.S={};var e={},r={};k.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];k.o(k.S,t)||(k.S[t]={});var a=k.S[t],i="@openmrs/esm-stock-management-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","8.0.1-pre.3614",(()=>Promise.all([k.e(2177),k.e(961),k.e(3066),k.e(2415),k.e(6072),k.e(9897),k.e(1997)]).then((()=>()=>k(73066))))),s("dayjs","1.11.13",(()=>k.e(4353).then((()=>()=>k(74353))))),s("react-i18next","16.0.0",(()=>Promise.all([k.e(7255),k.e(6072)]).then((()=>()=>k(77255))))),s("react-router-dom","6.21.1",(()=>Promise.all([k.e(961),k.e(282),k.e(6072)]).then((()=>()=>k(20282))))),s("react","18.3.1",(()=>k.e(6540).then((()=>()=>k(96540))))),s("rxjs","6.6.7",(()=>k.e(3184).then((()=>()=>k(63184))))),s("swr/immutable","2.3.3",(()=>Promise.all([k.e(2177),k.e(6072),k.e(4225)]).then((()=>()=>k(54225))))),s("swr/infinite","2.3.3",(()=>Promise.all([k.e(2177),k.e(6072),k.e(3041)]).then((()=>()=>k(23041)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;k.g.importScripts&&(e=k.g.location+"");var r=k.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),k.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],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"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(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(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,l=!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!l||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!l||"u"!=p)return!1}else if(l)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]&&(l=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||f<p!=n)return!1;l=!1}else"s"!=p&&"n"!=p&&(l=!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?s(h,r):!d())}return!!d()},l=(e,r)=>e&&k.o(e,r),u=e=>(e.loaded=1,e.get()),f=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),p=(e,r,t)=>{var n=t?f(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e),0)},c=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",d=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=k.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,k.S[r],t,!1,o,a)):e(r,k.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!l(r,t))return m(e,t,a);var i=p(r,t,n);return s(o,i)||h(c(r,t,i,o)),u(r[t][i])})),g={},b={16072:()=>v("default","react",!1,[1,18],(()=>k.e(6540).then((()=>()=>k(96540))))),2076:()=>v("default","react-i18next",!1,[1,16],(()=>k.e(7255).then((()=>()=>k(77255))))),15847:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([k.e(3066),k.e(1997)]).then((()=>()=>k(73066))))),27114:()=>v("default","react-router-dom",!1,[1,6],(()=>k.e(282).then((()=>()=>k(20282))))),70231:()=>v("default","dayjs",!1,[1,1],(()=>k.e(4353).then((()=>()=>k(74353))))),44209:()=>v("default","swr/immutable",!1,[1,2],(()=>k.e(6606).then((()=>()=>k(54225))))),53083:()=>v("default","rxjs",!1,[1,6],(()=>k.e(3184).then((()=>()=>k(63184))))),56339:()=>v("default","swr/infinite",!1,[1,2],(()=>k.e(5422).then((()=>()=>k(23041)))))},y={1997:[44209,53083,56339],6072:[16072],9897:[2076,15847,27114,70231]},w={},k.f.consumes=(e,r)=>{k.o(y,e)&&y[e].forEach((e=>{if(k.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,k.m[e]=t=>{delete k.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],k.m[e]=t=>{throw delete k.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={6604:0};k.f.j=(r,t)=>{var n=k.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^((19|98)97|6072)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=k.p+k.u(r),i=new Error;k.l(a,(t=>{if(k.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)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)k.o(i,n)&&(k.m[n]=i[n]);s&&s(k)}for(r&&r(t);l<a.length;l++)o=a[l],k.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))})(),k.nc=void 0;var P=k(60588);_openmrs_esm_stock_management_app=P})();
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"initial": false,
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 42809,
|
|
9
9
|
"sizes": {
|
|
10
|
-
"javascript":
|
|
10
|
+
"javascript": 42809
|
|
11
11
|
},
|
|
12
12
|
"names": [],
|
|
13
13
|
"idHints": [],
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"auxiliaryFiles": [
|
|
22
22
|
"130.js.map"
|
|
23
23
|
],
|
|
24
|
-
"hash": "
|
|
24
|
+
"hash": "88b0342d767f0c0e",
|
|
25
25
|
"childrenByOrder": {}
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"auxiliaryFiles": [
|
|
375
375
|
"2177.js.map"
|
|
376
376
|
],
|
|
377
|
-
"hash": "
|
|
377
|
+
"hash": "70d6b1d33b4f5ee1",
|
|
378
378
|
"childrenByOrder": {}
|
|
379
379
|
},
|
|
380
380
|
{
|
|
@@ -409,26 +409,21 @@
|
|
|
409
409
|
"initial": false,
|
|
410
410
|
"entry": false,
|
|
411
411
|
"recorded": false,
|
|
412
|
-
"
|
|
413
|
-
"size": 4218221,
|
|
412
|
+
"size": 14174,
|
|
414
413
|
"sizes": {
|
|
415
|
-
"javascript":
|
|
414
|
+
"javascript": 14174
|
|
416
415
|
},
|
|
417
416
|
"names": [],
|
|
418
|
-
"idHints": [
|
|
419
|
-
"vendors"
|
|
420
|
-
],
|
|
417
|
+
"idHints": [],
|
|
421
418
|
"runtime": [
|
|
422
419
|
"@openmrs/esm-stock-management-app",
|
|
423
420
|
"main"
|
|
424
421
|
],
|
|
425
422
|
"files": [
|
|
426
|
-
"
|
|
427
|
-
],
|
|
428
|
-
"auxiliaryFiles": [
|
|
429
|
-
"2474.js.map"
|
|
423
|
+
"2690.js"
|
|
430
424
|
],
|
|
431
|
-
"
|
|
425
|
+
"auxiliaryFiles": [],
|
|
426
|
+
"hash": "1939af7e95e01d28",
|
|
432
427
|
"childrenByOrder": {}
|
|
433
428
|
},
|
|
434
429
|
{
|
|
@@ -436,9 +431,9 @@
|
|
|
436
431
|
"initial": false,
|
|
437
432
|
"entry": false,
|
|
438
433
|
"recorded": false,
|
|
439
|
-
"size":
|
|
434
|
+
"size": 14433,
|
|
440
435
|
"sizes": {
|
|
441
|
-
"javascript":
|
|
436
|
+
"javascript": 14433
|
|
442
437
|
},
|
|
443
438
|
"names": [],
|
|
444
439
|
"idHints": [],
|
|
@@ -447,10 +442,12 @@
|
|
|
447
442
|
"main"
|
|
448
443
|
],
|
|
449
444
|
"files": [
|
|
450
|
-
"
|
|
445
|
+
"3041.js"
|
|
451
446
|
],
|
|
452
|
-
"auxiliaryFiles": [
|
|
453
|
-
|
|
447
|
+
"auxiliaryFiles": [
|
|
448
|
+
"3041.js.map"
|
|
449
|
+
],
|
|
450
|
+
"hash": "8e692939d24b9f16",
|
|
454
451
|
"childrenByOrder": {}
|
|
455
452
|
},
|
|
456
453
|
{
|
|
@@ -458,23 +455,26 @@
|
|
|
458
455
|
"initial": false,
|
|
459
456
|
"entry": false,
|
|
460
457
|
"recorded": false,
|
|
461
|
-
"
|
|
458
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
459
|
+
"size": 4326109,
|
|
462
460
|
"sizes": {
|
|
463
|
-
"javascript":
|
|
461
|
+
"javascript": 4326109
|
|
464
462
|
},
|
|
465
463
|
"names": [],
|
|
466
|
-
"idHints": [
|
|
464
|
+
"idHints": [
|
|
465
|
+
"vendors"
|
|
466
|
+
],
|
|
467
467
|
"runtime": [
|
|
468
468
|
"@openmrs/esm-stock-management-app",
|
|
469
469
|
"main"
|
|
470
470
|
],
|
|
471
471
|
"files": [
|
|
472
|
-
"
|
|
472
|
+
"3066.js"
|
|
473
473
|
],
|
|
474
474
|
"auxiliaryFiles": [
|
|
475
|
-
"
|
|
475
|
+
"3066.js.map"
|
|
476
476
|
],
|
|
477
|
-
"hash": "
|
|
477
|
+
"hash": "5af06a33a4712d9a",
|
|
478
478
|
"childrenByOrder": {}
|
|
479
479
|
},
|
|
480
480
|
{
|
|
@@ -531,9 +531,9 @@
|
|
|
531
531
|
"initial": false,
|
|
532
532
|
"entry": false,
|
|
533
533
|
"recorded": false,
|
|
534
|
-
"size":
|
|
534
|
+
"size": 66568,
|
|
535
535
|
"sizes": {
|
|
536
|
-
"javascript":
|
|
536
|
+
"javascript": 66568
|
|
537
537
|
},
|
|
538
538
|
"names": [],
|
|
539
539
|
"idHints": [],
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
"auxiliaryFiles": [
|
|
548
548
|
"3220.js.map"
|
|
549
549
|
],
|
|
550
|
-
"hash": "
|
|
550
|
+
"hash": "078e3899db93dd94",
|
|
551
551
|
"childrenByOrder": {}
|
|
552
552
|
},
|
|
553
553
|
{
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
"auxiliaryFiles": [
|
|
686
686
|
"4225.js.map"
|
|
687
687
|
],
|
|
688
|
-
"hash": "
|
|
688
|
+
"hash": "22024486d6f4131e",
|
|
689
689
|
"childrenByOrder": {}
|
|
690
690
|
},
|
|
691
691
|
{
|
|
@@ -693,9 +693,9 @@
|
|
|
693
693
|
"initial": false,
|
|
694
694
|
"entry": false,
|
|
695
695
|
"recorded": false,
|
|
696
|
-
"size":
|
|
696
|
+
"size": 15090,
|
|
697
697
|
"sizes": {
|
|
698
|
-
"javascript":
|
|
698
|
+
"javascript": 15090
|
|
699
699
|
},
|
|
700
700
|
"names": [],
|
|
701
701
|
"idHints": [],
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
"4300.js"
|
|
708
708
|
],
|
|
709
709
|
"auxiliaryFiles": [],
|
|
710
|
-
"hash": "
|
|
710
|
+
"hash": "53933917309d6844",
|
|
711
711
|
"childrenByOrder": {}
|
|
712
712
|
},
|
|
713
713
|
{
|
|
@@ -805,9 +805,9 @@
|
|
|
805
805
|
"initial": false,
|
|
806
806
|
"entry": false,
|
|
807
807
|
"recorded": false,
|
|
808
|
-
"size":
|
|
808
|
+
"size": 61607,
|
|
809
809
|
"sizes": {
|
|
810
|
-
"javascript":
|
|
810
|
+
"javascript": 61607
|
|
811
811
|
},
|
|
812
812
|
"names": [],
|
|
813
813
|
"idHints": [],
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
"auxiliaryFiles": [
|
|
822
822
|
"4732.js.map"
|
|
823
823
|
],
|
|
824
|
-
"hash": "
|
|
824
|
+
"hash": "78b177c7c59cbf52",
|
|
825
825
|
"childrenByOrder": {}
|
|
826
826
|
},
|
|
827
827
|
{
|
|
@@ -875,9 +875,9 @@
|
|
|
875
875
|
"initial": false,
|
|
876
876
|
"entry": false,
|
|
877
877
|
"recorded": false,
|
|
878
|
-
"size":
|
|
878
|
+
"size": 1193676,
|
|
879
879
|
"sizes": {
|
|
880
|
-
"javascript":
|
|
880
|
+
"javascript": 1193676
|
|
881
881
|
},
|
|
882
882
|
"names": [],
|
|
883
883
|
"idHints": [],
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
"auxiliaryFiles": [
|
|
891
891
|
"5125.js.map"
|
|
892
892
|
],
|
|
893
|
-
"hash": "
|
|
893
|
+
"hash": "2ae37ae70d9623ef",
|
|
894
894
|
"childrenByOrder": {}
|
|
895
895
|
},
|
|
896
896
|
{
|
|
@@ -942,9 +942,9 @@
|
|
|
942
942
|
"initial": false,
|
|
943
943
|
"entry": false,
|
|
944
944
|
"recorded": false,
|
|
945
|
-
"size":
|
|
945
|
+
"size": 336194,
|
|
946
946
|
"sizes": {
|
|
947
|
-
"javascript":
|
|
947
|
+
"javascript": 336194
|
|
948
948
|
},
|
|
949
949
|
"names": [],
|
|
950
950
|
"idHints": [],
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
"auxiliaryFiles": [
|
|
959
959
|
"5333.js.map"
|
|
960
960
|
],
|
|
961
|
-
"hash": "
|
|
961
|
+
"hash": "6ec66111f95a2dc1",
|
|
962
962
|
"childrenByOrder": {}
|
|
963
963
|
},
|
|
964
964
|
{
|
|
@@ -1006,7 +1006,7 @@
|
|
|
1006
1006
|
"auxiliaryFiles": [
|
|
1007
1007
|
"5422.js.map"
|
|
1008
1008
|
],
|
|
1009
|
-
"hash": "
|
|
1009
|
+
"hash": "deb66a7ae0395cd6",
|
|
1010
1010
|
"childrenByOrder": {}
|
|
1011
1011
|
},
|
|
1012
1012
|
{
|
|
@@ -1036,9 +1036,9 @@
|
|
|
1036
1036
|
"initial": false,
|
|
1037
1037
|
"entry": false,
|
|
1038
1038
|
"recorded": false,
|
|
1039
|
-
"size":
|
|
1039
|
+
"size": 16330,
|
|
1040
1040
|
"sizes": {
|
|
1041
|
-
"javascript":
|
|
1041
|
+
"javascript": 16330
|
|
1042
1042
|
},
|
|
1043
1043
|
"names": [],
|
|
1044
1044
|
"idHints": [],
|
|
@@ -1052,7 +1052,7 @@
|
|
|
1052
1052
|
"auxiliaryFiles": [
|
|
1053
1053
|
"5609.js.map"
|
|
1054
1054
|
],
|
|
1055
|
-
"hash": "
|
|
1055
|
+
"hash": "0a139227de0e49d2",
|
|
1056
1056
|
"childrenByOrder": {}
|
|
1057
1057
|
},
|
|
1058
1058
|
{
|
|
@@ -1125,9 +1125,9 @@
|
|
|
1125
1125
|
"initial": false,
|
|
1126
1126
|
"entry": false,
|
|
1127
1127
|
"recorded": false,
|
|
1128
|
-
"size":
|
|
1128
|
+
"size": 15317,
|
|
1129
1129
|
"sizes": {
|
|
1130
|
-
"javascript":
|
|
1130
|
+
"javascript": 15317
|
|
1131
1131
|
},
|
|
1132
1132
|
"names": [],
|
|
1133
1133
|
"idHints": [],
|
|
@@ -1141,7 +1141,7 @@
|
|
|
1141
1141
|
"auxiliaryFiles": [
|
|
1142
1142
|
"6184.js.map"
|
|
1143
1143
|
],
|
|
1144
|
-
"hash": "
|
|
1144
|
+
"hash": "25d40dc968c8bec9",
|
|
1145
1145
|
"childrenByOrder": {}
|
|
1146
1146
|
},
|
|
1147
1147
|
{
|
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
"auxiliaryFiles": [
|
|
1237
1237
|
"openmrs-esm-stock-management-app.js.map"
|
|
1238
1238
|
],
|
|
1239
|
-
"hash": "
|
|
1239
|
+
"hash": "fe46b3d94b4c35cb",
|
|
1240
1240
|
"childrenByOrder": {}
|
|
1241
1241
|
},
|
|
1242
1242
|
{
|
|
@@ -1260,7 +1260,7 @@
|
|
|
1260
1260
|
"auxiliaryFiles": [
|
|
1261
1261
|
"6606.js.map"
|
|
1262
1262
|
],
|
|
1263
|
-
"hash": "
|
|
1263
|
+
"hash": "0acb966245874bd1",
|
|
1264
1264
|
"childrenByOrder": {}
|
|
1265
1265
|
},
|
|
1266
1266
|
{
|
|
@@ -1290,9 +1290,9 @@
|
|
|
1290
1290
|
"initial": false,
|
|
1291
1291
|
"entry": false,
|
|
1292
1292
|
"recorded": false,
|
|
1293
|
-
"size":
|
|
1293
|
+
"size": 27973,
|
|
1294
1294
|
"sizes": {
|
|
1295
|
-
"javascript":
|
|
1295
|
+
"javascript": 27973
|
|
1296
1296
|
},
|
|
1297
1297
|
"names": [],
|
|
1298
1298
|
"idHints": [],
|
|
@@ -1306,7 +1306,7 @@
|
|
|
1306
1306
|
"auxiliaryFiles": [
|
|
1307
1307
|
"6757.js.map"
|
|
1308
1308
|
],
|
|
1309
|
-
"hash": "
|
|
1309
|
+
"hash": "970f85564f5d7088",
|
|
1310
1310
|
"childrenByOrder": {}
|
|
1311
1311
|
},
|
|
1312
1312
|
{
|
|
@@ -1451,9 +1451,9 @@
|
|
|
1451
1451
|
"initial": false,
|
|
1452
1452
|
"entry": false,
|
|
1453
1453
|
"recorded": false,
|
|
1454
|
-
"size":
|
|
1454
|
+
"size": 31474,
|
|
1455
1455
|
"sizes": {
|
|
1456
|
-
"javascript":
|
|
1456
|
+
"javascript": 31474
|
|
1457
1457
|
},
|
|
1458
1458
|
"names": [],
|
|
1459
1459
|
"idHints": [],
|
|
@@ -1467,7 +1467,7 @@
|
|
|
1467
1467
|
"auxiliaryFiles": [
|
|
1468
1468
|
"8161.js.map"
|
|
1469
1469
|
],
|
|
1470
|
-
"hash": "
|
|
1470
|
+
"hash": "ca06d2393681e437",
|
|
1471
1471
|
"childrenByOrder": {}
|
|
1472
1472
|
},
|
|
1473
1473
|
{
|
|
@@ -1563,10 +1563,10 @@
|
|
|
1563
1563
|
"initial": true,
|
|
1564
1564
|
"entry": true,
|
|
1565
1565
|
"recorded": false,
|
|
1566
|
-
"size":
|
|
1566
|
+
"size": 5477853,
|
|
1567
1567
|
"sizes": {
|
|
1568
1568
|
"consume-shared": 210,
|
|
1569
|
-
"javascript":
|
|
1569
|
+
"javascript": 5455621,
|
|
1570
1570
|
"share-init": 336,
|
|
1571
1571
|
"runtime": 21686
|
|
1572
1572
|
},
|
|
@@ -1583,7 +1583,7 @@
|
|
|
1583
1583
|
"auxiliaryFiles": [
|
|
1584
1584
|
"main.js.map"
|
|
1585
1585
|
],
|
|
1586
|
-
"hash": "
|
|
1586
|
+
"hash": "f3aeab21405f9ae0",
|
|
1587
1587
|
"childrenByOrder": {}
|
|
1588
1588
|
},
|
|
1589
1589
|
{
|
|
@@ -1591,9 +1591,9 @@
|
|
|
1591
1591
|
"initial": false,
|
|
1592
1592
|
"entry": false,
|
|
1593
1593
|
"recorded": false,
|
|
1594
|
-
"size":
|
|
1594
|
+
"size": 217209,
|
|
1595
1595
|
"sizes": {
|
|
1596
|
-
"javascript":
|
|
1596
|
+
"javascript": 217209
|
|
1597
1597
|
},
|
|
1598
1598
|
"names": [],
|
|
1599
1599
|
"idHints": [],
|
|
@@ -1607,7 +1607,7 @@
|
|
|
1607
1607
|
"auxiliaryFiles": [
|
|
1608
1608
|
"9186.js.map"
|
|
1609
1609
|
],
|
|
1610
|
-
"hash": "
|
|
1610
|
+
"hash": "853f8452e93562fd",
|
|
1611
1611
|
"childrenByOrder": {}
|
|
1612
1612
|
},
|
|
1613
1613
|
{
|
|
@@ -1738,7 +1738,7 @@
|
|
|
1738
1738
|
],
|
|
1739
1739
|
"files": [],
|
|
1740
1740
|
"auxiliaryFiles": [],
|
|
1741
|
-
"hash": "
|
|
1741
|
+
"hash": "879b85f87ddd481e",
|
|
1742
1742
|
"childrenByOrder": {}
|
|
1743
1743
|
},
|
|
1744
1744
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"modals":[{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"expired-stock-modal","component":"expiredStockModal"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsModal"},{"name":"receiving-stock-modal","component":"receivingStockModal"},{"name":"stock-operations-modal","component":"stockOperationsModal"},{"name":"transactions-print-bincard-preview-modal","component":"transactionBincardPrintPreviewModal"},{"name":"transactions-print-stockcard-preview-modal","component":"transactionStockcardPrintPreviewModal"}],"workspaces":[{"name":"stock-operation-form-workspace","component":"stockOperationFormWorkspace","title":"Stock Operation","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-item-rules-form-workspace","component":"stockItemRulesFormWorkspace","title":"Stock Item Rules","type":"form"},{"name":"stock-item-form-workspace","component":"stockItemFormWorkspace","title":"Stock Items","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-sources-form-workspace","component":"stockSourcesFormWorkspace","title":"Stock Sources","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-location-form-workspace","component":"stockLocationsFormWorkspace","title":"Stock Locations","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-user-role-scopes-form-workspace","component":"stockUserScopesFormWorkspace","title":"User Role Scopes","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-reports-form-workspace","component":"stockReportsFormWorkspace","title":"Reports","type":"form","canMaximize":true,"width":"extra-wide"}],"pages":[{"component":"root","route":"stock-management"}],"version":"3.1.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"modals":[{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"expired-stock-modal","component":"expiredStockModal"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsModal"},{"name":"receiving-stock-modal","component":"receivingStockModal"},{"name":"stock-operations-modal","component":"stockOperationsModal"},{"name":"transactions-print-bincard-preview-modal","component":"transactionBincardPrintPreviewModal"},{"name":"transactions-print-stockcard-preview-modal","component":"transactionStockcardPrintPreviewModal"}],"workspaces":[{"name":"stock-operation-form-workspace","component":"stockOperationFormWorkspace","title":"Stock Operation","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-item-rules-form-workspace","component":"stockItemRulesFormWorkspace","title":"Stock Item Rules","type":"form"},{"name":"stock-item-form-workspace","component":"stockItemFormWorkspace","title":"Stock Items","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-sources-form-workspace","component":"stockSourcesFormWorkspace","title":"Stock Sources","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-location-form-workspace","component":"stockLocationsFormWorkspace","title":"Stock Locations","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-user-role-scopes-form-workspace","component":"stockUserScopesFormWorkspace","title":"User Role Scopes","type":"form","canMaximize":true,"width":"extra-wide"},{"name":"stock-reports-form-workspace","component":"stockReportsFormWorkspace","title":"Reports","type":"form","canMaximize":true,"width":"extra-wide"}],"pages":[{"component":"root","route":"stock-management"}],"version":"3.1.1-pre.1186"}
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -8,7 +8,6 @@ export const startOfDay = dayjs(new Date().setUTCHours(0, 0, 0, 0)).format(omrsD
|
|
|
8
8
|
export const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9
9
|
|
|
10
10
|
export const DATE_PICKER_FORMAT = 'DD/MM/YYYY';
|
|
11
|
-
|
|
12
11
|
export const DATE_PICKER_CONTROL_FORMAT = 'd/m/Y';
|
|
13
12
|
|
|
14
13
|
export const formatForDatePicker = (date: Date | null | undefined) => {
|
|
@@ -54,7 +53,7 @@ export const APP_STOCKMANAGEMENT_STOCKOPERATIONS = 'App: stockmanagement.stockop
|
|
|
54
53
|
/** @type {string}: Task: stockmanagement.stockoperations.mutate, Able to create and update stock operations*/
|
|
55
54
|
export const TASK_STOCKMANAGEMENT_STOCKOPERATIONS_MUTATE = 'Task: stockmanagement.stockoperations.mutate';
|
|
56
55
|
|
|
57
|
-
/** @type {string}: Task: stockmanagement.stockoperations.approve, Able to
|
|
56
|
+
/** @type {string}: Task: stockmanagement.stockoperations.approve, Able to approve stock operations*/
|
|
58
57
|
export const TASK_STOCKMANAGEMENT_STOCKOPERATIONS_APPROVE = 'Task: stockmanagement.stockoperations.approve';
|
|
59
58
|
|
|
60
59
|
/** @type {string}: Task: stockmanagement.stockoperations.receiveitems, Able to receive dispatched stock items*/
|
|
@@ -84,7 +83,7 @@ export const INVENTORY_CLERK_ROLE_UUID = 'd210eb66-2188-11ed-9dff-507b9dea1806';
|
|
|
84
83
|
export const INVENTORY_MANAGER_ROLE_UUID = 'cca4be4b-2188-11ed-9dff-507b9dea1806';
|
|
85
84
|
export const INVENTORY_DISPENSING_ROLE_UUID = '84bdd876-4694-11ed-8109-00155dcc3fc0';
|
|
86
85
|
export const INVENTORY_REPORTING_ROLE_UUID = 'a49be648-6b0a-11ed-93a2-806d973f13a9';
|
|
87
|
-
export const
|
|
86
|
+
export const INVENTORY_ADMINISTRATOR_ROLE_UUID = '2083fd40-3391-11ed-a667-507b9dea1806';
|
|
88
87
|
|
|
89
88
|
export const STOCK_OPERATION_PRINT_DISABLE_BALANCE_ON_HAND = true;
|
|
90
89
|
export const STOCK_OPERATION_PRINT_DISABLE_COSTS = true;
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Control, Controller, type FieldValues } from 'react-hook-form';
|
|
3
|
-
import { ComboBox } from '@carbon/react';
|
|
3
|
+
import { ComboBox, type ComboBoxProps } from '@carbon/react';
|
|
4
4
|
|
|
5
|
-
interface ControlledComboBoxProps<T>
|
|
5
|
+
interface ControlledComboBoxProps<T, ItemType>
|
|
6
|
+
extends Omit<ComboBoxProps<ItemType>, 'onChange' | 'id' | 'ref' | 'value'> {
|
|
6
7
|
controllerName: string;
|
|
7
8
|
name: string;
|
|
8
9
|
control: Control<FieldValues, T>;
|
|
9
10
|
onChange?: (e: { selectedItem: never }) => void;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
const ControlledComboBox = <T
|
|
13
|
+
const ControlledComboBox = <T, ItemType = unknown>(props: ControlledComboBoxProps<T, ItemType>) => {
|
|
14
|
+
const { controllerName, name, control, onChange: onChangeProp, ...comboBoxProps } = props;
|
|
15
|
+
|
|
13
16
|
return (
|
|
14
17
|
<Controller
|
|
15
|
-
name={
|
|
16
|
-
control={
|
|
18
|
+
name={controllerName}
|
|
19
|
+
control={control}
|
|
17
20
|
render={({ field: { onChange, value, ref } }) => (
|
|
18
21
|
<ComboBox
|
|
19
|
-
{...
|
|
22
|
+
{...comboBoxProps}
|
|
20
23
|
onChange={(e: { selectedItem: never }) => {
|
|
21
24
|
onChange(e);
|
|
22
25
|
|
|
23
26
|
// Fire prop change
|
|
24
|
-
if (
|
|
25
|
-
|
|
27
|
+
if (onChangeProp) {
|
|
28
|
+
onChangeProp(e);
|
|
26
29
|
}
|
|
27
30
|
}}
|
|
28
|
-
id={
|
|
31
|
+
id={name}
|
|
29
32
|
ref={ref}
|
|
30
33
|
value={value}
|
|
31
34
|
/>
|
|
@@ -4,43 +4,48 @@ import { type Control, Controller, type FieldValues } from 'react-hook-form';
|
|
|
4
4
|
import { RadioButtonGroup, RadioButton } from '@carbon/react';
|
|
5
5
|
import { type RadioOption } from '../../../stock-items/add-stock-item/stock-item-details/stock-item-details.resource';
|
|
6
6
|
|
|
7
|
-
interface ControlledRadioButtonGroupProps<T>
|
|
7
|
+
interface ControlledRadioButtonGroupProps<T>
|
|
8
|
+
extends Omit<RadioButtonGroupProps, 'onChange' | 'id' | 'ref' | 'value' | 'defaultSelected'> {
|
|
8
9
|
controllerName: string;
|
|
9
10
|
name: string;
|
|
10
11
|
control: Control<FieldValues, T>;
|
|
11
|
-
options: RadioOption[];
|
|
12
|
+
options: RadioOption[];
|
|
13
|
+
id?: string;
|
|
14
|
+
onChange?: (selectedValue: string, name: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
const ControlledRadioButtonGroup = <T,>(props: ControlledRadioButtonGroupProps<T>) => {
|
|
18
|
+
const { controllerName, name, control, options, onChange: onChangeProp, id: propsId, ...radioGroupProps } = props;
|
|
19
|
+
|
|
15
20
|
return (
|
|
16
21
|
<Controller
|
|
17
|
-
name={
|
|
18
|
-
control={
|
|
22
|
+
name={controllerName}
|
|
23
|
+
control={control}
|
|
19
24
|
render={({ field: { onChange, value, ref } }) => (
|
|
20
25
|
<RadioButtonGroup
|
|
21
|
-
{...
|
|
26
|
+
{...radioGroupProps}
|
|
27
|
+
name={name}
|
|
22
28
|
onChange={(selectedValue: string, name: string, event: React.ChangeEvent<HTMLInputElement>) => {
|
|
23
|
-
onChange(selectedValue
|
|
29
|
+
onChange(selectedValue);
|
|
24
30
|
|
|
25
31
|
// Fire prop change
|
|
26
|
-
if (
|
|
27
|
-
|
|
32
|
+
if (onChangeProp) {
|
|
33
|
+
onChangeProp(selectedValue, name, event);
|
|
28
34
|
}
|
|
29
35
|
}}
|
|
30
|
-
id={
|
|
36
|
+
id={name}
|
|
31
37
|
ref={ref}
|
|
32
|
-
defaultSelected={
|
|
33
|
-
|
|
38
|
+
defaultSelected={propsId}
|
|
39
|
+
valueSelected={value}
|
|
34
40
|
>
|
|
35
|
-
{
|
|
41
|
+
{options.map((option, index) => (
|
|
36
42
|
<RadioButton
|
|
37
|
-
key={`${index}-${
|
|
38
|
-
id={`${
|
|
43
|
+
key={`${index}-${name}-${option.value}`}
|
|
44
|
+
id={`${name}-${option.value}`}
|
|
39
45
|
labelText={option.label}
|
|
40
|
-
value={option.value}
|
|
46
|
+
value={String(option.value)}
|
|
41
47
|
checked={value === option.value}
|
|
42
48
|
onChange={() => onChange(option.value)}
|
|
43
|
-
ref={ref}
|
|
44
49
|
/>
|
|
45
50
|
))}
|
|
46
51
|
</RadioButtonGroup>
|