@openmrs/esm-appointments-app 5.2.2-pre.2447 → 5.2.2-pre.2449
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 +2 -2
- package/dist/799.js +1 -1
- package/dist/799.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +6 -6
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/appointments-calendar/patient-list/calendar-patient-list.component.tsx +18 -1
|
@@ -80,10 +80,10 @@
|
|
|
80
80
|
"initial": true,
|
|
81
81
|
"entry": true,
|
|
82
82
|
"recorded": false,
|
|
83
|
-
"size":
|
|
83
|
+
"size": 4539790,
|
|
84
84
|
"sizes": {
|
|
85
85
|
"consume-shared": 252,
|
|
86
|
-
"javascript":
|
|
86
|
+
"javascript": 4518868,
|
|
87
87
|
"share-init": 252,
|
|
88
88
|
"runtime": 20418
|
|
89
89
|
},
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"auxiliaryFiles": [
|
|
101
101
|
"main.js.map"
|
|
102
102
|
],
|
|
103
|
-
"hash": "
|
|
103
|
+
"hash": "262c8e88d6cd22af",
|
|
104
104
|
"childrenByOrder": {}
|
|
105
105
|
},
|
|
106
106
|
{
|
|
@@ -490,9 +490,9 @@
|
|
|
490
490
|
"initial": false,
|
|
491
491
|
"entry": false,
|
|
492
492
|
"recorded": false,
|
|
493
|
-
"size":
|
|
493
|
+
"size": 481343,
|
|
494
494
|
"sizes": {
|
|
495
|
-
"javascript":
|
|
495
|
+
"javascript": 481175,
|
|
496
496
|
"consume-shared": 168
|
|
497
497
|
},
|
|
498
498
|
"names": [],
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
"auxiliaryFiles": [
|
|
507
507
|
"799.js.map"
|
|
508
508
|
],
|
|
509
|
-
"hash": "
|
|
509
|
+
"hash": "5ca82fdf532b5341",
|
|
510
510
|
"childrenByOrder": {}
|
|
511
511
|
},
|
|
512
512
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"home-appointments","slot":"homepage-widgets-slot","component":"homeAppointments","order":1},{"name":"clinical-appointments-dashboard-link","slot":"homepage-dashboard-slot","component":"appointmentsDashboardLink","meta":{"name":"appointments","slot":"clinical-appointments-dashboard-slot","title":"Appointments"}},{"component":"root","name":"clinical-appointments-dashboard","slot":"clinical-appointments-dashboard-slot"},{"name":"appointments-calendar-dashboard-link","slot":"calendar-dashboard-slot","component":"appointmentsCalendarDashboardLink"},{"name":"check-in-appointment-modal","slot":"todays-appointment-slot","component":"checkInModal"},{"name":"todays-appointments-dashboard","slot":"todays-appointment-slot","component":"homeAppointments"},{"name":"expected-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"checked-in-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"completed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"missed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"cancelled-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"early-appointments-panel","component":"earlyAppointments"}],"version":"5.2.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"home-appointments","slot":"homepage-widgets-slot","component":"homeAppointments","order":1},{"name":"clinical-appointments-dashboard-link","slot":"homepage-dashboard-slot","component":"appointmentsDashboardLink","meta":{"name":"appointments","slot":"clinical-appointments-dashboard-slot","title":"Appointments"}},{"component":"root","name":"clinical-appointments-dashboard","slot":"clinical-appointments-dashboard-slot"},{"name":"appointments-calendar-dashboard-link","slot":"calendar-dashboard-slot","component":"appointmentsCalendarDashboardLink"},{"name":"check-in-appointment-modal","slot":"todays-appointment-slot","component":"checkInModal"},{"name":"todays-appointments-dashboard","slot":"todays-appointment-slot","component":"homeAppointments"},{"name":"expected-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"checked-in-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"completed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"missed-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"cancelled-appointments-panel","slot":"scheduled-appointments-panels-slot","component":"appointmentsByStatus"},{"name":"early-appointments-panel","component":"earlyAppointments"}],"version":"5.2.2-pre.2449"}
|
package/package.json
CHANGED
|
@@ -15,8 +15,11 @@ import {
|
|
|
15
15
|
TableToolbar,
|
|
16
16
|
TableToolbarContent,
|
|
17
17
|
TableToolbarSearch,
|
|
18
|
+
Button,
|
|
18
19
|
} from '@carbon/react';
|
|
19
|
-
import { ExtensionSlot, formatDatetime } from '@openmrs/esm-framework';
|
|
20
|
+
import { ExtensionSlot, formatDate, formatDatetime } from '@openmrs/esm-framework';
|
|
21
|
+
import { downloadAppointmentsAsExcel } from '../../helpers/excel';
|
|
22
|
+
import { Download } from '@carbon/react/icons';
|
|
20
23
|
import styles from './calenar-patient-list.scss';
|
|
21
24
|
import { useAppointments } from '../../appointments/appointments-table.resource';
|
|
22
25
|
|
|
@@ -88,6 +91,20 @@ const CalendarPatientList: React.FC<CalendarPatientListProps> = () => {
|
|
|
88
91
|
tabIndex={getBatchActionProps().shouldShowBatchActions ? -1 : 0}
|
|
89
92
|
onChange={onInputChange}
|
|
90
93
|
/>
|
|
94
|
+
<Button
|
|
95
|
+
size="lg"
|
|
96
|
+
kind="tertiary"
|
|
97
|
+
renderIcon={Download}
|
|
98
|
+
onClick={() =>
|
|
99
|
+
downloadAppointmentsAsExcel(
|
|
100
|
+
appointments,
|
|
101
|
+
`${serviceName} ${formatDate(new Date(appointments[0]?.dateTime), {
|
|
102
|
+
year: true,
|
|
103
|
+
})}`,
|
|
104
|
+
)
|
|
105
|
+
}>
|
|
106
|
+
{t('download', 'Download')}
|
|
107
|
+
</Button>
|
|
91
108
|
</TableToolbarContent>
|
|
92
109
|
</TableToolbar>
|
|
93
110
|
<Table>
|