@openmrs/esm-stock-management-app 1.0.1-pre.341 → 1.0.1-pre.345
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/220.js +1 -1
- package/dist/220.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +6 -6
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/core/components/table/table.scss +1 -1
- package/src/root.component.tsx +0 -5
- package/src/root.scss +23 -89
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.scss +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.scss +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.scss +1 -1
- package/src/stock-operations/add-stock-operation/add-stock-operation.scss +21 -24
- package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +11 -11
- package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss +1 -1
- package/src/stock-sources/add-stock-sources/add-stock-sources.scss +1 -1
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.scss +4 -1
@@ -112,10 +112,10 @@
|
|
112
112
|
"initial": true,
|
113
113
|
"entry": true,
|
114
114
|
"recorded": false,
|
115
|
-
"size":
|
115
|
+
"size": 4354490,
|
116
116
|
"sizes": {
|
117
117
|
"consume-shared": 252,
|
118
|
-
"javascript":
|
118
|
+
"javascript": 4332542,
|
119
119
|
"share-init": 252,
|
120
120
|
"runtime": 21444
|
121
121
|
},
|
@@ -132,7 +132,7 @@
|
|
132
132
|
"auxiliaryFiles": [
|
133
133
|
"main.js.map"
|
134
134
|
],
|
135
|
-
"hash": "
|
135
|
+
"hash": "7aee2e2d1996d07d",
|
136
136
|
"childrenByOrder": {}
|
137
137
|
},
|
138
138
|
{
|
@@ -140,9 +140,9 @@
|
|
140
140
|
"initial": false,
|
141
141
|
"entry": false,
|
142
142
|
"recorded": false,
|
143
|
-
"size":
|
143
|
+
"size": 917693,
|
144
144
|
"sizes": {
|
145
|
-
"javascript":
|
145
|
+
"javascript": 917483,
|
146
146
|
"consume-shared": 210
|
147
147
|
},
|
148
148
|
"names": [],
|
@@ -156,7 +156,7 @@
|
|
156
156
|
"auxiliaryFiles": [
|
157
157
|
"220.js.map"
|
158
158
|
],
|
159
|
-
"hash": "
|
159
|
+
"hash": "3913a34587c13a55",
|
160
160
|
"childrenByOrder": {}
|
161
161
|
},
|
162
162
|
{
|
package/dist/routes.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.345"}
|
package/package.json
CHANGED
package/src/root.component.tsx
CHANGED
package/src/root.scss
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
@use '@carbon/styles/scss/spacing';
|
2
2
|
@use '@carbon/styles/scss/type';
|
3
|
-
@import "~carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/styles";
|
4
|
-
@import "~carbon-components/src/globals/scss/vendor/@carbon/layout/scss/generated/spacing";
|
5
|
-
@import "~carbon-components/src/globals/scss/vendor/@carbon/layout/scss/generated/layout";
|
6
|
-
@import "carbon-components/scss/globals/scss/typography.scss";
|
7
3
|
@import "~@openmrs/esm-styleguide/src/vars";
|
8
4
|
|
9
5
|
$ui-01: #f4f4f4;
|
@@ -23,55 +19,51 @@ $brand-teal-01: #3197D9;
|
|
23
19
|
$button-primary: #0078A6;
|
24
20
|
|
25
21
|
.productiveHeading01 {
|
26
|
-
@include
|
22
|
+
@include type.type-style("heading-01");
|
27
23
|
}
|
28
24
|
|
29
25
|
.productiveHeading02 {
|
30
|
-
@include
|
26
|
+
@include type.type-style("heading-02");
|
31
27
|
}
|
32
28
|
|
33
29
|
.productiveHeading03 {
|
34
|
-
@include
|
30
|
+
@include type.type-style("productive-heading-03");
|
35
31
|
}
|
36
32
|
|
37
33
|
.productiveHeading04 {
|
38
|
-
@include
|
34
|
+
@include type.type-style("productive-heading-04");
|
39
35
|
}
|
40
36
|
|
41
37
|
.productiveHeading05 {
|
42
|
-
@include
|
38
|
+
@include type.type-style("productive-heading-05");
|
43
39
|
}
|
44
40
|
|
45
41
|
.productiveHeading06 {
|
46
|
-
@include
|
42
|
+
@include type.type-style("productive-heading-06");
|
47
43
|
}
|
48
44
|
|
49
45
|
.bodyShort01 {
|
50
|
-
@include
|
46
|
+
@include type.type-style("body-short-01");
|
51
47
|
}
|
52
48
|
|
53
49
|
.helperText01 {
|
54
|
-
@include
|
50
|
+
@include type.type-style("helper-text-01");
|
55
51
|
}
|
56
52
|
|
57
53
|
.bodyShort02 {
|
58
|
-
@include
|
54
|
+
@include type.type-style("body-short-02");
|
59
55
|
}
|
60
56
|
|
61
57
|
.bodyLong01 {
|
62
|
-
@include
|
58
|
+
@include type.type-style("body-long-01");
|
63
59
|
}
|
64
60
|
|
65
61
|
.bodyLong02 {
|
66
|
-
@include
|
62
|
+
@include type.type-style("body-long-02");
|
67
63
|
}
|
68
64
|
|
69
65
|
.label01 {
|
70
|
-
@include
|
71
|
-
}
|
72
|
-
|
73
|
-
.text01 {
|
74
|
-
color: $text-01;
|
66
|
+
@include type.type-style("label-01");
|
75
67
|
}
|
76
68
|
|
77
69
|
.text02 {
|
@@ -82,78 +74,10 @@ aside {
|
|
82
74
|
background-color: $ui-02 !important;
|
83
75
|
}
|
84
76
|
|
85
|
-
// Login Overrides
|
86
|
-
|
87
|
-
div[class*='-esm-login__styles__center'] > img {
|
88
|
-
width: 140px; // design has 120px
|
89
|
-
}
|
90
|
-
|
91
|
-
:global(.tab-12rem) > button {
|
92
|
-
width: 12rem !important;
|
93
|
-
}
|
94
|
-
|
95
|
-
:global(.tab-14rem) > button {
|
96
|
-
width: 14rem !important;
|
97
|
-
}
|
98
|
-
|
99
|
-
:global(.tab-16rem) > button {
|
100
|
-
width: 16rem !important;
|
101
|
-
}
|
102
|
-
|
103
|
-
:global(.bx--overflow-menu) > div {
|
104
|
-
width: 15rem !important;
|
105
|
-
}
|
106
|
-
|
107
|
-
nav :global(.bx--accordion__title) {
|
108
|
-
color: #525252;
|
109
|
-
font-weight: 600 !important;
|
110
|
-
}
|
111
|
-
|
112
|
-
nav :global(.bx--accordion__content) {
|
113
|
-
padding-bottom: 0 !important;
|
114
|
-
padding-top: 0 !important;
|
115
|
-
}
|
116
|
-
|
117
|
-
nav :global(.bx--accordion__content) > a {
|
118
|
-
background-color: #cecece !important;
|
119
|
-
color: #161616 !important;
|
120
|
-
border-left-color: var(--brand-01) !important;
|
121
|
-
}
|
122
|
-
|
123
77
|
.container {
|
124
78
|
padding: spacing.$spacing-07;
|
125
79
|
}
|
126
80
|
|
127
|
-
.welcome {
|
128
|
-
@include type.type-style('heading-04');
|
129
|
-
margin: spacing.$spacing-05 0;
|
130
|
-
}
|
131
|
-
|
132
|
-
.explainer {
|
133
|
-
margin-bottom: 2rem;
|
134
|
-
}
|
135
|
-
|
136
|
-
.noMargin {
|
137
|
-
margin: 0 !important;
|
138
|
-
}
|
139
|
-
|
140
|
-
.noPadding {
|
141
|
-
margin: 0 !important;
|
142
|
-
}
|
143
|
-
|
144
|
-
.noSpacing {
|
145
|
-
margin: 0 !important;
|
146
|
-
padding: 0 !important;
|
147
|
-
}
|
148
|
-
|
149
|
-
.section {
|
150
|
-
margin: spacing.$spacing-03;
|
151
|
-
}
|
152
|
-
|
153
|
-
:global(.cds--table-sort__description) {
|
154
|
-
display: none;
|
155
|
-
}
|
156
|
-
|
157
81
|
.formContainer {
|
158
82
|
height: calc(100vh - 100px) !important;
|
159
83
|
overflow: scroll;
|
@@ -170,5 +94,15 @@ nav :global(.bx--accordion__content) > a {
|
|
170
94
|
:global(.cds--form-item) {
|
171
95
|
flex: none !important;
|
172
96
|
}
|
173
|
-
}
|
174
97
|
|
98
|
+
:global(.cds--label) {
|
99
|
+
color: black;
|
100
|
+
display: inline-block;
|
101
|
+
font-size: var(--cds-label-01-font-size);
|
102
|
+
font-weight: bold;
|
103
|
+
letter-spacing: var(--cds-label-01-letter-spacing, .32px);
|
104
|
+
line-height: 1rem;
|
105
|
+
margin-bottom: 0.5rem;
|
106
|
+
vertical-align: baseline;
|
107
|
+
}
|
108
|
+
}
|
@@ -1,44 +1,41 @@
|
|
1
1
|
@use '@carbon/styles/scss/spacing';
|
2
2
|
@use '@carbon/styles/scss/type';
|
3
3
|
@import '~@openmrs/esm-styleguide/src/vars';
|
4
|
-
|
5
4
|
.sectionTitle {
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
@include type.type-style('heading-compact-02');
|
6
|
+
color: $text-02;
|
7
|
+
margin-bottom: spacing.$spacing-04;
|
9
8
|
}
|
10
9
|
|
11
10
|
.modalBody {
|
12
|
-
|
11
|
+
padding-bottom: spacing.$spacing-05;
|
13
12
|
}
|
14
13
|
|
15
14
|
.actionsContainer {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
|
21
|
-
.statusDescriptions {
|
22
|
-
display: "flex";
|
23
|
-
flex-direction: "row";
|
15
|
+
display: flex;
|
16
|
+
justify-content: space-between;
|
17
|
+
margin: 5px;
|
24
18
|
}
|
25
19
|
|
26
20
|
.statusContainer {
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
display: flex;
|
22
|
+
margin-top: 4px;
|
23
|
+
gap: 1rem;
|
30
24
|
}
|
31
25
|
|
32
|
-
.text {
|
33
|
-
font-size: "8px";
|
34
|
-
}
|
35
26
|
.textHeading {
|
36
|
-
|
37
|
-
|
27
|
+
font-weight: bold;
|
28
|
+
}
|
29
|
+
|
30
|
+
.statusDescriptions {
|
31
|
+
margin-top: 4px;
|
32
|
+
.text {
|
33
|
+
margin-right: 4px;
|
34
|
+
}
|
38
35
|
}
|
39
36
|
|
40
37
|
.actionButtons {
|
41
|
-
|
42
|
-
|
43
|
-
|
38
|
+
margin: 10px;
|
39
|
+
display: flex;
|
40
|
+
flex-direction: row;
|
44
41
|
}
|
@@ -182,7 +182,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
182
182
|
id="operationNoLbl"
|
183
183
|
value={model?.operationNumber}
|
184
184
|
readOnly={true}
|
185
|
-
labelText={"Operation Number
|
185
|
+
labelText={"Operation Number"}
|
186
186
|
/>
|
187
187
|
)}
|
188
188
|
|
@@ -193,8 +193,8 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
193
193
|
control={control}
|
194
194
|
title={
|
195
195
|
operation?.hasDestination
|
196
|
-
? t("from
|
197
|
-
: t("location:", "Location
|
196
|
+
? t("from", "From")
|
197
|
+
: t("location:", "Location")
|
198
198
|
}
|
199
199
|
placeholder={
|
200
200
|
operation.hasDestination
|
@@ -212,7 +212,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
212
212
|
id="sourceUuidLbl"
|
213
213
|
value={model?.sourceName ?? ""}
|
214
214
|
readOnly={true}
|
215
|
-
labelText={operation?.hasDestination ? "From
|
215
|
+
labelText={operation?.hasDestination ? "From" : "From"}
|
216
216
|
/>
|
217
217
|
)}
|
218
218
|
{canEdit && !lockDestination && operation?.hasDestination && (
|
@@ -220,7 +220,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
220
220
|
controllerName="destinationUuid"
|
221
221
|
name="destinationUuid"
|
222
222
|
control={control}
|
223
|
-
title={operation?.hasSource ? "To
|
223
|
+
title={operation?.hasSource ? "To" : "Location"}
|
224
224
|
placeholder={
|
225
225
|
operation?.hasSource
|
226
226
|
? t("chooseADestination", "Choose a destination")
|
@@ -239,7 +239,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
239
239
|
id="destinationUuidLbl"
|
240
240
|
value={model?.destinationName ?? ""}
|
241
241
|
readOnly={true}
|
242
|
-
labelText={operation?.hasSource ? "To
|
242
|
+
labelText={operation?.hasSource ? "To" : "To"}
|
243
243
|
/>
|
244
244
|
)}
|
245
245
|
|
@@ -248,7 +248,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
248
248
|
controllerName="responsiblePersonUuid"
|
249
249
|
name="responsiblePersonUuid"
|
250
250
|
control={control}
|
251
|
-
title={t("responsiblePerson:", "Responsible Person
|
251
|
+
title={t("responsiblePerson:", "Responsible Person")}
|
252
252
|
placeholder={t("filter", "Filter ...")}
|
253
253
|
invalid={!!errors.responsiblePersonUuid}
|
254
254
|
invalidText={
|
@@ -272,8 +272,8 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
272
272
|
maxLength={255}
|
273
273
|
size={"md"}
|
274
274
|
value={`${model?.responsiblePersonOther ?? ""}`}
|
275
|
-
labelText={t("responsiblePerson", "Responsible Person
|
276
|
-
placeholder={t("pleaseSpecify", "Please Specify
|
275
|
+
labelText={t("responsiblePerson", "Responsible Person")}
|
276
|
+
placeholder={t("pleaseSpecify", "Please Specify")}
|
277
277
|
invalid={!!errors.responsiblePersonOther}
|
278
278
|
invalidText={
|
279
279
|
errors.responsiblePersonOther &&
|
@@ -302,7 +302,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
302
302
|
name="reasonUuid"
|
303
303
|
control={control}
|
304
304
|
placeholder={t("chooseAReason", "Choose a reason")}
|
305
|
-
title={t("reason", "Reason
|
305
|
+
title={t("reason", "Reason")}
|
306
306
|
invalid={!!errors.reasonUuid}
|
307
307
|
invalidText={errors.reasonUuid && errors?.reasonUuid?.message}
|
308
308
|
onReasonChange={(reason) => {
|
@@ -327,7 +327,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
327
327
|
controllerName="remarks"
|
328
328
|
maxLength={255}
|
329
329
|
value={`${model?.remarks ?? ""}`}
|
330
|
-
labelText={t("remarks:", "Remarks
|
330
|
+
labelText={t("remarks:", "Remarks")}
|
331
331
|
invalid={!!errors.remarks}
|
332
332
|
invalidText={errors.remarks && errors?.remarks?.message}
|
333
333
|
/>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
@use '@carbon/styles/scss/type';
|
3
3
|
@import '~@openmrs/esm-styleguide/src/vars';
|
4
4
|
|
5
|
-
section {
|
5
|
+
.section {
|
6
6
|
margin: spacing.$spacing-03;
|
7
7
|
}
|
8
8
|
|
@@ -26,12 +26,15 @@ section {
|
|
26
26
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust the values as needed */
|
27
27
|
gap: 16px; /* Adjust the gap between checkboxes */
|
28
28
|
}
|
29
|
+
|
29
30
|
.hr {
|
30
31
|
border: 1px solid #000;
|
31
32
|
}
|
33
|
+
|
32
34
|
.toggle {
|
33
35
|
margin: 5px;
|
34
36
|
}
|
37
|
+
|
35
38
|
.checkbox{
|
36
39
|
width: 100%;
|
37
40
|
}
|