@medicus.ai/medicus-report-pdf-generator 1.0.251 → 1.0.253
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.
|
@@ -609,6 +609,9 @@ span.speedometer-value-down {
|
|
|
609
609
|
float: left;
|
|
610
610
|
line-height: 14px;
|
|
611
611
|
}
|
|
612
|
+
.de .tips-text{
|
|
613
|
+
font-size: 9px;
|
|
614
|
+
}
|
|
612
615
|
|
|
613
616
|
.tip-title {
|
|
614
617
|
color: #025450;
|
|
@@ -646,16 +649,16 @@ span.speedometer-value-down {
|
|
|
646
649
|
float: left;
|
|
647
650
|
}
|
|
648
651
|
|
|
649
|
-
.score-lines .score-line.highlighted {
|
|
650
|
-
background:
|
|
652
|
+
.score-lines .score-line.highlighted.highlight-red {
|
|
653
|
+
background: #F58F90;
|
|
651
654
|
}
|
|
652
655
|
|
|
653
|
-
.insight-container.body .score-lines .score-line.
|
|
654
|
-
background: #
|
|
656
|
+
.insight-container.body .score-lines .score-line.highlight-blue {
|
|
657
|
+
background: #80A9A7;
|
|
655
658
|
}
|
|
656
659
|
|
|
657
|
-
.insight-container.mind .score-lines .score-line.
|
|
658
|
-
background: #
|
|
660
|
+
.insight-container.mind .score-lines .score-line.highlight-green {
|
|
661
|
+
background: #CCDDDC;
|
|
659
662
|
}
|
|
660
663
|
|
|
661
664
|
/*Footer*/
|
|
@@ -81,7 +81,6 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
81
81
|
language = 'en'
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
84
|
let client = clientName ? clientName : 'default'
|
|
86
85
|
let defaultConfig = require('../config/sanusx.json');
|
|
87
86
|
logo = defaultConfig['logo'];
|
|
@@ -188,7 +187,7 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
|
|
|
188
187
|
.replace("{{middleArrowsImage}}", path.resolve(__dirname + '/../assets/sanusx/images/middle_arrows_image.png'))
|
|
189
188
|
.replace("{{physicalScoreImage}}", path.resolve(__dirname + '/../assets/sanusx/images/' + physicalScoreImage + '-segments-circle-SanusX.png'))
|
|
190
189
|
.replace("{{psychologicalScoreImage}}", path.resolve(__dirname + '/../assets/sanusx/images/' + psychologicalScoreImage + '-segments-circle-SanusX.png'))
|
|
191
|
-
|
|
190
|
+
.replace(/{{indicatorImage}}/gi, path.resolve(__dirname + '/../assets/sanusx/images/indicator.png'))
|
|
192
191
|
.replace(/{{physicalColor}}/gi, physicalColor)
|
|
193
192
|
.replace("{{psychologicalColor}}", psychologicalColor)
|
|
194
193
|
.replace("{{closerLookTitle}}", localeService.t('closerLook'))
|
|
@@ -435,19 +434,19 @@ let renderInsightTips = (tips, elementScores) => {
|
|
|
435
434
|
let score_segments = Math.round(score / 2) + "/5"; // get score between 1 and 5
|
|
436
435
|
let line1Class, line2Class, line3Class, line4Class, line5Class = ''
|
|
437
436
|
if (roundScore === 1 || roundScore > 1) {
|
|
438
|
-
line1Class = 'highlighted highlight-
|
|
437
|
+
line1Class = 'highlighted highlight-red'
|
|
439
438
|
}
|
|
440
439
|
if (roundScore == 2 || roundScore > 2) {
|
|
441
|
-
line2Class = 'highlighted highlight-
|
|
440
|
+
line2Class = 'highlighted highlight-red'
|
|
442
441
|
}
|
|
443
442
|
if (roundScore === 3 || roundScore > 3) {
|
|
444
|
-
line3Class = 'highlighted highlight-
|
|
443
|
+
line3Class = 'highlighted highlight-green'
|
|
445
444
|
}
|
|
446
445
|
if (roundScore === 4 || roundScore > 4) {
|
|
447
|
-
line4Class = 'highlighted highlight-
|
|
446
|
+
line4Class = 'highlighted highlight-blue'
|
|
448
447
|
}
|
|
449
448
|
if (roundScore === 5) {
|
|
450
|
-
line5Class = 'highlighted highlight-
|
|
449
|
+
line5Class = 'highlighted highlight-blue'
|
|
451
450
|
}
|
|
452
451
|
|
|
453
452
|
tipsHtml += "<div class='insight-container " + insightClass + "'>" +
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicus.ai/medicus-report-pdf-generator",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Nasco corporate report - latest update in
|
|
3
|
+
"version": "1.0.253",
|
|
4
|
+
"description": "Nasco corporate report - latest update in 6/3/2023 - New design for SanusX PDF",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "node index.js"
|