@openmrs/esm-appointments-app 6.1.1-pre.2986 → 6.1.1-pre.3003
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/.turbo/turbo-build.log +9 -9
- package/dist/4.js +1 -0
- package/dist/4.js.map +1 -0
- package/dist/574.js +1 -1
- package/dist/989.js +1 -0
- package/dist/989.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-appointments-app.js +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +36 -36
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/hooks/patientAppointmentContext.ts +15 -0
- package/src/index.ts +4 -4
- package/src/{patient-chart → patient-appointments}/patient-appointments-action-menu.component.tsx +15 -6
- package/src/{patient-chart → patient-appointments}/patient-appointments-base.component.tsx +16 -5
- package/src/{patient-chart → patient-appointments}/patient-appointments-base.scss +3 -1
- package/src/{patient-chart → patient-appointments}/patient-appointments-detailed-summary.component.tsx +4 -1
- package/src/patient-appointments/patient-appointments-header.scss +27 -0
- package/src/patient-appointments/patient-appointments-header.tsx +42 -0
- package/src/patient-appointments/patient-appointments-overview.component.tsx +36 -0
- package/src/patient-appointments/patient-appointments-overview.scss +7 -0
- package/src/root.component.tsx +2 -0
- package/src/routes.json +0 -8
- package/translations/en.json +1 -2
- package/dist/842.js +0 -1
- package/dist/842.js.map +0 -1
- package/dist/968.js +0 -1
- package/dist/968.js.map +0 -1
- package/src/patient-chart/patient-appointments-overview.component.tsx +0 -13
- /package/src/{patient-chart → patient-appointments}/patient-appointments-action-menu.scss +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-appointments-base.test.tsx +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-appointments-cancel-modal.component.tsx +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-appointments-table.scss +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-appointments-table.tsx +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-appointments.resource.ts +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-upcoming-appointments-card.component.tsx +0 -0
- /package/src/{patient-chart → patient-appointments}/patient-upcoming-appointments-card.scss +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -10,13 +10,13 @@ assets by path [1m[32m*.js[39m[22m 2.97 MiB
|
|
|
10
10
|
asset [1m[32m729.js[39m[22m 6.16 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
11
11
|
asset [1m[32m255.js[39m[22m 4.84 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
12
12
|
+ 17 assets
|
|
13
|
-
assets by path [1m[32m*.json[39m[22m 16.
|
|
13
|
+
assets by path [1m[32m*.json[39m[22m 16.1 KiB
|
|
14
14
|
asset [1m[32mopenmrs-esm-appointments-app.js.buildmanifest.json[39m[22m 13.9 KiB [1m[32m[emitted][39m[22m
|
|
15
|
-
asset [1m[32mroutes.json[39m[22m 2.
|
|
16
|
-
orphan modules 6.
|
|
15
|
+
asset [1m[32mroutes.json[39m[22m 2.22 KiB [1m[32m[emitted][39m[22m [from: src/routes.json] [1m[32m[copied][39m[22m
|
|
16
|
+
orphan modules 6.96 MiB [1m[33m[orphan][39m[22m 1154 modules
|
|
17
17
|
runtime modules 41 KiB 28 modules
|
|
18
|
-
built modules 7.
|
|
19
|
-
javascript modules 7.
|
|
18
|
+
built modules 7.26 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-init) [1m[33m[built][39m[22m
|
|
19
|
+
javascript modules 7.21 MiB 153 modules
|
|
20
20
|
optional modules 50.6 KiB [1m[33m[optional][39m[22m
|
|
21
21
|
[1m./translations/am.json[39m[22m 6.18 KiB [1m[33m[optional][39m[22m [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
22
22
|
+ 8 modules
|
|
@@ -32,15 +32,15 @@ built modules 7.25 MiB (javascript) 336 bytes (consume-shared) 294 bytes (share-
|
|
|
32
32
|
[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
33
33
|
This can impact web performance.
|
|
34
34
|
Assets:
|
|
35
|
-
main.js (1.
|
|
35
|
+
main.js (1.1 MiB)
|
|
36
36
|
130.js (539 KiB)
|
|
37
|
-
|
|
37
|
+
989.js (254 KiB)
|
|
38
38
|
337.js (840 KiB)[39m[22m
|
|
39
39
|
|
|
40
40
|
[1m[33mWARNING[39m[22m in [1mentrypoint 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.
|
|
42
|
+
main (1.1 MiB)
|
|
43
43
|
main.js
|
|
44
44
|
[39m[22m
|
|
45
45
|
|
|
46
|
-
webpack 5.86.0 compiled with [1m[33m2 warnings[39m[22m in
|
|
46
|
+
webpack 5.86.0 compiled with [1m[33m2 warnings[39m[22m in 42500 ms
|
package/dist/4.js
ADDED
|
@@ -0,0 +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(2352),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.v)("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"))))}}}]);
|
package/dist/4.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4.js","mappings":"gPAAA,iB,kNAiEA,QArDoF,Y,YAClFA,EAAAA,EAAAA,iBACAC,EAAAA,EAAAA,gBACAC,EAAAA,EAAAA,YAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACF,GAAaC,EAAAA,EAAAA,GAAuBH,GAAa,IAAII,MAAOC,cAAe,IAAIC,iBAA7EC,OACgCC,G,GAAAA,EAAAA,EAAAA,WAAS,G,EAAK,E,+zBAA/CC,EAAiCD,EAAAA,GAAnBE,EAAmBF,EAAAA,GAElCG,G,EAAe,W,qkCACnBD,GAAgB,IAEhBE,EAAAA,EAAAA,GAAkB,YAAab,GAC5Bc,MAAK,YACW,MADRC,EAAAA,SAELP,IACAT,KACAiB,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACfC,KAAM,UACNC,SAAUhB,EAAE,mCAAoC,sCAChDiB,MAAOjB,EAAE,uBAAwB,2BAGvC,IACCkB,OAAM,SAACC,IACNN,EAAAA,EAAAA,cAAa,CACXI,MAAOjB,EAAE,yBAA0B,gCACnCe,KAAM,QACND,eAAe,EACfE,SAAUG,aAAAA,EAAAA,EAAKC,SAEnB,I,MACJ,E,4NAEA,OACE,kBAACC,MAAAA,KACC,kBAACC,EAAAA,IAAWA,CAACC,WAAY3B,EAAkBqB,MAAOjB,EAAE,oBAAqB,wBACzE,kBAACwB,EAAAA,IAASA,KACR,kBAACC,IAAAA,KAAGzB,EAAE,yCAA0C,uDAElD,kBAAC0B,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACZ,KAAK,YAAYa,QAAShC,GAC/BI,EAAE,UAAW,YAEhB,kBAAC2B,EAAAA,IAAMA,CAACZ,KAAK,SAASa,QAASnB,EAAcoB,SAAUtB,GACpDP,EAAE,oBAAqB,wBAKlC,C","sources":["webpack://@openmrs/esm-appointments-app/./src/patient-appointments/patient-appointments-cancel-modal.component.tsx"],"names":["closeCancelModal","appointmentUuid","patientUuid","useTranslation","t","usePatientAppointments","Date","toUTCString","AbortController","mutate","useState","isSubmitting","setIsSubmitting","handleCancel","cancelAppointment","then","status","showSnackbar","isLowContrast","kind","subtitle","title","catch","err","message","div","ModalHeader","closeModal","ModalBody","p","ModalFooter","Button","onClick","disabled"],"sourceRoot":""}
|
package/dist/574.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","addNewAppointment":"Add new appointment","addPatientToQueue":"Add patient to queue","age":"Age","all":"All","allDay":"All day","appointment":"appointment","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked-in","appointmentCheckInError":"Error checking in appointment","appointmentColor":"Appointment color","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentForm":"Appointments Form","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedAsMissed":"It has been successfully marked as Missed","appointmentMetrics":"Appointment metrics","appointmentMetricsLoadError":"","appointmentMissed":"Appointment Missed","appointmentMissedError":"Error marking appointment as Missed","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","appointmentsCalendar":"Appointments Calendar","appointmentScheduled":"Appointment scheduled","appointmentService":"Appointment service","appointmentServiceCreate":"Appointment service created successfully","appointmentServiceName":"Appointment service name","appointmentStatus":"Appointment status","appointmentSuccessfullyCheckedIn":"It has been checked-in successfully","appointmentToFulfill":"Select appointment(s) to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","cancelledSuccessfully":"It has been cancelled successfully","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkInAppointment":"Are you sure you want to mark appointment as Checked-in?","checkinTime":"Check-in time","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","complete":"Complete","completed":"Completed","createAppointment":"Create appointment","createAppointmentService":"Create appointment services","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAndTime":"Date and time","dateAndTimeOfVisit":"Date and time of visit","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationInMinutes":"Duration (minutes)","durationMins":"Duration min","edit":"Edit","editAppointment":"Edit Appointment","editAppointments":"Edit Appointment","emptyStateText":"There are no {{displayText}} to display","encounters":"Encounters","encounterType":"Encounter type","endDate":"End date","endTime":"End Time","errorCancellingAppointment":"Error cancelling the appointment","errorCheckingAppoitment":"Error checking in the appointment","errorCreatingAppointmentService":"Error creating appointment service","expected":"Expected","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","home":"Home","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","loading":"Loading","location":"Location","medications":"Medications","missed":"Missed","missingVisitType":"Missing visit type","
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","addAppointment":"Add Appointment","addNewAppointment":"Add new appointment","addPatientToQueue":"Add patient to queue","age":"Age","all":"All","allDay":"All day","appointment":"appointment","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked-in","appointmentCheckInError":"Error checking in appointment","appointmentColor":"Appointment color","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentForm":"Appointments Form","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedAsMissed":"It has been successfully marked as Missed","appointmentMetrics":"Appointment metrics","appointmentMetricsLoadError":"","appointmentMissed":"Appointment Missed","appointmentMissedError":"Error marking appointment as Missed","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","appointmentsCalendar":"Appointments Calendar","appointmentScheduled":"Appointment scheduled","appointmentService":"Appointment service","appointmentServiceCreate":"Appointment service created successfully","appointmentServiceName":"Appointment service name","appointmentStatus":"Appointment status","appointmentSuccessfullyCheckedIn":"It has been checked-in successfully","appointmentToFulfill":"Select appointment(s) to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","cancelledSuccessfully":"It has been cancelled successfully","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkInAppointment":"Are you sure you want to mark appointment as Checked-in?","checkinTime":"Check-in time","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","complete":"Complete","completed":"Completed","createAppointment":"Create appointment","createAppointmentService":"Create appointment services","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAndTime":"Date and time","dateAndTimeOfVisit":"Date and time of visit","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationInMinutes":"Duration (minutes)","durationMins":"Duration min","edit":"Edit","editAppointment":"Edit Appointment","editAppointments":"Edit Appointment","emptyStateText":"There are no {{displayText}} to display","encounters":"Encounters","encounterType":"Encounter type","endDate":"End date","endTime":"End Time","errorCancellingAppointment":"Error cancelling the appointment","errorCheckingAppoitment":"Error checking in the appointment","errorCreatingAppointmentService":"Error creating appointment service","expected":"Expected","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","home":"Home","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","loading":"Loading","location":"Location","medications":"Medications","missed":"Missed","missingVisitType":"Missing visit type","name":"Name","no":"No","noAppointmentsScheduledForTodayToDisplay":"There are no appointments scheduled for today to display for this location","noAppointmentsToDisplay":"There are no appointments to display for this location","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noEncountersFound":"No encounters found","noMatchingVisitTypeFound":"","noPastAppointments":"There are no past appointments to display for this patient","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","or":"or","past":"Past","patientDetails":"Patient Details","patientName":"Patient name","patients":"Patients","patientSearch":"Patient search","period":"Period","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","queueAddedSuccessfully":"","queueEntryError":"Error adding patient to the queue","reasonForChanges":"Reason For Changes","recurringAppointment":"Recurring Appointment","repeatEvery":"Repeat every","revertingAppointmentStatus":"Reverting appointment status","save":"Save","saveAndClose":"Save and close","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","search":"Search","searchForAVisitType":"Search for a visit type","seeAllAppointments":"See all appointments","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectFacility":"Select a facility","selectLocation":"Select location","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","selectServiceType":"Select service type","selectVisitType":"Please select a Visit Type","service":"Service","serviceName":"Service name","serviceType":"Service Type","startDate":"Start date","startTime":"Start Time","startVisitError":"Error starting visit","time":"Time","today":"Today","todaysAppointments":"Today\'s Appointments","total":"Total","undo":"Undo","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","view":"View","viewCalendar":"View Calendar","visitLocation":"Visit Location","visitStarted":"Visit started","visitType":"Visit Type","vitals":"Vitals","week":"Week","yes":"Yes"}')}}]);
|