@cc-openmrs/cc-esm-active-prescriptions 1.0.69 → 1.0.71
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/{970.js → 319.js} +1 -1
- package/dist/416.js +1 -1
- package/dist/478.js +2 -1
- package/dist/499.js +1 -0
- package/dist/{488.js → 537.js} +1 -1
- package/dist/554.js +2 -0
- package/dist/818.js +2 -0
- package/dist/{389.js → 966.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-patient-lists-app.js +1 -1
- package/dist/openmrs-esm-patient-lists-app.js.buildmanifest.json +96 -96
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/root.component.tsx +4 -4
- package/src/root.scss +53 -0
- package/dist/597.js +0 -2
- package/dist/747.js +0 -2
- package/dist/97.js +0 -2
- /package/dist/{747.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
- /package/dist/{597.js.LICENSE.txt → 554.js.LICENSE.txt} +0 -0
- /package/dist/{97.js.LICENSE.txt → 818.js.LICENSE.txt} +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"workspaces2":[{"name":"active-prescriptions-workspace","component":"root","window":"active-prescriptions-workspace"}],"workspaceWindows2":[{"name":"active-prescriptions-workspace","group":"patient-chart","icon":"prescriptionsActionButton","width":"wider","order":4}],"version":"1.0.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"workspaces2":[{"name":"active-prescriptions-workspace","component":"root","window":"active-prescriptions-workspace"}],"workspaceWindows2":[{"name":"active-prescriptions-workspace","group":"patient-chart","icon":"prescriptionsActionButton","width":"wider","order":4}],"version":"1.0.71"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cc-openmrs/cc-esm-active-prescriptions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.71",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An OpenMRS frontend module for managing patient lists in the Patient Chart",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-lists-app.js",
|
package/src/root.component.tsx
CHANGED
|
@@ -233,11 +233,11 @@ const Root: React.FC<RootProps> = ({ patientUuid, patient }) => {
|
|
|
233
233
|
)}
|
|
234
234
|
</div>
|
|
235
235
|
|
|
236
|
-
{/* Formulário de adição/edição de medicamento */}
|
|
236
|
+
{/* Formulário de adição/edição de medicamento — modal overlay */}
|
|
237
237
|
{showAddMedication && (
|
|
238
|
-
<div className={styles.
|
|
239
|
-
<div className={styles.
|
|
240
|
-
<h3
|
|
238
|
+
<div className={styles.overlayBackdrop} onClick={(e) => { if (e.target === e.currentTarget) { setShowAddMedication(false); setEditIndex(null); } }}>
|
|
239
|
+
<div className={styles.overlayPanel}>
|
|
240
|
+
<h3>
|
|
241
241
|
{editIndex !== null
|
|
242
242
|
? t('editMedication', 'Editar medicamento')
|
|
243
243
|
: t('addMedication', 'Adicionar medicamento')}
|
package/src/root.scss
CHANGED
|
@@ -86,3 +86,56 @@
|
|
|
86
86
|
color: var(--cds-text-secondary, #525252);
|
|
87
87
|
margin: layout.$spacing-02 0 0;
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
.medicationsList {
|
|
91
|
+
list-style: none;
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: 0;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: layout.$spacing-03;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.medicationItem {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: layout.$spacing-03;
|
|
103
|
+
padding: layout.$spacing-03;
|
|
104
|
+
background-color: var(--cds-layer, #ffffff);
|
|
105
|
+
border: 1px solid var(--cds-border-subtle, #e0e0e0);
|
|
106
|
+
border-radius: layout.$spacing-02;
|
|
107
|
+
|
|
108
|
+
span {
|
|
109
|
+
flex: 1;
|
|
110
|
+
@include type.type-style('body-compact-01');
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.overlayBackdrop {
|
|
115
|
+
position: fixed;
|
|
116
|
+
inset: 0;
|
|
117
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
118
|
+
z-index: 9000;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.overlayPanel {
|
|
125
|
+
background-color: var(--cds-layer, #ffffff);
|
|
126
|
+
border-radius: layout.$spacing-02;
|
|
127
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
|
|
128
|
+
width: 100%;
|
|
129
|
+
max-width: 520px;
|
|
130
|
+
max-height: 90vh;
|
|
131
|
+
overflow-y: auto;
|
|
132
|
+
padding: layout.$spacing-07;
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: layout.$spacing-05;
|
|
136
|
+
|
|
137
|
+
h3 {
|
|
138
|
+
@include type.type-style('heading-03');
|
|
139
|
+
margin: 0;
|
|
140
|
+
}
|
|
141
|
+
}
|