@medicus.ai/medicus-report-pdf-generator 1.0.238 → 1.0.240

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.
@@ -229,6 +229,10 @@ img {
229
229
  width: 28%;
230
230
  }
231
231
 
232
+ .closer-look-left .closer-loook-part:nth-child(2) .closer-look-table-img,
233
+ .closer-look-left .closer-loook-part:last-child .closer-look-table-img{
234
+ vertical-align: top;
235
+ }
232
236
  .closer-look-right {
233
237
  width: 53.3%;
234
238
  }
@@ -280,6 +284,9 @@ img {
280
284
  line-height: 17px;
281
285
  color: #676767;
282
286
  }
287
+ .de .closer-look-example{
288
+ font-size: 10px;
289
+ }
283
290
 
284
291
  .closer-look-table-img {
285
292
  width: 59px;
@@ -292,7 +299,6 @@ img {
292
299
  }
293
300
 
294
301
  .closer-loook-part {
295
- overflow: hidden;
296
302
  margin-bottom: 18px;
297
303
  }
298
304
 
@@ -374,6 +380,7 @@ img {
374
380
  right: 0px;
375
381
  text-align: center;
376
382
  }
383
+
377
384
  span.speedometer-value-down {
378
385
  color: #D8D8D8;
379
386
  font-size: 11px;
@@ -386,6 +393,7 @@ span.speedometer-value-down {
386
393
  margin-top: -1px;
387
394
  display: block;
388
395
  }
396
+
389
397
  .meter-needle.ui.image {
390
398
  width: 12px !important;
391
399
  position: absolute;
@@ -454,20 +462,18 @@ span.speedometer-value-down {
454
462
  background: #fff;
455
463
  border-radius: 7px;
456
464
  box-shadow: 0px 1px 1px 1px rgb(0 0 0 / 4%);
457
- border-top: 6px solid #98C6DD;
465
+ border-top: 6px solid rgba(36, 187, 96, 1);
458
466
  min-height: 106px;
459
467
  }
460
- .de .prediction-component{
468
+
469
+ .de .prediction-component {
461
470
  min-height: 116px;
462
471
  }
463
472
 
464
- .predictions-body .prediction-component:nth-child(2) {
465
- border-color: rgba(36, 187, 96, 1)
473
+ .predictions-body .prediction-component.prediction-wrong {
474
+ border-color: grey
466
475
  }
467
476
 
468
- .predictions-body .prediction-component:nth-child(3) {
469
- border-color: #80A9A7
470
- }
471
477
 
472
478
  .predictions-body .prediction-component:last-child {
473
479
  margin-right: 0;
@@ -496,10 +502,14 @@ span.speedometer-value-down {
496
502
  border-radius: 4px;
497
503
  }
498
504
 
499
- .prediction-sub-result.prediction-wrong {
505
+ .prediction-component.prediction-wrong .prediction-sub-result {
500
506
  background: #E9E8D8
501
507
  }
502
508
 
509
+ .prediction-component.prediction-wrong .prediction-sub-result img {
510
+ opacity: 0;
511
+ }
512
+
503
513
  .prediction-sub-result img {
504
514
  width: 10px;
505
515
  margin-right: 6px;
@@ -540,6 +550,7 @@ span.speedometer-value-down {
540
550
  float: left;
541
551
  width: 100%
542
552
  }
553
+
543
554
  .recommendations-title {
544
555
  color: rgba(2, 84, 80, 1);
545
556
  font-family: 'Frank Ruhl Libre';
@@ -548,6 +559,7 @@ span.speedometer-value-down {
548
559
  font-size: 18.4px;
549
560
  margin-bottom: 10px;
550
561
  }
562
+
551
563
  .insight-container {
552
564
  width: 32.66%;
553
565
  float: left;
@@ -557,31 +569,38 @@ span.speedometer-value-down {
557
569
  box-shadow: 0px 1px 2px 1px rgb(0 0 0 / 4%);
558
570
  background: #fff;
559
571
  min-height: 172px;
560
- border-radius:5px
572
+ border-radius: 5px
561
573
  }
562
- .de .insight-container{
574
+
575
+ .de .insight-container {
563
576
  min-height: 156px;
564
577
  }
565
- .tips-section .insight-container:last-child{
566
- margin-right:0
578
+
579
+ .tips-section .insight-container:last-child {
580
+ margin-right: 0
567
581
  }
582
+
568
583
  .chunk-image {
569
584
  float: left;
570
585
  }
571
- .insight-container img{
572
- width:46px
586
+
587
+ .insight-container img {
588
+ width: 46px
573
589
  }
590
+
574
591
  .tip-score-section {
575
592
  float: left;
576
593
  width: 72%;
577
594
  padding-left: 0%;
578
595
  box-sizing: border-box;
579
596
  }
597
+
580
598
  .top-tip-section {
581
599
  float: left;
582
600
  width: 100%;
583
601
  margin-bottom: 2px;
584
602
  }
603
+
585
604
  .tips-text {
586
605
  color: #676767;
587
606
  font-size: 10.5px;
@@ -590,6 +609,7 @@ span.speedometer-value-down {
590
609
  float: left;
591
610
  line-height: 14px;
592
611
  }
612
+
593
613
  .tip-title {
594
614
  color: #025450;
595
615
  font-family: 'Frank Ruhl Libre';
@@ -597,12 +617,14 @@ span.speedometer-value-down {
597
617
  font-weight: bold;
598
618
  margin-bottom: 8px;
599
619
  }
620
+
600
621
  .score-lines {
601
622
  width: 88%;
602
623
  float: left;
603
624
  clear: both;
604
625
  margin-bottom: 2px;
605
626
  }
627
+
606
628
  .score-line {
607
629
  width: 17%;
608
630
  height: 4px;
@@ -611,9 +633,11 @@ span.speedometer-value-down {
611
633
  background: rgba(248, 248, 243, 1);
612
634
  border-radius: 18px;
613
635
  }
614
- .score-lines .score-line:last-child{
636
+
637
+ .score-lines .score-line:last-child {
615
638
  margin-right: 0
616
639
  }
640
+
617
641
  .score-sum {
618
642
  color: #025450;
619
643
  font-family: 'Roboto';
@@ -621,16 +645,17 @@ span.speedometer-value-down {
621
645
  display: block;
622
646
  float: left;
623
647
  }
624
- .score-lines .score-line.highlighted{
625
- background:rgba(204, 221, 220, 1)
648
+
649
+ .score-lines .score-line.highlighted {
650
+ background: rgba(204, 221, 220, 1)
626
651
  }
627
652
 
628
- .insight-container.body .score-lines .score-line.highlighted{
629
- background:#F58F90
653
+ .insight-container.body .score-lines .score-line.highlighted {
654
+ background: #F58F90
630
655
  }
631
656
 
632
- .insight-container.mind .score-lines .score-line.highlighted{
633
- background:#80A9A7
657
+ .insight-container.mind .score-lines .score-line.highlighted {
658
+ background: #80A9A7
634
659
  }
635
660
 
636
661
  /*Footer*/
@@ -642,13 +667,15 @@ background:rgba(204, 221, 220, 1)
642
667
  padding: 0;
643
668
  box-sizing: border-box;
644
669
  }
645
- .de .print-page-footer{
646
- margin-top:10px
670
+
671
+ .de .print-page-footer {
672
+ margin-top: 10px
647
673
  }
648
- .footer-icon{
674
+
675
+ .footer-icon {
649
676
  width: 39px;
650
677
  float: left;
651
- margin-top:9px
678
+ margin-top: 9px
652
679
  }
653
680
 
654
681
  .footer-content {
@@ -100,7 +100,7 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
100
100
  }
101
101
 
102
102
  logo = defaultConfig['logo'];
103
- language='de'
103
+ // language='de'
104
104
 
105
105
  /*check if the language is an RTL language*/
106
106
  localeService.setLocale(language);
@@ -309,13 +309,13 @@ let generateHTMLSanusXReport = async (data, isDebugging, clientName, language) =
309
309
 
310
310
  $('#content').append(footerTemplateHTML);
311
311
  if (!data.PartScoresHighestValues.lifeStyle[0].isPredictiveElement) {
312
- $(".prediction-sub-result.lifestyle").addClass('prediction-wrong')
312
+ $(".prediction-component.lifestyle").addClass('prediction-wrong')
313
313
  }
314
314
  if (!data.PartScoresHighestValues.mind[0].isPredictiveElement) {
315
- $(".prediction-sub-result.mind").addClass('prediction-wrong')
315
+ $(".prediction-component.mind").addClass('prediction-wrong')
316
316
  }
317
317
  if (!data.PartScoresHighestValues.body[0].isPredictiveElement) {
318
- $(".prediction-sub-result.body").addClass('prediction-wrong')
318
+ $(".prediction-component.body").addClass('prediction-wrong')
319
319
  }
320
320
 
321
321
 
@@ -228,11 +228,11 @@
228
228
  "description" : "Shows on Result page"
229
229
  },
230
230
  "psychologicalScore": {
231
- "message": "Psychologisch",
231
+ "message": "Pschologischer Score",
232
232
  "description": "Psychological title"
233
233
  },
234
234
  "physicalScore": {
235
- "message": "Körperlich",
235
+ "message": "Körperlicher Score",
236
236
  "description": "Physical title"
237
237
  },
238
238
  "predictionsTitle": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.238",
4
- "description": "Nasco corporate report - latest update in 13/2/2023 - update Nasco PDF design",
3
+ "version": "1.0.240",
4
+ "description": "Nasco corporate report - latest update in 5/3/2023 - New design for SanusX PDF",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "node index.js"
@@ -3,7 +3,7 @@
3
3
  <div class="predictions-title">{{predictionsTitle}}</div>
4
4
  <div class="predictions-desc">{{predictionsDesc}}</div>
5
5
  <div class="predictions-body">
6
- <div class="prediction-component">
6
+ <div class="prediction-component body">
7
7
  <div class="prediction-container prediction-container1">
8
8
 
9
9
  <div class="prediction-sub-image"><img
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
  </div>
21
21
  </div>
22
- <div class="prediction-component">
22
+ <div class="prediction-component lifestyle">
23
23
  <div class="prediction-container prediction-container2">
24
24
 
25
25
  <div class="prediction-sub-image"><img
@@ -34,7 +34,7 @@
34
34
  </div>
35
35
  </div>
36
36
  </div>
37
- <div class="prediction-component">
37
+ <div class="prediction-component mind">
38
38
  <div class="prediction-container prediction-container3">
39
39
  <div class="prediction-sub-image"><img
40
40
  src="{{leavesIcon}}"></div>