@medicus.ai/medicus-report-pdf-generator 1.0.280 → 1.0.281
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.
|
@@ -76,6 +76,7 @@ header {
|
|
|
76
76
|
color: #ffffff;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
|
|
79
80
|
.wellbeing-logo {
|
|
80
81
|
height: 50px;
|
|
81
82
|
margin-left: 50px;
|
|
@@ -2956,24 +2957,24 @@ div#screenshot {
|
|
|
2956
2957
|
position: absolute;
|
|
2957
2958
|
bottom: 0;
|
|
2958
2959
|
height: auto !important;
|
|
2960
|
+
transform: rotate(296deg);
|
|
2959
2961
|
}
|
|
2960
2962
|
|
|
2961
2963
|
.needle-container {
|
|
2962
2964
|
position: absolute;
|
|
2963
2965
|
right: 0;
|
|
2964
|
-
top:
|
|
2966
|
+
top: 23px;
|
|
2965
2967
|
left: 0;
|
|
2966
|
-
height:
|
|
2967
|
-
width:
|
|
2968
|
+
height: 100px;
|
|
2969
|
+
width: 100px;
|
|
2968
2970
|
margin-left: auto;
|
|
2969
|
-
margin-top: 1rem;
|
|
2970
|
-
margin-right:
|
|
2971
|
+
/* margin-top: 1rem; */
|
|
2972
|
+
margin-right: auto;
|
|
2971
2973
|
}
|
|
2972
2974
|
|
|
2973
|
-
.needle-container.
|
|
2974
|
-
|
|
2975
|
+
.needle-container.loading_Meter2.needle-container2{
|
|
2976
|
+
right:-17px
|
|
2975
2977
|
}
|
|
2976
|
-
|
|
2977
2978
|
.speedometer-value {
|
|
2978
2979
|
z-index: 5;
|
|
2979
2980
|
top: 50px;
|
|
@@ -3035,6 +3036,7 @@ div#screenshot {
|
|
|
3035
3036
|
padding: 0px 40px 0 40px;
|
|
3036
3037
|
box-sizing: border-box;
|
|
3037
3038
|
direction: ltr;
|
|
3039
|
+
margin-bottom: 5px;
|
|
3038
3040
|
}
|
|
3039
3041
|
|
|
3040
3042
|
.row {
|
|
@@ -3075,7 +3077,7 @@ div#screenshot {
|
|
|
3075
3077
|
border: 1px solid rgba(171, 204, 58, 1);
|
|
3076
3078
|
border-radius: 16px;
|
|
3077
3079
|
padding: 18px 38px;
|
|
3078
|
-
margin-top:
|
|
3080
|
+
margin-top: 20px;
|
|
3079
3081
|
box-sizing: border-box;
|
|
3080
3082
|
}
|
|
3081
3083
|
|
|
@@ -3136,7 +3138,7 @@ div#screenshot {
|
|
|
3136
3138
|
|
|
3137
3139
|
.report-header {
|
|
3138
3140
|
color: rgb(139, 139, 167);
|
|
3139
|
-
font-size:
|
|
3141
|
+
font-size: 21px;
|
|
3140
3142
|
margin-top: 4px;
|
|
3141
3143
|
margin-bottom: 20px;
|
|
3142
3144
|
letter-spacing: -0.9px;
|
|
@@ -3267,6 +3269,7 @@ h5.recommended-tips-title {
|
|
|
3267
3269
|
float: right;
|
|
3268
3270
|
padding: 10px 0 7px 40px;
|
|
3269
3271
|
box-sizing: border-box;
|
|
3272
|
+
display:block;clear:both;
|
|
3270
3273
|
}
|
|
3271
3274
|
|
|
3272
3275
|
.diagnostikare h5.recommended-tips-title {
|
|
@@ -3278,7 +3281,7 @@ h5.recommended-tips-title {
|
|
|
3278
3281
|
display: inline-block;
|
|
3279
3282
|
color: rgb(0, 0, 153);
|
|
3280
3283
|
letter-spacing: -0.25px;
|
|
3281
|
-
font-size:
|
|
3284
|
+
font-size: 10.5px;
|
|
3282
3285
|
line-height: 1.5;
|
|
3283
3286
|
margin-right: 10%;
|
|
3284
3287
|
vertical-align: top;
|
|
@@ -3414,6 +3417,9 @@ div[key="mind"] .score-details-title {
|
|
|
3414
3417
|
.scores-note p {
|
|
3415
3418
|
font-size: 11px !important;
|
|
3416
3419
|
}
|
|
3420
|
+
.insight-container-without-img .tips-text{
|
|
3421
|
+
font-size: 9.5px !important;
|
|
3422
|
+
}
|
|
3417
3423
|
|
|
3418
3424
|
.scores-parts {
|
|
3419
3425
|
margin-top: 15px;
|
|
@@ -218,6 +218,7 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
218
218
|
$('#content').append('<style>' +
|
|
219
219
|
'.tips-text{color: ' + insights_font_color + ' !important;}' +
|
|
220
220
|
'.first-level-font-color{color:' + general_font_color + ' !important;}' +
|
|
221
|
+
'.first-section-scores{border-color:' + fifth_level_color + ' !important;}' +
|
|
221
222
|
'.disclaimer-text-color{color:' + disclaimer_text_color + ' !important;}' +
|
|
222
223
|
'.first-level-border-color{border-color:' + general_font_color + ' !important;}' +
|
|
223
224
|
'.scores-note .first-level-font-color{color:' + iconColor + ' !important;}' +
|
|
@@ -242,12 +243,12 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
242
243
|
|
|
243
244
|
/* First section */
|
|
244
245
|
let physicalScore = data.calculation.physicalScore.toFixed(1)
|
|
245
|
-
let physicalAmount = ((physicalScore > 40 && physicalScore < 70) ? 255 : (physicalScore >= 70) ?
|
|
246
|
+
let physicalAmount = ((physicalScore > 40 && physicalScore < 70) ? 255 : (physicalScore >= 70) ? 369 : 214);
|
|
246
247
|
let physicalColor = (physicalScore > 40 && physicalScore < 70) ? third_level_color : (physicalScore >= 70) ? fifth_level_color : client === 'nasco' ? second_level_color : first_level_color;
|
|
247
248
|
|
|
248
249
|
const rotatePhysicalAmount = (physicalScore / 100) * physicalAmount;
|
|
249
250
|
let psychologicalScore = data.calculation.psychologicalScore.toFixed(1)
|
|
250
|
-
let psychologicalAmount = ((psychologicalScore > 40 && psychologicalScore < 70) ? 255 : (psychologicalScore >= 70) ?
|
|
251
|
+
let psychologicalAmount = ((psychologicalScore > 40 && psychologicalScore < 70) ? 255 : (psychologicalScore >= 70) ? 369 : 214);
|
|
251
252
|
let psychologicalColor = (psychologicalScore > 40 && psychologicalScore < 70) ? third_level_color : (psychologicalScore >= 70) ? fifth_level_color : client === 'nasco' ? second_level_color : first_level_color;
|
|
252
253
|
const rotatePsychologicalAmount = (psychologicalScore / 100) * psychologicalAmount;
|
|
253
254
|
|
|
@@ -267,7 +268,7 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
267
268
|
.replace(/{{thirdLevelColor}}/g, third_level_color)
|
|
268
269
|
.replace(/{{firstLevelColor}}/g, client === 'nasco' ? second_level_color : first_level_color)
|
|
269
270
|
.replace("{{psychologicalColor}}", psychologicalColor)
|
|
270
|
-
.replace(
|
|
271
|
+
.replace(/{{listIconsFontColor}}/g, list_icons_font_color);
|
|
271
272
|
|
|
272
273
|
|
|
273
274
|
let footerTemplateHTML = footerTemplate.replace("{{Disclaimer}}", localeService.t('Disclaimer'))
|
|
@@ -352,15 +353,15 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
|
|
|
352
353
|
if (key === 'bodyInsights' || key === 'lifeStyleInsights' || key === 'mindInsights') {
|
|
353
354
|
partScores[key]['tips'].map((tip, index) => {
|
|
354
355
|
if (key === 'lifeStyleInsights') {
|
|
355
|
-
tip.type='lifeStyleInsights'
|
|
356
|
+
tip.type = 'lifeStyleInsights'
|
|
356
357
|
lifeStyleTips.push(tip)
|
|
357
358
|
}
|
|
358
359
|
if (key === 'bodyInsights') {
|
|
359
|
-
tip.type='bodyInsights'
|
|
360
|
+
tip.type = 'bodyInsights'
|
|
360
361
|
bodyTips.push(tip)
|
|
361
362
|
}
|
|
362
363
|
if (key === 'mindInsights') {
|
|
363
|
-
tip.type='mindInsights'
|
|
364
|
+
tip.type = 'mindInsights'
|
|
364
365
|
mindTips.push(tip)
|
|
365
366
|
}
|
|
366
367
|
i++;
|
|
@@ -667,8 +668,11 @@ let renderInsightTips = (tips) => {
|
|
|
667
668
|
insightClass = "insight-container-with-img";
|
|
668
669
|
tipsTextClass = "first-level-font-color"
|
|
669
670
|
}
|
|
671
|
+
|
|
672
|
+
let tex = tip.content
|
|
673
|
+
|
|
670
674
|
tipsHtml += "<div class='insight-container " + insightClass + "'>" +
|
|
671
|
-
"<div class='tips-text " + tipsTextClass + "'>" +
|
|
675
|
+
"<div class='tips-text " + tipsTextClass + "'>" + tex + "</div>";
|
|
672
676
|
if (index === 0) {
|
|
673
677
|
tipsHtml += "<div class='chunk-image'><img class='chunk-image-mind' src='" + tipImage + "'/></div>"
|
|
674
678
|
|
package/package.json
CHANGED