@verdocs/web-sdk 4.2.57 → 4.2.60
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 +14 -11
- 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 +2 -2
- 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 +27 -14
- 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 +21 -12
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -3
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +7 -4
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +18 -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/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 +12 -9
- 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-send2.js +21 -11
- 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 +14 -11
- 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 +2 -2
- 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 +28 -15
- 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 +4 -23
- package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +2 -1
- package/dist/types/components.d.ts +4 -4
- 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-17f27f15.system.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-8bedbce7.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-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-b7d033d1.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-51ecab4b.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-7a2259bb.system.entry.js → p-e8b96519.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ee92a1fc.entry.js +1 -0
- 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-f50e73e6.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 +2 -2
- 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-24a9f119.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-25ee52fd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5d223ab3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-68ff6623.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-83302d64.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b7ef23c9.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
@@ -44,7 +44,7 @@ export class VerdocsToggle {
|
|
44
44
|
"references": {
|
45
45
|
"IToggleIconButtons": {
|
46
46
|
"location": "local",
|
47
|
-
"path": "/Users/chad/projects/verdocs/
|
47
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/controls/verdocs-toggle/verdocs-toggle.tsx",
|
48
48
|
"id": "src/components/controls/verdocs-toggle/verdocs-toggle.tsx::IToggleIconButtons"
|
49
49
|
}
|
50
50
|
}
|
@@ -105,7 +105,7 @@ export class VerdocsSearchBox {
|
|
105
105
|
"references": {
|
106
106
|
"TContentType": {
|
107
107
|
"location": "local",
|
108
|
-
"path": "/Users/chad/projects/verdocs/
|
108
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/elements/verdocs-search-box/verdocs-search-box.tsx",
|
109
109
|
"id": "src/components/elements/verdocs-search-box/verdocs-search-box.tsx::TContentType"
|
110
110
|
}
|
111
111
|
}
|
@@ -175,7 +175,7 @@ export class VerdocsSearchBox {
|
|
175
175
|
"references": {
|
176
176
|
"ISearchEvent": {
|
177
177
|
"location": "local",
|
178
|
-
"path": "/Users/chad/projects/verdocs/
|
178
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/elements/verdocs-search-box/verdocs-search-box.tsx",
|
179
179
|
"id": "src/components/elements/verdocs-search-box/verdocs-search-box.tsx::ISearchEvent"
|
180
180
|
}
|
181
181
|
}
|
@@ -196,7 +196,7 @@ export class VerdocsSearchBox {
|
|
196
196
|
"references": {
|
197
197
|
"TContentType": {
|
198
198
|
"location": "local",
|
199
|
-
"path": "/Users/chad/projects/verdocs/
|
199
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/elements/verdocs-search-box/verdocs-search-box.tsx",
|
200
200
|
"id": "src/components/elements/verdocs-search-box/verdocs-search-box.tsx::TContentType"
|
201
201
|
}
|
202
202
|
}
|
@@ -330,7 +330,7 @@ export class VerdocsAuth {
|
|
330
330
|
"references": {
|
331
331
|
"IAuthStatus": {
|
332
332
|
"location": "local",
|
333
|
-
"path": "/Users/chad/projects/verdocs/
|
333
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/embeds/verdocs-auth/verdocs-auth.tsx",
|
334
334
|
"id": "src/components/embeds/verdocs-auth/verdocs-auth.tsx::IAuthStatus"
|
335
335
|
}
|
336
336
|
}
|
@@ -164,7 +164,7 @@ export class VerdocsBuild {
|
|
164
164
|
"references": {
|
165
165
|
"TVerdocsBuildStep": {
|
166
166
|
"location": "local",
|
167
|
-
"path": "/Users/chad/projects/verdocs/
|
167
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/embeds/verdocs-build/verdocs-build.tsx",
|
168
168
|
"id": "src/components/embeds/verdocs-build/verdocs-build.tsx::TVerdocsBuildStep"
|
169
169
|
}
|
170
170
|
}
|
@@ -224,7 +224,7 @@ export class VerdocsBuild {
|
|
224
224
|
"references": {
|
225
225
|
"TVerdocsBuildStep": {
|
226
226
|
"location": "local",
|
227
|
-
"path": "/Users/chad/projects/verdocs/
|
227
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/embeds/verdocs-build/verdocs-build.tsx",
|
228
228
|
"id": "src/components/embeds/verdocs-build/verdocs-build.tsx::TVerdocsBuildStep"
|
229
229
|
}
|
230
230
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
2
|
-
import { createEnvelope, getRGBA, isValidEmail, isValidPhone, VerdocsEndpoint, } from "@verdocs/js-sdk";
|
2
|
+
import { createEnvelope, getOrganizationContacts, getRGBA, isValidEmail, isValidPhone, VerdocsEndpoint, } from "@verdocs/js-sdk";
|
3
3
|
import { getRoleIndex, getRoleNames, getTemplateRoleStore } from "../../../utils/TemplateRoleStore";
|
4
4
|
import { getTemplateStore } from "../../../utils/TemplateStore";
|
5
5
|
import { SDKError } from "../../../utils/errors";
|
@@ -47,13 +47,22 @@ export class VerdocsSend {
|
|
47
47
|
var _a, _b, _c;
|
48
48
|
try {
|
49
49
|
this.endpoint.onSessionChanged((_endpoint, _session, profile) => {
|
50
|
+
const me = {
|
51
|
+
id: profile.id,
|
52
|
+
first_name: profile.first_name,
|
53
|
+
last_name: profile.last_name,
|
54
|
+
email: profile.email,
|
55
|
+
phone: profile.phone,
|
56
|
+
};
|
50
57
|
if (profile) {
|
51
|
-
this.sessionContacts = [];
|
52
|
-
this.
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
58
|
+
this.sessionContacts = [me];
|
59
|
+
getOrganizationContacts(this.endpoint)
|
60
|
+
.then(contacts => {
|
61
|
+
console.log('Got contacts', contacts);
|
62
|
+
this.sessionContacts = [...contacts, me];
|
63
|
+
})
|
64
|
+
.catch(e => {
|
65
|
+
console.log('Error getting contacts', e);
|
57
66
|
});
|
58
67
|
}
|
59
68
|
});
|
@@ -100,9 +109,9 @@ export class VerdocsSend {
|
|
100
109
|
const level = role.sequence - 1;
|
101
110
|
rolesAtLevel[level] || (rolesAtLevel[level] = []);
|
102
111
|
const id = `r-${level}-${rolesAtLevel[level].length}`;
|
103
|
-
rolesAtLevel[level].push({ ...role, id, role_name: role.name, first_name:
|
104
|
-
if (role.
|
105
|
-
this.rolesCompleted[id] = { ...role, id, role_name: role.name, first_name:
|
112
|
+
rolesAtLevel[level].push({ ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name });
|
113
|
+
if (role.first_name && (role.email || role.phone)) {
|
114
|
+
this.rolesCompleted[id] = { ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name };
|
106
115
|
}
|
107
116
|
});
|
108
117
|
}
|
@@ -140,8 +149,8 @@ export class VerdocsSend {
|
|
140
149
|
}
|
141
150
|
}
|
142
151
|
handleSelectContact(e, role) {
|
152
|
+
console.log('selc', e.detail);
|
143
153
|
e.preventDefault();
|
144
|
-
e.detail; // IContactSelectEvent
|
145
154
|
this.rolesCompleted[role.id] = { ...role, ...e.detail };
|
146
155
|
this.showPickerForId = '';
|
147
156
|
}
|
@@ -205,7 +214,7 @@ export class VerdocsSend {
|
|
205
214
|
var _a, _b, _c, _d, _e, _f;
|
206
215
|
const unknown = !role.email;
|
207
216
|
const elId = `verdocs-send-recipient-${role.role_name}`;
|
208
|
-
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.
|
217
|
+
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); } })))));
|
209
218
|
})))), 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))));
|
210
219
|
}
|
211
220
|
static get is() { return "verdocs-send"; }
|
@@ -409,7 +409,7 @@ export class VerdocsSign {
|
|
409
409
|
}
|
410
410
|
}
|
411
411
|
attachFieldAttributes(pageInfo, field, el) {
|
412
|
-
var _a;
|
412
|
+
var _a, _b, _c;
|
413
413
|
el.addEventListener('input', (e) => {
|
414
414
|
// console.log('[SIGN] onfieldInput', e.detail, e.target.value);
|
415
415
|
// These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
|
@@ -437,8 +437,9 @@ export class VerdocsSign {
|
|
437
437
|
el.setAttribute('page', pageInfo.pageNumber);
|
438
438
|
el.setAttribute('xScale', pageInfo.xScale);
|
439
439
|
el.setAttribute('yScale', pageInfo.yScale);
|
440
|
-
|
441
|
-
el.setAttribute('
|
440
|
+
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) || '';
|
441
|
+
el.setAttribute('initials', fullNameToInitials(fullName));
|
442
|
+
el.setAttribute('name', fullName);
|
442
443
|
}
|
443
444
|
handlePageRendered(e) {
|
444
445
|
const pageInfo = e.detail;
|
package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css
CHANGED
@@ -67,6 +67,8 @@ verdocs-contact-picker form .dropdown {
|
|
67
67
|
right: 0;
|
68
68
|
top: 49px;
|
69
69
|
z-index: 1000000;
|
70
|
+
max-height: 225px;
|
71
|
+
overflow-y: scroll;
|
70
72
|
position: absolute;
|
71
73
|
background: #ffffff;
|
72
74
|
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
|
@@ -78,12 +80,13 @@ verdocs-contact-picker form .dropdown .suggestion {
|
|
78
80
|
flex-direction: row;
|
79
81
|
}
|
80
82
|
verdocs-contact-picker form .dropdown .suggestion svg {
|
81
|
-
|
83
|
+
width: 32px;
|
84
|
+
height: 32px;
|
82
85
|
}
|
83
86
|
verdocs-contact-picker form .dropdown .suggestion .avatar {
|
84
|
-
width:
|
85
|
-
height:
|
86
|
-
flex: 0 0
|
87
|
+
width: 32px;
|
88
|
+
height: 32px;
|
89
|
+
flex: 0 0 32px;
|
87
90
|
margin-right: 8px;
|
88
91
|
border-radius: 100%;
|
89
92
|
}
|
package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js
CHANGED
@@ -5,7 +5,7 @@ const messageIcon = '<svg focusable="false" viewBox="0 0 24 24"><path d="M20 2H4
|
|
5
5
|
// const delegateIcon =
|
6
6
|
// '<svg focusable="false" viewBox="0 0 24 24"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></svg>';
|
7
7
|
const kbaIcon = '<svg focusable="false" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z" clip-rule="evenodd" /></svg>';
|
8
|
-
const
|
8
|
+
const addrBookIcon = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;
|
9
9
|
/**
|
10
10
|
* Displays a contact picker suitable for filling out Recipient objects when sending Documents.
|
11
11
|
*
|
@@ -40,7 +40,8 @@ export class VerdocsContactPicker {
|
|
40
40
|
componentWillLoad() {
|
41
41
|
if (this.templateRole) {
|
42
42
|
// TODO: For backwards compatibility, may be removed once templateRole no longer has a full_name
|
43
|
-
const
|
43
|
+
const fullName = `${this.templateRole.first_name || ''} ${this.templateRole.last_name || ''}`.trim() || this.templateRole.full_name || '';
|
44
|
+
const nameComponents = fullName.split(' ');
|
44
45
|
const firstName = this.templateRole.first_name || nameComponents.shift() || '';
|
45
46
|
const lastName = this.templateRole.last_name || nameComponents.join(' ') || '';
|
46
47
|
this.first_name = firstName;
|
@@ -106,24 +107,26 @@ export class VerdocsContactPicker {
|
|
106
107
|
// The reason for the random names/IDs is to disable browser autocomplete. We set the autocomplete tags but many browsers ignore them
|
107
108
|
// and show a duplicate autocomplete picker on top of our own.
|
108
109
|
render() {
|
109
|
-
return (h("form", { key: '
|
110
|
+
return (h("form", { key: '77d4a7a5740dc9afc0adf90a9370a8df7f7e57db', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: 'c98cfc773ed6c59202b9752ce4386ba877839902', class: "row" }, h("label", { key: '831913a57ad8de80d3e234ca8aee38c9293be25a', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: '856ff7e946194f61a918af19150043ab5914128d', class: "names-row" }, h("input", { key: '861a16cf88c5e79bc85ae9ba62e0aab5d7bedb34', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First Name...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: 'cbc821b96e4241745fbb655e540fe9e0699170b3', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last Name...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: 'b6d7c93ac96ae383000d549244993ce3e9473b07', class: "dropdown" }, this.contactSuggestions
|
111
|
+
.filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
|
112
|
+
.map(suggestion => {
|
110
113
|
var _a;
|
111
|
-
return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.
|
112
|
-
})))), h("div", { key: '
|
114
|
+
return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : h("div", { class: "avatar", innerHTML: addrBookIcon }), h("div", { class: "details" }, h("div", { class: "name" }, suggestion.first_name, " ", suggestion.last_name), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
|
115
|
+
})))), h("div", { key: '7b750d3f7ab27c0b5feea0ebf322aaa21273f6cf', class: "row" }, h("label", { key: '31a8e0dfd76cc0dd2cd6299c97ac57c3b626de10', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: 'e42b4e3d34d399de6fea837d3257ee50244d690c', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email Address...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleEmailChange(e) })), h("div", { key: '192985b0f48fcdf781e9ef4ff64d393da11df2ab', class: "row" }, h("label", { key: 'e0ceef244fc561b2d488b7f5228d31a78ab3e415', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: 'b9bcaa6a282bdd853ff237fb80d93adb765b80d3', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone Number...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handlePhoneChange(e) })), this.showKba && (h("div", { key: '9c8e31b692e62901886104f27a5beb56312196a2', class: "row" }, h("div", { key: 'd8f17ff86c0a3a994db391df8a71ad6ddd81735f', class: "label-with-icon" }, h("label", { key: '82263fb743f8ff6809d33cdf5ae964bdc28ea661' }, "KBA:"), h("verdocs-help-icon", { key: '5eaa626c45ce5d0cbb3cc34f07d686099ea7bf83', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), h("verdocs-select-input", { key: 'f1f5ebac6f6b5ec68232d71bc9f116f077348e30', value: this.kbaMethod, onInput: (e) => (this.kbaMethod = e.target.value), options: [
|
113
116
|
{ label: 'None', value: '' },
|
114
117
|
{ label: 'PIN Code', value: 'pin' },
|
115
118
|
{ label: 'Full Verification', value: 'kba' },
|
116
|
-
] }), this.kbaMethod === 'pin' && (h("input", { key: '
|
119
|
+
] }), this.kbaMethod === 'pin' && (h("input", { key: 'fe87947c167f926ad49bf082df02c8eab1fc9b3a', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.pinCode, placeholder: "KBA PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleMessageChange(e) })))), this.showMessage && (h("div", { key: 'b202f9482e1d58748bf389036ea5707bf9edc1ae', class: "row" }, h("label", { key: 'b9a25c63c47aa3e3201b3a221f5d26bb56ca0154', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: '607ab3f44f08c30d5e2a44ca26db1afce6b82313', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Invitation Message...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleMessageChange(e) }))), h("div", { key: '8c0295589fb39514d9da534bc57d18e35e2b77bb', class: "buttons" }, h("verdocs-toggle-button", { key: '2fa1df450fa7c66b8fd70a83bff4967dde6a100e', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
|
117
120
|
this.showKba = e.detail.active;
|
118
121
|
if (!e.detail.active) {
|
119
122
|
this.pinCode = '';
|
120
123
|
this.kbaMethod = '';
|
121
124
|
}
|
122
125
|
this.showSuggestions = false;
|
123
|
-
} }), h("verdocs-toggle-button", { key: '
|
126
|
+
} }), h("verdocs-toggle-button", { key: '4d9e6bb2b64b3c9c6e9f7a74ce5631189ef9b358', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
|
124
127
|
this.showMessage = e.detail.active;
|
125
128
|
this.showSuggestions = false;
|
126
|
-
} }), h("div", { key: '
|
129
|
+
} }), h("div", { key: '5686aed5c1b33e96d945de8bb467935fc51f09d0', class: "flex-fill" }), h("verdocs-button", { key: '74d6bcc7f14a79e381adfb89c6fb196fb749cae3', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'dc734de21e10ff2f17511dff743196abd18fd533', label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
|
127
130
|
}
|
128
131
|
static get is() { return "verdocs-contact-picker"; }
|
129
132
|
static get originalStyleUrls() {
|
@@ -190,18 +193,13 @@ export class VerdocsContactPicker {
|
|
190
193
|
"type": "unknown",
|
191
194
|
"mutable": false,
|
192
195
|
"complexType": {
|
193
|
-
"original": "
|
194
|
-
"resolved": "
|
196
|
+
"original": "TPickerContact[]",
|
197
|
+
"resolved": "Partial<IProfile>[]",
|
195
198
|
"references": {
|
196
|
-
"
|
199
|
+
"TPickerContact": {
|
197
200
|
"location": "local",
|
198
|
-
"path": "/Users/chad/projects/verdocs/
|
199
|
-
"id": "src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx::
|
200
|
-
},
|
201
|
-
"IPhoneContact": {
|
202
|
-
"location": "local",
|
203
|
-
"path": "/Users/chad/projects/verdocs/a2/web-sdk/verdocs-web-sdk/src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx",
|
204
|
-
"id": "src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx::IPhoneContact"
|
201
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx",
|
202
|
+
"id": "src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx::TPickerContact"
|
205
203
|
}
|
206
204
|
}
|
207
205
|
},
|
@@ -252,7 +250,7 @@ export class VerdocsContactPicker {
|
|
252
250
|
"references": {
|
253
251
|
"IContactSearchEvent": {
|
254
252
|
"location": "local",
|
255
|
-
"path": "/Users/chad/projects/verdocs/
|
253
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx",
|
256
254
|
"id": "src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx::IContactSearchEvent"
|
257
255
|
}
|
258
256
|
}
|
@@ -288,7 +286,7 @@ export class VerdocsContactPicker {
|
|
288
286
|
"references": {
|
289
287
|
"IContactSelectEvent": {
|
290
288
|
"location": "local",
|
291
|
-
"path": "/Users/chad/projects/verdocs/
|
289
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx",
|
292
290
|
"id": "src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx::IContactSelectEvent"
|
293
291
|
}
|
294
292
|
}
|
@@ -79,7 +79,8 @@ export class VerdocsEnvelopeRecipientLink {
|
|
79
79
|
}
|
80
80
|
// const recipientsWithActions = getRecipientsWithActions(this.store.state); const showLinkButton = recipientCanAct(recipient, recipientsWithActions); const link =
|
81
81
|
// this.links[recipient.role_name]; const gettingLink = this.gettingLinks[recipient.role_name]; return (
|
82
|
-
|
82
|
+
const fullName = `${this.recipient.first_name || ''} ${this.recipient.last_name || ''}`.trim() || this.recipient.full_name || '';
|
83
|
+
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) })))));
|
83
84
|
}
|
84
85
|
static get is() { return "verdocs-envelope-recipient-link"; }
|
85
86
|
static get originalStyleUrls() {
|
@@ -102,7 +102,8 @@ export class VerdocsEnvelopeRecipientSummary {
|
|
102
102
|
const showLinkButton = recipientCanAct(recipient, recipientsWithActions);
|
103
103
|
const link = this.links[recipient.role_name];
|
104
104
|
const gettingLink = this.gettingLinks[recipient.role_name];
|
105
|
-
|
105
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
106
|
+
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) }))))));
|
106
107
|
})), (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) }))))));
|
107
108
|
}
|
108
109
|
static get is() { return "verdocs-envelope-recipient-summary"; }
|
package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js
CHANGED
@@ -143,77 +143,77 @@ export class VerdocsEnvelopeSidebar {
|
|
143
143
|
}
|
144
144
|
histories.forEach(history => {
|
145
145
|
var _a;
|
146
|
-
const
|
147
|
-
const
|
146
|
+
const recipient = (_a = this.store.state) === null || _a === void 0 ? void 0 : _a.recipients.find(recipient => recipient.role_name === history.role_name);
|
147
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
148
148
|
switch (history.event.toLowerCase()) {
|
149
149
|
case 'recipient:signed':
|
150
|
-
entries.push({ icon: 'gesture', message: `Signed by ${
|
150
|
+
entries.push({ icon: 'gesture', message: `Signed by ${fullName}.`, date: new Date(history.created_at) });
|
151
151
|
break;
|
152
152
|
case 'recipient:declined':
|
153
|
-
entries.push({ icon: 'clear', message: `Declined by ${
|
153
|
+
entries.push({ icon: 'clear', message: `Declined by ${fullName}.`, date: new Date(history.created_at) });
|
154
154
|
break;
|
155
155
|
case 'recipient:opened':
|
156
156
|
switch (history.event_detail) {
|
157
157
|
// TODO: Sync these up with reality
|
158
158
|
case 'email':
|
159
159
|
case 'mail':
|
160
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
160
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via email.`, date: new Date(history.created_at) });
|
161
161
|
break;
|
162
162
|
case 'sms':
|
163
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
163
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via SMS.`, date: new Date(history.created_at) });
|
164
164
|
break;
|
165
165
|
case 'in_person_link':
|
166
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
166
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via In-person link.`, date: new Date(history.created_at) });
|
167
167
|
break;
|
168
168
|
case 'in_app':
|
169
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
169
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via dashboard.`, date: new Date(history.created_at) });
|
170
170
|
break;
|
171
171
|
default:
|
172
|
-
entries.push({ icon: 'visibility', message: `Opened by ${
|
172
|
+
entries.push({ icon: 'visibility', message: `Opened by ${fullName}.`, date: new Date(history.created_at) });
|
173
173
|
}
|
174
174
|
break;
|
175
175
|
case 'recipient:submitted':
|
176
176
|
switch (history.event_detail) {
|
177
177
|
// TODO: Sync up
|
178
178
|
case 'approver':
|
179
|
-
entries.push({ icon: 'check_circle', message: `Approved by ${
|
179
|
+
entries.push({ icon: 'check_circle', message: `Approved by ${fullName}.`, date: new Date(history.created_at) });
|
180
180
|
break;
|
181
181
|
default:
|
182
|
-
entries.push({ icon: 'send', message: `Submitted by ${
|
182
|
+
entries.push({ icon: 'send', message: `Submitted by ${fullName}.`, date: new Date(history.created_at) });
|
183
183
|
break;
|
184
184
|
}
|
185
185
|
break;
|
186
186
|
case 'recipient:prepared':
|
187
|
-
entries.push({ icon: 'send', message: `Prepared by ${
|
187
|
+
entries.push({ icon: 'send', message: `Prepared by ${fullName}.`, date: new Date(history.created_at) });
|
188
188
|
break;
|
189
189
|
case 'recipient:claimed':
|
190
190
|
if (history.event_detail === 'guest') {
|
191
|
-
entries.push({ icon: 'account_circle', message: `${
|
191
|
+
entries.push({ icon: 'account_circle', message: `${fullName} claimed the Verdoc as a guest.`, date: new Date(history.created_at) });
|
192
192
|
}
|
193
193
|
else if (history.event_detail === 'profile') {
|
194
|
-
entries.push({ icon: 'verified_user', message: `${
|
194
|
+
entries.push({ icon: 'verified_user', message: `${fullName} claimed the Verdoc as a verified user.`, date: new Date(history.created_at) });
|
195
195
|
}
|
196
196
|
break;
|
197
197
|
case 'recipient:agreed':
|
198
|
-
entries.push({ icon: 'done', message: `${
|
198
|
+
entries.push({ icon: 'done', message: `${fullName} agreed to use electronic records and signatures.`, date: new Date(history.created_at) });
|
199
199
|
break;
|
200
200
|
case 'recipient:invited':
|
201
201
|
if (history.event_detail === 'sms') {
|
202
|
-
entries.push({ icon: 'textsms', message: `${
|
202
|
+
entries.push({ icon: 'textsms', message: `${fullName} has been invited via SMS.`, date: new Date(history.created_at) });
|
203
203
|
}
|
204
204
|
else {
|
205
|
-
entries.push({ icon: 'mail', message: `${
|
205
|
+
entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
|
206
206
|
}
|
207
207
|
break;
|
208
208
|
case 'invitation:resent':
|
209
209
|
entries.push({
|
210
210
|
icon: 'mail',
|
211
|
-
message: `Invitation was resent to ${
|
211
|
+
message: `Invitation was resent to ${fullName} ${history.event_detail === 'reminder' ? ' by reminder' : ''}.`,
|
212
212
|
date: new Date(history.created_at),
|
213
213
|
});
|
214
214
|
break;
|
215
215
|
case 'envelope:cc':
|
216
|
-
entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${
|
216
|
+
entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${fullName}.`, date: new Date(history.created_at) });
|
217
217
|
break;
|
218
218
|
case 'recipient:delegated':
|
219
219
|
entries.push({ icon: 'people', message: history.event_detail, date: new Date(history.created_at) });
|
@@ -235,7 +235,7 @@ export class VerdocsEnvelopeSidebar {
|
|
235
235
|
entries.push({ icon: 'cancel', message: `Envelope was canceled by the creator.`, date: new Date(history.created_at) });
|
236
236
|
break;
|
237
237
|
case 'owner:get_in_person_link':
|
238
|
-
entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${
|
238
|
+
entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${recipient}.`, date: new Date(history.created_at) });
|
239
239
|
break;
|
240
240
|
default:
|
241
241
|
console.log('[SIDEBAR] Unknown history type', history);
|
@@ -264,13 +264,14 @@ export class VerdocsEnvelopeSidebar {
|
|
264
264
|
_0.recipients.map((recipient, index) => {
|
265
265
|
const canGetInPersonLink = recipient.status !== 'submitted' && recipient.status !== 'canceled' && recipient.status !== 'declined';
|
266
266
|
const canSendReminder = this.canResendRecipient(recipient);
|
267
|
+
const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
|
267
268
|
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: [
|
268
269
|
{ id: 'reminder', label: 'Send Reminder', disabled: !canSendReminder },
|
269
270
|
{ id: 'inperson', label: 'Get In-Person Link', disabled: !canGetInPersonLink },
|
270
271
|
// {id: 'modify', label: 'Modify Recipient', disabled: !this.canModifyRecipient(recipient)},
|
271
272
|
// TODO: Details dialog
|
272
273
|
// {id:'details',label: 'View Details'},
|
273
|
-
] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" },
|
274
|
+
] }))), 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))));
|
274
275
|
}), 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" }, 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: () => {
|
275
276
|
var _a;
|
276
277
|
this.showManageDialog = false;
|
package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js
CHANGED
@@ -221,7 +221,7 @@ export class VerdocsEnvelopesList {
|
|
221
221
|
else {
|
222
222
|
this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);
|
223
223
|
}
|
224
|
-
} }), h("div", { class: "vert-spacer" }), h("span", { innerHTML: DocumentIcon, class: "envelope-icon" }), h("div", { class: "envelope-name" }, envelope.name, ":\u00A0
|
224
|
+
} }), 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 => {
|
225
225
|
var _a, _b;
|
226
226
|
switch (e.detail.id) {
|
227
227
|
case 'view':
|
@@ -243,7 +243,7 @@ export class VerdocsEnvelopesList {
|
|
243
243
|
break;
|
244
244
|
}
|
245
245
|
} }))));
|
246
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
246
|
+
}), !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 => {
|
247
247
|
this.selectedPage = e.detail.selectedPage;
|
248
248
|
} }))) : (h("div", null))));
|
249
249
|
}
|
package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js
CHANGED
@@ -75,8 +75,7 @@ export class VerdocsStatusIndicator {
|
|
75
75
|
const leftOffset = ENTRY_PADDING / 2 + leftoverSpace / 2;
|
76
76
|
recipients.forEach((recipient, index) => {
|
77
77
|
var _a;
|
78
|
-
const
|
79
|
-
const name = `${first} ${last === null || last === void 0 ? void 0 : last.substring(0, 1)}`;
|
78
|
+
const name = `${recipient.first_name || ''} ${recipient.last_name || ('' === null || '' === void 0 ? void 0 : ''.substring(0, 1))}`;
|
80
79
|
const entity = {
|
81
80
|
id: recipient.id,
|
82
81
|
text: name,
|
@@ -238,11 +237,11 @@ export class VerdocsStatusIndicator {
|
|
238
237
|
}
|
239
238
|
const icon = this.getStatusIcon(status);
|
240
239
|
const statusMessage = this.getStatusMessage(status);
|
241
|
-
return (h(Host, { key: '
|
240
|
+
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 => {
|
242
241
|
e.stopPropagation();
|
243
242
|
e.preventDefault();
|
244
243
|
this.envelope && this.toggleDropdown();
|
245
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
244
|
+
}, 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` } }))))));
|
246
245
|
}
|
247
246
|
static get is() { return "verdocs-status-indicator"; }
|
248
247
|
static get originalStyleUrls() {
|
package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js
CHANGED
@@ -381,7 +381,7 @@ export class VerdocsFieldAttachment {
|
|
381
381
|
"references": {
|
382
382
|
"ISelectedFile": {
|
383
383
|
"location": "local",
|
384
|
-
"path": "/Users/chad/projects/verdocs/
|
384
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/fields/verdocs-field-attachment/verdocs-field-attachment.tsx",
|
385
385
|
"id": "src/components/fields/verdocs-field-attachment/verdocs-field-attachment.tsx::ISelectedFile"
|
386
386
|
}
|
387
387
|
}
|
@@ -170,7 +170,7 @@ export class VerdocsTemplateBuildTabs {
|
|
170
170
|
"references": {
|
171
171
|
"TVerdocsBuildStep": {
|
172
172
|
"location": "local",
|
173
|
-
"path": "/Users/chad/projects/verdocs/
|
173
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.tsx",
|
174
174
|
"id": "src/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.tsx::TVerdocsBuildStep"
|
175
175
|
}
|
176
176
|
}
|
@@ -230,7 +230,7 @@ export class VerdocsTemplateBuildTabs {
|
|
230
230
|
"references": {
|
231
231
|
"TVerdocsBuildStep": {
|
232
232
|
"location": "local",
|
233
|
-
"path": "/Users/chad/projects/verdocs/
|
233
|
+
"path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.tsx",
|
234
234
|
"id": "src/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.tsx::TVerdocsBuildStep"
|
235
235
|
}
|
236
236
|
}
|