@verdocs/web-sdk 4.2.83 → 4.2.85
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-checkbox_4.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +6 -3
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +2 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +2 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +2 -1
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +2 -1
- package/dist/components/verdocs-field-signature2.js +2 -1
- package/dist/components/verdocs-field-textbox2.js +2 -1
- package/dist/components/verdocs-field-timestamp2.js +2 -1
- package/dist/components/verdocs-template-field-properties2.js +2 -1
- package/dist/custom-elements.json +2022 -0
- package/dist/esm/verdocs-checkbox_4.entry.js +2 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +6 -3
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/verdocs-web-sdk/p-30c0a251.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-34325ad6.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-73b7249a.system.entry.js → p-6ac15c93.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-912f8ad2.entry.js → p-b241b339.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ea31368b.system.entry.js → p-c2d00ebf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-acc43b94.entry.js +0 -1
@@ -126,6 +126,7 @@ const VerdocsTemplateFieldProperties = class {
|
|
126
126
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
127
127
|
if (!field) {
|
128
128
|
console.log(`[FIELD PROPERTIES] Unable to find field "${this.fieldName}" in fields`);
|
129
|
+
return;
|
129
130
|
}
|
130
131
|
else {
|
131
132
|
console.log('[FIELD PROPERTIES]', field);
|
@@ -167,8 +168,8 @@ const VerdocsTemplateFieldProperties = class {
|
|
167
168
|
jsSdk.updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
168
169
|
.then(updated => {
|
169
170
|
var _a, _b, _c;
|
171
|
+
console.log('[FIELD PROPERTIES] Updated', updated);
|
170
172
|
TemplateFieldStore.updateStoreField(this.fieldStore, this.fieldName, updated);
|
171
|
-
this.resetForm();
|
172
173
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, field: updated });
|
173
174
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
174
175
|
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
@@ -612,6 +612,7 @@ const VerdocsFieldSignature = class {
|
|
612
612
|
if (settingsPanel && settingsPanel.hidePanel) {
|
613
613
|
settingsPanel.hidePanel();
|
614
614
|
}
|
615
|
+
this.showingProperties = false;
|
615
616
|
}
|
616
617
|
async componentWillLoad() {
|
617
618
|
this.fieldStore = TemplateFieldStore.getTemplateFieldStore(this.templateid);
|
@@ -628,7 +629,7 @@ const VerdocsFieldSignature = class {
|
|
628
629
|
return (index.h(index.Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && index.h("label", null, label), value ? index.h("img", { src: value, alt: "Signature" }) : index.h("button", { onClick: () => !disabled && this.handleShow() }, "Signature"), editable && (index.h(index.Fragment, null, index.h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: Icons.SettingsIcon, onClick: (e) => {
|
629
630
|
e.stopPropagation();
|
630
631
|
this.showingProperties = !this.showingProperties;
|
631
|
-
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
632
|
+
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
632
633
|
var _a;
|
633
634
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
634
635
|
return this.hideSettingsPanel();
|
@@ -794,6 +795,7 @@ const VerdocsFieldTextbox = class {
|
|
794
795
|
if (settingsPanel && settingsPanel.hidePanel) {
|
795
796
|
settingsPanel.hidePanel();
|
796
797
|
}
|
798
|
+
this.showingProperties = false;
|
797
799
|
}
|
798
800
|
async componentWillLoad() {
|
799
801
|
this.fieldStore = TemplateFieldStore.getTemplateFieldStore(this.templateid);
|
@@ -870,7 +872,7 @@ const VerdocsFieldTextbox = class {
|
|
870
872
|
return (index.h(index.Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && index.h("label", null, label), multiline ? (index.h("textarea", { name: fieldname, disabled: disabled, required: required, placeholder: placeholder, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) }, value)) : (index.h("input", { type: "text", name: fieldname, value: value, disabled: disabled, required: required, placeholder: placeholder, maxlength: maxlength, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) })), editable && (index.h(index.Fragment, null, index.h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: Icons.SettingsIcon, onClick: (e) => {
|
871
873
|
e.stopPropagation();
|
872
874
|
this.showingProperties = !this.showingProperties;
|
873
|
-
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
875
|
+
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
874
876
|
var _a;
|
875
877
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
876
878
|
return this.hideSettingsPanel();
|
@@ -919,6 +921,7 @@ const VerdocsFieldTimestamp = class {
|
|
919
921
|
if (settingsPanel && settingsPanel.hidePanel) {
|
920
922
|
settingsPanel.hidePanel();
|
921
923
|
}
|
924
|
+
this.showingProperties = false;
|
922
925
|
}
|
923
926
|
async componentWillLoad() {
|
924
927
|
this.fieldStore = TemplateFieldStore.getTemplateFieldStore(this.templateid);
|
@@ -936,7 +939,7 @@ const VerdocsFieldTimestamp = class {
|
|
936
939
|
return (index.h(index.Host, { class: { required, disabled, done }, style: { backgroundColor } }, label && index.h("label", null, label), index.h("input", { type: "text", placeholder: placeholder, value: formatted, disabled: true, ref: el => (this.el = el) }), editable && (index.h(index.Fragment, null, index.h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: Icons.SettingsIcon, onClick: (e) => {
|
937
940
|
e.stopPropagation();
|
938
941
|
this.showingProperties = !this.showingProperties;
|
939
|
-
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
942
|
+
} }), this.showingProperties && (index.h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, index.h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
940
943
|
var _a;
|
941
944
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
942
945
|
return this.hideSettingsPanel();
|
package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js
CHANGED
@@ -66,6 +66,7 @@ export class VerdocsFieldSignature {
|
|
66
66
|
if (settingsPanel && settingsPanel.hidePanel) {
|
67
67
|
settingsPanel.hidePanel();
|
68
68
|
}
|
69
|
+
this.showingProperties = false;
|
69
70
|
}
|
70
71
|
async componentWillLoad() {
|
71
72
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -82,7 +83,7 @@ export class VerdocsFieldSignature {
|
|
82
83
|
return (h(Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && h("label", null, label), value ? h("img", { src: value, alt: "Signature" }) : h("button", { onClick: () => !disabled && this.handleShow() }, "Signature"), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
83
84
|
e.stopPropagation();
|
84
85
|
this.showingProperties = !this.showingProperties;
|
85
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
86
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
86
87
|
var _a;
|
87
88
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
88
89
|
return this.hideSettingsPanel();
|
@@ -39,6 +39,7 @@ export class VerdocsFieldTextbox {
|
|
39
39
|
if (settingsPanel && settingsPanel.hidePanel) {
|
40
40
|
settingsPanel.hidePanel();
|
41
41
|
}
|
42
|
+
this.showingProperties = false;
|
42
43
|
}
|
43
44
|
async componentWillLoad() {
|
44
45
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -115,7 +116,7 @@ export class VerdocsFieldTextbox {
|
|
115
116
|
return (h(Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && h("label", null, label), multiline ? (h("textarea", { name: fieldname, disabled: disabled, required: required, placeholder: placeholder, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) }, value)) : (h("input", { type: "text", name: fieldname, value: value, disabled: disabled, required: required, placeholder: placeholder, maxlength: maxlength, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) })), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
116
117
|
e.stopPropagation();
|
117
118
|
this.showingProperties = !this.showingProperties;
|
118
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
119
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
119
120
|
var _a;
|
120
121
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
121
122
|
return this.hideSettingsPanel();
|
package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js
CHANGED
@@ -38,6 +38,7 @@ export class VerdocsFieldTimestamp {
|
|
38
38
|
if (settingsPanel && settingsPanel.hidePanel) {
|
39
39
|
settingsPanel.hidePanel();
|
40
40
|
}
|
41
|
+
this.showingProperties = false;
|
41
42
|
}
|
42
43
|
async componentWillLoad() {
|
43
44
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -55,7 +56,7 @@ export class VerdocsFieldTimestamp {
|
|
55
56
|
return (h(Host, { class: { required, disabled, done }, style: { backgroundColor } }, label && h("label", null, label), h("input", { type: "text", placeholder: placeholder, value: formatted, disabled: true, ref: el => (this.el = el) }), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
56
57
|
e.stopPropagation();
|
57
58
|
this.showingProperties = !this.showingProperties;
|
58
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
59
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
59
60
|
var _a;
|
60
61
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
61
62
|
return this.hideSettingsPanel();
|
@@ -64,6 +64,7 @@ export class VerdocsTemplateFieldProperties {
|
|
64
64
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
65
65
|
if (!field) {
|
66
66
|
console.log(`[FIELD PROPERTIES] Unable to find field "${this.fieldName}" in fields`);
|
67
|
+
return;
|
67
68
|
}
|
68
69
|
else {
|
69
70
|
console.log('[FIELD PROPERTIES]', field);
|
@@ -105,8 +106,8 @@ export class VerdocsTemplateFieldProperties {
|
|
105
106
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
106
107
|
.then(updated => {
|
107
108
|
var _a, _b, _c;
|
109
|
+
console.log('[FIELD PROPERTIES] Updated', updated);
|
108
110
|
updateStoreField(this.fieldStore, this.fieldName, updated);
|
109
|
-
this.resetForm();
|
110
111
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, field: updated });
|
111
112
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
112
113
|
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|
@@ -76,6 +76,7 @@ const VerdocsFieldSignature = /*@__PURE__*/ proxyCustomElement(class VerdocsFiel
|
|
76
76
|
if (settingsPanel && settingsPanel.hidePanel) {
|
77
77
|
settingsPanel.hidePanel();
|
78
78
|
}
|
79
|
+
this.showingProperties = false;
|
79
80
|
}
|
80
81
|
async componentWillLoad() {
|
81
82
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -92,7 +93,7 @@ const VerdocsFieldSignature = /*@__PURE__*/ proxyCustomElement(class VerdocsFiel
|
|
92
93
|
return (h(Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && h("label", null, label), value ? h("img", { src: value, alt: "Signature" }) : h("button", { onClick: () => !disabled && this.handleShow() }, "Signature"), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
93
94
|
e.stopPropagation();
|
94
95
|
this.showingProperties = !this.showingProperties;
|
95
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
96
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
96
97
|
var _a;
|
97
98
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
98
99
|
return this.hideSettingsPanel();
|
@@ -52,6 +52,7 @@ const VerdocsFieldTextbox = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldT
|
|
52
52
|
if (settingsPanel && settingsPanel.hidePanel) {
|
53
53
|
settingsPanel.hidePanel();
|
54
54
|
}
|
55
|
+
this.showingProperties = false;
|
55
56
|
}
|
56
57
|
async componentWillLoad() {
|
57
58
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -128,7 +129,7 @@ const VerdocsFieldTextbox = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldT
|
|
128
129
|
return (h(Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && h("label", null, label), multiline ? (h("textarea", { name: fieldname, disabled: disabled, required: required, placeholder: placeholder, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) }, value)) : (h("input", { type: "text", name: fieldname, value: value, disabled: disabled, required: required, placeholder: placeholder, maxlength: maxlength, ref: el => (this.inputEl = el), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) })), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
129
130
|
e.stopPropagation();
|
130
131
|
this.showingProperties = !this.showingProperties;
|
131
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
132
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
132
133
|
var _a;
|
133
134
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
134
135
|
return this.hideSettingsPanel();
|
@@ -50,6 +50,7 @@ const VerdocsFieldTimestamp = /*@__PURE__*/ proxyCustomElement(class VerdocsFiel
|
|
50
50
|
if (settingsPanel && settingsPanel.hidePanel) {
|
51
51
|
settingsPanel.hidePanel();
|
52
52
|
}
|
53
|
+
this.showingProperties = false;
|
53
54
|
}
|
54
55
|
async componentWillLoad() {
|
55
56
|
this.fieldStore = getTemplateFieldStore(this.templateid);
|
@@ -67,7 +68,7 @@ const VerdocsFieldTimestamp = /*@__PURE__*/ proxyCustomElement(class VerdocsFiel
|
|
67
68
|
return (h(Host, { class: { required, disabled, done }, style: { backgroundColor } }, label && h("label", null, label), h("input", { type: "text", placeholder: placeholder, value: formatted, disabled: true, ref: el => (this.el = el) }), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
68
69
|
e.stopPropagation();
|
69
70
|
this.showingProperties = !this.showingProperties;
|
70
|
-
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () =>
|
71
|
+
} }), this.showingProperties && (h("verdocs-portal", { anchor: `verdocs-settings-panel-trigger-${fieldname}`, onClickAway: () => (this.showingProperties = false) }, h("verdocs-template-field-properties", { templateId: templateid, fieldName: fieldname, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
71
72
|
var _a;
|
72
73
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: fieldname });
|
73
74
|
return this.hideSettingsPanel();
|
@@ -77,6 +77,7 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class Ve
|
|
77
77
|
const field = this.fieldStore.get('fields').find(field => field.name === this.fieldName);
|
78
78
|
if (!field) {
|
79
79
|
console.log(`[FIELD PROPERTIES] Unable to find field "${this.fieldName}" in fields`);
|
80
|
+
return;
|
80
81
|
}
|
81
82
|
else {
|
82
83
|
console.log('[FIELD PROPERTIES]', field);
|
@@ -118,8 +119,8 @@ const VerdocsTemplateFieldProperties = /*@__PURE__*/ proxyCustomElement(class Ve
|
|
118
119
|
updateField(this.endpoint, this.templateId, this.fieldName, newProperties)
|
119
120
|
.then(updated => {
|
120
121
|
var _a, _b, _c;
|
122
|
+
console.log('[FIELD PROPERTIES] Updated', updated);
|
121
123
|
updateStoreField(this.fieldStore, this.fieldName, updated);
|
122
|
-
this.resetForm();
|
123
124
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldName, field: updated });
|
124
125
|
(_b = this.close) === null || _b === void 0 ? void 0 : _b.emit();
|
125
126
|
(_c = document.getElementById('verdocs-template-field-properties')) === null || _c === void 0 ? void 0 : _c.remove();
|