@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.
Files changed (159) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{utils-18c5653a.js → utils-813f2cbf.js} +1 -1
  3. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +22 -18
  4. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  5. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +4 -2
  6. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +23 -22
  7. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +4 -4
  8. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  9. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  11. package/dist/cjs/verdocs-preview_10.cjs.entry.js +14 -9
  12. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +20 -19
  13. package/dist/cjs/verdocs-sign.cjs.entry.js +6 -5
  14. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -4
  15. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  16. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  21. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +2 -2
  22. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +2 -2
  23. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  24. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +2 -2
  25. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  26. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +3 -3
  27. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +1 -1
  28. package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +2 -2
  29. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +7 -6
  30. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +4 -3
  31. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +8 -0
  32. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +23 -20
  33. package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js +2 -1
  34. package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js +2 -1
  35. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +22 -21
  36. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +2 -2
  37. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +3 -4
  38. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +1 -1
  39. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +1 -1
  40. package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js +2 -2
  41. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +21 -19
  42. package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +5 -2
  43. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  44. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  45. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  46. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +1 -1
  47. package/dist/components/verdocs-contact-picker2.js +20 -17
  48. package/dist/components/verdocs-envelope-recipient-link2.js +2 -1
  49. package/dist/components/verdocs-envelope-recipient-summary2.js +2 -1
  50. package/dist/components/verdocs-envelope-sidebar.js +22 -21
  51. package/dist/components/verdocs-envelopes-list.js +2 -2
  52. package/dist/components/verdocs-field-textbox2.js +1 -1
  53. package/dist/components/verdocs-send2.js +7 -5
  54. package/dist/components/verdocs-sign.js +4 -3
  55. package/dist/components/verdocs-status-indicator2.js +3 -4
  56. package/dist/components/verdocs-template-role-properties2.js +21 -19
  57. package/dist/components/verdocs-template-roles2.js +5 -2
  58. package/dist/components/verdocs-template-sender2.js +1 -1
  59. package/dist/components/verdocs-template-star2.js +1 -1
  60. package/dist/components/verdocs-template-tags.js +1 -1
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/esm/{utils-c9afd888.js → utils-467fcc6a.js} +1 -1
  63. package/dist/esm/verdocs-contact-picker_2.entry.js +22 -18
  64. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  65. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +4 -2
  66. package/dist/esm/verdocs-envelope-sidebar.entry.js +23 -22
  67. package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
  68. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  69. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  70. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  71. package/dist/esm/verdocs-preview_10.entry.js +14 -9
  72. package/dist/esm/verdocs-radio-button_3.entry.js +20 -19
  73. package/dist/esm/verdocs-sign.entry.js +6 -5
  74. package/dist/esm/verdocs-status-indicator.entry.js +3 -4
  75. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  76. package/dist/esm/verdocs-template-star.entry.js +1 -1
  77. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  78. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  79. package/dist/esm/verdocs-view.entry.js +2 -2
  80. package/dist/esm/verdocs-web-sdk.js +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/{utils-c9afd888.js → utils-467fcc6a.js} +1 -1
  83. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  84. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  85. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  87. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  89. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  90. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  91. package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
  92. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  93. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  94. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  95. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  96. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  97. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  98. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  99. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  100. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  101. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +2 -3
  102. package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +2 -1
  103. package/dist/verdocs-web-sdk/p-03a228e4.system.js +1 -1
  104. package/dist/verdocs-web-sdk/{p-46d5e65d.entry.js → p-05ec94da.entry.js} +1 -1
  105. package/dist/verdocs-web-sdk/{p-32b04720.entry.js → p-09174e70.entry.js} +1 -1
  106. package/dist/verdocs-web-sdk/p-15cd7156.entry.js +1 -0
  107. package/dist/verdocs-web-sdk/{p-3b9789bc.entry.js → p-18a58a00.entry.js} +1 -1
  108. package/dist/verdocs-web-sdk/{p-e1dbe05e.system.entry.js → p-18ef3307.system.entry.js} +1 -1
  109. package/dist/verdocs-web-sdk/{p-af561085.entry.js → p-2fa50153.entry.js} +1 -1
  110. package/dist/verdocs-web-sdk/{p-308491d1.entry.js → p-338fcdf4.entry.js} +1 -1
  111. package/dist/verdocs-web-sdk/{p-25ee52fd.system.entry.js → p-33fc5994.system.entry.js} +1 -1
  112. package/dist/verdocs-web-sdk/{p-0b2cfd99.system.entry.js → p-362c6d47.system.entry.js} +1 -1
  113. package/dist/verdocs-web-sdk/{p-d0393b1a.system.entry.js → p-47dde2b1.system.entry.js} +1 -1
  114. package/dist/verdocs-web-sdk/{p-80c86f5d.system.entry.js → p-49899f3c.system.entry.js} +1 -1
  115. package/dist/verdocs-web-sdk/p-4bc07959.entry.js +1 -0
  116. package/dist/verdocs-web-sdk/{p-42e914f9.entry.js → p-519db979.entry.js} +1 -1
  117. package/dist/verdocs-web-sdk/{p-d774211f.entry.js → p-530f073d.entry.js} +1 -1
  118. package/dist/verdocs-web-sdk/p-721bc4db.entry.js +1 -0
  119. package/dist/verdocs-web-sdk/p-756f658c.system.entry.js +1 -0
  120. package/dist/verdocs-web-sdk/{p-33199d44.system.entry.js → p-7995e412.system.entry.js} +1 -1
  121. package/dist/verdocs-web-sdk/{p-caed6d29.system.entry.js → p-86126812.system.entry.js} +1 -1
  122. package/dist/verdocs-web-sdk/{p-babcfe8a.entry.js → p-93e5d84b.entry.js} +1 -1
  123. package/dist/verdocs-web-sdk/{p-193e1a1f.entry.js → p-978cc0c7.entry.js} +1 -1
  124. package/dist/verdocs-web-sdk/{p-c8986ba4.system.js → p-9a8c90f4.system.js} +1 -1
  125. package/dist/verdocs-web-sdk/{p-dba54b3b.entry.js → p-9ce7ab9f.entry.js} +1 -1
  126. package/dist/verdocs-web-sdk/{p-d5172685.system.entry.js → p-a798dd2e.system.entry.js} +1 -1
  127. package/dist/verdocs-web-sdk/p-a84f9767.entry.js +1 -0
  128. package/dist/verdocs-web-sdk/p-ba259b92.system.entry.js +1 -0
  129. package/dist/verdocs-web-sdk/{p-e48b07b7.js → p-c86983bc.js} +1 -1
  130. package/dist/verdocs-web-sdk/{p-8f6dc2a1.system.entry.js → p-d381cbc3.system.entry.js} +1 -1
  131. package/dist/verdocs-web-sdk/{p-3c674cb3.entry.js → p-d7b00716.entry.js} +1 -1
  132. package/dist/verdocs-web-sdk/p-dd4b01d3.entry.js +1 -0
  133. package/dist/verdocs-web-sdk/{p-7a2259bb.system.entry.js → p-e8b96519.system.entry.js} +1 -1
  134. package/dist/verdocs-web-sdk/{p-0fcfddb7.entry.js → p-f00e5323.entry.js} +1 -1
  135. package/dist/verdocs-web-sdk/{p-f01e1e3a.system.entry.js → p-f2c8fd36.system.entry.js} +1 -1
  136. package/dist/verdocs-web-sdk/p-f403fe1c.system.entry.js +1 -0
  137. package/dist/verdocs-web-sdk/{p-ab1a39f5.system.entry.js → p-f7a5a59a.system.entry.js} +1 -1
  138. package/dist/verdocs-web-sdk/{p-78b22f4e.system.entry.js → p-fba124de.system.entry.js} +1 -1
  139. package/dist/verdocs-web-sdk/{p-d9a9728a.system.entry.js → p-fc5c0024.system.entry.js} +1 -1
  140. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  141. package/package.json +5 -5
  142. package/dist/verdocs-web-sdk/p-028f7781.entry.js +0 -1
  143. package/dist/verdocs-web-sdk/p-1a32c240.entry.js +0 -1
  144. package/dist/verdocs-web-sdk/p-216f335e.system.entry.js +0 -1
  145. package/dist/verdocs-web-sdk/p-24a9f119.system.entry.js +0 -1
  146. package/dist/verdocs-web-sdk/p-5d223ab3.entry.js +0 -1
  147. package/dist/verdocs-web-sdk/p-83302d64.entry.js +0 -1
  148. package/dist/verdocs-web-sdk/p-b551b4ec.entry.js +0 -1
  149. package/dist/verdocs-web-sdk/p-ce57fe21.system.entry.js +0 -1
  150. /package/dist/cjs/{format-2e654370.js → format-187ebc36.js} +0 -0
  151. /package/dist/cjs/{index-1142b665.js → index-5f130ec0.js} +0 -0
  152. /package/dist/esm/{format-4fde138a.js → format-2bf71189.js} +0 -0
  153. /package/dist/esm/{index-5b8ab2d2.js → index-0329eed3.js} +0 -0
  154. /package/dist/esm-es5/{format-4fde138a.js → format-2bf71189.js} +0 -0
  155. /package/dist/esm-es5/{index-5b8ab2d2.js → index-0329eed3.js} +0 -0
  156. /package/dist/verdocs-web-sdk/{p-e1938a4d.system.js → p-3f088fd6.system.js} +0 -0
  157. /package/dist/verdocs-web-sdk/{p-399d3c01.js → p-630835f4.js} +0 -0
  158. /package/dist/verdocs-web-sdk/{p-37bb615d.js → p-edaec1b6.js} +0 -0
  159. /package/dist/verdocs-web-sdk/{p-478b574c.system.js → p-f24d887c.system.js} +0 -0
