@openmrs/esm-appointments-app 6.1.1-pre.3215 → 6.1.1-pre.3216

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.
@@ -1,10 +1,10 @@
1
1
  Browserslist: caniuse-lite is outdated. Please run:
2
2
  npx update-browserslist-db@latest
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 3.14 MiB
5
- assets by chunk 1.78 MiB (id hint: vendors)
6
- assets by status 1.58 MiB [big]
7
- asset 174.js 824 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
4
+ assets by path *.js 3.07 MiB
5
+ assets by chunk 1.77 MiB (id hint: vendors)
6
+ assets by status 1.57 MiB [big]
7
+ asset 57.js 813 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
8
8
  asset 130.js 796 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
9
9
  asset 390.js 96.7 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
10
10
  asset 591.js 50.8 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
@@ -16,13 +16,13 @@ assets by path *.js 3.14 MiB
16
16
  assets by path *.json 16.3 KiB
17
17
  asset openmrs-esm-appointments-app.js.buildmanifest.json 13.9 KiB [emitted]
18
18
  asset routes.json 2.44 KiB [emitted] [from: src/routes.json] [copied]
19
- orphan modules 7.14 MiB [orphan] 1148 modules
20
- runtime modules 41 KiB 28 modules
21
- built modules 7.91 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-init) [built]
22
- modules by path ../../node_modules/ 7.42 MiB 118 modules
23
- modules by path ./ 500 KiB
24
- modules by path ./src/ 457 KiB 38 modules
25
- modules by path ./translations/ 42.6 KiB 10 modules
19
+ orphan modules 6.82 MiB [orphan] 962 modules
20
+ runtime modules 41.1 KiB 28 modules
21
+ built modules 7.81 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-init) [built]
22
+ modules by path ../../node_modules/ 7.37 MiB 115 modules
23
+ modules by path ./ 453 KiB
24
+ modules by path ./src/ 411 KiB 36 modules
25
+ modules by path ./translations/ 42 KiB 10 modules
26
26
  consume-shared-module modules 336 bytes 8 modules
27
27
  provide-module modules 294 bytes
28
28
  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
@@ -33,14 +33,14 @@ built modules 7.91 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-
33
33
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
34
34
  This can impact web performance.
35
35
  Assets:
36
- main.js (1.06 MiB)
36
+ main.js (1.03 MiB)
37
37
  130.js (796 KiB)
38
- 174.js (824 KiB)
38
+ 57.js (813 KiB)
39
39
 
40
40
  WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
41
41
  Entrypoints:
42
- main (1.06 MiB)
42
+ main (1.03 MiB)
43
43
  main.js
44
44
  
45
45
 
