@medicus.ai/medicus-report-pdf-generator 1.0.355 → 1.0.356
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/assets/Mediclinic/css/Cairo-Regular.ttf +0 -0
- package/assets/Mediclinic/css/nasco_report.css +6 -0
- package/assets/Mediclinic/css/nasco_report_rtl.css +23 -1
- package/assets/Mediclinic/css/style.css +2 -2
- package/lib/template.js +1 -1
- package/lib/wellbeing_report_generator.js +1 -0
- package/package.json +1 -1
- package/templates/Mediclinic/rtl_no_pages.html +2 -1
|
Binary file
|
|
@@ -4116,6 +4116,7 @@ table tr {
|
|
|
4116
4116
|
line-height: 25px;
|
|
4117
4117
|
padding: 0 10px;
|
|
4118
4118
|
margin-left: 5px;
|
|
4119
|
+
font-family: 'Open Sans', sans-serif;
|
|
4119
4120
|
}
|
|
4120
4121
|
|
|
4121
4122
|
.biom-value {
|
|
@@ -5320,6 +5321,7 @@ div#report-summary {
|
|
|
5320
5321
|
margin-bottom: 0;
|
|
5321
5322
|
display: block;
|
|
5322
5323
|
clear: both;
|
|
5324
|
+
width: max-content;
|
|
5323
5325
|
}
|
|
5324
5326
|
|
|
5325
5327
|
.biom-last-data,
|
|
@@ -5765,6 +5767,9 @@ remove biomarker highlight
|
|
|
5765
5767
|
*/
|
|
5766
5768
|
span.bio-name-info {
|
|
5767
5769
|
display: block;
|
|
5770
|
+
direction: ltr;
|
|
5771
|
+
text-align: right;
|
|
5772
|
+
font-family: 'Open Sans', sans-serif;
|
|
5768
5773
|
}
|
|
5769
5774
|
|
|
5770
5775
|
img.biomarker-attachment-item {
|
|
@@ -5879,6 +5884,7 @@ div#patient-container {
|
|
|
5879
5884
|
float: left;
|
|
5880
5885
|
padding: 3px 10px 0;
|
|
5881
5886
|
box-sizing: border-box;
|
|
5887
|
+
|
|
5882
5888
|
}
|
|
5883
5889
|
|
|
5884
5890
|
.biom-last:not(.biom-last-data),
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
body {
|
|
2
2
|
font-family: 'Cairo' !important;
|
|
3
|
+
direction: rtl;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.panel-title-text{
|
|
7
|
+
direction: ltr;
|
|
8
|
+
text-align: right;
|
|
9
|
+
font-family: 'Open Sans', sans-serif;
|
|
10
|
+
}
|
|
11
|
+
.speedometer-value{
|
|
12
|
+
top: 55px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.biom-bar.big .labels td{
|
|
16
|
+
-webkit-transform: rotate(0deg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.biom-range:not(.biom-range-data) {
|
|
20
|
+
padding-left: 20px;
|
|
21
|
+
text-align: left;
|
|
22
|
+
}
|
|
23
|
+
.biom-bar .labels td{
|
|
24
|
+
padding-right: 2px;
|
|
3
25
|
}
|
|
4
26
|
|
|
5
27
|
.score-text{
|
|
@@ -597,7 +619,7 @@ ul li::before {
|
|
|
597
619
|
|
|
598
620
|
.footer {
|
|
599
621
|
float: left;
|
|
600
|
-
padding: 11px 20px
|
|
622
|
+
padding: 11px 20px 10px 37px;
|
|
601
623
|
border-top-left-radius: 0;
|
|
602
624
|
border-top-right-radius: 16px;
|
|
603
625
|
direction: rtl;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
font-family: 'Cairo';
|
|
19
19
|
font-style: normal;
|
|
20
20
|
font-weight: 400;
|
|
21
|
-
src: url('
|
|
22
|
-
url('
|
|
21
|
+
src: url('Cairo-Regular.ttf') format('truetype'),
|
|
22
|
+
url('Cairo-Regular.ttf') format('truetype');
|
|
23
23
|
unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE80-FEFC;
|
|
24
24
|
}
|
package/lib/template.js
CHANGED
|
@@ -1129,7 +1129,7 @@ function renderBiomarkerV3(biomarker, nestingLevel, isChildBiomarker, isCompactV
|
|
|
1129
1129
|
<div class="biom-title name" style="direction: ltr;${biomarkerNameAlign}${indentationStyle}">${biomarkerName}</div>
|
|
1130
1130
|
<div class="biom-method method"></div>
|
|
1131
1131
|
</td>
|
|
1132
|
-
<td class="biom-value value" style="width:
|
|
1132
|
+
<td class="biom-value value" style="width:max-content;">
|
|
1133
1133
|
<span class="biom-parent-value value-text" style="${biomarkerParentValueStyle}">${biomarkerValue.replace(/\r\n/g, "<br/>")}</span>
|
|
1134
1134
|
</td>
|
|
1135
1135
|
${biomarkerUnit ? `<td class="biom-unit unit"><div class="biom-parent-unit unit-text" style="padding: 0 6px;">${biomarkerUnit}</div></td>` : ''}
|
|
@@ -676,6 +676,7 @@ let generateHTMLWellbeingReportWithSmartReport = async (data, isDebugging, clien
|
|
|
676
676
|
let mind = [];
|
|
677
677
|
let healthRisk = []
|
|
678
678
|
Object.entries(partScores).map(([key, value], index) => {
|
|
679
|
+
|
|
679
680
|
if (key === 'body' || key === 'lifeStyle' || key === 'mind') {
|
|
680
681
|
partScores[key].map((item, index) => {
|
|
681
682
|
let iconName = item['icon'].split(" ").join("")
|
package/package.json
CHANGED
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
<!-- JS ------------------------------------>
|
|
36
36
|
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
|
|
37
37
|
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
|
|
38
|
-
<script type="text/javascript" src="../assets/
|
|
38
|
+
<script type="text/javascript" src="../assets/Mediclinic/js/js.js"></script>
|
|
39
|
+
|
|
39
40
|
|
|
40
41
|
</body>
|
|
41
42
|
</html>
|