@medicus.ai/medicus-report-pdf-generator 1.3.28 → 1.3.30
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.
|
@@ -7,7 +7,7 @@ const path = require("path");
|
|
|
7
7
|
const LocaleService = require('../app/services/localeService.js');
|
|
8
8
|
const i18n = require('../app/i18n_wellbeing.config.js');
|
|
9
9
|
const puppeteer = require("puppeteer");
|
|
10
|
-
const hummus = require('
|
|
10
|
+
const hummus = require('muhammara');
|
|
11
11
|
const memoryStreams = require('memory-streams');
|
|
12
12
|
|
|
13
13
|
var localeService = new LocaleService(i18n);
|
package/lib/pdf_generator.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fs = require("fs"), {promisify: promisify} = require("util"), {JSDOM: JSDOM} = require("jsdom"),
|
|
3
|
-
fetch = require("node-fetch"), hummus = require("
|
|
3
|
+
fetch = require("node-fetch"), hummus = require("muhammara"), memoryStreams = require("memory-streams"),
|
|
4
4
|
path = require("path"), LocaleService = require("../app/services/localeService.js"),
|
|
5
5
|
i18n = require("../app/i18n.config.js"), puppeteer = require("puppeteer");
|
|
6
6
|
var Chart = require("chart.js"), QRCode = require("qrcode"), localeService = new LocaleService(i18n);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicus.ai/medicus-report-pdf-generator",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.30",
|
|
4
4
|
"description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,17 +13,14 @@
|
|
|
13
13
|
"babel-register": "^6.26.0",
|
|
14
14
|
"big-text.js": "^1.0.1",
|
|
15
15
|
"body-parser": "^1.18.3",
|
|
16
|
-
"canvas": "^2.11.2",
|
|
17
|
-
"canvas-constructor": "^3.2.0",
|
|
18
16
|
"chart.js": "^2.7.3",
|
|
19
17
|
"express": "^4.16.4",
|
|
20
|
-
"get-canvas-context": "^1.0.2",
|
|
21
|
-
"hummus": "1.0.111",
|
|
22
18
|
"i18n": "^0.8.3",
|
|
23
19
|
"i18n-nodejs": "^3.0.0",
|
|
24
20
|
"jquery": "^3.3.1",
|
|
25
|
-
"jsdom": "^
|
|
21
|
+
"jsdom": "^16.7.0",
|
|
26
22
|
"memory-streams": "^0.1.3",
|
|
23
|
+
"muhammara": "6.0.6",
|
|
27
24
|
"node-fetch": "^2.3.0",
|
|
28
25
|
"node-pdftk": "^2.0.2",
|
|
29
26
|
"node-qpdf2": "^6.0.0",
|
|
@@ -43,5 +40,11 @@
|
|
|
43
40
|
"babel-preset-es2015": "^6.24.1",
|
|
44
41
|
"babel-preset-stage-0": "^6.24.1",
|
|
45
42
|
"webpack": "^4.28.4"
|
|
43
|
+
},
|
|
44
|
+
"allowScripts": {
|
|
45
|
+
"puppeteer": true,
|
|
46
|
+
"muhammara": true,
|
|
47
|
+
"core-js": false,
|
|
48
|
+
"fsevents": false
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -37,6 +37,21 @@
|
|
|
37
37
|
float: none !important;
|
|
38
38
|
width: 100% !important;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/* The prescription table is raw stored HTML with no width guard; at the real
|
|
42
|
+
A4 content width a 12-column table is wider than the page, so the last
|
|
43
|
+
column (Package) is clipped at the right edge. Force the table to the
|
|
44
|
+
container width and wrap long cells so every column always fits. */
|
|
45
|
+
.score-main #report-summary .report-summary-content table {
|
|
46
|
+
width: 100% !important;
|
|
47
|
+
table-layout: fixed !important;
|
|
48
|
+
}
|
|
49
|
+
.score-main #report-summary .report-summary-content th,
|
|
50
|
+
.score-main #report-summary .report-summary-content td {
|
|
51
|
+
word-break: break-word !important;
|
|
52
|
+
overflow-wrap: anywhere !important;
|
|
53
|
+
white-space: normal !important;
|
|
54
|
+
}
|
|
40
55
|
</style>
|
|
41
56
|
<script>
|
|
42
57
|
var IS_ARABIC = false;
|
|
@@ -92,6 +92,20 @@
|
|
|
92
92
|
float: none !important;
|
|
93
93
|
width: 100% !important;
|
|
94
94
|
}
|
|
95
|
+
|
|
96
|
+
/* The prescription table is raw stored HTML with no width guard; force it to
|
|
97
|
+
the container width and wrap long cells so no column is clipped (keeps the
|
|
98
|
+
Arabic table fitting and matches the LTR copy). */
|
|
99
|
+
.score-main #report-summary .report-summary-content table {
|
|
100
|
+
width: 100% !important;
|
|
101
|
+
table-layout: fixed !important;
|
|
102
|
+
}
|
|
103
|
+
.score-main #report-summary .report-summary-content th,
|
|
104
|
+
.score-main #report-summary .report-summary-content td {
|
|
105
|
+
word-break: break-word !important;
|
|
106
|
+
overflow-wrap: anywhere !important;
|
|
107
|
+
white-space: normal !important;
|
|
108
|
+
}
|
|
95
109
|
</style>
|
|
96
110
|
<script>
|
|
97
111
|
var IS_ARABIC = true;
|