@sasindi/samplecollection 1.0.0 → 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/dist/30.js +1 -1
- package/dist/30.js.map +1 -1
- package/dist/340.js +1 -0
- package/dist/340.js.map +1 -0
- package/dist/425.js +1 -0
- package/dist/425.js.map +1 -0
- package/dist/529.js +1 -1
- package/dist/529.js.map +1 -1
- package/dist/577.js +1 -0
- package/dist/577.js.map +1 -0
- package/dist/981.js +2 -2
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-samplecollection.js +3 -3
- package/dist/openmrs-esm-samplecollection.js.buildmanifest.json +92 -42
- package/dist/openmrs-esm-samplecollection.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -1
- package/src/index.ts +1 -0
- package/src/root.component.tsx +3 -10
- package/src/routes.json +6 -0
- package/src/samplecollection.component.tsx +167 -150
- package/src/samplecollection.scss +235 -101
- package/src/samplecollectionroom.component.tsx +234 -218
- package/dist/435.js +0 -1
- package/dist/435.js.map +0 -1
|
@@ -1,163 +1,297 @@
|
|
|
1
1
|
@use '@carbon/layout';
|
|
2
2
|
@use '@carbon/type';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
/* Replicating the team's visual styles */
|
|
5
|
+
|
|
6
|
+
body {
|
|
7
|
+
max-width: unset !important;
|
|
8
|
+
padding: 0px 5px;
|
|
9
|
+
background-color: #f8f9fa;
|
|
10
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
.
|
|
11
|
-
padding:
|
|
12
|
-
|
|
13
|
-
background: var(--cds-layer-01, #ffffff);
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
16
|
-
border: 1px solid var(--cds-border-subtle-01, #e0e0e0);
|
|
13
|
+
.container {
|
|
14
|
+
padding: 15px;
|
|
15
|
+
max-width: 100%;
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
.
|
|
18
|
+
.card {
|
|
19
|
+
position: relative;
|
|
20
20
|
display: flex;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
word-wrap: break-word;
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
background-clip: border-box;
|
|
26
|
+
border: 1px solid rgba(0,0,0,.125);
|
|
27
|
+
border-radius: .25rem;
|
|
28
|
+
box-shadow: 0 4px 6px rgba(0,0,0,.05);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cardBody {
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
padding: 1.25rem;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
.heading {
|
|
29
|
-
|
|
37
|
+
font-size: 20px;
|
|
30
38
|
color: #009384;
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
font-weight: 500;
|
|
40
|
+
margin-bottom: 1.5rem;
|
|
33
41
|
}
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
/* Custom form grid alignment */
|
|
44
|
+
.row {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
margin-right: -15px;
|
|
48
|
+
margin-left: -15px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.col12 {
|
|
52
|
+
flex: 0 0 100%;
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
padding-right: 15px;
|
|
55
|
+
padding-left: 15px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.col10 {
|
|
59
|
+
flex: 0 0 83.333333%;
|
|
60
|
+
max-width: 83.333333%;
|
|
61
|
+
padding-right: 15px;
|
|
62
|
+
padding-left: 15px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.col2 {
|
|
66
|
+
flex: 0 0 16.666667%;
|
|
67
|
+
max-width: 16.666667%;
|
|
68
|
+
padding-right: 15px;
|
|
69
|
+
padding-left: 15px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.formGroupRow {
|
|
36
73
|
display: flex;
|
|
37
74
|
align-items: center;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
color: var(--cds-text-secondary, #525252);
|
|
41
|
-
background: var(--cds-layer-02, #f4f4f4);
|
|
42
|
-
padding: layout.$spacing-02 layout.$spacing-04;
|
|
43
|
-
border-radius: 16px;
|
|
44
|
-
font-size: 14px;
|
|
75
|
+
margin-bottom: 0.5rem;
|
|
76
|
+
width: 100%;
|
|
45
77
|
}
|
|
46
78
|
|
|
47
|
-
.
|
|
79
|
+
.formGroupCol {
|
|
80
|
+
flex: 0 0 33.3333%;
|
|
81
|
+
max-width: 33.3333%;
|
|
48
82
|
display: flex;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
margin-bottom:
|
|
52
|
-
|
|
83
|
+
align-items: center;
|
|
84
|
+
padding: 0 10px;
|
|
85
|
+
margin-bottom: 0.5rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.labelCompact {
|
|
89
|
+
font-size: 14px;
|
|
90
|
+
margin-bottom: 0 !important;
|
|
91
|
+
font-weight: normal;
|
|
92
|
+
width: 110px;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.formControl {
|
|
97
|
+
display: block;
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 25px !important;
|
|
100
|
+
padding: 2px 8px !important;
|
|
101
|
+
font-size: 14px !important;
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
color: #495057;
|
|
104
|
+
background-color: #fff;
|
|
105
|
+
background-clip: padding-box;
|
|
106
|
+
border: 1px solid #ced4da;
|
|
107
|
+
border-radius: .25rem;
|
|
108
|
+
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
|
109
|
+
outline: none;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
|
|
112
|
+
&:focus {
|
|
113
|
+
border-color: #80bdff;
|
|
114
|
+
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&[readonly] {
|
|
118
|
+
background-color: #e9ecef;
|
|
119
|
+
opacity: 1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.textareaControl {
|
|
124
|
+
height: auto !important;
|
|
125
|
+
font-size: 12px !important;
|
|
53
126
|
}
|
|
54
127
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
128
|
+
/* Custom Table Layout */
|
|
129
|
+
.tableResponsive {
|
|
130
|
+
display: block;
|
|
131
|
+
width: 100%;
|
|
132
|
+
overflow-x: auto;
|
|
133
|
+
-webkit-overflow-scrolling: touch;
|
|
58
134
|
}
|
|
59
135
|
|
|
136
|
+
.table {
|
|
137
|
+
width: 100%;
|
|
138
|
+
margin-bottom: 1rem;
|
|
139
|
+
color: #212529;
|
|
140
|
+
border-collapse: collapse;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.tableBordered {
|
|
145
|
+
border: 1px solid #dee2e6;
|
|
146
|
+
|
|
147
|
+
th, td {
|
|
148
|
+
border: 1px solid #dee2e6;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.table th {
|
|
153
|
+
background: #6f77e1 !important;
|
|
154
|
+
color: white;
|
|
155
|
+
text-align: left;
|
|
156
|
+
font-weight: bold;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.table td, .table th {
|
|
160
|
+
padding: 2px 10px !important;
|
|
161
|
+
vertical-align: middle;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.tableStriped tbody tr:nth-of-type(odd) {
|
|
165
|
+
background-color: rgba(0,0,0,.05);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.tableHover tbody tr:hover {
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
background-color: #c1bfbf !important;
|
|
171
|
+
color: #000;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Specimen Status Colors */
|
|
60
175
|
.rowInadequate {
|
|
61
176
|
background-color: #fff3cd !important;
|
|
62
|
-
transition: background-color 0.2s ease;
|
|
63
177
|
&:hover {
|
|
64
|
-
background-color: #
|
|
178
|
+
background-color: #ffe8a1 !important;
|
|
65
179
|
}
|
|
66
180
|
}
|
|
67
181
|
|
|
68
182
|
.rowError {
|
|
69
183
|
background-color: #f8d7da !important;
|
|
70
|
-
transition: background-color 0.2s ease;
|
|
71
184
|
&:hover {
|
|
72
|
-
background-color: #
|
|
185
|
+
background-color: #f5b3b8 !important;
|
|
73
186
|
}
|
|
74
187
|
}
|
|
75
188
|
|
|
76
|
-
/*
|
|
77
|
-
.
|
|
78
|
-
display:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
align
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
189
|
+
/* Buttons */
|
|
190
|
+
.btn {
|
|
191
|
+
display: inline-block;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
color: #212529;
|
|
194
|
+
text-align: center;
|
|
195
|
+
vertical-align: middle;
|
|
196
|
+
cursor: pointer;
|
|
197
|
+
user-select: none;
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
border: 1px solid transparent;
|
|
200
|
+
padding: .375rem .75rem;
|
|
201
|
+
font-size: 14px !important;
|
|
202
|
+
line-height: 1.5;
|
|
203
|
+
border-radius: .25rem;
|
|
204
|
+
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
height: auto;
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
|
|
209
|
+
&:disabled {
|
|
210
|
+
opacity: 0.65;
|
|
211
|
+
cursor: not-allowed;
|
|
90
212
|
}
|
|
91
213
|
}
|
|
92
214
|
|
|
93
|
-
.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
215
|
+
.btnPrimary {
|
|
216
|
+
color: #fff;
|
|
217
|
+
background-color: #007bff;
|
|
218
|
+
border-color: #007bff;
|
|
219
|
+
&:hover:not(:disabled) {
|
|
220
|
+
background-color: #0069d9;
|
|
221
|
+
border-color: #0062cc;
|
|
222
|
+
}
|
|
97
223
|
}
|
|
98
224
|
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
225
|
+
.btnSuccess {
|
|
226
|
+
color: #fff;
|
|
227
|
+
background-color: #28a745;
|
|
228
|
+
border-color: #28a745;
|
|
229
|
+
&:hover:not(:disabled) {
|
|
230
|
+
background-color: #218838;
|
|
231
|
+
border-color: #1e7e34;
|
|
232
|
+
}
|
|
103
233
|
}
|
|
104
234
|
|
|
105
|
-
.
|
|
106
|
-
|
|
107
|
-
color:
|
|
108
|
-
|
|
109
|
-
|
|
235
|
+
.btnDanger {
|
|
236
|
+
color: #fff;
|
|
237
|
+
background-color: #dc3545;
|
|
238
|
+
border-color: #dc3545;
|
|
239
|
+
&:hover:not(:disabled) {
|
|
240
|
+
background-color: #c82333;
|
|
241
|
+
border-color: #bd2130;
|
|
242
|
+
}
|
|
110
243
|
}
|
|
111
244
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
245
|
+
/* Patient Image upload border style */
|
|
246
|
+
.uploadImg {
|
|
247
|
+
border-radius: 16px;
|
|
248
|
+
display: inline-block;
|
|
249
|
+
width: 60%;
|
|
250
|
+
height: 120px;
|
|
251
|
+
object-fit: cover;
|
|
252
|
+
object-position: 50% 50%;
|
|
253
|
+
border: 3px solid #20e5bf;
|
|
254
|
+
margin-right: 15px;
|
|
255
|
+
vertical-align: middle;
|
|
116
256
|
}
|
|
117
257
|
|
|
118
258
|
.avatarContainer {
|
|
119
259
|
display: flex;
|
|
120
|
-
justify-content:
|
|
260
|
+
justify-content: flex-end;
|
|
121
261
|
align-items: center;
|
|
262
|
+
padding-right: 15px;
|
|
122
263
|
}
|
|
123
264
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
border-radius: 50%;
|
|
128
|
-
object-fit: cover;
|
|
129
|
-
border: 3px solid #009384;
|
|
265
|
+
/* Simple flex row for form inputs */
|
|
266
|
+
.dFlex {
|
|
267
|
+
display: flex;
|
|
130
268
|
}
|
|
131
269
|
|
|
132
|
-
.
|
|
133
|
-
|
|
134
|
-
border-top: 1px solid var(--cds-border-subtle-01, #e0e0e0);
|
|
135
|
-
padding-top: layout.$spacing-06;
|
|
270
|
+
.justifyContentEnd {
|
|
271
|
+
justify-content: flex-end;
|
|
136
272
|
}
|
|
137
273
|
|
|
138
|
-
.
|
|
139
|
-
|
|
140
|
-
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
141
|
-
gap: layout.$spacing-06;
|
|
142
|
-
margin-bottom: layout.$spacing-06;
|
|
274
|
+
.alignItemsCenter {
|
|
275
|
+
align-items: center;
|
|
143
276
|
}
|
|
144
277
|
|
|
145
|
-
.
|
|
146
|
-
|
|
147
|
-
justify-content: flex-end;
|
|
148
|
-
gap: layout.$spacing-04;
|
|
149
|
-
margin-top: layout.$spacing-06;
|
|
278
|
+
.mb3 {
|
|
279
|
+
margin-bottom: 1rem;
|
|
150
280
|
}
|
|
151
281
|
|
|
152
|
-
.
|
|
153
|
-
|
|
154
|
-
justify-content: flex-end;
|
|
155
|
-
align-items: center;
|
|
156
|
-
gap: layout.$spacing-05;
|
|
157
|
-
margin-top: layout.$spacing-04;
|
|
282
|
+
.mr2 {
|
|
283
|
+
margin-right: 0.5rem;
|
|
158
284
|
}
|
|
159
285
|
|
|
160
|
-
.
|
|
161
|
-
|
|
162
|
-
|
|
286
|
+
.mx2 {
|
|
287
|
+
margin-left: 0.5rem;
|
|
288
|
+
margin-right: 0.5rem;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.wAuto {
|
|
292
|
+
width: auto;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.minW160 {
|
|
296
|
+
min-width: 160px;
|
|
163
297
|
}
|