@openmrs/esm-laboratory-app 1.0.2-pre.487 → 1.0.2
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/README.md +2 -1
- package/dist/6048.js +1 -1
- package/dist/6048.js.map +1 -1
- package/dist/9288.js +1 -1
- package/dist/9288.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-laboratory-app.js.buildmanifest.json +9 -9
- package/dist/routes.json +1 -1
- package/package.json +2 -3
- package/src/components/orders-table/orders-date-range-picker.component.tsx +5 -4
- package/src/laboratory-dashboard.component.tsx +5 -5
- package/.turbo/cache/b5ce807b8f853358-meta.json +0 -1
- package/.turbo/cache/b5ce807b8f853358.tar.zst +0 -0
- package/.turbo/turbo-build.log +0 -44
|
@@ -221,10 +221,10 @@
|
|
|
221
221
|
"initial": true,
|
|
222
222
|
"entry": true,
|
|
223
223
|
"recorded": false,
|
|
224
|
-
"size":
|
|
224
|
+
"size": 3661877,
|
|
225
225
|
"sizes": {
|
|
226
226
|
"consume-shared": 252,
|
|
227
|
-
"javascript":
|
|
227
|
+
"javascript": 3640027,
|
|
228
228
|
"share-init": 210,
|
|
229
229
|
"runtime": 21388
|
|
230
230
|
},
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"auxiliaryFiles": [
|
|
242
242
|
"main.js.map"
|
|
243
243
|
],
|
|
244
|
-
"hash": "
|
|
244
|
+
"hash": "7b69994036fd301b",
|
|
245
245
|
"childrenByOrder": {}
|
|
246
246
|
},
|
|
247
247
|
{
|
|
@@ -713,10 +713,10 @@
|
|
|
713
713
|
"initial": false,
|
|
714
714
|
"entry": false,
|
|
715
715
|
"recorded": false,
|
|
716
|
-
"size":
|
|
716
|
+
"size": 75226,
|
|
717
717
|
"sizes": {
|
|
718
718
|
"consume-shared": 210,
|
|
719
|
-
"javascript":
|
|
719
|
+
"javascript": 75016
|
|
720
720
|
},
|
|
721
721
|
"names": [],
|
|
722
722
|
"idHints": [],
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
"auxiliaryFiles": [
|
|
730
730
|
"6048.js.map"
|
|
731
731
|
],
|
|
732
|
-
"hash": "
|
|
732
|
+
"hash": "c2c1b5459dcf47e3",
|
|
733
733
|
"childrenByOrder": {}
|
|
734
734
|
},
|
|
735
735
|
{
|
|
@@ -1224,9 +1224,9 @@
|
|
|
1224
1224
|
"entry": false,
|
|
1225
1225
|
"recorded": false,
|
|
1226
1226
|
"reason": "split chunk (cache group: default)",
|
|
1227
|
-
"size":
|
|
1227
|
+
"size": 125867,
|
|
1228
1228
|
"sizes": {
|
|
1229
|
-
"javascript":
|
|
1229
|
+
"javascript": 125867
|
|
1230
1230
|
},
|
|
1231
1231
|
"names": [],
|
|
1232
1232
|
"idHints": [],
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
"auxiliaryFiles": [
|
|
1241
1241
|
"9288.js.map"
|
|
1242
1242
|
],
|
|
1243
|
-
"hash": "
|
|
1243
|
+
"hash": "53496af6554f4799",
|
|
1244
1244
|
"childrenByOrder": {}
|
|
1245
1245
|
},
|
|
1246
1246
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"laboratory"}],"extensions":[{"name":"laboratory-dashboard","slot":"laboratory-dashboard-slot","component":"root"},{"name":"laboratory-dashboard-link","slot":"homepage-dashboard-slot","component":"laboratoryDashboardLink","meta":{"name":"laboratory","slot":"laboratory-dashboard-slot","title":"Laboratory"}},{"name":"pickup-lab-request-modal","component":"pickupLabRequestModal"},{"name":"reject-lab-request-modal","component":"rejectLabRequestModal"},{"name":"all-lab-requests-table","slot":"lab-panels-slot","component":"allLabRequestsTable","meta":{"name":"inprogressPanel","title":"Tests ordered"}},{"name":"inprogress-lab-requests-table","slot":"lab-panels-slot","component":"inprogressLabRequestsTable","meta":{"name":"inprogressPanel","title":"In progress"}},{"name":"completed-lab-requests-table","slot":"lab-panels-slot","component":"completedLabRequestsTable","meta":{"name":"completedPanel","title":"Completed"}},{"name":"tests-ordered-tile-component","slot":"lab-tiles-slot","component":"testOrderedTile","meta":{"name":"testsOrderedTileSlot","title":"Ordered tests"}},{"name":"worklist-tile-component","slot":"lab-tiles-slot","component":"worklistTile","meta":{"name":"worklisTileSlot","title":"Worklist"}},{"name":"completed-tile-component","slot":"lab-tiles-slot","component":"completedTile","meta":{"name":"referredPanleSlot","title":"Referred tests"}},{"name":"declined-tile-component","slot":"lab-panels-slot","component":"declinedLabRequestsTable","meta":{"name":"declinedPanel","title":"Declined tests"}},{"name":"pick-lab-request-action","component":"pickupLabRequestAction","slot":"tests-ordered-actions-slot"},{"name":"reject-lab-request-tests-ordered-action","component":"rejectLabRequestAction","slot":"rejected-ordered-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"},{"name":"add-lab-request-results-action","component":"addLabRequestResultsAction","slot":"inprogress-tests-actions-slot"},{"name":"reject-lab-request-worklist-action","component":"rejectLabRequestAction","slot":"inprogress-tests-actions-slot"}],"version":"1.0.2
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.24.0"},"pages":[{"component":"root","route":"laboratory"}],"extensions":[{"name":"laboratory-dashboard","slot":"laboratory-dashboard-slot","component":"root"},{"name":"laboratory-dashboard-link","slot":"homepage-dashboard-slot","component":"laboratoryDashboardLink","meta":{"name":"laboratory","slot":"laboratory-dashboard-slot","title":"Laboratory"}},{"name":"pickup-lab-request-modal","component":"pickupLabRequestModal"},{"name":"reject-lab-request-modal","component":"rejectLabRequestModal"},{"name":"all-lab-requests-table","slot":"lab-panels-slot","component":"allLabRequestsTable","meta":{"name":"inprogressPanel","title":"Tests ordered"}},{"name":"inprogress-lab-requests-table","slot":"lab-panels-slot","component":"inprogressLabRequestsTable","meta":{"name":"inprogressPanel","title":"In progress"}},{"name":"completed-lab-requests-table","slot":"lab-panels-slot","component":"completedLabRequestsTable","meta":{"name":"completedPanel","title":"Completed"}},{"name":"tests-ordered-tile-component","slot":"lab-tiles-slot","component":"testOrderedTile","meta":{"name":"testsOrderedTileSlot","title":"Ordered tests"}},{"name":"worklist-tile-component","slot":"lab-tiles-slot","component":"worklistTile","meta":{"name":"worklisTileSlot","title":"Worklist"}},{"name":"completed-tile-component","slot":"lab-tiles-slot","component":"completedTile","meta":{"name":"referredPanleSlot","title":"Referred tests"}},{"name":"declined-tile-component","slot":"lab-panels-slot","component":"declinedLabRequestsTable","meta":{"name":"declinedPanel","title":"Declined tests"}},{"name":"pick-lab-request-action","component":"pickupLabRequestAction","slot":"tests-ordered-actions-slot"},{"name":"reject-lab-request-tests-ordered-action","component":"rejectLabRequestAction","slot":"rejected-ordered-actions-slot"},{"name":"edit-lab-request-tests-ordered-action","component":"editLabRequestAction","slot":"completed-ordered-actions-slot"},{"name":"add-lab-request-results-action","component":"addLabRequestResultsAction","slot":"inprogress-tests-actions-slot"},{"name":"reject-lab-request-worklist-action","component":"rejectLabRequestAction","slot":"inprogress-tests-actions-slot"}],"version":"1.0.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-laboratory-app",
|
|
3
|
-
"version": "1.0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An O3 frontend module for managing laboratory requests and queues",
|
|
6
6
|
"browser": "dist/openmrs-esm-laboratory-app.js",
|
|
@@ -102,6 +102,5 @@
|
|
|
102
102
|
"webpack": "^5.88.1",
|
|
103
103
|
"webpack-cli": "^5.1.3"
|
|
104
104
|
},
|
|
105
|
-
"packageManager": "yarn@4.6.0"
|
|
106
|
-
"stableVersion": "1.0.1"
|
|
105
|
+
"packageManager": "yarn@4.6.0"
|
|
107
106
|
}
|
|
@@ -7,14 +7,14 @@ import { type DateFilterContext } from '../../types';
|
|
|
7
7
|
import styles from './orders-date-range-picker.scss';
|
|
8
8
|
|
|
9
9
|
export const OrdersDateRangePicker = () => {
|
|
10
|
+
const { t } = useTranslation();
|
|
10
11
|
const currentDate = new Date();
|
|
12
|
+
|
|
11
13
|
const { dateRange, setDateRange } = useAppContext<DateFilterContext>('laboratory-date-filter') ?? {
|
|
12
14
|
dateRange: [dayjs().startOf('day').toDate(), new Date()],
|
|
13
15
|
setDateRange: () => {},
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
|
|
18
18
|
const handleOrdersDateRangeChange = (dates: Array<Date>) => {
|
|
19
19
|
setDateRange(dates);
|
|
20
20
|
};
|
|
@@ -23,9 +23,10 @@ export const OrdersDateRangePicker = () => {
|
|
|
23
23
|
<div className={styles.datePickerWrapper}>
|
|
24
24
|
<p>{t('dateRange', 'Date range')}:</p>
|
|
25
25
|
<DatePicker
|
|
26
|
-
datePickerType="range"
|
|
27
26
|
className={styles.dateRangePicker}
|
|
28
|
-
|
|
27
|
+
dateFormat="d/m/Y"
|
|
28
|
+
datePickerType="range"
|
|
29
|
+
onChange={handleOrdersDateRangeChange}
|
|
29
30
|
maxDate={currentDate.toISOString()}
|
|
30
31
|
value={dateRange}
|
|
31
32
|
>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { LaboratoryPictogram, PageHeader, useDefineAppContext } from '@openmrs/esm-framework';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
1
|
import React, { useState } from 'react';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
4
3
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import
|
|
4
|
+
import { LaboratoryPictogram, PageHeader, useDefineAppContext } from '@openmrs/esm-framework';
|
|
5
|
+
import { type DateFilterContext } from './types';
|
|
6
6
|
import LaboratoryOrdersTabs from './lab-tabs/laboratory-tabs.component';
|
|
7
7
|
import LaboratorySummaryTiles from './lab-tiles/laboratory-summary-tiles.component';
|
|
8
|
+
import Overlay from './components/overlay/overlay.component';
|
|
8
9
|
import styles from './laboratory-dashboard.scss';
|
|
9
|
-
import { type DateFilterContext } from './types';
|
|
10
10
|
|
|
11
11
|
const LaboratoryDashboard: React.FC = () => {
|
|
12
12
|
const { t } = useTranslation();
|
|
@@ -14,7 +14,7 @@ const LaboratoryDashboard: React.FC = () => {
|
|
|
14
14
|
useDefineAppContext<DateFilterContext>('laboratory-date-filter', { dateRange, setDateRange });
|
|
15
15
|
|
|
16
16
|
return (
|
|
17
|
-
<div
|
|
17
|
+
<div>
|
|
18
18
|
<PageHeader
|
|
19
19
|
illustration={<LaboratoryPictogram />}
|
|
20
20
|
title={t('laboratory', 'Laboratory')}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"b5ce807b8f853358","duration":48354}
|
|
Binary file
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Browserslist: caniuse-lite is outdated. Please run:
|
|
2
|
-
npx update-browserslist-db@latest
|
|
3
|
-
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
4
|
-
assets by path *.js 3.09 MiB
|
|
5
|
-
assets by chunk 2.13 MiB (id hint: vendors)
|
|
6
|
-
assets by status 1.87 MiB [big]
|
|
7
|
-
asset 8728.js 1.39 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
8
|
-
asset 1556.js 492 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
9
|
-
asset 9064.js 130 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
10
|
-
asset 436.js 94.5 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
11
|
-
asset 764.js 20.1 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
|
|
12
|
-
asset 5144.js 18 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
|
|
13
|
-
+ 51 assets
|
|
14
|
-
assets by path *.json 28.6 KiB
|
|
15
|
-
asset openmrs-esm-laboratory-app.js.buildmanifest.json 26.4 KiB [emitted]
|
|
16
|
-
asset routes.json 2.25 KiB [emitted] [from: src/routes.json] [copied]
|
|
17
|
-
orphan modules 6.75 MiB [orphan] 1075 modules
|
|
18
|
-
runtime modules 41.4 KiB 30 modules
|
|
19
|
-
built modules 8.96 MiB (javascript) 252 bytes (consume-shared) 210 bytes (share-init) [built]
|
|
20
|
-
javascript modules 8.9 MiB 98 modules
|
|
21
|
-
optional modules 66.7 KiB [optional]
|
|
22
|
-
./translations/am.json 2.13 KiB [optional] [built] [code generated]
|
|
23
|
-
+ 30 modules
|
|
24
|
-
consume-shared-module modules 252 bytes
|
|
25
|
-
modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
|
|
26
|
-
+ 4 modules
|
|
27
|
-
provide-module modules 210 bytes
|
|
28
|
-
provide shared module (default) @openmrs/esm-framework@6.1.1-pre.2721 = ./node_m...(truncated) 42 bytes [built] [code generated]
|
|
29
|
-
provide shared module (default) dayjs@1.11.11 = ./node_modules/dayj...(truncated) 42 bytes [built] [code generated]
|
|
30
|
-
+ 3 modules
|
|
31
|
-
|
|
32
|
-
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
33
|
-
This can impact web performance.
|
|
34
|
-
Assets:
|
|
35
|
-
main.js (686 KiB)
|
|
36
|
-
8728.js (1.39 MiB)
|
|
37
|
-
1556.js (492 KiB)
|
|
38
|
-
|
|
39
|
-
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
|
|
40
|
-
Entrypoints:
|
|
41
|
-
main (686 KiB)
|
|
42
|
-
main.js
|
|
43
|
-
|
|
44
|
-
webpack 5.90.1 compiled with 2 warnings in 45602 ms
|