@verdocs/web-sdk 4.2.56 → 4.2.58
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/{utils-18c5653a.js → utils-813f2cbf.js} +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +22 -18
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +4 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +23 -22
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview_10.cjs.entry.js +14 -9
- package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +20 -19
- package/dist/cjs/verdocs-sign.cjs.entry.js +6 -5
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- 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-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +2 -2
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +2 -2
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +2 -2
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +3 -3
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +1 -1
- package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +2 -2
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +7 -6
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -3
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +8 -0
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +23 -20
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js +2 -1
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js +2 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +22 -21
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +2 -2
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +3 -4
- package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +1 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +1 -1
- package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js +2 -2
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +21 -19
- package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +5 -2
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
- 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/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +1 -1
- package/dist/components/verdocs-contact-picker2.js +20 -17
- package/dist/components/verdocs-envelope-recipient-link2.js +2 -1
- package/dist/components/verdocs-envelope-recipient-summary2.js +2 -1
- package/dist/components/verdocs-envelope-sidebar.js +22 -21
- package/dist/components/verdocs-envelopes-list.js +2 -2
- package/dist/components/verdocs-field-textbox2.js +1 -1
- package/dist/components/verdocs-send2.js +7 -5
- package/dist/components/verdocs-sign.js +4 -3
- package/dist/components/verdocs-status-indicator2.js +3 -4
- package/dist/components/verdocs-template-role-properties2.js +21 -19
- package/dist/components/verdocs-template-roles2.js +5 -2
- package/dist/components/verdocs-template-sender2.js +1 -1
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-c9afd888.js → utils-467fcc6a.js} +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +22 -18
- package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +4 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +23 -22
- package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-preview_10.entry.js +14 -9
- package/dist/esm/verdocs-radio-button_3.entry.js +20 -19
- package/dist/esm/verdocs-sign.entry.js +6 -5
- package/dist/esm/verdocs-status-indicator.entry.js +3 -4
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +2 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-c9afd888.js → utils-467fcc6a.js} +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.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-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button_3.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-document-page_2.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-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +2 -3
- package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +2 -1
- package/dist/verdocs-web-sdk/p-03a228e4.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-46d5e65d.entry.js → p-05ec94da.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-32b04720.entry.js → p-09174e70.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-15cd7156.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3b9789bc.entry.js → p-18a58a00.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e1dbe05e.system.entry.js → p-18ef3307.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-af561085.entry.js → p-2fa50153.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-308491d1.entry.js → p-338fcdf4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-25ee52fd.system.entry.js → p-33fc5994.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0b2cfd99.system.entry.js → p-362c6d47.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d0393b1a.system.entry.js → p-47dde2b1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-80c86f5d.system.entry.js → p-49899f3c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4bc07959.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-42e914f9.entry.js → p-519db979.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d774211f.entry.js → p-530f073d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-721bc4db.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-756f658c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-33199d44.system.entry.js → p-7995e412.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-caed6d29.system.entry.js → p-86126812.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-babcfe8a.entry.js → p-93e5d84b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-193e1a1f.entry.js → p-978cc0c7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c8986ba4.system.js → p-9a8c90f4.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dba54b3b.entry.js → p-9ce7ab9f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d5172685.system.entry.js → p-a798dd2e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a84f9767.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ba259b92.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e48b07b7.js → p-c86983bc.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8f6dc2a1.system.entry.js → p-d381cbc3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3c674cb3.entry.js → p-d7b00716.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-dd4b01d3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-7a2259bb.system.entry.js → p-e8b96519.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0fcfddb7.entry.js → p-f00e5323.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f01e1e3a.system.entry.js → p-f2c8fd36.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f403fe1c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ab1a39f5.system.entry.js → p-f7a5a59a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78b22f4e.system.entry.js → p-fba124de.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d9a9728a.system.entry.js → p-fc5c0024.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +5 -5
- package/dist/verdocs-web-sdk/p-028f7781.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1a32c240.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-216f335e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-24a9f119.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5d223ab3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-83302d64.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b551b4ec.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ce57fe21.system.entry.js +0 -1
- /package/dist/cjs/{format-2e654370.js → format-187ebc36.js} +0 -0
- /package/dist/cjs/{index-1142b665.js → index-5f130ec0.js} +0 -0
- /package/dist/esm/{format-4fde138a.js → format-2bf71189.js} +0 -0
- /package/dist/esm/{index-5b8ab2d2.js → index-0329eed3.js} +0 -0
- /package/dist/esm-es5/{format-4fde138a.js → format-2bf71189.js} +0 -0
- /package/dist/esm-es5/{index-5b8ab2d2.js → index-0329eed3.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-e1938a4d.system.js → p-3f088fd6.system.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-399d3c01.js → p-630835f4.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-37bb615d.js → p-edaec1b6.js} +0 -0
- /package/dist/verdocs-web-sdk/{p-478b574c.system.js → p-f24d887c.system.js} +0 -0
@@ -84,7 +84,8 @@ const VerdocsEnvelopeRecipientLink = class {
|
|
84
84
|
}
|
85
85
|
// const recipientsWithActions = getRecipientsWithActions(this.store.state); const showLinkButton = recipientCanAct(recipient, recipientsWithActions); const link =
|
86
86
|
// this.links[recipient.role_name]; const gettingLink = this.gettingLinks[recipient.role_name]; return (
|
87
|
-
|
87
|
+
const fullName = `${this.recipient.first_name || ''} ${this.recipient.last_name || ''}`.trim() || this.recipient.full_name || '';
|
88
|
+
return (h(Host, null, h("div", { class: "summary-content" }, h("h1", { class: "summary-title" }, "In-Person Signing Link"), h("div", { class: "summary-rows" }, h("div", { class: "summary-recipient" }, h("div", { class: "role-name" }, this.recipient.role_name), h("div", { class: "role-details" }, h("div", { class: "role-info" }, h("div", { class: "role-full-name" }, fullName, " (", this.recipient.email || this.recipient.phone, ")"), !this.link && (h("verdocs-button", { size: "small", variant: "outline", label: this.gettingLink ? 'Loading...' : 'Get Link', disabled: this.gettingLink, onClick: () => this.getLink(this.recipient) }))), this.link && (h("div", { class: "link-wrapper" }, h("div", { class: "link" }, this.link), h("verdocs-button", { size: "small", variant: "outline", label: "Copy", onClick: () => this.copyLink(this.link) })))))), h("div", { class: "buttons" }, h("verdocs-button", { size: "small", label: "Done", onClick: e => this.handleDone(e) })))));
|
88
89
|
}
|
89
90
|
};
|
90
91
|
VerdocsEnvelopeRecipientLink.style = VerdocsEnvelopeRecipientLinkStyle0;
|
@@ -193,7 +194,8 @@ const VerdocsEnvelopeRecipientSummary = class {
|
|
193
194
|
const showLinkButton = recipientCanAct(recipient, recipientsWithActions);
|
194
195
|
const link = this.links[recipient.role_name];
|
195
196
|
const gettingLink = this.gettingLinks[recipient.role_name];
|
196
|
-
|
197
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
198
|
+
return (h("div", { class: "summary-recipient" }, h("div", { class: "role-name" }, recipient.role_name), h("div", { class: "role-details" }, h("div", { class: "role-info" }, h("div", { class: "role-full-name" }, fullName, " (", recipient.email || recipient.phone, ")"), showLinkButton && !link && h("verdocs-button", { size: "small", variant: "outline", label: "Get Link", disabled: gettingLink, onClick: () => this.getLink(recipient) })), link && (h("div", { class: "link-wrapper" }, h("div", { class: "link" }, link), h("verdocs-button", { size: "small", variant: "outline", label: "Copy", onClick: () => this.copyLink(link) }))))));
|
197
199
|
})), (this.canSendAnother || this.canView || this.canDone) && (h("div", { class: "buttons" }, this.canSendAnother && h("verdocs-button", { size: "small", label: "Send Another", onClick: e => this.handleAnother(e) }), this.canView && h("verdocs-button", { size: "small", label: "View Now", onClick: e => this.handleView(e) }), this.canDone && h("verdocs-button", { size: "small", label: "Done", onClick: e => this.handleDone(e) }))))));
|
198
200
|
}
|
199
201
|
};
|
@@ -4,7 +4,7 @@ import { g as getEnvelopeStore } from './EnvelopeStore-712b9ca3.js';
|
|
4
4
|
import { F as FORMAT_TIMESTAMP } from './Types-e4a6eba5.js';
|
5
5
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
6
6
|
import { S as SDKError } from './errors-887f1e88.js';
|
7
|
-
import { d as dateFns } from './index-
|
7
|
+
import { d as dateFns } from './index-0329eed3.js';
|
8
8
|
import './index-e58b15f6.js';
|
9
9
|
import './index-7588a071.js';
|
10
10
|
|
@@ -150,77 +150,77 @@ const VerdocsEnvelopeSidebar = class {
|
|
150
150
|
}
|
151
151
|
histories.forEach(history => {
|
152
152
|
var _a;
|
153
|
-
const
|
154
|
-
const
|
153
|
+
const recipient = (_a = this.store.state) === null || _a === void 0 ? void 0 : _a.recipients.find(recipient => recipient.role_name === history.role_name);
|
154
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
155
155
|
switch (history.event.toLowerCase()) {
|
156
156
|
case 'recipient:signed':
|
157
|
-
entries.push({ icon: 'gesture', message: `Signed by ${
|
157
|
+
entries.push({ icon: 'gesture', message: `Signed by ${fullName}.`, date: new Date(history.created_at) });
|
158
158
|
break;
|
159
159
|
case 'recipient:declined':
|
160
|
-
entries.push({ icon: 'clear', message: `Declined by ${
|
160
|
+
entries.push({ icon: 'clear', message: `Declined by ${fullName}.`, date: new Date(history.created_at) });
|
161
161
|
break;
|
162
162
|
case 'recipient:opened':
|
163
163
|
switch (history.event_detail) {
|
164
164
|
// TODO: Sync these up with reality
|
165
165
|
case 'email':
|
166
166
|
case 'mail':
|
167
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
167
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via email.`, date: new Date(history.created_at) });
|
168
168
|
break;
|
169
169
|
case 'sms':
|
170
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
170
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via SMS.`, date: new Date(history.created_at) });
|
171
171
|
break;
|
172
172
|
case 'in_person_link':
|
173
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
173
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via In-person link.`, date: new Date(history.created_at) });
|
174
174
|
break;
|
175
175
|
case 'in_app':
|
176
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
176
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via dashboard.`, date: new Date(history.created_at) });
|
177
177
|
break;
|
178
178
|
default:
|
179
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
179
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}.`, date: new Date(history.created_at) });
|
180
180
|
}
|
181
181
|
break;
|
182
182
|
case 'recipient:submitted':
|
183
183
|
switch (history.event_detail) {
|
184
184
|
// TODO: Sync up
|
185
185
|
case 'approver':
|
186
|
-
entries.push({ icon: 'check_circle', message: `Approved by ${
|
186
|
+
entries.push({ icon: 'check_circle', message: `Approved by ${fullName}.`, date: new Date(history.created_at) });
|
187
187
|
break;
|
188
188
|
default:
|
189
|
-
entries.push({ icon: 'send', message: `Submitted by ${
|
189
|
+
entries.push({ icon: 'send', message: `Submitted by ${fullName}.`, date: new Date(history.created_at) });
|
190
190
|
break;
|
191
191
|
}
|
192
192
|
break;
|
193
193
|
case 'recipient:prepared':
|
194
|
-
entries.push({ icon: 'send', message: `Prepared by ${
|
194
|
+
entries.push({ icon: 'send', message: `Prepared by ${fullName}.`, date: new Date(history.created_at) });
|
195
195
|
break;
|
196
196
|
case 'recipient:claimed':
|
197
197
|
if (history.event_detail === 'guest') {
|
198
|
-
entries.push({ icon: 'account_circle', message: `${
|
198
|
+
entries.push({ icon: 'account_circle', message: `${fullName} claimed the Verdoc as a guest.`, date: new Date(history.created_at) });
|
199
199
|
}
|
200
200
|
else if (history.event_detail === 'profile') {
|
201
|
-
entries.push({ icon: 'verified_user', message: `${
|
201
|
+
entries.push({ icon: 'verified_user', message: `${fullName} claimed the Verdoc as a verified user.`, date: new Date(history.created_at) });
|
202
202
|
}
|
203
203
|
break;
|
204
204
|
case 'recipient:agreed':
|
205
|
-
entries.push({ icon: 'done', message: `${
|
205
|
+
entries.push({ icon: 'done', message: `${fullName} agreed to use electronic records and signatures.`, date: new Date(history.created_at) });
|
206
206
|
break;
|
207
207
|
case 'recipient:invited':
|
208
208
|
if (history.event_detail === 'sms') {
|
209
|
-
entries.push({ icon: 'textsms', message: `${
|
209
|
+
entries.push({ icon: 'textsms', message: `${fullName} has been invited via SMS.`, date: new Date(history.created_at) });
|
210
210
|
}
|
211
211
|
else {
|
212
|
-
entries.push({ icon: 'mail', message: `${
|
212
|
+
entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
|
213
213
|
}
|
214
214
|
break;
|
215
215
|
case 'invitation:resent':
|
216
216
|
entries.push({
|
217
217
|
icon: 'mail',
|
218
|
-
message: `Invitation was resent to ${
|
218
|
+
message: `Invitation was resent to ${fullName} ${history.event_detail === 'reminder' ? ' by reminder' : ''}.`,
|
219
219
|
date: new Date(history.created_at),
|
220
220
|
});
|
221
221
|
break;
|
222
222
|
case 'envelope:cc':
|
223
|
-
entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${
|
223
|
+
entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${fullName}.`, date: new Date(history.created_at) });
|
224
224
|
break;
|
225
225
|
case 'recipient:delegated':
|
226
226
|
entries.push({ icon: 'people', message: history.event_detail, date: new Date(history.created_at) });
|
@@ -242,7 +242,7 @@ const VerdocsEnvelopeSidebar = class {
|
|
242
242
|
entries.push({ icon: 'cancel', message: `Envelope was canceled by the creator.`, date: new Date(history.created_at) });
|
243
243
|
break;
|
244
244
|
case 'owner:get_in_person_link':
|
245
|
-
entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${
|
245
|
+
entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${recipient}.`, date: new Date(history.created_at) });
|
246
246
|
break;
|
247
247
|
default:
|
248
248
|
console.log('[SIDEBAR] Unknown history type', history);
|
@@ -271,13 +271,14 @@ const VerdocsEnvelopeSidebar = class {
|
|
271
271
|
_0.recipients.map((recipient, index) => {
|
272
272
|
const canGetInPersonLink = recipient.status !== 'submitted' && recipient.status !== 'canceled' && recipient.status !== 'declined';
|
273
273
|
const canSendReminder = this.canResendRecipient(recipient);
|
274
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
274
275
|
return (h("div", { class: "recipient-detail" }, h("div", { class: "recipient-header" }, h("div", { class: "recipient-number" }, index + 1), h("div", { class: "recipient-type" }, recipient.role_name), h("div", { class: { 'recipient-status': true, [recipient.status]: true } }, recipient.status), isEnvelopeOwner && !functionsDisabled && (h("verdocs-dropdown", { onOptionSelected: item => this.handleRecipientAction(recipient, item.detail.id), options: [
|
275
276
|
{ id: 'reminder', label: 'Send Reminder', disabled: !canSendReminder },
|
276
277
|
{ id: 'inperson', label: 'Get In-Person Link', disabled: !canGetInPersonLink },
|
277
278
|
// {id: 'modify', label: 'Modify Recipient', disabled: !this.canModifyRecipient(recipient)},
|
278
279
|
// TODO: Details dialog
|
279
280
|
// {id:'details',label: 'View Details'},
|
280
|
-
] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" },
|
281
|
+
] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" }, fullName), h("div", { class: "recipient-name" }, recipient.email), h("div", { class: "recipient-name" }, recipient.phone))));
|
281
282
|
}), isEnvelopeOwner && (h("verdocs-button", { class: "manage-recipients-button", variant: "standard", label: "Cancel Verdoc", onClick: () => (this.showCancelDialog = !functionsDisabled), disabled: functionsDisabled })))), this.activeTab === 3 && (h("div", { class: "content" }, h("div", { class: "title" }, "History"), historyEntries.map(entry => (h("div", { class: "history-entry" }, h("div", { class: "activity-icon", innerHTML: ActivityIcons[entry.icon] || entry.icon }), h("div", { class: "activity-details" }, h("div", { class: "activity-text" }, entry.message), h("div", { class: "activity-date" }, dateFns.format(entry.date, FORMAT_TIMESTAMP)))))))), this.showRecipientDialog && (h("verdocs-envelope-recipient-link", { envelopeId: this.envelopeId, roleName: this.showRecipientDialog, onNext: () => (this.showRecipientDialog = '') })), this.showManageDialog && (h("verdocs-envelope-recipient-summary", { envelopeId: this.envelopeId, canView: false, onAnother: () => {
|
282
283
|
var _a;
|
283
284
|
this.showManageDialog = false;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-3476681c.js';
|
2
2
|
import { VerdocsEndpoint, getEnvelopes, integerSequence, getRecipientsWithActions, userCanCancelEnvelope, userCanAct, cancelEnvelope } from '@verdocs/js-sdk';
|
3
|
-
import { s as saveEnvelopesAsZip } from './utils-
|
3
|
+
import { s as saveEnvelopesAsZip } from './utils-467fcc6a.js';
|
4
4
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
5
5
|
import { S as SDKError } from './errors-887f1e88.js';
|
6
6
|
import './_commonjsHelpers-bdec4bbd.js';
|
7
7
|
import './Types-e4a6eba5.js';
|
8
|
-
import './index-
|
8
|
+
import './index-0329eed3.js';
|
9
9
|
|
10
10
|
const verdocsEnvelopesListCss = "@-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-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}";
|
11
11
|
const VerdocsEnvelopesListStyle0 = verdocsEnvelopesListCss;
|
@@ -226,7 +226,7 @@ const VerdocsEnvelopesList = class {
|
|
226
226
|
else {
|
227
227
|
this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);
|
228
228
|
}
|
229
|
-
} }), h("div", { class: "vert-spacer" }), h("span", { innerHTML: DocumentIcon, class: "envelope-icon" }), h("div", { class: "envelope-name" }, envelope.name, ":\u00A0
|
229
|
+
} }), h("div", { class: "vert-spacer" }), h("span", { innerHTML: DocumentIcon, class: "envelope-icon" }), h("div", { class: "envelope-name" }, envelope.name, ":\u00A0", ' ', h("div", { class: "envelope-recipients" }, envelope.recipients.map(r => `${r.first_name || ''} ${r.last_name || ''}`.trim() || r.full_name || '').join(', '))), h("div", { class: "vert-spacer" }), h("verdocs-status-indicator", { envelope: envelope, style: { width: '125px' } }), h("div", { class: "vert-spacer" }), h("div", { class: "last-modified" }, new Date(envelope.updated_at).toLocaleString()), h("div", { class: "vert-spacer" }), h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => {
|
230
230
|
var _a, _b;
|
231
231
|
switch (e.detail.id) {
|
232
232
|
case 'view':
|
@@ -248,7 +248,7 @@ const VerdocsEnvelopesList = class {
|
|
248
248
|
break;
|
249
249
|
}
|
250
250
|
} }))));
|
251
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
251
|
+
}), !this.initiallyLoaded && (h("div", { key: 'fcea4e8de649f7e811adfd2465e3ec59b5d14289', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: '9f69370d4263290168b89d746c8d9adf25ea87fb', 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 => {
|
252
252
|
this.selectedPage = e.detail.selectedPage;
|
253
253
|
} }))) : (h("div", null))));
|
254
254
|
}
|
@@ -6,8 +6,8 @@ import { g as getTemplateRoleStore, a as getRoleIndex } from './TemplateRoleStor
|
|
6
6
|
import { S as SettingsIcon } from './Icons-faf0377f.js';
|
7
7
|
import { c as commonjsGlobal } from './_commonjsHelpers-bdec4bbd.js';
|
8
8
|
import { a as FORMAT_DATE, F as FORMAT_TIMESTAMP } from './Types-e4a6eba5.js';
|
9
|
-
import { d as dateFns } from './index-
|
10
|
-
import { n as format } from './format-
|
9
|
+
import { d as dateFns } from './index-0329eed3.js';
|
10
|
+
import { n as format } from './format-2bf71189.js';
|
11
11
|
import './index-e58b15f6.js';
|
12
12
|
|
13
13
|
const verdocsFieldAttachmentCss = "@-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-field-attachment{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:24px;height:24px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-attachment label{top:-14px;left:-1px;height:14px;color:white;padding:0 4px;font-size:9px;line-height:13px;position:absolute;background:#4a4a99;border-top-left-radius:2px;border-top-right-radius:2px}verdocs-field-attachment svg{width:16px;height:16px}verdocs-field-attachment.disabled svg{opacity:0.5}verdocs-field-attachment.disabled svg span{cursor:inherit}verdocs-field-attachment .attach{cursor:inherit;width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-field-attachment.required .attach{border:1px solid #cc0000}verdocs-field-attachment.focused{-webkit-animation:verdocs-field-pulse 0.4s 1;animation:verdocs-field-pulse 0.4s 1}verdocs-field-attachment verdocs-button-panel{top:1px;left:-19px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-attachment verdocs-button-panel[data-active],verdocs-field-attachment verdocs-button-panel:hover{opacity:1}verdocs-field-attachment verdocs-button-panel .icon svg{fill:#333333}verdocs-field-attachment verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-attachment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-attachment .settings-icon svg{fill:#707ae5}verdocs-field-attachment .settings-icon:hover{opacity:1}";
|
@@ -799,7 +799,7 @@ const VerdocsFieldTextbox = class {
|
|
799
799
|
interact.dynamicDrop(true);
|
800
800
|
if (this.editable) {
|
801
801
|
interact(this.el).resizable({
|
802
|
-
edges: { top: true, bottom:
|
802
|
+
edges: { top: true, bottom: false, left: true, right: true },
|
803
803
|
modifiers: [
|
804
804
|
interact.modifiers.restrictSize({
|
805
805
|
min: { width: 30, height: 15 },
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, c as createEvent } from './index-3476681c.js';
|
2
|
-
import { d as dateFns } from './index-
|
3
|
-
import { t as toDate, c as constructFrom, a as constants$1, d as differenceInCalendarDays, s as startOfISOWeekYear, g as getISOWeekYear, b as startOfDay, i as isValid, e as startOfISOWeek, f as getTimezoneOffsetInMilliseconds, h as startOfWeek, j as startOfYear, k as defaultOptions, l as defaultLocale, m as addLeadingZeros, n as format, o as getWeekYear, p as getWeek, q as getISOWeek, r as longFormatters, u as protectedTokens, v as lightFormatters, w as startOfWeekYear, x as getDayOfYear, y as isDate } from './format-
|
2
|
+
import { d as dateFns } from './index-0329eed3.js';
|
3
|
+
import { t as toDate, c as constructFrom, a as constants$1, d as differenceInCalendarDays, s as startOfISOWeekYear, g as getISOWeekYear, b as startOfDay, i as isValid, e as startOfISOWeek, f as getTimezoneOffsetInMilliseconds, h as startOfWeek, j as startOfYear, k as defaultOptions, l as defaultLocale, m as addLeadingZeros, n as format, o as getWeekYear, p as getWeek, q as getISOWeek, r as longFormatters, u as protectedTokens, v as lightFormatters, w as startOfWeekYear, x as getDayOfYear, y as isDate } from './format-2bf71189.js';
|
4
4
|
|
5
5
|
var add$1 = {};
|
6
6
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3476681c.js';
|
2
2
|
import { integerSequence } from '@verdocs/js-sdk';
|
3
|
-
import { h as renderedTextWidth } from './utils-
|
3
|
+
import { h as renderedTextWidth } from './utils-467fcc6a.js';
|
4
4
|
import { c as createPopper } from './popper-0fbeff6d.js';
|
5
5
|
import './_commonjsHelpers-bdec4bbd.js';
|
6
6
|
import './Types-e4a6eba5.js';
|
7
|
-
import './index-
|
7
|
+
import './index-0329eed3.js';
|
8
8
|
|
9
9
|
const verdocsPaginationCss = "@-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-pagination{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-pagination .page-button{height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;cursor:pointer;font-size:16px;font-weight:600;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#33364b;border:1px solid #654dcb}verdocs-pagination .page-button svg{width:18px;height:18px}verdocs-pagination .page-button.selected{cursor:default;color:#ffffff;background:#654dcb}verdocs-pagination .ellipsis{width:38px;height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;line-height:32px;-ms-flex-pack:center;justify-content:center;color:#33364b}";
|
10
10
|
const VerdocsPaginationStyle0 = verdocsPaginationCss;
|
@@ -6,9 +6,9 @@ import { g as getTemplateStore } from './TemplateStore-ebd8f5f6.js';
|
|
6
6
|
import { S as SDKError } from './errors-887f1e88.js';
|
7
7
|
import { D as DocIcon, P as PngIcon, J as JpgIcon, a as PdfIcon, F as FileIcon$1, b as PageCountIcon, T as TrashIcon } from './Icons-faf0377f.js';
|
8
8
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
9
|
-
import { d as dateFns } from './index-
|
9
|
+
import { d as dateFns } from './index-0329eed3.js';
|
10
10
|
import { i as interact } from './interact.min-a71beb3d.js';
|
11
|
-
import { b as updateCssTransform, c as removeCssTransform, g as getFieldId, d as defaultWidth, e as defaultHeight } from './utils-
|
11
|
+
import { b as updateCssTransform, c as removeCssTransform, g as getFieldId, d as defaultWidth, e as defaultHeight } from './utils-467fcc6a.js';
|
12
12
|
import './index-e58b15f6.js';
|
13
13
|
import './index-7588a071.js';
|
14
14
|
import './_commonjsHelpers-bdec4bbd.js';
|
@@ -132,7 +132,8 @@ const VerdocsSend = class {
|
|
132
132
|
this.sessionContacts = [];
|
133
133
|
this.sessionContacts.push({
|
134
134
|
id: profile.id,
|
135
|
-
|
135
|
+
first_name: profile.first_name,
|
136
|
+
last_name: profile.last_name,
|
136
137
|
email: profile.email,
|
137
138
|
phone: profile.phone,
|
138
139
|
});
|
@@ -181,9 +182,9 @@ const VerdocsSend = class {
|
|
181
182
|
const level = role.sequence - 1;
|
182
183
|
rolesAtLevel[level] || (rolesAtLevel[level] = []);
|
183
184
|
const id = `r-${level}-${rolesAtLevel[level].length}`;
|
184
|
-
rolesAtLevel[level].push({ ...role, id, role_name: role.name, first_name:
|
185
|
-
if (role.
|
186
|
-
this.rolesCompleted[id] = { ...role, id, role_name: role.name, first_name:
|
185
|
+
rolesAtLevel[level].push({ ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name });
|
186
|
+
if (role.first_name && (role.email || role.phone)) {
|
187
|
+
this.rolesCompleted[id] = { ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name };
|
187
188
|
}
|
188
189
|
});
|
189
190
|
}
|
@@ -221,6 +222,7 @@ const VerdocsSend = class {
|
|
221
222
|
}
|
222
223
|
}
|
223
224
|
handleSelectContact(e, role) {
|
225
|
+
console.log('selc', e.detail);
|
224
226
|
e.preventDefault();
|
225
227
|
this.rolesCompleted[role.id] = { ...role, ...e.detail };
|
226
228
|
this.showPickerForId = '';
|
@@ -285,7 +287,7 @@ const VerdocsSend = class {
|
|
285
287
|
var _a, _b, _c, _d, _e, _f;
|
286
288
|
const unknown = !role.email;
|
287
289
|
const elId = `verdocs-send-recipient-${role.role_name}`;
|
288
|
-
return unknown ? (h("div", { class: "recipient", "data-ri": getRoleIndex(this.roleStore, role.role_name), "data-rn": role.role_name, style: { backgroundColor: getRGBA(getRoleIndex(this.roleStore, role.role_name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.
|
290
|
+
return unknown ? (h("div", { class: "recipient", "data-ri": getRoleIndex(this.roleStore, role.role_name), "data-rn": role.role_name, style: { backgroundColor: getRGBA(getRoleIndex(this.roleStore, role.role_name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.first_name) !== null && _b !== void 0 ? _b : role.role_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(this.roleStore, role.role_name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.first_name) !== null && _e !== void 0 ? _e : role.first_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: ((_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role), onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))));
|
289
291
|
})))), h("div", { class: `level level-done` }, this.getLevelIcon(levels.length), h("div", { class: "complete" }, "Signing Complete"))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", size: "small", variant: "outline", onClick: e => this.handleCancel(e), disabled: this.sending }), h("verdocs-button", { label: "Send", size: "small", disabled: !allRolesAssigned || this.sending, onClick: e => this.handleSend(e) }), this.sending && h("verdocs-spinner", null))));
|
290
292
|
}
|
291
293
|
static get watchers() { return {
|
@@ -1318,7 +1320,9 @@ const VerdocsTemplateRoles = class {
|
|
1318
1320
|
sequence,
|
1319
1321
|
message: '',
|
1320
1322
|
order,
|
1321
|
-
full_name:
|
1323
|
+
full_name: null,
|
1324
|
+
first_name: '',
|
1325
|
+
last_name: '',
|
1322
1326
|
email: '',
|
1323
1327
|
phone: '',
|
1324
1328
|
type: 'signer',
|
@@ -1363,7 +1367,8 @@ const VerdocsTemplateRoles = class {
|
|
1363
1367
|
console.log('Rendering', roleNames, sequences);
|
1364
1368
|
return (h(Host, null, h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("h5", null, "Roles and Workflow"), h("div", { class: "participants" }, h("div", { class: "left-line" }), h("div", { class: "row" }, h("div", { class: "icon", innerHTML: startIcon }), h("div", { class: "row-roles" }, h("div", { class: "sender" }, h("span", { class: "label" }, "Sender:"), " ", senderLabels[(_d = (_c = this.templateStore) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.sender], ' ', h("div", { class: "settings-button", innerHTML: settingsIcon, onClick: () => (this.showingSenderDialog = true), "aria-role": "button" })))), h("div", { class: "row add-sequence", "data-sequence": 0 }, h("div", { class: "icon", innerHTML: plusIcon }), h("div", { class: "row-roles" }, h("div", { class: "dropzone", "data-sequence": 0, "data-order": 1 }, "Add Step"))), sequences.map(sequence => (h(Fragment, null, h("div", { class: "row" }, h("div", { class: "icon", innerHTML: stepIcon }), h("div", { class: "row-roles" }, h("div", { class: "dropzone", "data-order": 0.5, "data-sequence": sequence }), this.getRolesAtSequence(sequence).map(role => {
|
1365
1369
|
const unknown = !role.email;
|
1366
|
-
|
1370
|
+
console.log('ras', sequence, role);
|
1371
|
+
return unknown ? (h(Fragment, null, h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(this.roleStore, role.name)) }, "data-rolename": role.name, "data-sequence": sequence, "data-order": role.order }, h("span", { class: "type-icon", innerHTML: role.type === 'signer' ? iconSigner : role.type === 'cc' ? iconCC : iconApprover }), role.name, " ", h("div", { class: "settings-button", innerHTML: settingsIcon, onClick: () => (this.showingRoleDialog = role.name), "aria-role": "button" })), h("div", { class: "dropzone", "data-order": role.order + 0.5, "data-sequence": sequence }))) : (h(Fragment, null, h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(this.roleStore, role.name)) }, "data-rolename": role.name, "data-sequence": sequence, "data-order": role.order }, h("span", { class: "type-icon", innerHTML: role.type === 'signer' ? iconSigner : role.type === 'cc' ? iconCC : iconApprover }), role.first_name, " ", h("div", { class: "settings-button", innerHTML: settingsIcon, onClick: () => (this.showingRoleDialog = role.name), "aria-role": "button" })), h("div", { class: "dropzone", "data-order": role.order + 0.5, "data-sequence": sequence })));
|
1367
1372
|
}), h("button", { class: "add-role", innerHTML: plusIcon, onClick: e => this.handleAddRole(e, sequence) }))), sequences.length > 0 && (h("div", { class: "row add-sequence", "data-sequence": sequence }, h("div", { class: "row-roles" }, h("div", { class: "icon", innerHTML: plusIcon }), h("div", { class: "dropzone", "data-sequence": sequence + 1, "data-order": 1 }, "Add Step"))))))), h("div", { class: "row", "data-sequence": sequences.length + 1 }, h("div", { class: "row-roles" }, h("div", { class: "icon", innerHTML: plusIcon }), h("button", { class: "add-step", innerHTML: plusIcon, onClick: e => this.handleAddStep(e, sequences.length + 1) }))), h("div", { class: "row" }, h("div", { class: "icon", innerHTML: doneIcon }), h("div", { class: "row-roles" }, h("div", { class: "complete" }, "Document Complete")))), roleNames.length < 1 && (h("div", { class: "empty" }, "You must add at least one Role before proceeding.", h("br", null), " Click the ", h("span", { innerHTML: plusIcon }), " Add button above to get started.")), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "OK", size: "small", onClick: () => this.handleSubmit(), disabled: roleNames.length < 1 }))), this.showingRoleDialog && (h("verdocs-template-role-properties", { endpoint: this.endpoint, templateId: this.templateId, roleName: this.showingRoleDialog, onClose: () => {
|
1368
1373
|
this.showingRoleDialog = null;
|
1369
1374
|
}, onDelete: async () => {
|
@@ -45,7 +45,8 @@ const VerdocsTemplateRoleProperties = class {
|
|
45
45
|
this.saving = false;
|
46
46
|
this.name = '';
|
47
47
|
this.type = 'signer';
|
48
|
-
this.
|
48
|
+
this.first_name = '';
|
49
|
+
this.last_name = '';
|
49
50
|
this.email = '';
|
50
51
|
this.phone = '';
|
51
52
|
this.delegator = false;
|
@@ -64,18 +65,13 @@ const VerdocsTemplateRoleProperties = class {
|
|
64
65
|
}
|
65
66
|
this.templateStore = await getTemplateStore(this.endpoint, this.templateId, false);
|
66
67
|
this.fieldStore = getTemplateFieldStore(this.templateId);
|
67
|
-
// FIXME: This was createTemplateRoleStore, which it didn't have to be. But that shouldn't break anything,
|
68
|
-
// and using create() will reload the roles from the TEMPLATE, not the server. Creating/deleting roles
|
69
|
-
// isn't updating the template, so if you add a role and then pop this dialog the store will be reloaded
|
70
|
-
// without the newly-added role in place causing the dialog (and future role edits) to break. We should
|
71
|
-
// a) when creating/updating/deleting roles, update the template/store not just the roles, and b) review
|
72
|
-
// and confirm that all things that look at roles are mapped to the role store, not the template.
|
73
68
|
this.roleStore = getTemplateRoleStore(this.templateId);
|
74
69
|
const editingRole = this.roleStore.state.roles.find(role => role.name === this.roleName);
|
75
70
|
if (editingRole) {
|
76
71
|
this.name = editingRole.name;
|
77
72
|
this.type = editingRole.type;
|
78
|
-
this.
|
73
|
+
this.first_name = editingRole.first_name;
|
74
|
+
this.last_name = editingRole.last_name;
|
79
75
|
this.email = editingRole.email;
|
80
76
|
this.phone = editingRole.phone;
|
81
77
|
this.delegator = editingRole.delegator;
|
@@ -94,7 +90,8 @@ const VerdocsTemplateRoleProperties = class {
|
|
94
90
|
if (editingRole) {
|
95
91
|
this.name = editingRole.name;
|
96
92
|
this.type = editingRole.type;
|
97
|
-
this.
|
93
|
+
this.first_name = editingRole.first_name;
|
94
|
+
this.last_name = editingRole.last_name;
|
98
95
|
this.email = editingRole.email;
|
99
96
|
this.phone = editingRole.phone;
|
100
97
|
this.delegator = editingRole.delegator;
|
@@ -108,7 +105,8 @@ const VerdocsTemplateRoleProperties = class {
|
|
108
105
|
updateTemplateRole(this.endpoint, this.templateId, this.roleName, {
|
109
106
|
name: this.name,
|
110
107
|
type: this.type,
|
111
|
-
|
108
|
+
first_name: this.first_name,
|
109
|
+
last_name: this.last_name,
|
112
110
|
email: this.email,
|
113
111
|
phone: this.phone,
|
114
112
|
delegator: this.delegator,
|
@@ -142,31 +140,34 @@ const VerdocsTemplateRoleProperties = class {
|
|
142
140
|
}
|
143
141
|
render() {
|
144
142
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
145
|
-
return (h(Host, { key: '
|
143
|
+
return (h(Host, { key: '446fc361d36870bf7f6bdfcfb813037ba8066e3f' }, h("div", { key: 'aa0c18d50efe53ffb09df9a68c7362d5377ac0cb', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: '7ff81072a30e3ea52d6016578e9267f0eb3030f7', class: "dialog" }, h("form", { key: '4f6a1edbf94b5373ff6fb576ba0c4651aacb0292', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'a146c853e81467503fbe778f8501878ac9270475', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
|
146
144
|
? 'This role has fields assigned and can no longer be renamed.'
|
147
145
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
148
146
|
this.name = e.target.value;
|
149
147
|
this.dirty = true;
|
150
|
-
} }), h("div", { key: '
|
148
|
+
} }), h("div", { key: 'eb3f826aabcc520b9dd96b7aa551b1705ed28657', class: "row" }, h("div", { key: 'e327959efc08f9698a54aa8fa00b407dbf419b05', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: 'bb37591e1dc0cd438067331a17e8ad8a748d237e', value: this.type, options: [
|
151
149
|
{ label: 'Signer', value: 'signer' },
|
152
150
|
{ label: 'CC', value: 'cc' },
|
153
151
|
{ label: 'Approver', value: 'approver' },
|
154
152
|
], onInput: (e) => {
|
155
153
|
this.type = e.target.value;
|
156
154
|
this.dirty = true;
|
157
|
-
} }), h("verdocs-help-icon", { key: '
|
158
|
-
this.
|
155
|
+
} }), h("verdocs-help-icon", { key: 'bdbe5e238bc66245bc831bef4dd05e5233e264de', 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: '51b6bf958457eeeac73c8f1b6b969b28e21398af', 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) => {
|
156
|
+
this.first_name = e.target.value;
|
159
157
|
this.dirty = true;
|
160
|
-
} }), h("verdocs-text-input", { key: '
|
158
|
+
} }), h("verdocs-text-input", { key: '4a2d6fcd8eb34e4b36480cec4b4b01b28df68126', 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) => {
|
159
|
+
this.last_name = e.target.value;
|
160
|
+
this.dirty = true;
|
161
|
+
} }), h("verdocs-text-input", { key: 'e3c39363a61870605c2ddfc11cc6b4200f7ed18d', 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) => {
|
161
162
|
this.email = e.target.value;
|
162
163
|
this.dirty = true;
|
163
|
-
} }), h("verdocs-text-input", { key: '
|
164
|
+
} }), h("verdocs-text-input", { key: '221e6c33a231192f5052e8e5a19698430a0d2fdd', 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) => {
|
164
165
|
this.phone = e.target.value;
|
165
166
|
this.dirty = true;
|
166
|
-
} }), h("div", { key: '
|
167
|
+
} }), h("div", { key: 'e16a35b56433ad45f3a38755b2e7a24d8b53f9a1', class: "row" }, h("div", { key: 'e19e5538651cc16687c502cfbe17d30abe843f64', class: "input-label" }, "May Delegate:"), h("div", { key: '44ca712eec2c45195003059838910443f9542e58', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '5e88249d935ea1fd4deb7ab3d53c08655d87fce9', checked: this.delegator, onInput: (e) => {
|
167
168
|
this.delegator = e.target.checked;
|
168
169
|
this.dirty = true;
|
169
|
-
} })), h("verdocs-help-icon", { key: '
|
170
|
+
} })), h("verdocs-help-icon", { key: 'b7f12517079d993dc619f4abfae454507fe1aefb', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '04ab4e88fc2ecb74b8db91fbc43ef3e2ab9ac292', class: "buttons" }, h("button", { key: '3ac6e0de3f50216624c06aa52bba6c57847a1f52', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: 'e8e1c40859fd8902a32324a907960730e1da42d6', style: { flex: '1' } }), h("verdocs-button", { key: '1640057293784c41239faeba6deedf76f487c8be', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'a87cba644f418a7edae4b0d64ef7f88c7bfaf5bb', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
|
170
171
|
}
|
171
172
|
};
|
172
173
|
VerdocsTemplateRoleProperties.style = VerdocsTemplateRolePropertiesStyle0;
|
@@ -233,7 +234,7 @@ const VerdocsTemplateSender = class {
|
|
233
234
|
});
|
234
235
|
}
|
235
236
|
render() {
|
236
|
-
return (h(Host, { key: '
|
237
|
+
return (h(Host, { key: '9e9ef64cde93a41755f5ef65c83fc4b1bb9ee01b' }, h("div", { key: 'a61e16463bb714f638183e5c8c345949c79628d1', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '6a05996d6b580d4ddbe8cc572a564aa4fdd88816', class: "dialog" }, h("div", { key: 'e756c920bff6d5ee85ac5fdc6e8eb2f7e1a3f0b5', class: "options" }, h("div", { key: '6d982838a3f40ca4102766a0c3baa68a08d71306', class: "option" }, h("verdocs-radio-button", { key: '2a818db6d423fc7853001b929b32397851fd4d03', name: "template-sender", value: 'everyone', checked: this.sender === 'everyone', onInput: () => this.handleSelectSetting('everyone') }), h("div", { key: '528abe8e247f25b2604a1c416cd5c2c750a9c91e', class: "description" }, h("div", { key: '36c2f98411689f5cbde72126d40d4977f88f30d5', class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { key: 'da8f47ff1109354760cb4d4c108915344047fa72', text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { key: '2bb6c38c70166847282fb84156db0e82d3b4b7ed', class: "option" }, h("verdocs-radio-button", { key: 'b32b4ebaad9cea2e326e64b14a146d77ce9ac688', name: "template-sender", value: 'everyone_as_creator', checked: this.sender === 'everyone_as_creator', onInput: () => this.handleSelectSetting('everyone_as_creator') }), h("div", { key: '4bc7df2433d7c910810c10b4dec2a2def1f65872', class: "description" }, h("div", { key: '2a519c9e9445483b2d42acc5a84f64c29f201698', class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { key: '595192635e702c82b30b10a0dc01f6645c124cf7', text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { key: '7043b0d4cfa7d496c8ed74aa48367092b71dac1a', class: "option" }, h("verdocs-radio-button", { key: 'a140410593b31efdd671143f3f8ae9d879169610', name: "template-sender", value: 'organization_member', checked: this.sender === 'organization_member', onInput: () => this.handleSelectSetting('organization_member') }), h("div", { key: 'bc6fe482b77823d369d02015878c651e52b861fb', class: "description" }, h("div", { key: '540eeecb14a47a5a243974ecfd1d3d747808686a', class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { key: '7268b0f914c9eaef3767ed2aad0cd21d824b0639', text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { key: 'dbff363f43edd13ab98744a90a54343a2cd884ef', class: "option" }, h("verdocs-radio-button", { key: 'e0cf3a3d06064b4e14bd85f3993fb4aa6e48b578', name: "template-sender", value: 'organization_member_as_creator', checked: this.sender === 'organization_member_as_creator', onInput: () => this.handleSelectSetting('organization_member_as_creator') }), h("div", { key: 'e1f2a4d7700cf4f9a647cdd5004ae82c7e082e39', class: "description" }, h("div", { key: 'ccbb7eae66fabd9f148c860c0fee51cbfdaecedb', class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { key: '8180a0a23de8d6c1e027db40bd18ed99c9ebd6af', text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { key: '1ef46894cb6b02701c6ae3598758bebefa0675d1', class: "option" }, h("verdocs-radio-button", { key: '36c97de57f438532068f9f132ece7c3d122e08e7', name: "template-sender", value: 'creator', checked: this.sender === 'creator', onInput: () => this.handleSelectSetting('creator') }), h("div", { key: '2bfa370b704ea584184fa5fe87178dcef1b90353', class: "description" }, h("div", { key: '436064827af589be38206212c23e9dfdba8f5e30', class: "name" }, "Me"), h("verdocs-help-icon", { key: 'a7be4de3d89bba37f2d8711725165d885b5fc20a', text: "Only I can use this template." })))), h("div", { key: '7e232f0c77b522a9a4cee610eceee784d89aff00', class: "buttons" }, h("verdocs-button", { key: '350d156285cfe7f595deed97112715c1398bf740', label: "Close", onClick: () => this.handleClose() }))))));
|
237
238
|
}
|
238
239
|
};
|
239
240
|
VerdocsTemplateSender.style = VerdocsTemplateSenderStyle0;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-3476681c.js';
|
2
2
|
import { VerdocsEndpoint, getSigningSession, getEnvelope, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, envelopeRecipientSubmit, uploadEnvelopeFieldAttachment, fullNameToInitials, integerSequence } from '@verdocs/js-sdk';
|
3
|
-
import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils-
|
3
|
+
import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils-467fcc6a.js';
|
4
4
|
import { a as createTemplateFieldStoreFromEnvelope } from './TemplateFieldStore-002f3d4c.js';
|
5
5
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
6
6
|
import { S as SDKError } from './errors-887f1e88.js';
|
7
7
|
import './_commonjsHelpers-bdec4bbd.js';
|
8
8
|
import './Types-e4a6eba5.js';
|
9
|
-
import './index-
|
9
|
+
import './index-0329eed3.js';
|
10
10
|
import './index-e58b15f6.js';
|
11
11
|
|
12
12
|
const verdocsSignCss = "@-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-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}";
|
@@ -401,7 +401,7 @@ const VerdocsSign = class {
|
|
401
401
|
}
|
402
402
|
}
|
403
403
|
attachFieldAttributes(pageInfo, field, el) {
|
404
|
-
var _a;
|
404
|
+
var _a, _b, _c;
|
405
405
|
el.addEventListener('input', (e) => {
|
406
406
|
// console.log('[SIGN] onfieldInput', e.detail, e.target.value);
|
407
407
|
// These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
|
@@ -429,8 +429,9 @@ const VerdocsSign = class {
|
|
429
429
|
el.setAttribute('page', pageInfo.pageNumber);
|
430
430
|
el.setAttribute('xScale', pageInfo.xScale);
|
431
431
|
el.setAttribute('yScale', pageInfo.yScale);
|
432
|
-
|
433
|
-
el.setAttribute('
|
432
|
+
const fullName = `${((_a = this.recipient) === null || _a === void 0 ? void 0 : _a.first_name) || ''} ${((_b = this.recipient) === null || _b === void 0 ? void 0 : _b.last_name) || ''}`.trim() || ((_c = this.recipient) === null || _c === void 0 ? void 0 : _c.full_name) || '';
|
433
|
+
el.setAttribute('initials', fullNameToInitials(fullName));
|
434
|
+
el.setAttribute('name', fullName);
|
434
435
|
}
|
435
436
|
handlePageRendered(e) {
|
436
437
|
const pageInfo = e.detail;
|
@@ -7026,8 +7026,7 @@ const VerdocsStatusIndicator = class {
|
|
7026
7026
|
const leftOffset = ENTRY_PADDING / 2 + leftoverSpace / 2;
|
7027
7027
|
recipients.forEach((recipient, index) => {
|
7028
7028
|
var _a;
|
7029
|
-
const
|
7030
|
-
const name = `${first} ${last === null || last === void 0 ? void 0 : last.substring(0, 1)}`;
|
7029
|
+
const name = `${recipient.first_name || ''} ${recipient.last_name || (''.substring(0, 1))}`;
|
7031
7030
|
const entity = {
|
7032
7031
|
id: recipient.id,
|
7033
7032
|
text: name,
|
@@ -7189,11 +7188,11 @@ const VerdocsStatusIndicator = class {
|
|
7189
7188
|
}
|
7190
7189
|
const icon = this.getStatusIcon(status);
|
7191
7190
|
const statusMessage = this.getStatusMessage(status);
|
7192
|
-
return (h(Host, { key: '
|
7191
|
+
return (h(Host, { key: '94fb6a69e0c386c1261756e7d56006e6d8adcf58', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
7193
7192
|
e.stopPropagation();
|
7194
7193
|
e.preventDefault();
|
7195
7194
|
this.envelope && this.toggleDropdown();
|
7196
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
7195
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '18a63e9450c3541ee21761956abdadcb35f89c37', class: "icon", innerHTML: icon }), h("span", { key: '165b82636651f16261eb9ee4aba00592630cbb28', class: "content" }, statusMessage), h("div", { key: '32dec0a7c5f48c432e41928fa7f64acaa2530b6f', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: '6964d9ab9b96149cc8207a5a38433442512df0a2', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
7197
7196
|
}
|
7198
7197
|
};
|
7199
7198
|
VerdocsStatusIndicator.style = VerdocsStatusIndicatorStyle0;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-3476681c.js';
|
2
2
|
import { VerdocsEndpoint, getTemplateDocumentPageDisplayUri } from '@verdocs/js-sdk';
|
3
3
|
import { g as getTemplateFieldStore } from './TemplateFieldStore-002f3d4c.js';
|
4
|
-
import { t as throttle, i as getControlStyles, g as getFieldId } from './utils-
|
4
|
+
import { t as throttle, i as getControlStyles, g as getFieldId } from './utils-467fcc6a.js';
|
5
5
|
import { c as createPopper } from './popper-0fbeff6d.js';
|
6
6
|
import './index-e58b15f6.js';
|
7
7
|
import './_commonjsHelpers-bdec4bbd.js';
|
8
8
|
import './Types-e4a6eba5.js';
|
9
|
-
import './index-
|
9
|
+
import './index-0329eed3.js';
|
10
10
|
|
11
11
|
const verdocsTemplateDocumentPageCss = "@-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-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";
|
12
12
|
const VerdocsTemplateDocumentPageStyle0 = verdocsTemplateDocumentPageCss;
|
@@ -42,7 +42,7 @@ const VerdocsTemplateStar = class {
|
|
42
42
|
});
|
43
43
|
}
|
44
44
|
render() {
|
45
|
-
return (h(Host, { key: '
|
45
|
+
return (h(Host, { key: '02bbcc99ccb3fbce1d8bad4b2ff5b7fabee24132' }, h("div", { key: '4bfa868d8709b6b0d4f673635973b3ec94a1880c', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '0b5bf70bf88058ad49fd587be937ce2d61052858', class: "count" }, this.template.star_counter || '--')));
|
46
46
|
}
|
47
47
|
};
|
48
48
|
VerdocsTemplateStar.style = VerdocsTemplateStarStyle0;
|