@verdocs/web-sdk 1.10.1 → 1.10.3

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 (273) hide show
  1. package/dist/cjs/Roles-927719de.js +28 -0
  2. package/dist/cjs/{VerdocsEndpoint-38feb32a.js → VerdocsEndpoint-25056c73.js} +42 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -2
  5. package/dist/cjs/verdocs-build.cjs.entry.js +1 -2
  6. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -2
  8. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -2
  9. package/dist/cjs/verdocs-help-icon_2.cjs.entry.js +11 -8
  10. package/dist/cjs/verdocs-preview.cjs.entry.js +1 -2
  11. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -2
  12. package/dist/cjs/verdocs-radio-button.cjs.entry.js +23 -0
  13. package/dist/cjs/verdocs-search.cjs.entry.js +1 -2
  14. package/dist/cjs/verdocs-send.cjs.entry.js +1 -2
  15. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -2
  16. package/dist/cjs/verdocs-template-attachments.cjs.entry.js +53 -0
  17. package/dist/cjs/verdocs-template-create_2.cjs.entry.js +1 -2
  18. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -3
  19. package/dist/cjs/verdocs-template-properties.cjs.entry.js +1 -2
  20. package/dist/cjs/verdocs-template-recipients.cjs.entry.js +159 -136
  21. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +3 -4
  22. package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +228 -0
  23. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +3 -4
  24. package/dist/cjs/verdocs-view.cjs.entry.js +1 -2
  25. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  26. package/dist/collection/collection-manifest.json +3 -1
  27. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.css +5 -0
  28. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +1 -1
  29. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +20 -1
  30. package/dist/collection/components/elements/verdocs-contact-picker/verdocs-contact-picker.stories.js +1 -1
  31. package/dist/collection/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
  32. package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.css +23 -0
  33. package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +137 -0
  34. package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.js +19 -0
  35. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.stories.js +2 -2
  36. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.stories.js +2 -3
  37. package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +3 -2
  38. package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.stories.js +4 -4
  39. package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.stories.js +2 -2
  40. package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.css +89 -30
  41. package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +154 -133
  42. package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +5 -4
  43. package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.css +7 -0
  44. package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.js +2 -2
  45. package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.js +2 -2
  46. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.css +105 -0
  47. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +303 -0
  48. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.js +13 -0
  49. package/dist/collection/components/{dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.css → templates/verdocs-template-sender/verdocs-template-sender.css} +11 -11
  50. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +193 -0
  51. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.stories.js +13 -0
  52. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.css +14 -6
  53. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.js +2 -2
  54. package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.js +2 -2
  55. package/dist/components/VerdocsEndpoint.js +43 -1
  56. package/dist/components/index.d.ts +3 -1
  57. package/dist/components/index.js +3 -1
  58. package/dist/components/verdocs-auth.js +8 -3
  59. package/dist/components/verdocs-build.js +0 -1
  60. package/dist/components/verdocs-contact-picker2.js +0 -1
  61. package/dist/components/verdocs-envelope-sidebar.js +0 -1
  62. package/dist/components/verdocs-field-date.js +8 -2
  63. package/dist/components/verdocs-field-initial.js +10 -4
  64. package/dist/components/verdocs-field-signature.js +10 -4
  65. package/dist/components/verdocs-field-textarea.js +8 -2
  66. package/dist/components/verdocs-field-textbox.js +8 -2
  67. package/dist/components/verdocs-field-timestamp.js +8 -2
  68. package/dist/components/verdocs-help-icon2.js +1 -1
  69. package/dist/components/verdocs-initial-dialog2.js +8 -2
  70. package/dist/components/verdocs-preview.js +0 -1
  71. package/dist/components/verdocs-quick-functions2.js +0 -1
  72. package/dist/components/verdocs-search-activity2.js +0 -1
  73. package/dist/components/verdocs-search-box2.js +0 -1
  74. package/dist/components/verdocs-search.js +0 -1
  75. package/dist/components/verdocs-select-input2.js +1 -1
  76. package/dist/components/verdocs-send.js +1 -2
  77. package/dist/components/verdocs-sign.js +1 -2
  78. package/dist/components/verdocs-signature-dialog2.js +8 -2
  79. package/dist/components/verdocs-template-attachments.d.ts +11 -0
  80. package/dist/components/verdocs-template-attachments.js +73 -0
  81. package/dist/components/verdocs-template-create2.js +0 -1
  82. package/dist/components/verdocs-template-fields2.js +0 -1
  83. package/dist/components/verdocs-template-name.js +9 -4
  84. package/dist/components/verdocs-template-properties.js +12 -7
  85. package/dist/components/verdocs-template-recipients.js +186 -137
  86. package/dist/components/verdocs-template-reminders.js +14 -9
  87. package/dist/components/verdocs-template-role-properties.d.ts +11 -0
  88. package/dist/components/verdocs-template-role-properties.js +6 -0
  89. package/dist/components/verdocs-template-role-properties2.js +229 -0
  90. package/dist/components/verdocs-template-sender.d.ts +11 -0
  91. package/dist/components/verdocs-template-sender.js +6 -0
  92. package/dist/components/verdocs-template-sender2.js +116 -0
  93. package/dist/components/verdocs-template-visibility.js +2 -3
  94. package/dist/components/verdocs-text-input2.js +10 -2
  95. package/dist/components/verdocs-view2.js +0 -1
  96. package/dist/custom-elements.json +82 -6
  97. package/dist/docs.json +399 -33
  98. package/dist/esm/Roles-2488d047.js +24 -0
  99. package/dist/esm/{VerdocsEndpoint-6df32d3a.js → VerdocsEndpoint-7f17b088.js} +43 -1
  100. package/dist/esm/loader.js +1 -1
  101. package/dist/esm/verdocs-auth.entry.js +1 -2
  102. package/dist/esm/verdocs-build.entry.js +1 -2
  103. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  104. package/dist/esm/verdocs-contact-picker.entry.js +1 -2
  105. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -2
  106. package/dist/esm/verdocs-help-icon_2.entry.js +11 -8
  107. package/dist/esm/verdocs-preview.entry.js +1 -2
  108. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -2
  109. package/dist/esm/verdocs-radio-button.entry.js +19 -0
  110. package/dist/esm/verdocs-search.entry.js +1 -2
  111. package/dist/esm/verdocs-send.entry.js +1 -2
  112. package/dist/esm/verdocs-sign.entry.js +1 -2
  113. package/dist/esm/verdocs-template-attachments.entry.js +49 -0
  114. package/dist/esm/verdocs-template-create_2.entry.js +1 -2
  115. package/dist/esm/verdocs-template-name.entry.js +2 -3
  116. package/dist/esm/verdocs-template-properties.entry.js +1 -2
  117. package/dist/esm/verdocs-template-recipients.entry.js +155 -132
  118. package/dist/esm/verdocs-template-reminders.entry.js +3 -4
  119. package/dist/esm/verdocs-template-role-properties_2.entry.js +223 -0
  120. package/dist/esm/verdocs-template-visibility.entry.js +3 -4
  121. package/dist/esm/verdocs-view.entry.js +1 -2
  122. package/dist/esm/verdocs-web-sdk.js +1 -1
  123. package/dist/esm-es5/Roles-2488d047.js +1 -0
  124. package/dist/esm-es5/VerdocsEndpoint-7f17b088.js +1 -0
  125. package/dist/esm-es5/loader.js +1 -1
  126. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-help-icon_2.entry.js +1 -1
  132. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  133. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -0
  135. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  138. package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -0
  139. package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
  143. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  144. package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -0
  145. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  146. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  147. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  148. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +4 -0
  149. package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.d.ts +29 -0
  150. package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.d.ts +7 -0
  151. package/dist/types/components/templates/verdocs-template-create/verdocs-template-create.stories.d.ts +1 -1
  152. package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.stories.d.ts +1 -1
  153. package/dist/types/components/templates/verdocs-template-name/verdocs-template-name.stories.d.ts +1 -1
  154. package/dist/types/components/templates/verdocs-template-properties/verdocs-template-properties.stories.d.ts +1 -1
  155. package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.d.ts +8 -15
  156. package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.d.ts +1 -1
  157. package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.d.ts +1 -1
  158. package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.d.ts +1 -1
  159. package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +56 -0
  160. package/dist/types/components/{dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.d.ts → templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.d.ts} +2 -3
  161. package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.d.ts +36 -0
  162. package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.stories.d.ts +7 -0
  163. package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.d.ts +1 -1
  164. package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.d.ts +1 -1
  165. package/dist/types/components.d.ts +144 -18
  166. package/dist/verdocs-web-sdk/p-0ee57bd9.entry.js +1 -0
  167. package/dist/verdocs-web-sdk/p-12c732a7.entry.js +1 -0
  168. package/dist/verdocs-web-sdk/p-130fe919.system.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/p-15aef735.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-19849b9e.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/p-205027db.entry.js +1 -0
  172. package/dist/verdocs-web-sdk/p-2144b8be.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-261dcea1.system.js +1 -0
  174. package/dist/verdocs-web-sdk/p-26b4ae0d.system.entry.js +1 -0
  175. package/dist/verdocs-web-sdk/p-285eaf3c.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-2d4712ea.js +1 -0
  177. package/dist/verdocs-web-sdk/p-34db97b7.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/p-37a493a6.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/p-3da4b4cb.entry.js +1 -0
  180. package/dist/verdocs-web-sdk/p-3fbe602a.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/p-4352529d.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/p-464adbad.system.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/p-4a1c9aa1.system.entry.js +1 -0
  184. package/dist/verdocs-web-sdk/p-50d7e990.system.entry.js +1 -0
  185. package/dist/verdocs-web-sdk/p-5ee985be.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-6121f103.system.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/{p-45ac2230.system.entry.js → p-61b824ca.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/p-74e1ae92.entry.js +1 -0
  189. package/dist/verdocs-web-sdk/p-7b111f2b.system.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-7d909ce4.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-8c53e0ff.system.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-91539130.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-9717a531.system.entry.js +1 -0
  194. package/dist/verdocs-web-sdk/p-98aa17a8.system.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/p-9b854a18.system.entry.js +1 -0
  196. package/dist/verdocs-web-sdk/p-9f17b920.entry.js +1 -0
  197. package/dist/verdocs-web-sdk/p-a17a81a3.entry.js +1 -0
  198. package/dist/verdocs-web-sdk/p-a6872a88.system.entry.js +1 -0
  199. package/dist/verdocs-web-sdk/p-b4fee0ae.system.entry.js +1 -0
  200. package/dist/verdocs-web-sdk/p-bda7353b.entry.js +1 -0
  201. package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
  202. package/dist/verdocs-web-sdk/p-cd70bb21.system.entry.js +1 -0
  203. package/dist/verdocs-web-sdk/p-d08fca9c.entry.js +1 -0
  204. package/dist/verdocs-web-sdk/p-d5a95369.entry.js +1 -0
  205. package/dist/verdocs-web-sdk/p-daedc6c2.system.entry.js +1 -0
  206. package/dist/verdocs-web-sdk/p-de5c37cd.system.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/p-df4f1a5e.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/p-e223553c.system.entry.js +1 -0
  209. package/dist/verdocs-web-sdk/{p-6b205bb5.entry.js → p-ead5322f.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/p-f3e9be57.entry.js +1 -0
  211. package/dist/verdocs-web-sdk/p-fbc81799.system.js +1 -0
  212. package/dist/verdocs-web-sdk/p-ffe60abd.js +1 -0
  213. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  214. package/package.json +5 -4
  215. package/dist/cjs/Types-da57ce69.js +0 -43
  216. package/dist/cjs/verdocs-template-sender-dialog.cjs.entry.js +0 -43
  217. package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -25
  218. package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.js +0 -114
  219. package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.js +0 -46
  220. package/dist/components/Types.js +0 -43
  221. package/dist/components/verdocs-template-sender-dialog.d.ts +0 -11
  222. package/dist/components/verdocs-template-sender-dialog.js +0 -6
  223. package/dist/components/verdocs-template-sender-dialog2.js +0 -75
  224. package/dist/esm/Types-ab9f6af8.js +0 -43
  225. package/dist/esm/verdocs-template-sender-dialog.entry.js +0 -39
  226. package/dist/esm/verdocs-text-input.entry.js +0 -21
  227. package/dist/esm-es5/Types-ab9f6af8.js +0 -1
  228. package/dist/esm-es5/VerdocsEndpoint-6df32d3a.js +0 -1
  229. package/dist/esm-es5/verdocs-template-sender-dialog.entry.js +0 -1
  230. package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
  231. package/dist/types/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.d.ts +0 -26
  232. package/dist/verdocs-web-sdk/p-069fcbbe.system.entry.js +0 -1
  233. package/dist/verdocs-web-sdk/p-09cd92b4.system.entry.js +0 -1
  234. package/dist/verdocs-web-sdk/p-0e06dc54.entry.js +0 -1
  235. package/dist/verdocs-web-sdk/p-11c26f99.system.entry.js +0 -1
  236. package/dist/verdocs-web-sdk/p-17fd7860.entry.js +0 -1
  237. package/dist/verdocs-web-sdk/p-1dc5393d.entry.js +0 -1
  238. package/dist/verdocs-web-sdk/p-1f06f0d0.entry.js +0 -1
  239. package/dist/verdocs-web-sdk/p-266e163c.entry.js +0 -1
  240. package/dist/verdocs-web-sdk/p-26f16c4a.system.entry.js +0 -1
  241. package/dist/verdocs-web-sdk/p-2e4dfdc6.js +0 -1
  242. package/dist/verdocs-web-sdk/p-34a2538f.system.entry.js +0 -1
  243. package/dist/verdocs-web-sdk/p-453218bc.system.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-46bb5543.system.entry.js +0 -1
  245. package/dist/verdocs-web-sdk/p-4a09c8df.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-4edc67af.system.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-5231a690.system.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-52be34b3.system.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-54102f3d.entry.js +0 -1
  250. package/dist/verdocs-web-sdk/p-5f09d34b.system.entry.js +0 -1
  251. package/dist/verdocs-web-sdk/p-619098f5.entry.js +0 -1
  252. package/dist/verdocs-web-sdk/p-6f742462.entry.js +0 -1
  253. package/dist/verdocs-web-sdk/p-7abcf805.entry.js +0 -1
  254. package/dist/verdocs-web-sdk/p-7d855960.entry.js +0 -1
  255. package/dist/verdocs-web-sdk/p-86a8b6ad.system.entry.js +0 -1
  256. package/dist/verdocs-web-sdk/p-898b46ce.entry.js +0 -1
  257. package/dist/verdocs-web-sdk/p-8a2dbb48.entry.js +0 -1
  258. package/dist/verdocs-web-sdk/p-8cf35e23.entry.js +0 -1
  259. package/dist/verdocs-web-sdk/p-8d36c969.system.entry.js +0 -1
  260. package/dist/verdocs-web-sdk/p-8efc9749.js +0 -1
  261. package/dist/verdocs-web-sdk/p-952b9288.system.entry.js +0 -1
  262. package/dist/verdocs-web-sdk/p-a0b23dbe.system.entry.js +0 -1
  263. package/dist/verdocs-web-sdk/p-a39b334f.entry.js +0 -1
  264. package/dist/verdocs-web-sdk/p-a4dc6a79.system.js +0 -1
  265. package/dist/verdocs-web-sdk/p-a7433630.system.js +0 -1
  266. package/dist/verdocs-web-sdk/p-acfa887e.entry.js +0 -1
  267. package/dist/verdocs-web-sdk/p-b505db92.system.entry.js +0 -1
  268. package/dist/verdocs-web-sdk/p-bdce7b62.system.entry.js +0 -1
  269. package/dist/verdocs-web-sdk/p-cf8f8562.entry.js +0 -1
  270. package/dist/verdocs-web-sdk/p-d876f216.system.entry.js +0 -1
  271. package/dist/verdocs-web-sdk/p-e1da9867.entry.js +0 -1
  272. package/dist/verdocs-web-sdk/p-e5ed6342.entry.js +0 -1
  273. package/dist/verdocs-web-sdk/p-e9e83cbb.system.entry.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateFields: ({ templateId, onCancel, onNext }: {
4
+ export declare const Fields: ({ templateId, onCancel, onNext }: {
5
5
  templateId: any;
6
6
  onCancel: any;
7
7
  onNext: any;
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateName: ({ onClose, templateId }: {
4
+ export declare const Name: ({ onClose, templateId }: {
5
5
  onClose: any;
6
6
  templateId: any;
7
7
  }) => import("lit-html").TemplateResult<1>;
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateProperties: ({ onCancel, onNext, templateId }: {
4
+ export declare const Properties: ({ onCancel, onNext, templateId }: {
5
5
  onCancel: any;
6
6
  onNext: any;
7
7
  templateId: any;
@@ -1,20 +1,11 @@
1
1
  import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
- import { IRole } from '@verdocs/js-sdk/Templates/Types';
3
2
  import { EventEmitter } from '../../../stencil-public-runtime';
4
3
  import { SDKError } from '../../../utils/errors';
5
- declare type TAnnotatedRole = IRole & {
6
- order: number;
7
- };
8
4
  /**
9
- * Displays a contact picker suitable for filling out Recipient objects when sending Documents.
10
- *
11
- * This picker can also be integrated with a backend to provide contact list / suggestion / address-book style behavior. As the
12
- * user interacts with the component, the text entered in the name field is sent back to the parent via the `searchContacts` event.
13
- * The parent can use that text as a query string to call a backend to obtain appropriate contacts to show. This list may also be
14
- * hard-coded ahead of time to provide the user with smart suggestions on initial display, such as "Recently Used" contacts, or
15
- * to always display the user's own contact record.
5
+ * Displays an edit form that allows the user to adjust a template's recipients and workflow.
16
6
  */
17
7
  export declare class VerdocsTemplateRecipients {
8
+ el: HTMLElement;
18
9
  /**
19
10
  * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
20
11
  */
@@ -28,20 +19,22 @@ export declare class VerdocsTemplateRecipients {
28
19
  */
29
20
  cancel: EventEmitter;
30
21
  sequences: number[];
31
- rolesAtSequence: Record<number, TAnnotatedRole[]>;
32
22
  /**
33
23
  * Event fired if an error occurs. The event details will contain information about the error. Most errors will
34
24
  * terminate the process, and the calling application should correct the condition and re-render the component.
35
25
  */
36
26
  sdkError: EventEmitter<SDKError>;
27
+ showingRoleDialog: string | null;
37
28
  showingSenderDialog: boolean;
38
29
  sender: any;
39
- orderedRoles: TAnnotatedRole[];
30
+ forceRerender: number;
40
31
  componentWillLoad(): Promise<void>;
41
32
  componentDidRender(): void;
42
- computeRolesBySequence(): void;
43
33
  handleCancel(e: any): void;
44
34
  handleSubmit(e: any): void;
35
+ sortTemplateRoles(): void;
36
+ extractSequenceNumbers(): void;
37
+ renumberTemplateRoles(): void;
38
+ handleAddRole(e: any, sequence: number): void;
45
39
  render(): any;
46
40
  }
47
- export {};
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateRecipients: ({ templateId, cancel }: {
4
+ export declare const Recipients: ({ templateId, cancel }: {
5
5
  templateId: any;
6
6
  cancel: any;
7
7
  }) => import("lit-html").TemplateResult<1>;
@@ -2,7 +2,7 @@ import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
2
  import { EventEmitter } from '../../../stencil-public-runtime';
3
3
  import { SDKError } from '../../../utils/errors';
4
4
  /**
5
- * Displays a collection of settings boxes that allow a user to configure a template's behavior.
5
+ * Displays an edit form that allows the user to adjust a template's reminders.
6
6
  */
7
7
  export declare class VerdocsTemplateReminders {
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateReminders: ({ onClose, templateId }: {
4
+ export declare const Reminders: ({ onClose, templateId }: {
5
5
  onClose: any;
6
6
  templateId: any;
7
7
  }) => import("lit-html").TemplateResult<1>;
@@ -0,0 +1,56 @@
1
+ import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
+ import { TRecipientType } from '@verdocs/js-sdk/Envelopes/Types';
3
+ import { EventEmitter } from '../../../stencil-public-runtime';
4
+ import { TTemplateSender } from '@verdocs/js-sdk/Templates/Types';
5
+ import { SDKError } from '../../../utils/errors';
6
+ /**
7
+ * Display a dialog that allows a template sender to be selected.
8
+ */
9
+ export declare class VerdocsTemplateRoleProperties {
10
+ /**
11
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
12
+ */
13
+ endpoint: VerdocsEndpoint;
14
+ /**
15
+ * The template ID to edit.
16
+ */
17
+ templateId: string;
18
+ /**
19
+ * The role name to edit.
20
+ */
21
+ roleName: string;
22
+ /**
23
+ * Event fired when the user cancels the dialog.
24
+ */
25
+ close: EventEmitter;
26
+ /**
27
+ * Event fired when the user deletes the role. The parent should update its UI to reflect the removal. When this event is emitted,
28
+ * the role will have already been deleted server-side.
29
+ */
30
+ delete: EventEmitter<{
31
+ templateId: string;
32
+ roleName: string;
33
+ }>;
34
+ /**
35
+ * Event fired if an error occurs. The event details will contain information about the error. Most errors will
36
+ * terminate the process, and the calling application should correct the condition and re-render the component.
37
+ */
38
+ sdkError: EventEmitter<SDKError>;
39
+ /**
40
+ * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
41
+ */
42
+ sender: TTemplateSender;
43
+ dirty: boolean;
44
+ saving: boolean;
45
+ name: string;
46
+ type: TRecipientType;
47
+ fullName: string;
48
+ email: string;
49
+ phone: string;
50
+ allowDelegation: boolean;
51
+ componentWillLoad(): Promise<void>;
52
+ handleCancel(e: any): void;
53
+ handleSave(e: any): Promise<void>;
54
+ handleDelete(e: any): Promise<void>;
55
+ render(): any;
56
+ }
@@ -1,8 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateSenderDialog: ({ value, onCancel, onNext }: {
4
+ export declare const RoleProperties: ({ value, onClose }: {
5
5
  value: any;
6
- onCancel: any;
7
- onNext: any;
6
+ onClose: any;
8
7
  }) => import("lit-html").TemplateResult<1>;
@@ -0,0 +1,36 @@
1
+ import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
+ import { EventEmitter } from '../../../stencil-public-runtime';
3
+ import { TemplateSenderTypes, TTemplateSender } from '@verdocs/js-sdk/Templates/Types';
4
+ import { SDKError } from '../../../utils/errors';
5
+ /**
6
+ * Display a dialog that allows a template sender to be selected.
7
+ */
8
+ export declare class VerdocsTemplateSender {
9
+ /**
10
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
11
+ */
12
+ endpoint: VerdocsEndpoint;
13
+ /**
14
+ * The template ID to edit.
15
+ */
16
+ templateId: string;
17
+ /**
18
+ * Event fired when the user cancels the dialog.
19
+ */
20
+ close: EventEmitter;
21
+ /**
22
+ * Event fired if an error occurs. The event details will contain information about the error. Most errors will
23
+ * terminate the process, and the calling application should correct the condition and re-render the component.
24
+ */
25
+ sdkError: EventEmitter<SDKError>;
26
+ /**
27
+ * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
28
+ */
29
+ sender: TTemplateSender;
30
+ saving: boolean;
31
+ componentWillLoad(): Promise<void>;
32
+ handleClose(): void;
33
+ handleDismiss(e: any): void;
34
+ handleSelectSetting(value: TemplateSenderTypes): Promise<void>;
35
+ render(): any;
36
+ }
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/web-components';
2
+ declare const _default: Meta<import("@storybook/web-components").Args>;
3
+ export default _default;
4
+ export declare const Sender: ({ value, onClose }: {
5
+ value: any;
6
+ onClose: any;
7
+ }) => import("lit-html").TemplateResult<1>;
@@ -2,7 +2,7 @@ import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
2
  import { EventEmitter } from '../../../stencil-public-runtime';
3
3
  import { SDKError } from '../../../utils/errors';
4
4
  /**
5
- * Displays a collection of settings boxes that allow a user to configure a template's behavior.
5
+ * Displays an edit form that allows the user to adjust a template's visibility.
6
6
  */
7
7
  export declare class VerdocsTemplateVisibility {
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/web-components';
2
2
  declare const _default: Meta<import("@storybook/web-components").Args>;
3
3
  export default _default;
4
- export declare const TemplateVisibility: ({ onClose, templateId }: {
4
+ export declare const Visibility: ({ onClose, templateId }: {
5
5
  onClose: any;
6
6
  templateId: any;
7
7
  }) => import("lit-html").TemplateResult<1>;
@@ -8,7 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { VerdocsEndpoint } from "@verdocs/js-sdk";
9
9
  import { IAuthStatus } from "./components/embeds/verdocs-auth/verdocs-auth";
10
10
  import { SDKError } from "./utils/errors";
11
- import { IRole, ITemplate, ITemplateField, TemplateSenderTypes } from "@verdocs/js-sdk/Templates/Types";
11
+ import { IRole, ITemplate, ITemplateField, TTemplateSender } from "@verdocs/js-sdk/Templates/Types";
12
12
  import { IContactSearchEvent, IContactSelectEvent, IEmailContact, IPhoneContact } from "./components/elements/verdocs-contact-picker/verdocs-contact-picker";
13
13
  import { IDocumentPageInfo, IPageLayer } from "./utils/Types";
14
14
  import { IMenuOption } from "./components/controls/verdocs-dropdown/verdocs-dropdown";
@@ -649,6 +649,16 @@ export namespace Components {
649
649
  */
650
650
  "theme"?: 'dark' | 'light';
651
651
  }
652
+ interface VerdocsTemplateAttachments {
653
+ /**
654
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
655
+ */
656
+ "endpoint": VerdocsEndpoint;
657
+ /**
658
+ * The template ID to edit.
659
+ */
660
+ "templateId": string;
661
+ }
652
662
  interface VerdocsTemplateCard {
653
663
  /**
654
664
  * The template for which the card will be rendered.
@@ -711,11 +721,37 @@ export namespace Components {
711
721
  */
712
722
  "templateId": string;
713
723
  }
714
- interface VerdocsTemplateSenderDialog {
724
+ interface VerdocsTemplateRoleProperties {
725
+ /**
726
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
727
+ */
728
+ "endpoint": VerdocsEndpoint;
729
+ /**
730
+ * The role name to edit.
731
+ */
732
+ "roleName": string;
715
733
  /**
716
734
  * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
717
735
  */
718
- "value": TemplateSenderTypes;
736
+ "sender": TTemplateSender;
737
+ /**
738
+ * The template ID to edit.
739
+ */
740
+ "templateId": string;
741
+ }
742
+ interface VerdocsTemplateSender {
743
+ /**
744
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
745
+ */
746
+ "endpoint": VerdocsEndpoint;
747
+ /**
748
+ * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
749
+ */
750
+ "sender": TTemplateSender;
751
+ /**
752
+ * The template ID to edit.
753
+ */
754
+ "templateId": string;
719
755
  }
720
756
  interface VerdocsTemplateTags {
721
757
  /**
@@ -742,6 +778,10 @@ export namespace Components {
742
778
  * Should the field be disabled?
743
779
  */
744
780
  "disabled": boolean;
781
+ /**
782
+ * If supplied, a help icon will be displayed to provide the user more information.
783
+ */
784
+ "helpText": string;
745
785
  /**
746
786
  * The label for the field.
747
787
  */
@@ -903,6 +943,10 @@ export interface VerdocsSignatureDialogCustomEvent<T> extends CustomEvent<T> {
903
943
  detail: T;
904
944
  target: HTMLVerdocsSignatureDialogElement;
905
945
  }
946
+ export interface VerdocsTemplateAttachmentsCustomEvent<T> extends CustomEvent<T> {
947
+ detail: T;
948
+ target: HTMLVerdocsTemplateAttachmentsElement;
949
+ }
906
950
  export interface VerdocsTemplateCreateCustomEvent<T> extends CustomEvent<T> {
907
951
  detail: T;
908
952
  target: HTMLVerdocsTemplateCreateElement;
@@ -927,9 +971,13 @@ export interface VerdocsTemplateRemindersCustomEvent<T> extends CustomEvent<T> {
927
971
  detail: T;
928
972
  target: HTMLVerdocsTemplateRemindersElement;
929
973
  }
930
- export interface VerdocsTemplateSenderDialogCustomEvent<T> extends CustomEvent<T> {
974
+ export interface VerdocsTemplateRolePropertiesCustomEvent<T> extends CustomEvent<T> {
931
975
  detail: T;
932
- target: HTMLVerdocsTemplateSenderDialogElement;
976
+ target: HTMLVerdocsTemplateRolePropertiesElement;
977
+ }
978
+ export interface VerdocsTemplateSenderCustomEvent<T> extends CustomEvent<T> {
979
+ detail: T;
980
+ target: HTMLVerdocsTemplateSenderElement;
933
981
  }
934
982
  export interface VerdocsTemplateVisibilityCustomEvent<T> extends CustomEvent<T> {
935
983
  detail: T;
@@ -1188,6 +1236,12 @@ declare global {
1188
1236
  prototype: HTMLVerdocsStatusIndicatorElement;
1189
1237
  new (): HTMLVerdocsStatusIndicatorElement;
1190
1238
  };
1239
+ interface HTMLVerdocsTemplateAttachmentsElement extends Components.VerdocsTemplateAttachments, HTMLStencilElement {
1240
+ }
1241
+ var HTMLVerdocsTemplateAttachmentsElement: {
1242
+ prototype: HTMLVerdocsTemplateAttachmentsElement;
1243
+ new (): HTMLVerdocsTemplateAttachmentsElement;
1244
+ };
1191
1245
  interface HTMLVerdocsTemplateCardElement extends Components.VerdocsTemplateCard, HTMLStencilElement {
1192
1246
  }
1193
1247
  var HTMLVerdocsTemplateCardElement: {
@@ -1230,11 +1284,17 @@ declare global {
1230
1284
  prototype: HTMLVerdocsTemplateRemindersElement;
1231
1285
  new (): HTMLVerdocsTemplateRemindersElement;
1232
1286
  };
1233
- interface HTMLVerdocsTemplateSenderDialogElement extends Components.VerdocsTemplateSenderDialog, HTMLStencilElement {
1287
+ interface HTMLVerdocsTemplateRolePropertiesElement extends Components.VerdocsTemplateRoleProperties, HTMLStencilElement {
1288
+ }
1289
+ var HTMLVerdocsTemplateRolePropertiesElement: {
1290
+ prototype: HTMLVerdocsTemplateRolePropertiesElement;
1291
+ new (): HTMLVerdocsTemplateRolePropertiesElement;
1292
+ };
1293
+ interface HTMLVerdocsTemplateSenderElement extends Components.VerdocsTemplateSender, HTMLStencilElement {
1234
1294
  }
1235
- var HTMLVerdocsTemplateSenderDialogElement: {
1236
- prototype: HTMLVerdocsTemplateSenderDialogElement;
1237
- new (): HTMLVerdocsTemplateSenderDialogElement;
1295
+ var HTMLVerdocsTemplateSenderElement: {
1296
+ prototype: HTMLVerdocsTemplateSenderElement;
1297
+ new (): HTMLVerdocsTemplateSenderElement;
1238
1298
  };
1239
1299
  interface HTMLVerdocsTemplateTagsElement extends Components.VerdocsTemplateTags, HTMLStencilElement {
1240
1300
  }
@@ -1325,6 +1385,7 @@ declare global {
1325
1385
  "verdocs-sign": HTMLVerdocsSignElement;
1326
1386
  "verdocs-signature-dialog": HTMLVerdocsSignatureDialogElement;
1327
1387
  "verdocs-status-indicator": HTMLVerdocsStatusIndicatorElement;
1388
+ "verdocs-template-attachments": HTMLVerdocsTemplateAttachmentsElement;
1328
1389
  "verdocs-template-card": HTMLVerdocsTemplateCardElement;
1329
1390
  "verdocs-template-create": HTMLVerdocsTemplateCreateElement;
1330
1391
  "verdocs-template-fields": HTMLVerdocsTemplateFieldsElement;
@@ -1332,7 +1393,8 @@ declare global {
1332
1393
  "verdocs-template-properties": HTMLVerdocsTemplatePropertiesElement;
1333
1394
  "verdocs-template-recipients": HTMLVerdocsTemplateRecipientsElement;
1334
1395
  "verdocs-template-reminders": HTMLVerdocsTemplateRemindersElement;
1335
- "verdocs-template-sender-dialog": HTMLVerdocsTemplateSenderDialogElement;
1396
+ "verdocs-template-role-properties": HTMLVerdocsTemplateRolePropertiesElement;
1397
+ "verdocs-template-sender": HTMLVerdocsTemplateSenderElement;
1336
1398
  "verdocs-template-tags": HTMLVerdocsTemplateTagsElement;
1337
1399
  "verdocs-template-visibility": HTMLVerdocsTemplateVisibilityElement;
1338
1400
  "verdocs-text-input": HTMLVerdocsTextInputElement;
@@ -2125,6 +2187,24 @@ declare namespace LocalJSX {
2125
2187
  */
2126
2188
  "theme"?: 'dark' | 'light';
2127
2189
  }
2190
+ interface VerdocsTemplateAttachments {
2191
+ /**
2192
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
2193
+ */
2194
+ "endpoint"?: VerdocsEndpoint;
2195
+ /**
2196
+ * Event fired when the user cancels the dialog.
2197
+ */
2198
+ "onClose"?: (event: VerdocsTemplateAttachmentsCustomEvent<any>) => void;
2199
+ /**
2200
+ * Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
2201
+ */
2202
+ "onSdkError"?: (event: VerdocsTemplateAttachmentsCustomEvent<SDKError>) => void;
2203
+ /**
2204
+ * The template ID to edit.
2205
+ */
2206
+ "templateId"?: string;
2207
+ }
2128
2208
  interface VerdocsTemplateCard {
2129
2209
  /**
2130
2210
  * The template for which the card will be rendered.
@@ -2247,19 +2327,57 @@ declare namespace LocalJSX {
2247
2327
  */
2248
2328
  "templateId"?: string;
2249
2329
  }
2250
- interface VerdocsTemplateSenderDialog {
2330
+ interface VerdocsTemplateRoleProperties {
2251
2331
  /**
2252
- * Event fired when the dialog is closed. The event data will contain the closure reason.
2332
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
2333
+ */
2334
+ "endpoint"?: VerdocsEndpoint;
2335
+ /**
2336
+ * Event fired when the user cancels the dialog.
2337
+ */
2338
+ "onClose"?: (event: VerdocsTemplateRolePropertiesCustomEvent<any>) => void;
2339
+ /**
2340
+ * Event fired when the user deletes the role. The parent should update its UI to reflect the removal. When this event is emitted, the role will have already been deleted server-side.
2341
+ */
2342
+ "onDelete"?: (event: VerdocsTemplateRolePropertiesCustomEvent<{templateId: string; roleName: string}>) => void;
2343
+ /**
2344
+ * Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
2345
+ */
2346
+ "onSdkError"?: (event: VerdocsTemplateRolePropertiesCustomEvent<SDKError>) => void;
2347
+ /**
2348
+ * The role name to edit.
2253
2349
  */
2254
- "onCancel"?: (event: VerdocsTemplateSenderDialogCustomEvent<any>) => void;
2350
+ "roleName"?: string;
2351
+ /**
2352
+ * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
2353
+ */
2354
+ "sender"?: TTemplateSender;
2355
+ /**
2356
+ * The template ID to edit.
2357
+ */
2358
+ "templateId"?: string;
2359
+ }
2360
+ interface VerdocsTemplateSender {
2255
2361
  /**
2256
- * Event fired when the dialog is closed. The event data will contain the selected value.
2362
+ * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
2257
2363
  */
2258
- "onNext"?: (event: VerdocsTemplateSenderDialogCustomEvent<TemplateSenderTypes>) => void;
2364
+ "endpoint"?: VerdocsEndpoint;
2365
+ /**
2366
+ * Event fired when the user cancels the dialog.
2367
+ */
2368
+ "onClose"?: (event: VerdocsTemplateSenderCustomEvent<any>) => void;
2369
+ /**
2370
+ * Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
2371
+ */
2372
+ "onSdkError"?: (event: VerdocsTemplateSenderCustomEvent<SDKError>) => void;
2259
2373
  /**
2260
2374
  * Whether the dialog is currently being displayed. This allows it to be added to the DOM before being displayed.
2261
2375
  */
2262
- "value"?: TemplateSenderTypes;
2376
+ "sender"?: TTemplateSender;
2377
+ /**
2378
+ * The template ID to edit.
2379
+ */
2380
+ "templateId"?: string;
2263
2381
  }
2264
2382
  interface VerdocsTemplateTags {
2265
2383
  /**
@@ -2294,6 +2412,10 @@ declare namespace LocalJSX {
2294
2412
  * Should the field be disabled?
2295
2413
  */
2296
2414
  "disabled"?: boolean;
2415
+ /**
2416
+ * If supplied, a help icon will be displayed to provide the user more information.
2417
+ */
2418
+ "helpText"?: string;
2297
2419
  /**
2298
2420
  * The label for the field.
2299
2421
  */
@@ -2419,6 +2541,7 @@ declare namespace LocalJSX {
2419
2541
  "verdocs-sign": VerdocsSign;
2420
2542
  "verdocs-signature-dialog": VerdocsSignatureDialog;
2421
2543
  "verdocs-status-indicator": VerdocsStatusIndicator;
2544
+ "verdocs-template-attachments": VerdocsTemplateAttachments;
2422
2545
  "verdocs-template-card": VerdocsTemplateCard;
2423
2546
  "verdocs-template-create": VerdocsTemplateCreate;
2424
2547
  "verdocs-template-fields": VerdocsTemplateFields;
@@ -2426,7 +2549,8 @@ declare namespace LocalJSX {
2426
2549
  "verdocs-template-properties": VerdocsTemplateProperties;
2427
2550
  "verdocs-template-recipients": VerdocsTemplateRecipients;
2428
2551
  "verdocs-template-reminders": VerdocsTemplateReminders;
2429
- "verdocs-template-sender-dialog": VerdocsTemplateSenderDialog;
2552
+ "verdocs-template-role-properties": VerdocsTemplateRoleProperties;
2553
+ "verdocs-template-sender": VerdocsTemplateSender;
2430
2554
  "verdocs-template-tags": VerdocsTemplateTags;
2431
2555
  "verdocs-template-visibility": VerdocsTemplateVisibility;
2432
2556
  "verdocs-text-input": VerdocsTextInput;
@@ -2481,6 +2605,7 @@ declare module "@stencil/core" {
2481
2605
  "verdocs-sign": LocalJSX.VerdocsSign & JSXBase.HTMLAttributes<HTMLVerdocsSignElement>;
2482
2606
  "verdocs-signature-dialog": LocalJSX.VerdocsSignatureDialog & JSXBase.HTMLAttributes<HTMLVerdocsSignatureDialogElement>;
2483
2607
  "verdocs-status-indicator": LocalJSX.VerdocsStatusIndicator & JSXBase.HTMLAttributes<HTMLVerdocsStatusIndicatorElement>;
2608
+ "verdocs-template-attachments": LocalJSX.VerdocsTemplateAttachments & JSXBase.HTMLAttributes<HTMLVerdocsTemplateAttachmentsElement>;
2484
2609
  "verdocs-template-card": LocalJSX.VerdocsTemplateCard & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCardElement>;
2485
2610
  "verdocs-template-create": LocalJSX.VerdocsTemplateCreate & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCreateElement>;
2486
2611
  "verdocs-template-fields": LocalJSX.VerdocsTemplateFields & JSXBase.HTMLAttributes<HTMLVerdocsTemplateFieldsElement>;
@@ -2488,7 +2613,8 @@ declare module "@stencil/core" {
2488
2613
  "verdocs-template-properties": LocalJSX.VerdocsTemplateProperties & JSXBase.HTMLAttributes<HTMLVerdocsTemplatePropertiesElement>;
2489
2614
  "verdocs-template-recipients": LocalJSX.VerdocsTemplateRecipients & JSXBase.HTMLAttributes<HTMLVerdocsTemplateRecipientsElement>;
2490
2615
  "verdocs-template-reminders": LocalJSX.VerdocsTemplateReminders & JSXBase.HTMLAttributes<HTMLVerdocsTemplateRemindersElement>;
2491
- "verdocs-template-sender-dialog": LocalJSX.VerdocsTemplateSenderDialog & JSXBase.HTMLAttributes<HTMLVerdocsTemplateSenderDialogElement>;
2616
+ "verdocs-template-role-properties": LocalJSX.VerdocsTemplateRoleProperties & JSXBase.HTMLAttributes<HTMLVerdocsTemplateRolePropertiesElement>;
2617
+ "verdocs-template-sender": LocalJSX.VerdocsTemplateSender & JSXBase.HTMLAttributes<HTMLVerdocsTemplateSenderElement>;
2492
2618
  "verdocs-template-tags": LocalJSX.VerdocsTemplateTags & JSXBase.HTMLAttributes<HTMLVerdocsTemplateTagsElement>;
2493
2619
  "verdocs-template-visibility": LocalJSX.VerdocsTemplateVisibility & JSXBase.HTMLAttributes<HTMLVerdocsTemplateVisibilityElement>;
2494
2620
  "verdocs-text-input": LocalJSX.VerdocsTextInput & JSXBase.HTMLAttributes<HTMLVerdocsTextInputElement>;
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s,H as r}from"./p-ff1278ed.js";import{V as i}from"./p-2d4712ea.js";import{s as o}from"./p-87749601.js";import{l as a}from"./p-848e555d.js";import{S as n}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";import"./p-b28ef4bb.js";const l=class{constructor(s){e(this,s),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.endpoint=i.getDefault(),this.templateId="",this.showPlanBlocker=!1,this.sendReminders=!1,this.firstReminderDays="1",this.reminderDays="1",this.dirty=!1,this.loading=!0}async componentWillLoad(){var e,t,s;try{this.endpoint.loadSession(),await a(this.endpoint,this.templateId),this.loading=!1,this.sendReminders=!!o.template.reminder_id,this.dirty=!1}catch(r){console.log("[TEMPLATE REMINDERS] Error loading template",r),this.loading=!1,null===(e=this.sdkError)||void 0===e||e.emit(new n(r.message,null===(t=r.response)||void 0===t?void 0:t.status,null===(s=r.response)||void 0===s?void 0:s.data))}}handleCancel(e){var t;e.stopPropagation(),this.sendReminders=!!o.template.reminder_id,this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){var t,s,r,i;if(e.stopPropagation(),this.sendReminders){const e={setup_time:864e5*+this.firstReminderDays,interval_time:864e5*+this.reminderDays};o.template.reminder_id?await function(e,t,s,r){return e.api.put("/templates/".concat(t,"/reminder/").concat(s),r).then((function(e){return e.data}))}(this.endpoint,this.templateId,o.template.reminder_id,e):await function(e,t,s){return e.api.post("/templates/".concat(t,"/reminder/"),s).then((function(e){return e.data}))}(this.endpoint,this.templateId,e)}else await(s=this.endpoint,r=this.templateId,i=o.template.reminder_id,s.api.delete("/templates/".concat(r,"/reminder/").concat(i)).then((function(e){return e.data})));this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}render(){return this.endpoint.session?this.endpoint.session&&o.template?s(r,null,s("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},s("h5",null,"Reminders"),s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-send-reminders"},"Send Automatic Reminders"),s("verdocs-checkbox",{id:"verdocs-send-reminders",name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:e=>{this.showPlanBlocker=!0,e.target.checked=!1}})),s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-first-reminder-days"},"Days Before First Reminder"),s("verdocs-text-input",{id:"verdocs-first-reminder-days",type:"number",value:this.firstReminderDays,onInput:e=>this.firstReminderDays=e.target.value,disabled:!this.sendReminders})),s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-days-between-reminders"},"Days Between Reminders"),s("verdocs-text-input",{id:"verdocs-days-between-reminders",type:"number",value:this.reminderDays,onInput:e=>this.reminderDays=e.target.value,disabled:!this.sendReminders})),s("div",{class:"buttons"},s("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),s("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))),this.showPlanBlocker&&s("verdocs-ok-dialog",{heading:"Upgrade to access this feature",message:"Please upgrade your plan to access this feature.",onNext:()=>this.showPlanBlocker=!1})):s(r,{class:"empty"}):s(r,null,s("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};l.style='verdocs-template-reminders{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-reminders.loading{min-height:300px;position:relative;display:block}verdocs-template-reminders.empty{display:none}verdocs-template-reminders form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-reminders form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-reminders form label{font-size:16px;font-weight:500;margin:0 0 6px 0;color:#33364b}verdocs-template-reminders form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-reminders form input:focus{outline:none}verdocs-template-reminders 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-reminders form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-reminders form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px}verdocs-template-reminders form .input-row verdocs-text-input input{text-align:center}verdocs-template-reminders 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-reminders .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-reminders ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-moz-placeholder{color:#aaaaaa}verdocs-template-reminders :-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::placeholder{color:#aaaaaa}';export{l as verdocs_template_reminders}
@@ -0,0 +1 @@
1
+ import{r as e,c as a,h as t,H as o}from"./p-ff1278ed.js";import{u as s}from"./p-b28ef4bb.js";import{V as l}from"./p-2d4712ea.js";import{s as i}from"./p-87749601.js";import{l as r}from"./p-848e555d.js";import{S as n}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const m=class{constructor(t){e(this,t),this.close=a(this,"close",7),this.sdkError=a(this,"sdkError",7),this.endpoint=l.getDefault(),this.templateId="",this.name="",this.dirty=!1,this.loading=!0}async componentWillLoad(){var e,a,t;try{this.endpoint.loadSession(),await r(this.endpoint,this.templateId),this.loading=!1,this.name=i.template.name,this.dirty=!1}catch(o){console.log("[TEMPLATE NAME] Error loading template",o),this.loading=!1,null===(e=this.sdkError)||void 0===e||e.emit(new n(o.message,null===(a=o.response)||void 0===a?void 0:a.status,null===(t=o.response)||void 0===t?void 0:t.data))}}handleCancel(e){var a;e.stopPropagation(),this.name=i.template.name,this.dirty=!1,null===(a=this.close)||void 0===a||a.emit()}async handleSave(e){var a;e.stopPropagation(),await s(this.endpoint,this.templateId,{name:this.name}),i.template.name=this.name,this.dirty=!1,null===(a=this.close)||void 0===a||a.emit()}render(){return this.loading?t(o,{class:"loading"},t("verdocs-loader",null)):this.endpoint.session&&i.template?t(o,null,t("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("label",{htmlFor:"verdocs-template-name"},"Template Name"),t("verdocs-text-input",{id:"verdocs-template-name",value:this.name,autocomplete:"off",placeholder:"Template Name...",onInput:e=>{this.name=e.target.value,this.dirty=this.name!==i.template.name}}),t("div",{class:"buttons"},t("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)})))):t(o,{class:"empty"})}};m.style='verdocs-template-name{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-name.loading{min-height:300px;position:relative;display:block}verdocs-template-name.empty{display:none}verdocs-template-name form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-name form label{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-name form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-name form input:focus{outline:none}verdocs-template-name .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-name ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-name ::-moz-placeholder{color:#aaaaaa}verdocs-template-name :-ms-input-placeholder{color:#aaaaaa}verdocs-template-name ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-name ::placeholder{color:#aaaaaa}';export{m as verdocs_template_name}
@@ -0,0 +1 @@
1
+ System.register(["./p-97329951.system.js","./p-e12b7fbc.system.js"],(function(t){"use strict";var o,e,i,n;return{setters:[function(t){o=t.r;e=t.h;i=t.H},function(t){n=t.c}],execute:function(){var r='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3}verdocs-help-icon:hover{opacity:1;cursor:none}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .icon svg{fill:#5c6575}verdocs-help-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;position:relative;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var p='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var a=t("verdocs_help_icon",function(){function t(t){o(this,t);this.text="";this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=n(this.icon,this.tooltip,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltip)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltip)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return e(i,{class:{}},e("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:p,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.icon=o}}),e("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltip=o}},this.text,e("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());a.style=r;var s='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input [data-lastpass-icon-root]{display:none !important}';var l=t("verdocs_text_input",function(){function t(t){o(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.type="text";this.disabled=false}t.prototype.render=function(){return e(i,{class:"input-field"},e("label",null,this.label?e("div",{class:"input-label"},this.label+":"):e("div",null),e("input",{type:this.type,value:this.value,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete}),this.helpText&&e("verdocs-help-icon",{text:this.helpText})))};return t}());l.style=s}}}));
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,H as s}from"./p-ff1278ed.js";import{u as o,d as l}from"./p-ffe60abd.js";import{V as r,T as n}from"./p-2d4712ea.js";import{s as a}from"./p-87749601.js";import{l as d}from"./p-848e555d.js";import{S as p}from"./p-7a1b2643.js";import{u as c}from"./p-b28ef4bb.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const h=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.delete=t(this,"delete",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.roleName="",this.sender=n.EVERYONE,this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.fullName="",this.email="",this.phone="",this.allowDelegation=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE ROLE PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE ROLE PROPERTIES] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE ROLE PROPERTIES] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE ROLE PROPERTIES] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}const s=a.template.roles.find((e=>e.name===this.roleName));s&&(this.name=s.name,this.type=s.type,this.fullName=s.full_name,this.email=s.email,this.phone=s.phone,this.allowDelegation=s.delegator,console.log("Got role",s))}catch(e){console.log("[TEMPLATE ROLE PROPERTIES] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleCancel(e){var t;e.stopPropagation(),this.name=a.template.name,this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,o(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.fullName,email:this.email,phone:this.phone,delegator:this.allowDelegation}).then((e=>{var t;console.log("Update result",e),this.saving=!1,this.dirty=!1,a.template.roles.forEach((e=>{e.name===this.roleName&&(e.name=this.name,e.type=this.type,e.full_name=this.fullName,e.email=this.email,e.phone=this.phone,e.delegator=this.allowDelegation)})),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("Uopdate error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&l(this.endpoint,this.templateId,this.roleName).then((e=>{var t;console.log("Role deleted",e),a.template.roles=[...a.template.roles.filter((e=>e.name!==this.roleName))],null===(t=this.delete)||void 0===t||t.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("Deletion error",e)}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleCancel(e)},i("div",{class:"dialog"},i("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},i("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=>{this.name=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"Type:"),i("verdocs-select-input",{value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),i("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."})),i("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=>{this.fullName=e.target.value,this.dirty=!0}}),i("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=>{this.email=e.target.value,this.dirty=!0}}),i("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=>{this.phone=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"May Delegate:"),i("div",{class:"checkbox-wrapper"},i("verdocs-checkbox",{checked:this.allowDelegation,onInput:e=>{this.allowDelegation=e.target.checked,this.dirty=!0}})),i("verdocs-help-icon",{text:"If enabled, this recipient may delegate their actions to another individual."})),i("div",{class:"buttons"},i("button",{class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<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>'}),i("div",{style:{flex:"1"}}),i("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),i("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};h.style='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}';const m=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.sender=n.EVERYONE,this.saving=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE SENDER] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE SENDER] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE SENDER] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}this.sender=a.template.sender,console.log("s",this.sender)}catch(e){console.log("[TEMPLATE SENDER] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,c(this.endpoint,this.templateId,{sender:e}).then((t=>{console.log("Update result",t),a.template.sender=e,this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},i("div",{class:"dialog"},i("div",{class:"options"},i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE,checked:this.sender===n.EVERYONE,onInput:()=>this.handleSelectSetting(n.EVERYONE)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web"),i("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE_AS_CREATOR,checked:this.sender===n.EVERYONE_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.EVERYONE_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web as me"),i("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER,checked:this.sender===n.ORGANIZATION_MEMBER,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.sender===n.ORGANIZATION_MEMBER_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization as me"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.CREATOR,checked:this.sender===n.CREATOR,onInput:()=>this.handleSelectSetting(n.CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Me"),i("verdocs-help-icon",{text:"Only I can use this template."})))),i("div",{class:"buttons"},i("verdocs-button",{label:"Close",onClick:()=>this.handleClose()})))))}};m.style='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}';export{h as verdocs_template_role_properties,m as verdocs_template_sender}