@medicus.ai/medicus-report-pdf-generator 1.0.280 → 1.0.282

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: 24px;
2966
+ top: 23px;
2965
2967
  left: 0;
2966
- height: 98px;
2967
- width: 112px;
2968
+ height: 100px;
2969
+ width: 100px;
2968
2970
  margin-left: auto;
2969
- margin-top: 1rem;
2970
- margin-right: 2px;
2971
+ /* margin-top: 1rem; */
2972
+ margin-right: auto;
2971
2973
  }
2972
2974
 
2973
- .needle-container.loading_Meter1 {
2974
- margin-right: 11px;
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: 24px;
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: 24px;
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: 11px;
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;
@@ -3422,4 +3428,11 @@ div[key="mind"] .score-details-title {
3422
3428
  .score-main {
3423
3429
  width: 100%;
3424
3430
  float: left;
3431
+ }
3432
+ .es .insight-container.insight-container-with-img .tips-text,
3433
+ .es .insight-container.insight-container-without-img .tips-text{
3434
+ font-size:9px
3435
+ }
3436
+ .es .disclaimer-text{
3437
+ font-size:7px
3425
3438
  }
@@ -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) ? 253 : 214);
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) ? 253 : 214);
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("{{listIconsFontColor}}", list_icons_font_color);
271
+ .replace(/{{listIconsFontColor}}/g, list_icons_font_color);
271
272
 
272
273
 
273
274
  let footerTemplateHTML = footerTemplate.replace("{{Disclaimer}}", localeService.t('Disclaimer'))
@@ -291,6 +292,7 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
291
292
  $(".first-section-scores .physical-score-section .part-1,.first-section-scores .physical-score-section .part-2").addClass('inactive')
292
293
  }
293
294
  $(".score-main").addClass(client);
295
+ $(".score-main").addClass(language);
294
296
  /* Second section*/
295
297
  let partScores = data.partsScore;
296
298
  let allScores = {'lifeStyle': [], 'body': [], 'mind': [], healthRisk: []}
@@ -352,15 +354,15 @@ let generateHTMLWellbeingReport = async (data, isDebugging, clientName, language
352
354
  if (key === 'bodyInsights' || key === 'lifeStyleInsights' || key === 'mindInsights') {
353
355
  partScores[key]['tips'].map((tip, index) => {
354
356
  if (key === 'lifeStyleInsights') {
355
- tip.type='lifeStyleInsights'
357
+ tip.type = 'lifeStyleInsights'
356
358
  lifeStyleTips.push(tip)
357
359
  }
358
360
  if (key === 'bodyInsights') {
359
- tip.type='bodyInsights'
361
+ tip.type = 'bodyInsights'
360
362
  bodyTips.push(tip)
361
363
  }
362
364
  if (key === 'mindInsights') {
363
- tip.type='mindInsights'
365
+ tip.type = 'mindInsights'
364
366
  mindTips.push(tip)
365
367
  }
366
368
  i++;
@@ -667,8 +669,11 @@ let renderInsightTips = (tips) => {
667
669
  insightClass = "insight-container-with-img";
668
670
  tipsTextClass = "first-level-font-color"
669
671
  }
672
+
673
+ let tex = tip.content
674
+
670
675
  tipsHtml += "<div class='insight-container " + insightClass + "'>" +
671
- "<div class='tips-text " + tipsTextClass + "'>" + tip.content + "</div>";
676
+ "<div class='tips-text " + tipsTextClass + "'>" + tex + "</div>";
672
677
  if (index === 0) {
673
678
  tipsHtml += "<div class='chunk-image'><img class='chunk-image-mind' src='" + tipImage + "'/></div>"
674
679
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.280",
3
+ "version": "1.0.282",
4
4
  "description": "Nasco corporate report - latest update in 24/4/2023 - Fix translation for SanusX PDF",
5
5
  "main": "index.js",
6
6
  "scripts": {