@@ -21,7 +21,8 @@ export class VerdocsTemplateRoleProperties {
21
21
  this.saving = false;
22
22
  this.name = '';
23
23
  this.type = 'signer';
24
- this.full_name = '';
24
+ this.first_name = '';
25
+ this.last_name = '';
25
26
  this.email = '';
26
27
  this.phone = '';
27
28
  this.delegator = false;
@@ -40,18 +41,13 @@ export class VerdocsTemplateRoleProperties {
40
41
  }
41
42
  this.templateStore = await getTemplateStore(this.endpoint, this.templateId, false);
42
43
  this.fieldStore = getTemplateFieldStore(this.templateId);
43
- // FIXME: This was createTemplateRoleStore, which it didn't have to be. But that shouldn't break anything,
44
- // and using create() will reload the roles from the TEMPLATE, not the server. Creating/deleting roles
45
- // isn't updating the template, so if you add a role and then pop this dialog the store will be reloaded
46
- // without the newly-added role in place causing the dialog (and future role edits) to break. We should
47
- // a) when creating/updating/deleting roles, update the template/store not just the roles, and b) review
48
- // and confirm that all things that look at roles are mapped to the role store, not the template.
49
44
  this.roleStore = getTemplateRoleStore(this.templateId);
50
45
  const editingRole = this.roleStore.state.roles.find(role => role.name === this.roleName);
51
46
  if (editingRole) {
52
47
  this.name = editingRole.name;
53
48
  this.type = editingRole.type;
54
- this.full_name = editingRole.full_name;
49
+ this.first_name = editingRole.first_name;
50
+ this.last_name = editingRole.last_name;
55
51
  this.email = editingRole.email;
56
52
  this.phone = editingRole.phone;
57
53
  this.delegator = editingRole.delegator;
@@ -70,7 +66,8 @@ export class VerdocsTemplateRoleProperties {
70
66
  if (editingRole) {
71
67
  this.name = editingRole.name;
72
68
  this.type = editingRole.type;
73
- this.full_name = editingRole.full_name;
69
+ this.first_name = editingRole.first_name;
70
+ this.last_name = editingRole.last_name;
74
71
  this.email = editingRole.email;
75
72
  this.phone = editingRole.phone;
76
73
  this.delegator = editingRole.delegator;
@@ -84,7 +81,8 @@ export class VerdocsTemplateRoleProperties {
84
81
  updateTemplateRole(this.endpoint, this.templateId, this.roleName, {
85
82
  name: this.name,
86
83
  type: this.type,
87
- full_name: this.full_name,
84
+ first_name: this.first_name,
85
+ last_name: this.last_name,
88
86
  email: this.email,
89
87
  phone: this.phone,
90
88
  delegator: this.delegator,
@@ -118,31 +116,34 @@ export class VerdocsTemplateRoleProperties {
118
116
  }
119
117
  render() {
120
118
  const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
121
- return (h(Host, { key: '3edd035c5d69b95c4cad1232b444513f1dbee44d' }, h("div", { key: '19aa33d7ba14d1034cb69d6cfeeb6506cf53a8e5', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: '2012d47d29d0bb7b5efc2c733792eb0fd0e51aed', class: "dialog" }, h("form", { key: 'bdbdd0be3c27ccf69c9303ae42585dd2c3e9fbc9', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'dee4b0337c8f1d065118b033ae4dfffce2251802', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
119
+ 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
122
120
  ? 'This role has fields assigned and can no longer be renamed.'
123
121
  : 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
124
122
  this.name = e.target.value;
125
123
  this.dirty = true;
126
- } }), h("div", { key: 'efdf8894739903c3f5fe8fb3eb039a5457cdf0bc', class: "row" }, h("div", { key: 'd2c85a2ca439758268704ced18dd7dbe76ffec69', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '343c54e4cde6b4cf540bb17a5190d1527e9528fc', value: this.type, options: [
124
+ } }), h("div", { key: 'eb3f826aabcc520b9dd96b7aa551b1705ed28657', class: "row" }, h("div", { key: 'e327959efc08f9698a54aa8fa00b407dbf419b05', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: 'bb37591e1dc0cd438067331a17e8ad8a748d237e', value: this.type, options: [
127
125
  { label: 'Signer', value: 'signer' },
128
126
  { label: 'CC', value: 'cc' },
129
127
  { label: 'Approver', value: 'approver' },
130
128
  ], onInput: (e) => {
131
129
  this.type = e.target.value;
132
130
  this.dirty = true;
133
- } }), h("verdocs-help-icon", { key: '6cc61871b2f417f0bf0d226c42e8fc3645841c5c', 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: 'e151052eb861e97d4609bc3b4d41edc17c235822', id: "verdocs-recipient-email", label: "Full Name", value: this.full_name, autocomplete: "off", helpText: "The recipient's full 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: "Full Name...", onInput: (e) => {
134
- this.full_name = e.target.value;
131
+ } }), 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) => {
132
+ this.first_name = e.target.value;
135
133
  this.dirty = true;
136
- } }), h("verdocs-text-input", { key: '5e7c0e612d73cfb3510ccfbcaa9af6e3ebe3c383', 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) => {
134
+ } }), 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) => {
135
+ this.last_name = e.target.value;
136
+ this.dirty = true;
137
+ } }), 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) => {
137
138
  this.email = e.target.value;
138
139
  this.dirty = true;
139
- } }), h("verdocs-text-input", { key: 'c3b395d1207358018e1b3168923b156c535f64e5', 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) => {
140
+ } }), 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) => {
140
141
  this.phone = e.target.value;
141
142
  this.dirty = true;
142
- } }), h("div", { key: '9be759a4b006161944a3c64f88e0ec485442a498', class: "row" }, h("div", { key: '54736c623644013ec6f2920231c449f77f06b339', class: "input-label" }, "May Delegate:"), h("div", { key: '7a29cfa733029fb261399b675cde3bf757400810', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '35730144cecf76fd4d26737cac98fbceee559f8e', checked: this.delegator, onInput: (e) => {
143
+ } }), 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) => {
143
144
  this.delegator = e.target.checked;
144
145
  this.dirty = true;
145
- } })), h("verdocs-help-icon", { key: 'fb8d8aa0d555b6fa0a747dbbcf38b0078622e864', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '4323af3ee35e76d3774c58b0831b989a815825eb', class: "buttons" }, h("button", { key: '5efaefcae1c438a70186d752c336790e5b3ca448', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: 'c2db70468bec1d73264ee5da8d83b9d0ee453bb6', style: { flex: '1' } }), h("verdocs-button", { key: '826e2694e1ec1f7a24b5f3174d0e1da079b0b10b', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '5bc64b65627615fbe543c42a619a98be9cb85ac7', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
146
+ } })), 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) })))))));
146
147
  }
