@verdocs/web-sdk 4.2.142 → 4.2.144
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +20 -3
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +47 -0
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-role-properties.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +28 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +77 -10
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +48 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -8
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +6 -6
- package/dist/components/verdocs-kba-dialog2.js +24 -4
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-sign.js +48 -1
- package/dist/components/verdocs-signature-dialog2.js +1 -1
- package/dist/components/verdocs-status-indicator2.js +2 -2
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-document-page2.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +8 -8
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +2 -2
- package/dist/esm/verdocs-kba-dialog_2.entry.js +20 -3
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +48 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-role-properties.entry.js +8 -8
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +19 -4
- package/dist/types/components.d.ts +20 -7
- package/dist/verdocs-web-sdk/{p-06448ac6.system.entry.js → p-0732ddc0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f0bc99ba.entry.js → p-0f7fc1f2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6c9514db.system.entry.js → p-1c105fac.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0cf80242.system.entry.js → p-1c69fc09.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2657ed1c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
- package/dist/verdocs-web-sdk/p-2ed9357a.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-79aa0c7b.entry.js → p-316ac232.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9745c048.entry.js → p-3bf8832b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b12dc865.system.entry.js → p-40f8ef4c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-47a6b7b0.system.entry.js → p-4d21cd21.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4f3c90a2.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-90c60846.entry.js → p-5d22eb2b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1129b2c6.system.entry.js → p-7e5508dd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8006acba.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b5763ec0.system.entry.js → p-809e435e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7f33a64f.system.entry.js → p-8b860709.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5ac7e3d0.entry.js → p-9103ecfa.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cad5ac82.entry.js → p-abafffee.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3457d011.entry.js → p-b3196d65.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5a267f30.system.entry.js → p-b44e3ba8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-585fd9ff.entry.js → p-c009b3b0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aedfa605.system.entry.js → p-c4438847.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f9858e4a.system.entry.js → p-e2a7d811.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ff50e207.entry.js → p-e32ddb8e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a39695ed.entry.js → p-eeb4dbad.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2becc4f4.entry.js → p-f8000c6c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1537c6d4.entry.js → p-f9841ee1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5f3f22ad.system.entry.js → p-fcb12513.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-86ccec71.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-937e21ca.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-97fa9395.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f5a065e0.system.entry.js +0 -1
@@ -117,34 +117,34 @@ export class VerdocsTemplateRoleProperties {
|
|
117
117
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
118
118
|
// Either all three should be empty, or all three need to be filled
|
119
119
|
const isValid = (!this.email && !this.first_name && !this.last_name) || (isValidEmail(this.email) && !!this.first_name && !!this.last_name);
|
120
|
-
return (h(Host, { key: '
|
120
|
+
return (h(Host, { key: '74dadb6d1937768b7b22b65609383673f2ce7742' }, h("div", { key: '139cb11995cee6b65c984609c0e5fd58a80476f4', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'd5e26b91df346a565776d4a0a9aa6aa226f3b061', class: "dialog" }, h("form", { key: '339d3b836bda41653b462a64d178f1d0e84480c5', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'da65605c4a43e482bee767460cb715dcdc7abb9b', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
|
121
121
|
? 'This role has fields assigned and can no longer be renamed.'
|
122
122
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
123
123
|
this.name = e.target.value;
|
124
124
|
this.dirty = true;
|
125
|
-
} }), h("div", { key: '
|
125
|
+
} }), h("div", { key: '9442291f5be25f224a180b07da6227254ab9876e', class: "row" }, h("div", { key: 'f5242969ab36a97d8cca6ba9e5cf73d27c40c28e', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '63c93d9e1e76b8537e56505f7e3863f864688b98', value: this.type, options: [
|
126
126
|
{ label: 'Signer', value: 'signer' },
|
127
127
|
{ label: 'CC', value: 'cc' },
|
128
128
|
{ label: 'Approver', value: 'approver' },
|
129
129
|
], onInput: (e) => {
|
130
130
|
this.type = e.target.value;
|
131
131
|
this.dirty = true;
|
132
|
-
} }), h("verdocs-help-icon", { key: '
|
132
|
+
} }), h("verdocs-help-icon", { key: '8f19def75f25b7f2ee71f965c56143dcc8b7c282', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: '41466e48095b4772ac8ab5bc2e9e05b0c73ca974', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
|
133
133
|
this.first_name = e.target.value;
|
134
134
|
this.dirty = true;
|
135
|
-
} }), h("verdocs-text-input", { key: '
|
135
|
+
} }), h("verdocs-text-input", { key: '331c49526c26526a3ec210fa8f682f260d4c4736', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
|
136
136
|
this.last_name = e.target.value;
|
137
137
|
this.dirty = true;
|
138
|
-
} }), h("verdocs-text-input", { key: '
|
138
|
+
} }), h("verdocs-text-input", { key: 'aad65c07b5f0766ce6af3dd3a2410cfc4611e32e', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
|
139
139
|
this.email = e.target.value;
|
140
140
|
this.dirty = true;
|
141
|
-
} }), h("verdocs-text-input", { key: '
|
141
|
+
} }), h("verdocs-text-input", { key: 'b55afcf793356e044ff697ae8091baff552a0590', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
|
142
142
|
this.phone = e.target.value;
|
143
143
|
this.dirty = true;
|
144
|
-
} }), h("div", { key: '
|
144
|
+
} }), h("div", { key: '7532437d5934f7eda0022656e0ca8a42450643c1', class: "row" }, h("div", { key: '7573e7cd0a884cdc05846e073a0d0d5b1ffd219e', class: "input-label" }, "May Delegate:"), h("div", { key: 'c9212910419bcc73325bfda8d8753c8b4fe29157', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'a5a0bda938292cf6bb705e208db3303d0f8977b3', checked: this.delegator, onInput: (e) => {
|
145
145
|
this.delegator = e.target.checked;
|
146
146
|
this.dirty = true;
|
147
|
-
} })), h("verdocs-help-icon", { key: '
|
147
|
+
} })), h("verdocs-help-icon", { key: '4502304dc60abe9c1ccf982f98a4283f3cc1792b', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '6a11b6941fcad80f16a583ab8a362c3b6653adae', class: "buttons" }, h("button", { key: '4f2c667b9c3099f8fa3b2a3237e2f9d891c405de', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '56fb84118a01d750a2ee909feeb5051f393a0915', style: { flex: '1' } }), h("verdocs-button", { key: '1f506b55768bf05096dbfe2b2466eb4c5ed15f58', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '63f65b939ced94f2e8b5e1d7e4e0b10c3d5e810f', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
|
148
148
|
}
|
149
149
|
static get is() { return "verdocs-template-role-properties"; }
|
150
150
|
static get originalStyleUrls() {
|
@@ -38,7 +38,7 @@ export class VerdocsTemplateStar {
|
|
38
38
|
});
|
39
39
|
}
|
40
40
|
render() {
|
41
|
-
return (h(Host, { key: '
|
41
|
+
return (h(Host, { key: '4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02' }, h("div", { key: 'cac3bad8a37bcf044e037391bee73932b95931d1', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5', class: "count" }, this.template.star_counter || '--')));
|
42
42
|
}
|
43
43
|
static get is() { return "verdocs-template-star"; }
|
44
44
|
static get originalStyleUrls() {
|
@@ -8,7 +8,7 @@ export class VerdocsTemplateTags {
|
|
8
8
|
}
|
9
9
|
render() {
|
10
10
|
var _a;
|
11
|
-
return (h(Host, { key: '
|
11
|
+
return (h(Host, { key: '5b52ce24a601aa820868affd555ce4b46935938d' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
12
12
|
}
|
13
13
|
static get is() { return "verdocs-template-tags"; }
|
14
14
|
static get originalStyleUrls() {
|
@@ -75,7 +75,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
|
|
75
75
|
}
|
76
76
|
render() {
|
77
77
|
const height = `${this.renderedHeight}px`;
|
78
|
-
return (h(Host, { key: '
|
78
|
+
return (h(Host, { key: '219a7af5090d897342b5013084a0ee40d2336d83', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
79
79
|
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
80
80
|
// useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
|
81
81
|
// Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
|
@@ -204,18 +204,18 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
|
|
204
204
|
});
|
205
205
|
}
|
206
206
|
render() {
|
207
|
-
return (h(Host, { key: '
|
207
|
+
return (h(Host, { key: '6f4f98311ffbedefc96cbc2f1208e4f471ee1b01' }, h("div", { key: '97383aa90edf3bf8cf77ab3f6986bdd7502de1a9', class: "header" }, h("div", { key: '1af40727c235e732ba7c1265be6d2a6e1d33a4a1', class: "filter" }, h("verdocs-text-input", { key: '23beddb65b55f24545f9dc812655d9c63d96e4f9', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
|
208
208
|
var _a;
|
209
209
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
210
210
|
this.match = e.target.value.trim();
|
211
211
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
212
|
-
} })), h("verdocs-quick-filter", { key: '
|
212
|
+
} })), h("verdocs-quick-filter", { key: '2628e51157d28b5ebe6a9aeb01c526876f6c34ef', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
213
213
|
this.view = e.detail.value;
|
214
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
214
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '959f6844e39181e0cddd5f616e13818e5ab47e65', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
215
215
|
this.status = e.detail.value;
|
216
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
216
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '168930d3039992fc11a6f2715562ecfe714b78f0', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
217
217
|
this.sort = e.detail.value;
|
218
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
218
|
+
} })), this.loading && h("verdocs-spinner", { key: '541adb9e433da92dc7bdb10a7c0945f98e5afaae', mode: "dark", size: 24 }), h("div", { key: '2642cb449ab2e21154f18d6b4e7aec445b41a953', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: '98ad50d3aa6859e0415401fd883127fd8b93cc5c', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
|
219
219
|
var _a;
|
220
220
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
221
221
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -256,7 +256,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
|
|
256
256
|
break;
|
257
257
|
}
|
258
258
|
} }))));
|
259
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
259
|
+
}), !this.initiallyLoaded && (h("div", { key: '163ec5137181c5a7349c74502a29696da9e8dcf2', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'dcfc7cfc78b21072662437b6020ca155ff936334', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
|
260
260
|
this.selectedPage = e.detail.selectedPage;
|
261
261
|
} }))) : (h("div", null))));
|
262
262
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
2
|
import { d as defineCustomElement$1 } from './verdocs-button2.js';
|
3
3
|
|
4
|
-
const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
|
4
|
+
const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 100px;flex:0 0 100px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
|
5
5
|
const VerdocsKbaDialogStyle0 = verdocsKbaDialogCss;
|
6
6
|
|
7
7
|
const QuestionIcon = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;
|
@@ -10,6 +10,7 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
|
|
10
10
|
super();
|
11
11
|
this.__registerHost();
|
12
12
|
this.exit = createEvent(this, "exit", 7);
|
13
|
+
this.pinEntered = createEvent(this, "pinEntered", 7);
|
13
14
|
this.next = createEvent(this, "next", 7);
|
14
15
|
this.step = 1;
|
15
16
|
this.steps = 3;
|
@@ -18,15 +19,21 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
|
|
18
19
|
this.mode = 'choice';
|
19
20
|
this.label = 'PIN';
|
20
21
|
this.placeholder = 'Enter your PIN...';
|
22
|
+
this.recipient = null;
|
21
23
|
this.choices = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];
|
22
24
|
this.response = '';
|
25
|
+
this.answers = [];
|
26
|
+
this.updatedRecipient = null;
|
27
|
+
}
|
28
|
+
componentDidLoad() {
|
29
|
+
this.updatedRecipient = { ...(this.recipient || {}) };
|
23
30
|
}
|
24
31
|
handleCancel() {
|
25
32
|
this.exit.emit();
|
26
33
|
}
|
27
34
|
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
28
35
|
handleDismiss(e) {
|
29
|
-
if (e.target.
|
36
|
+
if (e.target.class === 'background-overlay') {
|
30
37
|
e.preventDefault();
|
31
38
|
this.handleCancel();
|
32
39
|
}
|
@@ -34,8 +41,18 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
|
|
34
41
|
handleDone() {
|
35
42
|
this.next.emit(this.response);
|
36
43
|
}
|
44
|
+
handleConfirmID() {
|
45
|
+
this.next.emit(this.updatedRecipient);
|
46
|
+
}
|
37
47
|
render() {
|
38
|
-
|
48
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
49
|
+
if (this.mode === 'choice') {
|
50
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, this.helptitle), h("div", { class: "help-text" }, this.helptext)))), h("div", { class: "choices" }, this.choices.map((choice, index) => (h("div", { class: `choice ${choice === this.answers[index] ? 'selected' : ''}`, onClick: () => (this.answers[index] = choice) }, choice)))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
51
|
+
}
|
52
|
+
if (this.mode === 'identity') {
|
53
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity"), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, "Identity verification is required"), h("div", { class: "help-text" }, "NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly.")))), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-first" }, "Your Name:", h("span", { class: "required" }, "*")), h("input", { required: true, type: "text", id: "verdocs-kba-first", name: "verdocs-kba-first", placeholder: "First name...", value: (_a = this.updatedRecipient) === null || _a === void 0 ? void 0 : _a.first_name, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, first_name: e.target.value }) }), h("input", { type: "text", id: "verdocs-kba-last", name: "verdocs-kba-last", placeholder: "Last name...", required: true, value: (_b = this.updatedRecipient) === null || _b === void 0 ? void 0 : _b.last_name, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, last_name: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-address" }, "Address:", h("span", { class: "required" }, "*")), h("input", { type: "text", id: "verdocs-kba-address", name: "verdocs-kba-address", placeholder: "Address...", value: (_c = this.updatedRecipient) === null || _c === void 0 ? void 0 : _c.address, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, address: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-city" }, "City:"), h("input", { type: "text", id: "verdocs-kba-city", name: "verdocs-kba-city", placeholder: "City...", value: (_d = this.updatedRecipient) === null || _d === void 0 ? void 0 : _d.city, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, city: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-state" }, "State:"), h("input", { type: "text", id: "verdocs-kba-state", name: "verdocs-kba-state", placeholder: "State...", value: (_e = this.updatedRecipient) === null || _e === void 0 ? void 0 : _e.state, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, state: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-zip" }, "Zip Code:", h("span", { class: "required" }, "*")), h("input", { type: "text", id: "verdocs-kba-zip", name: "verdocs-kba-zip", placeholder: "Zip Code...", required: true, value: (_f = this.updatedRecipient) === null || _f === void 0 ? void 0 : _f.zip, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, zip: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-address" }, "SSN Last 4:"), h("input", { type: "text", id: "verdocs-kba-state", name: "verdocs-kba-state", placeholder: "Last 4 digits of your SSN...", value: (_g = this.updatedRecipient) === null || _g === void 0 ? void 0 : _g.ssn_last_4, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, ssn_last_4: e.target.value }) })), h("div", { class: "buttons" }, h("verdocs-button", { label: "Submit", onClick: () => this.handleConfirmID(), disabled: !((_h = this.updatedRecipient) === null || _h === void 0 ? void 0 : _h.first_name) || !((_j = this.updatedRecipient) === null || _j === void 0 ? void 0 : _j.last_name) || !((_k = this.updatedRecipient) === null || _k === void 0 ? void 0 : _k.address) || !((_l = this.updatedRecipient) === null || _l === void 0 ? void 0 : _l.zip) }))))));
|
54
|
+
}
|
55
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, this.helptitle), h("div", { class: "help-text" }, this.helptext)))), h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) })), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
39
56
|
}
|
40
57
|
static get style() { return VerdocsKbaDialogStyle0; }
|
41
58
|
}, [0, "verdocs-kba-dialog", {
|
@@ -46,8 +63,11 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
|
|
46
63
|
"mode": [1],
|
47
64
|
"label": [1],
|
48
65
|
"placeholder": [1],
|
66
|
+
"recipient": [16],
|
49
67
|
"choices": [16],
|
50
|
-
"response": [32]
|
68
|
+
"response": [32],
|
69
|
+
"answers": [32],
|
70
|
+
"updatedRecipient": [32]
|
51
71
|
}]);
|
52
72
|
function defineCustomElement() {
|
53
73
|
if (typeof customElements === "undefined") {
|
@@ -31,7 +31,7 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsOkDialog e
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
render() {
|
34
|
-
return (h(Host, { key: '
|
34
|
+
return (h(Host, { key: 'f41613ca32a9471277c816d753e7f818ef427fd0', class: this.closed ? 'closed' : '' }, h("div", { key: '570538e2743b23b5f18a1ec6ea3db51dfd314f02', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '17bfc3cfaadc8d10fe27211cd4a0eb48083f7a4b', class: "dialog" }, h("div", { key: 'bc88208d6897a191ef5fda323a74acd3e3c2620e', class: "heading" }, this.heading), h("div", { key: 'bc794df180672198964f32a6c71eff9dd1180db9', class: "content" }, h("div", { key: 'd8618e9b479e64b457bca57838437f91a0677560', class: "message", innerHTML: this.message }), h("div", { key: '101f7819fa69c3cf8f8958a5582835b56cf94775', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: 'e755590fdd93cb9cc7b23a3812377d5216a70aae', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
35
35
|
}
|
36
36
|
static get style() { return VerdocsOkDialogStyle0; }
|
37
37
|
}, [0, "verdocs-ok-dialog", {
|
@@ -21,7 +21,7 @@ const VerdocsQuickFunctions$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsQu
|
|
21
21
|
this.createDocument.emit();
|
22
22
|
}
|
23
23
|
render() {
|
24
|
-
return (h("div", { key: '
|
24
|
+
return (h("div", { key: '5477198aad675bd449cd36d7511db21ed9dae613', class: "container" }, h("p", { key: 'b7e436210675f73956d2b72de2683b22e9ad1def', class: "title" }, "Quick Create"), h("button", { key: '638c4c831fc83d8d6e5c73ff67807c79b02d8c74', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '16d21850165b9b35129d12533dbe32d958093e0b', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
|
25
25
|
}
|
26
26
|
static get style() { return VerdocsQuickFunctionsStyle0; }
|
27
27
|
}, [0, "verdocs-quick-functions", {
|
@@ -10,7 +10,7 @@ const VerdocsSearchTabs$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSearch
|
|
10
10
|
this.selected = 'all';
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return h("div", { key: '
|
13
|
+
return h("div", { key: '94316e73f4d9ec80389a8442a8bb3e2b95b91840' }, "\u00A0");
|
14
14
|
}
|
15
15
|
static get style() { return VerdocsSearchTabsStyle0; }
|
16
16
|
}, [0, "verdocs-search-tabs", {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
|
-
import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, sortFields, envelopeRecipientSubmit, getEnvelope, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, submitKbaPin, integerSequence } from '@verdocs/js-sdk';
|
2
|
+
import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, sortFields, envelopeRecipientSubmit, getEnvelope, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, submitKbaPin, submitKbaIdentity, integerSequence } from '@verdocs/js-sdk';
|
3
3
|
import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils.js';
|
4
4
|
import { c as createTemplateFieldStoreFromEnvelope } from './TemplateFieldStore.js';
|
5
5
|
import { V as VerdocsToast } from './Toast.js';
|
@@ -559,6 +559,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
559
559
|
this.checkRecipientFields();
|
560
560
|
}
|
561
561
|
render() {
|
562
|
+
var _a;
|
562
563
|
if (this.showLoadError) {
|
563
564
|
return (h(Host, null, h("verdocs-ok-dialog", { heading: "Unable to Start Signing", message: `Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`, buttonLabel: "OK", onNext: () => {
|
564
565
|
window.location.reload();
|
@@ -604,6 +605,52 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
604
605
|
});
|
605
606
|
} })))));
|
606
607
|
}
|
608
|
+
if (this.kbaStep === 'identity') {
|
609
|
+
return (h(Host, { class: "kba" }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name))), h("div", { class: "document", style: { paddingTop: '15px' } }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), h("div", { class: "cover" }, h("div", { class: "kba" }, h("verdocs-kba-dialog", { mode: "identity", helptitle: "Document requires identity verification", helptext: "Please complete your contact details to proceed.", recipient: this.recipient, onNext: async (e) => {
|
610
|
+
const recipDetails = e.detail;
|
611
|
+
submitKbaIdentity(this.endpoint, this.envelopeId, this.roleId, {
|
612
|
+
firstName: recipDetails.first_name,
|
613
|
+
lastName: recipDetails.last_name,
|
614
|
+
address: recipDetails.address,
|
615
|
+
city: recipDetails.city,
|
616
|
+
state: recipDetails.state,
|
617
|
+
zip: recipDetails.zip,
|
618
|
+
ssnLast4: recipDetails.ssn_last_4,
|
619
|
+
})
|
620
|
+
.then(r => {
|
621
|
+
console.log('[SIGN] Identity submission result', r);
|
622
|
+
this.kbaStep = r.kba_step;
|
623
|
+
})
|
624
|
+
.catch(e => {
|
625
|
+
var _a, _b;
|
626
|
+
console.log('[SIGN] Error submitting identity', e);
|
627
|
+
VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unable to verify identity.', { style: 'error' });
|
628
|
+
});
|
629
|
+
} })))));
|
630
|
+
}
|
631
|
+
if (this.kbaStep === 'challenge') {
|
632
|
+
return (h(Host, { class: "kba" }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name))), h("div", { class: "document", style: { paddingTop: '15px' } }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), h("div", { class: "cover" }, h("div", { class: "kba" }, h("verdocs-kba-dialog", { mode: "choice", helptitle: "Your identity requires additional verification", helptext: "Please answer the question(s) below to proceed.", recipient: this.recipient, choices: (_a = this.recipient.kba_details) === null || _a === void 0 ? void 0 : _a.questions, onNext: async (e) => {
|
633
|
+
const recipDetails = e.detail;
|
634
|
+
submitKbaIdentity(this.endpoint, this.envelopeId, this.roleId, {
|
635
|
+
firstName: recipDetails.first_name,
|
636
|
+
lastName: recipDetails.last_name,
|
637
|
+
address: recipDetails.address,
|
638
|
+
city: recipDetails.city,
|
639
|
+
state: recipDetails.state,
|
640
|
+
zip: recipDetails.zip,
|
641
|
+
ssnLast4: recipDetails.ssn_last_4,
|
642
|
+
})
|
643
|
+
.then(r => {
|
644
|
+
console.log('[SIGN] Identity submission result', r);
|
645
|
+
this.kbaStep = r.kba_step;
|
646
|
+
})
|
647
|
+
.catch(e => {
|
648
|
+
var _a, _b;
|
649
|
+
console.log('[SIGN] Error submitting identity', e);
|
650
|
+
VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unable to verify identity.', { style: 'error' });
|
651
|
+
});
|
652
|
+
} })))));
|
653
|
+
}
|
607
654
|
return (h(Host, null, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
608
655
|
const pageNumbers = integerSequence(1, envelopeDocument.pages);
|
609
656
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
@@ -220,7 +220,7 @@ const VerdocsSignatureDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsSig
|
|
220
220
|
}
|
221
221
|
*/
|
222
222
|
render() {
|
223
|
-
return (h(Host, { key: '
|
223
|
+
return (h(Host, { key: 'cac125a1ea43ba8780243580f8837dd6afb76b7d', onClick: e => this.handleCancel(e) }, h("div", { key: '8e3ac9bd2feccb69f1a38bb1c528ee77b3124064', class: "dialog" }, h("div", { key: '3f9c153c3e0f0d028654f1ca68d74070f07b8abe', class: "heading" }, "Create Your Signature"), h("div", { key: 'd7c19bd06774d6cd912eb22dbee61643cd9b0ef7', class: "content" }, h("verdocs-text-input", { key: 'fef1ca39e7f47f321a21dc51fa6ed78eb72227d6', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '3f1e138c623eae8a4d1a031f9e9ac9872ed34dbe', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'a02a7459aa1ea8e85696e66d730b5613685ce793', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '79731a3eb6f2e4c23270473d078a0f7bc8e22fd4', class: "buttons" }, h("verdocs-button", { key: '47fef903e84cdeea7245356a78c98d80d5efb970', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'd6e5bc66a5e11d4550613cdc3c24e80dbe952370', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
|
224
224
|
}
|
225
225
|
static get style() { return VerdocsSignatureDialogStyle0; }
|
226
226
|
}, [0, "verdocs-signature-dialog", {
|
@@ -7190,11 +7190,11 @@ const VerdocsStatusIndicator = /*@__PURE__*/ proxyCustomElement(class VerdocsSta
|
|
7190
7190
|
}
|
7191
7191
|
const icon = this.getStatusIcon(status);
|
7192
7192
|
const statusMessage = this.getStatusMessage(status);
|
7193
|
-
return (h(Host, { key: '
|
7193
|
+
return (h(Host, { key: '0d3a55cf87f1a0dba7e235e3b3fb19b7b44e67f5', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
7194
7194
|
e.stopPropagation();
|
7195
7195
|
e.preventDefault();
|
7196
7196
|
this.envelope && this.toggleDropdown();
|
7197
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
7197
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '9d1812f322823609640bbdcde955123f4dfb294e', class: "icon", innerHTML: icon }), h("span", { key: '3db7a2eca6b3a6894a56daace7a367726feb508e', class: "content" }, statusMessage), h("div", { key: 'a0b31ee1a68c854dc781ba6fa729fbde485db23e', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: '2eab9e497070e97fe917ccc76d7c43ab2ae508f7', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
7198
7198
|
}
|
7199
7199
|
static get style() { return VerdocsStatusIndicatorStyle0; }
|
7200
7200
|
}, [0, "verdocs-status-indicator", {
|
@@ -15,7 +15,7 @@ const VerdocsTemplateCard$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
|
|
15
15
|
}
|
16
16
|
render() {
|
17
17
|
var _a, _b, _c, _d;
|
18
|
-
return (h(Host, { key: '
|
18
|
+
return (h(Host, { key: '8c1e1c635b1baa655956acdb25c0dadf7aa7fb37' }, h("span", { key: '27f70562114c4b477a39d2c592ac970958308b6a', class: "name" }, this.template.name), h("span", { key: 'e7d9da9cef9ead160a65a4cee49f030d52b20eb3', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: 'ae53a4cb7e75c6b2af578e2518b601e742aecfb8' }), h("div", { key: 'f493a7d3641fe90d6bf35649664f76b5fc1ee3d3', class: "controls" }, h("div", { key: 'f0ef5225ff60e056166eede4ba69d4999c1a9887', class: "control" }, h("span", { key: '5f3f45383a81584741ee04b1fce6b4720bab9063', class: "icon", innerHTML: StarIcon }), h("span", { key: '9faf96a64292b6529e29186a4bd1e12d9ad3b42b', class: "value" }, this.template.star_counter)), h("div", { key: '2b605818b05ddf5ea9c3ac28f1bad3d0c8a3e3fb', class: "control secondary" }, h("span", { key: 'c12a8f975614144c72060cf9213a7e8081636602', class: "icon", innerHTML: PagesIcon }), h("span", { key: '53dd14ec4e8c0c57bbff3866901d10baa61abc31', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: 'c2e72a02dcb918fe595f2fd7228728bd29b1c816', class: "control secondary" }, h("span", { key: '9ed65ee6703d3db204c7f9619884615d3595f9f2', class: "icon", innerHTML: EmailIcon }), h("span", { key: '805565cdc082e8d76e2dd2db98aeede1eee9810f', class: "value" }, this.template.counter)), h("span", { key: '8914f5b5d9d2395bd60f7fded9d58b4c48f85100', class: "additional-controls", innerHTML: ActionsIcon }))));
|
19
19
|
}
|
20
20
|
static get style() { return VerdocsTemplateCardStyle0; }
|
21
21
|
}, [0, "verdocs-template-card", {
|
@@ -116,7 +116,7 @@ const VerdocsTemplateDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
|
|
116
116
|
}
|
117
117
|
render() {
|
118
118
|
const height = `${this.renderedHeight}px`;
|
119
|
-
return (h(Host, { key: '
|
119
|
+
return (h(Host, { key: '1e8a98b5849ce5cc222baf9f7bcd544456c07a35', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
|
120
120
|
this.fieldStore
|
121
121
|
.get('fields')
|
122
122
|
.filter(field => field && field.page === this.pageNumber)
|
@@ -128,34 +128,34 @@ const VerdocsTemplateRoleProperties = /*@__PURE__*/ proxyCustomElement(class Ver
|
|
128
128
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
129
129
|
// Either all three should be empty, or all three need to be filled
|
130
130
|
const isValid = (!this.email && !this.first_name && !this.last_name) || (isValidEmail(this.email) && !!this.first_name && !!this.last_name);
|
131
|
-
return (h(Host, { key: '
|
131
|
+
return (h(Host, { key: '74dadb6d1937768b7b22b65609383673f2ce7742' }, h("div", { key: '139cb11995cee6b65c984609c0e5fd58a80476f4', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'd5e26b91df346a565776d4a0a9aa6aa226f3b061', class: "dialog" }, h("form", { key: '339d3b836bda41653b462a64d178f1d0e84480c5', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'da65605c4a43e482bee767460cb715dcdc7abb9b', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
|
132
132
|
? 'This role has fields assigned and can no longer be renamed.'
|
133
133
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
134
134
|
this.name = e.target.value;
|
135
135
|
this.dirty = true;
|
136
|
-
} }), h("div", { key: '
|
136
|
+
} }), h("div", { key: '9442291f5be25f224a180b07da6227254ab9876e', class: "row" }, h("div", { key: 'f5242969ab36a97d8cca6ba9e5cf73d27c40c28e', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '63c93d9e1e76b8537e56505f7e3863f864688b98', value: this.type, options: [
|
137
137
|
{ label: 'Signer', value: 'signer' },
|
138
138
|
{ label: 'CC', value: 'cc' },
|
139
139
|
{ label: 'Approver', value: 'approver' },
|
140
140
|
], onInput: (e) => {
|
141
141
|
this.type = e.target.value;
|
142
142
|
this.dirty = true;
|
143
|
-
} }), h("verdocs-help-icon", { key: '
|
143
|
+
} }), h("verdocs-help-icon", { key: '8f19def75f25b7f2ee71f965c56143dcc8b7c282', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: '41466e48095b4772ac8ab5bc2e9e05b0c73ca974', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
|
144
144
|
this.first_name = e.target.value;
|
145
145
|
this.dirty = true;
|
146
|
-
} }), h("verdocs-text-input", { key: '
|
146
|
+
} }), h("verdocs-text-input", { key: '331c49526c26526a3ec210fa8f682f260d4c4736', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
|
147
147
|
this.last_name = e.target.value;
|
148
148
|
this.dirty = true;
|
149
|
-
} }), h("verdocs-text-input", { key: '
|
149
|
+
} }), h("verdocs-text-input", { key: 'aad65c07b5f0766ce6af3dd3a2410cfc4611e32e', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
|
150
150
|
this.email = e.target.value;
|
151
151
|
this.dirty = true;
|
152
|
-
} }), h("verdocs-text-input", { key: '
|
152
|
+
} }), h("verdocs-text-input", { key: 'b55afcf793356e044ff697ae8091baff552a0590', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
|
153
153
|
this.phone = e.target.value;
|
154
154
|
this.dirty = true;
|
155
|
-
} }), h("div", { key: '
|
155
|
+
} }), h("div", { key: '7532437d5934f7eda0022656e0ca8a42450643c1', class: "row" }, h("div", { key: '7573e7cd0a884cdc05846e073a0d0d5b1ffd219e', class: "input-label" }, "May Delegate:"), h("div", { key: 'c9212910419bcc73325bfda8d8753c8b4fe29157', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'a5a0bda938292cf6bb705e208db3303d0f8977b3', checked: this.delegator, onInput: (e) => {
|
156
156
|
this.delegator = e.target.checked;
|
157
157
|
this.dirty = true;
|
158
|
-
} })), h("verdocs-help-icon", { key: '
|
158
|
+
} })), h("verdocs-help-icon", { key: '4502304dc60abe9c1ccf982f98a4283f3cc1792b', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '6a11b6941fcad80f16a583ab8a362c3b6653adae', class: "buttons" }, h("button", { key: '4f2c667b9c3099f8fa3b2a3237e2f9d891c405de', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '56fb84118a01d750a2ee909feeb5051f393a0915', style: { flex: '1' } }), h("verdocs-button", { key: '1f506b55768bf05096dbfe2b2466eb4c5ed15f58', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '63f65b939ced94f2e8b5e1d7e4e0b10c3d5e810f', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
|
159
159
|
}
|
160
160
|
static get style() { return VerdocsTemplateRolePropertiesStyle0; }
|
161
161
|
}, [0, "verdocs-template-role-properties", {
|
@@ -43,7 +43,7 @@ const VerdocsTemplateStar = /*@__PURE__*/ proxyCustomElement(class VerdocsTempla
|
|
43
43
|
});
|
44
44
|
}
|
45
45
|
render() {
|
46
|
-
return (h(Host, { key: '
|
46
|
+
return (h(Host, { key: '4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02' }, h("div", { key: 'cac3bad8a37bcf044e037391bee73932b95931d1', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5', class: "count" }, this.template.star_counter || '--')));
|
47
47
|
}
|
48
48
|
static get style() { return VerdocsTemplateStarStyle0; }
|
49
49
|
}, [0, "verdocs-template-star", {
|
@@ -11,7 +11,7 @@ const VerdocsTemplateTags$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
|
|
11
11
|
}
|
12
12
|
render() {
|
13
13
|
var _a;
|
14
|
-
return (h(Host, { key: '
|
14
|
+
return (h(Host, { key: '5b52ce24a601aa820868affd555ce4b46935938d' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
15
15
|
}
|
16
16
|
static get style() { return VerdocsTemplateTagsStyle0; }
|
17
17
|
}, [0, "verdocs-template-tags", {
|
@@ -82,7 +82,7 @@ const VerdocsUploadDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsUpload
|
|
82
82
|
render() {
|
83
83
|
var _a;
|
84
84
|
const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
|
85
|
-
return (h(Host, { key: '
|
85
|
+
return (h(Host, { key: '5c58d237aa0b9767724b819ebe12dfd959043cf6' }, h("div", { key: '51182662086e2a03a8de959832cd4ccbcf7cdc9a', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'bdcb311759a93b8480a6aa765f0691a9d989a533', class: "upload-dialog-content" }, h("div", { key: '2c55c393d1bca6265b9248ec69be3a7f8c264764', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: 'd84ac8836f527b19988abebff20405ba761bb67c' }, h("div", { key: '13386e107e319e7c23e10042cd423c834c6d4fe0', class: "current-label" }, "Current Attachment"), h("div", { key: '9a249f27b71f2bb6b705a2eb60f88d54db51c63a', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '33486bd63c804320bea7a2d664241fb1c396055a', class: "attachment" }, h("div", { key: '1f7f010de68abc0e8f29ee3768b13598e0261cc0', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '957dccfd827856b62109d27aba2bd42f1ad2d695', class: "name" }, existingFile.name), h("div", { key: '86cbef13368af45a397c3b0a6d49f71a4465a8ac', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: 'a1b32fef7628c54d163fb4b60d5807111735d769', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: '8d8ecd592d7e8315078f2c0319e67464b9838530' }, "Drag and drop your files here"), h("p", { key: 'de7f672655587b7d3f2c86914f89089563c01b8b', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), h("verdocs-button", { key: '03eebfdc500e840c77b2b113d1b2820fe8a678b6', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), h("input", { key: '1e8f8da72ce228f45b515c062ea0e25f1e1b70cf', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: '196f78245ab12c8f13300cbbf66df4d1a3226296', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), !!this.errorMessage && h("div", { key: '553b2c86f2b502a8d63e4abb856e3e2eb3112720', class: "error" }, this.errorMessage), h("div", { key: '25e7a81f406e7ff0d2f64f1cedaa24292d9f3d5f', class: "buttons" }, h("verdocs-button", { key: '350d1c821de9a51ed7ddc511b52925526c0844b1', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'cc9e0d1277d60351e47a1c69b2cb1f3b0848ebac', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: '8740bba0a7ebf6c33fa9821a02146c0ae7ab527d', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
|
86
86
|
// So we don't close the upload dialog
|
87
87
|
e.preventDefault();
|
88
88
|
e.stopPropagation();
|