@pdfme/ui 6.1.12-dev.13 → 6.1.12-dev.14
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -204494,12 +204494,12 @@ var validateVariables = (value, schema) => {
|
|
|
204494
204494
|
return true;
|
|
204495
204495
|
};
|
|
204496
204496
|
//#endregion
|
|
204497
|
-
//#region ../schemas/dist/dynamicTemplate-
|
|
204497
|
+
//#region ../schemas/dist/dynamicTemplate-DFk_de1Y.js
|
|
204498
204498
|
var getDynamicLayoutForMultiVariableText = async (value, args) => {
|
|
204499
204499
|
if (args.schema.type !== "multiVariableText") return { heights: [args.schema.height] };
|
|
204500
204500
|
const schema = args.schema;
|
|
204501
204501
|
if (schema.overflow !== "expand") return { heights: [schema.height] };
|
|
204502
|
-
let renderValue = value;
|
|
204502
|
+
let renderValue = schema.readOnly && schema.variables.length === 0 ? schema.text || "" : value;
|
|
204503
204503
|
if (!schema.readOnly) {
|
|
204504
204504
|
if (!validateVariables(value, schema)) return { heights: [schema.height] };
|
|
204505
204505
|
renderValue = isInlineMarkdownTextSchema(schema) ? substituteVariablesAsInlineMarkdownLiterals(schema.text || "", value) : substituteVariables(schema.text || "", value);
|