@verdocs/web-sdk 4.2.96 → 4.2.99

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 (263) hide show
  1. package/dist/cjs/{EnvelopeStore-8ff43359.js → EnvelopeStore-db69faac.js} +11 -6
  2. package/dist/cjs/{TemplateFieldStore-2ad4a148.js → TemplateFieldStore-836d8bf5.js} +0 -2
  3. package/dist/cjs/{TemplateStore-ea66895c.js → TemplateStore-d11d62c0.js} +1 -1
  4. package/dist/cjs/index-a27a7f77.js +8 -4
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  7. package/dist/cjs/{verdocs-button_2.cjs.entry.js → verdocs-button_3.cjs.entry.js} +55 -0
  8. package/dist/cjs/{verdocs-checkbox_5.cjs.entry.js → verdocs-checkbox_4.cjs.entry.js} +2 -56
  9. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +18 -106
  14. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +123 -0
  15. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +57 -16
  16. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  17. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +22 -39
  18. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -4
  20. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-preview_9.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +11 -11
  24. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-sign.cjs.entry.js +19 -9
  26. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -3
  29. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-view.cjs.entry.js +8 -1
  32. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  33. package/dist/collection/collection-manifest.json +1 -0
  34. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +1 -0
  35. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.css +61 -0
  36. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +111 -0
  37. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +3 -2
  38. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +22 -4
  39. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  40. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  41. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  42. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  43. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +6 -1
  44. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -4
  45. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  46. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  47. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +3 -0
  48. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +47 -32
  49. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  50. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  51. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +19 -9
  52. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +10 -2
  53. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  54. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.css +24 -7
  55. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +62 -18
  56. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  57. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  58. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +19 -2
  59. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +0 -2
  60. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +3 -3
  61. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +6 -2
  62. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  63. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  64. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -8
  65. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  66. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  67. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  68. package/dist/collection/utils/EnvelopeStore.js +10 -6
  69. package/dist/collection/utils/TemplateFieldStore.js +0 -2
  70. package/dist/components/EnvelopeStore.js +11 -7
  71. package/dist/components/TemplateFieldStore.js +0 -2
  72. package/dist/components/index.js +2 -0
  73. package/dist/components/verdocs-dialog.js +1 -1
  74. package/dist/components/verdocs-dropdown2.js +1 -1
  75. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  76. package/dist/components/verdocs-envelope-recipient-summary.js +147 -1
  77. package/dist/components/verdocs-envelope-sidebar.js +85 -29
  78. package/dist/components/verdocs-envelopes-list.js +6 -6
  79. package/dist/components/verdocs-field-attachment2.js +3 -0
  80. package/dist/components/verdocs-field-checkbox2.js +0 -2
  81. package/dist/components/verdocs-field-date2.js +7 -3
  82. package/dist/components/verdocs-initial-dialog2.js +1 -1
  83. package/dist/components/verdocs-kba-dialog.js +2 -4
  84. package/dist/components/verdocs-ok-dialog2.js +1 -1
  85. package/dist/components/verdocs-quick-functions.js +1 -1
  86. package/dist/components/verdocs-search-tabs.js +1 -1
  87. package/dist/components/verdocs-sign.js +19 -9
  88. package/dist/components/verdocs-signature-dialog2.js +1 -1
  89. package/dist/components/verdocs-status-indicator2.js +2 -2
  90. package/dist/components/verdocs-switch.d.ts +11 -0
  91. package/dist/components/verdocs-switch.js +6 -0
  92. package/dist/components/verdocs-switch2.js +44 -0
  93. package/dist/components/verdocs-template-card.js +1 -1
  94. package/dist/components/verdocs-template-document-page2.js +1 -1
  95. package/dist/components/verdocs-template-role-properties2.js +8 -8
  96. package/dist/components/verdocs-template-sender2.js +1 -1
  97. package/dist/components/verdocs-template-star2.js +1 -1
  98. package/dist/components/verdocs-template-tags.js +1 -1
  99. package/dist/components/verdocs-text-input2.js +7 -6
  100. package/dist/components/verdocs-toggle-button2.js +1 -1
  101. package/dist/components/verdocs-toolbar-icon2.js +1 -1
  102. package/dist/components/verdocs-upload-dialog2.js +11 -32
  103. package/dist/components/verdocs-view2.js +10 -2
  104. package/dist/esm/{EnvelopeStore-27e21856.js → EnvelopeStore-8b1d4755.js} +11 -7
  105. package/dist/esm/{TemplateFieldStore-4a2e5b85.js → TemplateFieldStore-68bf6acd.js} +0 -2
  106. package/dist/esm/{TemplateStore-cd995a27.js → TemplateStore-41799d0a.js} +1 -1
  107. package/dist/esm/index-a68c7262.js +8 -4
  108. package/dist/esm/loader.js +1 -1
  109. package/dist/esm/verdocs-build.entry.js +2 -2
  110. package/dist/esm/{verdocs-button_2.entry.js → verdocs-button_3.entry.js} +56 -2
  111. package/dist/esm/{verdocs-checkbox_5.entry.js → verdocs-checkbox_4.entry.js} +3 -56
  112. package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
  113. package/dist/esm/verdocs-dialog.entry.js +1 -1
  114. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  115. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  116. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +19 -107
  117. package/dist/{components/verdocs-envelope-recipient-summary2.js → esm/verdocs-envelope-recipient-summary.entry.js} +11 -41
  118. package/dist/esm/verdocs-envelope-sidebar.entry.js +59 -18
  119. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  120. package/dist/esm/verdocs-field-attachment_13.entry.js +22 -39
  121. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  122. package/dist/esm/verdocs-kba-dialog.entry.js +2 -4
  123. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  124. package/dist/esm/verdocs-preview_9.entry.js +2 -2
  125. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  126. package/dist/esm/verdocs-radio-button_3.entry.js +11 -11
  127. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  128. package/dist/esm/verdocs-sign.entry.js +20 -10
  129. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  130. package/dist/esm/verdocs-template-card.entry.js +1 -1
  131. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
  132. package/dist/esm/verdocs-template-star.entry.js +1 -1
  133. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  134. package/dist/esm/verdocs-view.entry.js +8 -1
  135. package/dist/esm/verdocs-web-sdk.js +1 -1
  136. package/dist/esm-es5/EnvelopeStore-8b1d4755.js +1 -0
  137. package/dist/esm-es5/{TemplateFieldStore-4a2e5b85.js → TemplateFieldStore-68bf6acd.js} +1 -1
  138. package/dist/esm-es5/{TemplateStore-cd995a27.js → TemplateStore-41799d0a.js} +1 -1
  139. package/dist/esm-es5/index-a68c7262.js +1 -1
  140. package/dist/esm-es5/loader.js +1 -1
  141. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-button_3.entry.js +1 -0
  143. package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -0
  144. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  145. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  146. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  147. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  148. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  149. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -0
  150. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-preview_9.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  168. package/dist/types/components/controls/verdocs-switch/verdocs-switch.d.ts +21 -0
  169. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +2 -0
  170. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +1 -1
  171. package/dist/types/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.d.ts +7 -0
  172. package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +1 -0
  173. package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +7 -2
  174. package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +7 -2
  175. package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +0 -1
  176. package/dist/types/components.d.ts +105 -6
  177. package/dist/types/utils/EnvelopeStore.d.ts +2 -1
  178. package/dist/verdocs-web-sdk/{p-44dad7e0.entry.js → p-025eeafe.entry.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-1c04628f.entry.js → p-09b52821.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/p-0bc31629.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/{p-e5435d6f.entry.js → p-128e17f1.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-2cf67caa.system.js → p-1a663adf.system.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-4372c294.js → p-1b0294d4.js} +1 -1
  184. package/dist/verdocs-web-sdk/p-1cb18a85.entry.js +1 -0
  185. package/dist/verdocs-web-sdk/p-1e89f52d.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
  187. package/dist/verdocs-web-sdk/{p-b743f246.system.entry.js → p-33f5ff73.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-a1bff034.system.js → p-38c6897c.system.js} +1 -1
  189. package/dist/verdocs-web-sdk/{p-d80305c3.entry.js → p-393489cb.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/{p-2a0d1b6e.entry.js → p-405875b4.entry.js} +1 -1
  191. package/dist/verdocs-web-sdk/p-40b66b54.system.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/{p-9d383fad.system.entry.js → p-444191a8.system.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-ba8fc3fc.entry.js → p-4480e944.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/{p-de1f949a.entry.js → p-4c514f4f.entry.js} +1 -1
  195. package/dist/verdocs-web-sdk/p-4dde02da.entry.js +1 -0
  196. package/dist/verdocs-web-sdk/p-52023c14.system.entry.js +1 -0
  197. package/dist/verdocs-web-sdk/{p-71783a91.system.entry.js → p-56a7b8df.system.entry.js} +1 -1
  198. package/dist/verdocs-web-sdk/{p-4475c970.system.entry.js → p-5a8672ab.system.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-be2431ed.system.entry.js → p-64d648c1.system.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-bbdc81d5.system.entry.js → p-669771a1.system.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/p-68545704.system.entry.js +1 -0
  202. package/dist/verdocs-web-sdk/{p-4efb0a48.system.entry.js → p-75e02f38.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-281ce405.system.entry.js → p-77f25be6.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/p-784ac100.js +1 -0
  205. package/dist/verdocs-web-sdk/p-7da5f9e6.entry.js +1 -0
  206. package/dist/verdocs-web-sdk/p-809e1a1f.system.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/{p-85aaa229.entry.js → p-8395d4f2.entry.js} +1 -1
  208. package/dist/verdocs-web-sdk/p-84a8d8c5.system.entry.js +1 -0
  209. package/dist/verdocs-web-sdk/{p-6bcdfa4f.system.entry.js → p-86482c5e.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-94852d77.entry.js → p-88c3a2b9.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/{p-a5b56406.system.entry.js → p-9790720c.system.entry.js} +1 -1
  212. package/dist/verdocs-web-sdk/p-985363b3.system.entry.js +1 -0
  213. package/dist/verdocs-web-sdk/{p-0eeaf11d.system.entry.js → p-a75f7b16.system.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/p-af9f6863.entry.js +1 -0
  215. package/dist/verdocs-web-sdk/p-b7b1ad8f.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/{p-d55b1490.entry.js → p-b8938237.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/p-ba857346.system.js +1 -0
  218. package/dist/verdocs-web-sdk/{p-65596be9.entry.js → p-bde2073e.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-b7a0a567.entry.js → p-c2e15dd9.entry.js} +1 -1
  220. package/dist/verdocs-web-sdk/p-c392509e.js +1 -0
  221. package/dist/verdocs-web-sdk/{p-e331a1ad.system.entry.js → p-c5dad8bb.system.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-4e97fc5c.entry.js → p-c8196df5.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/p-cca9858f.entry.js +1 -0
  224. package/dist/verdocs-web-sdk/p-ce8420d1.entry.js +1 -0
  225. package/dist/verdocs-web-sdk/{p-2531fcad.entry.js → p-d5f7caa2.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/p-d6577207.entry.js +1 -0
  227. package/dist/verdocs-web-sdk/p-e544d694.system.entry.js +1 -0
  228. package/dist/verdocs-web-sdk/p-eb602f8f.system.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/{p-5b511018.entry.js → p-ed38f9b4.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-3514f40b.entry.js → p-edcc7110.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-35ca7ec1.system.entry.js → p-ef0061be.system.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/{p-9ad111fc.entry.js → p-f0dd04a1.entry.js} +1 -1
  233. package/dist/verdocs-web-sdk/p-fcedcc72.system.entry.js +1 -0
  234. package/dist/verdocs-web-sdk/{p-c9b00253.system.entry.js → p-fd2224bb.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-a764d4cd.system.entry.js → p-fe672057.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-be7fa476.system.entry.js → p-ff9fc188.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  238. package/package.json +2 -2
  239. package/dist/collection/components/controls/verdocs-toggle/grid.svg +0 -1
  240. package/dist/collection/components/controls/verdocs-toggle/list.svg +0 -1
  241. package/dist/esm-es5/EnvelopeStore-27e21856.js +0 -1
  242. package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
  243. package/dist/esm-es5/verdocs-checkbox_5.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-01199d7a.entry.js +0 -1
  245. package/dist/verdocs-web-sdk/p-143f1bdf.system.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-1500a477.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-18188ae5.system.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-380541d9.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-393b2a8e.entry.js +0 -1
  250. package/dist/verdocs-web-sdk/p-437de527.system.entry.js +0 -1
  251. package/dist/verdocs-web-sdk/p-61860777.entry.js +0 -1
  252. package/dist/verdocs-web-sdk/p-8302dcf5.system.entry.js +0 -1
  253. package/dist/verdocs-web-sdk/p-9b3bebba.system.entry.js +0 -1
  254. package/dist/verdocs-web-sdk/p-a87190ad.entry.js +0 -1
  255. package/dist/verdocs-web-sdk/p-b426caa8.system.entry.js +0 -1
  256. package/dist/verdocs-web-sdk/p-b4ae9308.entry.js +0 -1
  257. package/dist/verdocs-web-sdk/p-ba2d11a0.entry.js +0 -1
  258. package/dist/verdocs-web-sdk/p-d3b5c957.system.js +0 -1
  259. package/dist/verdocs-web-sdk/p-d754b3d1.system.entry.js +0 -1
  260. package/dist/verdocs-web-sdk/p-ed199c97.js +0 -1
  261. package/dist/verdocs-web-sdk/p-fd782917.system.entry.js +0 -1
  262. package/dist/verdocs-web-sdk/p-fe1b68ae.system.entry.js +0 -1
  263. package/dist/verdocs-web-sdk/p-ff64786a.js +0 -1
@@ -216,7 +216,7 @@ export class VerdocsInitialDialog {
216
216
  }
217
217
  */
218
218
  render() {
219
- return (h(Host, { key: '98f8bc6b29579e346c77c0d95f411856d1ac9574', onClick: e => this.handleCancel(e) }, h("div", { key: 'f5523f0097065f6bb98ae3dafa5597c9c838bdb1', class: "dialog" }, h("div", { key: 'd02d5974a2e4cd5c4a902eb50ffc3eb266d8581a', class: "heading" }, "Create Your Initial"), h("div", { key: 'bcc0f0c0576e2d04368b343ffe2ab068adbccad7', class: "content" }, h("verdocs-text-input", { key: '59d99f2d65a80f0b026e2b7437124ee451646ce9', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e) }), h("div", { key: '74bea0970b5a0cb3e8ba0b1161831ca2ee5c4df5', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '1964a8a425a78881257c7c649e86b55d2d4d1f44', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '8032dbe137f00c09ac4416901dbe9fef27cfb961', class: "buttons" }, h("verdocs-button", { key: 'f6151fbecf531ee7c1d0d257bf9e72a24f00deca', label: "CANCEL", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '2ab798869462bd942a37c34bbbe7c35a27927044', label: "Adopt & Sign", onClick: e => this.handleAdopt(e) }))))));
219
+ return (h(Host, { key: '8d0116cf97848213877b5250d2b49e8da73f9d7a', onClick: e => this.handleCancel(e) }, h("div", { key: '81a12261f5eef48b00309756c685fae9993f613a', class: "dialog" }, h("div", { key: '91364e9ac8d4bbdd50dc201a323c9b34a1d5ddfc', class: "heading" }, "Create Your Initial"), h("div", { key: 'dea07efcc51b6b8530e2615f05bcd8024e6d2029', class: "content" }, h("verdocs-text-input", { key: '04ad40f6f734556849afa551ef9eb665d3b28c48', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e) }), h("div", { key: 'c038a30e6355e58d428c5b0190868a536236dfb3', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '22a8f81443052b8e0523f19161a9cf8671fe9f45', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: 'd6c53a1846c6d109d38d1977a452dcfbea1b7aeb', class: "buttons" }, h("verdocs-button", { key: '0c12b1bfd70a923564e77a7970472cc5cdcdf0e9', label: "CANCEL", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '88ef91ffa75db664b822758f38143d5535b6803c', label: "Adopt & Sign", onClick: e => this.handleAdopt(e) }))))));
220
220
  }
221
221
  static get is() { return "verdocs-initial-dialog"; }
222
222
  static get originalStyleUrls() {
@@ -36,6 +36,7 @@ verdocs-kba-dialog .dialog {
36
36
  overflow: hidden;
37
37
  background: #fff;
38
38
  padding: 16px;
39
+ gap: 14px;
39
40
  box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);
40
41
  }
41
42
  verdocs-kba-dialog .heading {
@@ -52,7 +53,6 @@ verdocs-kba-dialog .help-box {
52
53
  background-color: #707ae5;
53
54
  display: flex;
54
55
  flex-direction: row;
55
- margin: 14px 0;
56
56
  padding: 14px;
57
57
  align-items: center;
58
58
  color: white;
@@ -82,8 +82,13 @@ verdocs-kba-dialog .input {
82
82
  margin: 16px 0 32px;
83
83
  }
84
84
  verdocs-kba-dialog .input label {
85
+ flex: 0;
85
86
  line-height: 10px;
86
87
  font-weight: 500;
88
+ white-space: nowrap;
89
+ }
90
+ verdocs-kba-dialog .input input {
91
+ flex: 1;
87
92
  }
88
93
  verdocs-kba-dialog .choices {
89
94
  display: grid;
@@ -1,7 +1,7 @@
1
1
  import { h, Fragment, Host } from "@stencil/core";
2
2
  const QuestionIcon = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;
3
3
  /**
4
- * Prompt the user to confirm their identity with a series of questions.
4
+ * Prompt the user to confirm their identity with a PIN or a series of questions.
5
5
  */
6
6
  export class VerdocsKbaDialog {
7
7
  constructor() {
@@ -29,9 +29,7 @@ export class VerdocsKbaDialog {
29
29
  this.next.emit(this.response);
30
30
  }
31
31
  render() {
32
- return (h(Host, { key: 'da8054400603e7418a3d242a9748bf7ffef16d3d' }, h("div", { key: '792bf0a4b01debcd3d9c7bb463e231e2eb484bcd', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'e45a0b6afa03b2f0accf8e6482d17b46030e126d', class: "dialog" }, h("div", { key: 'e847058eaa84b95a5e4280cd97d7dc836ee0d440', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), h("div", { key: 'e5c56390905ddb76306c61e0c6b0d1bdef2711c4', class: "help-box" }, h("div", { key: '09884fd5082b7c8f486cbdfb77600c0880fd27e4', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '7a616300c3f63eab801e50058a0e7af05b78a480', class: "help-details" }, h("div", { key: 'cfd964d86c1a9613514c3aa287aa9054628e52f5', class: "help-title" }, this.helptitle), h("div", { key: 'bbbc656fbde278951af5dc9a584f87f9ebc8c774', class: "help-text" }, this.helptext))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => {
33
- this.response = choice;
34
- } }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder }))), h("div", { key: '292ba4aeeb659c074ca6bf7cf140509eef3bae72', class: "buttons" }, h("verdocs-button", { key: '66d145fd7aa347f7fadb14a4242626a85961bb11', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'e27794562d12fb066509df1c28836b2292e85e4e', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
32
+ return (h(Host, { key: '9b857660b91b89f928049d3f85a66bc1e585105e' }, h("div", { key: '36ff0ab3351dff215a5abf4a1ff7356346747650', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '26003d02099b3f64660091ee1dc02b81e7b9ca13', class: "dialog" }, h("div", { key: '4fb9daa61b801da6eb5f096149b09d4e0b89f676', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { key: 'bfac2a1a7bb294e1b24eb17664bcdd65ce7c4a17', class: "help-box" }, h("div", { key: '434dd57cdcd743f612985866d0e16e6f1fd2b1e1', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '661bfcc2e80d66dceae242251e0734af45e83185', class: "help-details" }, h("div", { key: '786b81135e2080d7881016221fe99d3a1ecff095', class: "help-title" }, this.helptitle), h("div", { key: '0b31cb58496e9665389399e6f426dc4266837af0', class: "help-text" }, this.helptext)))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => (this.response = choice) }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) }))), h("div", { key: 'a6752c1cbeb1a83cf1adbb2f634cc8bdf79ebb0a', class: "buttons" }, h("verdocs-button", { key: '1a2d7c28c34f7f6bfbc554b116b096617aa0b40e', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'fb1c40e5895a0644c904fac36b860aaf62eb7e95', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
35
33
  }
36
34
  static get is() { return "verdocs-kba-dialog"; }
37
35
  static get originalStyleUrls() {
@@ -27,7 +27,7 @@ export class VerdocsOkDialog {
27
27
  }
28
28
  }
29
29
  render() {
30
- return (h(Host, { key: 'd1e3ae19b392dc0b6d72d7f556dcd7e3563bfdf0', class: this.closed ? 'closed' : '' }, h("div", { key: '7ebf997fa041a6dc46db786a907892f2e453dae0', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '5b1942996241c78ba43d69d3cfc524122fb61a34', class: "dialog" }, h("div", { key: 'f2f4a909de8fffe96deb3b8e5dd40c33eabb8f7b', class: "heading" }, this.heading), h("div", { key: 'be340ff6b4505a2e4860dedaf45ee96a8a163fb4', class: "content" }, h("div", { key: '96ca69ddc741ba55a29084d5acb06297b92542e3', class: "message", innerHTML: this.message }), h("div", { key: '380641fb9acafc35508a8099a4aca16849b24631', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: '783c61e0ef96346d18923a4961988efa762c360f', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
30
+ return (h(Host, { key: '1077eb562a8fd6bb9b1771d00e3d6bf37682dc68', class: this.closed ? 'closed' : '' }, h("div", { key: '370c8176f1be6c1b7ff44c9ac6d30c162f2c5b10', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'e502d4a7fc18fd0bee04ff9679ed345bc5aa93da', class: "dialog" }, h("div", { key: '826089d49b624246e909ff4437bf3d5bd8d8e5d8', class: "heading" }, this.heading), h("div", { key: '8aae0a35156334f6e052d0119d8398c64a627869', class: "content" }, h("div", { key: 'e4740cd967c231c03ffcf37b3c94c474b2760c97', class: "message", innerHTML: this.message }), h("div", { key: 'e0c1419acf0367f2342f8cf7325a5cde7922ac7e', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: '0aaa059fe1071f45f2497963c820e8ab0d74fddd', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
31
31
  }
32
32
  static get is() { return "verdocs-ok-dialog"; }
33
33
  static get originalStyleUrls() {
@@ -213,7 +213,7 @@ export class VerdocsSignatureDialog {
213
213
  }
214
214
  */
215
215
  render() {
216
- return (h(Host, { key: '473acd8e7140c4f43b62a621a593fc20005ebe4e', onClick: e => this.handleCancel(e) }, h("div", { key: 'b9a66a9135857b2bbcc6afaaa9beaaae4eb64256', class: "dialog" }, h("div", { key: 'f89321f14c13eebde00ffa94c0d22d965000b8fe', class: "heading" }, "Create Your Signature"), h("div", { key: 'ca4ca07c5edcbd64cf2ade7b00e2ad73ca27099e', class: "content" }, h("verdocs-text-input", { key: 'c58ef162f417e8641928e501e1049155a2281537', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: 'ad45ecc444bebd5148a2ba83fcff151173dcba49', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '49cf09bf30308ad8f2f6d532d79663e22d02b0d7', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '322a98f49bfef63474ec02ee04c3655310d730e8', class: "buttons" }, h("verdocs-button", { key: 'fd32bb8d435469f40e7ac371e0b0e5e67138f2e5', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'b7c57d29e5392e90bd5374b3078abf4d78ffbfb4', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
216
+ return (h(Host, { key: 'f034c340293126cce5febf238cbcbf69a5134253', onClick: e => this.handleCancel(e) }, h("div", { key: '800bc098a14e777918b3a35292d58d249fe646f9', class: "dialog" }, h("div", { key: 'b50d5c57b8c9ef980f9b146376cd32a68f8e302d', class: "heading" }, "Create Your Signature"), h("div", { key: '82ad4da15b63875bdb376a2e546c06d5fef1eb44', class: "content" }, h("verdocs-text-input", { key: '6df6805d9f761819b190e62a871e3580acce50e7', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: 'e471f1b5f703bcfc77326dbcb2ba2bc5499d27a6', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'eaeede6b4d7fa6087fbd49e79a427c36606acb8b', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: 'f20d4607c71a2a25589cf660aa9882b83b99baa8', class: "buttons" }, h("verdocs-button", { key: '59673617176d5a00809ee27d0015eb2c26b22ced', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'a27c2f2f68b4aa5291330bcbb5601da22c947e9a', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
217
217
  }
218
218
  static get is() { return "verdocs-signature-dialog"; }
219
219
  static get originalStyleUrls() {
@@ -53,6 +53,9 @@ verdocs-upload-dialog .buttons {
53
53
  verdocs-upload-dialog .buttons verdocs-button {
54
54
  margin-left: 16px;
55
55
  }
56
+ verdocs-upload-dialog .current-label {
57
+ margin: 20px 0 5px 0;
58
+ }
56
59
  verdocs-upload-dialog .drop-target {
57
60
  opacity: 1;
58
61
  width: 100%;
@@ -1,5 +1,4 @@
1
- // import {fileToDataUrl, IFileWithData} from '@verdocs/js-sdk';
2
- import { h, Host } from "@stencil/core";
1
+ import { h, Fragment, Host } from "@stencil/core";
3
2
  const TrashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" /></svg>`;
4
3
  const PaperclipIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" /></svg>`;
5
4
  /**
@@ -9,23 +8,22 @@ const PaperclipIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewB
9
8
  */
10
9
  export class VerdocsUploadDialog {
11
10
  constructor() {
11
+ this.existingFile = undefined;
12
12
  this.draggingOver = false;
13
13
  this.selectedFiles = [];
14
14
  }
15
- // @State() droppedFiles = [] as IFileWithData[];
16
15
  handleCancel() {
17
16
  this.exit.emit();
18
17
  }
19
18
  // We need a separate event handler for clicking the background because it can receive events "through" other child components
20
19
  handleDismiss(e) {
21
- if (e.target.className === 'background-overlay') {
20
+ if (e.target.class === 'background-overlay') {
22
21
  e.preventDefault();
23
22
  this.handleCancel();
24
23
  }
25
24
  }
26
25
  handleDone() {
27
26
  this.next.emit(this.selectedFiles);
28
- // this.next.emit(this.droppedFiles);
29
27
  }
30
28
  handleDragOver(e) {
31
29
  e.preventDefault();
@@ -39,27 +37,15 @@ export class VerdocsUploadDialog {
39
37
  e.preventDefault();
40
38
  this.draggingOver = false;
41
39
  this.selectedFiles = Array.from(e.dataTransfer.items);
42
- // Required for cross-browser support. Note that dataTransfer.items is of type DataTransferItemList and is not an array.
43
- // let droppedFiles = [] as File[];
44
- // if (e.dataTransfer.items) {
45
- // for (let i = 0; i < e.dataTransfer.items.length; i++) {
46
- // if (e.dataTransfer.items[i].kind === 'file') {
47
- // const file = e.dataTransfer.items[i].getAsFile();
48
- // droppedFiles.push(file);
49
- // }
50
- // }
51
- // } else {
52
- // droppedFiles = e.dataTransfer.files;
53
- // }
54
- // this.decodedFiles = await Promise.all(droppedFiles.map(fileToDataUrl));
55
40
  }
56
41
  handleRemoveAttachment(index) {
57
42
  const newFiles = [...this.selectedFiles];
58
43
  newFiles.splice(index, 1);
59
44
  this.selectedFiles = newFiles;
60
- // const newFiles = [...this.decodedFiles];
61
- // newFiles.splice(index, 1);
62
- // this.decodedFiles = newFiles;
45
+ }
46
+ handleDeleteAttachment() {
47
+ var _a;
48
+ (_a = this.remove) === null || _a === void 0 ? void 0 : _a.emit();
63
49
  }
64
50
  handleSelectFile() {
65
51
  var _a;
@@ -72,19 +58,9 @@ export class VerdocsUploadDialog {
72
58
  for (let i = 0; i < ((_b = this.fileInput) === null || _b === void 0 ? void 0 : _b.files.length); i++) {
73
59
  droppedFiles.push((_c = this.fileInput) === null || _c === void 0 ? void 0 : _c.files[i]);
74
60
  }
75
- // this.decodedFiles = await Promise.all(droppedFiles.map(fileToDataUrl));
76
- // let droppedFiles = [] as File[];
77
- // for (let i = 0; i < this.fileInput?.files.length; i++) {
78
- // droppedFiles.push(this.fileInput?.files[i]);
79
- // }
80
- // this.decodedFiles = await Promise.all(droppedFiles.map(fileToDataUrl));
81
61
  }
82
62
  render() {
83
- return (h(Host, { key: 'f64e07a78fc85647e8f9434b5a113320f3d7e4f0' }, h("div", { key: 'e982fab85ed6d9e7a19bfd701887b481d6386a68', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'd5f998907651e578adb315f0305d15b08a24d574', class: "dialog" }, h("div", { key: '8258e31e6e261c60156cf1370630d8f34fe84141', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 ? (
84
- // {this.decodedFiles.length < 1 ? (
85
- h("div", { class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", null, "Drag and drop a file here..."), h("p", null, "- or -"), h("verdocs-button", { label: "Select a file...", onClick: () => this.handleSelectFile() }), h("input", { type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, onChange: () => this.handleFileChange() }))) : (h("div", { class: "attachments" }, this.selectedFiles.map((file, index) => (
86
- // {this.decodedFiles.map((file, index) => (
87
- h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), h("div", { key: '566289404d41ef017e101c68601593bd85b4fb4a', class: "buttons" }, h("verdocs-button", { key: 'd1d62c6590dd3d800f329e2c70aca963527d42b4', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: '000b401b00de23141b2c7f856d14715835ce2f7c', label: "Done", onClick: () => this.handleDone(), disabled: this.selectedFiles.length < 1 }))))));
63
+ return (h(Host, { key: '107df7d3d61af8fffdeeb2a5cd9664a283cf8176' }, h("div", { key: 'b44a837d42428a5c8b553ea57fdadb6ee62e9927', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'd13b0188f60e71d8ca32a5c5031753a9717f119d', class: "dialog" }, h("div", { key: '7dd24568bfdeed7241ef09f4cc539461564048af', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && this.existingFile && (h(Fragment, { key: '6b7197060ecf23a561518dfa1fe3087c11c7d596' }, h("div", { key: 'f2b801fea0cab95fc5ffd3d5cab5b6788dca7e3b', class: "current-label" }, "Current Attachment"), h("div", { key: '24db98920285515ff2d31e606440abeef1277600', class: "attachments", style: { marginTop: '0' } }, h("div", { key: 'a1432d1e8e914c4e2e251c258f97f20c457292d9', class: "attachment" }, h("div", { key: 'e13b9edaf726666e0ea466ad926e066747728bd9', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '4ad783ea0df4f711536a02d75d5bb4686e86ac06', class: "name" }, this.existingFile.name), h("div", { key: '555fd7f1e13b4dea753d6235c5acd3886912e19a', class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleDeleteAttachment() }))))), this.selectedFiles.length < 1 && (h("div", { key: 'ca6ee048c121ab6f1b2ac1348b60ebae299ab41a', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: '77e92f537f2a984d3ec8a784d35ac08c2cf2274a' }, "Drag and drop a ", !!this.existingFile && 'replacement', " here..."), h("p", { key: '72500781ecae42d1249d9b380edec7866f84426f' }, "- or -"), h("verdocs-button", { key: '460e2e6f1629eca3d6f8c395dc33f1a01fb94fcb', label: !!this.existingFile ? 'Replace file...' : 'Select a file...', onClick: () => this.handleSelectFile() }), h("input", { key: 'e4b6ec3c30f11e448f05e21510a29dc52a217f9e', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: 'beddc71ea828d26528d185447a2ccf1d9111f14c', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), h("div", { key: '16be83d7135c299d3ab35b523611188a0f97edc2', class: "buttons" }, h("verdocs-button", { key: '8b72c9191865278d5f90ad6d61c0bb355ccbc441', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'f083700863c7839e521eaa8c36940e230e47b9d0', label: "Upload", onClick: () => this.handleDone(), disabled: this.selectedFiles.length < 1 }))))));
88
64
  }
89
65
  static get is() { return "verdocs-upload-dialog"; }
90
66
  static get originalStyleUrls() {
@@ -97,6 +73,30 @@ export class VerdocsUploadDialog {
97
73
  "$": ["verdocs-upload-dialog.css"]
98
74
  };
99
75
  }
76
+ static get properties() {
77
+ return {
78
+ "existingFile": {
79
+ "type": "unknown",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "File",
83
+ "resolved": "File",
84
+ "references": {
85
+ "File": {
86
+ "location": "global",
87
+ "id": "global::File"
88
+ }
89
+ }
90
+ },
91
+ "required": false,
92
+ "optional": false,
93
+ "docs": {
94
+ "tags": [],
95
+ "text": ""
96
+ }
97
+ }
98
+ };
99
+ }
100
100
  static get states() {
101
101
  return {
102
102
  "draggingOver": {},
@@ -139,6 +139,21 @@ export class VerdocsUploadDialog {
139
139
  }
140
140
  }
141
141
  }
142
+ }, {
143
+ "method": "remove",
144
+ "name": "remove",
145
+ "bubbles": true,
146
+ "cancelable": true,
147
+ "composed": true,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": "Event fired when an existing attachment is deleted. The parent component is\nresponsible for the actual removal."
151
+ },
152
+ "complexType": {
153
+ "original": "any",
154
+ "resolved": "any",
155
+ "references": {}
156
+ }
142
157
  }];
143
158
  }
144
159
  }
@@ -19,7 +19,7 @@ export class VerdocsQuickFunctions {
19
19
  this.createDocument.emit();
20
20
  }
21
21
  render() {
22
- return (h("div", { key: '0977445aaeb18033ee53e208d9b3f60469ddb756', class: "container" }, h("p", { key: 'f3d8fe0ae4d9b09a7070ef4448326be32aeb7fd4', class: "title" }, "Quick Create"), h("button", { key: '7347890de8556714585fc579490503724ebfa01c', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: 'a056bb9b946edb68ce2f4364fe408c4a59d13b7f', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
22
+ return (h("div", { key: '427a4bfc1c41a292ed25c46ea29f770b6207fecf', class: "container" }, h("p", { key: 'e2e0e046e25b1cc9ee2c9920d33f52a37a703c8b', class: "title" }, "Quick Create"), h("button", { key: '4fd375e82e13f7aeac71d046c065297089805db6', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '4f725f16085dc64adb11ec1efb45433984927b84', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
23
23
  }
24
24
  static get is() { return "verdocs-quick-functions"; }
25
25
  static get originalStyleUrls() {
@@ -4,7 +4,7 @@ export class VerdocsSearchTabs {
4
4
  this.selected = 'all';
5
5
  }
6
6
  render() {
7
- return h("div", { key: 'ee4e4ba5ced071f71a9f11751da60c4a863ca018' }, "\u00A0");
7
+ return h("div", { key: '3389871fb01d199ede32a18f3de3f778f2b57ae9' }, "\u00A0");
8
8
  }
9
9
  static get is() { return "verdocs-search-tabs"; }
10
10
  static get originalStyleUrls() {
@@ -1,5 +1,5 @@
1
1
  import { Host, Fragment, h } from "@stencil/core";
2
- import { fullNameToInitials, startSigningSession } from "@verdocs/js-sdk";
2
+ import { fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment } from "@verdocs/js-sdk";
3
3
  import { integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials } from "@verdocs/js-sdk";
4
4
  import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, updateEnvelopeField } from "@verdocs/js-sdk";
5
5
  import { createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit, formatFullName } from "@verdocs/js-sdk";
@@ -216,10 +216,10 @@ export class VerdocsSign {
216
216
  case 'textbox':
217
217
  return this.saveFieldChange(field.name, { prepared: false, value });
218
218
  case 'checkbox': {
219
- return this.saveFieldChange(field.name, { prepared: false, value: e.target.checked });
219
+ return this.saveFieldChange(field.name, { prepared: false, value: String(e.target.checked) });
220
220
  }
221
221
  case 'radio': {
222
- return this.saveFieldChange(field.name, { prepared: false, value: e.target.checked });
222
+ return this.saveFieldChange(field.name, { prepared: false, value: String(e.target.checked) });
223
223
  }
224
224
  case 'dropdown':
225
225
  // TODO: Set prepared to false server-side.
@@ -422,13 +422,21 @@ export class VerdocsSign {
422
422
  }
423
423
  });
424
424
  el.addEventListener('attached', async (e) => {
425
+ // TODO: Show a spinner and/or progress bar
425
426
  console.log('[SIGN] onAttached', e.detail, e.target.value);
426
427
  const r = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name, e.detail);
427
428
  console.log('upload result', r);
429
+ // this.updateRecipientFieldValue(fieldName, updateResult)
428
430
  this.checkRecipientFields();
429
431
  });
430
- el.addEventListener('removed', (e) => {
432
+ el.addEventListener('remove', (e) => {
431
433
  console.log('[SIGN] onRemoved', e.detail, e.target.value);
434
+ deleteEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name)
435
+ .then(r => {
436
+ console.log('[SIGN] Deleted attachment', r);
437
+ // this.updateRecipientFieldValue(fieldName, updateResult)
438
+ })
439
+ .catch(e => console.log('[SIGN] Error deleting attachment', e));
432
440
  });
433
441
  el.addEventListener('focusout', e => {
434
442
  if (field.type !== 'dropdown') {
@@ -495,6 +503,11 @@ export class VerdocsSign {
495
503
  this.checkRecipientFields();
496
504
  }
497
505
  render() {
506
+ if (this.showLoadError) {
507
+ return (h(Host, null, h("verdocs-ok-dialog", { heading: "Unable to Start Signing", message: `Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`, buttonLabel: "OK", onNext: () => {
508
+ window.location.reload();
509
+ } })));
510
+ }
498
511
  if (!this.envelope) {
499
512
  return (h(Host, null, h("verdocs-loader", null)));
500
513
  }
@@ -504,7 +517,7 @@ export class VerdocsSign {
504
517
  this.isDone = true;
505
518
  } })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
506
519
  }
507
- return (h(Host, { class: { agreed: this.agreed } }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), this.agreed && !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), this.agreed && (h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) })))), this.agreed && (h("div", { class: "document", style: { paddingTop: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
520
+ return (h(Host, { class: { agreed: this.agreed } }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), this.agreed && !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), this.agreed && (h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) })))), this.agreed ? (h("div", { class: "document", style: { paddingTop: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
508
521
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
509
522
  return (h(Fragment, null, pageNumbers.map(pageNumber => {
510
523
  // In signing mode we show the original template page with all the recipient fields so we can show source formatting and
@@ -520,12 +533,9 @@ export class VerdocsSign {
520
533
  { name: 'controls', type: 'div' },
521
534
  ] }));
522
535
  })));
523
- }))), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
536
+ }))) : (h("div", { class: "document", style: { paddingTop: '15px' } }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" }))), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
524
537
  this.showDone = false;
525
538
  this.isDone = true;
526
- } })), this.showLoadError && (h("verdocs-ok-dialog", { heading: "Error Loading Document", message: `Please check with the sender to ensure it has not been canceled, and try again later.`, buttonLabel: "Retry", onNext: () => {
527
- this.showLoadError = false;
528
- window.location.reload();
529
539
  } })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
530
540
  }
531
541
  static get is() { return "verdocs-sign"; }
@@ -22,6 +22,7 @@ export class VerdocsView {
22
22
  this.envelope = null;
23
23
  this.roleNames = [];
24
24
  this.showCancelDone = false;
25
+ this.showLoadError = false;
25
26
  }
26
27
  async componentWillLoad() {
27
28
  var _a, _b, _c;
@@ -42,6 +43,7 @@ export class VerdocsView {
42
43
  }, 2000);
43
44
  }
44
45
  catch (e) {
46
+ this.showLoadError = true;
45
47
  (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
46
48
  }
47
49
  }
@@ -130,8 +132,13 @@ export class VerdocsView {
130
132
  }
131
133
  render() {
132
134
  var _a;
135
+ if (this.showLoadError) {
136
+ return (h(Host, null, h("verdocs-ok-dialog", { heading: "Unable to View Envelope", message: `Sorry, that envelope is not valid.`, buttonLabel: "OK", onNext: () => {
137
+ this.showLoadError = false;
138
+ } })));
139
+ }
133
140
  if (!this.envelope) {
134
- return (h(Host, null, h("img", { src: "https://verdocs-public-assets.s3.amazonaws.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
141
+ return (h(Host, null, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
135
142
  }
136
143
  const menuOptions = [{ id: 'print', label: 'Print' }];
137
144
  if (userCanCancelEnvelope(this.endpoint.profile, this.envelope)) {
@@ -243,7 +250,8 @@ export class VerdocsView {
243
250
  "canceling": {},
244
251
  "envelope": {},
245
252
  "roleNames": {},
246
- "showCancelDone": {}
253
+ "showCancelDone": {},
254
+ "showLoadError": {}
247
255
  };
248
256
  }
249
257
  static get events() {
@@ -75,7 +75,7 @@ export class VerdocsEnvelopeDocumentPage {
75
75
  }
76
76
  render() {
77
77
  const height = `${this.renderedHeight}px`;
78
- return (h(Host, { key: 'd7a83e836d91c879ca382799735596352a84afbe', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
78
+ return (h(Host, { key: 'c047ed0efbc74b5981dbb631999f33af262559f7', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
79
79
  // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
80
80
  // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
81
81
  // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
@@ -112,6 +112,7 @@ verdocs-envelope-sidebar .manage-recipients-button button {
112
112
  verdocs-envelope-sidebar .recipient-detail {
113
113
  flex: 0;
114
114
  padding: 8px;
115
+ font-size: 14px;
115
116
  position: relative;
116
117
  flex-direction: column;
117
118
  border: solid 1px #979797;
@@ -121,7 +122,7 @@ verdocs-envelope-sidebar .recipient-header {
121
122
  flex-direction: row;
122
123
  box-sizing: border-box;
123
124
  display: flex;
124
- place-content: center space-between;
125
+ gap: 6px;
125
126
  align-items: center;
126
127
  margin-bottom: 4px;
127
128
  }
@@ -134,18 +135,15 @@ verdocs-envelope-sidebar .recipient-number {
134
135
  border-radius: 24px;
135
136
  font-size: 14px;
136
137
  font-weight: 500;
137
- margin-right: 10px;
138
138
  border: solid 1px #979797;
139
139
  }
140
- verdocs-envelope-sidebar .recipient-type {
141
- flex: 1 1 88px;
140
+ verdocs-envelope-sidebar .recipient-name {
141
+ flex: 1;
142
142
  box-sizing: border-box;
143
- max-width: 88px;
144
- min-width: 88px;
145
143
  text-transform: capitalize;
146
144
  }
147
145
  verdocs-envelope-sidebar .recipient-status {
148
- flex: 1 1 100px;
146
+ flex: 0 0 100px;
149
147
  border-radius: 5px;
150
148
  text-align: center;
151
149
  box-sizing: border-box;
@@ -214,4 +212,23 @@ verdocs-envelope-sidebar .history-entry .activity-date {
214
212
  }
215
213
  verdocs-envelope-sidebar .content .history-entry:first-of-type {
216
214
  border-top: none;
215
+ }
216
+ verdocs-envelope-sidebar .reminders {
217
+ margin: 15px 0 30px 0;
218
+ }
219
+ verdocs-envelope-sidebar .reminders .form-row {
220
+ margin: 8px 0 0;
221
+ display: flex;
222
+ flex-direction: row;
223
+ }
224
+ verdocs-envelope-sidebar .reminders .form-row .reminders-label {
225
+ display: flex;
226
+ flex: 1;
227
+ }
228
+ verdocs-envelope-sidebar .reminders .form-row .form-label {
229
+ flex: 1;
230
+ }
231
+ verdocs-envelope-sidebar .reminders .form-row verdocs-text-input {
232
+ margin: 0;
233
+ width: 100px;
217
234
  }