@verdocs/web-sdk 1.13.10 → 1.13.11

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 (214) hide show
  1. package/dist/cjs/{TemplateStore-97e0b3f3.js → TemplateStore-f934a60e.js} +12 -4
  2. package/dist/cjs/ipc-test.cjs.entry.js +36 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  6. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
  7. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +228 -0
  17. package/dist/cjs/{verdocs-template-document-page.cjs.entry.js → verdocs-template-document-page_2.cjs.entry.js} +46 -1
  18. package/dist/cjs/{verdocs-template-attachments_4.cjs.entry.js → verdocs-template-fields_4.cjs.entry.js} +239 -224
  19. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  23. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  25. package/dist/collection/collection-manifest.json +1 -0
  26. package/dist/collection/components/other/ipctest/ipc-test.css +4 -0
  27. package/dist/collection/components/other/ipctest/ipc-test.js +79 -0
  28. package/dist/collection/components/other/ipctest/ipc-test.stories.js +8 -0
  29. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +3 -2
  30. package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +1 -0
  31. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.js +1 -1
  32. package/dist/collection/utils/TemplateStore.js +11 -3
  33. package/dist/components/TemplateStore.js +11 -3
  34. package/dist/components/VerdocsEndpoint.js +30 -30
  35. package/dist/components/index.d.ts +1 -0
  36. package/dist/components/index.js +1 -0
  37. package/dist/components/ipc-test.d.ts +11 -0
  38. package/dist/components/ipc-test.js +136 -0
  39. package/dist/components/verdocs-template-fields2.js +3 -2
  40. package/dist/components/verdocs-template-roles2.js +1 -0
  41. package/dist/custom-elements.json +1591 -0
  42. package/dist/docs.json +98 -1
  43. package/dist/esm/{TemplateStore-17fa95d5.js → TemplateStore-1a6322b4.js} +12 -4
  44. package/dist/esm/ipc-test.entry.js +32 -0
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/{utils-78a752e0.js → utils-39fef438.js} +1 -1
  47. package/dist/esm/verdocs-auth.entry.js +1 -1
  48. package/dist/esm/verdocs-build.entry.js +2 -2
  49. package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
  50. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  51. package/dist/esm/verdocs-dropdown_2.entry.js +2 -2
  52. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  53. package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
  54. package/dist/esm/verdocs-field-date.entry.js +1 -1
  55. package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
  56. package/dist/esm/verdocs-field-initial.entry.js +1 -1
  57. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  58. package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
  59. package/dist/esm/verdocs-field-signature.entry.js +1 -1
  60. package/dist/esm/verdocs-field-textarea.entry.js +1 -1
  61. package/dist/esm/verdocs-field-textbox.entry.js +1 -1
  62. package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
  63. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  64. package/dist/esm/verdocs-preview.entry.js +3 -3
  65. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  66. package/dist/esm/verdocs-search.entry.js +1 -1
  67. package/dist/esm/verdocs-send.entry.js +3 -3
  68. package/dist/esm/verdocs-sign.entry.js +2 -2
  69. package/dist/esm/verdocs-template-attachments_2.entry.js +223 -0
  70. package/dist/esm/{verdocs-template-document-page.entry.js → verdocs-template-document-page_2.entry.js} +47 -3
  71. package/dist/esm/{verdocs-template-attachments_4.entry.js → verdocs-template-fields_4.entry.js} +237 -222
  72. package/dist/esm/verdocs-template-name.entry.js +2 -2
  73. package/dist/esm/verdocs-template-properties.entry.js +2 -2
  74. package/dist/esm/verdocs-template-reminders.entry.js +2 -2
  75. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  76. package/dist/esm/verdocs-view.entry.js +2 -2
  77. package/dist/esm/verdocs-web-sdk.js +1 -1
  78. package/dist/esm-es5/TemplateStore-1a6322b4.js +1 -0
  79. package/dist/esm-es5/{VerdocsEndpoint-4367eb13.js → VerdocsEndpoint-ca592138.js} +1 -1
  80. package/dist/esm-es5/ipc-test.entry.js +1 -0
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/{utils-78a752e0.js → utils-39fef438.js} +1 -1
  83. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  84. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  85. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  87. package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  89. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  90. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  91. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  92. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  93. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  94. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  95. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  96. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  97. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  98. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  99. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  100. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  101. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  102. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  103. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  104. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -0
  106. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
  107. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -0
  108. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  114. package/dist/types/components/other/ipctest/ipc-test.d.ts +17 -0
  115. package/dist/types/components/other/ipctest/ipc-test.stories.d.ts +4 -0
  116. package/dist/types/components.d.ts +29 -0
  117. package/dist/verdocs-web-sdk/p-01a240ac.system.js +1 -1
  118. package/dist/verdocs-web-sdk/p-08305f4e.system.entry.js +1 -0
  119. package/dist/verdocs-web-sdk/p-1044c9ea.system.entry.js +1 -0
  120. package/dist/verdocs-web-sdk/{p-bc7c1b67.system.entry.js → p-1fe5af0c.system.entry.js} +1 -1
  121. package/dist/verdocs-web-sdk/{p-116c6981.system.entry.js → p-204fadd2.system.entry.js} +1 -1
  122. package/dist/verdocs-web-sdk/{p-7ef23636.entry.js → p-2544faa8.entry.js} +1 -1
  123. package/dist/verdocs-web-sdk/p-254b91cf.entry.js +1 -0
  124. package/dist/verdocs-web-sdk/{p-753cdc95.entry.js → p-27eb5497.entry.js} +1 -1
  125. package/dist/verdocs-web-sdk/{p-ed3d86cd.entry.js → p-288103cc.entry.js} +1 -1
  126. package/dist/verdocs-web-sdk/{p-f63b71ae.entry.js → p-2a2ba635.entry.js} +1 -1
  127. package/dist/verdocs-web-sdk/{p-385c9366.entry.js → p-2f929364.entry.js} +1 -1
  128. package/dist/verdocs-web-sdk/{p-ed6c5982.entry.js → p-31de3afe.entry.js} +1 -1
  129. package/dist/verdocs-web-sdk/{p-55a13b01.entry.js → p-36c540fa.entry.js} +1 -1
  130. package/dist/verdocs-web-sdk/{p-c42b7ca2.system.entry.js → p-473770b0.system.entry.js} +1 -1
  131. package/dist/verdocs-web-sdk/{p-a9e063bc.system.entry.js → p-47aac035.system.entry.js} +1 -1
  132. package/dist/verdocs-web-sdk/{p-c2c49441.js → p-49fb6d62.js} +1 -1
  133. package/dist/verdocs-web-sdk/{p-056bec65.system.entry.js → p-4afeb123.system.entry.js} +1 -1
  134. package/dist/verdocs-web-sdk/{p-ad7caefa.entry.js → p-4c40cfde.entry.js} +1 -1
  135. package/dist/verdocs-web-sdk/{p-2d36f297.system.entry.js → p-59d4ad25.system.entry.js} +1 -1
  136. package/dist/verdocs-web-sdk/{p-c6547da0.entry.js → p-5c55ff7b.entry.js} +1 -1
  137. package/dist/verdocs-web-sdk/{p-fa0123d2.entry.js → p-5cfaf9d6.entry.js} +1 -1
  138. package/dist/verdocs-web-sdk/p-5e448806.system.js +1 -0
  139. package/dist/verdocs-web-sdk/{p-1738fd08.entry.js → p-6a6c8f99.entry.js} +1 -1
  140. package/dist/verdocs-web-sdk/{p-c45ee88f.system.entry.js → p-6e1a4eb1.system.entry.js} +1 -1
  141. package/dist/verdocs-web-sdk/{p-c5fb045c.entry.js → p-706044e2.entry.js} +1 -1
  142. package/dist/verdocs-web-sdk/{p-3fa5ce6b.entry.js → p-73995d74.entry.js} +1 -1
  143. package/dist/verdocs-web-sdk/{p-df691d95.system.entry.js → p-773ce755.system.entry.js} +1 -1
  144. package/dist/verdocs-web-sdk/{p-13f80bb2.entry.js → p-7c109ef1.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-1abcf29d.js → p-7f727073.js} +1 -1
  146. package/dist/verdocs-web-sdk/p-809d389e.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/{p-9a4124dd.system.entry.js → p-86cba33a.system.entry.js} +1 -1
  148. package/dist/verdocs-web-sdk/p-870b157b.entry.js +1 -0
  149. package/dist/verdocs-web-sdk/{p-c44fd897.system.js → p-882cf708.system.js} +1 -1
  150. package/dist/verdocs-web-sdk/{p-b3c3b7e8.system.entry.js → p-8a48f02b.system.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/{p-e5fda62a.entry.js → p-8aa496fb.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-7500179f.entry.js → p-8e89f2ce.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/p-90254335.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/{p-237975c0.system.entry.js → p-93b51fba.system.entry.js} +1 -1
  155. package/dist/verdocs-web-sdk/p-96cfa8a2.system.entry.js +1 -0
  156. package/dist/verdocs-web-sdk/{p-201f27f6.system.js → p-a06e53f9.system.js} +1 -1
  157. package/dist/verdocs-web-sdk/{p-7416b77f.entry.js → p-a4e3a061.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/{p-3d521eb4.system.entry.js → p-a6f2cde3.system.entry.js} +1 -1
  159. package/dist/verdocs-web-sdk/{p-32547cde.entry.js → p-ac888bf4.entry.js} +1 -1
  160. package/dist/verdocs-web-sdk/{p-63d89af6.entry.js → p-af821140.entry.js} +1 -1
  161. package/dist/verdocs-web-sdk/{p-944996b2.entry.js → p-b29a5587.entry.js} +1 -1
  162. package/dist/verdocs-web-sdk/{p-3186b008.system.entry.js → p-b310edb5.system.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/{p-27c96690.system.entry.js → p-b568ce5d.system.entry.js} +1 -1
  164. package/dist/verdocs-web-sdk/{p-5544bdd4.system.entry.js → p-b6c2f196.system.entry.js} +1 -1
  165. package/dist/verdocs-web-sdk/{p-95119614.system.entry.js → p-b6f6c21e.system.entry.js} +1 -1
  166. package/dist/verdocs-web-sdk/{p-9258d861.system.entry.js → p-b89b5bde.system.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/{p-6c1817fa.system.entry.js → p-beeb7c8a.system.entry.js} +1 -1
  168. package/dist/verdocs-web-sdk/{p-f71a30f6.entry.js → p-bf4cdcdb.entry.js} +1 -1
  169. package/dist/verdocs-web-sdk/{p-8ac409c5.system.entry.js → p-c1099ce1.system.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/{p-149f9430.system.entry.js → p-c47e1d37.system.entry.js} +1 -1
  171. package/dist/verdocs-web-sdk/{p-f1350ea7.system.entry.js → p-cb335fc6.system.entry.js} +1 -1
  172. package/dist/verdocs-web-sdk/p-cf2fdb73.js +1 -0
  173. package/dist/verdocs-web-sdk/{p-a77f4093.system.entry.js → p-d3402d72.system.entry.js} +1 -1
  174. package/dist/verdocs-web-sdk/{p-6b3dd926.system.entry.js → p-db31b40c.system.entry.js} +1 -1
  175. package/dist/verdocs-web-sdk/p-db7fb7e4.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-e20da92f.entry.js +1 -0
  177. package/dist/verdocs-web-sdk/{p-29f2dfc9.entry.js → p-e44c2491.entry.js} +1 -1
  178. package/dist/verdocs-web-sdk/{p-f1a773bf.entry.js → p-e604b3b5.entry.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-73b44d44.entry.js → p-e9f5417d.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-5a851a3b.system.entry.js → p-eb41c2c8.system.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/{p-4b7996e8.system.entry.js → p-ebd5167e.system.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-e312fbab.entry.js → p-ed5afe17.entry.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-c54d05db.entry.js → p-f876e71d.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-71de1985.system.entry.js → p-f9a490e7.system.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/{p-73875e21.system.entry.js → p-fe7a023d.system.entry.js} +1 -1
  186. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  187. package/package.json +2 -2
  188. package/dist/cjs/Roles-9b593b95.js +0 -28
  189. package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +0 -220
  190. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -51
  191. package/dist/esm/Roles-6eb459df.js +0 -24
  192. package/dist/esm/verdocs-template-role-properties_2.entry.js +0 -215
  193. package/dist/esm/verdocs-toolbar-icon.entry.js +0 -47
  194. package/dist/esm-es5/Roles-6eb459df.js +0 -1
  195. package/dist/esm-es5/TemplateStore-17fa95d5.js +0 -1
  196. package/dist/esm-es5/verdocs-template-attachments_4.entry.js +0 -1
  197. package/dist/esm-es5/verdocs-template-document-page.entry.js +0 -1
  198. package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +0 -1
  199. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
  200. package/dist/verdocs-web-sdk/p-1025430e.entry.js +0 -1
  201. package/dist/verdocs-web-sdk/p-2fa6de11.system.entry.js +0 -1
  202. package/dist/verdocs-web-sdk/p-59a88b20.js +0 -1
  203. package/dist/verdocs-web-sdk/p-7b2ca8ef.system.js +0 -1
  204. package/dist/verdocs-web-sdk/p-8027431e.js +0 -1
  205. package/dist/verdocs-web-sdk/p-8229e6df.system.js +0 -1
  206. package/dist/verdocs-web-sdk/p-9bafdd9f.entry.js +0 -1
  207. package/dist/verdocs-web-sdk/p-acb5e932.entry.js +0 -1
  208. package/dist/verdocs-web-sdk/p-be05977e.system.entry.js +0 -1
  209. package/dist/verdocs-web-sdk/p-e78b7f2f.entry.js +0 -1
  210. package/dist/verdocs-web-sdk/p-ec7fc148.system.entry.js +0 -1
  211. package/dist/verdocs-web-sdk/p-ed6bc1ce.entry.js +0 -1
  212. package/dist/verdocs-web-sdk/p-f1c98c73.system.entry.js +0 -1
  213. package/dist/cjs/{VerdocsEndpoint-3e95f87f.js → VerdocsEndpoint-1b1836af.js} +30 -30
  214. package/dist/esm/{VerdocsEndpoint-4367eb13.js → VerdocsEndpoint-ca592138.js} +30 -30
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;o=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];o=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-fd374620.system.js","./p-54498887.system.js","./p-c44fd897.system.js","./p-7b2ca8ef.system.js","./p-187b20b7.system.js","./p-4ac861c9.system.js"],(function(e){"use strict";var t,i,r,o,n,s,a;return{setters:[function(e){t=e.r;i=e.c;r=e.h;o=e.H},function(){},function(e){n=e.V},function(e){s=e.g},function(e){a=e.S},function(){}],execute:function(){var l='verdocs-template-properties{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}';var p=e("verdocs_template_properties",function(){function e(e){t(this,e);this.exit=i(this,"exit",7);this.next=i(this,"next",7);this.sdkError=i(this,"sdkError",7);this.store=null;this.endpoint=n.getDefault();this.templateId="";this.name="";this.visibility="";this.sendReminders=false;this.firstReminderDays="1";this.reminderDays="1"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,o,n,l,p,d;return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[PROPERTIES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[PROPERTIES] Unable to start builder session, must be authenticated");return[2]}p=this;return[4,s(this.endpoint,this.templateId,true)];case 1:p.store=c.sent();this.name=(t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.name;this.sendReminders=((r=(i=this.store)===null||i===void 0?void 0:i.state)===null||r===void 0?void 0:r.reminder_id)!==null;return[3,3];case 2:d=c.sent();console.log("[PROPERTIES] Error loading template",d);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new a(d.message,(n=d.response)===null||n===void 0?void 0:n.status,(l=d.response)===null||l===void 0?void 0:l.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();(t=this.next)===null||t===void 0?void 0:t.emit({name:this.name,firstReminderDays:+this.firstReminderDays,reminderDays:+this.reminderDays,sendReminders:this.sendReminders})};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return r(o,null,r("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return r("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},r("h5",null,"Template Name"),r("fieldset",null,r("verdocs-text-input",{value:this.name,autocomplete:"off",onInput:function(t){return e.name=t.target.value}})),r("h5",null,"Reminders"),r("fieldset",null,r("div",{class:"input-row"},r("label",null,"Send Automatic Reminders"),r("verdocs-checkbox",{name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:function(t){return e.sendReminders=t.target.checked}})),r("div",{class:"input-row"},r("label",null,"Days Before First Reminder"),r("verdocs-text-input",{value:this.firstReminderDays,onInput:function(t){return e.firstReminderDays=t.target.value}})),r("div",{class:"input-row"},r("label",null,"Days Between Reminders"),r("verdocs-text-input",{value:this.reminderDays,onInput:function(t){return e.reminderDays=t.target.value}}))),r("h5",null,"Template Visibility"),r("fieldset",null,r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"private",onChange:function(){return e.visibility="private"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-private"},r("div",{class:"title"},"Private"),r("div",{class:"description"},"Only you can share and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"shared",onChange:function(){return e.visibility="shared"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-shared"},r("div",{class:"title"},"Shared to your organization"),r("div",{class:"description"},"Give access to your organization to share and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"shared_public",onChange:function(){return e.visibility="shared_public"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-shared_public"},r("div",{class:"title"},"Shared to your organization and Public"),r("div",{class:"description"},"Give access to your organization to share this template, and anyone on the Web can find and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:this.visibility==="public",value:"public",onChange:function(){return e.visibility="public"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-public"},r("div",{class:"title"},"Public"),r("div",{class:"description"},"Anyone on the Web can find and use this template")))),r("div",{class:"buttons"},r("div",{class:"flex-fill"}),r("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),r("verdocs-button",{label:"OK",size:"small",onClick:function(t){return e.handleSubmit(t)}})))};return e}());p.style=l}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,r){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,o,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(i)try{if(r=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;o=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];o=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-fd374620.system.js","./p-54498887.system.js","./p-882cf708.system.js","./p-5e448806.system.js","./p-187b20b7.system.js","./p-4ac861c9.system.js"],(function(e){"use strict";var t,i,r,o,n,s,a;return{setters:[function(e){t=e.r;i=e.c;r=e.h;o=e.H},function(){},function(e){n=e.V},function(e){s=e.g},function(e){a=e.S},function(){}],execute:function(){var l='verdocs-template-properties{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}';var p=e("verdocs_template_properties",function(){function e(e){t(this,e);this.exit=i(this,"exit",7);this.next=i(this,"next",7);this.sdkError=i(this,"sdkError",7);this.store=null;this.endpoint=n.getDefault();this.templateId="";this.name="";this.visibility="";this.sendReminders=false;this.firstReminderDays="1";this.reminderDays="1"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,o,n,l,p,d;return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[PROPERTIES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[PROPERTIES] Unable to start builder session, must be authenticated");return[2]}p=this;return[4,s(this.endpoint,this.templateId,true)];case 1:p.store=c.sent();this.name=(t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.name;this.sendReminders=((r=(i=this.store)===null||i===void 0?void 0:i.state)===null||r===void 0?void 0:r.reminder_id)!==null;return[3,3];case 2:d=c.sent();console.log("[PROPERTIES] Error loading template",d);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new a(d.message,(n=d.response)===null||n===void 0?void 0:n.status,(l=d.response)===null||l===void 0?void 0:l.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();(t=this.next)===null||t===void 0?void 0:t.emit({name:this.name,firstReminderDays:+this.firstReminderDays,reminderDays:+this.reminderDays,sendReminders:this.sendReminders})};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return r(o,null,r("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return r("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},r("h5",null,"Template Name"),r("fieldset",null,r("verdocs-text-input",{value:this.name,autocomplete:"off",onInput:function(t){return e.name=t.target.value}})),r("h5",null,"Reminders"),r("fieldset",null,r("div",{class:"input-row"},r("label",null,"Send Automatic Reminders"),r("verdocs-checkbox",{name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:function(t){return e.sendReminders=t.target.checked}})),r("div",{class:"input-row"},r("label",null,"Days Before First Reminder"),r("verdocs-text-input",{value:this.firstReminderDays,onInput:function(t){return e.firstReminderDays=t.target.value}})),r("div",{class:"input-row"},r("label",null,"Days Between Reminders"),r("verdocs-text-input",{value:this.reminderDays,onInput:function(t){return e.reminderDays=t.target.value}}))),r("h5",null,"Template Visibility"),r("fieldset",null,r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"private",onChange:function(){return e.visibility="private"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-private"},r("div",{class:"title"},"Private"),r("div",{class:"description"},"Only you can share and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"shared",onChange:function(){return e.visibility="shared"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-shared"},r("div",{class:"title"},"Shared to your organization"),r("div",{class:"description"},"Give access to your organization to share and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:true,value:"shared_public",onChange:function(){return e.visibility="shared_public"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-shared_public"},r("div",{class:"title"},"Shared to your organization and Public"),r("div",{class:"description"},"Give access to your organization to share this template, and anyone on the Web can find and use this template"))),r("div",{class:"radio-row"},r("verdocs-radio-button",{name:"visibility",checked:this.visibility==="public",value:"public",onChange:function(){return e.visibility="public"}}),r("label",{htmlFor:"verdocs-radio-button-visibility-public"},r("div",{class:"title"},"Public"),r("div",{class:"description"},"Anyone on the Web can find and use this template")))),r("div",{class:"buttons"},r("div",{class:"flex-fill"}),r("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),r("verdocs-button",{label:"OK",size:"small",onClick:function(t){return e.handleSubmit(t)}})))};return e}());p.style=l}}}));
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-b3dfe499.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t(JSON.parse('[["p-1738fd08",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[513],"template":[32]}]]],["p-c54d05db",[[0,"verdocs-field-initial",{"templateid":[1],"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-fa0123d2",[[0,"verdocs-field-signature",{"templateid":[1],"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-944996b2",[[0,"verdocs-field-checkbox",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-13f80bb2",[[0,"verdocs-field-date",{"templateId":[1,"template-id"],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-7416b77f",[[0,"verdocs-field-dropdown",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-385c9366",[[0,"verdocs-field-radio-button",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-7ef23636",[[0,"verdocs-field-textarea",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-73b44d44",[[0,"verdocs-field-textbox",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-f1a773bf",[[0,"verdocs-field-timestamp",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-c6547da0",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"headerTargetId":[1,"header-target-id"],"envelope":[32],"roleNames":[32],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"submitting":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["p-f71a30f6",[[0,"verdocs-template-properties",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"visibility":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32]}]]],["p-3fa5ce6b",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32]}]]],["p-32547cde",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32]}]]],["p-f63b71ae",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"username":[32],"password":[32],"loggingIn":[32],"activeSession":[32],"loginError":[32]}]]],["p-ed6c5982",[[0,"verdocs-search",{"endpoint":[16]}]]],["p-ad7caefa",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["p-55a13b01",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"personal":[32],"public":[32]}]]],["p-8d998322",[[0,"verdocs-field-attachment",{"templateid":[1],"field":[16],"disabled":[4],"roleIndex":[2,"role-index"],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-ed3d86cd",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-e5fda62a",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"envelope":[32],"roleNames":[32],"activeTab":[32],"panelOpen":[32]}]]],["p-ed6bc1ce",[[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["p-12aac44a",[[0,"verdocs-floating-menu",{"options":[16]}]]],["p-2d73b96f",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["p-c5fb045c",[[0,"verdocs-field-payment",{"templateid":[1],"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"rerender":[2],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-a75f3b9a",[[0,"verdocs-organization-card",{"organization":[16]}]]],["p-1a666173",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["p-07715513",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"recipientStatusIcons":[32],"containerId":[32]}]]],["p-263acb59",[[0,"verdocs-template-card",{"template":[16]}]]],["p-f6306a21",[[0,"verdocs-template-tags",{"tags":[16]}]]],["p-4ff16721",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["p-09382df0",[[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["p-e78b7f2f",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"envelope":[32],"roleNames":[32],"showCancelDone":[32]}]]],["p-aabfb02a",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["p-5e292135",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["p-a490803a",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["p-29f2dfc9",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"nameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32]}]]],["p-2e1b6646",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["p-63d89af6",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["p-acb5e932",[[0,"verdocs-template-document-page",{"endpoint":[16],"templateId":[1,"template-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}]]],["p-452d6537",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["p-7aeb1f15",[[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-text-input",{"value":[1],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"type":[1],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-help-icon",{"text":[1],"containerId":[32]}]]],["p-753cdc95",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"loading":[32],"type":[32],"setting":[32],"name":[32],"roleName":[32],"group":[32],"fieldType":[32],"required":[32],"options":[32],"placeholder":[32],"defaultValue":[32],"showingHelp":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}]]],["p-9bafdd9f",[[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]],["p-e312fbab",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["p-6c12d567",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["p-681c7361",[[0,"verdocs-loader"]]],["p-1025430e",[[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32]}],[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"store":[32]}],[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"selectedRoleName":[32],"rerender":[32]},[[4,"keydown","handleKeyDown"]]],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32]}]]],["p-7500179f",[[0,"verdocs-envelope-document-page",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"type":[1],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}],[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]]]'),e)));
1
+ import{p as e,b as t}from"./p-b3dfe499.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t(JSON.parse('[["p-6a6c8f99",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[513],"template":[32]}]]],["p-809d389e",[[0,"ipc-test",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-f876e71d",[[0,"verdocs-field-initial",{"templateid":[1],"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-5cfaf9d6",[[0,"verdocs-field-signature",{"templateid":[1],"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-b29a5587",[[0,"verdocs-field-checkbox",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-7c109ef1",[[0,"verdocs-field-date",{"templateId":[1,"template-id"],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-a4e3a061",[[0,"verdocs-field-dropdown",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-2f929364",[[0,"verdocs-field-radio-button",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-2544faa8",[[0,"verdocs-field-textarea",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-e9f5417d",[[0,"verdocs-field-textbox",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-e604b3b5",[[0,"verdocs-field-timestamp",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-6c12d567",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["p-5c55ff7b",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"headerTargetId":[1,"header-target-id"],"envelope":[32],"roleNames":[32],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"submitting":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["p-bf4cdcdb",[[0,"verdocs-template-properties",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"visibility":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32]}]]],["p-73995d74",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32]}]]],["p-ac888bf4",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32]}]]],["p-2a2ba635",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"username":[32],"password":[32],"loggingIn":[32],"activeSession":[32],"loginError":[32]}]]],["p-af821140",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["p-31de3afe",[[0,"verdocs-search",{"endpoint":[16]}]]],["p-4c40cfde",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["p-36c540fa",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"personal":[32],"public":[32]}]]],["p-8d998322",[[0,"verdocs-field-attachment",{"templateid":[1],"field":[16],"disabled":[4],"roleIndex":[2,"role-index"],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-452d6537",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["p-e20da92f",[[0,"verdocs-template-document-page",{"endpoint":[16],"templateId":[1,"template-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}],[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["p-288103cc",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-8aa496fb",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"envelope":[32],"roleNames":[32],"activeTab":[32],"panelOpen":[32]}]]],["p-12aac44a",[[0,"verdocs-floating-menu",{"options":[16]}]]],["p-2d73b96f",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["p-706044e2",[[0,"verdocs-field-payment",{"templateid":[1],"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"rerender":[2],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-a75f3b9a",[[0,"verdocs-organization-card",{"organization":[16]}]]],["p-1a666173",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["p-07715513",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"recipientStatusIcons":[32],"containerId":[32]}]]],["p-263acb59",[[0,"verdocs-template-card",{"template":[16]}]]],["p-f6306a21",[[0,"verdocs-template-tags",{"tags":[16]}]]],["p-4ff16721",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["p-681c7361",[[0,"verdocs-loader"]]],["p-09382df0",[[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["p-90254335",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"envelope":[32],"roleNames":[32],"showCancelDone":[32]}]]],["p-aabfb02a",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["p-5e292135",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["p-e44c2491",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"nameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32]}]]],["p-2e1b6646",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["p-ed5afe17",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["p-870b157b",[[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"store":[32]}],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32]}]]],["p-a490803a",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["p-8e89f2ce",[[0,"verdocs-envelope-document-page",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"type":[1],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}],[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]],["p-7aeb1f15",[[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-text-input",{"value":[1],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"type":[1],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-help-icon",{"text":[1],"containerId":[32]}]]],["p-27eb5497",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"loading":[32],"type":[32],"setting":[32],"name":[32],"roleName":[32],"group":[32],"fieldType":[32],"required":[32],"options":[32],"placeholder":[32],"defaultValue":[32],"showingHelp":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}]]],["p-254b91cf",[[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32]}],[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"selectedRoleName":[32],"rerender":[32]},[[4,"keydown","handleKeyDown"]]],[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]]]'),e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/web-sdk",
3
- "version": "1.13.10",
3
+ "version": "1.13.11",
4
4
  "private": false,
5
5
  "description": "Verdocs Web SDK",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "@stencil/core": "2.20.0",
34
34
  "@stencil/store": "^2.0.4",
35
35
  "@svgdotjs/svg.js": "^3.1.2",
36
- "@verdocs/js-sdk": "^3.6.0",
36
+ "@verdocs/js-sdk": "^3.6.1",
37
37
  "date-fns": "^2.29.3",
38
38
  "flatpickr": "^4.6.13",
39
39
  "interactjs": "^1.10.17",
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * A "role" is an individual participant in a signing flow, such as a signer or CC contact. Roles are identified by
5
- * their names, which must be unique (e.g. 'Recipient 1'). Template fields are assigned to roles for signing operations,
6
- * so you may have 'Recipient 1 Signature 1' and so forth.
7
- *
8
- * @module
9
- */
10
- var createRole = function (endpoint, templateId, params) {
11
- return endpoint.api //
12
- .post("/templates/".concat(templateId, "/roles"), params)
13
- .then(function (r) { return r.data; });
14
- };
15
- var updateRole = function (endpoint, templateId, roleName, params) {
16
- return endpoint.api //
17
- .put("/templates/".concat(templateId, "/roles/").concat(roleName), params)
18
- .then(function (r) { return r.data; });
19
- };
20
- var deleteRole = function (endpoint, templateId, roleName) {
21
- return endpoint.api //
22
- .delete("/templates/".concat(templateId, "/roles/").concat(roleName))
23
- .then(function (r) { return r.data; });
24
- };
25
-
26
- exports.createRole = createRole;
27
- exports.deleteRole = deleteRole;
28
- exports.updateRole = updateRole;
@@ -1,220 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-5e786db9.js');
6
- require('./Types-f89f9116.js');
7
- const Roles = require('./Roles-9b593b95.js');
8
- const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
9
- const TemplateStore = require('./TemplateStore-97e0b3f3.js');
10
- const errors = require('./errors-0396da3d.js');
11
- const Templates = require('./Templates-24580a13.js');
12
-
13
- const verdocsTemplateRolePropertiesCss = "verdocs-template-role-properties{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}";
14
-
15
- const TrashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>`;
16
- const VerdocsTemplateRoleProperties = class {
17
- constructor(hostRef) {
18
- index.registerInstance(this, hostRef);
19
- this.close = index.createEvent(this, "close", 7);
20
- this.delete = index.createEvent(this, "delete", 7);
21
- this.sdkError = index.createEvent(this, "sdkError", 7);
22
- this.store = null;
23
- this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
24
- this.templateId = '';
25
- this.roleName = '';
26
- this.sender = VerdocsEndpoint.TemplateSenderTypes.EVERYONE;
27
- this.dirty = false;
28
- this.saving = false;
29
- this.name = '';
30
- this.type = 'signer';
31
- this.fullName = '';
32
- this.email = '';
33
- this.phone = '';
34
- this.allowDelegation = false;
35
- }
36
- async componentWillLoad() {
37
- var _a, _b, _c, _d, _e;
38
- try {
39
- this.endpoint.loadSession();
40
- if (!this.templateId) {
41
- console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);
42
- return;
43
- }
44
- if (!this.endpoint.session) {
45
- console.log('[ROLE_PROPERTIES] Unable to start builder session, must be authenticated');
46
- return;
47
- }
48
- this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
49
- const editingRole = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.roles.find(role => role.name === this.roleName);
50
- if (editingRole) {
51
- this.name = editingRole.name;
52
- this.type = editingRole.type;
53
- this.fullName = editingRole.full_name;
54
- this.email = editingRole.email;
55
- this.phone = editingRole.phone;
56
- this.allowDelegation = editingRole.delegator;
57
- console.log('[ROLES] Editing role', editingRole);
58
- }
59
- }
60
- catch (e) {
61
- console.log('[TEMPLATE ROLE PROPERTIES] Error with preview session', e);
62
- (_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new errors.SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
63
- }
64
- }
65
- handleCancel(e) {
66
- var _a, _b, _c;
67
- e.stopPropagation();
68
- this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
69
- this.dirty = false;
70
- (_c = this.close) === null || _c === void 0 ? void 0 : _c.emit();
71
- }
72
- async handleSave(e) {
73
- e.stopPropagation();
74
- this.saving = true;
75
- Roles.updateRole(this.endpoint, this.templateId, this.roleName, {
76
- name: this.name,
77
- type: this.type,
78
- full_name: this.fullName,
79
- email: this.email,
80
- phone: this.phone,
81
- delegator: this.allowDelegation,
82
- })
83
- .then(async (r) => {
84
- var _a;
85
- console.log('[ROLE_PROPERTIES] Update result', r);
86
- this.saving = false;
87
- this.dirty = false;
88
- this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, true);
89
- // this.sortTemplateRoles();
90
- // this.renumberTemplateRoles();
91
- // const newRoles = [...this.store.state.roles];
92
- // newRoles.forEach(role => {
93
- // if (role.name === this.roleName) {
94
- // role.name = this.name;
95
- // role.type = this.type;
96
- // role.full_name = this.fullName;
97
- // role.email = this.email;
98
- // role.phone = this.phone;
99
- // role.delegator = this.allowDelegation;
100
- // }
101
- // });
102
- // this.store.state.roles = newRoles;
103
- (_a = this.close) === null || _a === void 0 ? void 0 : _a.emit();
104
- })
105
- .catch(e => {
106
- console.log('Update error', e);
107
- this.saving = false;
108
- });
109
- }
110
- async handleDelete(e) {
111
- e.stopPropagation();
112
- if (window.confirm('Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.')) {
113
- Roles.deleteRole(this.endpoint, this.templateId, this.roleName)
114
- .then(r => {
115
- var _a;
116
- console.log('Role deleted', r);
117
- this.store.state.roles = [...this.store.state.roles.filter(role => role.name !== this.roleName)];
118
- (_a = this.delete) === null || _a === void 0 ? void 0 : _a.emit({ templateId: this.templateId, roleName: this.roleName });
119
- })
120
- .catch(e => {
121
- console.log('Deletion error', e);
122
- });
123
- }
124
- }
125
- render() {
126
- return (index.h(index.Host, null, index.h("div", { class: "background-overlay", onClick: e => this.handleCancel(e) }, index.h("div", { class: "dialog" }, index.h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, index.h("verdocs-text-input", { id: "verdocs-recipient-name", label: "Role Name", value: this.name, autocomplete: "off", helpText: "A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.", placeholder: "Template Name...", onInput: (e) => {
127
- this.name = e.target.value;
128
- this.dirty = true;
129
- } }), index.h("div", { class: "row" }, index.h("div", { class: "input-label" }, "Type:"), index.h("verdocs-select-input", { value: this.type, options: [
130
- { label: 'Signer', value: 'signer' },
131
- { label: 'CC', value: 'cc' },
132
- { label: 'Approver', value: 'approver' },
133
- ], onInput: (e) => {
134
- this.type = e.target.value;
135
- this.dirty = true;
136
- } }), index.h("verdocs-help-icon", { 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." })), index.h("verdocs-text-input", { id: "verdocs-recipient-email", label: "Full Name", value: this.fullName, 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) => {
137
- this.fullName = e.target.value;
138
- this.dirty = true;
139
- } }), index.h("verdocs-text-input", { 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) => {
140
- this.email = e.target.value;
141
- this.dirty = true;
142
- } }), index.h("verdocs-text-input", { 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) => {
143
- this.phone = e.target.value;
144
- this.dirty = true;
145
- } }), index.h("div", { class: "row" }, index.h("div", { class: "input-label" }, "May Delegate:"), index.h("div", { class: "checkbox-wrapper" }, index.h("verdocs-checkbox", { checked: this.allowDelegation, onInput: (e) => {
146
- this.allowDelegation = e.target.checked;
147
- this.dirty = true;
148
- } })), index.h("verdocs-help-icon", { text: "If enabled, this recipient may delegate their actions to another individual." })), index.h("div", { class: "buttons" }, index.h("button", { class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), index.h("div", { style: { flex: '1' } }), index.h("verdocs-button", { size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
149
- }
150
- };
151
- VerdocsTemplateRoleProperties.style = verdocsTemplateRolePropertiesCss;
152
-
153
- const verdocsTemplateSenderCss = "verdocs-template-sender{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}";
154
-
155
- const VerdocsTemplateSender = class {
156
- constructor(hostRef) {
157
- index.registerInstance(this, hostRef);
158
- this.close = index.createEvent(this, "close", 7);
159
- this.sdkError = index.createEvent(this, "sdkError", 7);
160
- this.store = null;
161
- this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
162
- this.templateId = '';
163
- this.sender = VerdocsEndpoint.TemplateSenderTypes.EVERYONE;
164
- this.saving = false;
165
- }
166
- async componentWillLoad() {
167
- var _a, _b, _c, _d, _e;
168
- try {
169
- this.endpoint.loadSession();
170
- if (!this.templateId) {
171
- console.log(`[SENDER] Missing required template ID ${this.templateId}`);
172
- return;
173
- }
174
- if (!this.endpoint.session) {
175
- console.log('[SENDER] Unable to start builder session, must be authenticated');
176
- return;
177
- }
178
- this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
179
- this.sender = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.sender;
180
- }
181
- catch (e) {
182
- console.log('[SENDER] Error with preview session', e);
183
- (_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new errors.SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
184
- }
185
- }
186
- handleClose() {
187
- this.close.emit();
188
- }
189
- // We need a separate event handler for clicking the background because it can receive events "through" other child components
190
- handleDismiss(e) {
191
- if (e.target.className === 'background-overlay') {
192
- e.preventDefault();
193
- this.handleClose();
194
- }
195
- }
196
- async handleSelectSetting(value) {
197
- this.saving = true;
198
- Templates.updateTemplate(this.endpoint, this.templateId, { sender: value })
199
- .then(r => {
200
- var _a;
201
- console.log('Update result', r);
202
- if ((_a = this.store) === null || _a === void 0 ? void 0 : _a.state) {
203
- this.store.state.sender = value;
204
- }
205
- this.saving = false;
206
- this.sender = value;
207
- })
208
- .catch(e => {
209
- console.log('Error saving', e);
210
- this.saving = false;
211
- });
212
- }
213
- render() {
214
- return (index.h(index.Host, null, index.h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, index.h("div", { class: "dialog" }, index.h("div", { class: "options" }, index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.EVERYONE, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.EVERYONE, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.EVERYONE) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web"), index.h("verdocs-help-icon", { text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web as me"), index.h("verdocs-help-icon", { text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization"), index.h("verdocs-help-icon", { text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization as me"), index.h("verdocs-help-icon", { text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Me"), index.h("verdocs-help-icon", { text: "Only I can use this template." })))), index.h("div", { class: "buttons" }, index.h("verdocs-button", { label: "Close", onClick: () => this.handleClose() }))))));
215
- }
216
- };
217
- VerdocsTemplateSender.style = verdocsTemplateSenderCss;
218
-
219
- exports.verdocs_template_role_properties = VerdocsTemplateRoleProperties;
220
- exports.verdocs_template_sender = VerdocsTemplateSender;
@@ -1,51 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-5e786db9.js');
6
- const popper = require('./popper-9def2535.js');
7
-
8
- const verdocsToolbarIconCss = "verdocs-toolbar-icon{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}";
9
-
10
- const VerdocsToolbarIcon = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.text = '';
14
- this.icon = '';
15
- this.placement = 'bottom';
16
- this.containerId = `verdocs-toolbar-icon-${Math.random().toString(36).substring(2, 11)}`;
17
- }
18
- componentDidLoad() {
19
- this.popperInstance = popper.createPopper(this.iconEl, this.tooltip, {
20
- placement: this.placement,
21
- modifiers: this.placement === 'left' ? [{ name: 'offset', options: { offset: [0, 20] } }] : [],
22
- });
23
- // placement: 'top-end',
24
- // modifiers: [{name: 'offset', options: {offset: [0, 10]}}],
25
- // });
26
- }
27
- disconnectedCallback() {
28
- if (this.popperInstance) {
29
- this.popperInstance.destroy();
30
- this.popperInstance = null;
31
- }
32
- }
33
- show() {
34
- var _a, _b;
35
- (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.setAttribute('data-show', '');
36
- (_b = this.popperInstance) === null || _b === void 0 ? void 0 : _b.update().catch(() => { });
37
- }
38
- hide() {
39
- var _a;
40
- (_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.removeAttribute('data-show');
41
- }
42
- // handlePress() {
43
- // this.press?.emit();
44
- // }
45
- render() {
46
- return (index.h(index.Host, { class: {} }, index.h("div", { "aria-describedby": this.containerId, class: "icon", innerHTML: this.icon, onMouseEnter: () => this.show(), onFocus: () => this.show(), onMouseLeave: () => this.hide(), onBlur: () => this.hide(), ref: el => (this.iconEl = el) }), index.h("div", { id: this.containerId, role: "tooltip", class: "tooltip", "data-popper-placement": this.placement, ref: el => (this.tooltip = el) }, this.text, index.h("div", { "data-popper-arrow": "true", class: "arrow" }))));
47
- }
48
- };
49
- VerdocsToolbarIcon.style = verdocsToolbarIconCss;
50
-
51
- exports.verdocs_toolbar_icon = VerdocsToolbarIcon;
@@ -1,24 +0,0 @@
1
- /**
2
- * A "role" is an individual participant in a signing flow, such as a signer or CC contact. Roles are identified by
3
- * their names, which must be unique (e.g. 'Recipient 1'). Template fields are assigned to roles for signing operations,
4
- * so you may have 'Recipient 1 Signature 1' and so forth.
5
- *
6
- * @module
7
- */
8
- var createRole = function (endpoint, templateId, params) {
9
- return endpoint.api //
10
- .post("/templates/".concat(templateId, "/roles"), params)
11
- .then(function (r) { return r.data; });
12
- };
13
- var updateRole = function (endpoint, templateId, roleName, params) {
14
- return endpoint.api //
15
- .put("/templates/".concat(templateId, "/roles/").concat(roleName), params)
16
- .then(function (r) { return r.data; });
17
- };
18
- var deleteRole = function (endpoint, templateId, roleName) {
19
- return endpoint.api //
20
- .delete("/templates/".concat(templateId, "/roles/").concat(roleName))
21
- .then(function (r) { return r.data; });
22
- };
23
-
24
- export { createRole as c, deleteRole as d, updateRole as u };