@openmrs/esm-patient-programs-app 3.0.0-pre.587 → 3.0.0-pre.588
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/dist/839.openmrs-esm-patient-programs-app.js +1 -1
- package/dist/839.openmrs-esm-patient-programs-app.js.map +1 -1
- package/dist/972.openmrs-esm-patient-programs-app.js +1 -1
- package/dist/972.openmrs-esm-patient-programs-app.js.map +1 -1
- package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +6 -6
- package/package.json +3 -3
- package/src/programs/programs-form.component.tsx +14 -10
- package/src/programs/programs-overview.component.tsx +8 -7
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
"entry": false,
|
|
176
176
|
"recorded": false,
|
|
177
177
|
"reason": "reused as split chunk (cache group: default)",
|
|
178
|
-
"size":
|
|
178
|
+
"size": 102177,
|
|
179
179
|
"sizes": {
|
|
180
|
-
"javascript":
|
|
180
|
+
"javascript": 102177
|
|
181
181
|
},
|
|
182
182
|
"names": [],
|
|
183
183
|
"idHints": [],
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"auxiliaryFiles": [
|
|
191
191
|
"839.openmrs-esm-patient-programs-app.js.map"
|
|
192
192
|
],
|
|
193
|
-
"hash": "
|
|
193
|
+
"hash": "acf8d14d16d1cb608a38",
|
|
194
194
|
"childrenByOrder": {}
|
|
195
195
|
},
|
|
196
196
|
{
|
|
@@ -198,9 +198,9 @@
|
|
|
198
198
|
"initial": false,
|
|
199
199
|
"entry": false,
|
|
200
200
|
"recorded": false,
|
|
201
|
-
"size":
|
|
201
|
+
"size": 117477,
|
|
202
202
|
"sizes": {
|
|
203
|
-
"javascript":
|
|
203
|
+
"javascript": 117477
|
|
204
204
|
},
|
|
205
205
|
"names": [],
|
|
206
206
|
"idHints": [],
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"auxiliaryFiles": [
|
|
214
214
|
"972.openmrs-esm-patient-programs-app.js.map"
|
|
215
215
|
],
|
|
216
|
-
"hash": "
|
|
216
|
+
"hash": "b87db41a93c69ade070d",
|
|
217
217
|
"childrenByOrder": {}
|
|
218
218
|
}
|
|
219
219
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-programs-app",
|
|
3
|
-
"version": "3.0.0-pre.
|
|
3
|
+
"version": "3.0.0-pre.588",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient programs microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-programs-app.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@carbon/charts-react": "^0.41.14",
|
|
38
38
|
"@carbon/icons-react": "^10.18.0",
|
|
39
|
-
"@openmrs/esm-patient-common-lib": "^3.0.0-pre.
|
|
39
|
+
"@openmrs/esm-patient-common-lib": "^3.0.0-pre.588",
|
|
40
40
|
"carbon-components-react": "^7.25.0",
|
|
41
41
|
"d3": "^5.16.0",
|
|
42
42
|
"lodash-es": "^4.17.15"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react-router-dom": "5.x",
|
|
52
52
|
"rxjs": "6.x"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "48304c8ca5811228408a926ca0681c4710b6638c"
|
|
55
55
|
}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import React, { SyntheticEvent } from 'react';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
|
-
import
|
|
3
|
+
import filter from 'lodash-es/filter';
|
|
4
|
+
import includes from 'lodash-es/includes';
|
|
5
|
+
import map from 'lodash-es/map';
|
|
6
|
+
import styles from './programs-form.scss';
|
|
4
7
|
import { useTranslation } from 'react-i18next';
|
|
5
8
|
import { createErrorHandler, detach, showNotification, showToast, useSessionUser } from '@openmrs/esm-framework';
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
import {
|
|
10
|
+
Button,
|
|
11
|
+
DatePicker,
|
|
12
|
+
DatePickerInput,
|
|
13
|
+
InlineLoading,
|
|
14
|
+
Select,
|
|
15
|
+
SelectItem,
|
|
16
|
+
Form,
|
|
17
|
+
FormGroup,
|
|
18
|
+
} from 'carbon-components-react';
|
|
14
19
|
import {
|
|
15
20
|
createProgramEnrollment,
|
|
16
21
|
fetchEnrolledPrograms,
|
|
@@ -18,7 +23,6 @@ import {
|
|
|
18
23
|
fetchAvailablePrograms,
|
|
19
24
|
} from './programs.resource';
|
|
20
25
|
import { Program } from '../types';
|
|
21
|
-
import styles from './programs-form.scss';
|
|
22
26
|
|
|
23
27
|
interface Idle {
|
|
24
28
|
type: ActionTypes.idle;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import Add16 from '@carbon/icons-react/es/add/16';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
4
|
+
import styles from './programs-overview.scss';
|
|
5
|
+
import { attach } from '@openmrs/esm-framework';
|
|
6
|
+
import {
|
|
7
|
+
DataTable,
|
|
8
|
+
Pagination,
|
|
9
|
+
DataTableSkeleton,
|
|
10
|
+
Button,
|
|
8
11
|
Table,
|
|
9
12
|
TableCell,
|
|
10
13
|
TableContainer,
|
|
@@ -12,13 +15,11 @@ import DataTable, {
|
|
|
12
15
|
TableHead,
|
|
13
16
|
TableHeader,
|
|
14
17
|
TableRow,
|
|
15
|
-
} from 'carbon-components-react
|
|
16
|
-
import styles from './programs-overview.scss';
|
|
18
|
+
} from 'carbon-components-react';
|
|
17
19
|
import { EmptyState, ErrorState } from '@openmrs/esm-patient-common-lib';
|
|
18
20
|
import { useTranslation } from 'react-i18next';
|
|
19
21
|
import { fetchActiveEnrollments } from './programs.resource';
|
|
20
22
|
import { PatientProgram } from '../types';
|
|
21
|
-
import { attach } from '@openmrs/esm-framework';
|
|
22
23
|
|
|
23
24
|
interface ProgramsOverviewProps {
|
|
24
25
|
basePath: string;
|