cross-platform-pdf-generator
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -189,6 +189,6 @@ import { GenericStorage } from "./utils/GenericUtils/GenericStorage.js"; | ||
const value = findValueforStorage(r.row_id, data); | ||
if (value === undefined) return; | ||
if (!value) return; | ||
if (value.isRemoved === 1) return | ||
if (r?.is_not_printable ?? false) return; //do not print value | ||
const valueToPrint = value?.humanReadableDescription ?? "Ungültiger Wert im Druck" | ||
let valueToPrint = value?.humanReadableDescription ?? "Ungültiger Wert im Druck" | ||
/* | ||
@@ -198,11 +198,29 @@ const rawValue = getValueFromStorage(value); //ToDo load human readable string instead of value | ||
*/ | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "text", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
if (r.row_type === "signatur") { | ||
valueToPrint = getValueFromStorage(value); | ||
if (!(valueToPrint instanceof ByteBuffer)) return; | ||
valueToPrint = JSON.stringify(valueToPrint); | ||
valueToPrint = valueToPrint?.signImage | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "image", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
}else { | ||
result.values.push( | ||
{ | ||
"id": r.row_id, | ||
"component": r.row_type, //optional value | ||
"type": "text", | ||
"title": rowName, | ||
"value": valueToPrint, | ||
} | ||
); | ||
} | ||
} | ||
@@ -209,0 +227,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67845
1586