@verdocs/web-sdk 1.15.1 → 1.15.2

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 (267) hide show
  1. package/dist/cjs/{TemplateStore-fe148e97.js → TemplateStore-a7745f0a.js} +1 -1
  2. package/dist/cjs/{Templates-1a86703d.js → Templates-6fb62dcd.js} +15 -0
  3. package/dist/cjs/{index-7c19ba1d.js → index-961181ce.js} +37 -602
  4. package/dist/cjs/index-db620f37.js +575 -0
  5. package/dist/cjs/ipc-test.cjs.entry.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{utils-2c6835c6.js → utils-67dac0c3.js} +1 -1
  8. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  9. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -2
  11. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -1
  12. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -6
  13. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -2
  14. package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -2
  15. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -2
  16. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -2
  17. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -2
  18. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -2
  19. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -2
  20. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -2
  21. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -2
  22. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -2
  23. package/dist/cjs/verdocs-organization-card.cjs.entry.js +2 -1
  24. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +169 -0
  25. package/dist/cjs/verdocs-preview.cjs.entry.js +5 -4
  26. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-send.cjs.entry.js +5 -4
  28. package/dist/cjs/verdocs-sign.cjs.entry.js +3 -2
  29. package/dist/cjs/{verdocs-pagination_4.cjs.entry.js → verdocs-status-indicator.cjs.entry.js} +0 -161
  30. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +2 -2
  31. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -2
  32. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +5 -4
  33. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  34. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-template-star.cjs.entry.js +67 -0
  36. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  37. package/dist/cjs/verdocs-templates-list.cjs.entry.js +595 -111
  38. package/dist/cjs/verdocs-view.cjs.entry.js +3 -2
  39. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  40. package/dist/collection/collection-manifest.json +1 -0
  41. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +38 -43
  42. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.css +31 -0
  43. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +144 -0
  44. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.stories.js +27 -0
  45. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +98 -17
  46. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +175 -221
  47. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.stories.js +8 -6
  48. package/dist/components/Templates.js +15 -1
  49. package/dist/components/index.d.ts +1 -0
  50. package/dist/components/index.js +1 -0
  51. package/dist/components/index2.js +1 -1
  52. package/dist/components/verdocs-envelopes-list.js +4 -7
  53. package/dist/components/verdocs-template-star.d.ts +11 -0
  54. package/dist/components/verdocs-template-star.js +6 -0
  55. package/dist/components/verdocs-template-star2.js +82 -0
  56. package/dist/components/verdocs-templates-list.js +634 -123
  57. package/dist/docs.json +223 -61
  58. package/dist/esm/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
  59. package/dist/esm/{Templates-3760f311.js → Templates-1893bda7.js} +15 -1
  60. package/dist/esm/{index-914ed6f7.js → index-2685d184.js} +1 -566
  61. package/dist/esm/index-8dc8fdc4.js +568 -0
  62. package/dist/esm/ipc-test.entry.js +2 -2
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/esm/{utils-a8284581.js → utils-ef800713.js} +2 -2
  65. package/dist/esm/verdocs-build.entry.js +2 -2
  66. package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
  67. package/dist/esm/verdocs-envelope-document-page.entry.js +3 -2
  68. package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -1
  69. package/dist/esm/verdocs-envelopes-list.entry.js +5 -6
  70. package/dist/esm/verdocs-field-checkbox.entry.js +3 -2
  71. package/dist/esm/verdocs-field-date.entry.js +3 -2
  72. package/dist/esm/verdocs-field-dropdown.entry.js +3 -2
  73. package/dist/esm/verdocs-field-initial.entry.js +3 -2
  74. package/dist/esm/verdocs-field-payment.entry.js +3 -2
  75. package/dist/esm/verdocs-field-radio-button.entry.js +3 -2
  76. package/dist/esm/verdocs-field-signature.entry.js +3 -2
  77. package/dist/esm/verdocs-field-textarea.entry.js +3 -2
  78. package/dist/esm/verdocs-field-textbox.entry.js +3 -2
  79. package/dist/esm/verdocs-field-timestamp.entry.js +3 -2
  80. package/dist/esm/verdocs-organization-card.entry.js +2 -1
  81. package/dist/esm/verdocs-pagination_3.entry.js +163 -0
  82. package/dist/esm/verdocs-preview.entry.js +5 -4
  83. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  84. package/dist/esm/verdocs-send.entry.js +5 -4
  85. package/dist/esm/verdocs-sign.entry.js +3 -2
  86. package/dist/esm/{verdocs-pagination_4.entry.js → verdocs-status-indicator.entry.js} +2 -160
  87. package/dist/esm/verdocs-template-attachments_2.entry.js +2 -2
  88. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -2
  89. package/dist/esm/verdocs-template-fields_4.entry.js +5 -4
  90. package/dist/esm/verdocs-template-name.entry.js +2 -2
  91. package/dist/esm/verdocs-template-reminders.entry.js +2 -2
  92. package/dist/esm/verdocs-template-star.entry.js +63 -0
  93. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  94. package/dist/esm/verdocs-templates-list.entry.js +592 -108
  95. package/dist/esm/verdocs-view.entry.js +3 -2
  96. package/dist/esm/verdocs-web-sdk.js +1 -1
  97. package/dist/esm-es5/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
  98. package/dist/esm-es5/{Templates-3760f311.js → Templates-1893bda7.js} +1 -1
  99. package/dist/esm-es5/index-2685d184.js +1 -0
  100. package/dist/esm-es5/index-8dc8fdc4.js +1 -0
  101. package/dist/esm-es5/ipc-test.entry.js +1 -1
  102. package/dist/esm-es5/loader.js +1 -1
  103. package/dist/esm-es5/{utils-a8284581.js → utils-ef800713.js} +2 -2
  104. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  107. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -0
  121. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  125. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -0
  126. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-template-star.entry.js +1 -0
  132. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  133. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  136. package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +8 -16
  137. package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.d.ts +35 -0
  138. package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.stories.d.ts +6 -0
  139. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +24 -29
  140. package/dist/types/components.d.ts +89 -27
  141. package/dist/verdocs-web-sdk/p-067b43ba.system.entry.js +1 -0
  142. package/dist/verdocs-web-sdk/p-09ee5e46.entry.js +1 -0
  143. package/dist/verdocs-web-sdk/p-0ae14e45.system.entry.js +1 -0
  144. package/dist/verdocs-web-sdk/{p-831e2651.system.entry.js → p-0b369a3e.system.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-b2a0cef4.entry.js → p-0e1c0da5.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/p-11942b39.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/p-11de0d75.system.js +1 -0
  148. package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
  149. package/dist/verdocs-web-sdk/p-1d010a79.system.js +1 -0
  150. package/dist/verdocs-web-sdk/{p-46013b8a.entry.js → p-20fcfef9.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/p-2118b452.system.entry.js +1 -0
  152. package/dist/verdocs-web-sdk/p-21629ed8.entry.js +1 -0
  153. package/dist/verdocs-web-sdk/p-253b6f06.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/p-2961d1a8.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/p-2a4566ab.system.entry.js +1 -0
  156. package/dist/verdocs-web-sdk/p-35841b7c.js +1 -0
  157. package/dist/verdocs-web-sdk/p-38d7c3f2.system.entry.js +1 -0
  158. package/dist/verdocs-web-sdk/p-3ed5dc5c.entry.js +1 -0
  159. package/dist/verdocs-web-sdk/p-3fe6dc00.system.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/p-42f1012f.system.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/p-45b1c6cd.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/{p-e34783b1.entry.js → p-4615a245.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/p-4a7dcb1b.system.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/{p-3399a2a2.system.entry.js → p-4eb69794.system.entry.js} +1 -1
  165. package/dist/verdocs-web-sdk/p-4fe4e161.js +1 -0
  166. package/dist/verdocs-web-sdk/{p-dee333ac.system.entry.js → p-52f9cfba.system.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/p-5612d642.entry.js +1 -0
  168. package/dist/verdocs-web-sdk/p-56943696.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/p-5abf9fab.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-5c5a5baf.system.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/{p-3cac4136.system.js → p-5ef54155.system.js} +2 -2
  172. package/dist/verdocs-web-sdk/p-62f70c53.system.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-63f9586c.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/p-6570268f.js +1 -0
  175. package/dist/verdocs-web-sdk/p-67df4e57.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-68dc38f8.entry.js +1 -0
  177. package/dist/verdocs-web-sdk/p-6cc3de8d.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/{p-c02c16e1.js → p-6f4149c4.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-90f5c0fa.system.entry.js → p-7028e5fd.system.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-eac4674e.system.entry.js → p-715c5b9d.system.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/p-73371d7a.system.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/{p-fb3d4091.system.js → p-75455b2d.system.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-4cdc37f8.entry.js → p-78c38cec.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-63abfff5.system.entry.js → p-79cf7768.system.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/p-7bc3f0ae.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-7d992b01.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/p-823225c2.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-82f6faac.system.entry.js +1 -0
  189. package/dist/verdocs-web-sdk/p-8603a0d0.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-8c4abfcc.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-90371251.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-951d9c70.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-9dde58a8.system.js +1 -0
  194. package/dist/verdocs-web-sdk/p-a3ac0082.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/{p-cb17023f.entry.js → p-a3b3cdf5.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-3a10e87d.entry.js → p-a6a8d20f.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/p-ac18bc08.system.entry.js +1 -0
  198. package/dist/verdocs-web-sdk/p-b2c5baae.system.entry.js +1 -0
  199. package/dist/verdocs-web-sdk/p-b3401d8e.entry.js +1 -0
  200. package/dist/verdocs-web-sdk/p-b6dba09e.system.entry.js +1 -0
  201. package/dist/verdocs-web-sdk/p-b995ebab.entry.js +1 -0
  202. package/dist/verdocs-web-sdk/p-bd077b3e.system.entry.js +1 -0
  203. package/dist/verdocs-web-sdk/{p-aefbafc3.system.entry.js → p-bf8cf9ff.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/p-c6c2b890.entry.js +1 -0
  205. package/dist/verdocs-web-sdk/{p-a6ecbbd5.js → p-c8b879d1.js} +2 -2
  206. package/dist/verdocs-web-sdk/p-cb283760.system.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/p-ce097fdf.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/{p-783d4ad4.system.entry.js → p-ce626e5b.system.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/p-d2d18696.system.entry.js +1 -0
  210. package/dist/verdocs-web-sdk/p-d4765b46.system.entry.js +1 -0
  211. package/dist/verdocs-web-sdk/p-db67fbd1.entry.js +1 -0
  212. package/dist/verdocs-web-sdk/{p-efcde7ca.entry.js → p-dda7674c.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/p-e32ec792.entry.js +1 -0
  214. package/dist/verdocs-web-sdk/{p-4e02f533.entry.js → p-f88d1bb0.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/p-fc8bba36.system.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  217. package/package.json +2 -2
  218. package/dist/esm-es5/index-914ed6f7.js +0 -1
  219. package/dist/esm-es5/verdocs-pagination_4.entry.js +0 -1
  220. package/dist/verdocs-web-sdk/p-01de4163.system.entry.js +0 -1
  221. package/dist/verdocs-web-sdk/p-134aad4b.system.entry.js +0 -1
  222. package/dist/verdocs-web-sdk/p-14638f0c.system.entry.js +0 -1
  223. package/dist/verdocs-web-sdk/p-1a0cccea.system.entry.js +0 -1
  224. package/dist/verdocs-web-sdk/p-23686c43.entry.js +0 -1
  225. package/dist/verdocs-web-sdk/p-2730089c.system.entry.js +0 -1
  226. package/dist/verdocs-web-sdk/p-2dbe3de7.system.entry.js +0 -1
  227. package/dist/verdocs-web-sdk/p-2e164979.system.entry.js +0 -1
  228. package/dist/verdocs-web-sdk/p-2ff7c8c3.entry.js +0 -1
  229. package/dist/verdocs-web-sdk/p-38434761.system.entry.js +0 -1
  230. package/dist/verdocs-web-sdk/p-3eccbc81.system.entry.js +0 -1
  231. package/dist/verdocs-web-sdk/p-3fadef3d.entry.js +0 -1
  232. package/dist/verdocs-web-sdk/p-40f3a175.js +0 -1
  233. package/dist/verdocs-web-sdk/p-42acf76c.entry.js +0 -1
  234. package/dist/verdocs-web-sdk/p-4bbc74d9.entry.js +0 -1
  235. package/dist/verdocs-web-sdk/p-5ba13ab8.system.entry.js +0 -1
  236. package/dist/verdocs-web-sdk/p-5c2d7886.entry.js +0 -1
  237. package/dist/verdocs-web-sdk/p-634a5760.system.entry.js +0 -1
  238. package/dist/verdocs-web-sdk/p-6c267fdd.entry.js +0 -1
  239. package/dist/verdocs-web-sdk/p-871f33f9.system.entry.js +0 -1
  240. package/dist/verdocs-web-sdk/p-8d32aca4.system.entry.js +0 -1
  241. package/dist/verdocs-web-sdk/p-90f5a645.entry.js +0 -1
  242. package/dist/verdocs-web-sdk/p-92917e74.system.entry.js +0 -1
  243. package/dist/verdocs-web-sdk/p-92b2d9e4.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-92ca2aef.system.js +0 -1
  245. package/dist/verdocs-web-sdk/p-9416d327.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-95332ec8.system.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-9f76bbe1.system.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-a4391c14.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-a7eef6e9.entry.js +0 -1
  250. package/dist/verdocs-web-sdk/p-a824c9a6.system.entry.js +0 -1
  251. package/dist/verdocs-web-sdk/p-c0d8f0db.entry.js +0 -1
  252. package/dist/verdocs-web-sdk/p-c220af42.js +0 -1
  253. package/dist/verdocs-web-sdk/p-c53aefe5.entry.js +0 -1
  254. package/dist/verdocs-web-sdk/p-cd0eb575.entry.js +0 -1
  255. package/dist/verdocs-web-sdk/p-d497b3c1.system.entry.js +0 -1
  256. package/dist/verdocs-web-sdk/p-dc9c4361.system.js +0 -1
  257. package/dist/verdocs-web-sdk/p-e2e972fc.system.entry.js +0 -1
  258. package/dist/verdocs-web-sdk/p-e646e8ef.system.entry.js +0 -1
  259. package/dist/verdocs-web-sdk/p-e6512cc3.entry.js +0 -1
  260. package/dist/verdocs-web-sdk/p-e72c075e.entry.js +0 -1
  261. package/dist/verdocs-web-sdk/p-e971511e.entry.js +0 -1
  262. package/dist/verdocs-web-sdk/p-e989b3ce.entry.js +0 -1
  263. package/dist/verdocs-web-sdk/p-f623b887.entry.js +0 -1
  264. package/dist/verdocs-web-sdk/p-f6594380.system.entry.js +0 -1
  265. package/dist/verdocs-web-sdk/p-f7ea7b36.entry.js +0 -1
  266. package/dist/verdocs-web-sdk/p-fbd3e8df.system.entry.js +0 -1
  267. package/dist/verdocs-web-sdk/p-ff3e5717.entry.js +0 -1
@@ -1,13 +1,19 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
2
  import './Types.js';
3
3
  import { P as Permissions, V as VerdocsEndpoint, c as canPerformTemplateAction } from './VerdocsEndpoint.js';
4
- import { g as getSummary } from './Templates.js';
4
+ import { g as getSummary, d as deleteTemplate } from './Templates.js';
5
5
  import { V as VerdocsToast } from './Toast.js';
6
6
  import { S as SDKError } from './errors.js';
7
- import { d as defineCustomElement$5 } from './verdocs-dropdown2.js';
8
- import { d as defineCustomElement$4 } from './verdocs-help-icon2.js';
9
- import { d as defineCustomElement$3 } from './verdocs-loader2.js';
7
+ import { d as defineCustomElement$a } from './verdocs-button2.js';
8
+ import { d as defineCustomElement$9 } from './verdocs-dropdown2.js';
9
+ import { d as defineCustomElement$8 } from './verdocs-help-icon2.js';
10
+ import { d as defineCustomElement$7 } from './verdocs-ok-dialog2.js';
11
+ import { d as defineCustomElement$6 } from './verdocs-pagination2.js';
12
+ import { d as defineCustomElement$5 } from './verdocs-quick-filter2.js';
13
+ import { d as defineCustomElement$4 } from './verdocs-spinner2.js';
14
+ import { d as defineCustomElement$3 } from './verdocs-template-star2.js';
10
15
  import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
16
+ import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, l as locale, a as getDefaultOptions } from './index2.js';
11
17
 
12
18
  /**
13
19
  * Confirm whether the user has all of the specified permissions.
@@ -16,6 +22,491 @@ var userHasPermissions = function (session, permissions) {
16
22
  return permissions.every(function (perm) { return ((session === null || session === void 0 ? void 0 : session.permissions) || []).includes(perm); });
17
23
  };
18
24
 
25
+ /**
26
+ * @name compareAsc
27
+ * @category Common Helpers
28
+ * @summary Compare the two dates and return -1, 0 or 1.
29
+ *
30
+ * @description
31
+ * Compare the two dates and return 1 if the first date is after the second,
32
+ * -1 if the first date is before the second or 0 if dates are equal.
33
+ *
34
+ * @param {Date|Number} dateLeft - the first date to compare
35
+ * @param {Date|Number} dateRight - the second date to compare
36
+ * @returns {Number} the result of the comparison
37
+ * @throws {TypeError} 2 arguments required
38
+ *
39
+ * @example
40
+ * // Compare 11 February 1987 and 10 July 1989:
41
+ * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
42
+ * //=> -1
43
+ *
44
+ * @example
45
+ * // Sort the array of dates:
46
+ * const result = [
47
+ * new Date(1995, 6, 2),
48
+ * new Date(1987, 1, 11),
49
+ * new Date(1989, 6, 10)
50
+ * ].sort(compareAsc)
51
+ * //=> [
52
+ * // Wed Feb 11 1987 00:00:00,
53
+ * // Mon Jul 10 1989 00:00:00,
54
+ * // Sun Jul 02 1995 00:00:00
55
+ * // ]
56
+ */
57
+ function compareAsc(dirtyDateLeft, dirtyDateRight) {
58
+ requiredArgs(2, arguments);
59
+ var dateLeft = toDate(dirtyDateLeft);
60
+ var dateRight = toDate(dirtyDateRight);
61
+ var diff = dateLeft.getTime() - dateRight.getTime();
62
+ if (diff < 0) {
63
+ return -1;
64
+ } else if (diff > 0) {
65
+ return 1;
66
+ // Return 0 if diff is 0; return NaN if diff is NaN
67
+ } else {
68
+ return diff;
69
+ }
70
+ }
71
+
72
+ /**
73
+ * @name differenceInCalendarMonths
74
+ * @category Month Helpers
75
+ * @summary Get the number of calendar months between the given dates.
76
+ *
77
+ * @description
78
+ * Get the number of calendar months between the given dates.
79
+ *
80
+ * @param {Date|Number} dateLeft - the later date
81
+ * @param {Date|Number} dateRight - the earlier date
82
+ * @returns {Number} the number of calendar months
83
+ * @throws {TypeError} 2 arguments required
84
+ *
85
+ * @example
86
+ * // How many calendar months are between 31 January 2014 and 1 September 2014?
87
+ * const result = differenceInCalendarMonths(
88
+ * new Date(2014, 8, 1),
89
+ * new Date(2014, 0, 31)
90
+ * )
91
+ * //=> 8
92
+ */
93
+ function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
94
+ requiredArgs(2, arguments);
95
+ var dateLeft = toDate(dirtyDateLeft);
96
+ var dateRight = toDate(dirtyDateRight);
97
+ var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
98
+ var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
99
+ return yearDiff * 12 + monthDiff;
100
+ }
101
+
102
+ /**
103
+ * @name differenceInMilliseconds
104
+ * @category Millisecond Helpers
105
+ * @summary Get the number of milliseconds between the given dates.
106
+ *
107
+ * @description
108
+ * Get the number of milliseconds between the given dates.
109
+ *
110
+ * @param {Date|Number} dateLeft - the later date
111
+ * @param {Date|Number} dateRight - the earlier date
112
+ * @returns {Number} the number of milliseconds
113
+ * @throws {TypeError} 2 arguments required
114
+ *
115
+ * @example
116
+ * // How many milliseconds are between
117
+ * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
118
+ * const result = differenceInMilliseconds(
119
+ * new Date(2014, 6, 2, 12, 30, 21, 700),
120
+ * new Date(2014, 6, 2, 12, 30, 20, 600)
121
+ * )
122
+ * //=> 1100
123
+ */
124
+ function differenceInMilliseconds(dateLeft, dateRight) {
125
+ requiredArgs(2, arguments);
126
+ return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
127
+ }
128
+
129
+ var roundingMap = {
130
+ ceil: Math.ceil,
131
+ round: Math.round,
132
+ floor: Math.floor,
133
+ trunc: function trunc(value) {
134
+ return value < 0 ? Math.ceil(value) : Math.floor(value);
135
+ } // Math.trunc is not supported by IE
136
+ };
137
+
138
+ var defaultRoundingMethod = 'trunc';
139
+ function getRoundingMethod(method) {
140
+ return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
141
+ }
142
+
143
+ /**
144
+ * @name endOfDay
145
+ * @category Day Helpers
146
+ * @summary Return the end of a day for the given date.
147
+ *
148
+ * @description
149
+ * Return the end of a day for the given date.
150
+ * The result will be in the local timezone.
151
+ *
152
+ * @param {Date|Number} date - the original date
153
+ * @returns {Date} the end of a day
154
+ * @throws {TypeError} 1 argument required
155
+ *
156
+ * @example
157
+ * // The end of a day for 2 September 2014 11:55:00:
158
+ * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
159
+ * //=> Tue Sep 02 2014 23:59:59.999
160
+ */
161
+ function endOfDay(dirtyDate) {
162
+ requiredArgs(1, arguments);
163
+ var date = toDate(dirtyDate);
164
+ date.setHours(23, 59, 59, 999);
165
+ return date;
166
+ }
167
+
168
+ /**
169
+ * @name endOfMonth
170
+ * @category Month Helpers
171
+ * @summary Return the end of a month for the given date.
172
+ *
173
+ * @description
174
+ * Return the end of a month for the given date.
175
+ * The result will be in the local timezone.
176
+ *
177
+ * @param {Date|Number} date - the original date
178
+ * @returns {Date} the end of a month
179
+ * @throws {TypeError} 1 argument required
180
+ *
181
+ * @example
182
+ * // The end of a month for 2 September 2014 11:55:00:
183
+ * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
184
+ * //=> Tue Sep 30 2014 23:59:59.999
185
+ */
186
+ function endOfMonth(dirtyDate) {
187
+ requiredArgs(1, arguments);
188
+ var date = toDate(dirtyDate);
189
+ var month = date.getMonth();
190
+ date.setFullYear(date.getFullYear(), month + 1, 0);
191
+ date.setHours(23, 59, 59, 999);
192
+ return date;
193
+ }
194
+
195
+ /**
196
+ * @name isLastDayOfMonth
197
+ * @category Month Helpers
198
+ * @summary Is the given date the last day of a month?
199
+ *
200
+ * @description
201
+ * Is the given date the last day of a month?
202
+ *
203
+ * @param {Date|Number} date - the date to check
204
+ * @returns {Boolean} the date is the last day of a month
205
+ * @throws {TypeError} 1 argument required
206
+ *
207
+ * @example
208
+ * // Is 28 February 2014 the last day of a month?
209
+ * const result = isLastDayOfMonth(new Date(2014, 1, 28))
210
+ * //=> true
211
+ */
212
+ function isLastDayOfMonth(dirtyDate) {
213
+ requiredArgs(1, arguments);
214
+ var date = toDate(dirtyDate);
215
+ return endOfDay(date).getTime() === endOfMonth(date).getTime();
216
+ }
217
+
218
+ /**
219
+ * @name differenceInMonths
220
+ * @category Month Helpers
221
+ * @summary Get the number of full months between the given dates.
222
+ *
223
+ * @description
224
+ * Get the number of full months between the given dates using trunc as a default rounding method.
225
+ *
226
+ * @param {Date|Number} dateLeft - the later date
227
+ * @param {Date|Number} dateRight - the earlier date
228
+ * @returns {Number} the number of full months
229
+ * @throws {TypeError} 2 arguments required
230
+ *
231
+ * @example
232
+ * // How many full months are between 31 January 2014 and 1 September 2014?
233
+ * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
234
+ * //=> 7
235
+ */
236
+ function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
237
+ requiredArgs(2, arguments);
238
+ var dateLeft = toDate(dirtyDateLeft);
239
+ var dateRight = toDate(dirtyDateRight);
240
+ var sign = compareAsc(dateLeft, dateRight);
241
+ var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));
242
+ var result;
243
+
244
+ // Check for the difference of less than month
245
+ if (difference < 1) {
246
+ result = 0;
247
+ } else {
248
+ if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {
249
+ // This will check if the date is end of Feb and assign a higher end of month date
250
+ // to compare it with Jan
251
+ dateLeft.setDate(30);
252
+ }
253
+ dateLeft.setMonth(dateLeft.getMonth() - sign * difference);
254
+
255
+ // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full
256
+ // If so, result must be decreased by 1 in absolute value
257
+ var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign;
258
+
259
+ // Check for cases of one full calendar month
260
+ if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {
261
+ isLastMonthNotFull = false;
262
+ }
263
+ result = sign * (difference - Number(isLastMonthNotFull));
264
+ }
265
+
266
+ // Prevent negative zero
267
+ return result === 0 ? 0 : result;
268
+ }
269
+
270
+ /**
271
+ * @name differenceInSeconds
272
+ * @category Second Helpers
273
+ * @summary Get the number of seconds between the given dates.
274
+ *
275
+ * @description
276
+ * Get the number of seconds between the given dates.
277
+ *
278
+ * @param {Date|Number} dateLeft - the later date
279
+ * @param {Date|Number} dateRight - the earlier date
280
+ * @param {Object} [options] - an object with options.
281
+ * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
282
+ * @returns {Number} the number of seconds
283
+ * @throws {TypeError} 2 arguments required
284
+ *
285
+ * @example
286
+ * // How many seconds are between
287
+ * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
288
+ * const result = differenceInSeconds(
289
+ * new Date(2014, 6, 2, 12, 30, 20, 0),
290
+ * new Date(2014, 6, 2, 12, 30, 7, 999)
291
+ * )
292
+ * //=> 12
293
+ */
294
+ function differenceInSeconds(dateLeft, dateRight, options) {
295
+ requiredArgs(2, arguments);
296
+ var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;
297
+ return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
298
+ }
299
+
300
+ function assign(target, object) {
301
+ if (target == null) {
302
+ throw new TypeError('assign requires that input parameter not be null or undefined');
303
+ }
304
+ for (var property in object) {
305
+ if (Object.prototype.hasOwnProperty.call(object, property)) {
306
+ target[property] = object[property];
307
+ }
308
+ }
309
+ return target;
310
+ }
311
+
312
+ function cloneObject(object) {
313
+ return assign({}, object);
314
+ }
315
+
316
+ var MINUTES_IN_DAY = 1440;
317
+ var MINUTES_IN_ALMOST_TWO_DAYS = 2520;
318
+ var MINUTES_IN_MONTH = 43200;
319
+ var MINUTES_IN_TWO_MONTHS = 86400;
320
+
321
+ /**
322
+ * @name formatDistance
323
+ * @category Common Helpers
324
+ * @summary Return the distance between the given dates in words.
325
+ *
326
+ * @description
327
+ * Return the distance between the given dates in words.
328
+ *
329
+ * | Distance between dates | Result |
330
+ * |-------------------------------------------------------------------|---------------------|
331
+ * | 0 ... 30 secs | less than a minute |
332
+ * | 30 secs ... 1 min 30 secs | 1 minute |
333
+ * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |
334
+ * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |
335
+ * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |
336
+ * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |
337
+ * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |
338
+ * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |
339
+ * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |
340
+ * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |
341
+ * | 1 yr ... 1 yr 3 months | about 1 year |
342
+ * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |
343
+ * | 1 yr 9 months ... 2 yrs | almost 2 years |
344
+ * | N yrs ... N yrs 3 months | about N years |
345
+ * | N yrs 3 months ... N yrs 9 months | over N years |
346
+ * | N yrs 9 months ... N+1 yrs | almost N+1 years |
347
+ *
348
+ * With `options.includeSeconds == true`:
349
+ * | Distance between dates | Result |
350
+ * |------------------------|----------------------|
351
+ * | 0 secs ... 5 secs | less than 5 seconds |
352
+ * | 5 secs ... 10 secs | less than 10 seconds |
353
+ * | 10 secs ... 20 secs | less than 20 seconds |
354
+ * | 20 secs ... 40 secs | half a minute |
355
+ * | 40 secs ... 60 secs | less than a minute |
356
+ * | 60 secs ... 90 secs | 1 minute |
357
+ *
358
+ * @param {Date|Number} date - the date
359
+ * @param {Date|Number} baseDate - the date to compare with
360
+ * @param {Object} [options] - an object with options.
361
+ * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed
362
+ * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first
363
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
364
+ * @returns {String} the distance in words
365
+ * @throws {TypeError} 2 arguments required
366
+ * @throws {RangeError} `date` must not be Invalid Date
367
+ * @throws {RangeError} `baseDate` must not be Invalid Date
368
+ * @throws {RangeError} `options.locale` must contain `formatDistance` property
369
+ *
370
+ * @example
371
+ * // What is the distance between 2 July 2014 and 1 January 2015?
372
+ * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))
373
+ * //=> '6 months'
374
+ *
375
+ * @example
376
+ * // What is the distance between 1 January 2015 00:00:15
377
+ * // and 1 January 2015 00:00:00, including seconds?
378
+ * const result = formatDistance(
379
+ * new Date(2015, 0, 1, 0, 0, 15),
380
+ * new Date(2015, 0, 1, 0, 0, 0),
381
+ * { includeSeconds: true }
382
+ * )
383
+ * //=> 'less than 20 seconds'
384
+ *
385
+ * @example
386
+ * // What is the distance from 1 January 2016
387
+ * // to 1 January 2015, with a suffix?
388
+ * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {
389
+ * addSuffix: true
390
+ * })
391
+ * //=> 'about 1 year ago'
392
+ *
393
+ * @example
394
+ * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?
395
+ * import { eoLocale } from 'date-fns/locale/eo'
396
+ * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {
397
+ * locale: eoLocale
398
+ * })
399
+ * //=> 'pli ol 1 jaro'
400
+ */
401
+
402
+ function formatDistance(dirtyDate, dirtyBaseDate, options) {
403
+ var _ref, _options$locale;
404
+ requiredArgs(2, arguments);
405
+ var defaultOptions = getDefaultOptions();
406
+ var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
407
+ if (!locale$1.formatDistance) {
408
+ throw new RangeError('locale must contain formatDistance property');
409
+ }
410
+ var comparison = compareAsc(dirtyDate, dirtyBaseDate);
411
+ if (isNaN(comparison)) {
412
+ throw new RangeError('Invalid time value');
413
+ }
414
+ var localizeOptions = assign(cloneObject(options), {
415
+ addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),
416
+ comparison: comparison
417
+ });
418
+ var dateLeft;
419
+ var dateRight;
420
+ if (comparison > 0) {
421
+ dateLeft = toDate(dirtyBaseDate);
422
+ dateRight = toDate(dirtyDate);
423
+ } else {
424
+ dateLeft = toDate(dirtyDate);
425
+ dateRight = toDate(dirtyBaseDate);
426
+ }
427
+ var seconds = differenceInSeconds(dateRight, dateLeft);
428
+ var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;
429
+ var minutes = Math.round((seconds - offsetInSeconds) / 60);
430
+ var months;
431
+
432
+ // 0 up to 2 mins
433
+ if (minutes < 2) {
434
+ if (options !== null && options !== void 0 && options.includeSeconds) {
435
+ if (seconds < 5) {
436
+ return locale$1.formatDistance('lessThanXSeconds', 5, localizeOptions);
437
+ } else if (seconds < 10) {
438
+ return locale$1.formatDistance('lessThanXSeconds', 10, localizeOptions);
439
+ } else if (seconds < 20) {
440
+ return locale$1.formatDistance('lessThanXSeconds', 20, localizeOptions);
441
+ } else if (seconds < 40) {
442
+ return locale$1.formatDistance('halfAMinute', 0, localizeOptions);
443
+ } else if (seconds < 60) {
444
+ return locale$1.formatDistance('lessThanXMinutes', 1, localizeOptions);
445
+ } else {
446
+ return locale$1.formatDistance('xMinutes', 1, localizeOptions);
447
+ }
448
+ } else {
449
+ if (minutes === 0) {
450
+ return locale$1.formatDistance('lessThanXMinutes', 1, localizeOptions);
451
+ } else {
452
+ return locale$1.formatDistance('xMinutes', minutes, localizeOptions);
453
+ }
454
+ }
455
+
456
+ // 2 mins up to 0.75 hrs
457
+ } else if (minutes < 45) {
458
+ return locale$1.formatDistance('xMinutes', minutes, localizeOptions);
459
+
460
+ // 0.75 hrs up to 1.5 hrs
461
+ } else if (minutes < 90) {
462
+ return locale$1.formatDistance('aboutXHours', 1, localizeOptions);
463
+
464
+ // 1.5 hrs up to 24 hrs
465
+ } else if (minutes < MINUTES_IN_DAY) {
466
+ var hours = Math.round(minutes / 60);
467
+ return locale$1.formatDistance('aboutXHours', hours, localizeOptions);
468
+
469
+ // 1 day up to 1.75 days
470
+ } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {
471
+ return locale$1.formatDistance('xDays', 1, localizeOptions);
472
+
473
+ // 1.75 days up to 30 days
474
+ } else if (minutes < MINUTES_IN_MONTH) {
475
+ var days = Math.round(minutes / MINUTES_IN_DAY);
476
+ return locale$1.formatDistance('xDays', days, localizeOptions);
477
+
478
+ // 1 month up to 2 months
479
+ } else if (minutes < MINUTES_IN_TWO_MONTHS) {
480
+ months = Math.round(minutes / MINUTES_IN_MONTH);
481
+ return locale$1.formatDistance('aboutXMonths', months, localizeOptions);
482
+ }
483
+ months = differenceInMonths(dateRight, dateLeft);
484
+
485
+ // 2 months up to 12 months
486
+ if (months < 12) {
487
+ var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);
488
+ return locale$1.formatDistance('xMonths', nearestMonth, localizeOptions);
489
+
490
+ // 1 year up to max Date
491
+ } else {
492
+ var monthsSinceStartOfYear = months % 12;
493
+ var years = Math.floor(months / 12);
494
+
495
+ // N years up to 1 years 3 months
496
+ if (monthsSinceStartOfYear < 3) {
497
+ return locale$1.formatDistance('aboutXYears', years, localizeOptions);
498
+
499
+ // N years 3 months up to N years 9 months
500
+ } else if (monthsSinceStartOfYear < 9) {
501
+ return locale$1.formatDistance('overXYears', years, localizeOptions);
502
+
503
+ // N years 9 months up to N year 12 months
504
+ } else {
505
+ return locale$1.formatDistance('almostXYears', years + 1, localizeOptions);
506
+ }
507
+ }
508
+ }
509
+
19
510
  /**
20
511
  * Various helpers to identify available operations for a template by a user.
21
512
  *
@@ -42,50 +533,94 @@ var userCanCreateTemplate = function (session) {
42
533
  return userCanCreatePersonalTemplate(session) || userCanCreateOrgTemplate(session) || userCanCreatePublicTemplate(session);
43
534
  };
44
535
 
45
- const verdocsTemplatesListCss = "verdocs-templates-list{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-templates-list .template{display:-ms-flexbox;display:flex;margin:3px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #eee;background:#fff;padding:8px 20px}verdocs-templates-list .template svg{width:32px;height:32px}@media screen and (max-width: 1300px){verdocs-templates-list .template svg{width:24px;height:24px}}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:18px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;height:50px;margin:0 12px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}";
536
+ const verdocsTemplatesListCss = "verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template{width:100%;margin:3px 0;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#f5f5fa}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:18px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .ownership{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 100px;flex:0 0 100px;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .ownership svg{width:24px;height:24px;margin-right:8px}verdocs-templates-list .last-used{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 280px;flex:0 0 280px;font-size:16px;margin:0 0 0 10px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .last-used svg{width:24px;height:24px;margin-right:8px}verdocs-templates-list .usage{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage svg{width:24px;height:24px;margin-right:8px}";
46
537
 
47
- const TemplateIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>`;
538
+ const TemplateIcon = `<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="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>`;
539
+ const GlobeAltIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>`;
540
+ const LockClosedIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>`;
541
+ const BuildingOfficeIcon = `<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="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>`;
542
+ const CalendarIcon = `<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="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5" /></svg>`;
543
+ const EnvelopeIcon = `<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="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>`;
544
+ const SharingFilters = [
545
+ { value: 'all', label: 'All' },
546
+ { value: 'personal', label: 'Personal' },
547
+ { value: 'shared', label: 'Shared' },
548
+ { value: 'public', label: 'Public' },
549
+ ];
550
+ const StarredFilters = [
551
+ { value: 'all', label: 'All' },
552
+ { value: 'starred', label: 'Starred' },
553
+ { value: 'unstarred', label: 'Not Starred' },
554
+ ];
555
+ const SortOptions = [
556
+ { value: 'name', label: 'Name' },
557
+ { value: 'created_at', label: 'Created' },
558
+ { value: 'updated_at', label: 'Last Updated' },
559
+ { value: 'last_used_at', label: 'Last Used' },
560
+ { value: 'counter', label: 'Most Used' },
561
+ { value: 'star_counter', label: 'Most Starred' },
562
+ ];
48
563
  const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
49
564
  constructor() {
50
565
  super();
51
566
  this.__registerHost();
52
567
  this.sdkError = createEvent(this, "sdkError", 7);
53
- this.viewEnvelope = createEvent(this, "viewEnvelope", 7);
54
- this.finishLater = createEvent(this, "finishLater", 7);
55
- this.viewAll = createEvent(this, "viewAll", 7);
56
- this.handleOptionSelected = (id, summary) => {
57
- console.log('option selected', id, summary);
58
- if (id === 'createdoc') ;
59
- else if (id === 'createlink') {
60
- // Create a link to this template
61
- VerdocsToast('Link creation is coming soon!');
568
+ this.viewTemplate = createEvent(this, "viewTemplate", 7);
569
+ this.editTemplate = createEvent(this, "editTemplate", 7);
570
+ this.templateDeleted = createEvent(this, "templateDeleted", 7);
571
+ this.handleOptionSelected = (option, template) => {
572
+ var _a, _b;
573
+ if (option === 'createdoc') {
574
+ (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: template });
575
+ }
576
+ else if (option === 'createlink') {
577
+ VerdocsToast('This feature is coming soon!');
578
+ }
579
+ else if (option === 'signnow') {
580
+ VerdocsToast('This feature is coming soon!');
581
+ }
582
+ else if (option === 'submitted') {
583
+ VerdocsToast('This feature is coming soon!');
584
+ }
585
+ else if (option === 'link') {
586
+ VerdocsToast('This feature is coming soon!');
587
+ }
588
+ else if (option === 'edit') {
589
+ (_b = this.editTemplate) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, template: template });
590
+ }
591
+ else if (option === 'delete') {
592
+ this.confirmDelete = template;
62
593
  }
63
- else ;
64
594
  };
65
595
  this.endpoint = VerdocsEndpoint.getDefault();
66
- this.items = 5;
67
- this.view = undefined;
68
- this.page = 0;
69
- this.count = 0;
70
- this.loading = true;
71
- this.name = '';
72
- this.containing = '';
73
596
  this.sharing = 'all';
74
597
  this.starred = 'all';
75
598
  this.sort = 'updated_at';
76
- this.selectedTemplates = [];
599
+ this.name = '';
600
+ this.selectedPage = 0;
601
+ this.count = 0;
602
+ this.loading = true;
603
+ this.confirmDelete = null;
77
604
  this.templates = [];
78
605
  }
79
606
  async componentWillLoad() {
607
+ this.endpoint.loadSession();
608
+ if (!this.endpoint.session) {
609
+ console.log('[TEMPLATES] Must be authenticated');
610
+ return;
611
+ }
612
+ return this.queryTemplates();
613
+ }
614
+ async queryTemplates() {
80
615
  var _a, _b, _c;
81
616
  try {
82
617
  this.endpoint.loadSession();
83
618
  if (!this.endpoint.session) {
84
- console.log('[ENVELOPES] Must be authenticated');
619
+ console.log('[TEMPLATES] Must be authenticated');
85
620
  return;
86
621
  }
87
622
  let queryParams = {
88
- page: this.page,
623
+ page: this.selectedPage,
89
624
  ascending: this.sort === 'name' || this.sort === 'star_counter',
90
625
  sort_by: this.sort,
91
626
  };
@@ -94,20 +629,20 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
94
629
  queryParams.is_public = this.sharing === 'public';
95
630
  }
96
631
  if (this.starred !== 'all') {
97
- // TODO: Update the js-sdk type
98
- queryParams['is_starred'] = this.starred === 'starred';
632
+ queryParams.is_starred = this.starred === 'starred';
99
633
  }
100
634
  if (this.name.trim() !== '') {
101
635
  queryParams.name = this.name.trim();
102
636
  }
637
+ console.log('qp', queryParams, this.name);
103
638
  const response = await getSummary(this.endpoint, queryParams);
104
- console.log('[TEMPLATES] Got envelopes', response);
639
+ console.log('[TEMPLATES] Got templates', response);
105
640
  this.templates = response.result;
106
641
  this.count = response.total;
107
642
  this.loading = false;
108
643
  }
109
644
  catch (e) {
110
- console.log('[ENVELOPES] Error with preview session', e);
645
+ console.log('[TEMPLATES] Error with preview session', e);
111
646
  (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
112
647
  }
113
648
  }
@@ -131,15 +666,35 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
131
666
  // return hasPermission && canPreview;
132
667
  return hasPermission;
133
668
  }
669
+ deleteTemplate(template) {
670
+ this.confirmDelete = null;
671
+ deleteTemplate(this.endpoint, template.id)
672
+ .then(() => {
673
+ var _a;
674
+ console.log('[TEMPLATES] Deleted template', template);
675
+ (_a = this.templateDeleted) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: template });
676
+ return this.queryTemplates();
677
+ })
678
+ .catch(e => {
679
+ var _a, _b, _c;
680
+ console.log('[TEMPLATES] Error deleting template', template);
681
+ (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
682
+ });
683
+ }
134
684
  render() {
135
- if (this.loading) {
136
- return (h(Host, { style: { minHeight: '300px' } }, h("verdocs-loader", null)));
137
- }
138
- return (h(Host, null, h("div", { class: "header" }, h("div", { class: "filter" }, h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onInput: (e) => {
685
+ return (h(Host, null, h("div", { class: "header" }, h("div", { class: "filter" }, h("verdocs-text-input", { id: "verdocs-filter-name", value: this.name, autocomplete: "off", placeholder: "Filter by Name...", onFocusout: (e) => {
139
686
  this.name = e.target.value;
140
- } })), h("div", { class: "flex flex-row gap-3 items-center" }, h("div", { class: "filter" }, h("verdocs-text-input", { id: "verdocs-filter-containing", value: this.containing, autocomplete: "off", placeholder: "Fields Containing...", onInput: (e) => {
141
- this.containing = e.target.value;
142
- } }))), h("div", { class: "flex flex-1" })), this.templates.slice(0, this.items || 100).map(summary => {
687
+ return this.queryTemplates();
688
+ } })), h("verdocs-quick-filter", { label: "Sharing", value: this.sharing, options: SharingFilters, onOptionSelected: e => {
689
+ this.sharing = e.detail.value;
690
+ return this.queryTemplates();
691
+ } }), h("verdocs-quick-filter", { label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
692
+ this.starred = e.detail.value;
693
+ return this.queryTemplates();
694
+ } }), h("verdocs-quick-filter", { label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
695
+ this.sort = e.detail.value;
696
+ return this.queryTemplates();
697
+ } }), this.loading && h("verdocs-spinner", { mode: "dark", size: 24 }), h("div", { style: { display: 'flex', flex: '1' } })), this.templates.map(summary => {
143
698
  const MENU_OPTIONS = [
144
699
  // [disabled]="!canSendEnvelope"
145
700
  { label: 'Preview / Send', id: 'createdoc', disabled: !this.canPreview(summary) },
@@ -155,119 +710,75 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
155
710
  { label: 'Edit', id: 'edit', disabled: !this.canEdit(summary) },
156
711
  { label: 'Delete', id: 'delete', disabled: !this.canDelete(summary) },
157
712
  ];
158
- return (h("div", { class: "template", onClick: () => { } }, h("span", { innerHTML: TemplateIcon }), h("div", { class: "name" }, summary.name), h("div", { class: "spacer" }), h("div", { style: { marginTop: '12px' } }, h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, summary) })))
159
- //
160
- // <div class="envelope" key={envelope.id} onClick={() => this.viewEnvelope?.emit({endpoint: this.endpoint, envelope})}>
161
- // <div class="inner">
162
- // <verdocs-checkbox
163
- // checked={this.selectedEnvelopes.findIndex(e => e.id === envelope.id) !== -1}
164
- // onClick={e => e.stopPropagation()} // So this doesn't trigger navigation
165
- // onInput={(e: any) => {
166
- // if (e.target.checked) {
167
- // this.selectedEnvelopes = [...this.selectedEnvelopes, envelope];
168
- // } else {
169
- // this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);
170
- // }
171
- // }}
172
- // />
173
- //
174
- // <div class="vert-spacer" />
175
- //
176
- // <span innerHTML={DocumentIcon} />
177
- //
178
- // <div class="envelope-name">
179
- // {envelope.name}:&nbsp; <div class="envelope-recipients">{envelope.recipients.map(r => r.full_name).join(', ')}</div>
180
- // </div>
181
- //
182
- // <div class="vert-spacer" />
183
- //
184
- // <verdocs-status-indicator envelope={envelope} style={{width: '125px'}} />
185
- //
186
- // <div class="vert-spacer" />
187
- //
188
- // <div class="last-modified">{new Date(envelope.updated_at).toLocaleString()}</div>
189
- //
190
- // <div class="vert-spacer" />
191
- //
192
- // <verdocs-dropdown
193
- // options={[
194
- // {label: 'View Envelope', id: 'view'},
195
- // {label: 'Finish Envelope', id: 'finish', disabled: !userCanFinish},
196
- // {label: 'Download', id: 'download'},
197
- // {label: 'Cancel', id: 'cancel', disabled: !userCanCancel},
198
- // ]}
199
- // onOptionSelected={e => {
200
- // switch (e.detail.id) {
201
- // case 'view':
202
- // this.viewEnvelope?.emit({endpoint: this.endpoint, envelope});
203
- // break;
204
- // case 'finish':
205
- // this.finishLater?.emit({endpoint: this.endpoint, envelope});
206
- // break;
207
- // case 'download':
208
- // this.downloadEnvelope(envelope);
209
- // break;
210
- // case 'cancel':
211
- // if (window.confirm('Are you sure you want to cancel this envelope?')) {
212
- // cancelEnvelope(this.endpoint, envelope.id)
213
- // .then(r => {
214
- // console.log('Cancel result', r);
215
- // VerdocsToast('Envelope canceled');
216
- // })
217
- // .catch(e => {
218
- // console.log('cxl error', e);
219
- // VerdocsToast('Unable to cancel envelope: ' + e.messabge, {style: 'error'});
220
- // });
221
- // }
222
- // break;
223
- // }
224
- // }}
225
- // />
226
- // </div>
227
- // </div>
228
- );
229
- }), !this.templates.length ? (h("div", { class: "mt-4 border-2 px-20 py-20 text-center" }, "No matching templates found. Please adjust your filters and try again.")) : (h("div", null)
230
- // <Pagination page={this.page} total={this.count} onSelectPage={setPage} />
231
- )));
713
+ return (h("div", { class: "template", onClick: () => {
714
+ var _a;
715
+ (_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: summary });
716
+ } }, h("div", { class: "inner" }, h("verdocs-template-star", { template: summary, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("span", { innerHTML: TemplateIcon }), h("div", { class: "name" }, summary.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon }), summary.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, h("span", { innerHTML: CalendarIcon }), h("span", { style: { marginRight: '5px' } }, "Last Used:"), summary.last_used_at ? formatDistance(new Date(summary.last_used_at), new Date()) : 'Never'), h("div", { class: "spacer ownership-spacer" }), summary.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !summary.is_public && !summary.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !summary.is_public && summary.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, summary) }))));
717
+ }), !this.templates.length ? (h("div", { class: "empty-text" }, "No matching templates found. Please adjust your filters and try again.")) : (h("div", { style: { marginTop: '10px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: 10, itemCount: this.count, onSelectPage: e => {
718
+ this.selectedPage = e.detail.selectedPage;
719
+ return this.queryTemplates();
720
+ } }))), this.confirmDelete && (h("verdocs-ok-dialog", { heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
232
721
  }
233
722
  static get style() { return verdocsTemplatesListCss; }
234
723
  }, [0, "verdocs-templates-list", {
235
724
  "endpoint": [16],
236
- "items": [2],
237
- "view": [513],
238
- "page": [514],
725
+ "sharing": [1537],
726
+ "starred": [1537],
727
+ "sort": [1537],
728
+ "name": [1537],
729
+ "selectedPage": [1538, "selected-page"],
239
730
  "count": [32],
240
731
  "loading": [32],
241
- "name": [32],
242
- "containing": [32],
243
- "sharing": [32],
244
- "starred": [32],
245
- "sort": [32],
246
- "selectedTemplates": [32],
732
+ "confirmDelete": [32],
247
733
  "templates": [32]
248
734
  }]);
249
735
  function defineCustomElement$1() {
250
736
  if (typeof customElements === "undefined") {
251
737
  return;
252
738
  }
253
- const components = ["verdocs-templates-list", "verdocs-dropdown", "verdocs-help-icon", "verdocs-loader", "verdocs-text-input"];
739
+ const components = ["verdocs-templates-list", "verdocs-button", "verdocs-dropdown", "verdocs-help-icon", "verdocs-ok-dialog", "verdocs-pagination", "verdocs-quick-filter", "verdocs-spinner", "verdocs-template-star", "verdocs-text-input"];
254
740
  components.forEach(tagName => { switch (tagName) {
255
741
  case "verdocs-templates-list":
256
742
  if (!customElements.get(tagName)) {
257
743
  customElements.define(tagName, VerdocsTemplatesList$1);
258
744
  }
259
745
  break;
746
+ case "verdocs-button":
747
+ if (!customElements.get(tagName)) {
748
+ defineCustomElement$a();
749
+ }
750
+ break;
260
751
  case "verdocs-dropdown":
261
752
  if (!customElements.get(tagName)) {
262
- defineCustomElement$5();
753
+ defineCustomElement$9();
263
754
  }
264
755
  break;
265
756
  case "verdocs-help-icon":
757
+ if (!customElements.get(tagName)) {
758
+ defineCustomElement$8();
759
+ }
760
+ break;
761
+ case "verdocs-ok-dialog":
762
+ if (!customElements.get(tagName)) {
763
+ defineCustomElement$7();
764
+ }
765
+ break;
766
+ case "verdocs-pagination":
767
+ if (!customElements.get(tagName)) {
768
+ defineCustomElement$6();
769
+ }
770
+ break;
771
+ case "verdocs-quick-filter":
772
+ if (!customElements.get(tagName)) {
773
+ defineCustomElement$5();
774
+ }
775
+ break;
776
+ case "verdocs-spinner":
266
777
  if (!customElements.get(tagName)) {
267
778
  defineCustomElement$4();
268
779
  }
269
780
  break;
270
- case "verdocs-loader":
781
+ case "verdocs-template-star":
271
782
  if (!customElements.get(tagName)) {
272
783
  defineCustomElement$3();
273
784
  }