147
148
  static get is() { return "verdocs-template-role-properties"; }
148
149
  static get originalStyleUrls() {
@@ -247,7 +248,8 @@ export class VerdocsTemplateRoleProperties {
247
248
  "saving": {},
248
249
  "name": {},
249
250
  "type": {},
250
- "full_name": {},
251
+ "first_name": {},
252
+ "last_name": {},
251
253
  "email": {},
252
254
  "phone": {},
253
255
  "delegator": {}
@@ -203,7 +203,9 @@ export class VerdocsTemplateRoles {
203
203
  sequence,
204
204
  message: '',
205
205
  order,
206
- full_name: '',
206
+ full_name: null,
207
+ first_name: '',
208
+ last_name: '',
207
209
  email: '',
208
210
  phone: '',
209
211
  type: 'signer',
@@ -248,7 +250,8 @@ export class VerdocsTemplateRoles {
248
250
  console.log('Rendering', roleNames, sequences);
249
251
  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 => {
250
252
  const unknown = !role.email;
251
- 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.full_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 })));
253
+ console.log('ras', sequence, role);
254
+ 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 })));
252
255
  }), 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: () => {
253
256
  this.showingRoleDialog = null;
254
257
  }, onDelete: async () => {
@@ -61,7 +61,7 @@ export class VerdocsTemplateSender {
61
61
  });