46
- webpack 5.86.0 compiled with 2 warnings in 138752 ms
46
+ webpack 5.86.0 compiled with 2 warnings in 121556 ms
package/dist/309.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[309],{5309:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});var i=n(268),o=n.n(i),s=n(4924),a=n(2870),l=n(4971),p=n(8527),c=n(3291);const r=function(t){var e=t.patientUuid,n=t.appointmentUuid,i=t.closeModal,r=(0,a.useVisit)(e),u=r.activeVisit,d=r.mutate,m=(0,s.useTranslation)().t,h=(0,c.EJ)().mutateAppointments;return o().createElement("div",null,o().createElement(l.xBx,{closeModal:i,title:m("endAppointmentConfirmation","Are you sure you want to check the patient out for this appointment?")}),o().createElement(l.fef,null,o().createElement("p",null,u?m("endAppointmentAndVisitConfirmationMessage","Checking the patient out will mark the appointment as complete, and close out the active visit for this patient."):m("endAppointmentConfirmationMessage","Checking the patient out will mark the appointment as complete."))),o().createElement(l.mzw,null,o().createElement(l.zxk,{kind:"secondary",onClick:i},m("cancel","Cancel")),o().createElement(l.zxk,{kind:"danger",onClick:function(){return(0,p.q)("Completed",n).then((function(){if(h(),u){var t=new AbortController,e={location:u.location.uuid,startDatetime:(0,a.parseDate)(u.startDatetime),visitType:u.visitType.uuid,stopDatetime:new Date};(0,a.updateVisit)(u.uuid,e,t).toPromise().then((function(){d(),(0,a.showSnackbar)({title:m("appointmentEnded","Appointment ended"),subtitle:m("appointmentEndedAndVisitClosedSuccessfully","Appointment successfully ended and visit successfully closed."),isLowContrast:!0,kind:"success"}),i()})).catch((function(t){i(),(0,a.showSnackbar)({title:m("appointmentEndedButVisitNotClosedError","Appointment ended, but error closing visit"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}))}else i(),(0,a.showSnackbar)({title:m("appointmentEnded","Appointment ended"),subtitle:m("appointmentEndedSuccessfully","Appointment successfully ended."),isLowContrast:!0,kind:"success"})})).catch((function(t){i(),(0,a.showSnackbar)({title:m("appointmentEndError","Error ending appointment"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}))}},m("checkOut","Check Out"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[309],{5309:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});var i=n(268),o=n.n(i),s=n(4924),a=n(2870),l=n(9817),p=n(8527),c=n(3291);const r=function(t){var e=t.patientUuid,n=t.appointmentUuid,i=t.closeModal,r=(0,a.useVisit)(e),u=r.activeVisit,d=r.mutate,m=(0,s.useTranslation)().t,h=(0,c.EJ)().mutateAppointments;return o().createElement("div",null,o().createElement(l.xBx,{closeModal:i,title:m("endAppointmentConfirmation","Are you sure you want to check the patient out for this appointment?")}),o().createElement(l.fef,null,o().createElement("p",null,u?m("endAppointmentAndVisitConfirmationMessage","Checking the patient out will mark the appointment as complete, and close out the active visit for this patient."):m("endAppointmentConfirmationMessage","Checking the patient out will mark the appointment as complete."))),o().createElement(l.mzw,null,o().createElement(l.zxk,{kind:"secondary",onClick:i},m("cancel","Cancel")),o().createElement(l.zxk,{kind:"danger",onClick:function(){return(0,p.q)("Completed",n).then((function(){if(h(),u){var t=new AbortController,e={location:u.location.uuid,startDatetime:(0,a.parseDate)(u.startDatetime),visitType:u.visitType.uuid,stopDatetime:new Date};(0,a.updateVisit)(u.uuid,e,t).toPromise().then((function(){d(),(0,a.showSnackbar)({title:m("appointmentEnded","Appointment ended"),subtitle:m("appointmentEndedAndVisitClosedSuccessfully","Appointment successfully ended and visit successfully closed."),isLowContrast:!0,kind:"success"}),i()})).catch((function(t){i(),(0,a.showSnackbar)({title:m("appointmentEndedButVisitNotClosedError","Appointment ended, but error closing visit"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}))}else i(),(0,a.showSnackbar)({title:m("appointmentEnded","Appointment ended"),subtitle:m("appointmentEndedSuccessfully","Appointment successfully ended."),isLowContrast:!0,kind:"success"})})).catch((function(t){i(),(0,a.showSnackbar)({title:m("appointmentEndError","Error ending appointment"),subtitle:null==t?void 0:t.message,kind:"error",isLowContrast:!0})}))}},m("checkOut","Check Out"))))}}}]);
package/dist/4.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[4],{4:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var r=n(268),o=n.n(r),a=n(4924),l=n(4971),i=n(2870),c=n(8527);function u(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}function s(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}const p=function(e){var t,n,p,f,m=e.closeCancelModal,d=e.appointmentUuid,h=e.patientUuid,y=(0,a.useTranslation)().t,b=(0,c.W)(h,(new Date).toUTCString(),new AbortController).mutate,v=(p=(0,r.useState)(!1),f=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){i=!0,o=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw o}}return a}}(p,f)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(p,f)||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.")}()),w=v[0],k=v[1],C=(t=function(){return function(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,r=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}(this,(function(e){return k(!0),(0,c.q)("Cancelled",d).then((function(e){200===e.status&&(b(),m(),(0,i.showSnackbar)({isLowContrast:!0,kind:"success",subtitle:y("appointmentCancelledSuccessfully","Appointment cancelled successfully"),title:y("appointmentCancelled","Appointment cancelled")}))})).catch((function(e){(0,i.showSnackbar)({title:y("appointmentCancelError","Error cancelling appointment"),kind:"error",isLowContrast:!0,subtitle:null==e?void 0:e.message})})),[2]}))},n=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function l(e){s(a,r,o,l,i,"next",e)}function i(e){s(a,r,o,l,i,"throw",e)}l(void 0)}))},function(){return n.apply(this,arguments)});return o().createElement("div",null,o().createElement(l.xBx,{closeModal:m,title:y("cancelAppointment","Cancel appointment")}),o().createElement(l.fef,null,o().createElement("p",null,y("cancelAppointmentModalConfirmationText","Are you sure you want to cancel this appointment?"))),o().createElement(l.mzw,null,o().createElement(l.zxk,{kind:"secondary",onClick:m},y("discard","Discard")),o().createElement(l.zxk,{kind:"danger",onClick:C,disabled:w},y("cancelAppointment","Cancel appointment"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[4],{4:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var r=n(268),o=n.n(r),a=n(4924),l=n(9817),i=n(2870),c=n(8527);function u(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}function s(e,t,n,r,o,a,l){try{var i=e[a](l),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}const p=function(e){var t,n,p,f,m=e.closeCancelModal,d=e.appointmentUuid,h=e.patientUuid,y=(0,a.useTranslation)().t,b=(0,c.W)(h,(new Date).toUTCString(),new AbortController).mutate,v=(p=(0,r.useState)(!1),f=2,function(e){if(Array.isArray(e))return e}(p)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],l=!0,i=!1;try{for(n=n.call(e);!(l=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);l=!0);}catch(e){i=!0,o=e}finally{try{l||null==n.return||n.return()}finally{if(i)throw o}}return a}}(p,f)||function(e,t){if(e){if("string"==typeof e)return u(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)?u(e,t):void 0}}(p,f)||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.")}()),w=v[0],k=v[1],C=(t=function(){return function(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,r=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!((o=(o=l.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}(this,(function(e){return k(!0),(0,c.q)("Cancelled",d).then((function(e){200===e.status&&(b(),m(),(0,i.showSnackbar)({isLowContrast:!0,kind:"success",subtitle:y("appointmentCancelledSuccessfully","Appointment cancelled successfully"),title:y("appointmentCancelled","Appointment cancelled")}))})).catch((function(e){(0,i.showSnackbar)({title:y("appointmentCancelError","Error cancelling appointment"),kind:"error",isLowContrast:!0,subtitle:null==e?void 0:e.message})})),[2]}))},n=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function l(e){s(a,r,o,l,i,"next",e)}function i(e){s(a,r,o,l,i,"throw",e)}l(void 0)}))},function(){return n.apply(this,arguments)});return o().createElement("div",null,o().createElement(l.xBx,{closeModal:m,title:y("cancelAppointment","Cancel appointment")}),o().createElement(l.fef,null,o().createElement("p",null,y("cancelAppointmentModalConfirmationText","Are you sure you want to cancel this appointment?"))),o().createElement(l.mzw,null,o().createElement(l.zxk,{kind:"secondary",onClick:m},y("discard","Discard")),o().createElement(l.zxk,{kind:"danger",onClick:C,disabled:w},y("cancelAppointment","Cancel appointment"))))}}}]);