@verdocs/web-sdk 1.4.0 → 1.4.7

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 (361) hide show
  1. package/dist/cjs/Auth-4ec35ac7.js +97 -0
  2. package/dist/cjs/{Token-b86e5335.js → Token-ac80819a.js} +3 -135
  3. package/dist/{verdocs-web-sdk/buffer-es6-5cef4368.js → cjs/buffer-es6-bc8199b1.js} +47 -14
  4. package/dist/cjs/index-589f3be8.js +1356 -0
  5. package/dist/cjs/loader.cjs.js +3 -19
  6. package/dist/cjs/{index-9c6e5f50.js → popper-71bf3058.js} +0 -186
  7. package/dist/cjs/verdocs-auth.cjs.entry.js +10 -206
  8. package/dist/cjs/verdocs-button_2.cjs.entry.js +104 -0
  9. package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-dropdown_12.cjs.entry.js} +3314 -51
  10. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  16. package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +228 -0
  17. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -1512
  20. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +4 -90
  22. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +2 -2
  26. package/dist/cjs/verdocs-web-sdk.cjs.js +5 -117
  27. package/dist/collection/collection-manifest.json +1 -1
  28. package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
  29. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +0 -1
  30. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
  31. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -2
  32. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +4 -4
  33. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +2 -2
  34. package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
  35. package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
  36. package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
  37. package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
  38. package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
  39. package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
  40. package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
  41. package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
  42. package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
  43. package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
  44. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
  45. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
  46. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
  47. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
  48. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +1 -1
  49. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +7 -9
  50. package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +1 -1
  51. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
  52. package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -1
  53. package/dist/components/Auth.js +23 -88
  54. package/dist/components/Token.js +2 -135
  55. package/dist/components/buffer-es6.js +39 -14
  56. package/dist/components/index.js +0 -4
  57. package/dist/components/{index3.js → popper.js} +0 -186
  58. package/dist/components/verdocs-auth.js +6 -201
  59. package/dist/components/verdocs-button2.js +2 -3
  60. package/dist/components/verdocs-dropdown2.js +2 -2
  61. package/dist/components/verdocs-field-attachment2.js +2 -2
  62. package/dist/components/verdocs-field-checkbox2.js +2 -2
  63. package/dist/components/verdocs-field-date2.js +2 -214
  64. package/dist/components/verdocs-field-dropdown2.js +2 -2
  65. package/dist/components/verdocs-field-initial2.js +2 -2
  66. package/dist/components/verdocs-field-payment2.js +2 -2
  67. package/dist/components/verdocs-field-radio-button2.js +2 -2
  68. package/dist/components/verdocs-field-signature2.js +2 -2
  69. package/dist/components/verdocs-field-textarea2.js +2 -2
  70. package/dist/components/verdocs-field-textbox2.js +2 -2
  71. package/dist/components/verdocs-initial-dialog2.js +1 -1
  72. package/dist/components/verdocs-kba-dialog.js +2 -2
  73. package/dist/components/verdocs-loader2.js +1 -1
  74. package/dist/components/verdocs-ok-dialog2.js +2 -2
  75. package/dist/components/verdocs-organization-card.js +1 -1
  76. package/dist/components/verdocs-quick-functions.js +2 -2
  77. package/dist/components/verdocs-search-activity2.js +16 -104
  78. package/dist/components/verdocs-search-box2.js +2 -2
  79. package/dist/components/verdocs-search-tabs.js +2 -2
  80. package/dist/components/verdocs-search.js +2 -2
  81. package/dist/components/verdocs-sign.js +2 -1509
  82. package/dist/components/verdocs-signature-dialog2.js +2 -2
  83. package/dist/components/verdocs-status-indicator.js +3 -88
  84. package/dist/components/verdocs-template-card.js +1 -1
  85. package/dist/components/verdocs-template-tags.js +1 -1
  86. package/dist/components/verdocs-text-input2.js +1 -1
  87. package/dist/components/verdocs-toggle.js +1 -1
  88. package/dist/components/verdocs-upload-dialog2.js +2 -2
  89. package/dist/components/verdocs-view2.js +7 -34
  90. package/dist/docs.json +3 -3
  91. package/dist/esm/Auth-15cd42a8.js +92 -0
  92. package/dist/{verdocs-web-sdk/Token-29eea56d.js → esm/Token-ce37bd9d.js} +2 -135
  93. package/dist/{cjs/buffer-es6-b2c1c885.js → esm/buffer-es6-136673c8.js} +38 -15
  94. package/dist/esm/index-859bc689.js +1327 -0
  95. package/dist/esm/loader.js +3 -19
  96. package/dist/esm/{index-432c65a6.js → popper-93ecb064.js} +0 -186
  97. package/dist/esm/verdocs-auth.entry.js +7 -203
  98. package/dist/esm/verdocs-button_2.entry.js +99 -0
  99. package/dist/esm/{verdocs-view.entry.js → verdocs-dropdown_12.entry.js} +3287 -35
  100. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  101. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  102. package/dist/esm/verdocs-loader.entry.js +1 -1
  103. package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
  104. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  105. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  106. package/dist/esm/verdocs-search-activity_2.entry.js +223 -0
  107. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  108. package/dist/esm/verdocs-search.entry.js +2 -2
  109. package/dist/esm/verdocs-sign.entry.js +4 -1512
  110. package/dist/esm/verdocs-signature-dialog.entry.js +2 -2
  111. package/dist/esm/verdocs-status-indicator.entry.js +3 -89
  112. package/dist/esm/verdocs-template-card.entry.js +1 -1
  113. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  114. package/dist/esm/verdocs-toggle.entry.js +1 -1
  115. package/dist/esm/verdocs-upload-dialog.entry.js +2 -2
  116. package/dist/esm/verdocs-web-sdk.js +5 -117
  117. package/dist/esm-es5/Auth-15cd42a8.js +1 -0
  118. package/dist/esm-es5/Token-ce37bd9d.js +1 -0
  119. package/dist/esm-es5/buffer-es6-136673c8.js +7 -0
  120. package/dist/esm-es5/index-859bc689.js +2 -0
  121. package/dist/esm-es5/loader.js +1 -1
  122. package/dist/esm-es5/popper-93ecb064.js +1 -0
  123. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
  125. package/dist/esm-es5/verdocs-dropdown_12.entry.js +23 -0
  126. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  132. package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -0
  133. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -11
  138. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  143. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +4 -2
  144. package/dist/verdocs-web-sdk/index.esm.js +0 -1
  145. package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
  146. package/dist/verdocs-web-sdk/p-0c0b4a10.system.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/p-144e0842.system.entry.js +1 -0
  148. package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
  149. package/dist/verdocs-web-sdk/p-1f55d8ac.system.entry.js +1 -0
  150. package/dist/verdocs-web-sdk/p-2b57857d.system.entry.js +1 -0
  151. package/dist/verdocs-web-sdk/p-2bc58746.js +2 -0
  152. package/dist/verdocs-web-sdk/p-2c161242.system.entry.js +1 -0
  153. package/dist/verdocs-web-sdk/p-39633a02.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/p-432c3151.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/p-4368df79.system.entry.js +23 -0
  156. package/dist/verdocs-web-sdk/p-4c66f794.js +1 -0
  157. package/dist/verdocs-web-sdk/{index.system.js → p-50ea2036.system.js} +0 -0
  158. package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -0
  159. package/dist/verdocs-web-sdk/p-6393b2b4.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/p-66b19637.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/p-6802ef91.system.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/p-69ef22bd.entry.js +1 -0
  163. package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/p-737b2e99.js +1 -0
  165. package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
  166. package/dist/verdocs-web-sdk/p-8730dc92.system.js +1 -0
  167. package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -0
  168. package/dist/verdocs-web-sdk/p-96c0bf40.system.js +1 -0
  169. package/dist/verdocs-web-sdk/p-9b34c794.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-9d8d8c78.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/p-a1143ddb.entry.js +23 -0
  172. package/dist/verdocs-web-sdk/p-a7cfe6fc.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-b9164c4b.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/p-bf2620cb.entry.js +1 -0
  175. package/dist/verdocs-web-sdk/p-c2f97ef9.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-caed7818.system.js +2 -0
  177. package/dist/verdocs-web-sdk/p-cc127684.system.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/p-cd6a2c40.system.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/p-cec13589.system.js +1 -0
  180. package/dist/verdocs-web-sdk/p-d14a6057.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/p-d6206c17.system.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/p-da667373.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/p-e2e643c5.system.entry.js +1 -0
  184. package/dist/verdocs-web-sdk/p-e6e2894e.js +1 -0
  185. package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-ea6d6dc7.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/p-ed5baeb4.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-ef932a87.js +1 -0
  189. package/dist/verdocs-web-sdk/p-f0d0f959.system.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-f0e6fde0.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-f4219236.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-f7e26fbd.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-f814d5cc.system.entry.js +1 -0
  194. package/dist/verdocs-web-sdk/p-fd853e54.system.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -57
  196. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -129
  197. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
  198. package/package.json +4 -4
  199. package/dist/cjs/Auth-0146ddd8.js +0 -161
  200. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  201. package/dist/cjs/css-shim-e9231523.js +0 -6
  202. package/dist/cjs/dom-7fb93981.js +0 -75
  203. package/dist/cjs/index-a24f3b6a.js +0 -3096
  204. package/dist/cjs/index-b5a86b04.js +0 -4
  205. package/dist/cjs/index-c4be37e1.js +0 -54
  206. package/dist/cjs/shadow-css-abc19485.js +0 -389
  207. package/dist/cjs/verdocs-button.cjs.entry.js +0 -49
  208. package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -80
  209. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +0 -59
  210. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +0 -39
  211. package/dist/cjs/verdocs-field-date.cjs.entry.js +0 -2968
  212. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +0 -59
  213. package/dist/cjs/verdocs-field-initial.cjs.entry.js +0 -52
  214. package/dist/cjs/verdocs-field-payment.cjs.entry.js +0 -86
  215. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +0 -48
  216. package/dist/cjs/verdocs-field-signature.cjs.entry.js +0 -52
  217. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +0 -63
  218. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +0 -63
  219. package/dist/cjs/verdocs-search-activity.cjs.entry.js +0 -263
  220. package/dist/cjs/verdocs-search-box.cjs.entry.js +0 -60
  221. package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -62
  222. package/dist/components/index2.js +0 -1
  223. package/dist/components/index4.js +0 -47
  224. package/dist/custom-elements.json +0 -830
  225. package/dist/esm/Auth-4b21fced.js +0 -157
  226. package/dist/esm/Token-29eea56d.js +0 -2458
  227. package/dist/esm/app-globals-0f993ce5.js +0 -3
  228. package/dist/esm/buffer-es6-5cef4368.js +0 -1985
  229. package/dist/esm/css-shim-60f618b9.js +0 -4
  230. package/dist/esm/dom-4eeb3fee.js +0 -73
  231. package/dist/esm/index-97ec070b.js +0 -47
  232. package/dist/esm/index-ddbd60b5.js +0 -3059
  233. package/dist/esm/index-ef172650.js +0 -1
  234. package/dist/esm/shadow-css-02866686.js +0 -387
  235. package/dist/esm/verdocs-button.entry.js +0 -45
  236. package/dist/esm/verdocs-dropdown.entry.js +0 -76
  237. package/dist/esm/verdocs-field-attachment.entry.js +0 -55
  238. package/dist/esm/verdocs-field-checkbox.entry.js +0 -35
  239. package/dist/esm/verdocs-field-date.entry.js +0 -2964
  240. package/dist/esm/verdocs-field-dropdown.entry.js +0 -55
  241. package/dist/esm/verdocs-field-initial.entry.js +0 -48
  242. package/dist/esm/verdocs-field-payment.entry.js +0 -82
  243. package/dist/esm/verdocs-field-radio-button.entry.js +0 -44
  244. package/dist/esm/verdocs-field-signature.entry.js +0 -48
  245. package/dist/esm/verdocs-field-textarea.entry.js +0 -59
  246. package/dist/esm/verdocs-field-textbox.entry.js +0 -59
  247. package/dist/esm/verdocs-search-activity.entry.js +0 -259
  248. package/dist/esm/verdocs-search-box.entry.js +0 -56
  249. package/dist/esm/verdocs-text-input.entry.js +0 -58
  250. package/dist/esm-es5/Auth-4b21fced.js +0 -1
  251. package/dist/esm-es5/Token-29eea56d.js +0 -1
  252. package/dist/esm-es5/app-globals-0f993ce5.js +0 -1
  253. package/dist/esm-es5/buffer-es6-5cef4368.js +0 -7
  254. package/dist/esm-es5/css-shim-60f618b9.js +0 -1
  255. package/dist/esm-es5/dom-4eeb3fee.js +0 -21
  256. package/dist/esm-es5/index-432c65a6.js +0 -1
  257. package/dist/esm-es5/index-97ec070b.js +0 -1
  258. package/dist/esm-es5/index-ddbd60b5.js +0 -2
  259. package/dist/esm-es5/index-ef172650.js +0 -1
  260. package/dist/esm-es5/shadow-css-02866686.js +0 -12
  261. package/dist/esm-es5/verdocs-button.entry.js +0 -1
  262. package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
  263. package/dist/esm-es5/verdocs-field-attachment.entry.js +0 -1
  264. package/dist/esm-es5/verdocs-field-checkbox.entry.js +0 -1
  265. package/dist/esm-es5/verdocs-field-date.entry.js +0 -1
  266. package/dist/esm-es5/verdocs-field-dropdown.entry.js +0 -1
  267. package/dist/esm-es5/verdocs-field-initial.entry.js +0 -1
  268. package/dist/esm-es5/verdocs-field-payment.entry.js +0 -1
  269. package/dist/esm-es5/verdocs-field-radio-button.entry.js +0 -1
  270. package/dist/esm-es5/verdocs-field-signature.entry.js +0 -1
  271. package/dist/esm-es5/verdocs-field-textarea.entry.js +0 -1
  272. package/dist/esm-es5/verdocs-field-textbox.entry.js +0 -1
  273. package/dist/esm-es5/verdocs-search-activity.entry.js +0 -1
  274. package/dist/esm-es5/verdocs-search-box.entry.js +0 -1
  275. package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
  276. package/dist/esm-es5/verdocs-view.entry.js +0 -23
  277. package/dist/verdocs-web-sdk/Auth-4b21fced.js +0 -157
  278. package/dist/verdocs-web-sdk/Auth-82e38539.system.js +0 -1
  279. package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +0 -1
  280. package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +0 -3
  281. package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +0 -1
  282. package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +0 -7
  283. package/dist/verdocs-web-sdk/css-shim-60f618b9.js +0 -4
  284. package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +0 -1
  285. package/dist/verdocs-web-sdk/dom-4eeb3fee.js +0 -73
  286. package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +0 -21
  287. package/dist/verdocs-web-sdk/index-027b383e.system.js +0 -1
  288. package/dist/verdocs-web-sdk/index-06e036a1.system.js +0 -1
  289. package/dist/verdocs-web-sdk/index-432c65a6.js +0 -1974
  290. package/dist/verdocs-web-sdk/index-5d49316f.system.js +0 -1
  291. package/dist/verdocs-web-sdk/index-6465280a.system.js +0 -2
  292. package/dist/verdocs-web-sdk/index-97ec070b.js +0 -47
  293. package/dist/verdocs-web-sdk/index-ddbd60b5.js +0 -3059
  294. package/dist/verdocs-web-sdk/index-ef172650.js +0 -1
  295. package/dist/verdocs-web-sdk/shadow-css-02866686.js +0 -387
  296. package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +0 -13
  297. package/dist/verdocs-web-sdk/verdocs-auth.entry.js +0 -302
  298. package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +0 -1
  299. package/dist/verdocs-web-sdk/verdocs-button.entry.js +0 -45
  300. package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +0 -1
  301. package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +0 -76
  302. package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +0 -1
  303. package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +0 -55
  304. package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +0 -1
  305. package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +0 -35
  306. package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +0 -1
  307. package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +0 -2964
  308. package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +0 -1
  309. package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +0 -55
  310. package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +0 -1
  311. package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +0 -48
  312. package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +0 -82
  314. package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +0 -1
  315. package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +0 -44
  316. package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +0 -1
  317. package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +0 -48
  318. package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +0 -1
  319. package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +0 -59
  320. package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +0 -1
  321. package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +0 -59
  322. package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +0 -1
  323. package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +0 -239
  324. package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +0 -1
  325. package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +0 -77
  326. package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/verdocs-loader.entry.js +0 -15
  328. package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +0 -1
  329. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +0 -44
  330. package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +0 -1
  331. package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +0 -18
  332. package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +0 -1
  333. package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +0 -27
  334. package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +0 -259
  336. package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +0 -1
  337. package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +0 -56
  338. package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +0 -1
  339. package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +0 -16
  340. package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/verdocs-search.entry.js +0 -15
  342. package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +0 -1
  343. package/dist/verdocs-web-sdk/verdocs-sign.entry.js +0 -1995
  344. package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +0 -1
  345. package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +0 -235
  346. package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +0 -7611
  348. package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +0 -34
  350. package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +0 -16
  352. package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +0 -58
  354. package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +0 -32
  356. package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +0 -1
  357. package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +0 -119
  358. package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +0 -1
  359. package/dist/verdocs-web-sdk/verdocs-view.entry.js +0 -16118
  360. package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +0 -23
  361. package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +0 -1
