@openmrs/esm-patient-registration-app 9.2.1-pre.7129 → 9.2.1-pre.7136
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/3474.js +1 -1
- package/dist/3474.js.map +1 -1
- package/dist/3704.js +1 -0
- package/dist/3704.js.map +1 -0
- package/dist/4300.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +29 -29
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/patient-registration/{before-save-prompt.tsx → before-save-prompt.component.tsx} +3 -4
- package/src/patient-registration/patient-registration.component.tsx +1 -1
- package/translations/en.json +1 -0
- package/dist/627.js +0 -1
- package/dist/627.js.map +0 -1
|
@@ -70,30 +70,6 @@
|
|
|
70
70
|
"hash": "7f4cb1b4bba84ccd",
|
|
71
71
|
"childrenByOrder": {}
|
|
72
72
|
},
|
|
73
|
-
{
|
|
74
|
-
"rendered": true,
|
|
75
|
-
"initial": false,
|
|
76
|
-
"entry": false,
|
|
77
|
-
"recorded": false,
|
|
78
|
-
"size": 596831,
|
|
79
|
-
"sizes": {
|
|
80
|
-
"javascript": 596831
|
|
81
|
-
},
|
|
82
|
-
"names": [],
|
|
83
|
-
"idHints": [],
|
|
84
|
-
"runtime": [
|
|
85
|
-
"@openmrs/esm-patient-registration-app",
|
|
86
|
-
"main"
|
|
87
|
-
],
|
|
88
|
-
"files": [
|
|
89
|
-
"627.js"
|
|
90
|
-
],
|
|
91
|
-
"auxiliaryFiles": [
|
|
92
|
-
"627.js.map"
|
|
93
|
-
],
|
|
94
|
-
"hash": "41a609692aa10d63",
|
|
95
|
-
"childrenByOrder": {}
|
|
96
|
-
},
|
|
97
73
|
{
|
|
98
74
|
"rendered": true,
|
|
99
75
|
"initial": false,
|
|
@@ -588,7 +564,7 @@
|
|
|
588
564
|
"auxiliaryFiles": [
|
|
589
565
|
"3474.js.map"
|
|
590
566
|
],
|
|
591
|
-
"hash": "
|
|
567
|
+
"hash": "66d732f188cce40d",
|
|
592
568
|
"childrenByOrder": {}
|
|
593
569
|
},
|
|
594
570
|
{
|
|
@@ -613,6 +589,30 @@
|
|
|
613
589
|
"hash": "9e1afe04e2f70dfe",
|
|
614
590
|
"childrenByOrder": {}
|
|
615
591
|
},
|
|
592
|
+
{
|
|
593
|
+
"rendered": true,
|
|
594
|
+
"initial": false,
|
|
595
|
+
"entry": false,
|
|
596
|
+
"recorded": false,
|
|
597
|
+
"size": 596841,
|
|
598
|
+
"sizes": {
|
|
599
|
+
"javascript": 596841
|
|
600
|
+
},
|
|
601
|
+
"names": [],
|
|
602
|
+
"idHints": [],
|
|
603
|
+
"runtime": [
|
|
604
|
+
"@openmrs/esm-patient-registration-app",
|
|
605
|
+
"main"
|
|
606
|
+
],
|
|
607
|
+
"files": [
|
|
608
|
+
"3704.js"
|
|
609
|
+
],
|
|
610
|
+
"auxiliaryFiles": [
|
|
611
|
+
"3704.js.map"
|
|
612
|
+
],
|
|
613
|
+
"hash": "cb411f1211dadc95",
|
|
614
|
+
"childrenByOrder": {}
|
|
615
|
+
},
|
|
616
616
|
{
|
|
617
617
|
"rendered": true,
|
|
618
618
|
"initial": false,
|
|
@@ -686,9 +686,9 @@
|
|
|
686
686
|
"initial": false,
|
|
687
687
|
"entry": false,
|
|
688
688
|
"recorded": false,
|
|
689
|
-
"size":
|
|
689
|
+
"size": 6127,
|
|
690
690
|
"sizes": {
|
|
691
|
-
"javascript":
|
|
691
|
+
"javascript": 6127
|
|
692
692
|
},
|
|
693
693
|
"names": [],
|
|
694
694
|
"idHints": [],
|
|
@@ -700,7 +700,7 @@
|
|
|
700
700
|
"4300.js"
|
|
701
701
|
],
|
|
702
702
|
"auxiliaryFiles": [],
|
|
703
|
-
"hash": "
|
|
703
|
+
"hash": "9c03f1cd4fbec641",
|
|
704
704
|
"childrenByOrder": {}
|
|
705
705
|
},
|
|
706
706
|
{
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
"auxiliaryFiles": [
|
|
1404
1404
|
"main.js.map"
|
|
1405
1405
|
],
|
|
1406
|
-
"hash": "
|
|
1406
|
+
"hash": "ddd272bb99f7da05",
|
|
1407
1407
|
"childrenByOrder": {}
|
|
1408
1408
|
},
|
|
1409
1409
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true,"order":30},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"}],"version":"9.2.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"patient-registration","online":true,"offline":true},{"component":"editPatient","routeRegex":"patient\\/([a-zA-Z0-9\\-]+)\\/edit","online":true,"offline":true}],"extensions":[{"component":"addPatientLink","name":"add-patient-action","slot":"top-nav-actions-slot","online":true,"offline":true,"order":30},{"component":"patientPhotoExtension","name":"patient-photo-widget","slot":"patient-photo-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-actions-slot","online":true,"offline":true},{"component":"editPatientDetailsButton","name":"edit-patient-details-button","slot":"patient-search-actions-slot","online":true,"offline":true}],"modals":[{"name":"cancel-patient-edit-modal","component":"cancelPatientEditModal"},{"name":"delete-identifier-confirmation-modal","component":"deleteIdentifierConfirmationModal"}],"version":"9.2.1-pre.7136"}
|
package/package.json
CHANGED
package/src/patient-registration/{before-save-prompt.tsx → before-save-prompt.component.tsx}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { showModal, navigate } from '@openmrs/esm-framework';
|
|
1
|
+
import { type FC, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { showModal, navigate } from '@openmrs/esm-framework';
|
|
5
4
|
|
|
6
5
|
function getUrlWithoutPrefix(url: string) {
|
|
7
6
|
return url.split(window['getOpenmrsSpaBase']())?.[1];
|
|
@@ -12,7 +11,7 @@ interface BeforeSavePromptProps {
|
|
|
12
11
|
redirect?: string;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
const BeforeSavePrompt:
|
|
14
|
+
const BeforeSavePrompt: FC<BeforeSavePromptProps> = ({ when, redirect }) => {
|
|
16
15
|
const { t } = useTranslation();
|
|
17
16
|
const ref = useRef<boolean>(false);
|
|
18
17
|
const [localTarget, setTarget] = useState<string | undefined>();
|
|
@@ -23,7 +23,7 @@ import { SectionWrapper } from './section/section-wrapper.component';
|
|
|
23
23
|
import { type CapturePhotoProps, type FormValues } from './patient-registration.types';
|
|
24
24
|
import { type SavePatientForm, SavePatientTransactionManager } from './form-manager';
|
|
25
25
|
import { useInitialAddressFieldValues, useInitialFormValues, usePatientUuidMap } from './patient-registration-hooks';
|
|
26
|
-
import BeforeSavePrompt from './before-save-prompt';
|
|
26
|
+
import BeforeSavePrompt from './before-save-prompt.component';
|
|
27
27
|
import styles from './patient-registration.scss';
|
|
28
28
|
|
|
29
29
|
let exportedInitialFormValuesForTesting = {} as FormValues;
|
package/translations/en.json
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"deleteRelationshipTooltipText": "Delete",
|
|
41
41
|
"demographicsSection": "Basic Info",
|
|
42
42
|
"discard": "Discard",
|
|
43
|
+
"discardModalBody": "The changes you made to this patient's details have not been saved. Discard changes?",
|
|
43
44
|
"dobToggleLabelText": "Date of Birth Known?",
|
|
44
45
|
"editIdentifierTooltip": "Edit",
|
|
45
46
|
"editPatientDetails": "Edit patient details",
|