@verdocs/web-sdk 1.14.8 → 1.14.10

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 (223) hide show
  1. package/dist/cjs/EnvelopeStore-a4231cf7.js +83 -0
  2. package/dist/cjs/{Recipients-2b21fdea.js → Recipients-f3d6cf10.js} +9 -0
  3. package/dist/cjs/{index-6528b430.js → index-7c19ba1d.js} +63 -219
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-f4efefe3.js → utils-618c13f1.js} +1 -1
  6. package/dist/cjs/verdocs-auth.cjs.entry.js +5 -10
  7. package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +2 -2
  9. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +15 -91
  10. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +101 -45
  11. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
  16. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +58 -6
  19. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +28 -21
  20. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
  23. package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
  24. package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +2 -2
  28. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +47 -17
  29. package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
  30. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  31. package/dist/collection/collection-manifest.json +0 -1
  32. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.css +3 -4
  33. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +6 -12
  34. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.css +8 -0
  35. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +101 -48
  36. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
  37. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.css +2 -3
  38. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.css +13 -8
  39. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +111 -2
  40. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +62 -19
  41. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.stories.js +1 -1
  42. package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.js +37 -17
  43. package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.js +1 -1
  44. package/dist/components/Envelopes.js +1 -1
  45. package/dist/{esm/Recipients-198b2531.js → components/Recipients.js} +9 -1
  46. package/dist/components/Toast.js +1 -74
  47. package/dist/components/index.d.ts +0 -1
  48. package/dist/components/index.js +0 -1
  49. package/dist/components/index2.js +63 -219
  50. package/dist/components/verdocs-auth.js +10 -22
  51. package/dist/components/verdocs-checkbox2.js +1 -1
  52. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  53. package/dist/components/verdocs-envelope-recipient-summary2.js +4 -3
  54. package/dist/components/verdocs-envelope-sidebar.js +112 -54
  55. package/dist/components/verdocs-field-textarea.js +59 -3
  56. package/dist/components/verdocs-field-textbox.js +29 -20
  57. package/dist/components/verdocs-sign.js +2 -1
  58. package/dist/components/verdocs-status-indicator.js +1 -1
  59. package/dist/components/verdocs-template-reminders.js +47 -17
  60. package/dist/components/verdocs-view2.js +1 -1
  61. package/dist/custom-elements.json +16 -13
  62. package/dist/docs.json +96 -129
  63. package/dist/esm/EnvelopeStore-28f5d8f5.js +81 -0
  64. package/dist/esm/{Envelopes-c3d471e5.js → Envelopes-105a4a8f.js} +1 -1
  65. package/dist/esm/Recipients-4ec2138c.js +82 -0
  66. package/dist/esm/{index-d264c496.js → index-914ed6f7.js} +63 -219
  67. package/dist/esm/loader.js +1 -1
  68. package/dist/esm/{utils-9da23ba1.js → utils-60683446.js} +2 -2
  69. package/dist/esm/verdocs-auth.entry.js +5 -10
  70. package/dist/esm/verdocs-checkbox_4.entry.js +1 -1
  71. package/dist/esm/verdocs-dropdown_2.entry.js +3 -3
  72. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +4 -80
  73. package/dist/esm/verdocs-envelope-sidebar.entry.js +102 -46
  74. package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
  75. package/dist/esm/verdocs-field-date.entry.js +3 -3
  76. package/dist/esm/verdocs-field-dropdown.entry.js +3 -3
  77. package/dist/esm/verdocs-field-initial.entry.js +3 -3
  78. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  79. package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
  80. package/dist/esm/verdocs-field-signature.entry.js +3 -3
  81. package/dist/esm/verdocs-field-textarea.entry.js +60 -8
  82. package/dist/esm/verdocs-field-textbox.entry.js +29 -22
  83. package/dist/esm/verdocs-field-timestamp.entry.js +3 -3
  84. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  85. package/dist/esm/verdocs-preview.entry.js +3 -3
  86. package/dist/esm/verdocs-send.entry.js +3 -3
  87. package/dist/esm/verdocs-sign.entry.js +4 -4
  88. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  89. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
  90. package/dist/esm/verdocs-template-fields_4.entry.js +3 -3
  91. package/dist/esm/verdocs-template-reminders.entry.js +47 -17
  92. package/dist/esm/verdocs-view.entry.js +3 -3
  93. package/dist/esm/verdocs-web-sdk.js +1 -1
  94. package/dist/esm-es5/EnvelopeStore-28f5d8f5.js +1 -0
  95. package/dist/esm-es5/{Envelopes-c3d471e5.js → Envelopes-105a4a8f.js} +1 -1
  96. package/dist/esm-es5/Recipients-4ec2138c.js +1 -0
  97. package/dist/esm-es5/index-914ed6f7.js +1 -0
  98. package/dist/esm-es5/loader.js +1 -1
  99. package/dist/esm-es5/{utils-9da23ba1.js → utils-60683446.js} +1 -1
  100. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  101. package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
  102. package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
  103. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  104. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  107. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  121. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  125. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +0 -2
  126. package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +7 -5
  127. package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +23 -3
  128. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +10 -2
  129. package/dist/types/components.d.ts +40 -45
  130. package/dist/verdocs-web-sdk/{p-4a39c1a4.system.entry.js → p-02a70b8e.system.entry.js} +1 -1
  131. package/dist/verdocs-web-sdk/{p-eb3beb29.system.entry.js → p-095a3eba.system.entry.js} +1 -1
  132. package/dist/verdocs-web-sdk/{p-592e9e12.entry.js → p-0aee25b9.entry.js} +1 -1
  133. package/dist/verdocs-web-sdk/p-0e381c36.entry.js +1 -0
  134. package/dist/verdocs-web-sdk/p-13959c36.system.entry.js +1 -0
  135. package/dist/verdocs-web-sdk/p-18ee4fd5.js +1 -0
  136. package/dist/verdocs-web-sdk/{p-886461cd.system.entry.js → p-1a0cccea.system.entry.js} +1 -1
  137. package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
  138. package/dist/verdocs-web-sdk/{p-2cf70fcd.entry.js → p-1f561c42.entry.js} +1 -1
  139. package/dist/verdocs-web-sdk/{p-be729608.system.entry.js → p-2a5b951c.system.entry.js} +1 -1
  140. package/dist/verdocs-web-sdk/{p-afe91637.system.entry.js → p-2c0d7838.system.entry.js} +1 -1
  141. package/dist/verdocs-web-sdk/{p-74dd0569.entry.js → p-33640d84.entry.js} +1 -1
  142. package/dist/verdocs-web-sdk/{p-7b215f9d.system.entry.js → p-380efff2.system.entry.js} +1 -1
  143. package/dist/verdocs-web-sdk/p-3cd894ff.js +1 -0
  144. package/dist/verdocs-web-sdk/{p-aebd2d02.system.entry.js → p-3fe24d0c.system.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/p-44ec0583.entry.js +1 -0
  146. package/dist/verdocs-web-sdk/{p-2631bdd9.entry.js → p-49b3ac56.entry.js} +1 -1
  147. package/dist/verdocs-web-sdk/p-4a3b037b.system.entry.js +1 -0
  148. package/dist/verdocs-web-sdk/{p-3601cc11.entry.js → p-59243dec.entry.js} +1 -1
  149. package/dist/verdocs-web-sdk/p-5cff98bd.entry.js +1 -0
  150. package/dist/verdocs-web-sdk/{p-1402ff01.system.entry.js → p-6a44fb56.system.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/{p-cfec9914.entry.js → p-717c9fe1.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-e7da2f5c.entry.js → p-73ea1ea3.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/{p-b898c99b.system.entry.js → p-7850f739.system.entry.js} +1 -1
  154. package/dist/verdocs-web-sdk/p-7a23c2c8.system.js +1 -0
  155. package/dist/verdocs-web-sdk/{p-7baf2c02.system.entry.js → p-813c2fae.system.entry.js} +1 -1
  156. package/dist/verdocs-web-sdk/p-8aba7c0a.entry.js +1 -0
  157. package/dist/verdocs-web-sdk/{p-8e181e8c.entry.js → p-8b85f402.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/{p-00f8400e.system.entry.js → p-8c5ffa7b.system.entry.js} +1 -1
  159. package/dist/verdocs-web-sdk/{p-38ac3807.entry.js → p-8e386265.entry.js} +1 -1
  160. package/dist/verdocs-web-sdk/{p-973ebb54.system.js → p-8fd812f4.system.js} +1 -1
  161. package/dist/verdocs-web-sdk/p-94365585.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/{p-b8d94f4c.system.entry.js → p-9c87f6f8.system.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/p-9d7fa51d.system.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/p-a3c06b62.entry.js +1 -0
  165. package/dist/verdocs-web-sdk/{p-10fe89ab.entry.js → p-a4cbba4a.entry.js} +1 -1
  166. package/dist/verdocs-web-sdk/{p-ee53ee29.system.entry.js → p-afa1f20b.system.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/p-b18c293a.system.entry.js +1 -0
  168. package/dist/verdocs-web-sdk/p-b772cdb5.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/{p-b00a49aa.entry.js → p-be6d3848.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/p-c220af42.js +1 -0
  171. package/dist/verdocs-web-sdk/{p-c0b1ace5.entry.js → p-c3ef7b4f.entry.js} +1 -1
  172. package/dist/verdocs-web-sdk/{p-10444734.system.entry.js → p-c59f1a0a.system.entry.js} +1 -1
  173. package/dist/verdocs-web-sdk/p-c841a530.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/{p-9b73909f.js → p-cf790f4f.js} +1 -1
  175. package/dist/verdocs-web-sdk/{p-7dda316b.entry.js → p-d4c8f358.entry.js} +1 -1
  176. package/dist/verdocs-web-sdk/p-dc9c4361.system.js +1 -0
  177. package/dist/verdocs-web-sdk/{p-64897a63.entry.js → p-decf6a56.entry.js} +1 -1
  178. package/dist/verdocs-web-sdk/p-e2635788.system.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/{p-f1940c85.system.entry.js → p-e727af9c.system.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-d146b48e.entry.js → p-e72c075e.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/p-eaf0b189.system.js +1 -0
  182. package/dist/verdocs-web-sdk/p-ebca6188.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/{p-ca2ed07e.system.entry.js → p-f0db17e6.system.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/p-f37f1ebc.system.entry.js +1 -0
  185. package/dist/verdocs-web-sdk/{p-73155c52.js → p-f9bea98a.js} +1 -1
  186. package/dist/verdocs-web-sdk/{p-da31f940.system.js → p-fa6b1145.system.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-05fc6555.system.entry.js → p-fcfd3193.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-4dec0879.entry.js → p-fdda1309.entry.js} +1 -1
  189. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  190. package/package.json +5 -5
  191. package/dist/cjs/verdocs-template-properties.cjs.entry.js +0 -75
  192. package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.css +0 -102
  193. package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.js +0 -177
  194. package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.stories.js +0 -13
  195. package/dist/components/verdocs-template-properties.d.ts +0 -11
  196. package/dist/components/verdocs-template-properties.js +0 -131
  197. package/dist/esm/verdocs-template-properties.entry.js +0 -71
  198. package/dist/esm-es5/Recipients-198b2531.js +0 -1
  199. package/dist/esm-es5/index-d264c496.js +0 -1
  200. package/dist/esm-es5/verdocs-template-properties.entry.js +0 -1
  201. package/dist/types/components/templates/verdocs-template-properties/verdocs-template-properties.d.ts +0 -45
  202. package/dist/types/components/templates/verdocs-template-properties/verdocs-template-properties.stories.d.ts +0 -8
  203. package/dist/verdocs-web-sdk/p-0e4fe8f9.entry.js +0 -1
  204. package/dist/verdocs-web-sdk/p-10ec9a96.entry.js +0 -1
  205. package/dist/verdocs-web-sdk/p-12e54f39.js +0 -1
  206. package/dist/verdocs-web-sdk/p-1d14ae9c.entry.js +0 -1
  207. package/dist/verdocs-web-sdk/p-23292d40.system.entry.js +0 -1
  208. package/dist/verdocs-web-sdk/p-381f2a5f.entry.js +0 -1
  209. package/dist/verdocs-web-sdk/p-4157aa74.entry.js +0 -1
  210. package/dist/verdocs-web-sdk/p-494d4276.system.js +0 -1
  211. package/dist/verdocs-web-sdk/p-4a9a3134.system.entry.js +0 -1
  212. package/dist/verdocs-web-sdk/p-4d1f3ddb.entry.js +0 -1
  213. package/dist/verdocs-web-sdk/p-51a3ea62.system.js +0 -1
  214. package/dist/verdocs-web-sdk/p-71976828.entry.js +0 -1
  215. package/dist/verdocs-web-sdk/p-73717726.system.entry.js +0 -1
  216. package/dist/verdocs-web-sdk/p-77cd3ac5.system.entry.js +0 -1
  217. package/dist/verdocs-web-sdk/p-7bd5422e.system.entry.js +0 -1
  218. package/dist/verdocs-web-sdk/p-9c87a748.system.entry.js +0 -1
  219. package/dist/verdocs-web-sdk/p-ab01f71e.js +0 -1
  220. package/dist/verdocs-web-sdk/p-b3a8928b.entry.js +0 -1
  221. package/dist/verdocs-web-sdk/p-b6016e12.entry.js +0 -1
  222. package/dist/verdocs-web-sdk/p-d2bcbce0.system.entry.js +0 -1
  223. package/dist/verdocs-web-sdk/p-e7058963.system.entry.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/web-sdk",
3
- "version": "1.14.8",
3
+ "version": "1.14.10",
4
4
  "private": false,
5
5
  "description": "Verdocs Web SDK",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "@stencil/core": "2.20.0",
34
34
  "@stencil/store": "^2.0.4",
35
35
  "@svgdotjs/svg.js": "^3.1.2",
36
- "@verdocs/js-sdk": "^3.6.5",
37
- "date-fns": "^2.29.3",
36
+ "@verdocs/js-sdk": "^3.6.7",
37
+ "date-fns": "^2.30.0",
38
38
  "flatpickr": "^4.6.13",
39
39
  "interactjs": "^1.10.17",
40
40
  "jszip": "^3.10.1",
@@ -65,9 +65,9 @@
65
65
  "jest": "^29.5.0",
66
66
  "jest-cli": "^29.5.0",
67
67
  "jest-svg-transformer": "^1.0.0",
68
- "lit-html": "^2.7.0",
68
+ "lit-html": "^2.7.4",
69
69
  "postinstall-postinstall": "^2.1.0",
70
- "prettier": "^2.8.7",
70
+ "prettier": "^2.8.8",
71
71
  "puppeteer": "^16.2.0",
72
72
  "react": "^18.2.0",
73
73
  "react-dom": "^18.2.0",
@@ -1,75 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-70677d67.js');
6
- require('./Types-f89f9116.js');
7
- const VerdocsEndpoint = require('./VerdocsEndpoint-f2af9468.js');
8
- const TemplateStore = require('./TemplateStore-19f84862.js');
9
- const errors = require('./errors-0396da3d.js');
10
- require('./index-e84e0687.js');
11
- require('./Templates-24580a13.js');
12
-
13
- const verdocsTemplatePropertiesCss = "verdocs-template-properties{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}";
14
-
15
- const VerdocsTemplateProperties = class {
16
- constructor(hostRef) {
17
- index.registerInstance(this, hostRef);
18
- this.exit = index.createEvent(this, "exit", 7);
19
- this.next = index.createEvent(this, "next", 7);
20
- this.sdkError = index.createEvent(this, "sdkError", 7);
21
- this.store = null;
22
- this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
23
- this.templateId = '';
24
- this.name = '';
25
- this.visibility = '';
26
- this.sendReminders = false;
27
- this.firstReminderDays = '1';
28
- this.reminderDays = '1';
29
- }
30
- async componentWillLoad() {
31
- var _a, _b, _c, _d, _e, _f, _g;
32
- try {
33
- this.endpoint.loadSession();
34
- if (!this.templateId) {
35
- console.log(`[PROPERTIES] Missing required template ID ${this.templateId}`);
36
- return;
37
- }
38
- if (!this.endpoint.session) {
39
- console.log('[PROPERTIES] Unable to start builder session, must be authenticated');
40
- return;
41
- }
42
- this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, true);
43
- this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
44
- this.sendReminders = ((_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.reminder_id) !== null;
45
- }
46
- catch (e) {
47
- console.log('[PROPERTIES] Error loading template', e);
48
- (_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new errors.SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
49
- }
50
- }
51
- handleCancel(e) {
52
- var _a;
53
- e.stopPropagation();
54
- (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
55
- }
56
- handleSubmit(e) {
57
- var _a;
58
- e.stopPropagation();
59
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
60
- name: this.name,
61
- firstReminderDays: +this.firstReminderDays,
62
- reminderDays: +this.reminderDays,
63
- sendReminders: this.sendReminders,
64
- });
65
- }
66
- render() {
67
- if (!this.endpoint.session) {
68
- return (index.h(index.Host, null, index.h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
69
- }
70
- return (index.h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, index.h("h5", null, "Template Name"), index.h("fieldset", null, index.h("verdocs-text-input", { value: this.name, autocomplete: "off", onInput: (e) => (this.name = e.target.value) })), index.h("h5", null, "Reminders"), index.h("fieldset", null, index.h("div", { class: "input-row" }, index.h("label", null, "Send Automatic Reminders"), index.h("verdocs-checkbox", { name: "automatic-reminders", checked: this.sendReminders, value: "on", onInput: (e) => (this.sendReminders = e.target.checked) })), index.h("div", { class: "input-row" }, index.h("label", null, "Days Before First Reminder"), index.h("verdocs-text-input", { value: this.firstReminderDays, onInput: (e) => (this.firstReminderDays = e.target.value) })), index.h("div", { class: "input-row" }, index.h("label", null, "Days Between Reminders"), index.h("verdocs-text-input", { value: this.reminderDays, onInput: (e) => (this.reminderDays = e.target.value) }))), index.h("h5", null, "Template Visibility"), index.h("fieldset", null, index.h("div", { class: "radio-row" }, index.h("verdocs-radio-button", { name: "visibility", checked: true, value: "private", onChange: () => (this.visibility = 'private') }), index.h("label", { htmlFor: "verdocs-radio-button-visibility-private" }, index.h("div", { class: "title" }, "Private"), index.h("div", { class: "description" }, "Only you can share and use this template"))), index.h("div", { class: "radio-row" }, index.h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared", onChange: () => (this.visibility = 'shared') }), index.h("label", { htmlFor: "verdocs-radio-button-visibility-shared" }, index.h("div", { class: "title" }, "Shared to your organization"), index.h("div", { class: "description" }, "Give access to your organization to share and use this template"))), index.h("div", { class: "radio-row" }, index.h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared_public", onChange: () => (this.visibility = 'shared_public') }), index.h("label", { htmlFor: "verdocs-radio-button-visibility-shared_public" }, index.h("div", { class: "title" }, "Shared to your organization and Public"), index.h("div", { class: "description" }, "Give access to your organization to share this template, and anyone on the Web can find and use this template"))), index.h("div", { class: "radio-row" }, index.h("verdocs-radio-button", { name: "visibility", checked: this.visibility === 'public', value: "public", onChange: () => (this.visibility = 'public') }), index.h("label", { htmlFor: "verdocs-radio-button-visibility-public" }, index.h("div", { class: "title" }, "Public"), index.h("div", { class: "description" }, "Anyone on the Web can find and use this template")))), index.h("div", { class: "buttons" }, index.h("div", { class: "flex-fill" }), index.h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
71
- }
72
- };
73
- VerdocsTemplateProperties.style = verdocsTemplatePropertiesCss;
74
-
75
- exports.verdocs_template_properties = VerdocsTemplateProperties;
@@ -1,102 +0,0 @@
1
- verdocs-template-properties {
2
- font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
3
- }
4
- verdocs-template-properties form {
5
- display: flex;
6
- flex-direction: column;
7
- }
8
- verdocs-template-properties form h5 {
9
- font-size: 14px;
10
- font-weight: 400;
11
- margin: 0 0 6px 0;
12
- }
13
- verdocs-template-properties form .row {
14
- display: flex;
15
- position: relative;
16
- margin: 0 0 20px 0;
17
- flex-direction: column;
18
- }
19
- verdocs-template-properties form fieldset {
20
- width: 440px;
21
- border: none;
22
- max-width: 100%;
23
- margin: 0 0 20px 0;
24
- box-sizing: border-box;
25
- padding: 20px 20px 10px 20px;
26
- background-color: #ffffff;
27
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);
28
- }
29
- verdocs-template-properties form label {
30
- display: block;
31
- font-size: 14px;
32
- font-weight: 500;
33
- margin: 0 0 4px 0;
34
- color: #5c6575;
35
- }
36
- verdocs-template-properties form input {
37
- border: none;
38
- font-size: 18px;
39
- padding: 3px 6px 3px 0;
40
- background: transparent;
41
- border-bottom: 1px solid #33364b;
42
- }
43
- verdocs-template-properties form input:focus {
44
- outline: none;
45
- }
46
- verdocs-template-properties form .input-row {
47
- display: flex;
48
- margin: 0 0 10px 0;
49
- align-items: center;
50
- flex-direction: row;
51
- }
52
- verdocs-template-properties form .input-row label {
53
- flex: 1;
54
- display: flex;
55
- }
56
- verdocs-template-properties form .input-row verdocs-text-input {
57
- margin: 0;
58
- display: flex;
59
- flex: 0 0 40px;
60
- }
61
- verdocs-template-properties form .input-row verdocs-text-input input {
62
- text-align: center;
63
- }
64
- verdocs-template-properties form .input-row verdocs-checkbox {
65
- display: flex;
66
- flex: 0 0 40px;
67
- justify-content: center;
68
- }
69
- verdocs-template-properties form .radio-row {
70
- display: flex;
71
- position: relative;
72
- margin: 0 0 10px 0;
73
- flex-direction: row;
74
- }
75
- verdocs-template-properties form .radio-row verdocs-radio-button {
76
- display: flex;
77
- flex: 0 0 30px;
78
- }
79
- verdocs-template-properties form .radio-row label {
80
- display: flex;
81
- flex-direction: column;
82
- }
83
- verdocs-template-properties form .radio-row label .title {
84
- font-size: 16px;
85
- font-weight: 500;
86
- }
87
- verdocs-template-properties form .radio-row label .description {
88
- font-size: 14px;
89
- font-weight: 400;
90
- }
91
- verdocs-template-properties .buttons {
92
- display: flex;
93
- column-gap: 8px;
94
- margin-top: 16px;
95
- flex-direction: row;
96
- }
97
- verdocs-template-properties .buttons .flex-fill {
98
- flex: 1;
99
- }
100
- verdocs-template-properties ::placeholder {
101
- color: #aaaaaa;
102
- }
@@ -1,177 +0,0 @@
1
- import { VerdocsEndpoint } from '@verdocs/js-sdk';
2
- import { h, Host } from '@stencil/core';
3
- import { getTemplateStore } from '../../../utils/TemplateStore';
4
- import { SDKError } from '../../../utils/errors';
5
- /**
6
- * Displays a collection of settings boxes that allow a user to configure a template's behavior.
7
- */
8
- export class VerdocsTemplateProperties {
9
- constructor() {
10
- this.store = null;
11
- this.endpoint = VerdocsEndpoint.getDefault();
12
- this.templateId = '';
13
- this.name = '';
14
- this.visibility = '';
15
- this.sendReminders = false;
16
- this.firstReminderDays = '1';
17
- this.reminderDays = '1';
18
- }
19
- async componentWillLoad() {
20
- var _a, _b, _c, _d, _e, _f, _g;
21
- try {
22
- this.endpoint.loadSession();
23
- if (!this.templateId) {
24
- console.log(`[PROPERTIES] Missing required template ID ${this.templateId}`);
25
- return;
26
- }
27
- if (!this.endpoint.session) {
28
- console.log('[PROPERTIES] Unable to start builder session, must be authenticated');
29
- return;
30
- }
31
- this.store = await getTemplateStore(this.endpoint, this.templateId, true);
32
- this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
33
- this.sendReminders = ((_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.reminder_id) !== null;
34
- }
35
- catch (e) {
36
- console.log('[PROPERTIES] Error loading template', e);
37
- (_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
38
- }
39
- }
40
- handleCancel(e) {
41
- var _a;
42
- e.stopPropagation();
43
- (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
44
- }
45
- handleSubmit(e) {
46
- var _a;
47
- e.stopPropagation();
48
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
49
- name: this.name,
50
- firstReminderDays: +this.firstReminderDays,
51
- reminderDays: +this.reminderDays,
52
- sendReminders: this.sendReminders,
53
- });
54
- }
55
- render() {
56
- if (!this.endpoint.session) {
57
- return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
58
- }
59
- return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("h5", null, "Template Name"), h("fieldset", null, h("verdocs-text-input", { value: this.name, autocomplete: "off", onInput: (e) => (this.name = e.target.value) })), h("h5", null, "Reminders"), h("fieldset", null, h("div", { class: "input-row" }, h("label", null, "Send Automatic Reminders"), h("verdocs-checkbox", { name: "automatic-reminders", checked: this.sendReminders, value: "on", onInput: (e) => (this.sendReminders = e.target.checked) })), h("div", { class: "input-row" }, h("label", null, "Days Before First Reminder"), h("verdocs-text-input", { value: this.firstReminderDays, onInput: (e) => (this.firstReminderDays = e.target.value) })), h("div", { class: "input-row" }, h("label", null, "Days Between Reminders"), h("verdocs-text-input", { value: this.reminderDays, onInput: (e) => (this.reminderDays = e.target.value) }))), h("h5", null, "Template Visibility"), h("fieldset", null, h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "private", onChange: () => (this.visibility = 'private') }), h("label", { htmlFor: "verdocs-radio-button-visibility-private" }, h("div", { class: "title" }, "Private"), h("div", { class: "description" }, "Only you can share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared", onChange: () => (this.visibility = 'shared') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared" }, h("div", { class: "title" }, "Shared to your organization"), h("div", { class: "description" }, "Give access to your organization to share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared_public", onChange: () => (this.visibility = 'shared_public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared_public" }, h("div", { class: "title" }, "Shared to your organization and Public"), h("div", { class: "description" }, "Give access to your organization to share this template, and anyone on the Web can find and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: this.visibility === 'public', value: "public", onChange: () => (this.visibility = 'public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-public" }, h("div", { class: "title" }, "Public"), h("div", { class: "description" }, "Anyone on the Web can find and use this template")))), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
60
- }
61
- static get is() { return "verdocs-template-properties"; }
62
- static get originalStyleUrls() {
63
- return {
64
- "$": ["verdocs-template-properties.scss"]
65
- };
66
- }
67
- static get styleUrls() {
68
- return {
69
- "$": ["verdocs-template-properties.css"]
70
- };
71
- }
72
- static get properties() {
73
- return {
74
- "endpoint": {
75
- "type": "unknown",
76
- "mutable": false,
77
- "complexType": {
78
- "original": "VerdocsEndpoint",
79
- "resolved": "VerdocsEndpoint",
80
- "references": {
81
- "VerdocsEndpoint": {
82
- "location": "import",
83
- "path": "@verdocs/js-sdk"
84
- }
85
- }
86
- },
87
- "required": false,
88
- "optional": false,
89
- "docs": {
90
- "tags": [],
91
- "text": "The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used."
92
- },
93
- "defaultValue": "VerdocsEndpoint.getDefault()"
94
- },
95
- "templateId": {
96
- "type": "string",
97
- "mutable": false,
98
- "complexType": {
99
- "original": "string",
100
- "resolved": "string",
101
- "references": {}
102
- },
103
- "required": false,
104
- "optional": false,
105
- "docs": {
106
- "tags": [],
107
- "text": "The template ID to edit."
108
- },
109
- "attribute": "template-id",
110
- "reflect": false,
111
- "defaultValue": "''"
112
- }
113
- };
114
- }
115
- static get states() {
116
- return {
117
- "name": {},
118
- "visibility": {},
119
- "sendReminders": {},
120
- "firstReminderDays": {},
121
- "reminderDays": {}
122
- };
123
- }
124
- static get events() {
125
- return [{
126
- "method": "exit",
127
- "name": "exit",
128
- "bubbles": true,
129
- "cancelable": true,
130
- "composed": true,
131
- "docs": {
132
- "tags": [],
133
- "text": "Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name."
134
- },
135
- "complexType": {
136
- "original": "any",
137
- "resolved": "any",
138
- "references": {}
139
- }
140
- }, {
141
- "method": "next",
142
- "name": "next",
143
- "bubbles": true,
144
- "cancelable": true,
145
- "composed": true,
146
- "docs": {
147
- "tags": [],
148
- "text": "Event fired when the user completes the step."
149
- },
150
- "complexType": {
151
- "original": "{name: string; sendReminders: boolean; firstReminderDays: number; reminderDays: number}",
152
- "resolved": "{ name: string; sendReminders: boolean; firstReminderDays: number; reminderDays: number; }",
153
- "references": {}
154
- }
155
- }, {
156
- "method": "sdkError",
157
- "name": "sdkError",
158
- "bubbles": true,
159
- "cancelable": true,
160
- "composed": true,
161
- "docs": {
162
- "tags": [],
163
- "text": "Event fired if an error occurs. The event details will contain information about the error. Most errors will\nterminate the process, and the calling application should correct the condition and re-render the component."
164
- },
165
- "complexType": {
166
- "original": "SDKError",
167
- "resolved": "SDKError",
168
- "references": {
169
- "SDKError": {
170
- "location": "import",
171
- "path": "../../../utils/errors"
172
- }
173
- }
174
- }
175
- }];
176
- }
177
- }
@@ -1,13 +0,0 @@
1
- import { html } from 'lit-html';
2
- export default {
3
- title: 'Templates/Properties',
4
- component: 'verdocs-template-properties',
5
- args: {
6
- templateId: '',
7
- },
8
- argTypes: {
9
- onExit: { action: 'exit' },
10
- onNext: { action: 'next' },
11
- },
12
- };
13
- export const Properties = ({ onExit, onNext, templateId }) => html `<verdocs-template-properties .templateId=${templateId} @exit=${onExit} @next=${onNext} />`;
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface VerdocsTemplateProperties extends Components.VerdocsTemplateProperties, HTMLElement {}
4
- export const VerdocsTemplateProperties: {
5
- prototype: VerdocsTemplateProperties;
6
- new (): VerdocsTemplateProperties;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,131 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import './Types.js';
3
- import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
4
- import { g as getTemplateStore } from './TemplateStore.js';
5
- import { S as SDKError } from './errors.js';
6
- import { d as defineCustomElement$7 } from './verdocs-button2.js';
7
- import { d as defineCustomElement$6 } from './verdocs-checkbox2.js';
8
- import { d as defineCustomElement$5 } from './verdocs-component-error2.js';
9
- import { d as defineCustomElement$4 } from './verdocs-help-icon2.js';
10
- import { d as defineCustomElement$3 } from './verdocs-radio-button2.js';
11
- import { d as defineCustomElement$2 } from './verdocs-text-input2.js';
12
-
13
- const verdocsTemplatePropertiesCss = "verdocs-template-properties{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}";
14
-
15
- const VerdocsTemplateProperties$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
16
- constructor() {
17
- super();
18
- this.__registerHost();
19
- this.exit = createEvent(this, "exit", 7);
20
- this.next = createEvent(this, "next", 7);
21
- this.sdkError = createEvent(this, "sdkError", 7);
22
- this.store = null;
23
- this.endpoint = VerdocsEndpoint.getDefault();
24
- this.templateId = '';
25
- this.name = '';
26
- this.visibility = '';
27
- this.sendReminders = false;
28
- this.firstReminderDays = '1';
29
- this.reminderDays = '1';
30
- }
31
- async componentWillLoad() {
32
- var _a, _b, _c, _d, _e, _f, _g;
33
- try {
34
- this.endpoint.loadSession();
35
- if (!this.templateId) {
36
- console.log(`[PROPERTIES] Missing required template ID ${this.templateId}`);
37
- return;
38
- }
39
- if (!this.endpoint.session) {
40
- console.log('[PROPERTIES] Unable to start builder session, must be authenticated');
41
- return;
42
- }
43
- this.store = await getTemplateStore(this.endpoint, this.templateId, true);
44
- this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
45
- this.sendReminders = ((_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.reminder_id) !== null;
46
- }
47
- catch (e) {
48
- console.log('[PROPERTIES] Error loading template', e);
49
- (_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
50
- }
51
- }
52
- handleCancel(e) {
53
- var _a;
54
- e.stopPropagation();
55
- (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
56
- }
57
- handleSubmit(e) {
58
- var _a;
59
- e.stopPropagation();
60
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
61
- name: this.name,
62
- firstReminderDays: +this.firstReminderDays,
63
- reminderDays: +this.reminderDays,
64
- sendReminders: this.sendReminders,
65
- });
66
- }
67
- render() {
68
- if (!this.endpoint.session) {
69
- return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
70
- }
71
- return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("h5", null, "Template Name"), h("fieldset", null, h("verdocs-text-input", { value: this.name, autocomplete: "off", onInput: (e) => (this.name = e.target.value) })), h("h5", null, "Reminders"), h("fieldset", null, h("div", { class: "input-row" }, h("label", null, "Send Automatic Reminders"), h("verdocs-checkbox", { name: "automatic-reminders", checked: this.sendReminders, value: "on", onInput: (e) => (this.sendReminders = e.target.checked) })), h("div", { class: "input-row" }, h("label", null, "Days Before First Reminder"), h("verdocs-text-input", { value: this.firstReminderDays, onInput: (e) => (this.firstReminderDays = e.target.value) })), h("div", { class: "input-row" }, h("label", null, "Days Between Reminders"), h("verdocs-text-input", { value: this.reminderDays, onInput: (e) => (this.reminderDays = e.target.value) }))), h("h5", null, "Template Visibility"), h("fieldset", null, h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "private", onChange: () => (this.visibility = 'private') }), h("label", { htmlFor: "verdocs-radio-button-visibility-private" }, h("div", { class: "title" }, "Private"), h("div", { class: "description" }, "Only you can share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared", onChange: () => (this.visibility = 'shared') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared" }, h("div", { class: "title" }, "Shared to your organization"), h("div", { class: "description" }, "Give access to your organization to share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared_public", onChange: () => (this.visibility = 'shared_public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared_public" }, h("div", { class: "title" }, "Shared to your organization and Public"), h("div", { class: "description" }, "Give access to your organization to share this template, and anyone on the Web can find and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: this.visibility === 'public', value: "public", onChange: () => (this.visibility = 'public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-public" }, h("div", { class: "title" }, "Public"), h("div", { class: "description" }, "Anyone on the Web can find and use this template")))), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
72
- }
73
- static get style() { return verdocsTemplatePropertiesCss; }
74
- }, [0, "verdocs-template-properties", {
75
- "endpoint": [16],
76
- "templateId": [1, "template-id"],
77
- "name": [32],
78
- "visibility": [32],
79
- "sendReminders": [32],
80
- "firstReminderDays": [32],
81
- "reminderDays": [32]
82
- }]);
83
- function defineCustomElement$1() {
84
- if (typeof customElements === "undefined") {
85
- return;
86
- }
87
- const components = ["verdocs-template-properties", "verdocs-button", "verdocs-checkbox", "verdocs-component-error", "verdocs-help-icon", "verdocs-radio-button", "verdocs-text-input"];
88
- components.forEach(tagName => { switch (tagName) {
89
- case "verdocs-template-properties":
90
- if (!customElements.get(tagName)) {
91
- customElements.define(tagName, VerdocsTemplateProperties$1);
92
- }
93
- break;
94
- case "verdocs-button":
95
- if (!customElements.get(tagName)) {
96
- defineCustomElement$7();
97
- }
98
- break;
99
- case "verdocs-checkbox":
100
- if (!customElements.get(tagName)) {
101
- defineCustomElement$6();
102
- }
103
- break;
104
- case "verdocs-component-error":
105
- if (!customElements.get(tagName)) {
106
- defineCustomElement$5();
107
- }
108
- break;
109
- case "verdocs-help-icon":
110
- if (!customElements.get(tagName)) {
111
- defineCustomElement$4();
112
- }
113
- break;
114
- case "verdocs-radio-button":
115
- if (!customElements.get(tagName)) {
116
- defineCustomElement$3();
117
- }
118
- break;
119
- case "verdocs-text-input":
120
- if (!customElements.get(tagName)) {
121
- defineCustomElement$2();
122
- }
123
- break;
124
- } });
125
- }
126
- defineCustomElement$1();
127
-
128
- const VerdocsTemplateProperties = VerdocsTemplateProperties$1;
129
- const defineCustomElement = defineCustomElement$1;
130
-
131
- export { VerdocsTemplateProperties, defineCustomElement };
@@ -1,71 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-b18c0348.js';
2
- import './Types-5f31149e.js';
3
- import { V as VerdocsEndpoint } from './VerdocsEndpoint-5b92f115.js';
4
- import { g as getTemplateStore } from './TemplateStore-852097c3.js';
5
- import { S as SDKError } from './errors-9b5498c8.js';
6
- import './index-29123f30.js';
7
- import './Templates-67172396.js';
8
-
9
- const verdocsTemplatePropertiesCss = "verdocs-template-properties{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}";
10
-
11
- const VerdocsTemplateProperties = class {
12
- constructor(hostRef) {
13
- registerInstance(this, hostRef);
14
- this.exit = createEvent(this, "exit", 7);
15
- this.next = createEvent(this, "next", 7);
16
- this.sdkError = createEvent(this, "sdkError", 7);
17
- this.store = null;
18
- this.endpoint = VerdocsEndpoint.getDefault();
19
- this.templateId = '';
20
- this.name = '';
21
- this.visibility = '';
22
- this.sendReminders = false;
23
- this.firstReminderDays = '1';
24
- this.reminderDays = '1';
25
- }
26
- async componentWillLoad() {
27
- var _a, _b, _c, _d, _e, _f, _g;
28
- try {
29
- this.endpoint.loadSession();
30
- if (!this.templateId) {
31
- console.log(`[PROPERTIES] Missing required template ID ${this.templateId}`);
32
- return;
33
- }
34
- if (!this.endpoint.session) {
35
- console.log('[PROPERTIES] Unable to start builder session, must be authenticated');
36
- return;
37
- }
38
- this.store = await getTemplateStore(this.endpoint, this.templateId, true);
39
- this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
40
- this.sendReminders = ((_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.reminder_id) !== null;
41
- }
42
- catch (e) {
43
- console.log('[PROPERTIES] Error loading template', e);
44
- (_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
45
- }
46
- }
47
- handleCancel(e) {
48
- var _a;
49
- e.stopPropagation();
50
- (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
51
- }
52
- handleSubmit(e) {
53
- var _a;
54
- e.stopPropagation();
55
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({
56
- name: this.name,
57
- firstReminderDays: +this.firstReminderDays,
58
- reminderDays: +this.reminderDays,
59
- sendReminders: this.sendReminders,
60
- });
61
- }
62
- render() {
63
- if (!this.endpoint.session) {
64
- return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
65
- }
66
- return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("h5", null, "Template Name"), h("fieldset", null, h("verdocs-text-input", { value: this.name, autocomplete: "off", onInput: (e) => (this.name = e.target.value) })), h("h5", null, "Reminders"), h("fieldset", null, h("div", { class: "input-row" }, h("label", null, "Send Automatic Reminders"), h("verdocs-checkbox", { name: "automatic-reminders", checked: this.sendReminders, value: "on", onInput: (e) => (this.sendReminders = e.target.checked) })), h("div", { class: "input-row" }, h("label", null, "Days Before First Reminder"), h("verdocs-text-input", { value: this.firstReminderDays, onInput: (e) => (this.firstReminderDays = e.target.value) })), h("div", { class: "input-row" }, h("label", null, "Days Between Reminders"), h("verdocs-text-input", { value: this.reminderDays, onInput: (e) => (this.reminderDays = e.target.value) }))), h("h5", null, "Template Visibility"), h("fieldset", null, h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "private", onChange: () => (this.visibility = 'private') }), h("label", { htmlFor: "verdocs-radio-button-visibility-private" }, h("div", { class: "title" }, "Private"), h("div", { class: "description" }, "Only you can share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared", onChange: () => (this.visibility = 'shared') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared" }, h("div", { class: "title" }, "Shared to your organization"), h("div", { class: "description" }, "Give access to your organization to share and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: true, value: "shared_public", onChange: () => (this.visibility = 'shared_public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-shared_public" }, h("div", { class: "title" }, "Shared to your organization and Public"), h("div", { class: "description" }, "Give access to your organization to share this template, and anyone on the Web can find and use this template"))), h("div", { class: "radio-row" }, h("verdocs-radio-button", { name: "visibility", checked: this.visibility === 'public', value: "public", onChange: () => (this.visibility = 'public') }), h("label", { htmlFor: "verdocs-radio-button-visibility-public" }, h("div", { class: "title" }, "Public"), h("div", { class: "description" }, "Anyone on the Web can find and use this template")))), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e) }))));
67
- }
68
- };
69
- VerdocsTemplateProperties.style = verdocsTemplatePropertiesCss;
70
-
71
- export { VerdocsTemplateProperties as verdocs_template_properties };
@@ -1 +0,0 @@
1
- var __awaiter=undefined&&undefined.__awaiter||function(e,n,t,r){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?t(e.value):i(e.value).then(a,u)}c((r=r.apply(e,n||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(n){return c([e,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(t=0)),t)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1];o=u;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(u);break}if(o[2])t.ops.pop();t.trys.pop();continue}u=n.call(e,t)}catch(e){u=[6,e];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var updateRecipient=function(e,n,t,r){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(i){return[2,e.api.put("/envelopes/".concat(n,"/recipients/").concat(t),r).then((function(e){return e.data}))]}))}))};var envelopeRecipientSubmit=function(e,n,t){return updateRecipient(e,n,t,{action:"submit"})};var envelopeRecipientDecline=function(e,n,t){return updateRecipient(e,n,t,{action:"decline"})};var envelopeRecipientAgree=function(e,n,t,r){return updateRecipient(e,n,t,{action:"update",agreed:r})};var getInPersonLink=function(e,n,t){return e.api.get("/envelopes/".concat(n,"/recipients/").concat(encodeURIComponent(t),"?in_person_link=true")).then((function(e){return e.data}))};export{envelopeRecipientDecline as a,envelopeRecipientSubmit as b,envelopeRecipientAgree as e,getInPersonLink as g};