@@ -1,302 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h } from './index-ddbd60b5.js';
2
- import { l as loadSession, a as authenticateUser, s as setSession } from './Auth-4b21fced.js';
3
- import { g as getEndpoint, V as VerdocsEndpoint, s as setActiveEndpoint } from './Token-29eea56d.js';
4
- import './index-ef172650.js';
5
- import './index-97ec070b.js';
6
- import './buffer-es6-5cef4368.js';
7
-
8
- // TODO
9
-
10
- var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
11
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12
- return new (P || (P = Promise))(function (resolve, reject) {
13
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
14
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
15
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
16
- step((generator = generator.apply(thisArg, _arguments || [])).next());
17
- });
18
- };
19
- var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
20
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
21
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
22
- function verb(n) { return function (v) { return step([n, v]); }; }
23
- function step(op) {
24
- if (f) throw new TypeError("Generator is already executing.");
25
- while (_) try {
26
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
27
- if (y = 0, t) op = [op[0] & 2, t.value];
28
- switch (op[0]) {
29
- case 0: case 1: t = op; break;
30
- case 4: _.label++; return { value: op[1], done: false };
31
- case 5: _.label++; y = op[1]; op = [0]; continue;
32
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
33
- default:
34
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
35
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
36
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
37
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
38
- if (t[2]) _.ops.pop();
39
- _.trys.pop(); continue;
40
- }
41
- op = body.call(thisArg, _);
42
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
43
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
44
- }
45
- };
46
- var getNotifications = function () { return __awaiter(void 0, void 0, void 0, function () {
47
- return __generator(this, function (_a) {
48
- return [2 /*return*/, getEndpoint()
49
- .api.get('/notifications')
50
- .then(function (r) { return r.data; })];
51
- });
52
- }); };
53
-
54
- /**
55
- * Get the user's available profiles. The current profile will be marked with `current: true`.
56
- *
57
- * ```typescript
58
- * import {Profiles} from '@verdocs/js-sdk/Users';
59
- *
60
- * const profiles = await Profiles.getProfiles()
61
- * ```
62
- */
63
- var getProfiles = function () {
64
- return getEndpoint()
65
- .api.get('/profiles')
66
- .then(function (r) { return r.data; });
67
- };
68
- /**
69
- * Get a list of system roles.
70
- *
71
- * ```typescript
72
- * import {Profiles} from '@verdocs/js-sdk/Users';
73
- *
74
- * const roles = await Profiles.getRoles();
75
- * ```
76
- */
77
- var getRoles = function () {
78
- return getEndpoint()
79
- .api.get('/roles')
80
- .then(function (r) { return r.data; });
81
- };
82
- /**
83
- * Get a list of system roles.
84
- *
85
- * ```typescript
86
- * import {Profiles} from '@verdocs/js-sdk/Users';
87
- *
88
- * const permissions = await Profiles.getPermissions();
89
- * ```
90
- */
91
- var getPermissions = function () {
92
- return getEndpoint()
93
- .api.get('/permissions')
94
- .then(function (r) { return r.data; });
95
- };
96
- /**
97
- * Create a profile. If the caller does not have a "current" profile set, the new profile will be made current.
98
- *
99
- * ```typescript
100
- * import {Profiles} from '@verdocs/js-sdk/Users';
101
- *
102
- * const newProfile = await Profiles.createProfile({ first_name: 'FIRST', last_name: 'LAST', email: 'EMAIL' });
103
- * ```
104
- */
105
- var createProfile = function (params) {
106
- return getEndpoint()
107
- .api.post('/profiles', params)
108
- .then(function (r) { return r.data; });
109
- };
110
- /**
111
- * Get a profile. The caller must have admin access to the given profile.
112
- * TODO: Add a "public" profile endpoint for public pages
113
- *
114
- * ```typescript
115
- * import {Profiles} from '@verdocs/js-sdk/Users';
116
- *
117
- * const profile = await Profiles.getProfile('PROFILEID');
118
- * ```
119
- */
120
- var getProfile = function (profileId) {
121
- return getEndpoint()
122
- .api.get("/profiles/".concat(profileId))
123
- .then(function (r) { return r.data; });
124
- };
125
- /**
126
- * Get a profile's permissions. The caller must have admin access to the given profile.
127
- *
128
- * ```typescript
129
- * import {Profiles} from '@verdocs/js-sdk/Users';
130
- *
131
- * const permissions = await Profiles.getProfilePermissions('PROFILEID');
132
- * ```
133
- */
134
- var getProfilePermissions = function (profileId) {
135
- return getEndpoint()
136
- .api.get("/profiles/".concat(profileId, "/permissions"))
137
- .then(function (r) { return r.data; });
138
- };
139
- /**
140
- * Get a profile's groups.
141
- *
142
- * ```typescript
143
- * import {Profiles} from '@verdocs/js-sdk/Users';
144
- *
145
- * const groups = await Profiles.getProfileGroups('PROFILEID');
146
- * ```
147
- */
148
- var getProfileGroups = function (profileId) {
149
- return getEndpoint()
150
- .api.get("/profiles/".concat(profileId, "/groups"))
151
- .then(function (r) { return r.data; });
152
- };
153
- /**
154
- * Switch the caller's "current" profile. The current profile is used for permissions checking and profile_id field settings
155
- * for most operations in Verdocs. It is important to select the appropropriate profile before calling other API functions.
156
- *
157
- * ```typescript
158
- * import {Profiles} from '@verdocs/js-sdk/Users';
159
- *
160
- * const newProfile = await Profiles.switchProfile('PROFILEID');
161
- * ```
162
- */
163
- var switchProfile = function (profileId) {
164
- return getEndpoint()
165
- .api.post("/profiles/".concat(profileId, "/switch"))
166
- .then(function (r) { return r.data; });
167
- };
168
- /**
169
- * Update a profile. For future expansion, the profile ID to update is required, but currently this must also be the
170
- * "current" profile for the caller.
171
- *
172
- * ```typescript
173
- * import {Profiles} from '@verdocs/js-sdk/Users';
174
- *
175
- * const newProfile = await Profiles.updateProfile('PROFILEID');
176
- * ```
177
- */
178
- var updateProfile = function (profileId, params) {
179
- return getEndpoint()
180
- .api.put("/profiles/".concat(profileId), params)
181
- .then(function (r) { return r.data; });
182
- };
183
- /**
184
- * Delete a profile. If the requested profile is the caller's curent profile, the next available profile will be selected.
185
- *
186
- * ```typescript
187
- * import {Profiles} from '@verdocs/js-sdk/Users';
188
- *
189
- * await Profiles.deleteProfile('PROFILEID');
190
- * ```
191
- */
192
- var deleteProfile = function (profileId) {
193
- return getEndpoint()
194
- .api.delete("/profiles/".concat(profileId))
195
- .then(function (r) { return r.data; });
196
- };
197
-
198
- const verdocsAuthCss = "verdocs-auth{font-family:\"Barlow\", sans-serif;background-color:#4c56cb;padding:40px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#f5f5fa;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}";
199
-
200
- const BASE_URL = 'https://stage-api.verdocs.com/';
201
- const SOURCE = 'verdocs-stage';
202
- const VerdocsAuth = class {
203
- constructor(hostRef) {
204
- registerInstance(this, hostRef);
205
- this.authenticated = createEvent(this, "authenticated", 7);
206
- /**
207
- * Normally, if the user has a valid session, this embed will be invisible, otherwise it will display
208
- * login / signup forms. If this is set to false, this embed will be invisible in both cases. Apps may
209
- * use this to verify if a user has a valid session without needing a separate call to Verdocs JS SDK.
210
- */
211
- this.visible = true;
212
- /**
213
- * By default, a Verdocs logo will be displayed above the login/signup forms. This may be used to
214
- * override its source. (Alternatively, you may simply hide it via CSS overrides.) Logos should be
215
- * in SVG format for best results.
216
- */
217
- this.logo = 'https://verdocs.com/assets/blue-logo.svg';
218
- /**
219
- * If the user is authenticated, this embed will normally render invisibly. If debug is set true, a summary
220
- * if the user's session details will be displayed instead. This may be useful while debugging authentication
221
- * flows in new applications.
222
- */
223
- this.debug = false;
224
- this.isAuthenticated = false;
225
- this.displayMode = 'login';
226
- this.username = '';
227
- this.password = '';
228
- this.loggingIn = false;
229
- this.activeSession = null;
230
- this.loginError = null;
231
- }
232
- componentWillLoad() {
233
- const staging = new VerdocsEndpoint().setBaseURL(BASE_URL);
234
- setActiveEndpoint(staging);
235
- console.log('Set active endpoint', getEndpoint());
236
- }
237
- componentDidLoad() {
238
- const session = loadSession(SOURCE);
239
- console.log('loaded session', session, SOURCE);
240
- if (session !== null) {
241
- this.isAuthenticated = true;
242
- this.activeSession = session;
243
- this.authenticated.emit({ authenticated: true, session });
244
- }
245
- else {
246
- this.authenticated.emit({ authenticated: false, session: null });
247
- }
248
- }
249
- // handleSelectOption(option: IMenuOption) {
250
- // this.isAuthenticated = false;
251
- // this.authenticated.emit(option);
252
- // }
253
- handleLogin() {
254
- this.loggingIn = true;
255
- authenticateUser({ username: this.username, password: this.password })
256
- .then(r => {
257
- this.loggingIn = false;
258
- console.log('Login result', r.accessToken);
259
- const session = setSession(SOURCE, r.accessToken, true);
260
- this.activeSession = session;
261
- this.isAuthenticated = true;
262
- console.log('set session', session);
263
- this.authenticated.emit({ authenticated: true, session });
264
- })
265
- .catch(e => {
266
- var _a;
267
- console.log('Login error', e.response, JSON.stringify(e));
268
- this.loggingIn = false;
269
- this.activeSession = null;
270
- this.authenticated.emit({ authenticated: false, session: null });
271
- if (((_a = e === null || e === void 0 ? void 0 : e.response) === null || _a === void 0 ? void 0 : _a.status) === 403) {
272
- this.loginError = 'Please check your username and password and try again.';
273
- }
274
- });
275
- }
276
- handleLogout() {
277
- // endSession(SOURCE);
278
- this.isAuthenticated = false;
279
- this.authenticated.emit({ authenticated: false, session: null });
280
- }
281
- handleClearError() {
282
- this.loginError = null;
283
- }
284
- render() {
285
- if (!this.visible) {
286
- return h("div", { style: { display: 'none' } }, "Verdocs Auth Placeholder");
287
- }
288
- if (this.isAuthenticated) {
289
- if (this.debug) {
290
- return (h("div", { class: "status-result debug" }, h("verdocs-button", { label: "Logout", disabled: this.loggingIn, onPress: () => this.handleLogout() })));
291
- }
292
- return h("div", { class: "status-result" }, "Authenticated");
293
- }
294
- if (this.displayMode === 'signup') {
295
- return (h("div", { class: "signup-form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Sign up for an account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.loggingIn })), h("form", { onSubmit: () => this.handleLogin() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onFieldInput: e => (this.username = e.detail), disabled: this.loggingIn }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onFieldInput: e => (this.password = e.detail), disabled: this.loggingIn }), h("verdocs-button", { label: "Signup", disabled: this.loggingIn, onPress: () => this.handleLogin(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))));
296
- }
297
- return (h("div", { class: "login-form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => (this.displayMode = 'signup'), disabled: this.loggingIn })), h("form", { onSubmit: () => this.handleLogin() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onFieldInput: e => (this.username = e.detail), disabled: this.loggingIn }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onFieldInput: e => (this.password = e.detail), disabled: this.loggingIn }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'signup'), disabled: this.loggingIn, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.loggingIn, onPress: () => this.handleLogin(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } })), this.loginError ? h("verdocs-ok-dialog", { open: true, heading: "Login Error", message: this.loginError, onClosed: () => this.handleClearError() }) : h("div", null)));
298
- }
299
- };
300
- VerdocsAuth.style = verdocsAuthCss;
301
-
302
- export { VerdocsAuth as verdocs_auth };
@@ -1 +0,0 @@
1
- System.register(["./index-6465280a.system.js","./Auth-82e38539.system.js","./Token-c1cf309e.system.js","./index-5d49316f.system.js","./index-027b383e.system.js","./buffer-es6-aa11181b.system.js"],(function(t){"use strict";var e,n,i,o,r,s,a,u,l;return{setters:[function(t){e=t.r;n=t.e;i=t.h},function(t){o=t.l;r=t.a;s=t.s},function(t){a=t.g;u=t.V;l=t.s},function(){},function(){},function(){}],execute:function(){var c=undefined&&undefined.__awaiter||function(t,e,n,i){function o(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{u(i.next(t))}catch(t){r(t)}}function a(t){try{u(i["throw"](t))}catch(t){r(t)}}function u(t){t.done?n(t.value):o(t.value).then(s,a)}u((i=i.apply(t,e||[])).next())}))};var d=undefined&&undefined.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return u([t,e])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(r=s[0]&2?o["return"]:s[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;if(o=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];o=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var f=function(){return c(void 0,void 0,void 0,(function(){return d(this,(function(t){return[2,a().api.get("/notifications").then((function(t){return t.data}))]}))}))};var h=function(){return a().api.get("/profiles").then((function(t){return t.data}))};var g=function(){return a().api.get("/roles").then((function(t){return t.data}))};var p=function(){return a().api.get("/permissions").then((function(t){return t.data}))};var v=function(t){return a().api.post("/profiles",t).then((function(t){return t.data}))};var m=function(t){return a().api.get("/profiles/".concat(t)).then((function(t){return t.data}))};var b=function(t){return a().api.get("/profiles/".concat(t,"/permissions")).then((function(t){return t.data}))};var y=function(t){return a().api.get("/profiles/".concat(t,"/groups")).then((function(t){return t.data}))};var x=function(t){return a().api.post("/profiles/".concat(t,"/switch")).then((function(t){return t.data}))};var w=function(t,e){return a().api.put("/profiles/".concat(t),e).then((function(t){return t.data}))};var k=function(t){return a().api.delete("/profiles/".concat(t)).then((function(t){return t.data}))};var I='verdocs-auth{font-family:"Barlow", sans-serif;background-color:#4c56cb;padding:40px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#f5f5fa;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';var L="https://stage-api.verdocs.com/";var S="verdocs-stage";var j=t("verdocs_auth",function(){function t(t){e(this,t);this.authenticated=n(this,"authenticated",7);this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.debug=false;this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}t.prototype.componentWillLoad=function(){var t=(new u).setBaseURL(L);l(t);console.log("Set active endpoint",a())};t.prototype.componentDidLoad=function(){var t=o(S);console.log("loaded session",t,S);if(t!==null){this.isAuthenticated=true;this.activeSession=t;this.authenticated.emit({authenticated:true,session:t})}else{this.authenticated.emit({authenticated:false,session:null})}};t.prototype.handleLogin=function(){var t=this;this.loggingIn=true;r({username:this.username,password:this.password}).then((function(e){t.loggingIn=false;console.log("Login result",e.accessToken);var n=s(S,e.accessToken,true);t.activeSession=n;t.isAuthenticated=true;console.log("set session",n);t.authenticated.emit({authenticated:true,session:n})})).catch((function(e){var n;console.log("Login error",e.response,JSON.stringify(e));t.loggingIn=false;t.activeSession=null;t.authenticated.emit({authenticated:false,session:null});if(((n=e===null||e===void 0?void 0:e.response)===null||n===void 0?void 0:n.status)===403){t.loginError="Please check your username and password and try again."}}))};t.prototype.handleLogout=function(){this.isAuthenticated=false;this.authenticated.emit({authenticated:false,session:null})};t.prototype.handleClearError=function(){this.loginError=null};t.prototype.render=function(){var t=this;if(!this.visible){return i("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){if(this.debug){return i("div",{class:"status-result debug"},i("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:function(){return t.handleLogout()}}))}return i("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return i("div",{class:"signup-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for an account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return t.displayMode="login"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),i("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return i("div",{class:"login-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?i("verdocs-ok-dialog",{open:true,heading:"Login Error",message:this.loginError,onClosed:function(){return t.handleClearError()}}):i("div",null))};return t}());j.style=I}}}));
@@ -1,45 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h } from './index-ddbd60b5.js';
2
-
3
- const verdocsButtonCss = "verdocs-button button{font-family:\"Barlow\", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#fff;display:block}verdocs-button button .label{padding:0 12px}verdocs-button button:disabled{cursor:none}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999;cursor:none}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;cursor:none;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}";
4
-
5
- const VerdocsButton = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.press = createEvent(this, "press", 7);
9
- /**
10
- * If desired, a prefix icon for the button
11
- */
12
- this.startIcon = null;
13
- /**
14
- * If desired, a suffix icon for the button
15
- */
16
- this.endIcon = null;
17
- /**
18
- * The size (height) of the button.
19
- */
20
- this.size = 'normal';
21
- /**
22
- * The type of the button.
23
- */
24
- this.type = 'button';
25
- /**
26
- * The display variant of the button.
27
- */
28
- this.variant = 'standard';
29
- /**
30
- * Whether the button should be disabled.
31
- */
32
- this.disabled = false;
33
- }
34
- handleClick(e) {
35
- e.preventDefault();
36
- this.press.emit();
37
- }
38
- render() {
39
- console.log('Rendering button', this.startIcon);
40
- return (h("button", { disabled: this.disabled, type: this.type, onClick: e => this.handleClick(e), class: `${this.variant} ${this.size} ${this.type}` }, this.startIcon ? h("span", { class: "icon start", innerHTML: this.startIcon }) : null, h("span", { class: "label" }, this.label), this.endIcon ? h("span", { class: "icon end", innerHTML: this.endIcon }) : null));
41
- }
42
- };
43
- VerdocsButton.style = verdocsButtonCss;
44
-
45
- export { VerdocsButton as verdocs_button };
@@ -1 +0,0 @@
1
- System.register(["./index-6465280a.system.js"],(function(t){"use strict";var n,o,e;return{setters:[function(t){n=t.r;o=t.e;e=t.h}],execute:function(){var r='verdocs-button button{font-family:"Barlow", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#fff;display:block}verdocs-button button .label{padding:0 12px}verdocs-button button:disabled{cursor:none}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999;cursor:none}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;cursor:none;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var s=t("verdocs_button",function(){function t(t){n(this,t);this.press=o(this,"press",7);this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.handleClick=function(t){t.preventDefault();this.press.emit()};t.prototype.render=function(){var t=this;console.log("Rendering button",this.startIcon);return e("button",{disabled:this.disabled,type:this.type,onClick:function(n){return t.handleClick(n)},class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?e("span",{class:"icon start",innerHTML:this.startIcon}):null,e("span",{class:"label"},this.label),this.endIcon?e("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());s.style=r}}}));
@@ -1,76 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host } from './index-ddbd60b5.js';
2
- import { c as createPopper } from './index-432c65a6.js';
3
- import './index-97ec070b.js';
4
-
5
- const SortDown = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>
6
- `;
7
-
8
- const verdocsDropdownCss = "verdocs-dropdown{font-family:\"Barlow\", sans-serif;display:block}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown .items{width:200px;display:none;z-index:10000;border-radius:5px;background:#33354c;border:1px solid #654dcb}verdocs-dropdown .items[data-show]{display:block}verdocs-dropdown .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}verdocs-dropdown .option:hover{cursor:pointer;background:#55bc81}verdocs-dropdown .option[disabled]{color:#aaaaaa}verdocs-dropdown .option[disabled]:hover{color:#aaaaaa;cursor:inherit;background:transparent}verdocs-dropdown.open .items{display:block}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}";
9
-
10
- const VerdocsDropdown = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- this.optionSelected = createEvent(this, "optionSelected", 7);
14
- /**
15
- * The menu options to display.
16
- */
17
- this.options = [];
18
- }
19
- componentWillLoad() {
20
- this.isOpen = !!this.open;
21
- }
22
- componentDidLoad() {
23
- this.popper = createPopper(this.dropdownButton, this.dropdownMenu, { placement: 'bottom-start', modifiers: [{ name: 'offset', options: { offset: [0, 6] } }] });
24
- }
25
- handleSelectOption(option) {
26
- this.isOpen = false;
27
- this.optionSelected.emit(option);
28
- this.hide();
29
- }
30
- // See https://popper.js.org/docs/v2/tutorial/
31
- // What we're doing here is clearing event listeners when they aren't needed, to increase performance in lists
32
- showDropdown() {
33
- var _a, _b;
34
- this.isOpen = true;
35
- this.dropdownMenu.setAttribute('data-show', '');
36
- this.dropdownMenu.removeAttribute('aria-hidden');
37
- (_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions(options => ({
38
- ...options,
39
- modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }],
40
- }));
41
- (_b = this.popper) === null || _b === void 0 ? void 0 : _b.update();
42
- }
43
- handleHideDropdown(e) {
44
- var _a, _b;
45
- if (((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.localName) === 'button' && ((_b = e === null || e === void 0 ? void 0 : e.target) === null || _b === void 0 ? void 0 : _b.className) === 'arrow') {
46
- // This event is fired when a menu element is clicked because the button "loses focus" then too
47
- return;
48
- }
49
- this.hide();
50
- }
51
- toggleDropdown() {
52
- if (this.isOpen) {
53
- this.hide();
54
- }
55
- else {
56
- this.showDropdown();
57
- }
58
- }
59
- hide() {
60
- var _a;
61
- this.isOpen = false;
62
- this.dropdownMenu.removeAttribute('data-show');
63
- this.dropdownMenu.setAttribute('aria-hidden', 'true');
64
- (_a = this.popper) === null || _a === void 0 ? void 0 : _a.setOptions(options => ({
65
- ...options,
66
- modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }],
67
- }));
68
- }
69
- render() {
70
- var _a;
71
- return (h(Host, { class: { storybook: !!(window === null || window === void 0 ? void 0 : window['STORYBOOK_ENV']), open: !!this.isOpen } }, h("button", { class: "arrow", innerHTML: SortDown, "aria-label": "Open Menu", onClick: () => this.toggleDropdown(), onBlur: e => this.handleHideDropdown(e), ref: el => (this.dropdownButton = el) }), h("div", { class: "items", "aria-hidden": !this.open, ref: el => (this.dropdownMenu = el) }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("button", { onClick: () => this.handleSelectOption(option), class: "option", disabled: option.disabled }, option.label))))));
72
- }
73
- };
74
- VerdocsDropdown.style = verdocsDropdownCss;
75
-
76
- export { VerdocsDropdown as verdocs_dropdown };
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(o){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))o[r]=e[r]}return o};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(o,e,n){if(n||arguments.length===2)for(var t=0,r=e.length,i;t<r;t++){if(i||!(t in e)){if(!i)i=Array.prototype.slice.call(e,0,t);i[t]=e[t]}}return o.concat(i||Array.prototype.slice.call(e))};System.register(["./index-6465280a.system.js","./index-06e036a1.system.js","./index-027b383e.system.js"],(function(o){"use strict";var e,n,t,r,i;return{setters:[function(o){e=o.r;n=o.e;t=o.h;r=o.f},function(o){i=o.c},function(){}],execute:function(){var s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>\n';var d='verdocs-dropdown{font-family:"Barlow", sans-serif;display:block}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown .items{width:200px;display:none;z-index:10000;border-radius:5px;background:#33354c;border:1px solid #654dcb}verdocs-dropdown .items[data-show]{display:block}verdocs-dropdown .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}verdocs-dropdown .option:hover{cursor:pointer;background:#55bc81}verdocs-dropdown .option[disabled]{color:#aaaaaa}verdocs-dropdown .option[disabled]:hover{color:#aaaaaa;cursor:inherit;background:transparent}verdocs-dropdown.open .items{display:block}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}';var a=o("verdocs_dropdown",function(){function o(o){e(this,o);this.optionSelected=n(this,"optionSelected",7);this.options=[]}o.prototype.componentWillLoad=function(){this.isOpen=!!this.open};o.prototype.componentDidLoad=function(){this.popper=i(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,6]}}]})};o.prototype.handleSelectOption=function(o){this.isOpen=false;this.optionSelected.emit(o);this.hide()};o.prototype.showDropdown=function(){var o,e;this.isOpen=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(o=this.popper)===null||o===void 0?void 0:o.setOptions((function(o){return __assign(__assign({},o),{modifiers:__spreadArray(__spreadArray([],o.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));(e=this.popper)===null||e===void 0?void 0:e.update()};o.prototype.handleHideDropdown=function(o){var e,n;if(((e=o===null||o===void 0?void 0:o.target)===null||e===void 0?void 0:e.localName)==="button"&&((n=o===null||o===void 0?void 0:o.target)===null||n===void 0?void 0:n.className)==="arrow"){return}this.hide()};o.prototype.toggleDropdown=function(){if(this.isOpen){this.hide()}else{this.showDropdown()}};o.prototype.hide=function(){var o;this.isOpen=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(o=this.popper)===null||o===void 0?void 0:o.setOptions((function(o){return __assign(__assign({},o),{modifiers:__spreadArray(__spreadArray([],o.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}))};o.prototype.render=function(){var o=this;var e;return t(r,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),open:!!this.isOpen}},t("button",{class:"arrow",innerHTML:s,"aria-label":"Open Menu",onClick:function(){return o.toggleDropdown()},onBlur:function(e){return o.handleHideDropdown(e)},ref:function(e){return o.dropdownButton=e}}),t("div",{class:"items","aria-hidden":!this.open,ref:function(e){return o.dropdownMenu=e}},(e=this.options)===null||e===void 0?void 0:e.map((function(e){return t("button",{onClick:function(){return o.handleSelectOption(e)},class:"option",disabled:e.disabled},e.label)}))))};return o}());a.style=d}}}));
@@ -1,55 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host } from './index-ddbd60b5.js';
2
-
3
- const Paperclip = `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
4
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />
5
- </svg>
6
- `;
7
-
8
- const verdocsFieldAttachmentCss = "verdocs-field-attachment{font-family:sans-serif;font-family:var(--verdocs-font);width:24px;height:24px;display:block;font-size:11px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-attachment span{width:20px;cursor:pointer}verdocs-field-attachment.required span{border:1px solid var(--verdocs-required-color)}verdocs-field-attachment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}";
9
-
10
- const VerdocsFieldAttachment = class {
11
- constructor(hostRef) {
12
- registerInstance(this, hostRef);
13
- this.fieldChange = createEvent(this, "fieldChange", 7);
14
- /**
15
- * Sets the tabIndex of the input element.
16
- */
17
- this.order = 1;
18
- /**
19
- * Sets the value of the input element.
20
- */
21
- this.value = '';
22
- /**
23
- * If true, the field will be marked required.
24
- */
25
- this.required = false;
26
- /**
27
- * Sets the disabled attribute of the input element.
28
- */
29
- this.disabled = false;
30
- }
31
- async focusField() {
32
- this.handleShow();
33
- }
34
- handleShow() {
35
- this.dialog = document.createElement('verdocs-upload-dialog');
36
- this.dialog.open = true;
37
- this.dialog.addEventListener('cancel', () => {
38
- var _a;
39
- console.log('cancel');
40
- (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.remove();
41
- });
42
- document.addEventListener('done', e => {
43
- var _a;
44
- console.log('done', e);
45
- (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.remove();
46
- });
47
- document.body.append(this.dialog);
48
- }
49
- render() {
50
- return (h(Host, { class: { required: this.required } }, h("span", { innerHTML: Paperclip, onClick: () => this.handleShow() })));
51
- }
52
- };
53
- VerdocsFieldAttachment.style = verdocsFieldAttachmentCss;
54
-
55
- export { VerdocsFieldAttachment as verdocs_field_attachment };
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./index-6465280a.system.js"],(function(e){"use strict";var t,n,r,o;return{setters:[function(e){t=e.r;n=e.e;r=e.h;o=e.f}],execute:function(){var i='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n';var a="verdocs-field-attachment{font-family:sans-serif;font-family:var(--verdocs-font);width:24px;height:24px;display:block;font-size:11px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-attachment span{width:20px;cursor:pointer}verdocs-field-attachment.required span{border:1px solid var(--verdocs-required-color)}verdocs-field-attachment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}";var s=e("verdocs_field_attachment",function(){function e(e){t(this,e);this.fieldChange=n(this,"fieldChange",7);this.order=1;this.value="";this.required=false;this.disabled=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleShow();return[2]}))}))};e.prototype.handleShow=function(){var e=this;this.dialog=document.createElement("verdocs-upload-dialog");this.dialog.open=true;this.dialog.addEventListener("cancel",(function(){var t;console.log("cancel");(t=e.dialog)===null||t===void 0?void 0:t.remove()}));document.addEventListener("done",(function(t){var n;console.log("done",t);(n=e.dialog)===null||n===void 0?void 0:n.remove()}));document.body.append(this.dialog)};e.prototype.render=function(){var e=this;return r(o,{class:{required:this.required}},r("span",{innerHTML:i,onClick:function(){return e.handleShow()}}))};return e}());s.style=a}}}));
@@ -1,35 +0,0 @@
1
- import { r as registerInstance, e as createEvent, h, f as Host } from './index-ddbd60b5.js';
2
-
3
- const verdocsFieldCheckboxCss = "@charset \"UTF-8\";verdocs-field-checkbox{font-family:sans-serif;font-family:var(--verdocs-font);font-size:11px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-checkbox label>input[type=checkbox]{display:none}verdocs-field-checkbox label>input[type=checkbox]+*::before{content:\"\";display:block;vertical-align:bottom;width:14px;height:14px;border-radius:2px;border:1px solid rgba(0, 0, 0, 0.2);-ms-flex-negative:0;flex-shrink:0}verdocs-field-checkbox label>input[type=checkbox]:checked+*{color:var(--verdocs-primary-color)}verdocs-field-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:var(--verdocs-primary-color);border-color:var(--verdocs-primary-color)}verdocs-field-checkbox.required label>input[type=checkbox]+*::before{border:1px solid var(--verdocs-required-color)}verdocs-field-checkbox.hide{display:none}verdocs-field-checkbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}";
4
-
5
- const VerdocsFieldCheckbox = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.fieldChange = createEvent(this, "fieldChange", 7);
9
- /**
10
- * Sets the tabIndex of the input element.
11
- */
12
- this.order = 1;
13
- /**
14
- * Sets the value of the input element.
15
- */
16
- this.value = false;
17
- /**
18
- * If true, the field will be marked required.
19
- */
20
- this.required = false;
21
- /**
22
- * Sets the disabled attribute of the input element.
23
- */
24
- this.disabled = false;
25
- }
26
- handleChange(e) {
27
- this.fieldChange.emit(e.target.checked);
28
- }
29
- render() {
30
- return (h(Host, { class: { required: this.required } }, h("label", null, h("input", { type: "checkbox", tabIndex: this.order, checked: this.value, disabled: this.disabled, required: this.required, onChange: e => this.handleChange(e) }), h("span", null))));
31
- }
32
- };
33
- VerdocsFieldCheckbox.style = verdocsFieldCheckboxCss;
34
-
35
- export { VerdocsFieldCheckbox as verdocs_field_checkbox };
@@ -1 +0,0 @@
1
- System.register(["./index-6465280a.system.js"],(function(e){"use strict";var r,o,i,t;return{setters:[function(e){r=e.r;o=e.e;i=e.h;t=e.f}],execute:function(){var c='@charset "UTF-8";verdocs-field-checkbox{font-family:sans-serif;font-family:var(--verdocs-font);font-size:11px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-checkbox label>input[type=checkbox]{display:none}verdocs-field-checkbox label>input[type=checkbox]+*::before{content:"";display:block;vertical-align:bottom;width:14px;height:14px;border-radius:2px;border:1px solid rgba(0, 0, 0, 0.2);-ms-flex-negative:0;flex-shrink:0}verdocs-field-checkbox label>input[type=checkbox]:checked+*{color:var(--verdocs-primary-color)}verdocs-field-checkbox label>input[type=checkbox]:checked+*::before{content:"✓";color:white;text-align:center;background:var(--verdocs-primary-color);border-color:var(--verdocs-primary-color)}verdocs-field-checkbox.required label>input[type=checkbox]+*::before{border:1px solid var(--verdocs-required-color)}verdocs-field-checkbox.hide{display:none}verdocs-field-checkbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';var n=e("verdocs_field_checkbox",function(){function e(e){r(this,e);this.fieldChange=o(this,"fieldChange",7);this.order=1;this.value=false;this.required=false;this.disabled=false}e.prototype.handleChange=function(e){this.fieldChange.emit(e.target.checked)};e.prototype.render=function(){var e=this;return i(t,{class:{required:this.required}},i("label",null,i("input",{type:"checkbox",tabIndex:this.order,checked:this.value,disabled:this.disabled,required:this.required,onChange:function(r){return e.handleChange(r)}}),i("span",null)))};return e}());n.style=c}}}));