@openmrs/esm-stock-management-app 1.0.1-pre.559 → 1.0.1-pre.575
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/769.js +1 -0
- package/dist/769.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +28 -28
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/core/components/card/metrics-card.scss +7 -7
- package/src/core/components/overlay/overlay.scss +6 -6
- package/src/core/components/privilages-component/privilages.scss +6 -5
- package/src/core/components/side-nav/side-nav.scss +12 -12
- package/src/core/components/table/table.scss +16 -16
- package/src/core/components/tabs/vertical-tabs.scss +15 -15
- package/src/dashboard/home-dashboard.scss +1 -1
- package/src/stock-home/stock-home-detail-card.scss +7 -7
- package/src/stock-home/stock-home.scss +7 -7
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +2 -4
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.scss +33 -4
- package/src/stock-items/stock-items-table.scss +8 -9
- package/src/stock-management-header/stock-management-header.scss +5 -5
- package/src/stock-operations/add-stock-operation/add-stock-operation.scss +5 -5
- package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +2 -4
- package/src/stock-operations/add-stock-operation/base-operation-details.scss +30 -0
- package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss +5 -5
- package/src/stock-operations/stock-operations-table.scss +8 -9
- package/src/stock-reports/report-list/stock-reports.scss +2 -1
- package/src/stock-settings/stock-settings.component.tsx +1 -1
- package/src/stock-settings/stock-settings.scss +7 -4
- package/src/stock-sources/add-stock-sources/add-stock-sources.scss +6 -6
- package/src/stock-sources/delete-stock-modal.component.tsx +3 -3
- package/src/stock-sources/delete-stock-modal.scss +11 -0
- package/src/stock-sources/stock-sources-filter/stock-sources-filter.scss +3 -1
- package/src/stock-sources/stock-sources.scss +9 -9
- package/src/stock-user-role-scopes/delete-stock-user-scope-modal.component.tsx +1 -1
- package/src/stock-user-role-scopes/delete-stock-user-scope-modal.scss +11 -0
- package/src/stock-user-role-scopes/stock-user-role-scopes.scss +8 -7
- package/dist/281.js +0 -1
- package/dist/281.js.map +0 -1
- package/src/root.scss +0 -108
@@ -1,13 +1,13 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
3
|
@use '@carbon/colors';
|
4
|
-
@
|
4
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
5
5
|
.cardContainer {
|
6
6
|
background-color: colors.$white;
|
7
7
|
display: flex;
|
8
8
|
justify-content: space-between;
|
9
|
-
margin: 0
|
9
|
+
margin: 0 layout.$spacing-05 0 layout.$spacing-05;
|
10
10
|
flex-flow: row wrap;
|
11
|
-
column-gap:
|
12
|
-
row-gap:
|
13
|
-
}
|
11
|
+
column-gap: layout.$spacing-05;
|
12
|
+
row-gap: layout.$spacing-05;
|
13
|
+
}
|
@@ -20,7 +20,7 @@ import StockItemCategorySelector from "../stock-item-category-selector/stock-ite
|
|
20
20
|
import StockItemUnitsEdit from "../stock-item-units-edit/stock-item-units-edit.component";
|
21
21
|
import { SaveStockItem } from "../../types";
|
22
22
|
import ConceptsSelector from "../concepts-selector/concepts-selector.component";
|
23
|
-
import
|
23
|
+
import styles from "../../add-stock-item/add-stock-item.scss";
|
24
24
|
import { closeOverlay } from "../../../core/components/overlay/hook";
|
25
25
|
import { expirationOptions, radioOptions } from "./stock-item-details.resource";
|
26
26
|
import { restBaseUrl } from "@openmrs/esm-framework";
|
@@ -70,9 +70,7 @@ const StockItemDetails = forwardRef<never, StockItemDetailsProps>(
|
|
70
70
|
}, [model.hasExpiration, model.isDrug]);
|
71
71
|
|
72
72
|
return (
|
73
|
-
<form
|
74
|
-
className={`${rootStyles.formContainer} ${rootStyles.verticalForm}`}
|
75
|
-
>
|
73
|
+
<form className={`${styles.formContainer} ${styles.verticalForm}`}>
|
76
74
|
{!isEditing && (
|
77
75
|
<FormGroup
|
78
76
|
className="clear-margin-bottom"
|
@@ -1,9 +1,9 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
4
4
|
|
5
5
|
.section {
|
6
|
-
margin:
|
6
|
+
margin: layout.$spacing-03;
|
7
7
|
}
|
8
8
|
|
9
9
|
.form {
|
@@ -11,3 +11,32 @@
|
|
11
11
|
gap: 1.5rem;
|
12
12
|
padding-top: 1rem;
|
13
13
|
}
|
14
|
+
|
15
|
+
.formContainer {
|
16
|
+
height: calc(100vh - 100px) !important;
|
17
|
+
overflow: scroll;
|
18
|
+
padding: 0 1rem;
|
19
|
+
}
|
20
|
+
|
21
|
+
.verticalForm {
|
22
|
+
display: flex;
|
23
|
+
grid-row-gap: 2em;
|
24
|
+
padding-top: layout.$spacing-05;
|
25
|
+
align-content: space-between;
|
26
|
+
flex-direction: column;
|
27
|
+
|
28
|
+
:global(.cds--form-item) {
|
29
|
+
flex: none !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
:global(.cds--label) {
|
33
|
+
color: black;
|
34
|
+
display: inline-block;
|
35
|
+
font-size: var(--cds-label-01-font-size);
|
36
|
+
font-weight: bold;
|
37
|
+
letter-spacing: var(--cds-label-01-letter-spacing, .32px);
|
38
|
+
line-height: layout.$spacing-05;
|
39
|
+
margin-bottom: layout.$spacing-03;
|
40
|
+
vertical-align: baseline;
|
41
|
+
}
|
42
|
+
}
|
@@ -1,18 +1,17 @@
|
|
1
|
-
@use '@carbon/
|
1
|
+
@use '@carbon/layout';
|
2
2
|
@use '@carbon/styles/scss/type';
|
3
|
-
@
|
4
|
-
@import '../root.scss';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
5
4
|
|
6
5
|
.headerBtnContainer {
|
7
6
|
background-color: $ui-background;
|
8
|
-
padding:
|
7
|
+
padding: layout.$spacing-05;
|
9
8
|
text-align: right;
|
10
9
|
}
|
11
10
|
|
12
11
|
.tileContainer {
|
13
12
|
background-color: $ui-02;
|
14
13
|
border-top: 1px solid $ui-03;
|
15
|
-
padding:
|
14
|
+
padding: layout.$spacing-11 0;
|
16
15
|
}
|
17
16
|
|
18
17
|
.tile {
|
@@ -78,12 +77,12 @@
|
|
78
77
|
}
|
79
78
|
|
80
79
|
.dateAlign {
|
81
|
-
padding-top:
|
80
|
+
padding-top: layout.$spacing-03;
|
82
81
|
height: 100%;
|
83
82
|
}
|
84
83
|
|
85
84
|
.filtersAlign {
|
86
|
-
padding-bottom:
|
85
|
+
padding-bottom: layout.$spacing-03;
|
87
86
|
|
88
87
|
:global(.cds--list-box__menu) {
|
89
88
|
min-width: 15rem;
|
@@ -95,5 +94,5 @@
|
|
95
94
|
display: flex;
|
96
95
|
align-items: center;
|
97
96
|
justify-content: space-between;
|
98
|
-
margin-bottom:
|
99
|
-
}
|
97
|
+
margin-bottom: layout.$spacing-05;
|
98
|
+
}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@use '@carbon/
|
4
|
-
@
|
1
|
+
@use '@carbon/colors';
|
2
|
+
@use '@carbon/layout';
|
3
|
+
@use '@carbon/type';
|
4
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
5
5
|
|
6
6
|
.header {
|
7
7
|
@include type.type-style('body-compact-02');
|
8
8
|
color: colors.$gray-70;
|
9
|
-
height:
|
9
|
+
height: layout.$spacing-12;
|
10
10
|
background-color: $ui-02;
|
11
11
|
display: flex;
|
12
12
|
padding-left: 8px;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
4
4
|
.sectionTitle {
|
5
5
|
@include type.type-style('heading-compact-02');
|
6
6
|
color: $text-02;
|
7
|
-
margin-bottom:
|
7
|
+
margin-bottom: layout.$spacing-04;
|
8
8
|
}
|
9
9
|
|
10
10
|
.modalBody {
|
11
|
-
padding-bottom:
|
11
|
+
padding-bottom: layout.$spacing-05;
|
12
12
|
}
|
13
13
|
|
14
14
|
.actionsContainer {
|
@@ -35,7 +35,7 @@ import { useStockOperationPages } from "../stock-operations-table.resource";
|
|
35
35
|
import { createBaseOperationPayload } from "./add-stock-utils";
|
36
36
|
import { showSnackbar, useSession } from "@openmrs/esm-framework";
|
37
37
|
|
38
|
-
import
|
38
|
+
import styles from "../add-stock-operation/base-operation-details.scss";
|
39
39
|
|
40
40
|
interface BaseOperationDetailsProps {
|
41
41
|
isEditing?: boolean;
|
@@ -116,9 +116,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
|
|
116
116
|
};
|
117
117
|
return (
|
118
118
|
<div style={{ margin: "10px" }}>
|
119
|
-
<form
|
120
|
-
className={`${rootStyles.formContainer} ${rootStyles.verticalForm}`}
|
121
|
-
>
|
119
|
+
<form className={`${styles.formContainer} ${styles.verticalForm}`}>
|
122
120
|
{canEdit && (
|
123
121
|
<Controller
|
124
122
|
control={control}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
4
|
+
|
5
|
+
.verticalForm {
|
6
|
+
display: flex;
|
7
|
+
grid-row-gap: 2em;
|
8
|
+
padding-top: layout.$spacing-05;
|
9
|
+
align-content: space-between;
|
10
|
+
flex-direction: column;
|
11
|
+
|
12
|
+
:global(.cds--form-item) {
|
13
|
+
flex: none !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
:global(.cds--label) {
|
17
|
+
color: black;
|
18
|
+
display: inline-block;
|
19
|
+
font-size: var(--cds-label-01-font-size);
|
20
|
+
font-weight: bold;
|
21
|
+
letter-spacing: var(--cds-label-01-letter-spacing, .32px);
|
22
|
+
line-height: layout.$spacing-05;
|
23
|
+
margin-bottom: layout.$spacing-03;
|
24
|
+
vertical-align: baseline;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.formContainer {
|
29
|
+
margin: layout.$spacing-05;
|
30
|
+
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
3
|
|
4
4
|
.section {
|
5
|
-
margin:
|
5
|
+
margin: layout.$spacing-03;
|
6
6
|
}
|
7
7
|
|
8
8
|
.sectionTitle {
|
9
|
-
margin-bottom:
|
9
|
+
margin-bottom: layout.$spacing-04;
|
10
10
|
}
|
11
11
|
|
12
12
|
.modalBody {
|
13
|
-
padding-bottom:
|
13
|
+
padding-bottom: layout.$spacing-05;
|
14
14
|
}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@
|
4
|
-
@import '../root.scss';
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
5
4
|
|
6
5
|
.tileContainer {
|
7
6
|
background-color: $ui-02;
|
8
7
|
border-top: 1px solid $ui-03;
|
9
|
-
padding:
|
8
|
+
padding: layout.$spacing-11 0;
|
10
9
|
}
|
11
10
|
|
12
11
|
.tile {
|
@@ -23,7 +22,7 @@
|
|
23
22
|
.content {
|
24
23
|
@include type.type-style('heading-compact-02');
|
25
24
|
color: $text-02;
|
26
|
-
margin-bottom:
|
25
|
+
margin-bottom: layout.$spacing-03;
|
27
26
|
}
|
28
27
|
|
29
28
|
.helper {
|
@@ -42,7 +41,7 @@
|
|
42
41
|
}
|
43
42
|
|
44
43
|
.dateAlign {
|
45
|
-
padding-top:
|
44
|
+
padding-top: layout.$spacing-03;
|
46
45
|
height: 100%;
|
47
46
|
}
|
48
47
|
|
@@ -50,12 +49,12 @@
|
|
50
49
|
display: flex;
|
51
50
|
align-items: center;
|
52
51
|
justify-content: space-between;
|
53
|
-
margin-bottom:
|
52
|
+
margin-bottom: layout.$spacing-05;
|
54
53
|
}
|
55
54
|
|
56
55
|
.rowLoadingContainer {
|
57
56
|
text-align: center;
|
58
|
-
padding:
|
57
|
+
padding: layout.$spacing-11 2rem;
|
59
58
|
margin: auto;
|
60
59
|
width: 20%;
|
61
60
|
}
|
@@ -10,7 +10,7 @@ function StockSettings() {
|
|
10
10
|
|
11
11
|
return (
|
12
12
|
<div className={styles.StockSettings}>
|
13
|
-
<div className={styles.
|
13
|
+
<div className={styles.tableHeader}>
|
14
14
|
{t(
|
15
15
|
"comingSoonUnderDev",
|
16
16
|
"Exciting updates are on the way! In the meantime, use the link below to access Admin UI settings."
|
@@ -1,6 +1,8 @@
|
|
1
1
|
@use '@carbon/colors';
|
2
2
|
@use '@carbon/layout';
|
3
|
-
@use
|
3
|
+
@use '@carbon/type';
|
4
|
+
@use '@openmrs/esm-styleguide/src/vars' as *;
|
5
|
+
|
4
6
|
|
5
7
|
.StockSettings {
|
6
8
|
display: flex;
|
@@ -18,6 +20,7 @@
|
|
18
20
|
}
|
19
21
|
}
|
20
22
|
|
21
|
-
.
|
22
|
-
@
|
23
|
-
|
23
|
+
.tableHeader {
|
24
|
+
@include type.type-style('heading-compact-01');
|
25
|
+
color: $text-02;
|
26
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@
|
1
|
+
@use '@carbon/layout';
|
2
|
+
@use '@carbon/type';
|
3
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
4
4
|
|
5
5
|
.section {
|
6
|
-
margin:
|
6
|
+
margin: layout.$spacing-03;
|
7
7
|
}
|
8
8
|
|
9
9
|
.sectionTitle {
|
10
10
|
@include type.type-style('heading-compact-02');
|
11
11
|
color: $text-02;
|
12
|
-
margin-bottom:
|
12
|
+
margin-bottom: layout.$spacing-04;
|
13
13
|
}
|
14
14
|
|
15
15
|
.modalBody {
|
16
|
-
padding-bottom:
|
16
|
+
padding-bottom: layout.$spacing-05;
|
17
17
|
}
|
18
18
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { useTranslation } from "react-i18next";
|
3
3
|
import { Button, ModalHeader, ModalBody, ModalFooter } from "@carbon/react";
|
4
|
-
import styles from "
|
4
|
+
import styles from "./delete-stock-modal.scss";
|
5
5
|
|
6
6
|
interface DeleteConfirmationProps {
|
7
7
|
uuid?: string;
|
@@ -20,11 +20,11 @@ const DeleteConfirmation: React.FC<DeleteConfirmationProps> = ({
|
|
20
20
|
|
21
21
|
return (
|
22
22
|
<>
|
23
|
-
<ModalHeader closeModal={close} className={styles.
|
23
|
+
<ModalHeader closeModal={close} className={styles.modalHeader}>
|
24
24
|
{t("deleteStock", "Delete Stock source")}?
|
25
25
|
</ModalHeader>
|
26
26
|
<ModalBody>
|
27
|
-
<p className={styles.
|
27
|
+
<p className={styles.bodyText}>
|
28
28
|
{t(
|
29
29
|
"deleteConfirmationText",
|
30
30
|
`Are you sure you want to delete this source? This action can't be undone.`,
|
@@ -1,10 +1,12 @@
|
|
1
|
+
@use '@carbon/layout';
|
2
|
+
|
1
3
|
.filterContainer {
|
2
4
|
:global(.cds--dropdown__wrapper--inline) {
|
3
5
|
gap: 0;
|
4
6
|
}
|
5
7
|
|
6
8
|
:global(.cds--list-box__menu-icon) {
|
7
|
-
height:
|
9
|
+
height: layout.$spacing-05;
|
8
10
|
}
|
9
11
|
|
10
12
|
:global(.cds--dropdown--inline) :global(.cds--list-box__field) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
@use '@carbon/styles/scss/colors';
|
2
|
-
@use '@carbon/
|
2
|
+
@use '@carbon/layout';
|
3
3
|
@use '@carbon/styles/scss/type';
|
4
4
|
@import '~@openmrs/esm-styleguide/src/vars';
|
5
5
|
|
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
.tableContainer {
|
66
66
|
background-color: $ui-01;
|
67
|
-
margin: 0
|
67
|
+
margin: 0 layout.$spacing-05;
|
68
68
|
padding: 0;
|
69
69
|
|
70
70
|
a {
|
@@ -80,8 +80,8 @@
|
|
80
80
|
}
|
81
81
|
|
82
82
|
.toolbarContent {
|
83
|
-
height:
|
84
|
-
margin-bottom:
|
83
|
+
height: layout.$spacing-07;
|
84
|
+
margin-bottom: layout.$spacing-02;
|
85
85
|
}
|
86
86
|
}
|
87
87
|
|
@@ -142,7 +142,7 @@
|
|
142
142
|
.tileContainer {
|
143
143
|
background-color: $ui-02;
|
144
144
|
border-top: 1px solid $ui-03;
|
145
|
-
padding:
|
145
|
+
padding: layout.$spacing-11 0;
|
146
146
|
}
|
147
147
|
|
148
148
|
.tile {
|
@@ -178,7 +178,7 @@
|
|
178
178
|
.tabletHeading {
|
179
179
|
text-align: left;
|
180
180
|
text-transform: capitalize;
|
181
|
-
margin-bottom:
|
181
|
+
margin-bottom: layout.$spacing-05;
|
182
182
|
|
183
183
|
h4:after {
|
184
184
|
content: '';
|
@@ -204,13 +204,13 @@
|
|
204
204
|
|
205
205
|
.headerBtnContainer {
|
206
206
|
background-color: $ui-background;
|
207
|
-
padding:
|
207
|
+
padding: layout.$spacing-05;
|
208
208
|
text-align: right;
|
209
209
|
}
|
210
210
|
|
211
211
|
.addPatientToListBtn {
|
212
|
-
margin-left:
|
213
|
-
height:
|
212
|
+
margin-left: layout.$spacing-05;
|
213
|
+
height: layout.$spacing-09;
|
214
214
|
}
|
215
215
|
|
216
216
|
.editIcon {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { useTranslation } from "react-i18next";
|
3
3
|
import { Button, ModalHeader, ModalBody, ModalFooter } from "@carbon/react";
|
4
|
-
import styles from "
|
4
|
+
import styles from "./delete-stock-user-scope-modal.scss";
|
5
5
|
|
6
6
|
interface DeleteConfirmationProps {
|
7
7
|
uuid?: string;
|
@@ -1,6 +1,7 @@
|
|
1
|
-
@use '@carbon/
|
2
|
-
@use '@carbon/
|
3
|
-
@
|
1
|
+
@use '@carbon/colors';
|
2
|
+
@use '@carbon/layout';
|
3
|
+
@use '@carbon/type';
|
4
|
+
@use '~@openmrs/esm-styleguide/src/vars' as *;
|
4
5
|
|
5
6
|
.content {
|
6
7
|
@include type.type-style('heading-compact-02');
|
@@ -17,7 +18,7 @@
|
|
17
18
|
@include type.type-style('body-compact-02');
|
18
19
|
color: $text-02;
|
19
20
|
width: 80%;
|
20
|
-
margin:
|
21
|
+
margin: layout.$spacing-06 auto;
|
21
22
|
overflow: hidden;
|
22
23
|
text-align: center;
|
23
24
|
|
@@ -33,12 +34,12 @@
|
|
33
34
|
}
|
34
35
|
|
35
36
|
&::before {
|
36
|
-
right:
|
37
|
+
right: layout.$spacing-03;
|
37
38
|
margin-left: -50%;
|
38
39
|
}
|
39
40
|
|
40
41
|
&::after {
|
41
|
-
left:
|
42
|
+
left: layout.$spacing-03;;
|
42
43
|
margin-right: -50%;
|
43
44
|
}
|
44
45
|
}
|
@@ -46,7 +47,7 @@
|
|
46
47
|
.tileContainer {
|
47
48
|
background-color: $ui-02;
|
48
49
|
border-top: 1px solid $ui-03;
|
49
|
-
padding:
|
50
|
+
padding: layout.$spacing-11 0;
|
50
51
|
}
|
51
52
|
|
52
53
|
.tile {
|