@openmrs/esm-patient-vitals-app 9.2.3-pre.7164 → 9.2.3-pre.7171
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/.turbo/turbo-build.log +4 -4
- package/dist/3368.js +1 -1
- package/dist/3368.js.map +1 -1
- package/dist/4716.js +1 -1
- package/dist/4716.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-vitals-app.js.buildmanifest.json +9 -9
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/biometrics/biometrics-base.component.tsx +9 -3
- package/src/biometrics/biometrics-chart.component.tsx +52 -46
- package/src/biometrics/biometrics-chart.scss +3 -45
- package/src/biometrics/biometrics-overview.test.tsx +16 -0
- package/src/biometrics/paginated-biometrics.component.tsx +10 -11
- package/src/vitals/vitals-chart.component.tsx +67 -65
- package/src/vitals/vitals-chart.scss +3 -45
- package/src/vitals/vitals-overview.test.tsx +16 -0
|
@@ -23,47 +23,17 @@
|
|
|
23
23
|
padding-right: layout.$spacing-05;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.vitalsChartArea {
|
|
27
|
-
flex-grow: 4;
|
|
28
|
-
padding: 0 layout.$spacing-05 layout.$spacing-09;
|
|
29
|
-
|
|
30
|
-
:global(.cds--cc--layout-row) {
|
|
31
|
-
height: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
:global(.layout-child) {
|
|
35
|
-
margin-top: layout.$spacing-03;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
26
|
.vitalsSignLabel {
|
|
40
27
|
@extend .label01;
|
|
41
28
|
margin-bottom: layout.$spacing-05;
|
|
42
29
|
display: inline-block;
|
|
43
30
|
}
|
|
44
31
|
|
|
45
|
-
.verticalTabs {
|
|
46
|
-
margin: layout.$spacing-05 0;
|
|
47
|
-
scroll-behavior: smooth;
|
|
48
|
-
|
|
49
|
-
> ul {
|
|
50
|
-
flex-direction: column !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {
|
|
54
|
-
margin-left: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-link) {
|
|
58
|
-
border-bottom: 0 !important;
|
|
59
|
-
border-left: layout.$spacing-01 solid $color-gray-30;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
32
|
.tab {
|
|
64
33
|
outline: 0;
|
|
65
34
|
outline-offset: 0;
|
|
66
|
-
min-height: layout.$spacing-07;
|
|
35
|
+
min-height: layout.$spacing-07 !important;
|
|
36
|
+
block-size: layout.$spacing-05 !important;
|
|
67
37
|
|
|
68
38
|
&:active,
|
|
69
39
|
&:focus {
|
|
@@ -71,7 +41,7 @@
|
|
|
71
41
|
}
|
|
72
42
|
|
|
73
43
|
&[aria-selected='true'] {
|
|
74
|
-
|
|
44
|
+
box-shadow: inset 4px 0 0 0 var(--brand-03) !important;
|
|
75
45
|
border-bottom: none;
|
|
76
46
|
font-weight: 600;
|
|
77
47
|
margin-left: 0 !important;
|
|
@@ -83,15 +53,3 @@
|
|
|
83
53
|
margin-left: 0 !important;
|
|
84
54
|
}
|
|
85
55
|
}
|
|
86
|
-
|
|
87
|
-
.tablist {
|
|
88
|
-
:global(.cds--tab--list) {
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
max-height: fit-content;
|
|
91
|
-
overflow-x: visible;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
> button :global(.cds--tabs .cds--tabs__nav-link) {
|
|
95
|
-
border-bottom: none;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -25,6 +25,22 @@ global.ResizeObserver = jest.fn().mockImplementation(() => ({
|
|
|
25
25
|
disconnect: jest.fn(),
|
|
26
26
|
}));
|
|
27
27
|
|
|
28
|
+
jest.mock('@carbon/charts-react', () => ({
|
|
29
|
+
LineChart: () => <div data-testid="line-chart">Line Chart</div>,
|
|
30
|
+
ScaleTypes: {
|
|
31
|
+
TIME: 'time',
|
|
32
|
+
LINEAR: 'linear',
|
|
33
|
+
LOG: 'log',
|
|
34
|
+
LABELS: 'labels',
|
|
35
|
+
LABELS_RATIO: 'labels-ratio',
|
|
36
|
+
},
|
|
37
|
+
TickRotations: {
|
|
38
|
+
ALWAYS: 'always',
|
|
39
|
+
AUTO: 'auto',
|
|
40
|
+
NEVER: 'never',
|
|
41
|
+
},
|
|
42
|
+
}));
|
|
43
|
+
|
|
28
44
|
jest.mock('@openmrs/esm-patient-common-lib', () => {
|
|
29
45
|
const originalModule = jest.requireActual('@openmrs/esm-patient-common-lib');
|
|
30
46
|
|