@verdocs/web-sdk 5.0.9 → 5.0.10
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/cjs/verdocs-field-attachment_13.cjs.entry.js +4 -2
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +4 -2
- package/dist/components/{p-ec56d92f.js → p-55e539cb.js} +2 -2
- package/dist/components/{p-6c18617e.js → p-85ebe71d.js} +4 -2
- package/dist/components/{p-fca85ba0.js → p-a96c617c.js} +2 -2
- package/dist/components/{p-60eb7451.js → p-e9a7d860.js} +1 -1
- package/dist/components/verdocs-build.js +4 -4
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/custom-elements.json +2156 -0
- package/dist/esm/verdocs-field-attachment_13.entry.js +4 -2
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/verdocs-web-sdk/{p-c3f825d4.system.entry.js → p-0ade6f7a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9dabaa06.entry.js → p-42e608e3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e2b70dfb.system.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
@@ -811,12 +811,14 @@ const VerdocsFieldTextbox = class {
|
|
811
811
|
}
|
812
812
|
render() {
|
813
813
|
const { source, sourceid, fieldname, editable = false, done = false, disabled = false, focused, xscale = 1, yscale = 1 } = this;
|
814
|
+
console.log('Rendering textbox', source, sourceid, fieldname);
|
814
815
|
const { index, field } = Store.getField(source, sourceid, fieldname);
|
816
|
+
console.log('Textbox', index, getRGBA(index), field);
|
815
817
|
let { required = false, placeholder = '', label = '', width = 150, default: value = '', multiline = false } = field || {};
|
816
818
|
const backgroundColor = getRGBA(index);
|
817
819
|
// TODO: Consolidate value/defaultValue handling between template and envelope fields
|
818
|
-
if (field.value) {
|
819
|
-
value = field.value;
|
820
|
+
if (field === null || field === void 0 ? void 0 : field.value) {
|
821
|
+
value = field === null || field === void 0 ? void 0 : field.value;
|
820
822
|
}
|
821
823
|
// TODO: This is an outdated technique from the old system. We should compute it.
|
822
824
|
const maxlength = width / 5;
|