@verdocs/web-sdk 4.0.7 → 4.0.9

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 (283) hide show
  1. package/dist/cjs/index-cfdfab36.js +4 -4
  2. package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
  3. package/dist/cjs/verdocs-button_3.cjs.entry.js +3 -3
  4. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +2 -2
  5. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +15 -19280
  10. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  11. package/dist/cjs/verdocs-field-attachment_14.cjs.entry.js +4 -4
  12. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +3 -2
  13. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-organization-card.cjs.entry.js +19275 -5
  16. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-preview_10.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +9 -9
  20. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  24. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +1 -1
  28. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +8 -1
  29. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +6 -2
  30. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +17 -1
  31. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +5 -1
  32. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +15 -3
  33. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +6 -1
  34. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +2 -2
  35. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  36. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +3 -2
  37. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  38. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  39. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  40. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +2 -2
  41. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  42. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  43. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  44. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  45. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
  46. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  47. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  48. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  49. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  50. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  51. package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
  52. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +2 -2
  53. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  54. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  55. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  56. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  57. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  58. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  59. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  60. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  61. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  62. package/dist/components/EnvelopeStore.js +1 -1
  63. package/dist/components/TemplateFieldStore.js +2 -2
  64. package/dist/components/TemplateRoleStore.js +1 -1
  65. package/dist/components/TemplateStore.js +2 -2
  66. package/dist/components/Types.js +1 -1
  67. package/dist/components/index.d.ts +12 -0
  68. package/dist/components/index.js +171 -0
  69. package/dist/components/index2.js +2 -193
  70. package/dist/components/index4.js +193 -2
  71. package/dist/components/utils.js +3 -3
  72. package/dist/components/verdocs-activity-box.js +0 -1
  73. package/dist/components/verdocs-auth.js +0 -1
  74. package/dist/components/verdocs-build.js +0 -1
  75. package/dist/components/verdocs-button-panel.js +2 -3
  76. package/dist/components/verdocs-button2.js +1 -2
  77. package/dist/components/verdocs-checkbox2.js +0 -1
  78. package/dist/components/verdocs-component-error2.js +0 -1
  79. package/dist/components/verdocs-contact-picker2.js +0 -1
  80. package/dist/components/verdocs-dialog2.js +1 -2
  81. package/dist/components/verdocs-dropdown2.js +1 -2
  82. package/dist/components/verdocs-envelope-document-page2.js +1 -2
  83. package/dist/components/verdocs-envelope-recipient-link2.js +0 -1
  84. package/dist/components/verdocs-envelope-recipient-summary2.js +0 -1
  85. package/dist/components/verdocs-envelope-sidebar.js +2 -3
  86. package/dist/components/verdocs-envelopes-list.js +6 -7
  87. package/dist/components/verdocs-field-attachment2.js +0 -1
  88. package/dist/components/verdocs-field-checkbox2.js +1 -2
  89. package/dist/components/verdocs-field-date2.js +3 -4
  90. package/dist/components/verdocs-field-dropdown2.js +1 -2
  91. package/dist/components/verdocs-field-initial2.js +1 -2
  92. package/dist/components/verdocs-field-payment.js +0 -1
  93. package/dist/components/verdocs-field-radio-button2.js +1 -2
  94. package/dist/components/verdocs-field-signature2.js +1 -2
  95. package/dist/components/verdocs-field-textarea2.js +1 -2
  96. package/dist/components/verdocs-field-textbox2.js +1 -2
  97. package/dist/components/verdocs-field-timestamp2.js +3 -4
  98. package/dist/components/verdocs-file-chooser2.js +1 -2
  99. package/dist/components/verdocs-floating-menu.js +0 -1
  100. package/dist/components/verdocs-help-icon2.js +0 -1
  101. package/dist/components/verdocs-initial-dialog2.js +1 -2
  102. package/dist/components/verdocs-kba-dialog.js +2 -3
  103. package/dist/components/verdocs-loader2.js +0 -1
  104. package/dist/components/verdocs-ok-dialog2.js +1 -2
  105. package/dist/components/verdocs-organization-card.js +8 -4
  106. package/dist/components/verdocs-pagination2.js +1 -2
  107. package/dist/components/verdocs-portal2.js +1 -2
  108. package/dist/components/verdocs-preview2.js +0 -1
  109. package/dist/components/verdocs-progress-bar2.js +2 -2
  110. package/dist/components/verdocs-quick-filter2.js +1 -2
  111. package/dist/components/verdocs-quick-functions2.js +1 -2
  112. package/dist/components/verdocs-radio-button2.js +1 -2
  113. package/dist/components/verdocs-search-box2.js +0 -1
  114. package/dist/components/verdocs-search-tabs.js +1 -2
  115. package/dist/components/verdocs-search.js +1 -2
  116. package/dist/components/verdocs-select-input2.js +1 -2
  117. package/dist/components/verdocs-send2.js +2 -3
  118. package/dist/components/verdocs-settings-api-keys2.js +0 -1
  119. package/dist/components/verdocs-settings-members2.js +1 -2
  120. package/dist/components/verdocs-settings-organization2.js +0 -1
  121. package/dist/components/verdocs-settings-profile2.js +0 -1
  122. package/dist/components/verdocs-settings.js +0 -1
  123. package/dist/components/verdocs-sign.js +2 -3
  124. package/dist/components/verdocs-signature-dialog2.js +1 -2
  125. package/dist/components/verdocs-spinner2.js +1 -2
  126. package/dist/components/verdocs-status-indicator2.js +2 -3
  127. package/dist/components/verdocs-table2.js +0 -1
  128. package/dist/components/verdocs-tabs2.js +0 -1
  129. package/dist/components/verdocs-template-attachments2.js +0 -1
  130. package/dist/components/verdocs-template-build-tabs2.js +0 -1
  131. package/dist/components/verdocs-template-card.js +1 -2
  132. package/dist/components/verdocs-template-create2.js +0 -1
  133. package/dist/components/verdocs-template-document-page2.js +2 -3
  134. package/dist/components/verdocs-template-field-properties2.js +0 -1
  135. package/dist/components/verdocs-template-fields2.js +1 -2
  136. package/dist/components/verdocs-template-name2.js +0 -1
  137. package/dist/components/verdocs-template-reminders2.js +0 -1
  138. package/dist/components/verdocs-template-role-properties2.js +7 -8
  139. package/dist/components/verdocs-template-roles2.js +0 -1
  140. package/dist/components/verdocs-template-sender2.js +1 -2
  141. package/dist/components/verdocs-template-star2.js +1 -2
  142. package/dist/components/verdocs-template-tags.js +1 -2
  143. package/dist/components/verdocs-template-visibility2.js +0 -1
  144. package/dist/components/verdocs-templates-list.js +1 -2
  145. package/dist/components/verdocs-text-input2.js +2 -3
  146. package/dist/components/verdocs-toggle-button2.js +1 -2
  147. package/dist/components/verdocs-toggle.js +0 -1
  148. package/dist/components/verdocs-toolbar-icon2.js +1 -2
  149. package/dist/components/verdocs-upload-dialog2.js +1 -2
  150. package/dist/components/verdocs-view2.js +0 -1
  151. package/dist/custom-elements.json +2134 -0
  152. package/dist/esm/index-b89cf6a4.js +4 -4
  153. package/dist/esm/verdocs-button-panel.entry.js +2 -2
  154. package/dist/esm/verdocs-button_3.entry.js +3 -3
  155. package/dist/esm/verdocs-checkbox_5.entry.js +2 -2
  156. package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
  157. package/dist/esm/verdocs-dialog_2.entry.js +1 -1
  158. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  159. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  160. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -19266
  161. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  162. package/dist/esm/verdocs-field-attachment_14.entry.js +4 -4
  163. package/dist/esm/verdocs-file-chooser_2.entry.js +3 -2
  164. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  165. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  166. package/dist/esm/verdocs-organization-card.entry.js +19272 -2
  167. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  168. package/dist/esm/verdocs-preview_10.entry.js +2 -2
  169. package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
  170. package/dist/esm/verdocs-radio-button_3.entry.js +9 -9
  171. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  172. package/dist/esm/verdocs-search.entry.js +1 -1
  173. package/dist/esm/verdocs-spinner.entry.js +1 -1
  174. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  175. package/dist/esm/verdocs-template-card.entry.js +1 -1
  176. package/dist/esm/verdocs-template-star.entry.js +1 -1
  177. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  178. package/dist/esm/verdocs-toolbar-icon.entry.js +1 -1
  179. package/dist/esm-es5/index-b89cf6a4.js +1 -1
  180. package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  186. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-field-attachment_14.entry.js +1 -1
  190. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  191. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  192. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  193. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  194. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  195. package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
  196. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
  197. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  198. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  199. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  200. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  201. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  202. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  203. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  204. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  205. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +1 -1
  206. package/{loader → dist/loader}/cdn.js +1 -1
  207. package/{loader → dist/loader}/index.cjs.js +1 -1
  208. package/{loader → dist/loader}/index.d.ts +1 -1
  209. package/dist/loader/index.es2017.js +2 -0
  210. package/{loader → dist/loader}/index.js +2 -2
  211. package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +7 -0
  212. package/dist/types/components/controls/verdocs-button-panel/verdocs-button-panel.d.ts +4 -0
  213. package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +16 -0
  214. package/dist/types/components/controls/verdocs-file-chooser/verdocs-file-chooser.d.ts +4 -0
  215. package/dist/types/components/controls/verdocs-pagination/verdocs-pagination.d.ts +1 -1
  216. package/dist/types/components/controls/verdocs-progress-bar/verdocs-progress-bar.d.ts +1 -1
  217. package/dist/types/components.d.ts +124 -8
  218. package/dist/verdocs-web-sdk/{p-b355111d.entry.js → p-0003dac3.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-fa51066b.entry.js → p-039c572c.entry.js} +1 -1
  220. package/dist/verdocs-web-sdk/p-0ac52131.system.entry.js +1 -0
  221. package/dist/verdocs-web-sdk/{p-3ae988e6.entry.js → p-0bd91b17.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-e26e9907.system.entry.js → p-164d9eb4.system.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-fb3afee2.system.entry.js → p-165bbc34.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-b661c95f.system.entry.js → p-192fe783.system.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-9f7a6ff6.entry.js → p-216757ff.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
  227. package/dist/verdocs-web-sdk/{p-a396eee6.entry.js → p-3c3570cc.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/{p-5bc622c5.entry.js → p-50035423.entry.js} +1 -1
  229. package/dist/verdocs-web-sdk/{p-0191eac7.system.entry.js → p-5714caa0.system.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-ba19b1d8.system.entry.js → p-5727dd92.system.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-0f5dc1c5.system.entry.js → p-5f8341f5.system.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/{p-eeece233.entry.js → p-65d71829.entry.js} +1 -1
  233. package/dist/verdocs-web-sdk/{p-dee3aeec.entry.js → p-6a88d98b.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-9746816b.system.entry.js → p-6cd31085.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-32e396c5.system.entry.js → p-6f1df8e8.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-3415ddee.system.entry.js → p-71a93045.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/p-756791df.system.entry.js +1 -0
  238. package/dist/verdocs-web-sdk/{p-503072b6.entry.js → p-780c095e.entry.js} +1 -1
  239. package/dist/verdocs-web-sdk/{p-832bc1b5.entry.js → p-79407dd8.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/{p-7602d431.entry.js → p-794109d4.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/{p-846ee5dd.entry.js → p-79a5e9a6.entry.js} +1 -1
  242. package/dist/verdocs-web-sdk/{p-75f98b48.system.entry.js → p-79cef953.system.entry.js} +1 -1
  243. package/dist/verdocs-web-sdk/{p-1e6cecc0.entry.js → p-7a9b4f83.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-854a3caa.entry.js → p-7ab60efa.entry.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-bd9f7023.system.entry.js → p-819187c7.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/p-819fb18d.entry.js +1 -0
  247. package/dist/verdocs-web-sdk/{p-b12f1302.entry.js → p-82fbf5b5.entry.js} +1 -1
  248. package/dist/verdocs-web-sdk/p-83d0f5e1.entry.js +1 -0
  249. package/dist/verdocs-web-sdk/{p-c327f3e6.system.entry.js → p-8b5d40b6.system.entry.js} +1 -1
  250. package/dist/verdocs-web-sdk/{p-2cc1724f.entry.js → p-8fbf27ec.entry.js} +1 -1
  251. package/dist/verdocs-web-sdk/p-907bf2f3.entry.js +1 -0
  252. package/dist/verdocs-web-sdk/{p-3d9d0c2e.system.entry.js → p-943c7b8f.system.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/{p-7a708333.system.entry.js → p-95e2ff59.system.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/{p-0017dee2.system.entry.js → p-99c29b9c.system.entry.js} +1 -1
  255. package/dist/verdocs-web-sdk/{p-0664e011.system.entry.js → p-a164376d.system.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/{p-e504ebcd.entry.js → p-a88760cd.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/{p-7db995b0.system.entry.js → p-aaa5c11a.system.entry.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-bca3887c.system.entry.js → p-ac014bc9.system.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/{p-9a780e51.system.entry.js → p-ae6a23ba.system.entry.js} +1 -1
  260. package/dist/verdocs-web-sdk/{p-c3abfbb5.system.entry.js → p-b259c449.system.entry.js} +1 -1
  261. package/dist/verdocs-web-sdk/{p-8eed20fe.entry.js → p-c244e090.entry.js} +1 -1
  262. package/dist/verdocs-web-sdk/{p-235d82f0.system.entry.js → p-c6645da7.system.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-8a0fd8b4.system.entry.js → p-ca71117e.system.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/{p-fd064f80.entry.js → p-cdb8b832.entry.js} +1 -1
  265. package/dist/verdocs-web-sdk/{p-656ba4ba.system.entry.js → p-da9d0886.system.entry.js} +1 -1
  266. package/dist/verdocs-web-sdk/p-db6a7e39.entry.js +1 -0
  267. package/dist/verdocs-web-sdk/p-db9ef2cc.entry.js +1 -0
  268. package/dist/verdocs-web-sdk/{p-0f12fb66.entry.js → p-ea798c11.entry.js} +1 -1
  269. package/dist/verdocs-web-sdk/{p-817b0210.entry.js → p-eb86419b.entry.js} +1 -1
  270. package/dist/verdocs-web-sdk/{p-bf31565b.system.entry.js → p-ecfe6d7e.system.entry.js} +1 -1
  271. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  272. package/package.json +7 -6
  273. package/dist/docs.d.ts +0 -435
  274. package/dist/docs.json +0 -15193
  275. package/dist/verdocs-web-sdk/p-294fd56c.entry.js +0 -1
  276. package/dist/verdocs-web-sdk/p-5cc3dcb2.entry.js +0 -1
  277. package/dist/verdocs-web-sdk/p-69ea5cb9.system.entry.js +0 -1
  278. package/dist/verdocs-web-sdk/p-77fe89f5.system.entry.js +0 -1
  279. package/dist/verdocs-web-sdk/p-b952113a.entry.js +0 -1
  280. package/dist/verdocs-web-sdk/p-c7d2e9c4.entry.js +0 -1
  281. package/dist/verdocs-web-sdk/p-ed863acf.entry.js +0 -1
  282. package/loader/index.es2017.js +0 -2
  283. /package/{loader → dist/loader}/package.json +0 -0
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";var verdocsTemplateCardCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCardStyle0=verdocsTemplateCardCss;var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>';var VerdocsTemplateCard=function(){function e(e){registerInstance(this,e);this.template=undefined}e.prototype.render=function(){var e,a,o,c;return h(Host,{key:"8c1e1c635b1baa655956acdb25c0dadf7aa7fb37"},h("span",{key:"27f70562114c4b477a39d2c592ac970958308b6a",class:"name"},this.template.name),h("span",{key:"e7d9da9cef9ead160a65a4cee49f030d52b20eb3",class:"org-name"},((e=this.template.organization)===null||e===void 0?void 0:e.name)||"Public"),h("hr",{key:"ae53a4cb7e75c6b2af578e2518b601e742aecfb8"}),h("div",{key:"f493a7d3641fe90d6bf35649664f76b5fc1ee3d3",class:"controls"},h("div",{key:"f0ef5225ff60e056166eede4ba69d4999c1a9887",class:"control"},h("span",{key:"5f3f45383a81584741ee04b1fce6b4720bab9063",class:"icon",innerHTML:StarIcon}),h("span",{key:"9faf96a64292b6529e29186a4bd1e12d9ad3b42b",class:"value"},this.template.star_counter)),h("div",{key:"2b605818b05ddf5ea9c3ac28f1bad3d0c8a3e3fb",class:"control secondary"},h("span",{key:"c12a8f975614144c72060cf9213a7e8081636602",class:"icon",innerHTML:PagesIcon}),h("span",{key:"53dd14ec4e8c0c57bbff3866901d10baa61abc31",class:"value"},((c=(o=(a=this.template)===null||a===void 0?void 0:a.documents)===null||o===void 0?void 0:o[0])===null||c===void 0?void 0:c.pages)||1)),h("div",{key:"c2e72a02dcb918fe595f2fd7228728bd29b1c816",class:"control secondary"},h("span",{key:"9ed65ee6703d3db204c7f9619884615d3595f9f2",class:"icon",innerHTML:EmailIcon}),h("span",{key:"805565cdc082e8d76e2dd2db98aeede1eee9810f",class:"value"},this.template.counter)),h("span",{key:"8914f5b5d9d2395bd60f7fded9d58b4c48f85100",class:"additional-controls",innerHTML:ActionsIcon})))};return e}();VerdocsTemplateCard.style=VerdocsTemplateCardStyle0;export{VerdocsTemplateCard as verdocs_template_card};
1
+ import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";var verdocsTemplateCardCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCardStyle0=verdocsTemplateCardCss;var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>';var VerdocsTemplateCard=function(){function e(e){registerInstance(this,e);this.template=undefined}e.prototype.render=function(){var e,a,o,c;return h(Host,{key:"3ef4b7a60f214bc1b4301f82c4d6c0c43cb31c1c"},h("span",{key:"5da8ee7013a901cfd37bde9319f2efa68d08d6f6",class:"name"},this.template.name),h("span",{key:"0e27a427f7575435bc09e98408cb8ebfd20f2221",class:"org-name"},((e=this.template.organization)===null||e===void 0?void 0:e.name)||"Public"),h("hr",{key:"3471951b3a1aae2b6e753f7eaf14bb44b5ec9270"}),h("div",{key:"eb4f5304de241f9e7ff0a558591d1a3caca8b29f",class:"controls"},h("div",{key:"3d913d458116470de9abc5f88234bb4ed57e561e",class:"control"},h("span",{key:"5dbfeb4e3c103b49ce9c6d54b5249af8b5b16086",class:"icon",innerHTML:StarIcon}),h("span",{key:"ca84ade8a0d54ab96bdee35c63b03e34ab893257",class:"value"},this.template.star_counter)),h("div",{key:"01385ff24ea0de2948b3ede9fbf1058f92ab5c7f",class:"control secondary"},h("span",{key:"907331cb5970739199c2b319b18f17f9ce98bb93",class:"icon",innerHTML:PagesIcon}),h("span",{key:"9120a25679b0f9bf7a89a77b76f9c253d66df2c9",class:"value"},((c=(o=(a=this.template)===null||a===void 0?void 0:a.documents)===null||o===void 0?void 0:o[0])===null||c===void 0?void 0:c.pages)||1)),h("div",{key:"935459e3076e01cbbd2af34b2515e10722672799",class:"control secondary"},h("span",{key:"1db1cc5176095a2d5646112a1d8aafc66b6e8772",class:"icon",innerHTML:EmailIcon}),h("span",{key:"a66c84bfb81ac9ca2608a2dd35c28a707d3e7956",class:"value"},this.template.counter)),h("span",{key:"0f9a72ba9ccc5c8c68321df12d0fdb489a25e4ac",class:"additional-controls",innerHTML:ActionsIcon})))};return e}();VerdocsTemplateCard.style=VerdocsTemplateCardStyle0;export{VerdocsTemplateCard as verdocs_template_card};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function i(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):a(t.value).then(i,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-b89cf6a4.js";import{VerdocsEndpoint,toggleStar}from"@verdocs/js-sdk";var verdocsTemplateStarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';var VerdocsTemplateStarStyle0=verdocsTemplateStarCss;var OutlineStarIcon='<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="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>';var SolidStarIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>';var VerdocsTemplateStar=function(){function t(t){registerInstance(this,t);this.starChange=createEvent(this,"starChange",7);this.sdkError=createEvent(this,"sdkError",7);this.endpoint=VerdocsEndpoint.getDefault();this.template=undefined;this.updating=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return[2]}return[2]}))}))};t.prototype.toggle=function(t){var e=this;t.stopPropagation();this.updating=true;toggleStar(VerdocsEndpoint.getDefault(),this.template.id).then((function(t){e.updating=false;e.template.star_counter=t.star_counter;e.starChange.emit({templateId:e.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((function(t){e.updating=false;console.log("[STAR] Error toggling template star",t.message);e.sdkError.emit(t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"0bfc2a29037c8753d08852eb5b0d0e7ccae821fc"},h("div",{key:"16441206c390f010d43fddf52df556f503f2309b",class:"star ".concat(this.updating?"updating":""),innerHTML:this.template.star_counter?SolidStarIcon:OutlineStarIcon,onClick:function(e){return t.toggle(e)}}),h("div",{key:"0b7ed0bba53a2e243c47195efcb09934d056d479",class:"count"},this.template.star_counter||"--"))};return t}();VerdocsTemplateStar.style=VerdocsTemplateStarStyle0;export{VerdocsTemplateStar as verdocs_template_star};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function i(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):a(t.value).then(i,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-b89cf6a4.js";import{VerdocsEndpoint,toggleStar}from"@verdocs/js-sdk";var verdocsTemplateStarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';var VerdocsTemplateStarStyle0=verdocsTemplateStarCss;var OutlineStarIcon='<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="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>';var SolidStarIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>';var VerdocsTemplateStar=function(){function t(t){registerInstance(this,t);this.starChange=createEvent(this,"starChange",7);this.sdkError=createEvent(this,"sdkError",7);this.endpoint=VerdocsEndpoint.getDefault();this.template=undefined;this.updating=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return[2]}return[2]}))}))};t.prototype.toggle=function(t){var e=this;t.stopPropagation();this.updating=true;toggleStar(VerdocsEndpoint.getDefault(),this.template.id).then((function(t){e.updating=false;e.template.star_counter=t.star_counter;e.starChange.emit({templateId:e.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((function(t){e.updating=false;console.log("[STAR] Error toggling template star",t.message);e.sdkError.emit(t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"a3b6ca54b4549954355f9061b871489243432da7"},h("div",{key:"abcfec7a6fb4d928b3bc7080cbe49eb299cb56f9",class:"star ".concat(this.updating?"updating":""),innerHTML:this.template.star_counter?SolidStarIcon:OutlineStarIcon,onClick:function(e){return t.toggle(e)}}),h("div",{key:"a36087cb85065e3cf888ec8c8ef6fa88f4b3a2e9",class:"count"},this.template.star_counter||"--"))};return t}();VerdocsTemplateStar.style=VerdocsTemplateStarStyle0;export{VerdocsTemplateStar as verdocs_template_star};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";var verdocsTemplateTagsCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTagsStyle0=verdocsTemplateTagsCss;var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e);this.tags=undefined}e.prototype.render=function(){var e;return h(Host,{key:"7926f67d015abdbf2fd62f970974757df81a846b"},(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=VerdocsTemplateTagsStyle0;export{VerdocsTemplateTags as verdocs_template_tags};
1
+ import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";var verdocsTemplateTagsCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTagsStyle0=verdocsTemplateTagsCss;var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e);this.tags=undefined}e.prototype.render=function(){var e;return h(Host,{key:"b98c9a6fdcf66d4a7f779a7022f6b16cb7eef987"},(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=VerdocsTemplateTagsStyle0;export{VerdocsTemplateTags as verdocs_template_tags};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";var verdocsToolbarIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var VerdocsToolbarIconStyle0=verdocsToolbarIconCss;var VerdocsToolbarIcon=function(){function o(o){registerInstance(this,o);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}o.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};o.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};o.prototype.show=function(){var o,t;(o=this.tooltip)===null||o===void 0?void 0:o.setAttribute("data-show","");(t=this.popperInstance)===null||t===void 0?void 0:t.update().catch((function(){}))};o.prototype.hide=function(){var o;(o=this.tooltip)===null||o===void 0?void 0:o.removeAttribute("data-show")};o.prototype.render=function(){var o=this;return h(Host,{key:"c12c9e2593bf281d5c0ce60ebffebf974a4a1afb",class:{}},h("div",{key:"7c03bd3e40eed4fa9966afe926cdc4c490d5a6d7","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return o.show()},onFocus:function(){return o.show()},onMouseLeave:function(){return o.hide()},onBlur:function(){return o.hide()},ref:function(t){return o.iconEl=t}}),h("div",{key:"d757834d1be057de971a7bcbb47158c9c2182907",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(t){return o.tooltip=t}},this.text,h("div",{key:"0a9e2615fa20a0625b929173dd2705be5165c39a","data-popper-arrow":"true",class:"arrow"})))};return o}();VerdocsToolbarIcon.style=VerdocsToolbarIconStyle0;export{VerdocsToolbarIcon as verdocs_toolbar_icon};
1
+ import{r as registerInstance,h,H as Host}from"./index-b89cf6a4.js";import{c as createPopper}from"./popper-0fbeff6d.js";var verdocsToolbarIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var VerdocsToolbarIconStyle0=verdocsToolbarIconCss;var VerdocsToolbarIcon=function(){function o(o){registerInstance(this,o);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}o.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};o.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};o.prototype.show=function(){var o,t;(o=this.tooltip)===null||o===void 0?void 0:o.setAttribute("data-show","");(t=this.popperInstance)===null||t===void 0?void 0:t.update().catch((function(){}))};o.prototype.hide=function(){var o;(o=this.tooltip)===null||o===void 0?void 0:o.removeAttribute("data-show")};o.prototype.render=function(){var o=this;return h(Host,{key:"f9c2c8bd293559e5e504b69cbc445ca813f134a2",class:{}},h("div",{key:"e5d497d4859e8bd61364f56f8c452c61ece75a76","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return o.show()},onFocus:function(){return o.show()},onMouseLeave:function(){return o.hide()},onBlur:function(){return o.hide()},ref:function(t){return o.iconEl=t}}),h("div",{key:"ebb1c0fa2cd8b58eba9d5057fc965ead53c23059",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(t){return o.tooltip=t}},this.text,h("div",{key:"df0d03fbeeeb3016dde67f6d8bf8f75c5a97105c","data-popper-arrow":"true",class:"arrow"})))};return o}();VerdocsToolbarIcon.style=VerdocsToolbarIconStyle0;export{VerdocsToolbarIcon as verdocs_toolbar_icon};
@@ -1,2 +1,2 @@
1
- module.exports = require('../dist/cjs/loader.cjs.js');
1
+ module.exports = require('../cjs/loader.cjs.js');
2
2
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,2 +1,2 @@
1
- module.exports = require('../dist/cjs/loader.cjs.js');
1
+ module.exports = require('../cjs/loader.cjs.js');
2
2
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,4 +1,4 @@
1
- export * from '../dist/types/components';
1
+ export * from '../types/components';
2
2
  export interface CustomElementsDefineOptions {
3
3
  exclude?: string[];
4
4
  resourcesUrl?: string;
@@ -0,0 +1,2 @@
1
+ export * from '../esm/polyfills/index.js';
2
+ export * from '../esm/loader.js';
@@ -1,3 +1,3 @@
1
1
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
2
- export * from '../dist/esm/polyfills/index.js';
3
- export * from '../dist/esm-es5/loader.js';
2
+ export * from '../esm/polyfills/index.js';
3
+ export * from '../esm-es5/loader.js';
@@ -1,3 +1,10 @@
1
+ /**
2
+ * A simple button
3
+ *
4
+ * ```jsx
5
+ * <verdocs-button label="Click Me" />
6
+ * ```
7
+ */
1
8
  export declare class VerdocsButton {
2
9
  /**
3
10
  * The label for the button.
@@ -1,4 +1,8 @@
1
1
  import { Instance } from '@popperjs/core';
2
+ /**
3
+ * Display an icon button that triggers a drop-down panel that can display
4
+ * arbitrary child content, such as metadata, forms, or other controls.
5
+ */
2
6
  export declare class VerdocsButtonPanel {
3
7
  iconEl: HTMLDivElement;
4
8
  panelEl: HTMLDivElement;
@@ -5,6 +5,22 @@ export interface IMenuOption {
5
5
  faIcon?: any;
6
6
  disabled?: boolean;
7
7
  }
8
+ /**
9
+ * Display a drop-down menu button. A menu of the specified options will be displayed when the button is pressed. The menu will be hidden
10
+ * when the button is pressed again, or an option is selected. Separators may be created by supplying an entry with an empty label.
11
+ *
12
+ * ```html
13
+ * <verdocs-dropdown
14
+ * options={[
15
+ * {label: 'Option 1', disabled: true},
16
+ * {label: 'Option 2', id: '2'}
17
+ * {label: ''}
18
+ * {label: 'Option 3', id: '2'}
19
+ * ]}
20
+ * label="OK" onClick={() => (console.log('OK clicked'))}
21
+ * />
22
+ * ```
23
+ */
8
24
  export declare class VerdocsDropdown {
9
25
  el: HTMLElement;
10
26
  private dropdownButton?;
@@ -1,5 +1,9 @@
1
1
  import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
2
  import { EventEmitter } from '../../../stencil-public-runtime';
3
+ /**
4
+ * Displays a file picker to upload an attachment. This component is just the picker - the host application or component should
5
+ * provide the actual upload functionality.
6
+ */
3
7
  export declare class VerdocsFileChooser {
4
8
  /**
5
9
  * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  /**
3
- * Display a drop-down menu of quick filter options.
3
+ * Display a simple pagination control with individual buttons to move through the data set.
4
4
  */
5
5
  export declare class VerdocsQuickFilter {
6
6
  el: HTMLElement;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Displays a summary of a template
2
+ * A simple progress bar.
3
3
  */
4
4
  export declare class VerdocsProgressBar {
5
5
  /**
@@ -117,6 +117,12 @@ export namespace Components {
117
117
  */
118
118
  "templateId": string | null;
119
119
  }
120
+ /**
121
+ * A simple button
122
+ * ```jsx
123
+ * <verdocs-button label="Click Me" />
124
+ * ```
125
+ */
120
126
  interface VerdocsButton {
121
127
  /**
122
128
  * Whether the button should be disabled.
@@ -147,6 +153,10 @@ export namespace Components {
147
153
  */
148
154
  "variant": 'standard' | 'text' | 'outline';
149
155
  }
156
+ /**
157
+ * Display an icon button that triggers a drop-down panel that can display
158
+ * arbitrary child content, such as metadata, forms, or other controls.
159
+ */
150
160
  interface VerdocsButtonPanel {
151
161
  "hidePanel": () => Promise<void>;
152
162
  /**
@@ -233,6 +243,21 @@ export namespace Components {
233
243
  */
234
244
  interface VerdocsDialog {
235
245
  }
246
+ /**
247
+ * Display a drop-down menu button. A menu of the specified options will be displayed when the button is pressed. The menu will be hidden
248
+ * when the button is pressed again, or an option is selected. Separators may be created by supplying an entry with an empty label.
249
+ * ```html
250
+ * <verdocs-dropdown
251
+ * options={[
252
+ * {label: 'Option 1', disabled: true},
253
+ * {label: 'Option 2', id: '2'}
254
+ * {label: ''}
255
+ * {label: 'Option 3', id: '2'}
256
+ * ]}
257
+ * label="OK" onClick={() => (console.log('OK clicked'))}
258
+ * />
259
+ * ```
260
+ */
236
261
  interface VerdocsDropdown {
237
262
  /**
238
263
  * The menu options to display.
@@ -887,6 +912,10 @@ export namespace Components {
887
912
  */
888
913
  "yscale"?: number;
889
914
  }
915
+ /**
916
+ * Displays a file picker to upload an attachment. This component is just the picker - the host application or component should
917
+ * provide the actual upload functionality.
918
+ */
890
919
  interface VerdocsFileChooser {
891
920
  /**
892
921
  * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
@@ -1004,7 +1033,7 @@ export namespace Components {
1004
1033
  "organization": IOrganization;
1005
1034
  }
1006
1035
  /**
1007
- * Display a drop-down menu of quick filter options.
1036
+ * Display a simple pagination control with individual buttons to move through the data set.
1008
1037
  */
1009
1038
  interface VerdocsPagination {
1010
1039
  /**
@@ -1058,7 +1087,7 @@ export namespace Components {
1058
1087
  "templateId": string | null;
1059
1088
  }
1060
1089
  /**
1061
- * Displays a summary of a template
1090
+ * A simple progress bar.
1062
1091
  */
1063
1092
  interface VerdocsProgressBar {
1064
1093
  /**
@@ -2103,12 +2132,22 @@ declare global {
2103
2132
  prototype: HTMLVerdocsBuildElement;
2104
2133
  new (): HTMLVerdocsBuildElement;
2105
2134
  };
2135
+ /**
2136
+ * A simple button
2137
+ * ```jsx
2138
+ * <verdocs-button label="Click Me" />
2139
+ * ```
2140
+ */
2106
2141
  interface HTMLVerdocsButtonElement extends Components.VerdocsButton, HTMLStencilElement {
2107
2142
  }
2108
2143
  var HTMLVerdocsButtonElement: {
2109
2144
  prototype: HTMLVerdocsButtonElement;
2110
2145
  new (): HTMLVerdocsButtonElement;
2111
2146
  };
2147
+ /**
2148
+ * Display an icon button that triggers a drop-down panel that can display
2149
+ * arbitrary child content, such as metadata, forms, or other controls.
2150
+ */
2112
2151
  interface HTMLVerdocsButtonPanelElement extends Components.VerdocsButtonPanel, HTMLStencilElement {
2113
2152
  }
2114
2153
  var HTMLVerdocsButtonPanelElement: {
@@ -2195,6 +2234,21 @@ declare global {
2195
2234
  interface HTMLVerdocsDropdownElementEventMap {
2196
2235
  "optionSelected": IMenuOption;
2197
2236
  }
2237
+ /**
2238
+ * Display a drop-down menu button. A menu of the specified options will be displayed when the button is pressed. The menu will be hidden
2239
+ * when the button is pressed again, or an option is selected. Separators may be created by supplying an entry with an empty label.
2240
+ * ```html
2241
+ * <verdocs-dropdown
2242
+ * options={[
2243
+ * {label: 'Option 1', disabled: true},
2244
+ * {label: 'Option 2', id: '2'}
2245
+ * {label: ''}
2246
+ * {label: 'Option 3', id: '2'}
2247
+ * ]}
2248
+ * label="OK" onClick={() => (console.log('OK clicked'))}
2249
+ * />
2250
+ * ```
2251
+ */
2198
2252
  interface HTMLVerdocsDropdownElement extends Components.VerdocsDropdown, HTMLStencilElement {
2199
2253
  addEventListener<K extends keyof HTMLVerdocsDropdownElementEventMap>(type: K, listener: (this: HTMLVerdocsDropdownElement, ev: VerdocsDropdownCustomEvent<HTMLVerdocsDropdownElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2200
2254
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2575,6 +2629,10 @@ declare global {
2575
2629
  interface HTMLVerdocsFileChooserElementEventMap {
2576
2630
  "fileSelected": {file: File | null};
2577
2631
  }
2632
+ /**
2633
+ * Displays a file picker to upload an attachment. This component is just the picker - the host application or component should
2634
+ * provide the actual upload functionality.
2635
+ */
2578
2636
  interface HTMLVerdocsFileChooserElement extends Components.VerdocsFileChooser, HTMLStencilElement {
2579
2637
  addEventListener<K extends keyof HTMLVerdocsFileChooserElementEventMap>(type: K, listener: (this: HTMLVerdocsFileChooserElement, ev: VerdocsFileChooserCustomEvent<HTMLVerdocsFileChooserElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2580
2638
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2710,7 +2768,7 @@ declare global {
2710
2768
  "selectPage": {selectedPage: number};
2711
2769
  }
2712
2770
  /**
2713
- * Display a drop-down menu of quick filter options.
2771
+ * Display a simple pagination control with individual buttons to move through the data set.
2714
2772
  */
2715
2773
  interface HTMLVerdocsPaginationElement extends Components.VerdocsPagination, HTMLStencilElement {
2716
2774
  addEventListener<K extends keyof HTMLVerdocsPaginationElementEventMap>(type: K, listener: (this: HTMLVerdocsPaginationElement, ev: VerdocsPaginationCustomEvent<HTMLVerdocsPaginationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2774,7 +2832,7 @@ declare global {
2774
2832
  new (): HTMLVerdocsPreviewElement;
2775
2833
  };
2776
2834
  /**
2777
- * Displays a summary of a template
2835
+ * A simple progress bar.
2778
2836
  */
2779
2837
  interface HTMLVerdocsProgressBarElement extends Components.VerdocsProgressBar, HTMLStencilElement {
2780
2838
  }
@@ -3791,6 +3849,12 @@ declare namespace LocalJSX {
3791
3849
  */
3792
3850
  "templateId"?: string | null;
3793
3851
  }
3852
+ /**
3853
+ * A simple button
3854
+ * ```jsx
3855
+ * <verdocs-button label="Click Me" />
3856
+ * ```
3857
+ */
3794
3858
  interface VerdocsButton {
3795
3859
  /**
3796
3860
  * Whether the button should be disabled.
@@ -3821,6 +3885,10 @@ declare namespace LocalJSX {
3821
3885
  */
3822
3886
  "variant"?: 'standard' | 'text' | 'outline';
3823
3887
  }
3888
+ /**
3889
+ * Display an icon button that triggers a drop-down panel that can display
3890
+ * arbitrary child content, such as metadata, forms, or other controls.
3891
+ */
3824
3892
  interface VerdocsButtonPanel {
3825
3893
  /**
3826
3894
  * SVG icon to display
@@ -3920,6 +3988,21 @@ declare namespace LocalJSX {
3920
3988
  */
3921
3989
  "onExit"?: (event: VerdocsDialogCustomEvent<any>) => void;
3922
3990
  }
3991
+ /**
3992
+ * Display a drop-down menu button. A menu of the specified options will be displayed when the button is pressed. The menu will be hidden
3993
+ * when the button is pressed again, or an option is selected. Separators may be created by supplying an entry with an empty label.
3994
+ * ```html
3995
+ * <verdocs-dropdown
3996
+ * options={[
3997
+ * {label: 'Option 1', disabled: true},
3998
+ * {label: 'Option 2', id: '2'}
3999
+ * {label: ''}
4000
+ * {label: 'Option 3', id: '2'}
4001
+ * ]}
4002
+ * label="OK" onClick={() => (console.log('OK clicked'))}
4003
+ * />
4004
+ * ```
4005
+ */
3923
4006
  interface VerdocsDropdown {
3924
4007
  /**
3925
4008
  * Event fired when a menu option is clicked. Web Component events need to be "composed" to cross the Shadow DOM and be received by parent frameworks.
@@ -4743,6 +4826,10 @@ declare namespace LocalJSX {
4743
4826
  */
4744
4827
  "yscale"?: number;
4745
4828
  }
4829
+ /**
4830
+ * Displays a file picker to upload an attachment. This component is just the picker - the host application or component should
4831
+ * provide the actual upload functionality.
4832
+ */
4746
4833
  interface VerdocsFileChooser {
4747
4834
  /**
4748
4835
  * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
@@ -4892,7 +4979,7 @@ declare namespace LocalJSX {
4892
4979
  "organization"?: IOrganization;
4893
4980
  }
4894
4981
  /**
4895
- * Display a drop-down menu of quick filter options.
4982
+ * Display a simple pagination control with individual buttons to move through the data set.
4896
4983
  */
4897
4984
  interface VerdocsPagination {
4898
4985
  /**
@@ -4955,7 +5042,7 @@ declare namespace LocalJSX {
4955
5042
  "templateId"?: string | null;
4956
5043
  }
4957
5044
  /**
4958
- * Displays a summary of a template
5045
+ * A simple progress bar.
4959
5046
  */
4960
5047
  interface VerdocsProgressBar {
4961
5048
  /**
@@ -6135,7 +6222,17 @@ declare module "@stencil/core" {
6135
6222
  * Display a template building experience.
6136
6223
  */
6137
6224
  "verdocs-build": LocalJSX.VerdocsBuild & JSXBase.HTMLAttributes<HTMLVerdocsBuildElement>;
6225
+ /**
6226
+ * A simple button
6227
+ * ```jsx
6228
+ * <verdocs-button label="Click Me" />
6229
+ * ```
6230
+ */
6138
6231
  "verdocs-button": LocalJSX.VerdocsButton & JSXBase.HTMLAttributes<HTMLVerdocsButtonElement>;
6232
+ /**
6233
+ * Display an icon button that triggers a drop-down panel that can display
6234
+ * arbitrary child content, such as metadata, forms, or other controls.
6235
+ */
6139
6236
  "verdocs-button-panel": LocalJSX.VerdocsButtonPanel & JSXBase.HTMLAttributes<HTMLVerdocsButtonPanelElement>;
6140
6237
  /**
6141
6238
  * Displays a check box. Note that this is different from the `verdocs-field-checkbox` component, which is designed
@@ -6170,6 +6267,21 @@ declare module "@stencil/core" {
6170
6267
  * Display a simple dialog where the contents are provided via slots.
6171
6268
  */
6172
6269
  "verdocs-dialog": LocalJSX.VerdocsDialog & JSXBase.HTMLAttributes<HTMLVerdocsDialogElement>;
6270
+ /**
6271
+ * Display a drop-down menu button. A menu of the specified options will be displayed when the button is pressed. The menu will be hidden
6272
+ * when the button is pressed again, or an option is selected. Separators may be created by supplying an entry with an empty label.
6273
+ * ```html
6274
+ * <verdocs-dropdown
6275
+ * options={[
6276
+ * {label: 'Option 1', disabled: true},
6277
+ * {label: 'Option 2', id: '2'}
6278
+ * {label: ''}
6279
+ * {label: 'Option 3', id: '2'}
6280
+ * ]}
6281
+ * label="OK" onClick={() => (console.log('OK clicked'))}
6282
+ * />
6283
+ * ```
6284
+ */
6173
6285
  "verdocs-dropdown": LocalJSX.VerdocsDropdown & JSXBase.HTMLAttributes<HTMLVerdocsDropdownElement>;
6174
6286
  /**
6175
6287
  * Represents one document page. This is primarily a layout container used to coordinate positions of
@@ -6243,6 +6355,10 @@ declare module "@stencil/core" {
6243
6355
  * Display a timestamp field.
6244
6356
  */
6245
6357
  "verdocs-field-timestamp": LocalJSX.VerdocsFieldTimestamp & JSXBase.HTMLAttributes<HTMLVerdocsFieldTimestampElement>;
6358
+ /**
6359
+ * Displays a file picker to upload an attachment. This component is just the picker - the host application or component should
6360
+ * provide the actual upload functionality.
6361
+ */
6246
6362
  "verdocs-file-chooser": LocalJSX.VerdocsFileChooser & JSXBase.HTMLAttributes<HTMLVerdocsFileChooserElement>;
6247
6363
  /**
6248
6364
  * Floating Action Button style menu. For proper placement, this should be added to the DOM inside a container that is set to
@@ -6280,7 +6396,7 @@ declare module "@stencil/core" {
6280
6396
  */
6281
6397
  "verdocs-organization-card": LocalJSX.VerdocsOrganizationCard & JSXBase.HTMLAttributes<HTMLVerdocsOrganizationCardElement>;
6282
6398
  /**
6283
- * Display a drop-down menu of quick filter options.
6399
+ * Display a simple pagination control with individual buttons to move through the data set.
6284
6400
  */
6285
6401
  "verdocs-pagination": LocalJSX.VerdocsPagination & JSXBase.HTMLAttributes<HTMLVerdocsPaginationElement>;
6286
6402
  /**
@@ -6299,7 +6415,7 @@ declare module "@stencil/core" {
6299
6415
  */
6300
6416
  "verdocs-preview": LocalJSX.VerdocsPreview & JSXBase.HTMLAttributes<HTMLVerdocsPreviewElement>;
6301
6417
  /**
6302
- * Displays a summary of a template
6418
+ * A simple progress bar.
6303
6419
  */
6304
6420
  "verdocs-progress-bar": LocalJSX.VerdocsProgressBar & JSXBase.HTMLAttributes<HTMLVerdocsProgressBarElement>;
6305
6421
  /**
@@ -1 +1 @@
1
- import{r as e,c as s,h as i,H as l}from"./p-73a6f972.js";import{VerdocsEndpoint as t,listEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,cancelEnvelope as c}from"@verdocs/js-sdk";import{s as p}from"./p-7b397f3a.js";import{V as h}from"./p-026b3103.js";import{S as v}from"./p-fd97809c.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const f=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}],x=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}],b=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}],u=class{constructor(i){e(this,i),this.changeView=s(this,"changeView",7),this.changeStatus=s(this,"changeStatus",7),this.changeSort=s(this,"changeSort",7),this.changeMatch=s(this,"changeMatch",7),this.sdkError=s(this,"sdkError",7),this.viewEnvelope=s(this,"viewEnvelope",7),this.finishEnvelope=s(this,"finishEnvelope",7),this.endpoint=t.getDefault(),this.view=void 0,this.status="all",this.sort="created_at",this.match="",this.showPagination=!0,this.rowsPerPage=10,this.selectedPage=0,this.count=0,this.initiallyLoaded=!1,this.loading=!0,this.selectedEnvelopes=[],this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[ENVELOPES] Must be authenticated")}async componentDidLoad(){await this.queryEnvelopes(),this.initiallyLoaded=!0}async queryEnvelopes(){var e,s,i;try{this.loading=!0;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":default:e={...e,status:"all"===this.status?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e,is_owner:!0};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,is_owner:!0,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]}}"all"===this.view&&"all"!==this.status&&(e.status=[this.status]),this.match.trim();const s=await a(this.endpoint,e);this.envelopes=s.envelopes,this.count=s.total,this.loading=!1}catch(l){this.loading=!1,console.log("[ENVELOPES] Error listing envelopes",l),null===(e=this.sdkError)||void 0===e||e.emit(new v(l.message,null===(s=l.response)||void 0===s?void 0:s.status,null===(i=l.response)||void 0===i?void 0:i.data))}}handleDownload(){p(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){p(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"4b7bda7f7615513f3e263d8dd0635733e069829d"},i("div",{key:"2f8e6a7c99c0beba2ea5ca4b70f5547f6735d61e",class:"header"},i("div",{key:"3be14d43f05437301237aef3ce5ea491f6e7747c",class:"filter"},i("verdocs-text-input",{key:"3ec6f05183dbede1787c8f8eca98b5db9079b488",id:"verdocs-filter-name",value:this.match,clearable:!0,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim(),null===(s=this.changeMatch)||void 0===s||s.emit(this.match)}})),i("verdocs-quick-filter",{key:"7822828a8a7ebbb820ee689b09c9e0a5eb764edb",label:"View",value:this.view,options:f,onOptionSelected:e=>{this.view=e.detail.value}}),"all"===this.view&&i("verdocs-quick-filter",{key:"a181198baa609fd7e170635a2f9e5c567d9227eb",label:"Status",value:this.status,options:x,onOptionSelected:e=>{this.status=e.detail.value}}),"all"===this.view&&i("verdocs-quick-filter",{key:"14a253295139825b43c20bafe8e56a253242f1f8",label:"Sort By",value:this.sort,options:b,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"8e72be52c0dcf484761187c14ef99607b91ab9ca",mode:"dark",size:24}),i("div",{key:"c31e47e5b85fff3841620bde02ecf71a177b769f",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"4fc3bf3c3e04efd833f4dec4e09862969a30da2a",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e),t=d(this.endpoint.session,e),a=l.find((e=>{var s;return e.email===(null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||""})),o=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!(a&&t&&r((null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||"",l))},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return null===(s=this.viewEnvelope)||void 0===s?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:-1!==this.selectedEnvelopes.findIndex((s=>s.id===e.id)),onClick:e=>e.stopPropagation(),onInput:s=>{this.selectedEnvelopes=s.target.checked?[...this.selectedEnvelopes,e]:this.selectedEnvelopes.filter((s=>s.id!==e.id))}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>',class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,":  ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>e.full_name)).join(", "))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:o,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":null===(i=this.viewEnvelope)||void 0===i||i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":null===(l=this.finishEnvelope)||void 0===l||l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":window.confirm("Are you sure you want to cancel this envelope?")&&(c(this.endpoint,e.id).then((()=>h("Envelope canceled"))).catch((e=>h("Unable to cancel envelope: "+e.messabge,{style:"error"}))),this.queryEnvelopes().catch((()=>{})))}}})))})),!this.initiallyLoaded&&i("div",{key:"cf943955958934d6bab489b04c6af5b026649998",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"e9c7b5ee1c2600ff9876624f3d61a830903f0345",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelopes-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}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-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-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;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;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';export{u as verdocs_envelopes_list}
1
+ import{r as e,c as s,h as i,H as l}from"./p-73a6f972.js";import{VerdocsEndpoint as t,listEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,cancelEnvelope as c}from"@verdocs/js-sdk";import{s as p}from"./p-7b397f3a.js";import{V as h}from"./p-026b3103.js";import{S as v}from"./p-fd97809c.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const f=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}],x=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}],b=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}],u=class{constructor(i){e(this,i),this.changeView=s(this,"changeView",7),this.changeStatus=s(this,"changeStatus",7),this.changeSort=s(this,"changeSort",7),this.changeMatch=s(this,"changeMatch",7),this.sdkError=s(this,"sdkError",7),this.viewEnvelope=s(this,"viewEnvelope",7),this.finishEnvelope=s(this,"finishEnvelope",7),this.endpoint=t.getDefault(),this.view=void 0,this.status="all",this.sort="created_at",this.match="",this.showPagination=!0,this.rowsPerPage=10,this.selectedPage=0,this.count=0,this.initiallyLoaded=!1,this.loading=!0,this.selectedEnvelopes=[],this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[ENVELOPES] Must be authenticated")}async componentDidLoad(){await this.queryEnvelopes(),this.initiallyLoaded=!0}async queryEnvelopes(){var e,s,i;try{this.loading=!0;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":default:e={...e,status:"all"===this.status?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e,is_owner:!0};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,is_owner:!0,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]}}"all"===this.view&&"all"!==this.status&&(e.status=[this.status]),this.match.trim();const s=await a(this.endpoint,e);this.envelopes=s.envelopes,this.count=s.total,this.loading=!1}catch(l){this.loading=!1,console.log("[ENVELOPES] Error listing envelopes",l),null===(e=this.sdkError)||void 0===e||e.emit(new v(l.message,null===(s=l.response)||void 0===s?void 0:s.status,null===(i=l.response)||void 0===i?void 0:i.data))}}handleDownload(){p(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){p(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"1533851ebdceca1b689aec246de482f547817585"},i("div",{key:"a33685ad776d4ad2282a794fc08a6928c2a2c2c6",class:"header"},i("div",{key:"774df81f4db58154c20b5aa6d00585cf70f2c0be",class:"filter"},i("verdocs-text-input",{key:"d279867c1693c181d115ed9380263f7ca33cf54e",id:"verdocs-filter-name",value:this.match,clearable:!0,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim(),null===(s=this.changeMatch)||void 0===s||s.emit(this.match)}})),i("verdocs-quick-filter",{key:"0e24f54710055db16f106c43419ae8c7d60a137a",label:"View",value:this.view,options:f,onOptionSelected:e=>{this.view=e.detail.value}}),"all"===this.view&&i("verdocs-quick-filter",{key:"d94ade343fe8dfabb11cc6995960c2a221e3fdc4",label:"Status",value:this.status,options:x,onOptionSelected:e=>{this.status=e.detail.value}}),"all"===this.view&&i("verdocs-quick-filter",{key:"5b7e637fb7621c1e3b8c52888fd9fabc5b56e27e",label:"Sort By",value:this.sort,options:b,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"2c1a05c9c04cd61733816141c6811ba52229056c",mode:"dark",size:24}),i("div",{key:"5af2c9f56ba9bb21cba28637b925dc011613bd05",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"06bc8e1fd09692bdaf9e56268a8592d97ff10cce",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e),t=d(this.endpoint.session,e),a=l.find((e=>{var s;return e.email===(null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||""})),o=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!(a&&t&&r((null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||"",l))},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return null===(s=this.viewEnvelope)||void 0===s?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:-1!==this.selectedEnvelopes.findIndex((s=>s.id===e.id)),onClick:e=>e.stopPropagation(),onInput:s=>{this.selectedEnvelopes=s.target.checked?[...this.selectedEnvelopes,e]:this.selectedEnvelopes.filter((s=>s.id!==e.id))}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>',class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,":  ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>e.full_name)).join(", "))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:o,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":null===(i=this.viewEnvelope)||void 0===i||i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":null===(l=this.finishEnvelope)||void 0===l||l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":window.confirm("Are you sure you want to cancel this envelope?")&&(c(this.endpoint,e.id).then((()=>h("Envelope canceled"))).catch((e=>h("Unable to cancel envelope: "+e.messabge,{style:"error"}))),this.queryEnvelopes().catch((()=>{})))}}})))})),!this.initiallyLoaded&&i("div",{key:"ff38c547cc65bd2559dc9f2fb5be237384f56be5",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"bd666277c44235c7ef9855b1b7985860b8d8f0da",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelopes-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}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-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-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;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;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';export{u as verdocs_envelopes_list}