@openmrs/esm-stock-management-app 1.0.1-pre.694 → 1.0.1-pre.706
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/627.js +1 -1
- package/dist/627.js.map +1 -1
- package/dist/973.js +1 -1
- package/dist/973.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.buildmanifest.json +12 -12
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.component.tsx +1 -1
- package/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.test.tsx +105 -0
- package/src/stock-operations/stock-operations-table.component.tsx +49 -42
- package/src/stock-operations/stock-operations-table.resource.tsx +10 -4
- package/translations/en.json +2 -1
package/dist/574.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"abbreviation":"Abbreviation","acronym":"Acronym/Code","action":"Actions","actionFrequency":"Notification Frequency (Minutes)","actions":"Actions","activeFrom":"Active From","ActiveFrom":"Active From ","activeTo":"Active To","addedRule":"Add Rule","addedSource":"Add Source","addItem":"Add stock item","addLocation":"Create new Location","addNewStock":"Add New","addNewStockRule":"Add New Rule","addNewStockSource":"Add New Source","addNewUserRoleScope":"Add New User Role Scope","addStockItem":"Add Stock Item","addStockOperation":"Add stock operation","addStockUserRoleScope":"Add Stock User Role Scope","addUserRole":"Add User role","adminSettings":"Admin settings","alertRole":"Alert Role","all":"All","approve":"Approve","batch":"Batch No","batchInformation":"Batch Information","batchJob":"Batch Job","batchJobErrorMessage":"Error creating batch job","BatchJobErrorTitle":"Batch job","BatchJobSuccess":"Batch job created successfully","batchNo":"Batch No","batchNumber":"Batch Number","by":"By","cancel":"Cancel","cancelled":"Cancelled","category":"Category","checkFilters":"Check the filters above","childLocations":"Child Locations","chooseACategory":"Choose a category","chooseADestination":"Choose a destination","chooseAlertRole":"Choose an Alert Role","chooseALocation":"Choose a location","chooseAnItem":"Choose an item","chooseAPackagingUoM":"Choose a packaging UoM","chooseAReason":"Choose a reason","chooseARole":"Choose a role","chooseASource":"Choose a source","chooseLocation":"Choose the location","chooseMailRole":"Choose a Mail Role","chooseQuantityUnit":"Choose the Unit of Quantity","chooseSourceType":"Choose a source type","chooseVendor":"Choose vendor","code":"Code","comingSoonUnderDev":"Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.","commonName":"Common Name","complete":"Complete","completed":"Completed","continue":"Continue","created":"Created","createLocation":"Create Location","date":"Date","dateCompleted":"Date Completed","dateCreated":"Date Created","dateRequested":"Date Requested","defaultStockOperationsPackagingUnit":"Default stock operations packaging unit","defaultStockOperationsUoMName":"Bulk Packaging","delete":"Delete","deleteConfirmationText":"Are you sure you want to delete this User Scope? This action can\'t be undone.","deletePackagingUnitMesaage":"Stock Item packing unit deleted Successfully","deletePackagingUnitTitle":"Delete StockItem reference","deletePackingUnitErrorTitle":"Error Deleting a stock item packing unit","deleteRule":"Delete Rule","deleteRuleConfirmationText":"Are you sure you want to delete this stock rule? This action can\'t be undone.","deleteSource":"Delete Source","deleteStock":"Delete Stock source","deleteStockItemReferenceMesaage":"StockItem reference deleted Successfully","deleteStockItemReferenceTitle":"Error Deleting a stockitem reference","deleteStockRule":"Delete Stock Rule","deleteStockUserScope":"Delete Stock User Scope","deleteUserScope":"Delete Stock User Scope","deletingRule":"Delete Rule","deletingSource":"Delete Source","deletingstockUserScope":"Delete Stock User Scope","dispatch":"Dispatch","dispatched":"Dispatched","dispensingUnit":"Dispensing Unit","dispensingUnitHolder":"Choose a dispensing unit","dispensingUnitName":"Dispensing UoM","dispensingUnitOfMeasurement":"Dispensing packaging unit of measurement:","displayInventoryReport":"stockmanagement.report.edit.inventorygroupby","displayMaxReorderReport":"stockmanagement.report.edit.maxreorderlevelratio","displayMostLeastMovingReport":"stockmanagement.report.edit.mostleastmoving","displayReportDate":"stockmanagement.report.edit.date","displayStockDestinationReport":"stockmanagement.report.edit.stocksourcedestination","displayStockReport":"stockmanagement.report.edit.stocksource","disposedstock":"Disposed Stock","doesThisTransactionRequireApproval":"Does the transaction require approval ?","drug":"Drug","editFullfillmentReport":"stockmanagement.report.edit.fullfillment","editItem":"Edit {{name}}","editOperationTitle":"Edit {{operationType}}","editStockItem":"Edit Stock Item","editStockOperation":"Edit stock operation","editStockRule":"Edit Stock Rule","editUserScope":"Edit UserScope","enabled":"Enabled ?","endDate":"End Date","error":"Error","errorAddingRule":"Error adding a rule","errorAddingSource":"Error adding a source","errorAddingStockItem":"Error adding a stock Item","errorCreatingForm":"Error creating location","errorDeletingRule":"Error deleting a rule","errorDeletingSource":"Error deleting a source","errorDeletingUserScope":"Error deleting a user scope","errorEditingStockItem":"Error editing a stock Item","errorLoadingStockOperation":"Error loading stock item","errorSavingBaseOperation":"Erro saving base operation","errorSavingForm":"Error on saving form","errorSavingUserRoleScope":"Error Saving user role scope","errorStockMetric":"Error fetching stock metrics","errorUploadingItems":"An error occurred uploading stock items","evaluationFrequency":"Frequency Check (Minutes)","expirationNotice":"Expiration Notice (days)","expired":"Expired","expires":"Expires","expiringStock":"Expiring Stock","expiry":"Expiry","expiryNoticeDays":"Expiration Notice (days)","filter":"Filter ...","filterByLocation":"Filter by Location","formCreated":"Add Location","from":"From","fullFulfillment":"Full Fulfillment","fullName":"Full Name","genericName":"Generic Name","goBack":"Go Back","hasExpiration":"Does the item expire?","highestServiceVolume":"Out of Stock ","home":"Home","import":"Import","importStockItems":"Import Stock Items","in6Months":"In 6 months","includeChildLocations":"Include Child Locations","inventory Alerts":"Inventory Alerts","inventoryAlertNull":"No inventory alerts to display","inventoryBy":"Inventory by","issueStock":"Issue Stock ","issuing":"Issuing","issuingNull":"No issued to display","item":"Item","itemAlreadyExists":"Item already exits","itemsAboveMax":"Items Above Max","itemsBelowMin":"Items Below Min","itemType":"Item Type","leastMoving":"Least Moving","limit":"Limit","loading":"Loading...","loadingData":"Loading data...","location":"Location(s)","locationAndBatchno":"Location and Batch","locationAndStockItem":"Location and Stock Item","locationCreatedSuccessfully":"Location {{locationName}} was created successfully.","locationPlaceholder":"Add a location","locations":"Locations","mailRole":"Mail Role","manageStock":"Manage Stock","mostMoving":"Most Moving","name":"Rule Name","newOperationTitle":"New: {{operationName}}","newReport":"New Report","next":"Next","no":"No","noData":"No data to display","noItemsToDisplay":"No Stock Items to display","noneFulfillment":"Non Fulfillment","noOperationsToDisplay":"No Stock User scopes to display","noPrivilagesTitle":"","noReportsToDisplay":"No Stock reports to display","noRulesToDisplay":"No Stock rules to display","noSourcesToDisplay":"No Stock sources to display","noStockItemsToDisplay":"No stock items to display","notes":"Please explain the reason:","notSet":"Not Set","noViewPrivilegesDescription":"","number":"Number","operationDate":"Operation Date","operationModalTitle":"{{title}} Operation","operationSuccessful":"You have successfully {{title}} operation","operationSuccessTitle":"{{title}} Operation","orderLevel":"Reorder level:","other":"Other","outofstock":"Out of Stock","packagingUnit":"Packaging Unit","packagingUnits":"Packaging Units","packSize":"Pack Size","panelDescription":"To access stock management features, users must have assigned roles specifying location and stock operation type scopes.","parameters":"Parameters","partialFulfillment":"Partial Fulfillment","patients":"Patients","permanent":"Permanent ?","pleaseFillField":"","pleaseSpecify":"Please Specify","poorquality":"Poor Quality","print":"Print ","providersAvailableToday":"Disposed Stock ","purchasePrice":"Purchase Price","purchasePricePackagingUnit":"Purchase price packaging unit:","quantities":"Quantities","quantity":"Quantity Threshold","quantityIssued":"Quantity Issued","quantityReceived":"Quantity Received","quantityRequested":"Quantity Requested","quantitySent":"Quantity Sent","quantityUnit":"Quantity Unit","quantityUoM":"Quantity Unit of Measurement(UoM)","rank":"Rank","reason":"Reason","reasonLabel":"Please explain the reason:","reasonPlaceholder":"Enter reason here","receivedItems":"Received Items","receivedNull":"No received to display","receivedView":"View All","receiving":"Receiving","references":"References","reject":"Reject ","rejected":"Rejected","rejectOrder":"Uploaded Order","remarks":"Remarks","removePackagingUnit":"Remove Packaging Unit","removePackagingUnitConfirmation":"","reorderLevel":"Reorder Level","reorderLevelPackagingUnit":"Reorder level packaging unit","report":"Report","ReportDescription":"List of reports requested by users","reportName":"Report","requested":"Requested","requestedBy":"Requested By","responsiblePerson":"Responsible Person","return":"Return ","returned":"Returned","role":"Role","roleDescription":"The role will be applicable to only selected stock operations.","save":"Save","savePackagingUnitErrorMessage":"Error saving package unit","savePackagingUnitErrorTitle":"Package Unit","savePackingUnitMessage":"Package Unit saved successfully","savePackingUnitTitle":"Package Unit","saveReferenceTitle":"StockItem Reference","saveStockItemReferenceErrorTitle":"StockItem Reference","saveStockItemReferenceMessage":"Stock Item Reference saved successfully","searchThisList":"Search this list","SelectOption":"Select an option","selectTags":"Select tag(s)","source":"Source","sourceType":"Source Type","startDate":"Start Date","started":"Started","status":"Status","stockItem":"Stock Item","stockItemAdded":"Stock Item Added Successfully","stockItemCategory":"Stock Item Category","stockItemDetails":"Stock Item Details","stockItemEdited":"Stock Item Edited Successfully","stockItems":"Stock Items","stockManagement":"Stock Management","stockOperation":"Stock Operations","stockOperationAdded":"Stock operation added successfully","stockOperationEdited":"Stock operation edited successfully","stockOperationErrorDescription":"Details: {{message}}","stockOperationErrorTitle":"Error on saving form","stockOperations":"Stock Operations","stockOperationTrackMovement":"Stock operations to track movement of stock.","stockRuleAddedSuccessfully":"Stock Rule Added Successfully","stockRuleDeletedSuccessfully":"Stock Rule Deleted Successfully","stockRules":"Rules","stocks":"Expiring stock","stockSourceAddedSuccessfully":"Stock Source Added Successfully","stockSourceDeletedSuccessfully":"Stock Source Deleted Successfully","stockUserScopeDeletedSuccessfully":"Stock User Scope Deleted Successfully","submit":"Submit","submitForReview":"Submit For Review","submitted":"Submitted","successfullysaved":"You have successfully saved user role scope ","SuccessfullyUploadedStockItem":"You have successfully uploaded stock items","tabletOverlay":"Tablet overlay","tags":"Tags","toggleMessage":"Use the toggle to apply this scope to the locations under the selected location.","tradeName":"Trade Name","transactions":"Transactions","type":"Type","updatePackagingUnitErrorMessage":"Error updating package unit {{name}}","updatePackagingUnitErrorTitle":"Package Unit","updatePackingUnitMessage":"Package Unit {{ name }} updated successfully","updatePackingUnitTitle":"Package Unit","uploadStockItems":"Upload StockItems","user":"User","view":"View","whoIsThePreferredVendor":"Who is the preferred vendor?","yes":"Yes"}')}}]);
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"abbreviation":"Abbreviation","acronym":"Acronym/Code","action":"Actions","actionFrequency":"Notification Frequency (Minutes)","actions":"Actions","activeFrom":"Active From","ActiveFrom":"Active From ","activeTo":"Active To","addedRule":"Add Rule","addedSource":"Add Source","addItem":"Add stock item","addLocation":"Create new Location","addNewStock":"Add New","addNewStockRule":"Add New Rule","addNewStockSource":"Add New Source","addNewUserRoleScope":"Add New User Role Scope","addStockItem":"Add Stock Item","addStockOperation":"Add stock operation","addStockUserRoleScope":"Add Stock User Role Scope","addUserRole":"Add User role","adminSettings":"Admin settings","alertRole":"Alert Role","all":"All","approve":"Approve","batch":"Batch No","batchInformation":"Batch Information","batchJob":"Batch Job","batchJobErrorMessage":"Error creating batch job","BatchJobErrorTitle":"Batch job","BatchJobSuccess":"Batch job created successfully","batchNo":"Batch No","batchNumber":"Batch Number","by":"By","cancel":"Cancel","cancelled":"Cancelled","category":"Category","checkFilters":"Check the filters above","childLocations":"Child Locations","chooseACategory":"Choose a category","chooseADestination":"Choose a destination","chooseAlertRole":"Choose an Alert Role","chooseALocation":"Choose a location","chooseAnItem":"Choose an item","chooseAPackagingUoM":"Choose a packaging UoM","chooseAReason":"Choose a reason","chooseARole":"Choose a role","chooseASource":"Choose a source","chooseLocation":"Choose the location","chooseMailRole":"Choose a Mail Role","chooseQuantityUnit":"Choose the Unit of Quantity","chooseSourceType":"Choose a source type","chooseVendor":"Choose vendor","code":"Code","comingSoonUnderDev":"Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings.","commonName":"Common Name","complete":"Complete","completed":"Completed","continue":"Continue","created":"Created","createLocation":"Create Location","date":"Date","dateCompleted":"Date Completed","dateCreated":"Date Created","dateRequested":"Date Requested","defaultStockOperationsPackagingUnit":"Default stock operations packaging unit","defaultStockOperationsUoMName":"Bulk Packaging","delete":"Delete","deleteConfirmationText":"Are you sure you want to delete this User Scope? This action can\'t be undone.","deletePackagingUnitMesaage":"Stock Item packing unit deleted Successfully","deletePackagingUnitTitle":"Delete StockItem reference","deletePackingUnitErrorTitle":"Error Deleting a stock item packing unit","deleteRule":"Delete Rule","deleteRuleConfirmationText":"Are you sure you want to delete this stock rule? This action can\'t be undone.","deleteSource":"Delete Source","deleteStock":"Delete Stock source","deleteStockItemReferenceMesaage":"StockItem reference deleted Successfully","deleteStockItemReferenceTitle":"Error Deleting a stockitem reference","deleteStockRule":"Delete Stock Rule","deleteStockUserScope":"Delete Stock User Scope","deleteUserScope":"Delete Stock User Scope","deletingRule":"Delete Rule","deletingSource":"Delete Source","deletingstockUserScope":"Delete Stock User Scope","dispatch":"Dispatch","dispatched":"Dispatched","dispensingUnit":"Dispensing Unit","dispensingUnitHolder":"Choose a dispensing unit","dispensingUnitName":"Dispensing UoM","dispensingUnitOfMeasurement":"Dispensing packaging unit of measurement:","displayInventoryReport":"stockmanagement.report.edit.inventorygroupby","displayMaxReorderReport":"stockmanagement.report.edit.maxreorderlevelratio","displayMostLeastMovingReport":"stockmanagement.report.edit.mostleastmoving","displayReportDate":"stockmanagement.report.edit.date","displayStockDestinationReport":"stockmanagement.report.edit.stocksourcedestination","displayStockReport":"stockmanagement.report.edit.stocksource","disposedstock":"Disposed Stock","doesThisTransactionRequireApproval":"Does the transaction require approval ?","drug":"Drug","editFullfillmentReport":"stockmanagement.report.edit.fullfillment","editItem":"Edit {{name}}","editOperationTitle":"Edit {{operationType}}","editStockItem":"Edit Stock Item","editStockOperation":"Edit stock operation","editStockRule":"Edit Stock Rule","editUserScope":"Edit UserScope","enabled":"Enabled ?","endDate":"End Date","error":"Error","errorAddingRule":"Error adding a rule","errorAddingSource":"Error adding a source","errorAddingStockItem":"Error adding a stock Item","errorCreatingForm":"Error creating location","errorDeletingRule":"Error deleting a rule","errorDeletingSource":"Error deleting a source","errorDeletingUserScope":"Error deleting a user scope","errorEditingStockItem":"Error editing a stock Item","errorLoadingStockOperation":"Error loading stock item","errorSavingBaseOperation":"Erro saving base operation","errorSavingForm":"Error on saving form","errorSavingUserRoleScope":"Error Saving user role scope","errorStockMetric":"Error fetching stock metrics","errorUploadingItems":"An error occurred uploading stock items","evaluationFrequency":"Frequency Check (Minutes)","expirationNotice":"Expiration Notice (days)","expired":"Expired","expires":"Expires","expiringStock":"Expiring Stock","expiry":"Expiry","expiryNoticeDays":"Expiration Notice (days)","filter":"Filter ...","filterByLocation":"Filter by Location","formCreated":"Add Location","from":"From","fullFulfillment":"Full Fulfillment","fullName":"Full Name","genericName":"Generic Name","goBack":"Go Back","hasExpiration":"Does the item expire?","highestServiceVolume":"Out of Stock ","home":"Home","import":"Import","importStockItems":"Import Stock Items","in6Months":"In 6 months","includeChildLocations":"Include Child Locations","inventory Alerts":"Inventory Alerts","inventoryAlertNull":"No inventory alerts to display","inventoryBy":"Inventory by","issueStock":"Issue Stock ","issuing":"Issuing","issuingNull":"No issued to display","item":"Item","itemAlreadyExists":"Item already exits","itemsAboveMax":"Items Above Max","itemsBelowMin":"Items Below Min","itemType":"Item Type","leastMoving":"Least Moving","limit":"Limit","loading":"Loading...","loadingData":"Loading data...","location":"Location(s)","locationAndBatchno":"Location and Batch","locationAndStockItem":"Location and Stock Item","locationCreatedSuccessfully":"Location {{locationName}} was created successfully.","locationPlaceholder":"Add a location","locations":"Locations","mailRole":"Mail Role","manageStock":"Manage Stock","mostMoving":"Most Moving","name":"Rule Name","newOperationTitle":"New: {{operationName}}","newReport":"New Report","next":"Next","no":"No","noData":"No data to display","noItemsToDisplay":"No Stock Items to display","noneFulfillment":"Non Fulfillment","noOperationsToDisplay":"No Stock User scopes to display","noPrivilagesTitle":"","noReportsToDisplay":"No Stock reports to display","noRulesToDisplay":"No Stock rules to display","noSourcesToDisplay":"No Stock sources to display","noStockItemsToDisplay":"No stock items to display","notes":"Please explain the reason:","notSet":"Not Set","noViewPrivilegesDescription":"","number":"Number","operationDate":"Operation Date","operationModalTitle":"{{title}} Operation","operationSuccessful":"You have successfully {{title}} operation","operationSuccessTitle":"{{title}} Operation","orderLevel":"Reorder level:","other":"Other","outofstock":"Out of Stock","packagingUnit":"Packaging Unit","packagingUnits":"Packaging Units","packSize":"Pack Size","panelDescription":"To access stock management features, users must have assigned roles specifying location and stock operation type scopes.","parameters":"Parameters","partialFulfillment":"Partial Fulfillment","patients":"Patients","permanent":"Permanent ?","pleaseFillField":"","pleaseSpecify":"Please Specify","poorquality":"Poor Quality","print":"Print ","providersAvailableToday":"Disposed Stock ","purchasePrice":"Purchase Price","purchasePricePackagingUnit":"Purchase price packaging unit:","quantities":"Quantities","quantity":"Quantity Threshold","quantityIssued":"Quantity Issued","quantityReceived":"Quantity Received","quantityRequested":"Quantity Requested","quantitySent":"Quantity Sent","quantityUnit":"Quantity Unit","quantityUoM":"Quantity Unit of Measurement(UoM)","rank":"Rank","reason":"Reason","reasonLabel":"Please explain the reason:","reasonPlaceholder":"Enter reason here","receivedItems":"Received Items","receivedNull":"No received to display","receivedView":"View All","receiving":"Receiving","references":"References","reject":"Reject ","rejected":"Rejected","rejectOrder":"Uploaded Order","remarks":"Remarks","removePackagingUnit":"Remove Packaging Unit","removePackagingUnitConfirmation":"","reorderLevel":"Reorder Level","reorderLevelPackagingUnit":"Reorder level packaging unit","report":"Report","ReportDescription":"List of reports requested by users","reportName":"Report","requested":"Requested","requestedBy":"Requested By","responsiblePerson":"Responsible Person","return":"Return ","returned":"Returned","role":"Role","roleDescription":"The role will be applicable to only selected stock operations.","save":"Save","savePackagingUnitErrorMessage":"Error saving package unit","savePackagingUnitErrorTitle":"Package Unit","savePackingUnitMessage":"Package Unit saved successfully","savePackingUnitTitle":"Package Unit","saveReferenceTitle":"StockItem Reference","saveStockItemReferenceErrorTitle":"StockItem Reference","saveStockItemReferenceMessage":"Stock Item Reference saved successfully","searchThisList":"Search this list","SelectOption":"Select an option","selectTags":"Select tag(s)","source":"Source","sourceType":"Source Type","startDate":"Start Date","started":"Started","status":"Status","stockItem":"Stock Item","stockItemAdded":"Stock Item Added Successfully","stockItemCategory":"Stock Item Category","stockItemDetails":"Stock Item Details","stockItemEdited":"Stock Item Edited Successfully","stockItems":"Stock Items","stockManagement":"Stock Management","stockOperation":"Stock Operations","stockOperationAdded":"Stock operation added successfully","stockOperationEdited":"Stock operation edited successfully","stockOperationErrorDescription":"Details: {{message}}","stockOperationErrorTitle":"Error on saving form","stockOperations":"Stock Operations","stockOperationTrackMovement":"Stock operations to track movement of stock.","stockRuleAddedSuccessfully":"Stock Rule Added Successfully","stockRuleDeletedSuccessfully":"Stock Rule Deleted Successfully","stockRules":"Rules","stocks":"Expiring stock","stockSourceAddedSuccessfully":"Stock Source Added Successfully","stockSourceDeletedSuccessfully":"Stock Source Deleted Successfully","stockUserScopeDeletedSuccessfully":"Stock User Scope Deleted Successfully","submit":"Submit","submitForReview":"Submit For Review","submitted":"Submitted","successfullysaved":"You have successfully saved user role scope ","SuccessfullyUploadedStockItem":"You have successfully uploaded stock items","tabletOverlay":"Tablet overlay","tags":"Tags","toggleMessage":"Use the toggle to apply this scope to the locations under the selected location.","tradeName":"Trade Name","transactions":"Transactions","type":"Type","updatePackagingUnitErrorMessage":"Error updating package unit {{name}}","updatePackagingUnitErrorTitle":"Package Unit","updatePackingUnitMessage":"Package Unit {{ name }} updated successfully","updatePackingUnitTitle":"Package Unit","uploadStockItems":"Upload StockItems","user":"User","view":"View","whoIsThePreferredVendor":"Who is the preferred vendor?","yes":"Yes","stockOperationItems":"Items"}')}}]);
|
package/dist/627.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[627],{7627:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(1672),o=n.n(r),l=n(3397),a=n(2167),i=n(7248);function c(e,t,n,r,o,l,a){try{var i=e[l](a),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}function u(){var e;return e=function(e){var t;return function(e,t){var n,r,o,l,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function i(l){return function(i){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,i])}}}(this,(function(n){return t=new AbortController,[2,(0,i.openmrsFetch)("".concat(i.restBaseUrl,"/stockmanagement/stockitemimport"),{method:"POST",signal:t.signal,body:e})]}))},u=function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function a(e){c(l,r,o,a,i,"next",e)}function i(e){c(l,r,o,a,i,"throw",e)}a(void 0)}))},u.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const f=function(e){var t,n,c=e.closeModal,f=(0,l.useTranslation)().t,p=(t=(0,r.useState)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],d=p[1];return o().createElement("div",null,o().createElement(a.l09,null,o().createElement(a.xBx,{closeModal:c,title:f("importStockItems","Import Stock Items")}),o().createElement(a.fef,null,o().createElement(a.bAu,{accept:[".csv"],multiple:!1,name:"file",buttonLabel:"Select file",labelDescription:"Only .csv files at 2mb or less",filenameStatus:"edit",labelTitle:"",size:"
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[627],{7627:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(1672),o=n.n(r),l=n(3397),a=n(2167),i=n(7248);function c(e,t,n,r,o,l,a){try{var i=e[l](a),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}function u(){var e;return e=function(e){var t;return function(e,t){var n,r,o,l,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function i(l){return function(i){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,i])}}}(this,(function(n){return t=new AbortController,[2,(0,i.openmrsFetch)("".concat(i.restBaseUrl,"/stockmanagement/stockitemimport"),{method:"POST",signal:t.signal,body:e})]}))},u=function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function a(e){c(l,r,o,a,i,"next",e)}function i(e){c(l,r,o,a,i,"throw",e)}a(void 0)}))},u.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const f=function(e){var t,n,c=e.closeModal,f=(0,l.useTranslation)().t,p=(t=(0,r.useState)(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=p[0],d=p[1];return o().createElement("div",null,o().createElement(a.l09,null,o().createElement(a.xBx,{closeModal:c,title:f("importStockItems","Import Stock Items")}),o().createElement(a.fef,null,o().createElement(a.bAu,{accept:[".csv"],multiple:!1,name:"file",buttonLabel:"Select file",labelDescription:"Only .csv files at 2mb or less",filenameStatus:"edit",labelTitle:"",size:"sm",onChange:function(e){var t,n,r=null==e||null===(n=e.target)||void 0===n||null===(t=n.files)||void 0===t?void 0:t[0];r?d(r):e.preventDefault()}})),o().createElement(a.mzw,null,o().createElement(a.zxk,{kind:"secondary",onClick:c},f("cancel","Cancel")),o().createElement(a.zxk,{type:"button",onClick:function(){if(m){var e=new FormData;m&&(e.append("file",m,"Import_Stock_Items.csv"),e.append("hasHeader","true")),function(e){return u.apply(this,arguments)}(e).then((function(){(0,i.showSnackbar)({isLowContrast:!0,title:f("rejectOrder","Uploaded Order"),kind:"success",subtitle:f("SuccessfullyUploadedStockItem","You have successfully uploaded stock items")}),c()}),(function(e){(0,i.showSnackbar)({title:f("errorUploadingItems","An error occurred uploading stock items"),kind:"error",isLowContrast:!0,subtitle:null==e?void 0:e.message})}))}}},f("uploadStockItems","Upload StockItems")))))}}}]);
|
package/dist/627.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"627.js","mappings":"sXAEsBA,I,eAAf,SAAgCC,G,IAC/BC,E,8jCAEN,OAFMA,EAAkB,IAAIC,gBAErB,C,GAAAC,EAAAA,EAAAA,cAAa,GAAe,OAAZC,EAAAA,YAAY,oCAAmC,CACpEC,OAAQ,OAIRC,OAAQL,EAAgBK,OACxBN,KAAMA,I,GAEV,EAXsBD,E,8KAAAA,EAAAA,MAAAA,KAAAA,U,2GCiFtB,QAzE4D,Y,QAAGQ,EAAAA,EAAAA,WACvD,GAAQC,EAAAA,EAAAA,kBAANC,EACgCC,G,GAAAA,EAAAA,EAAAA,Y,EAAQA,E,+zBAAzCC,EAAiCD,EAAAA,GAAnBE,EAAmBF,EAAAA,GAyCxC,OACE,kBAACG,MAAAA,KACC,kBAACC,EAAAA,IAAIA,KACH,kBAACC,EAAAA,IAAWA,CAACR,WAAYA,EAAYS,MAAOP,EAAE,mBAAoB,wBAClE,kBAACQ,EAAAA,IAASA,KACR,kBAACC,EAAAA,IAAYA,CACXC,OAAQ,CAAC,QACTC,UAAU,EACVC,KAAM,OACNC,YAAY,cACZC,iBAAiB,iCACjBC,eAAe,OACfC,WAAW,GACXC,KAAK,
|
1
|
+
{"version":3,"file":"627.js","mappings":"sXAEsBA,I,eAAf,SAAgCC,G,IAC/BC,E,8jCAEN,OAFMA,EAAkB,IAAIC,gBAErB,C,GAAAC,EAAAA,EAAAA,cAAa,GAAe,OAAZC,EAAAA,YAAY,oCAAmC,CACpEC,OAAQ,OAIRC,OAAQL,EAAgBK,OACxBN,KAAMA,I,GAEV,EAXsBD,E,8KAAAA,EAAAA,MAAAA,KAAAA,U,2GCiFtB,QAzE4D,Y,QAAGQ,EAAAA,EAAAA,WACvD,GAAQC,EAAAA,EAAAA,kBAANC,EACgCC,G,GAAAA,EAAAA,EAAAA,Y,EAAQA,E,+zBAAzCC,EAAiCD,EAAAA,GAAnBE,EAAmBF,EAAAA,GAyCxC,OACE,kBAACG,MAAAA,KACC,kBAACC,EAAAA,IAAIA,KACH,kBAACC,EAAAA,IAAWA,CAACR,WAAYA,EAAYS,MAAOP,EAAE,mBAAoB,wBAClE,kBAACQ,EAAAA,IAASA,KACR,kBAACC,EAAAA,IAAYA,CACXC,OAAQ,CAAC,QACTC,UAAU,EACVC,KAAM,OACNC,YAAY,cACZC,iBAAiB,iCACjBC,eAAe,OACfC,WAAW,GACXC,KAAK,KACLC,SAvBY,SAACC,G,IACRA,EAAAA,EAAPC,EAAOD,SAAa,QAAbA,EAAAA,EAAOE,cAAPF,IAAAA,GAAoB,QAApBA,EAAAA,EAAeG,aAAfH,IAAAA,OAAAA,EAAAA,EAAuB,GAChCC,EACFjB,EAAgBiB,GAEhBD,EAAMI,gBAEV,KAmBM,kBAACC,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACC,KAAK,YAAYC,QAAS7B,GAC/BE,EAAE,SAAU,WAEf,kBAACyB,EAAAA,IAAMA,CAACG,KAAK,SAASD,QA5DN,WACtB,GAAKzB,EAAL,CAGA,IAAM2B,EAAW,IAAIC,SACjB5B,IACF2B,EAASE,OAAO,OAAQ7B,EAAc,0BACtC2B,EAASE,OAAO,YAAa,SDnB5B,SAAgCxC,G,OAAjBD,EAAAA,MAAAA,KAAAA,U,CCqBlBA,CAAiBuC,GAAUG,MACzB,YACEC,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACf3B,MAAOP,EAAE,cAAe,kBACxB0B,KAAM,UACNS,SAAUnC,EAAE,gCAAkC,gDAEhDF,GACF,IACA,SAACsC,IACCH,EAAAA,EAAAA,cAAa,CACX1B,MAAOP,EAAE,sBAAuB,2CAChC0B,KAAM,QACNQ,eAAe,EACfC,SAAUC,aAAAA,EAAAA,EAAKC,SAEnB,GAvBF,CAyBF,GAiCWrC,EAAE,mBAAoB,wBAMnC,C","sources":["webpack://@openmrs/esm-stock-management-app/./src/stock-items/add-bulk-stock-item/stock-items-bulk-import.resource.ts","webpack://@openmrs/esm-stock-management-app/./src/stock-items/add-bulk-stock-item/stock-items-bulk-import.component.tsx"],"names":["UploadStockItems","body","abortController","AbortController","openmrsFetch","restBaseUrl","method","signal","closeModal","useTranslation","t","useState","selectedFile","setSelectedFile","div","Form","ModalHeader","title","ModalBody","FileUploader","accept","multiple","name","buttonLabel","labelDescription","filenameStatus","labelTitle","size","onChange","event","file","target","files","preventDefault","ModalFooter","Button","kind","onClick","type","formData","FormData","append","then","showSnackbar","isLowContrast","subtitle","err","message"],"sourceRoot":""}
|