@openmrs/esm-stock-management-app 1.0.1-pre.559 → 1.0.1-pre.581

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/769.js +1 -0
  2. package/dist/769.js.map +1 -0
  3. package/dist/main.js +1 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/openmrs-esm-stock-management-app.js +1 -1
  6. package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +28 -28
  7. package/dist/openmrs-esm-stock-management-app.js.map +1 -1
  8. package/dist/routes.json +1 -1
  9. package/package.json +1 -1
  10. package/src/core/api/types/stockItem/StockItemInventory.ts +1 -0
  11. package/src/core/components/card/metrics-card.scss +7 -7
  12. package/src/core/components/overlay/overlay.scss +6 -6
  13. package/src/core/components/privilages-component/privilages.scss +6 -5
  14. package/src/core/components/side-nav/side-nav.scss +12 -12
  15. package/src/core/components/table/table.scss +16 -16
  16. package/src/core/components/tabs/vertical-tabs.scss +15 -15
  17. package/src/dashboard/home-dashboard.scss +1 -1
  18. package/src/stock-home/stock-home-detail-card.scss +7 -7
  19. package/src/stock-home/stock-home.scss +7 -7
  20. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +2 -4
  21. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.scss +33 -4
  22. package/src/stock-items/stock-items-table.scss +8 -9
  23. package/src/stock-management-header/stock-management-header.scss +5 -5
  24. package/src/stock-operations/add-stock-operation/add-stock-operation.component.tsx +6 -2
  25. package/src/stock-operations/add-stock-operation/add-stock-operation.scss +5 -5
  26. package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +2 -4
  27. package/src/stock-operations/add-stock-operation/base-operation-details.scss +30 -0
  28. package/src/stock-operations/add-stock-operation/stock-items-addition-row.component.tsx +149 -25
  29. package/src/stock-operations/add-stock-operation/stock-items-addition.component.tsx +2 -0
  30. package/src/stock-operations/batch-no-selector/batch-no-selector.component.tsx +8 -4
  31. package/src/stock-operations/stock-item-selector/stock-item-selector.component.tsx +1 -1
  32. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.scss +5 -5
  33. package/src/stock-operations/stock-operations-table.scss +8 -9
  34. package/src/stock-operations/stock-operations.resource.ts +1 -1
  35. package/src/stock-reports/report-list/stock-reports.scss +2 -1
  36. package/src/stock-settings/stock-settings.component.tsx +1 -1
  37. package/src/stock-settings/stock-settings.scss +7 -4
  38. package/src/stock-sources/add-stock-sources/add-stock-sources.scss +6 -6
  39. package/src/stock-sources/delete-stock-modal.component.tsx +3 -3
  40. package/src/stock-sources/delete-stock-modal.scss +11 -0
  41. package/src/stock-sources/stock-sources-filter/stock-sources-filter.scss +3 -1
  42. package/src/stock-sources/stock-sources.scss +9 -9
  43. package/src/stock-user-role-scopes/delete-stock-user-scope-modal.component.tsx +1 -1
  44. package/src/stock-user-role-scopes/delete-stock-user-scope-modal.scss +11 -0
  45. package/src/stock-user-role-scopes/stock-user-role-scopes.scss +8 -7
  46. package/dist/281.js +0 -1
  47. package/dist/281.js.map +0 -1
  48. package/src/root.scss +0 -108
@@ -1,6 +1,7 @@
1
1
  @use '@carbon/styles/scss/colors';
2
2
  @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
3
+ @use '@carbon/layout';
4
+ @use '~@openmrs/esm-styleguide/src/vars' as *;
4
5
 
5
6
  .content {
6
7
  @include type.type-style('heading-compact-02');
@@ -10,7 +10,7 @@ function StockSettings() {
10
10
 
11
11
  return (
12
12
  <div className={styles.StockSettings}>
13
- <div className={styles.title}>
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 "../root.scss" as *;
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
- .title {
22
- @extend .productiveHeading01;
23
- }
23
+ .tableHeader {
24
+ @include type.type-style('heading-compact-01');
25
+ color: $text-02;
26
+ }
@@ -1,18 +1,18 @@
1
- @use '@carbon/styles/scss/spacing';
2
- @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '~@openmrs/esm-styleguide/src/vars' as *;
4
4
 
5
5
  .section {
6
- margin: spacing.$spacing-03;
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: spacing.$spacing-04;
12
+ margin-bottom: layout.$spacing-04;
13
13
  }
14
14
 
15
15
  .modalBody {
16
- padding-bottom: spacing.$spacing-05;
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 "../root.scss";
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.productiveHeading03}>
23
+ <ModalHeader closeModal={close} className={styles.modalHeader}>
24
24
  {t("deleteStock", "Delete Stock source")}?
25
25
  </ModalHeader>
26
26
  <ModalBody>
27
- <p className={styles.bodyLong01}>
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.`,
@@ -0,0 +1,11 @@
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '~@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .bodyText {
6
+ @include type.type-style('body-long-01');
7
+ }
8
+
9
+ .modalHeader {
10
+ @include type.type-style('heading-compact-02');
11
+ }
@@ -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: 1rem;
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/styles/scss/spacing';
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 spacing.$spacing-05;
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: spacing.$spacing-07;
84
- margin-bottom: spacing.$spacing-02;
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: 5rem 0;
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: spacing.$spacing-05;
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: spacing.$spacing-05;
207
+ padding: layout.$spacing-05;
208
208
  text-align: right;
209
209
  }
210
210
 
211
211
  .addPatientToListBtn {
212
- margin-left: spacing.$spacing-05;
213
- height: spacing.$spacing-09;
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 "../root.scss";
4
+ import styles from "./delete-stock-user-scope-modal.scss";
5
5
 
6
6
  interface DeleteConfirmationProps {
7
7
  uuid?: string;
@@ -0,0 +1,11 @@
1
+ @use '@carbon/layout';
2
+ @use '@carbon/type';
3
+ @use '~@openmrs/esm-styleguide/src/vars' as *;
4
+
5
+ .bodyText {
6
+ @include type.type-style('body-long-01');
7
+ }
8
+
9
+ .modalHeader {
10
+ @include type.type-style('heading-compact-02');
11
+ }
@@ -1,6 +1,7 @@
1
- @use '@carbon/styles/scss/colors';
2
- @use '@carbon/styles/scss/type';
3
- @import '~@openmrs/esm-styleguide/src/vars';
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: 1.5rem auto;
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: 0.5rem;
37
+ right: layout.$spacing-03;
37
38
  margin-left: -50%;
38
39
  }
39
40
 
40
41
  &::after {
41
- left: 0.5rem;
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: 5rem 0;
50
+ padding: layout.$spacing-11 0;
50
51
  }
51
52
 
52
53
  .tile {