62
62
  }
63
63
  render() {
64
- return (h(Host, { key: 'b75d6f485ee4892b06723565b636e99934686734' }, h("div", { key: '571f2e8c2929d4c1613b81140b8f6bb6b3fef77c', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '5f367024e582f014eeeb8034e4584bd3ac2ba376', class: "dialog" }, h("div", { key: 'e56f16c943a49f75540d765001fb28478dec78df', class: "options" }, h("div", { key: '4f30c70e38c2a4c7da5ed36d2837419a9b4382f5', class: "option" }, h("verdocs-radio-button", { key: '5df0f864a7686e294f4d263fa15aaca7d76f23a7', name: "template-sender", value: 'everyone', checked: this.sender === 'everyone', onInput: () => this.handleSelectSetting('everyone') }), h("div", { key: '193f9bacb11df6ee7ea8fce20352e8120d0ec9a2', class: "description" }, h("div", { key: 'b364415369c8926ba915ffc3509e022253564b3f', class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { key: '9f49f7abc5f0f83d3fe06eede0189d7f1afdc57f', text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { key: '6f6a173447a264dc20b6fc42ce3431937f5a676f', class: "option" }, h("verdocs-radio-button", { key: 'ff8c0f0853bbc22917888e889322debdd6f43dcf', name: "template-sender", value: 'everyone_as_creator', checked: this.sender === 'everyone_as_creator', onInput: () => this.handleSelectSetting('everyone_as_creator') }), h("div", { key: '294cd0ad0eefcd67312bde25f1e84b03d31a78ae', class: "description" }, h("div", { key: '1df07d5a0e436cb52e5aaab5df9e42737e979098', class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { key: '804ba6375f4b5cb6e073455a090b15311fcb47d4', text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { key: '7d95c56de1c94d1265ae1f34d9cae248b5b3677d', class: "option" }, h("verdocs-radio-button", { key: 'aede61f03827eb862be042c454c43e8adb162ab2', name: "template-sender", value: 'organization_member', checked: this.sender === 'organization_member', onInput: () => this.handleSelectSetting('organization_member') }), h("div", { key: '3a6262cd830d04f9998c354a8de77672f846502e', class: "description" }, h("div", { key: '38e6ca2fde7d7e5eb1690335c94a30b07b8c2962', class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { key: 'ccfb7459079de7bcdcd2bae2109ff6ba052a0ecd', text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { key: 'd69133422e538a470c61e8a7bb1f36e43bb2cddd', class: "option" }, h("verdocs-radio-button", { key: '1b7cae03a6195c382476c855a6c7dcaa21c637aa', 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: 'd1eb1bb2c1fb37e6662f4181745f803052d03d11', class: "description" }, h("div", { key: 'e9a3252ea21a19b9bef476ed1f50703e0abf791d', class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { key: '999706b170134d8fd9ff8b92b7d9e5defb2f323b', text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { key: '636e4f3c82d3ccc1059bc42bc3a0d2e6c1bb8963', class: "option" }, h("verdocs-radio-button", { key: '699a6a1d47b96c67095b7c5c2d183c14dab06543', name: "template-sender", value: 'creator', checked: this.sender === 'creator', onInput: () => this.handleSelectSetting('creator') }), h("div", { key: 'afa65902411976df46efa7b7fd934b86f167d269', class: "description" }, h("div", { key: '928b69772bfb2ede80b88a90d76094d331987c94', class: "name" }, "Me"), h("verdocs-help-icon", { key: '8edfcdd374311e55e59e91b1158ae4159fc25fc2', text: "Only I can use this template." })))), h("div", { key: 'c89ffcba333565428c0a1a8de8a1c047af448d1a', class: "buttons" }, h("verdocs-button", { key: 'd46f0eec71c778e53ae811ef0f1fce5d4b3bb71c', label: "Close", onClick: () => this.handleClose() }))))));
64
+ 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() }))))));
65
65
  }
66
66
  static get is() { return "verdocs-template-sender"; }
67
67
  static get originalStyleUrls() {
@@ -38,7 +38,7 @@ export class VerdocsTemplateStar {
38
38
  });
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: '42bac1aa4c8efb6c88d46f3fe17742a1137eff94' }, h("div", { key: '54e66f392f1b267088c9334e9651cff284488637', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '57cf9dfff4afab77f2e65c5df2f271874b88e625', class: "count" }, this.template.star_counter || '--')));
41
+ 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 || '--')));
42
42
  }
43
43
  static get is() { return "verdocs-template-star"; }
44
44
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ export class VerdocsTemplateTags {
8
8
  }
9
9
  render() {
10
10
  var _a;
11
- return (h(Host, { key: '5ae49ef85eb1b1e92695101f551ca08e9fb1ea39' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
11
+ return (h(Host, { key: 'b365b82377eea90c414fe742dd023306abcf7393' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
12
12
  }
13
13
  static get is() { return "verdocs-template-tags"; }
14
14
  static get originalStyleUrls() {
@@ -328,7 +328,7 @@ export class VerdocsTemplatesList {
328
328
  "references": {
329
329
  "TAllowedTemplateAction": {
330
330
  "location": "local",
331
- "path": "/Users/chad/projects/verdocs/a2/web-sdk/verdocs-web-sdk/src/components/templates/verdocs-templates-list/verdocs-templates-list.tsx",
331
+ "path": "/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/src/components/templates/verdocs-templates-list/verdocs-templates-list.tsx",
332
332
  "id": "src/components/templates/verdocs-templates-list/verdocs-templates-list.tsx::TAllowedTemplateAction"
333
333
  }
334
334
  }
@@ -6,7 +6,7 @@ import { d as defineCustomElement$3 } from './verdocs-help-icon2.js';
6
6
  import { d as defineCustomElement$2 } from './verdocs-select-input2.js';
7
7
  import { d as defineCustomElement$1 } from './verdocs-toggle-button2.js';
8
8
 
9
- const verdocsContactPickerCss = "@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{background-color:#f5f5fa;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .row{width:300px;display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-contact-picker form .label-with-icon{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-contact-picker form .label-with-icon verdocs-help-icon svg{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-contact-picker form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker form .dropdown{left:0;right:0;top:49px;z-index:1000000;position:absolute;background:#ffffff;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .dropdown .suggestion svg{fill:#666666}verdocs-contact-picker form .dropdown .suggestion .avatar{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:8px;border-radius:100%}verdocs-contact-picker form .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}verdocs-contact-picker form .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}verdocs-contact-picker form .dropdown .suggestion:hover{background:#eee;cursor:pointer}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}";
9
+ const verdocsContactPickerCss = "@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{background-color:#f5f5fa;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .row{width:300px;display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .names-row{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:8px}verdocs-contact-picker form .names-row>input{min-width:0}verdocs-contact-picker form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-contact-picker form .label-with-icon{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-contact-picker form .label-with-icon verdocs-help-icon svg{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-contact-picker form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker form .dropdown{left:0;right:0;top:49px;z-index:1000000;position:absolute;background:#ffffff;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .dropdown .suggestion svg{fill:#666666}verdocs-contact-picker form .dropdown .suggestion .avatar{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:8px;border-radius:100%}verdocs-contact-picker form .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}verdocs-contact-picker form .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}verdocs-contact-picker form .dropdown .suggestion:hover{background:#eee;cursor:pointer}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}";
10
10
  const VerdocsContactPickerStyle0 = verdocsContactPickerCss;
11
11
 
12
12
  const messageIcon = '<svg focusable="false" viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></svg>';
@@ -24,7 +24,6 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
24
24
  this.endpoint = VerdocsEndpoint.getDefault();
25
25
  this.templateRole = null;
26
26
  this.contactSuggestions = [];
27
- this.name = undefined;
28
27
  this.first_name = undefined;
29
28
  this.last_name = undefined;
30
29
  this.email = undefined;
@@ -44,10 +43,11 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
44
43
  }
45
44
  componentWillLoad() {
46
45
  if (this.templateRole) {
47
- const nameComponents = (this.templateRole.full_name || '').split(' ');
48
- const firstName = nameComponents.shift() || '';
49
- const lastName = nameComponents.join(' ');
50
- this.name = this.templateRole.full_name || '';
46
+ // TODO: For backwards compatibility, may be removed once templateRole no longer has a full_name
47
+ const fullName = `${this.templateRole.first_name || ''} ${this.templateRole.last_name || ''}`.trim() || this.templateRole.full_name || '';
48
+ const nameComponents = fullName.split(' ');
49
+ const firstName = this.templateRole.first_name || nameComponents.shift() || '';
50
+ const lastName = this.templateRole.last_name || nameComponents.join(' ') || '';
51
51
  this.first_name = firstName;
52
52
  this.last_name = lastName;
53
53
  this.email = this.templateRole.email || '';
@@ -61,10 +61,15 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
61
61
  this.pinCode = '';
62
62
  }
63
63
  }
64
- handleNameChange(e) {
64
+ handleFirstNameChange(e) {
65
65
  var _a;
66
- this.name = e.target.value;
67
- (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit({ query: this.name });
66
+ this.first_name = e.target.value;
67
+ (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit({ query: this.first_name });
68
+ }
69
+ handleLastNameChange(e) {
70
+ var _a;
71
+ this.last_name = e.target.value;
72
+ (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit({ query: this.last_name });
68
73
  }
69
74
  handleEmailChange(e) {
70
75
  this.email = e.target.value;
@@ -86,7 +91,6 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
86
91
  e.stopPropagation();
87
92
  this.showSuggestions = false;
88
93
  (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
89
- full_name: this.name,
90
94
  first_name: this.first_name,
91
95
  last_name: this.last_name,
92
96
  email: this.email,
@@ -97,7 +101,7 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
97
101
  }
98
102
  handleSelectSuggestion(e, suggestion) {
99
103
  e.stopPropagation();
100
- this.name = suggestion.name;
104
+ console.log('Selected', suggestion);
101
105
  this.first_name = suggestion.first_name;
102
106
  this.last_name = suggestion.last_name;
103
107
  this.email = suggestion.email;
@@ -107,31 +111,30 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
107
111
  // The reason for the random names/IDs is to disable browser autocomplete. We set the autocomplete tags but many browsers ignore them
108
112
  // and show a duplicate autocomplete picker on top of our own.
109
113
  render() {
110
- return (h("form", { key: 'd4a74d3f95d9c13bf7b4afdc0391aafdc504b053', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '329611e08994741cc94d01d62ab563ad182243ba', class: "row" }, h("label", { key: 'fd235b92d011939bbc20cf4efbe6428d953c454d', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: 'e3531ddf8308a1be0a3fd43205fde1e99bca5dbc', style: { display: 'flex', flexDirection: 'row', gap: '8px;' } }, h("input", { key: 'b8bf71e3f6ce8e5aad6ee9cb03d1119935206f0c', 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.handleNameChange(e) }), h("input", { key: '9d53c8d43ed0ca4d3f17d39b6d90bece9afd68a7', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last Name...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleNameChange(e) })), this.showSuggestions && (h("div", { key: 'f53fc8a9ec12e31401afc4d22c98269ba96d0048', class: "dropdown" }, this.contactSuggestions.map(suggestion => {
114
+ return (h("form", { key: 'eaf9f3ce3f5d435a0fc2ff9b2ee10275c5bb65d4', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '16041c43395714ac4853849149b9ef09ed8b3a8b', class: "row" }, h("label", { key: 'd25085f7277cd11de5dafa15f628a983f35bbb93', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: '64863ec682dc90555992f99c3d23cb297e72a335', class: "names-row" }, h("input", { key: 'b3f70dd283ddddeb3a003e53430a5bb155882022', 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: '8567b897b4ff2241e896d9b1fc18bd376dfb3ba7', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last Name...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: 'e1b968a478ba6c5e8683dd47b33febdf179b8cc8', class: "dropdown" }, this.contactSuggestions.map(suggestion => {
111
115
  var _a;
112
116
  return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.name, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.avatar ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.avatar }) : h("div", { class: "avatar", innerHTML: placeholderIcon }), h("div", { class: "details" }, h("div", { class: "name" }, suggestion.name), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
113
- })))), h("div", { key: '29211a4aeccb45c1f6ce4581ce89eef56fd0efa0', class: "row" }, h("label", { key: '32fb4eaa0599ea08364af828e93dd182ee36b42b', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '9a75b49d558dab786d4cec8e74e1d4970da63467', 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: 'd5e07b3b8b24283acb158a8b44a981b1281c0964', class: "row" }, h("label", { key: '0d76a478038a18d4b16f73c14fe8ec53a014ca37', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '7c957fa5584d100e08bcb4ef808ec21ef507df32', 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: '3d48f1e8c4941700ecbc07a57fa3a8e22e866c26', class: "row" }, h("div", { key: '94f76f6449c8939dbd989507d03f8c7323b0487d', class: "label-with-icon" }, h("label", { key: '516dd082ac4cd08e881bffc1ab22d14ed3cc4c52' }, "KBA:"), h("verdocs-help-icon", { key: 'e12ca24140bbcfb1645c14c2bfcf3e7326d3033a', 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: 'eadc53ce819c1ff21a9a3c51e4771a8dd7076eee', value: this.kbaMethod, onInput: (e) => (this.kbaMethod = e.target.value), options: [
117
+ })))), h("div", { key: 'a10b105c1b4b39f555dca754570624ee4cf1fa3a', class: "row" }, h("label", { key: 'c17158644af04aed1f57ad9592a1c86ce839b304', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '31de4d700141c32dc073d9842f111f0f5d087869', 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: '178f5e239279e98c5f7e7b8e7d74e01b029cd575', class: "row" }, h("label", { key: 'be1381774c82ec9ac1d34bfd0fed8b09703ef722', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '20bbeee5c02793a302324ce1c3da3ba0423a886d', 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: '2114ba18ca47e1ddb3a0242862a3a7a489f9cac3', class: "row" }, h("div", { key: '8805ad508c881764373dc0b2731d09f7d64ed51f', class: "label-with-icon" }, h("label", { key: '7f8aa6458dfe937e7b17b98ca5ea8457bd13d330' }, "KBA:"), h("verdocs-help-icon", { key: 'b5d979a6799f47760c6f4b7caecbbcf04f4be07d', 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: 'a8074ec42c02edffb9141f0efab39d55c88f84a8', value: this.kbaMethod, onInput: (e) => (this.kbaMethod = e.target.value), options: [
114
118
  { label: 'None', value: '' },
115
119
  { label: 'PIN Code', value: 'pin' },
116
120
  { label: 'Full Verification', value: 'kba' },
117
- ] }), this.kbaMethod === 'pin' && (h("input", { key: 'db7162ba5935448fdf6b335b57c2ac91283563b6', 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: '2ff18d49d7bd4181ba6fbf1ecacb64ba458b66d2', class: "row" }, h("label", { key: '2c22e7f0c17c5e86e4c920399ba3d4b0500a495e', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'ff3a0a753f1cb6418e02cb0f4abffbe540fd4213', 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: 'cec56a872a810a5cedc49e57f3afe1ecf3c3ade6', class: "buttons" }, h("verdocs-toggle-button", { key: '6f9e177a3e8d077144b5d4382a18a95b44616d12', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
121
+ ] }), this.kbaMethod === 'pin' && (h("input", { key: '2bf19c40e5b2e1a4fb13002b78719cef04d9a80c', 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: '422e5484637d0d8bb5c75135440e749c8d61762c', class: "row" }, h("label", { key: '14a30145cbfe95e9506e6158653043ad514ebfcc', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: '6f185da10b418d83924be637c8761656c57ee9d5', 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: '1783766a39890c1df677e64e64a43d8a2b2acf70', class: "buttons" }, h("verdocs-toggle-button", { key: '6728bee193c128e218d1e672915cc90e3563ef61', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
118
122
  this.showKba = e.detail.active;
119
123
  if (!e.detail.active) {
120
124
  this.pinCode = '';
121
125
  this.kbaMethod = '';
122
126
  }
123
127
  this.showSuggestions = false;
124
- } }), h("verdocs-toggle-button", { key: '8d7468bdc795eff356f4636bff62b9536c0a2d59', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
128
+ } }), h("verdocs-toggle-button", { key: 'a981d7f6385fbfcfb1de11a9a228080bd7480650', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
125
129
  this.showMessage = e.detail.active;
126
130
  this.showSuggestions = false;
127
- } }), h("div", { key: 'a902c45f33e944655d42f758b67c082fa57c93ca', class: "flex-fill" }), h("verdocs-button", { key: 'b24bce7779c3049c5f578cc55b2dec550258c57a', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '6445645ad05e49aa28c149bed65ee95ce6889e2a', label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
131
+ } }), h("div", { key: 'ec7885eb818035917f71cc100d6316896c0c435b', class: "flex-fill" }), h("verdocs-button", { key: 'edfe1ae05b3bc87b2bc86b61f768e56ad70b5c7f', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'ab7405721d454dbb4db3e936cf36337e60f2051f', label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
128
132
  }
129
133
  static get style() { return VerdocsContactPickerStyle0; }
130
134
  }, [0, "verdocs-contact-picker", {
131
135
  "endpoint": [16],
132
136
  "templateRole": [16],
133
137
  "contactSuggestions": [16],
134
- "name": [32],
135
138
  "first_name": [32],
136
139
  "last_name": [32],
137
140
  "email": [32],
@@ -84,7 +84,8 @@ const VerdocsEnvelopeRecipientLink = /*@__PURE__*/ proxyCustomElement(class Verd
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
- 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" }, this.recipient.full_name, " (", 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) })))));
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
  static get style() { return VerdocsEnvelopeRecipientLinkStyle0; }
90
91
  }, [0, "verdocs-envelope-recipient-link", {
@@ -109,7 +109,8 @@ const VerdocsEnvelopeRecipientSummary = /*@__PURE__*/ proxyCustomElement(class V
109
109
  const showLinkButton = recipientCanAct(recipient, recipientsWithActions);
110
110
  const link = this.links[recipient.role_name];
111
111
  const gettingLink = this.gettingLinks[recipient.role_name];
112
- 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" }, recipient.full_name, " (", 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) }))))));
112
+ const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
113
+ 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) }))))));
113
114
  })), (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) }))))));
114
115
  }
115
116
  static get style() { return VerdocsEnvelopeRecipientSummaryStyle0; }
@@ -154,77 +154,77 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
154
154
  }
155
155
  histories.forEach(history => {
156
156
  var _a;
157
- const user = (_a = this.store.state) === null || _a === void 0 ? void 0 : _a.recipients.find(recipient => recipient.role_name === history.role_name);
158
- const name = (user === null || user === void 0 ? void 0 : user.full_name) || '';
157
+ const recipient = (_a = this.store.state) === null || _a === void 0 ? void 0 : _a.recipients.find(recipient => recipient.role_name === history.role_name);
158
+ const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
159
159
  switch (history.event.toLowerCase()) {
160
160
  case 'recipient:signed':
161
- entries.push({ icon: 'gesture', message: `Signed by ${name}.`, date: new Date(history.created_at) });
161
+ entries.push({ icon: 'gesture', message: `Signed by ${fullName}.`, date: new Date(history.created_at) });
162
162
  break;
163
163
  case 'recipient:declined':
164
- entries.push({ icon: 'clear', message: `Declined by ${name}.`, date: new Date(history.created_at) });
164
+ entries.push({ icon: 'clear', message: `Declined by ${fullName}.`, date: new Date(history.created_at) });
165
165
  break;
166
166
  case 'recipient:opened':
167
167
  switch (history.event_detail) {
168
168
  // TODO: Sync these up with reality
169
169
  case 'email':
170
170
  case 'mail':
171
- entries.push({ icon: 'visibility', message: `Opened by ${name}, via email.`, date: new Date(history.created_at) });
171
+ entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via email.`, date: new Date(history.created_at) });
172
172
  break;
173
173
  case 'sms':
174
- entries.push({ icon: 'visibility', message: `Opened by ${name}, via SMS.`, date: new Date(history.created_at) });
174
+ entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via SMS.`, date: new Date(history.created_at) });
175
175
  break;
176
176
  case 'in_person_link':
177
- entries.push({ icon: 'visibility', message: `Opened by ${name}, via In-person link.`, date: new Date(history.created_at) });
177
+ entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via In-person link.`, date: new Date(history.created_at) });
178
178
  break;
179
179
  case 'in_app':
180
- entries.push({ icon: 'visibility', message: `Opened by ${name}, via dashboard.`, date: new Date(history.created_at) });
180
+ entries.push({ icon: 'visibility', message: `Opened by ${fullName}, via dashboard.`, date: new Date(history.created_at) });
181
181
  break;
182
182
  default:
183
- entries.push({ icon: 'visibility', message: `Opened by ${name}.`, date: new Date(history.created_at) });
183
+ entries.push({ icon: 'visibility', message: `Opened by ${fullName}.`, date: new Date(history.created_at) });
184
184
  }
185
185
  break;
186
186
  case 'recipient:submitted':
187
187
  switch (history.event_detail) {
188
188
  // TODO: Sync up
189
189
  case 'approver':
190
- entries.push({ icon: 'check_circle', message: `Approved by ${name}.`, date: new Date(history.created_at) });
190
+ entries.push({ icon: 'check_circle', message: `Approved by ${fullName}.`, date: new Date(history.created_at) });
191
191
  break;
192
192
  default:
193
- entries.push({ icon: 'send', message: `Submitted by ${name}.`, date: new Date(history.created_at) });
193
+ entries.push({ icon: 'send', message: `Submitted by ${fullName}.`, date: new Date(history.created_at) });
194
194
  break;
195
195
  }
196
196
  break;
197
197
  case 'recipient:prepared':
198
- entries.push({ icon: 'send', message: `Prepared by ${name}.`, date: new Date(history.created_at) });
198
+ entries.push({ icon: 'send', message: `Prepared by ${fullName}.`, date: new Date(history.created_at) });
199
199
  break;
200
200
  case 'recipient:claimed':
201
201
  if (history.event_detail === 'guest') {
202
- entries.push({ icon: 'account_circle', message: `${name} claimed the Verdoc as a guest.`, date: new Date(history.created_at) });
202
+ entries.push({ icon: 'account_circle', message: `${fullName} claimed the Verdoc as a guest.`, date: new Date(history.created_at) });
203
203
  }
204
204
  else if (history.event_detail === 'profile') {
205
- entries.push({ icon: 'verified_user', message: `${name} claimed the Verdoc as a verified user.`, date: new Date(history.created_at) });
205
+ entries.push({ icon: 'verified_user', message: `${fullName} claimed the Verdoc as a verified user.`, date: new Date(history.created_at) });
206
206
  }
207
207
  break;
208
208
  case 'recipient:agreed':
209
- entries.push({ icon: 'done', message: `${name} agreed to use electronic records and signatures.`, date: new Date(history.created_at) });
209
+ entries.push({ icon: 'done', message: `${fullName} agreed to use electronic records and signatures.`, date: new Date(history.created_at) });
210
210
  break;
211
211
  case 'recipient:invited':
212
212
  if (history.event_detail === 'sms') {
213
- entries.push({ icon: 'textsms', message: `${name} has been invited via SMS.`, date: new Date(history.created_at) });
213
+ entries.push({ icon: 'textsms', message: `${fullName} has been invited via SMS.`, date: new Date(history.created_at) });
214
214
  }
215
215
  else {
216
- entries.push({ icon: 'mail', message: `${name} has been invited via email.`, date: new Date(history.created_at) });
216
+ entries.push({ icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at) });
217
217
  }
218
218
  break;
219
219
  case 'invitation:resent':
220
220
  entries.push({
221
221
  icon: 'mail',
222
- message: `Invitation was resent to ${name} ${history.event_detail === 'reminder' ? ' by reminder' : ''}.`,
222
+ message: `Invitation was resent to ${fullName} ${history.event_detail === 'reminder' ? ' by reminder' : ''}.`,
223
223
  date: new Date(history.created_at),
224
224
  });
225
225
  break;
226
226
  case 'envelope:cc':
227
- entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${name}.`, date: new Date(history.created_at) });
227
+ entries.push({ icon: 'contact_mail', message: `A copy has been sent to ${fullName}.`, date: new Date(history.created_at) });
228
228
  break;
229
229
  case 'recipient:delegated':
230
230
  entries.push({ icon: 'people', message: history.event_detail, date: new Date(history.created_at) });
@@ -246,7 +246,7 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
246
246
  entries.push({ icon: 'cancel', message: `Envelope was canceled by the creator.`, date: new Date(history.created_at) });
247
247
  break;
248
248
  case 'owner:get_in_person_link':
249
- entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${user}.`, date: new Date(history.created_at) });
249
+ entries.push({ icon: 'link', message: `Owner accessed the In-person link for ${recipient}.`, date: new Date(history.created_at) });
250
250
  break;
251
251
  default:
252
252
  console.log('[SIDEBAR] Unknown history type', history);
@@ -275,13 +275,14 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
275
275
  _0.recipients.map((recipient, index) => {
276
276
  const canGetInPersonLink = recipient.status !== 'submitted' && recipient.status !== 'canceled' && recipient.status !== 'declined';
277
277
  const canSendReminder = this.canResendRecipient(recipient);
278
+ const fullName = `${recipient.first_name || ''} ${recipient.last_name || ''}`.trim() || recipient.full_name || '';
278
279
  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: [
279
280
  { id: 'reminder', label: 'Send Reminder', disabled: !canSendReminder },
280
281
  { id: 'inperson', label: 'Get In-Person Link', disabled: !canGetInPersonLink },
281
282
  // {id: 'modify', label: 'Modify Recipient', disabled: !this.canModifyRecipient(recipient)},
282
283
  // TODO: Details dialog
283
284
  // {id:'details',label: 'View Details'},
284
- ] }))), h("dic", { class: "recipient-content" }, h("div", { class: "recipient-name" }, recipient.full_name), h("div", { class: "recipient-name" }, recipient.email), h("div", { class: "recipient-name" }, recipient.phone))));
285
+ ] }))), 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))));
285
286
  }), 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: () => {
286
287
  var _a;
287
288
  this.showManageDialog = false;
@@ -233,7 +233,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
233
233
  else {
234
234
  this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);
235
235
  }
236
- } }), 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.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 => {
236
+ } }), 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 => {
237
237
  var _a, _b;
238
238
  switch (e.detail.id) {
239
239
  case 'view':
@@ -255,7 +255,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
255
255
  break;
256
256
  }
257
257
  } }))));
258
- }), !this.initiallyLoaded && (h("div", { key: '61a9e69c17606600ecce9926286a019a4bd3f6e2', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: '8b351e5c629ef3d4610a56b26f0eb264f7b4e6ff', 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 => {
258
+ }), !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 => {
259
259
  this.selectedPage = e.detail.selectedPage;
260
260
  } }))) : (h("div", null))));
261
261
  }
@@ -61,7 +61,7 @@ const VerdocsFieldTextbox = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldT
61
61
  interact.dynamicDrop(true);
62
62
  if (this.editable) {
63
63
  interact(this.el).resizable({
64
- edges: { top: true, bottom: true, left: true, right: true },
64
+ edges: { top: true, bottom: false, left: true, right: true },
65
65
  modifiers: [
66
66
  interact.modifiers.restrictSize({
67
67
  min: { width: 30, height: 15 },