@verdocs/web-sdk 6.9.12 → 6.10.0
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-adopt-signature-dialog_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +3 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +422 -115
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +6 -5
- package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-preview_6.cjs.entry.js +3 -0
- package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +79 -20
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +6 -5
- package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +3 -0
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +79 -20
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
- package/dist/components/{p-Ce29XBfJ.js → p-CBKrl6B7.js} +2 -2
- package/dist/components/{p-Ce29XBfJ.js.map → p-CBKrl6B7.js.map} +1 -1
- package/dist/components/p-CPYFXW2q.js +3 -0
- package/dist/components/p-CPYFXW2q.js.map +1 -0
- package/dist/components/{p-Bpe5Awxh.js → p-CnoHN1S8.js} +2 -2
- package/dist/components/p-CnoHN1S8.js.map +1 -0
- package/dist/components/{p-BVhOFpVZ.js → p-DfaM_cug.js} +2 -2
- package/dist/components/p-DfaM_cug.js.map +1 -0
- package/dist/components/verdocs-auth.js +1 -1
- package/dist/components/verdocs-auth.js.map +1 -1
- package/dist/components/verdocs-build.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-download-dialog.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +1 -1
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm/verdocs-auth.entry.js +3 -0
- package/dist/esm/verdocs-auth.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +422 -115
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-download-dialog_4.entry.js +6 -5
- package/dist/esm/verdocs-download-dialog_4.entry.js.map +1 -1
- package/dist/esm/verdocs-preview_6.entry.js +3 -0
- package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +80 -21
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +5 -0
- package/dist/verdocs-web-sdk/p-11c3e5bb.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-11c3e5bb.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-2d72560a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-2d72560a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-33cfc977.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-33cfc977.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-43ee0267.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-43ee0267.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-9756028f.entry.js → p-d0e8419b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-d0e8419b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js → p-d60cfa3e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js.map → p-d60cfa3e.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-e608d2bc.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e608d2bc.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js → p-e95723ac.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js.map → p-e95723ac.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-f85f8560.system.entry.js → p-edab1fed.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-edab1fed.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-BVhOFpVZ.js.map +0 -1
- package/dist/components/p-Bpe5Awxh.js.map +0 -1
- package/dist/components/p-DeQsR41s.js +0 -3
- package/dist/components/p-DeQsR41s.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-12676649.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-12676649.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9756028f.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c89d74b2.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-c89d74b2.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f85f8560.system.entry.js.map +0 -1
|
@@ -115,6 +115,14 @@ export class VerdocsSign {
|
|
|
115
115
|
this.polling = true;
|
|
116
116
|
this.renderedPages = {};
|
|
117
117
|
this.pollingInterval = null;
|
|
118
|
+
this.handleDoneDialogDismiss = async () => {
|
|
119
|
+
this.showDone = false;
|
|
120
|
+
if (!this.isDone) {
|
|
121
|
+
this.prepareForViewTransition();
|
|
122
|
+
await new Promise(resolve => requestAnimationFrame(() => resolve()));
|
|
123
|
+
this.isDone = true;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
118
126
|
}
|
|
119
127
|
async componentDidLoad() {
|
|
120
128
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -133,11 +141,7 @@ export class VerdocsSign {
|
|
|
133
141
|
return;
|
|
134
142
|
}
|
|
135
143
|
try {
|
|
136
|
-
|
|
137
|
-
// NOTE: We don't listen to the store here because we are often an independent
|
|
138
|
-
// session and might have a different "view" of the envelope.
|
|
139
|
-
const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);
|
|
140
|
-
this.processAuthResponse(response);
|
|
144
|
+
await this.initSigningSession();
|
|
141
145
|
}
|
|
142
146
|
catch (e) {
|
|
143
147
|
console.log('[SIGN] Error with signing session', e);
|
|
@@ -145,6 +149,56 @@ export class VerdocsSign {
|
|
|
145
149
|
this.showLoadError = true;
|
|
146
150
|
}
|
|
147
151
|
}
|
|
152
|
+
async initSigningSession() {
|
|
153
|
+
console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);
|
|
154
|
+
// NOTE: We don't listen to the store here because we are often an independent
|
|
155
|
+
// session and might have a different "view" of the envelope.
|
|
156
|
+
const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);
|
|
157
|
+
this.processAuthResponse(response);
|
|
158
|
+
}
|
|
159
|
+
async retrySigningSession() {
|
|
160
|
+
var _a, _b, _c;
|
|
161
|
+
this.showLoadError = false;
|
|
162
|
+
this.loading = true;
|
|
163
|
+
try {
|
|
164
|
+
await this.initSigningSession();
|
|
165
|
+
}
|
|
166
|
+
catch (e) {
|
|
167
|
+
console.log('[SIGN] Error with signing session', e);
|
|
168
|
+
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
|
169
|
+
this.showLoadError = true;
|
|
170
|
+
this.loading = false;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
prepareForViewTransition() {
|
|
174
|
+
var _a, _b, _c;
|
|
175
|
+
this.stopPolling();
|
|
176
|
+
(_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
177
|
+
this.observer = null;
|
|
178
|
+
(_b = document.getElementById('air-datepicker-global-container')) === null || _b === void 0 ? void 0 : _b.remove();
|
|
179
|
+
(_c = document.getElementById('verdocs-sign-header')) === null || _c === void 0 ? void 0 : _c.remove();
|
|
180
|
+
}
|
|
181
|
+
async handleSubmitSuccess() {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
this.submitting = false;
|
|
184
|
+
this.submitted = true;
|
|
185
|
+
this.nextSubmits = false;
|
|
186
|
+
this.signingProgressMode = 'completed';
|
|
187
|
+
try {
|
|
188
|
+
const envelope = await getEnvelope(this.endpoint, this.envelopeId);
|
|
189
|
+
this.envelope = envelope;
|
|
190
|
+
Store.updateEnvelope(this.envelopeId, envelope);
|
|
191
|
+
const updatedRecipient = (_a = envelope.recipients) === null || _a === void 0 ? void 0 : _a.find(r => { var _a; return r.role_name === ((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.role_name); });
|
|
192
|
+
if (updatedRecipient) {
|
|
193
|
+
this.recipient = updatedRecipient;
|
|
194
|
+
}
|
|
195
|
+
(_b = this.envelopeUpdated) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope, event: 'submitted' });
|
|
196
|
+
}
|
|
197
|
+
catch (e) {
|
|
198
|
+
console.warn('[SIGN] Error refreshing envelope after submit', e);
|
|
199
|
+
}
|
|
200
|
+
this.showDone = true;
|
|
201
|
+
}
|
|
148
202
|
componentDidRender() {
|
|
149
203
|
const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;
|
|
150
204
|
const headerEl = document.getElementById('verdocs-sign-header');
|
|
@@ -300,7 +354,8 @@ export class VerdocsSign {
|
|
|
300
354
|
handleClickAgree() {
|
|
301
355
|
this.submitting = true;
|
|
302
356
|
console.log('[SIGN] Accepting disclosures', this.disclosures);
|
|
303
|
-
|
|
357
|
+
const localeData = Intl.DateTimeFormat().resolvedOptions();
|
|
358
|
+
envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, this.disclosures, { locale: localeData.locale, timezone: localeData.timeZone })
|
|
304
359
|
.then(() => {
|
|
305
360
|
var _a;
|
|
306
361
|
this.nextButtonLabel = 'Next';
|
|
@@ -597,16 +652,17 @@ export class VerdocsSign {
|
|
|
597
652
|
async handleNext() {
|
|
598
653
|
var _a;
|
|
599
654
|
if (this.nextSubmits) {
|
|
655
|
+
if (this.submitted) {
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
600
658
|
try {
|
|
601
659
|
// Patches the date picker to be forcibly removed if still showing during submission
|
|
602
660
|
(_a = document.getElementById('air-datepicker-global-container')) === null || _a === void 0 ? void 0 : _a.remove();
|
|
603
661
|
this.submitting = true;
|
|
604
|
-
const
|
|
662
|
+
const localeData = Intl.DateTimeFormat().resolvedOptions();
|
|
663
|
+
const result = await envelopeRecipientSubmit(this.endpoint, this.envelopeId, this.roleId, { locale: localeData.locale, timezone: localeData.timeZone });
|
|
605
664
|
console.log('[SIGN] Submitted successfully', result);
|
|
606
|
-
|
|
607
|
-
// NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which
|
|
608
|
-
// the new node is to be inserted is not a child of this node.
|
|
609
|
-
window.location.reload();
|
|
665
|
+
await this.handleSubmitSuccess();
|
|
610
666
|
}
|
|
611
667
|
catch (e) {
|
|
612
668
|
console.log('[SIGN] Error submitting', e);
|
|
@@ -652,6 +708,9 @@ export class VerdocsSign {
|
|
|
652
708
|
}
|
|
653
709
|
// See if everything that "needs to be" filled in is, and all "fillable fields" are valid
|
|
654
710
|
checkRecipientFields() {
|
|
711
|
+
if (this.submitted || this.isDone) {
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
655
714
|
const invalidFields = this.getRecipientFields().filter(field => !isFieldValid(field, this.getRecipientFields()));
|
|
656
715
|
if (invalidFields.length < 1) {
|
|
657
716
|
this.nextButtonLabel = 'Finish';
|
|
@@ -1016,7 +1075,7 @@ export class VerdocsSign {
|
|
|
1016
1075
|
var _a;
|
|
1017
1076
|
if (this.showLoadError) {
|
|
1018
1077
|
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: () => {
|
|
1019
|
-
|
|
1078
|
+
this.retrySigningSession();
|
|
1020
1079
|
} })));
|
|
1021
1080
|
}
|
|
1022
1081
|
if (!this.envelope) {
|
|
@@ -1032,8 +1091,7 @@ export class VerdocsSign {
|
|
|
1032
1091
|
return (h(Host, { class: { agreed: this.agreed } }, h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: (e) => {
|
|
1033
1092
|
e.preventDefault();
|
|
1034
1093
|
e.stopPropagation();
|
|
1035
|
-
this.
|
|
1036
|
-
this.isDone = true;
|
|
1094
|
+
this.handleDoneDialogDismiss();
|
|
1037
1095
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
|
1038
1096
|
}
|
|
1039
1097
|
if (this.delegating) {
|
|
@@ -1056,7 +1114,9 @@ export class VerdocsSign {
|
|
|
1056
1114
|
envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId)
|
|
1057
1115
|
.then(r => {
|
|
1058
1116
|
console.log('[SIGN] Decline result', r);
|
|
1059
|
-
|
|
1117
|
+
this.declining = false;
|
|
1118
|
+
this.fatalErrorHeader = 'Declined';
|
|
1119
|
+
this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';
|
|
1060
1120
|
})
|
|
1061
1121
|
.catch(e => {
|
|
1062
1122
|
console.warn('[SIGN] Error declining signing session', e);
|
|
@@ -1124,7 +1184,7 @@ export class VerdocsSign {
|
|
|
1124
1184
|
const totalPages = this.envelope.documents.reduce((acc, doc) => acc + doc.pages, 0);
|
|
1125
1185
|
const pageOptions = integerSequence(1, totalPages).map(p => ({ label: p.toString(), value: p.toString() }));
|
|
1126
1186
|
let globalPageCounter = 0;
|
|
1127
|
-
return (h(Host, null, this.toolbarStyle === 'menu' && (h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater &&
|
|
1187
|
+
return (h(Host, null, this.toolbarStyle === 'menu' && (h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && !this.submitted &&
|
|
1128
1188
|
(() => {
|
|
1129
1189
|
const remaining = this.getRequiredTotalCount() - this.getRequiredFilledCount();
|
|
1130
1190
|
const optionalLeft = this.getOptionalUnfilledCount();
|
|
@@ -1132,7 +1192,7 @@ export class VerdocsSign {
|
|
|
1132
1192
|
return (h("span", { class: "remaining-count" }, remaining, " required field", remaining === 1 ? '' : 's', " left"));
|
|
1133
1193
|
}
|
|
1134
1194
|
return (h("span", { class: "remaining-count" }, h("span", { class: "check-icon", innerHTML: CheckCircleIcon }), "All required fields complete", optionalLeft > 0 && (h("div", { class: "review-optional" }, h("span", { class: "separator" }, "| "), h("span", { onClick: () => this.handleNextOptional() }, "Review ", optionalLeft, " optional")))));
|
|
1135
|
-
})(), !this.finishLater && (h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel === 'Next' ? 'Next Required' : this.nextButtonLabel, disabled: !this.agreed || this.submitting, onClick: () => this.handleNext() })), h("div", { class: { 'icon-button': true, 'minus': true, 'disabled': this.zoomLevel === 'normal', 'magnify': true }, innerHTML: ToolbarMinusIcon, onClick: () => this.handleZoomOut() }), h("div", { class: { 'icon-button': true, 'plus': true, 'disabled': this.zoomLevel === 'zoom2', 'magnify': true }, innerHTML: ToolbarPlusIcon, onClick: () => this.handleZoomIn() }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) })))), this.toolbarStyle === 'controls' && (h("div", { class: "controls-toolbar" }, h("div", { class: "left-controls" }, h("div", { class: "title" }, this.envelope.name)), h("div", { class: "center-controls" }, h("span", { class: "label" }, "Page"), h("div", { class: "select-wrapper" }, h("verdocs-select-input", { options: pageOptions, value: this.pageNumber.toString(), onInput: e => this.handlePageSelect(e) })), h("span", { class: "count" }, "of ", totalPages)), h("div", { class: "right-controls" }, h("verdocs-button", { class: "mobile-next-button", label: this.nextButtonLabel, size: "xsmall", disabled: !this.agreed || this.submitting, onClick: () => this.handleNext() }), h("div", { class: { 'icon-button': true, 'minus': true, 'disabled': this.zoomLevel === 'normal' }, innerHTML: ToolbarMinusIcon, onClick: () => this.handleZoomOut() }), h("div", { class: { 'icon-button': true, 'plus': true, 'disabled': this.zoomLevel === 'zoom2' }, innerHTML: ToolbarPlusIcon, onClick: () => this.handleZoomIn() }), h("div", { class: "icon-button download", innerHTML: ToolbarDownloadIcon, onClick: () => this.handleOptionSelected({ detail: { id: 'download' } }) }), h("div", { class: "icon-button print", innerHTML: ToolbarPrintIcon, onClick: () => this.handleOptionSelected({ detail: { id: 'print' } }) })))), h("div", { class: `document signed-document-container zoom-${this.zoomLevel}` }, (this.envelope.documents || []).map(envelopeDocument => {
|
|
1195
|
+
})(), !this.finishLater && !this.submitted && (h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel === 'Next' ? 'Next Required' : this.nextButtonLabel, disabled: !this.agreed || this.submitting || this.submitted, onClick: () => this.handleNext() })), h("div", { class: { 'icon-button': true, 'minus': true, 'disabled': this.zoomLevel === 'normal', 'magnify': true }, innerHTML: ToolbarMinusIcon, onClick: () => this.handleZoomOut() }), h("div", { class: { 'icon-button': true, 'plus': true, 'disabled': this.zoomLevel === 'zoom2', 'magnify': true }, innerHTML: ToolbarPlusIcon, onClick: () => this.handleZoomIn() }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater && !this.submitted ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) })))), this.toolbarStyle === 'controls' && (h("div", { class: "controls-toolbar" }, h("div", { class: "left-controls" }, h("div", { class: "title" }, this.envelope.name)), h("div", { class: "center-controls" }, h("span", { class: "label" }, "Page"), h("div", { class: "select-wrapper" }, h("verdocs-select-input", { options: pageOptions, value: this.pageNumber.toString(), onInput: e => this.handlePageSelect(e) })), h("span", { class: "count" }, "of ", totalPages)), h("div", { class: "right-controls" }, !this.submitted && (h("verdocs-button", { class: "mobile-next-button", label: this.nextButtonLabel, size: "xsmall", disabled: !this.agreed || this.submitting, onClick: () => this.handleNext() })), h("div", { class: { 'icon-button': true, 'minus': true, 'disabled': this.zoomLevel === 'normal' }, innerHTML: ToolbarMinusIcon, onClick: () => this.handleZoomOut() }), h("div", { class: { 'icon-button': true, 'plus': true, 'disabled': this.zoomLevel === 'zoom2' }, innerHTML: ToolbarPlusIcon, onClick: () => this.handleZoomIn() }), h("div", { class: "icon-button download", innerHTML: ToolbarDownloadIcon, onClick: () => this.handleOptionSelected({ detail: { id: 'download' } }) }), h("div", { class: "icon-button print", innerHTML: ToolbarPrintIcon, onClick: () => this.handleOptionSelected({ detail: { id: 'print' } }) })))), h("div", { class: `document signed-document-container zoom-${this.zoomLevel}` }, (this.envelope.documents || []).map(envelopeDocument => {
|
|
1136
1196
|
const pageNumbers = integerSequence(1, envelopeDocument.pages);
|
|
1137
1197
|
return (h(Fragment, null, this.envelope.documents.length > 1 && (h("div", { class: "document-separator" }, h("div", { innerHTML: DocumentPageIcon }), h("span", null, envelopeDocument.name))), pageNumbers.map(pageNumber => {
|
|
1138
1198
|
var _a;
|
|
@@ -1154,8 +1214,7 @@ export class VerdocsSign {
|
|
|
1154
1214
|
this.isDone = true;
|
|
1155
1215
|
this.showFinishLater = false;
|
|
1156
1216
|
} })), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
|
|
1157
|
-
this.
|
|
1158
|
-
this.isDone = true;
|
|
1217
|
+
this.handleDoneDialogDismiss();
|
|
1159
1218
|
} })), this.adoptingSignature && (h("verdocs-adopt-signature-dialog", { name: formatFullName(this.recipient), nameLocked: !!((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.name_locked), onNext: async (e) => {
|
|
1160
1219
|
console.log('[SIGN] Adopting signature/initials block', e.detail);
|
|
1161
1220
|
this.showSpinner = true;
|
|
@@ -1193,7 +1252,7 @@ export class VerdocsSign {
|
|
|
1193
1252
|
}, onExit: () => (this.adoptingSignature = false) })), (this.submitting || this.showSpinner) && (h("verdocs-portal", null, h("div", { class: "spinner-overlay" }, h("verdocs-spinner", null)))), this.showDownloadDialog && (h("verdocs-download-dialog", { signed: this.envelope.signed, polling: this.polling, documents: this.envelope.documents, onExit: () => {
|
|
1194
1253
|
this.showDownloadDialog = false;
|
|
1195
1254
|
this.stopPolling();
|
|
1196
|
-
}, onDownload: this.handleOnDownload })), !this.loading && !this.isDone && (h("verdocs-sign-footer", { endpoint: this.endpoint, envelopeId: this.envelopeId, isDone: this.isDone, onAskQuestion: (e) => {
|
|
1255
|
+
}, onDownload: e => this.handleOnDownload(e) })), !this.loading && !this.isDone && !this.submitted && (h("verdocs-sign-footer", { endpoint: this.endpoint, envelopeId: this.envelopeId, isDone: this.isDone, onAskQuestion: (e) => {
|
|
1197
1256
|
askQuestion(this.endpoint, this.envelopeId, this.roleId, { question: e.detail.question })
|
|
1198
1257
|
.then(() => VerdocsToast('Your question has been sent.', { style: 'success' }))
|
|
1199
1258
|
.catch(e => {
|