@verdocs/web-sdk 2.0.14 → 2.0.15

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 (260) hide show
  1. package/dist/cjs/{TemplateStore-07e274ab.js → TemplateStore-4041d8af.js} +1 -1
  2. package/dist/cjs/{VerdocsEndpoint-2ff96f90.js → VerdocsEndpoint-45deeb6a.js} +2 -87
  3. package/dist/cjs/ipc-test.cjs.entry.js +37 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  8. package/dist/cjs/{verdocs-button-panel_3.cjs.entry.js → verdocs-button-panel_2.cjs.entry.js} +2 -19
  9. package/dist/cjs/{verdocs-checkbox_4.cjs.entry.js → verdocs-checkbox_5.cjs.entry.js} +17 -0
  10. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-radio-button.cjs.entry.js +23 -0
  21. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
  23. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -2
  24. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +236 -0
  25. package/dist/cjs/{verdocs-template-document-page.cjs.entry.js → verdocs-template-document-page_2.cjs.entry.js} +46 -1
  26. package/dist/cjs/{verdocs-template-attachments_4.cjs.entry.js → verdocs-template-fields_4.cjs.entry.js} +239 -230
  27. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  28. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
  29. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  30. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  31. package/dist/cjs/verdocs-templates-list.cjs.entry.js +42 -50
  32. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  34. package/dist/collection/collection-manifest.json +1 -0
  35. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +3 -1
  36. package/dist/collection/components/other/ipctest/ipc-test.css +4 -0
  37. package/dist/collection/components/other/ipctest/ipc-test.js +79 -0
  38. package/dist/collection/components/other/ipctest/ipc-test.stories.js +8 -0
  39. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  40. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +7 -1
  41. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +128 -53
  42. package/dist/components/TemplateStore.js +1 -1
  43. package/dist/components/VerdocsEndpoint.js +1 -85
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.js +1 -0
  46. package/dist/components/ipc-test.d.ts +11 -0
  47. package/dist/components/ipc-test.js +142 -0
  48. package/dist/components/verdocs-sign.js +3 -1
  49. package/dist/components/verdocs-template-role-properties2.js +1 -1
  50. package/dist/components/verdocs-template-roles2.js +1 -1
  51. package/dist/components/verdocs-template-sender2.js +1 -1
  52. package/dist/components/verdocs-template-star2.js +1 -1
  53. package/dist/components/verdocs-templates-list.js +46 -51
  54. package/dist/docs.json +157 -4
  55. package/dist/esm/{TemplateStore-17700116.js → TemplateStore-01a9d18f.js} +1 -1
  56. package/dist/esm/{VerdocsEndpoint-e447b318.js → VerdocsEndpoint-d58d5544.js} +1 -85
  57. package/dist/esm/ipc-test.entry.js +33 -0
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/esm/{utils-28ea5af7.js → utils-6412577d.js} +1 -1
  60. package/dist/esm/verdocs-activity-box.entry.js +1 -1
  61. package/dist/esm/verdocs-auth.entry.js +1 -1
  62. package/dist/esm/verdocs-build.entry.js +2 -2
  63. package/dist/esm/{verdocs-button-panel_3.entry.js → verdocs-button-panel_2.entry.js} +3 -19
  64. package/dist/esm/{verdocs-checkbox_4.entry.js → verdocs-checkbox_5.entry.js} +17 -1
  65. package/dist/esm/verdocs-contact-picker.entry.js +2 -2
  66. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  67. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  68. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  69. package/dist/esm/verdocs-envelopes-list.entry.js +2 -2
  70. package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
  71. package/dist/esm/verdocs-field-date.entry.js +1 -1
  72. package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
  73. package/dist/esm/verdocs-field-initial.entry.js +1 -1
  74. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  75. package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
  76. package/dist/esm/verdocs-field-signature.entry.js +1 -1
  77. package/dist/esm/verdocs-field-textarea.entry.js +2 -2
  78. package/dist/esm/verdocs-field-textbox.entry.js +2 -2
  79. package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
  80. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  81. package/dist/esm/verdocs-pagination_3.entry.js +1 -1
  82. package/dist/esm/verdocs-preview.entry.js +3 -3
  83. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  84. package/dist/esm/verdocs-radio-button.entry.js +19 -0
  85. package/dist/esm/verdocs-search.entry.js +1 -1
  86. package/dist/esm/verdocs-send.entry.js +3 -3
  87. package/dist/esm/verdocs-sign.entry.js +5 -3
  88. package/dist/esm/verdocs-template-attachments_2.entry.js +231 -0
  89. package/dist/esm/{verdocs-template-document-page.entry.js → verdocs-template-document-page_2.entry.js} +47 -3
  90. package/dist/esm/{verdocs-template-attachments_4.entry.js → verdocs-template-fields_4.entry.js} +237 -228
  91. package/dist/esm/verdocs-template-name.entry.js +2 -2
  92. package/dist/esm/verdocs-template-reminders.entry.js +2 -2
  93. package/dist/esm/verdocs-template-star.entry.js +2 -2
  94. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  95. package/dist/esm/verdocs-templates-list.entry.js +42 -50
  96. package/dist/esm/verdocs-view.entry.js +2 -2
  97. package/dist/esm/verdocs-web-sdk.js +1 -1
  98. package/dist/esm-es5/{TemplateStore-17700116.js → TemplateStore-01a9d18f.js} +1 -1
  99. package/dist/esm-es5/VerdocsEndpoint-d58d5544.js +1 -0
  100. package/dist/esm-es5/ipc-test.entry.js +1 -0
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/{utils-28ea5af7.js → utils-6412577d.js} +1 -1
  103. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  104. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -0
  107. package/dist/esm-es5/{verdocs-checkbox_4.entry.js → verdocs-checkbox_5.entry.js} +1 -1
  108. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  121. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  125. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  126. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -0
  128. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -0
  132. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
  133. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -0
  134. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  138. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  141. package/dist/types/components/other/ipctest/ipc-test.d.ts +17 -0
  142. package/dist/types/components/other/ipctest/ipc-test.stories.d.ts +4 -0
  143. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +32 -17
  144. package/dist/types/components.d.ts +53 -0
  145. package/dist/verdocs-web-sdk/{p-4ea9eedc.entry.js → p-07dac402.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/{p-6c181a99.system.entry.js → p-07ec8b75.system.entry.js} +1 -1
  147. package/dist/verdocs-web-sdk/{p-153b3888.entry.js → p-088f106d.entry.js} +1 -1
  148. package/dist/verdocs-web-sdk/{p-f0f8c91a.entry.js → p-10b88811.entry.js} +1 -1
  149. package/dist/verdocs-web-sdk/{p-4e335343.system.js → p-13b3dd46.system.js} +1 -1
  150. package/dist/verdocs-web-sdk/{p-b7764fbf.entry.js → p-17d27ba8.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/{p-db748ddf.entry.js → p-1fea7a7e.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-6b37e85a.system.entry.js → p-25332568.system.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/{p-41a34c27.system.entry.js → p-27c654c5.system.entry.js} +1 -1
  154. package/dist/verdocs-web-sdk/{p-57e55966.system.entry.js → p-2a969dc8.system.entry.js} +1 -1
  155. package/dist/verdocs-web-sdk/{p-05b23b9a.system.entry.js → p-2dc36f82.system.entry.js} +1 -1
  156. package/dist/verdocs-web-sdk/{p-6ef5c42f.system.entry.js → p-31aea61d.system.entry.js} +1 -1
  157. package/dist/verdocs-web-sdk/{p-d5eea358.entry.js → p-3a0ba0b8.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/{p-669b845b.system.entry.js → p-3aac3218.system.entry.js} +1 -1
  159. package/dist/verdocs-web-sdk/p-3b1bef0f.system.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/{p-55cd3b39.entry.js → p-3c3664ab.entry.js} +1 -1
  161. package/dist/verdocs-web-sdk/p-3dcf8e41.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/{p-ff71a7ed.system.entry.js → p-400a996a.system.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/p-4422958b.system.js +1 -0
  164. package/dist/verdocs-web-sdk/{p-59e55e05.entry.js → p-453bb85d.entry.js} +1 -1
  165. package/dist/verdocs-web-sdk/{p-9d097bc8.system.entry.js → p-460d2320.system.entry.js} +1 -1
  166. package/dist/verdocs-web-sdk/{p-316e6f16.entry.js → p-47dd8143.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/{p-977dceb3.system.entry.js → p-4a4b097e.system.entry.js} +1 -1
  168. package/dist/verdocs-web-sdk/p-4dc8cc71.system.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/{p-51f09ff0.system.entry.js → p-4edec688.system.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/p-5080cdfc.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/p-54849116.entry.js +1 -0
  172. package/dist/verdocs-web-sdk/{p-0bda34c0.js → p-55af2ceb.js} +1 -1
  173. package/dist/verdocs-web-sdk/{p-b6c642af.system.entry.js → p-5cae759a.system.entry.js} +1 -1
  174. package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
  175. package/dist/verdocs-web-sdk/{p-ef3df424.system.entry.js → p-657dacc4.system.entry.js} +1 -1
  176. package/dist/verdocs-web-sdk/{p-c97a7232.system.js → p-6d2082b7.system.js} +1 -1
  177. package/dist/verdocs-web-sdk/{p-fa7332f2.system.entry.js → p-7297edd7.system.entry.js} +1 -1
  178. package/dist/verdocs-web-sdk/{p-2ca89535.entry.js → p-755e75c1.entry.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-66c250cd.entry.js → p-75da0854.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/p-766f8b54.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/{p-75559986.entry.js → p-7bc548bf.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-2a5678aa.entry.js → p-8638bd27.entry.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-d4550712.system.entry.js → p-87cf940c.system.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-cd4d7848.entry.js → p-887d13dd.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/p-8c4fa7fc.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/{p-a6626ecf.system.entry.js → p-8f370d3a.system.entry.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-065babe0.system.entry.js → p-8fc9f797.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-54654ee0.system.entry.js → p-8fdcf4a9.system.entry.js} +1 -1
  189. package/dist/verdocs-web-sdk/{p-53cec4e6.entry.js → p-9176b478.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/p-a5ce9047.system.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/{p-13135b13.system.entry.js → p-a7013467.system.entry.js} +1 -1
  192. package/dist/verdocs-web-sdk/{p-36995020.entry.js → p-ac1e8dfe.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/p-af048fad.js +1 -0
  194. package/dist/verdocs-web-sdk/{p-a3e2f68f.system.entry.js → p-b394b580.system.entry.js} +1 -1
  195. package/dist/verdocs-web-sdk/{p-e0379271.entry.js → p-b3bb3dbd.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-789424cb.system.entry.js → p-b41338e5.system.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/p-b49e1610.entry.js +1 -0
  198. package/dist/verdocs-web-sdk/{p-3495a410.entry.js → p-b4dee4ca.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-0e5108f1.system.entry.js → p-b6c70f34.system.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/p-b987bad4.system.entry.js +1 -0
  201. package/dist/verdocs-web-sdk/{p-520faa8e.entry.js → p-ba5565d4.entry.js} +1 -1
  202. package/dist/verdocs-web-sdk/p-bc943a21.entry.js +1 -0
  203. package/dist/verdocs-web-sdk/p-c23359af.system.entry.js +1 -0
  204. package/dist/verdocs-web-sdk/{p-f6b176b1.system.entry.js → p-c68cec17.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/p-c8d0324d.system.entry.js +1 -0
  206. package/dist/verdocs-web-sdk/{p-bdea2ff9.entry.js → p-c98bb9f4.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/{p-8d0d4e0c.system.entry.js → p-c9a691bf.system.entry.js} +1 -1
  208. package/dist/verdocs-web-sdk/{p-66d71204.entry.js → p-ccc162ab.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/{p-2db70c48.system.entry.js → p-cfb617a2.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-0d5757a8.entry.js → p-cfdd1d5b.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/{p-b9535c18.entry.js → p-d145cb63.entry.js} +1 -1
  212. package/dist/verdocs-web-sdk/{p-72127c91.entry.js → p-d20e83c7.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/p-d6941876.entry.js +1 -0
  214. package/dist/verdocs-web-sdk/{p-0c85ee4f.system.entry.js → p-d7e29ce9.system.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/{p-546de38b.entry.js → p-dca1d739.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/{p-d5c9930b.entry.js → p-e01dd4e1.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/{p-672ed964.system.entry.js → p-e9200468.system.entry.js} +1 -1
  218. package/dist/verdocs-web-sdk/{p-23414209.system.entry.js → p-ea87070d.system.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-9606946c.entry.js → p-ebe13a66.entry.js} +1 -1
  220. package/dist/verdocs-web-sdk/{p-90a11750.entry.js → p-ecf9aa75.entry.js} +1 -1
  221. package/dist/verdocs-web-sdk/{p-febca9d8.entry.js → p-f164307e.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-74f5031e.entry.js → p-f2057d6b.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-316909a7.system.entry.js → p-f57124fd.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-7254de25.system.entry.js → p-f8940081.system.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-80ead6ca.system.entry.js → p-fac26def.system.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-09546ab7.js → p-fc6ce0d8.js} +1 -1
  227. package/dist/verdocs-web-sdk/p-fea16530.entry.js +1 -0
  228. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  229. package/package.json +1 -1
  230. package/dist/cjs/Roles-9b593b95.js +0 -28
  231. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +0 -241
  232. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -51
  233. package/dist/custom-elements.json +0 -1898
  234. package/dist/esm/Roles-6eb459df.js +0 -24
  235. package/dist/esm/verdocs-radio-button_3.entry.js +0 -235
  236. package/dist/esm/verdocs-toolbar-icon.entry.js +0 -47
  237. package/dist/esm-es5/Roles-6eb459df.js +0 -1
  238. package/dist/esm-es5/VerdocsEndpoint-e447b318.js +0 -1
  239. package/dist/esm-es5/verdocs-button-panel_3.entry.js +0 -1
  240. package/dist/esm-es5/verdocs-radio-button_3.entry.js +0 -1
  241. package/dist/esm-es5/verdocs-template-attachments_4.entry.js +0 -1
  242. package/dist/esm-es5/verdocs-template-document-page.entry.js +0 -1
  243. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-0a86db90.system.entry.js +0 -1
  245. package/dist/verdocs-web-sdk/p-2960c946.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-363b3a93.system.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-56c6e677.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-5a06c069.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-633926d8.entry.js +0 -1
  250. package/dist/verdocs-web-sdk/p-8027431e.js +0 -1
  251. package/dist/verdocs-web-sdk/p-8229e6df.system.js +0 -1
  252. package/dist/verdocs-web-sdk/p-9f6d6545.system.entry.js +0 -1
  253. package/dist/verdocs-web-sdk/p-a3820b2c.entry.js +0 -1
  254. package/dist/verdocs-web-sdk/p-a9f25162.entry.js +0 -1
  255. package/dist/verdocs-web-sdk/p-aadfc04d.system.entry.js +0 -1
  256. package/dist/verdocs-web-sdk/p-b2d8c147.system.entry.js +0 -1
  257. package/dist/verdocs-web-sdk/p-d808a494.system.js +0 -1
  258. package/dist/verdocs-web-sdk/p-e06d9588.js +0 -1
  259. package/dist/verdocs-web-sdk/p-f3ac446d.system.entry.js +0 -1
  260. package/dist/verdocs-web-sdk/p-fdf8bc45.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import './Types.js';
3
- import { V as VerdocsEndpoint, c as canPerformTemplateAction } from './VerdocsEndpoint.js';
3
+ import { V as VerdocsEndpoint, T as TemplateActions } from './VerdocsEndpoint.js';
4
4
  import { l as listTemplates, d as deleteTemplate } from './Templates.js';
5
- import { V as VerdocsToast } from './Toast.js';
5
+ import { i as integerSequence } from './Primitives.js';
6
6
  import { S as SDKError } from './errors.js';
7
7
  import { d as defineCustomElement$a } from './verdocs-button2.js';
8
8
  import { d as defineCustomElement$9 } from './verdocs-dropdown2.js';
@@ -15,7 +15,7 @@ import { d as defineCustomElement$3 } from './verdocs-template-star2.js';
15
15
  import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
16
16
  import { f as format } from './index2.js';
17
17
 
18
- const verdocsTemplatesListCss = "verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}";
18
+ const verdocsTemplatesListCss = "verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}";
19
19
 
20
20
  const GlobeAltIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>`;
21
21
  const LockClosedIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>`;
@@ -49,6 +49,8 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
49
49
  this.__registerHost();
50
50
  this.sdkError = createEvent(this, "sdkError", 7);
51
51
  this.viewTemplate = createEvent(this, "viewTemplate", 7);
52
+ this.signNow = createEvent(this, "signNow", 7);
53
+ this.submittedData = createEvent(this, "submittedData", 7);
52
54
  this.editTemplate = createEvent(this, "editTemplate", 7);
53
55
  this.templateDeleted = createEvent(this, "templateDeleted", 7);
54
56
  this.changeSort = createEvent(this, "changeSort", 7);
@@ -56,24 +58,22 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
56
58
  this.changeStarred = createEvent(this, "changeStarred", 7);
57
59
  this.changeName = createEvent(this, "changeName", 7);
58
60
  this.handleOptionSelected = (option, template) => {
59
- var _a, _b;
61
+ var _a, _b, _c, _d;
60
62
  if (option === 'send') {
61
63
  (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: template });
62
- }
63
- else if (option === 'createlink') {
64
- VerdocsToast('This feature is coming soon!');
64
+ // } else if (option === 'createlink') {
65
+ // VerdocsToast('This feature is coming soon!');
65
66
  }
66
67
  else if (option === 'signnow') {
67
- VerdocsToast('This feature is coming soon!');
68
+ (_b = this.signNow) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, template: template });
68
69
  }
69
70
  else if (option === 'submitted') {
70
- VerdocsToast('This feature is coming soon!');
71
- }
72
- else if (option === 'link') {
73
- VerdocsToast('This feature is coming soon!');
71
+ (_c = this.submittedData) === null || _c === void 0 ? void 0 : _c.emit({ endpoint: this.endpoint, template: template });
72
+ // } else if (option === 'link') {
73
+ // VerdocsToast('This feature is coming soon!');
74
74
  }
75
75
  else if (option === 'edit') {
76
- (_b = this.editTemplate) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, template: template });
76
+ (_d = this.editTemplate) === null || _d === void 0 ? void 0 : _d.emit({ endpoint: this.endpoint, template: template });
77
77
  }
78
78
  else if (option === 'delete') {
79
79
  this.confirmDelete = template;
@@ -84,9 +84,12 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
84
84
  this.starred = 'all';
85
85
  this.sort = 'updated_at';
86
86
  this.name = '';
87
- this.allowedActions = ['send', 'createlink', 'signnow', 'submitted', 'link', 'edit', 'delete'];
87
+ this.allowedActions = ['send', 'submitted', 'link', 'edit', 'delete'];
88
+ this.showPagination = true;
89
+ this.rowsPerPage = 10;
88
90
  this.selectedPage = 0;
89
91
  this.count = 0;
92
+ this.initiallyLoaded = false;
90
93
  this.loading = true;
91
94
  this.confirmDelete = null;
92
95
  this.templates = [];
@@ -103,22 +106,28 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
103
106
  handleNameUpdated() {
104
107
  return this.queryTemplates();
105
108
  }
106
- async componentWillLoad() {
109
+ componentWillLoad() {
107
110
  this.endpoint.loadSession();
108
111
  if (!this.endpoint.session) {
109
112
  console.log('[TEMPLATES] Must be authenticated');
110
113
  return;
111
114
  }
112
- return this.queryTemplates();
115
+ }
116
+ async componentDidLoad() {
117
+ await this.queryTemplates();
118
+ this.initiallyLoaded = true;
113
119
  }
114
120
  async queryTemplates() {
115
121
  var _a, _b, _c;
122
+ console.log('[TEMPLATES] Querying templates');
123
+ this.loading = true;
116
124
  try {
117
125
  let queryParams = {
118
126
  sharing: this.sharing,
119
127
  starred: this.starred,
120
128
  page: this.selectedPage,
121
129
  sort: this.sort,
130
+ rows: this.rowsPerPage,
122
131
  // ascending: this.sort === 'name' || this.sort === 'star_counter',
123
132
  };
124
133
  if (this.name.trim() !== '') {
@@ -134,26 +143,6 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
134
143
  (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
135
144
  }
136
145
  }
137
- // canCreate() {
138
- // return userCanCreateTemplate(this.endpoint.session);
139
- // }
140
- canDelete(summary) {
141
- return canPerformTemplateAction(this.endpoint.session, 'delete', summary);
142
- }
143
- canEdit(summary) {
144
- return canPerformTemplateAction(this.endpoint.session, 'write', summary);
145
- }
146
- canPreview(summary) {
147
- const hasPermission = canPerformTemplateAction(this.endpoint.session, 'read', summary);
148
- // let canPreview;
149
- // const signers = filter(template.roles, {type: 'signer'});
150
- // canPreview = signers && signers.length > 0;
151
- // for (const signer of signers) {
152
- // canPreview = signer['fields'] && signer['fields'].length > 0;
153
- // }
154
- // return hasPermission && canPreview;
155
- return hasPermission;
156
- }
157
146
  deleteTemplate(template) {
158
147
  this.confirmDelete = null;
159
148
  deleteTemplate(this.endpoint, template.id)
@@ -190,39 +179,42 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
190
179
  const dateToShow = this.sort === 'created_at' ? 'created_at' : this.sort === 'updated_at' ? 'updated_at' : 'last_used_at';
191
180
  const date = template[dateToShow];
192
181
  const MENU_OPTIONS = [];
193
- if (this.allowedActions.includes('send')) {
194
- MENU_OPTIONS.push({ label: 'Send', id: 'send', disabled: !this.canPreview(template) });
195
- }
196
- if (this.allowedActions.includes('createlink')) {
197
- MENU_OPTIONS.push({ label: 'Create Link', id: 'createlink', disabled: true });
182
+ if (template.allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('send')) {
183
+ MENU_OPTIONS.push({ label: 'Preview / Send', id: 'send', disabled: !template.allowed_operations.includes(TemplateActions.READ) });
198
184
  }
199
- if (this.allowedActions.includes('createlink')) {
185
+ // if (this.allowedActions.includes('createlink')) {
186
+ // MENU_OPTIONS.push({label: 'Create Link', id: 'createlink', disabled: true});
187
+ // }
188
+ if (template.allowed_operations.includes(TemplateActions.CREATE_PERSONAL) && this.allowedActions.includes('signnow')) {
200
189
  MENU_OPTIONS.push({ label: 'Sign Now', id: 'signnow', disabled: true });
201
190
  }
202
- if (this.allowedActions.includes('submitted')) {
191
+ if (template.allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('submitted')) {
203
192
  MENU_OPTIONS.push({ label: '' });
204
193
  MENU_OPTIONS.push({ label: 'Submissions', id: 'submitted' });
205
194
  }
206
195
  if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
207
196
  MENU_OPTIONS.push({ label: '' });
197
+ // TODO: The preview link used to be just an internal route in the main Web application, but
198
+ // that's not suitable for embeddding. Disabling until this gets re-requested as a feature,
199
+ // in which case we'll want to move this to an API-driven function.
200
+ // if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
201
+ // MENU_OPTIONS.push({label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template)});
202
+ // }
208
203
  if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
209
- MENU_OPTIONS.push({ label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template) });
210
- }
211
- if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
212
- MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !this.canEdit(template) });
204
+ MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !template.allowed_operations.includes(TemplateActions.WRITE) });
213
205
  }
214
206
  if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
215
- MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !this.canDelete(template) });
207
+ MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !template.allowed_operations.includes(TemplateActions.DELETE) });
216
208
  }
217
209
  }
218
210
  return (h("div", { class: "template", onClick: () => {
219
211
  var _a;
220
212
  (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
221
213
  } }, h("div", { class: "inner" }, h("verdocs-template-star", { template: template, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("div", { class: "name" }, template.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon, title: "Usage Counter" }), template.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, dateToShow === 'created_at' && h("span", { innerHTML: CreatedIcon, title: "Created" }), dateToShow === 'updated_at' && h("span", { innerHTML: UpdatedIcon, title: "Last Updated" }), dateToShow === 'last_used_at' && h("span", { innerHTML: LastUsedIcon, title: "Last Used" }), date ? format(new Date(date), 'P') : 'Never'), h("div", { class: "spacer ownership-spacer" }), template.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
222
- }), !this.templates.length ? (h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (h("div", { style: { marginTop: '10px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
214
+ }), !this.initiallyLoaded && (h("div", null, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "template-placeholder" }))))), this.initiallyLoaded && !this.templates.length && h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again."), this.initiallyLoaded && this.templates.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
223
215
  this.selectedPage = e.detail.selectedPage;
224
216
  return this.queryTemplates();
225
- } }))), this.confirmDelete && (h("verdocs-ok-dialog", { heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
217
+ } }))) : (h("div", null)), this.confirmDelete && (h("verdocs-ok-dialog", { heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
226
218
  }
227
219
  static get watchers() { return {
228
220
  "sharing": ["handleSharingUpdated"],
@@ -238,8 +230,11 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
238
230
  "sort": [1537],
239
231
  "name": [1537],
240
232
  "allowedActions": [1040],
241
- "selectedPage": [1538, "selected-page"],
233
+ "showPagination": [4, "show-pagination"],
234
+ "rowsPerPage": [2, "rows-per-page"],
235
+ "selectedPage": [2, "selected-page"],
242
236
  "count": [32],
237
+ "initiallyLoaded": [32],
243
238
  "loading": [32],
244
239
  "confirmDelete": [32],
245
240
  "templates": [32]
package/dist/docs.json CHANGED
@@ -1,11 +1,104 @@
1
1
  {
2
- "timestamp": "2023-08-03T22:36:22",
2
+ "timestamp": "2023-08-04T06:29:30",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.20.0",
6
6
  "typescriptVersion": "4.8.4"
7
7
  },
8
8
  "components": [
9
+ {
10
+ "filePath": "./src/components/other/ipctest/ipc-test.tsx",
11
+ "encapsulation": "none",
12
+ "tag": "ipc-test",
13
+ "docs": "",
14
+ "docsTags": [],
15
+ "usage": {},
16
+ "props": [
17
+ {
18
+ "name": "endpoint",
19
+ "type": "VerdocsEndpoint",
20
+ "mutable": false,
21
+ "reflectToAttr": false,
22
+ "docs": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.",
23
+ "docsTags": [],
24
+ "default": "VerdocsEndpoint.getDefault()",
25
+ "values": [
26
+ {
27
+ "type": "VerdocsEndpoint"
28
+ }
29
+ ],
30
+ "optional": false,
31
+ "required": false
32
+ },
33
+ {
34
+ "name": "templateId",
35
+ "type": "string",
36
+ "mutable": false,
37
+ "attr": "template-id",
38
+ "reflectToAttr": false,
39
+ "docs": "The template ID to edit.",
40
+ "docsTags": [],
41
+ "default": "'e997b94c-9d1b-4c85-8552-dedd24e35550'",
42
+ "values": [
43
+ {
44
+ "type": "string"
45
+ }
46
+ ],
47
+ "optional": false,
48
+ "required": false
49
+ }
50
+ ],
51
+ "methods": [],
52
+ "events": [],
53
+ "listeners": [],
54
+ "styles": [],
55
+ "slots": [],
56
+ "parts": [],
57
+ "dependents": [],
58
+ "dependencies": [
59
+ "verdocs-template-roles",
60
+ "verdocs-template-fields"
61
+ ],
62
+ "dependencyGraph": {
63
+ "ipc-test": [
64
+ "verdocs-template-roles",
65
+ "verdocs-template-fields"
66
+ ],
67
+ "verdocs-template-roles": [
68
+ "verdocs-component-error",
69
+ "verdocs-loader",
70
+ "verdocs-button",
71
+ "verdocs-template-role-properties",
72
+ "verdocs-template-sender"
73
+ ],
74
+ "verdocs-template-role-properties": [
75
+ "verdocs-text-input",
76
+ "verdocs-select-input",
77
+ "verdocs-help-icon",
78
+ "verdocs-checkbox",
79
+ "verdocs-button"
80
+ ],
81
+ "verdocs-text-input": [
82
+ "verdocs-help-icon"
83
+ ],
84
+ "verdocs-template-sender": [
85
+ "verdocs-radio-button",
86
+ "verdocs-help-icon",
87
+ "verdocs-button"
88
+ ],
89
+ "verdocs-template-fields": [
90
+ "verdocs-component-error",
91
+ "verdocs-loader",
92
+ "verdocs-select-input",
93
+ "verdocs-toolbar-icon",
94
+ "verdocs-template-document-page",
95
+ "verdocs-ok-dialog"
96
+ ],
97
+ "verdocs-ok-dialog": [
98
+ "verdocs-button"
99
+ ]
100
+ }
101
+ },
9
102
  {
10
103
  "filePath": "./src/components/envelopes/verdocs-activity-box/verdocs-activity-box.tsx",
11
104
  "encapsulation": "none",
@@ -7521,6 +7614,7 @@
7521
7614
  "slots": [],
7522
7615
  "parts": [],
7523
7616
  "dependents": [
7617
+ "ipc-test",
7524
7618
  "verdocs-build"
7525
7619
  ],
7526
7620
  "dependencies": [
@@ -7543,6 +7637,9 @@
7543
7637
  "verdocs-ok-dialog": [
7544
7638
  "verdocs-button"
7545
7639
  ],
7640
+ "ipc-test": [
7641
+ "verdocs-template-fields"
7642
+ ],
7546
7643
  "verdocs-build": [
7547
7644
  "verdocs-template-fields"
7548
7645
  ]
@@ -7964,6 +8061,7 @@
7964
8061
  "slots": [],
7965
8062
  "parts": [],
7966
8063
  "dependents": [
8064
+ "ipc-test",
7967
8065
  "verdocs-build"
7968
8066
  ],
7969
8067
  "dependencies": [
@@ -7996,6 +8094,9 @@
7996
8094
  "verdocs-help-icon",
7997
8095
  "verdocs-button"
7998
8096
  ],
8097
+ "ipc-test": [
8098
+ "verdocs-template-roles"
8099
+ ],
7999
8100
  "verdocs-build": [
8000
8101
  "verdocs-template-roles"
8001
8102
  ]
@@ -8326,7 +8427,7 @@
8326
8427
  "reflectToAttr": false,
8327
8428
  "docs": "Override the If set, filter templates by the specified name.",
8328
8429
  "docsTags": [],
8329
- "default": "['send', 'createlink', 'signnow', 'submitted', 'link', 'edit', 'delete']",
8430
+ "default": "['send', 'submitted', 'link', 'edit', 'delete']",
8330
8431
  "values": [
8331
8432
  {
8332
8433
  "type": "TAllowedTemplateAction[]"
@@ -8368,12 +8469,29 @@
8368
8469
  "optional": false,
8369
8470
  "required": false
8370
8471
  },
8472
+ {
8473
+ "name": "rowsPerPage",
8474
+ "type": "number",
8475
+ "mutable": false,
8476
+ "attr": "rows-per-page",
8477
+ "reflectToAttr": false,
8478
+ "docs": "The number of rows to display per page.",
8479
+ "docsTags": [],
8480
+ "default": "10",
8481
+ "values": [
8482
+ {
8483
+ "type": "number"
8484
+ }
8485
+ ],
8486
+ "optional": false,
8487
+ "required": false
8488
+ },
8371
8489
  {
8372
8490
  "name": "selectedPage",
8373
8491
  "type": "number",
8374
- "mutable": true,
8492
+ "mutable": false,
8375
8493
  "attr": "selected-page",
8376
- "reflectToAttr": true,
8494
+ "reflectToAttr": false,
8377
8495
  "docs": "The initial page number to select. Pagination is internally controlled but may be overriden by the\nhost applicaiton.",
8378
8496
  "docsTags": [],
8379
8497
  "default": "0",
@@ -8415,6 +8533,23 @@
8415
8533
  "optional": true,
8416
8534
  "required": false
8417
8535
  },
8536
+ {
8537
+ "name": "showPagination",
8538
+ "type": "boolean",
8539
+ "mutable": false,
8540
+ "attr": "show-pagination",
8541
+ "reflectToAttr": false,
8542
+ "docs": "Whether or not pagination should be enabled.",
8543
+ "docsTags": [],
8544
+ "default": "true",
8545
+ "values": [
8546
+ {
8547
+ "type": "boolean"
8548
+ }
8549
+ ],
8550
+ "optional": false,
8551
+ "required": false
8552
+ },
8418
8553
  {
8419
8554
  "name": "sort",
8420
8555
  "type": "\"counter\" | \"created_at\" | \"last_used_at\" | \"name\" | \"star_counter\" | \"updated_at\"",
@@ -8536,6 +8671,24 @@
8536
8671
  "docs": "Event fired if an error occurs. The event details will contain information about the error. Most errors will\nterminate the process, and the calling application should correct the condition and re-render the component.",
8537
8672
  "docsTags": []
8538
8673
  },
8674
+ {
8675
+ "event": "signNow",
8676
+ "detail": "{ endpoint: VerdocsEndpoint; template: ITemplate; }",
8677
+ "bubbles": true,
8678
+ "cancelable": true,
8679
+ "composed": true,
8680
+ "docs": "Event fired when the user clicks to sign a template now.",
8681
+ "docsTags": []
8682
+ },
8683
+ {
8684
+ "event": "submittedData",
8685
+ "detail": "{ endpoint: VerdocsEndpoint; template: ITemplate; }",
8686
+ "bubbles": true,
8687
+ "cancelable": true,
8688
+ "composed": true,
8689
+ "docs": "Event fired when the user clicks to sign a template now.",
8690
+ "docsTags": []
8691
+ },
8539
8692
  {
8540
8693
  "event": "templateDeleted",
8541
8694
  "detail": "{ endpoint: VerdocsEndpoint; template: ITemplate; }",
@@ -1,6 +1,6 @@
1
1
  import { c as createStore } from './index-38d7bc0b.js';
2
2
  import { g as getTemplate } from './Templates-f90883f7.js';
3
- import { T as TemplateSenderTypes } from './VerdocsEndpoint-e447b318.js';
3
+ import { T as TemplateSenderTypes } from './VerdocsEndpoint-d58d5544.js';
4
4
 
5
5
  const createTemplateStore = (templateId) => {
6
6
  const now = new Date().toISOString();
@@ -20,90 +20,6 @@ var TemplatePermissions;
20
20
  TemplatePermissions["TEMPLATE_MEMBER_DELETE"] = "template:member:delete";
21
21
  TemplatePermissions["TEMPLATE_MEMBER_VISIBILITY"] = "template:member:visibility";
22
22
  })(TemplatePermissions || (TemplatePermissions = {}));
23
- var canPerformTemplateAction = function (session, action, template) {
24
- var _a, _b;
25
- if (!template && !action.includes('create')) {
26
- return { canPerform: false, message: 'Missing required template object' };
27
- }
28
- // We use BOGUS here to force the option-chain in things like template?.profile_id to NOT match profile?.profile_id because if both
29
- // were undefined, they would actually match.
30
- var profile_id = (session === null || session === void 0 ? void 0 : session.profile_id) || 'BOGUS';
31
- var organization_id = (session === null || session === void 0 ? void 0 : session.organization_id) || 'BOGUS';
32
- if (!profile_id) {
33
- return { canPerform: false, message: 'Active session required' };
34
- }
35
- var isCreator = (template === null || template === void 0 ? void 0 : template.profile_id) === profile_id;
36
- var isSameOrg = (template === null || template === void 0 ? void 0 : template.organization_id) === organization_id;
37
- var isPersonal = (_a = template === null || template === void 0 ? void 0 : template.is_personal) !== null && _a !== void 0 ? _a : false;
38
- var isPublic = (_b = template === null || template === void 0 ? void 0 : template.is_public) !== null && _b !== void 0 ? _b : false;
39
- var permissionsRequired = [];
40
- switch (action) {
41
- case 'create_personal':
42
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_PERSONAL);
43
- break;
44
- case 'create_org':
45
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_ORG);
46
- break;
47
- case 'create_public':
48
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_PUBLIC);
49
- break;
50
- case 'read':
51
- if (!isCreator) {
52
- if ((!isPersonal && isSameOrg) || !isPublic) {
53
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_READ);
54
- }
55
- }
56
- break;
57
- case 'write':
58
- if (!isCreator) {
59
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_READ);
60
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_WRITE);
61
- }
62
- break;
63
- case 'change_visibility_personal':
64
- if (isCreator) {
65
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_PERSONAL);
66
- }
67
- else {
68
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_VISIBILITY);
69
- }
70
- break;
71
- case 'change_visibility_org':
72
- if (isCreator) {
73
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_ORG);
74
- }
75
- else {
76
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_VISIBILITY);
77
- }
78
- break;
79
- case 'change_visibility_public':
80
- if (isCreator) {
81
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_CREATE_PUBLIC);
82
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_VISIBILITY);
83
- }
84
- else {
85
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_VISIBILITY);
86
- }
87
- break;
88
- case 'delete':
89
- if (isCreator) {
90
- permissionsRequired.push(TemplatePermissions.TEMPLATE_CREATOR_DELETE);
91
- }
92
- else {
93
- permissionsRequired.push(TemplatePermissions.TEMPLATE_MEMBER_DELETE);
94
- }
95
- break;
96
- default:
97
- return { canPerform: false, message: 'Action is not defined' };
98
- }
99
- if (hasRequiredPermissions(session, permissionsRequired)) {
100
- return { canPerform: true, message: '' };
101
- }
102
- return { canPerform: false, message: "Insufficient access to perform '".concat(action, "'. Needed permissions: ").concat(permissionsRequired.toString()) };
103
- };
104
- var hasRequiredPermissions = function (session, permissions) {
105
- return permissions.every(function (perm) { return ((session === null || session === void 0 ? void 0 : session.permissions) || []).includes(perm); });
106
- };
107
23
 
108
24
  var TemplateSenderTypes;
109
25
  (function (TemplateSenderTypes) {
@@ -4086,4 +4002,4 @@ var VerdocsEndpoint = /** @class */ (function () {
4086
4002
  return VerdocsEndpoint;
4087
4003
  }());
4088
4004
 
4089
- export { TemplateSenderTypes as T, VerdocsEndpoint as V, canPerformTemplateAction as c };
4005
+ export { TemplateSenderTypes as T, VerdocsEndpoint as V, TemplateActions as a };
@@ -0,0 +1,33 @@
1
+ import { r as registerInstance, h, H as Host } from './index-151c0874.js';
2
+ import './Types-5f31149e.js';
3
+ import { V as VerdocsEndpoint } from './VerdocsEndpoint-d58d5544.js';
4
+ import { g as getTemplateStore } from './TemplateStore-01a9d18f.js';
5
+ import './index-38d7bc0b.js';
6
+ import './Templates-f90883f7.js';
7
+
8
+ const ipcTestCss = "ipc-test{max-width:800px;display:block}";
9
+
10
+ const IpcTest = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.store = null;
14
+ this.endpoint = VerdocsEndpoint.getDefault();
15
+ this.templateId = 'e997b94c-9d1b-4c85-8552-dedd24e35550';
16
+ }
17
+ async componentWillLoad() {
18
+ try {
19
+ this.endpoint.loadSession();
20
+ this.store = await getTemplateStore(this.endpoint, this.templateId, false);
21
+ }
22
+ catch (e) {
23
+ console.log('[TEMPLATE VISIBILITY] Error loading template', e);
24
+ }
25
+ }
26
+ render() {
27
+ console.log('[IPC] Rendering');
28
+ return (h(Host, null, h("div", null, h("pre", null, h("code", null, JSON.stringify(this.store.state, null, 2)))), h("verdocs-template-roles", { templateId: this.templateId }), h("verdocs-template-fields", { templateId: this.templateId })));
29
+ }
30
+ };
31
+ IpcTest.style = ipcTestCss;
32
+
33
+ export { IpcTest as ipc_test };