@medicus.ai/medicus-report-pdf-generator 1.0.365 → 1.0.367

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.
@@ -1,15 +1,11 @@
1
1
  body {
2
- margin: 0;
2
+ font-family: "Open Sans", sans-serif;
3
3
  padding: 0;
4
- /*background: url(../../wellbeing/images/report-sample.png);*/
5
- /*background-repeat: no-repeat;*/
6
- /*background-size: 211mm;*/
7
- /*background-position: center top;*/
8
4
  box-sizing: border-box;
9
5
  width: 240mm;
10
6
  height: 297mm;
11
7
  margin: auto;
12
- font-family: "Open Sans", sans-serif;
8
+ position: relative;
13
9
  }
14
10
 
15
11
  html {
@@ -18,12 +14,6 @@ html {
18
14
  scroll-behavior: smooth;
19
15
  }
20
16
 
21
- body {
22
- position: relative;
23
- font-family: "Open Sans", sans-serif;
24
-
25
- }
26
-
27
17
  header {
28
18
  min-height: 38px;
29
19
  padding: 3.143em 3.571em 0;
@@ -3723,7 +3713,7 @@ div[key="mind"] .score-details-title {
3723
3713
  .details-label,
3724
3714
  .details-value {
3725
3715
  width: 48%;
3726
- font-family: "Open Sans", sans-serif !important;
3716
+ font-family: "Cairo", sans-serif !important;
3727
3717
  padding: 7px;
3728
3718
  font-size: 13px;
3729
3719
  display: flex;
@@ -3740,7 +3730,7 @@ div[key="mind"] .score-details-title {
3740
3730
  margin-left: 1%;
3741
3731
  font-weight: 400;
3742
3732
  color: #555;
3743
- font-family: "Open Sans", sans-serif !important;
3733
+ font-family: "Cairo", sans-serif !important;
3744
3734
  background-color: #f8fafb;
3745
3735
  }
3746
3736
 
@@ -1,8 +1,22 @@
1
1
  body {
2
- font-family: 'Cairo',serif !important;
3
2
  direction: rtl;
3
+ font-feature-settings: normal !important;
4
+ -webkit-font-feature-settings: normal !important;
5
+ -moz-font-feature-settings: normal !important;
6
+ font-family: 'Cairo',serif !important;
7
+ }
8
+
9
+ .biom-unit .biom-parent-unit.unit-text {
10
+ direction: rtl !important;
11
+ white-space: nowrap;
4
12
  }
5
13
 
14
+ .biom-unit .biom-parent-unit.unit-text {
15
+ direction: rtl !important;
16
+ white-space: nowrap;
17
+ }
18
+
19
+
6
20
  .span.bio-name-info{
7
21
  direction: ltr;
8
22
  text-align: right;
@@ -11,17 +25,17 @@ body {
11
25
  .panel-title-text{
12
26
  direction: ltr;
13
27
  text-align: right;
14
- font-family: 'Open Sans', sans-serif;
28
+ /*font-family: 'Open Sans', sans-serif;*/
15
29
  }
16
30
 
17
31
  .speedometer-value{
18
32
  top: 62px;
19
- font-family: "Open Sans", sans-serif !important;
33
+ /*font-family: "Open Sans", sans-serif !important;*/
20
34
  }
21
35
 
22
36
  .speedometer-value2{
23
37
  top:37px;
24
- font-family: "Open Sans", sans-serif !important;
38
+ /*font-family: "Open Sans", sans-serif !important;*/
25
39
  }
26
40
 
27
41
  .biom-bar.big .labels td{
@@ -78,7 +92,7 @@ body {
78
92
  }
79
93
 
80
94
  .info-value{
81
- font-family: "Open Sans", sans-serif !important;
95
+ /*font-family: "Open Sans", sans-serif !important;*/
82
96
  padding: 0;
83
97
  }
84
98
 
@@ -465,7 +479,7 @@ ul li::before {
465
479
 
466
480
  .privacy-policy-page p {
467
481
  margin-bottom: 10px;
468
- font-family: OpenSans;
482
+ /*font-family: OpenSans;*/
469
483
  font-size: 15px;
470
484
  font-stretch: normal;
471
485
  font-style: normal;
@@ -552,6 +566,7 @@ ul li::before {
552
566
  }
553
567
 
554
568
  .score-description {
569
+ font-family: "Cairo",sans-serif !important;
555
570
  text-align: right;
556
571
  }
557
572
 
package/lib/template.js CHANGED
@@ -1104,6 +1104,7 @@ function renderBiomarkerV3(biomarker, nestingLevel, isChildBiomarker, isCompactV
1104
1104
  }
1105
1105
 
1106
1106
  let biomarkerNameAlign = isRtl ? 'text-align: right;' : '';
1107
+ const RTL_FLAG = '\u200E';
1107
1108
  newBiomarkerHtml += `<table id="${biomarkerCssId}" style="width:100%; margin: 0 auto;" class="biomarker-block biomarker-block-row ${biomarkerClass}">
1108
1109
  <tr>
1109
1110
  <td style="width:${firstTdWidth}">
@@ -1113,7 +1114,7 @@ function renderBiomarkerV3(biomarker, nestingLevel, isChildBiomarker, isCompactV
1113
1114
  <td class="biom-value value" style="width:max-content;">
1114
1115
  <span class="biom-parent-value value-text" style="${biomarkerParentValueStyle}">${biomarkerValue.replace(/\r\n/g, "<br/>")}</span>
1115
1116
  </td>
1116
- ${biomarkerUnit ? `<td class="biom-unit unit"><div class="biom-parent-unit unit-text" style="padding: 0 6px;">${biomarkerUnit}</div></td>` : ''}
1117
+ ${biomarkerUnit ? `<td class="biom-unit unit"><div class="biom-parent-unit unit-text" style="padding: 0 6px;">${isRtl ?RTL_FLAG+biomarkerUnit:biomarkerUnit}</div></td>` : ''}
1117
1118
  ${rangePlaceholder ? `<td class="biom-bar listing" style="width:${tdWidth}px; margin: 0;"><div class="range-placeholder b">${rangePlaceholder}</div></td>` : ''}
1118
1119
  <td class="biom-range biom-range-data" style="width:${tdWidth}px; margin: 0;"><div class="parent-reference-range range">${referenceRange}</div></td>
1119
1120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.365",
3
+ "version": "1.0.367",
4
4
  "description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,10 +4,17 @@
4
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5
5
  <title>TEMPLATE</title>
6
6
  <link rel="preload" href="../assets/Mediclinic/css/style.css" as="style">
7
-
8
7
  <link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report.css" type="text/css">
9
8
  <link rel="stylesheet" href="../assets/Mediclinic/css/nasco_report_rtl.css" type="text/css">
10
9
  <link rel="stylesheet" href="../assets/Mediclinic/css/style.css" type="text/css">
10
+ <style>
11
+ {
12
+ font-family: 'Cairo', sans-serif;
13
+ font-feature-settings: "zero" off !important;
14
+ -webkit-font-feature-settings: "zero" off !important;
15
+ -moz-font-feature-settings: "zero" off !important;
16
+ }
17
+ </style>
11
18
  <script>
12
19
  var IS_ARABIC = true;
13
20
  </script>