@verdocs/web-sdk 1.13.4 → 1.13.6

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 (165) hide show
  1. package/README.md +12 -0
  2. package/dist/cjs/{TemplateStore-01ff3237.js → TemplateStore-df478971.js} +1 -1
  3. package/dist/cjs/{Templates-e258cbd5.js → Templates-24580a13.js} +36 -4
  4. package/dist/cjs/{popper-11d5f714.js → popper-9def2535.js} +3 -4
  5. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  6. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +3 -3
  7. package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +4 -1
  10. package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
  11. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-send.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-template-attachments.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-template-create_3.cjs.entry.js +12 -11
  16. package/dist/cjs/verdocs-template-document-page.cjs.entry.js +52 -2
  17. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +1 -1
  23. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +3 -3
  24. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +3 -3
  25. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +3 -3
  26. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +3 -3
  27. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +3 -3
  28. package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +3 -3
  29. package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.js +3 -3
  30. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +3 -3
  31. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +3 -3
  32. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +7 -4
  33. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +3 -3
  34. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +4 -8
  35. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.css +4 -0
  36. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +6 -1
  37. package/dist/collection/utils/utils.js +9 -0
  38. package/dist/components/Templates.js +36 -4
  39. package/dist/components/popper.js +3 -4
  40. package/dist/components/verdocs-field-textbox.js +4 -1
  41. package/dist/components/verdocs-template-create2.js +4 -8
  42. package/dist/components/verdocs-template-document-page2.js +51 -1
  43. package/dist/components/verdocs-template-fields2.js +7 -2
  44. package/dist/docs.json +23 -23
  45. package/dist/esm/{TemplateStore-91a71f46.js → TemplateStore-373c72a8.js} +1 -1
  46. package/dist/esm/{Templates-ca52ef90.js → Templates-67172396.js} +36 -4
  47. package/dist/esm/{popper-f860750c.js → popper-bfa25c7f.js} +3 -4
  48. package/dist/esm/verdocs-build.entry.js +2 -2
  49. package/dist/esm/verdocs-button-panel_3.entry.js +3 -3
  50. package/dist/esm/verdocs-checkbox_4.entry.js +1 -1
  51. package/dist/esm/verdocs-dropdown_2.entry.js +1 -1
  52. package/dist/esm/verdocs-field-textbox.entry.js +4 -1
  53. package/dist/esm/verdocs-preview.entry.js +2 -2
  54. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  55. package/dist/esm/verdocs-send.entry.js +2 -2
  56. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  57. package/dist/esm/verdocs-template-attachments.entry.js +2 -2
  58. package/dist/esm/verdocs-template-create_3.entry.js +12 -11
  59. package/dist/esm/verdocs-template-document-page.entry.js +51 -1
  60. package/dist/esm/verdocs-template-name.entry.js +2 -2
  61. package/dist/esm/verdocs-template-properties.entry.js +2 -2
  62. package/dist/esm/verdocs-template-reminders.entry.js +2 -2
  63. package/dist/esm/verdocs-template-role-properties_2.entry.js +2 -2
  64. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  65. package/dist/esm/verdocs-toolbar-icon.entry.js +1 -1
  66. package/dist/esm-es5/{TemplateStore-91a71f46.js → TemplateStore-373c72a8.js} +1 -1
  67. package/dist/esm-es5/Templates-67172396.js +1 -0
  68. package/dist/esm-es5/popper-bfa25c7f.js +1 -0
  69. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  70. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  71. package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
  72. package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
  73. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  74. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  75. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  76. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  77. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  78. package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
  79. package/dist/esm-es5/verdocs-template-create_3.entry.js +1 -1
  80. package/dist/esm-es5/verdocs-template-document-page.entry.js +1 -1
  81. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  82. package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
  83. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  84. package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
  85. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +1 -1
  87. package/dist/types/components/embeds/verdocs-build/utils.d.ts +2 -2
  88. package/dist/types/components/embeds/verdocs-sign/utils.d.ts +2 -2
  89. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -3
  90. package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +2 -2
  91. package/dist/types/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +2 -2
  92. package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +2 -2
  93. package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +2 -2
  94. package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +2 -2
  95. package/dist/types/components/fields/verdocs-field-payment/verdocs-field-payment.d.ts +2 -2
  96. package/dist/types/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.d.ts +2 -2
  97. package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +2 -2
  98. package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +2 -2
  99. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +2 -2
  100. package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +2 -2
  101. package/dist/types/components.d.ts +23 -23
  102. package/dist/types/utils/utils.d.ts +11 -7
  103. package/dist/verdocs-web-sdk/{p-de4c38a1.entry.js → p-068e6212.entry.js} +1 -1
  104. package/dist/verdocs-web-sdk/p-126c0301.system.entry.js +1 -0
  105. package/dist/verdocs-web-sdk/{p-650b9205.system.entry.js → p-1db79af9.system.entry.js} +1 -1
  106. package/dist/verdocs-web-sdk/{p-71adad1c.entry.js → p-1fc2dcb7.entry.js} +1 -1
  107. package/dist/verdocs-web-sdk/{p-3b1b11a8.system.entry.js → p-2287f1bc.system.entry.js} +1 -1
  108. package/dist/verdocs-web-sdk/{p-2d39a000.entry.js → p-27332125.entry.js} +1 -1
  109. package/dist/verdocs-web-sdk/{p-c25d965d.js → p-2fc46a8b.js} +1 -1
  110. package/dist/verdocs-web-sdk/p-4ac861c9.system.js +1 -0
  111. package/dist/verdocs-web-sdk/{p-fccb4fec.system.entry.js → p-527f15bb.system.entry.js} +1 -1
  112. package/dist/verdocs-web-sdk/p-5bb80e03.system.entry.js +1 -0
  113. package/dist/verdocs-web-sdk/p-5e0c6e7c.system.js +1 -0
  114. package/dist/verdocs-web-sdk/{p-1a34942f.system.entry.js → p-5e3893ec.system.entry.js} +1 -1
  115. package/dist/verdocs-web-sdk/{p-32fb9679.entry.js → p-658c3ab7.entry.js} +1 -1
  116. package/dist/verdocs-web-sdk/{p-f1edfd5a.system.js → p-66c74103.system.js} +1 -1
  117. package/dist/verdocs-web-sdk/p-6caf1137.system.js +1 -1
  118. package/dist/verdocs-web-sdk/{p-4eb829ca.system.entry.js → p-6ea848fe.system.entry.js} +1 -1
  119. package/dist/verdocs-web-sdk/{p-36f78b1f.system.entry.js → p-71a1576a.system.entry.js} +1 -1
  120. package/dist/verdocs-web-sdk/{p-39e906e0.entry.js → p-756d5c24.entry.js} +1 -1
  121. package/dist/verdocs-web-sdk/p-7e8fe43e.entry.js +1 -0
  122. package/dist/verdocs-web-sdk/p-822ba467.js +1 -0
  123. package/dist/verdocs-web-sdk/{p-62e12e8f.system.entry.js → p-82512045.system.entry.js} +1 -1
  124. package/dist/verdocs-web-sdk/{p-c9705b22.entry.js → p-82854066.entry.js} +1 -1
  125. package/dist/verdocs-web-sdk/{p-1886b178.entry.js → p-86e507c1.entry.js} +1 -1
  126. package/dist/verdocs-web-sdk/{p-cc396cda.entry.js → p-879e9572.entry.js} +1 -1
  127. package/dist/verdocs-web-sdk/{p-e4b56475.entry.js → p-87f428fb.entry.js} +1 -1
  128. package/dist/verdocs-web-sdk/{p-b3bca701.entry.js → p-91f062a8.entry.js} +1 -1
  129. package/dist/verdocs-web-sdk/{p-f7cfaa04.system.entry.js → p-920fd6d9.system.entry.js} +1 -1
  130. package/dist/verdocs-web-sdk/{p-38d0af92.entry.js → p-97be89cf.entry.js} +1 -1
  131. package/dist/verdocs-web-sdk/p-9d707f6e.js +1 -0
  132. package/dist/verdocs-web-sdk/{p-13f91d03.system.entry.js → p-a3282274.system.entry.js} +1 -1
  133. package/dist/verdocs-web-sdk/{p-c8901fde.entry.js → p-a5a530fa.entry.js} +1 -1
  134. package/dist/verdocs-web-sdk/p-a5f3f29c.entry.js +1 -0
  135. package/dist/verdocs-web-sdk/{p-5b4dd6a0.entry.js → p-ba591e02.entry.js} +1 -1
  136. package/dist/verdocs-web-sdk/{p-2216464c.system.entry.js → p-bd35fd77.system.entry.js} +1 -1
  137. package/dist/verdocs-web-sdk/{p-ec81b1f2.entry.js → p-bd8ff2a6.entry.js} +1 -1
  138. package/dist/verdocs-web-sdk/{p-34d3d150.system.entry.js → p-c9ff6acb.system.entry.js} +1 -1
  139. package/dist/verdocs-web-sdk/p-d28acca1.entry.js +1 -0
  140. package/dist/verdocs-web-sdk/{p-d63fe7e9.system.entry.js → p-d67b2a26.system.entry.js} +1 -1
  141. package/dist/verdocs-web-sdk/{p-1b21b08d.system.entry.js → p-d714a804.system.entry.js} +1 -1
  142. package/dist/verdocs-web-sdk/{p-a3747387.system.entry.js → p-d936d293.system.entry.js} +1 -1
  143. package/dist/verdocs-web-sdk/{p-a6096629.system.entry.js → p-e59061aa.system.entry.js} +1 -1
  144. package/dist/verdocs-web-sdk/{p-8c9caa8a.system.entry.js → p-f0d1c6bd.system.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-40bb871d.entry.js → p-fc67ddc9.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  147. package/package.json +8 -5
  148. package/dist/cjs/TemplateDocuments-1c6620b0.js +0 -78
  149. package/dist/components/TemplateDocuments.js +0 -75
  150. package/dist/custom-elements.json +0 -1546
  151. package/dist/esm/TemplateDocuments-618934d0.js +0 -75
  152. package/dist/esm-es5/TemplateDocuments-618934d0.js +0 -1
  153. package/dist/esm-es5/Templates-ca52ef90.js +0 -1
  154. package/dist/esm-es5/popper-f860750c.js +0 -1
  155. package/dist/verdocs-web-sdk/p-3751d683.entry.js +0 -1
  156. package/dist/verdocs-web-sdk/p-47714747.system.js +0 -1
  157. package/dist/verdocs-web-sdk/p-4cd5eb1f.js +0 -1
  158. package/dist/verdocs-web-sdk/p-5308d546.entry.js +0 -1
  159. package/dist/verdocs-web-sdk/p-63398dca.system.js +0 -1
  160. package/dist/verdocs-web-sdk/p-77e616b7.system.entry.js +0 -1
  161. package/dist/verdocs-web-sdk/p-923f56f3.entry.js +0 -1
  162. package/dist/verdocs-web-sdk/p-b86b362a.js +0 -1
  163. package/dist/verdocs-web-sdk/p-c21c0c00.system.entry.js +0 -1
  164. package/dist/verdocs-web-sdk/p-e12b7fbc.system.js +0 -1
  165. package/dist/verdocs-web-sdk/p-ec26fc38.js +0 -1
package/README.md CHANGED
@@ -7,3 +7,15 @@ For more information, please see one of the following for your specific framewor
7
7
 
8
8
  - [Verdocs Web for React](https://www.npmjs.com/package/@verdocs/web-sdk-react)
9
9
 
10
+
11
+ RTSP cameras, proprietary device from US Army
12
+ No access to physical hardware, need to build against spec and test remotely
13
+ Demo coming up, soft deadline
14
+ App will be separate module, not modifying their current code
15
+ Call documented APIs and Websocket
16
+ Good docs
17
+ Not a SBIR, soft deadlines but "soon" (May)
18
+ Possible Redis connection
19
+ RTSP streaming H.264 encoding, basic data from camera (pan/tilt/zoom/FOV)
20
+ Air Scout server
21
+ Python pref. C/C++ nice to have. Performance is P2
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index-67233b76.js');
4
- const Templates = require('./Templates-e258cbd5.js');
4
+ const Templates = require('./Templates-24580a13.js');
5
5
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
6
6
 
7
7
  const appendToMap = (map, propName, value) => {
@@ -37,6 +37,15 @@ var getTemplate = function (endpoint, templateId) {
37
37
  .get("/templates/".concat(templateId))
38
38
  .then(function (r) { return r.data; });
39
39
  };
40
+ var ALLOWED_CREATE_FIELDS = [
41
+ 'name',
42
+ 'is_personal',
43
+ 'is_public',
44
+ 'sender',
45
+ 'description',
46
+ 'roles',
47
+ 'fields',
48
+ ];
40
49
  /**
41
50
  * Create a template.
42
51
  *
@@ -46,10 +55,33 @@ var getTemplate = function (endpoint, templateId) {
46
55
  * const newTemplate = await Templates.createTemplate((VerdocsEndpoint.getDefault(), {...});
47
56
  * ```
48
57
  */
49
- var createTemplate = function (endpoint, params) {
50
- return endpoint.api //
51
- .post('/templates/', params)
52
- .then(function (r) { return r.data; });
58
+ var createTemplate = function (endpoint, params, onUploadProgress) {
59
+ var options = {
60
+ timeout: 120000,
61
+ onUploadProgress: function (event) {
62
+ var total = event.total || 1;
63
+ var loaded = event.loaded || 0;
64
+ onUploadProgress === null || onUploadProgress === void 0 ? void 0 : onUploadProgress(Math.floor((loaded * 100) / (total || 1)), loaded, total || 1);
65
+ },
66
+ };
67
+ if (params.documents && params.documents[0] instanceof File) {
68
+ if (params.documents.length > 10) {
69
+ throw new Error('createTemplate() has a maximum of 10 documents that can be attached.');
70
+ }
71
+ var formData_1 = new FormData();
72
+ ALLOWED_CREATE_FIELDS.forEach(function (allowedKey) {
73
+ if (params[allowedKey] !== undefined) {
74
+ formData_1.append(allowedKey, params[allowedKey]);
75
+ }
76
+ });
77
+ params.documents.forEach(function (file) {
78
+ formData_1.append('documents', file, file.name);
79
+ });
80
+ return endpoint.api.post('/templates', formData_1, options).then(function (r) { return r.data; });
81
+ }
82
+ else {
83
+ return endpoint.api.post('/templates', params, options).then(function (r) { return r.data; });
84
+ }
53
85
  };
54
86
  /**
55
87
  * Update a template.
@@ -163,7 +163,7 @@ var round = Math.round;
163
163
  function getUAString() {
164
164
  var uaData = navigator.userAgentData;
165
165
 
166
- if (uaData != null && uaData.brands) {
166
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
167
167
  return uaData.brands.map(function (item) {
168
168
  return item.brand + "/" + item.version;
169
169
  }).join(' ');
@@ -482,10 +482,9 @@ var unsetSides = {
482
482
  // Zooming can change the DPR, but it seems to report a value that will
483
483
  // cleanly divide the values into the appropriate subpixels.
484
484
 
485
- function roundOffsetsByDPR(_ref) {
485
+ function roundOffsetsByDPR(_ref, win) {
486
486
  var x = _ref.x,
487
487
  y = _ref.y;
488
- var win = window;
489
488
  var dpr = win.devicePixelRatio || 1;
490
489
  return {
491
490
  x: round(x * dpr) / dpr || 0,
@@ -568,7 +567,7 @@ function mapToStyles(_ref2) {
568
567
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
569
568
  x: x,
570
569
  y: y
571
- }) : {
570
+ }, getWindow(popper)) : {
572
571
  x: x,
573
572
  y: y
574
573
  };
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
- const TemplateStore = require('./TemplateStore-01ff3237.js');
8
+ const TemplateStore = require('./TemplateStore-df478971.js');
9
9
  const errors = require('./errors-0396da3d.js');
10
- require('./Templates-e258cbd5.js');
10
+ require('./Templates-24580a13.js');
11
11
 
12
12
  const verdocsBuildCss = "verdocs-build{display:-ms-flexbox;display:flex;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";
13
13
 
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
- const popper = require('./popper-11d5f714.js');
6
+ const popper = require('./popper-9def2535.js');
7
7
  const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
8
8
  require('./Types-f89f9116.js');
9
9
  const Fields = require('./Fields-705a2168.js');
10
10
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
11
- const TemplateStore = require('./TemplateStore-01ff3237.js');
11
+ const TemplateStore = require('./TemplateStore-df478971.js');
12
12
  const errors = require('./errors-0396da3d.js');
13
- require('./Templates-e258cbd5.js');
13
+ require('./Templates-24580a13.js');
14
14
 
15
15
  const verdocsButtonPanelCss = "verdocs-button-panel{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}";
16
16
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
- const popper = require('./popper-11d5f714.js');
6
+ const popper = require('./popper-9def2535.js');
7
7
 
8
8
  const verdocsCheckboxCss = "@charset \"UTF-8\";verdocs-checkbox{line-height:18px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:\"\";width:1rem;height:1rem;-ms-flex-negative:0;flex-shrink:0;line-height:18px;border-radius:2px;border-style:solid;margin-right:0.5rem;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}";
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
- const popper = require('./popper-11d5f714.js');
6
+ const popper = require('./popper-9def2535.js');
7
7
  const Envelopes = require('./Envelopes-699531b7.js');
8
8
  require('./Types-f89f9116.js');
9
9
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
@@ -79,10 +79,13 @@ const VerdocsFieldTextbox = class {
79
79
  let disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
80
80
  const backgroundColor = this.field['rgba'] || Colors.getRGBA(this.roleindex);
81
81
  const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
82
+ const width = settings.width || 150;
83
+ // TODO: This is an antiquated technique from the old system. We should compute it.
84
+ const maxlength = width / 5;
82
85
  if (this.done) {
83
86
  return index.h(index.Host, { class: { done: this.done } }, value);
84
87
  }
85
- return (index.h(index.Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, index.h("input", { type: "text", name: this.field.name, placeholder: settings === null || settings === void 0 ? void 0 : settings.placeholder, tabIndex: settings === null || settings === void 0 ? void 0 : settings.order, value: value, disabled: disabled, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }), this.editable && (index.h("div", { class: "resizer", ref: el => (this.resizeHandle = el) }, index.h("div", { class: "resizer-inner" }))), this.editable && (index.h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, index.h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
88
+ return (index.h(index.Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, index.h("input", { type: "text", name: this.field.name, placeholder: settings === null || settings === void 0 ? void 0 : settings.placeholder, tabIndex: settings === null || settings === void 0 ? void 0 : settings.order, value: value, disabled: disabled, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el), maxlength: maxlength }), this.editable && (index.h("div", { class: "resizer", ref: el => (this.resizeHandle = el) }, index.h("div", { class: "resizer-inner" }))), this.editable && (index.h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, index.h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
86
89
  var _a;
87
90
  (_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
88
91
  return this.hideSettingsPanel();
@@ -6,13 +6,13 @@ const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
8
  const utils = require('./utils-c218d9c7.js');
9
- const TemplateStore = require('./TemplateStore-01ff3237.js');
9
+ const TemplateStore = require('./TemplateStore-df478971.js');
10
10
  const errors = require('./errors-0396da3d.js');
11
11
  require('./_commonjsHelpers-0c557e26.js');
12
12
  require('./Envelopes-699531b7.js');
13
13
  require('./Files-4bdc0c0f.js');
14
14
  require('./index-6528b430.js');
15
- require('./Templates-e258cbd5.js');
15
+ require('./Templates-24580a13.js');
16
16
 
17
17
  const verdocsPreviewCss = "verdocs-preview{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}";
18
18
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
- const Templates = require('./Templates-e258cbd5.js');
8
+ const Templates = require('./Templates-24580a13.js');
9
9
 
10
10
  /**
11
11
  * Verdocs provides a range of search functions to help find and retrieve content. This module provides generic functions intended
@@ -7,10 +7,10 @@ require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
8
  const Validators = require('./Validators-16e6d7d1.js');
9
9
  const Colors = require('./Colors-e809dcc9.js');
10
- const TemplateStore = require('./TemplateStore-01ff3237.js');
10
+ const TemplateStore = require('./TemplateStore-df478971.js');
11
11
  const utils = require('./utils-c218d9c7.js');
12
12
  const errors = require('./errors-0396da3d.js');
13
- require('./Templates-e258cbd5.js');
13
+ require('./Templates-24580a13.js');
14
14
  require('./_commonjsHelpers-0c557e26.js');
15
15
  require('./Envelopes-699531b7.js');
16
16
  require('./Files-4bdc0c0f.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
- const popper = require('./popper-11d5f714.js');
6
+ const popper = require('./popper-9def2535.js');
7
7
 
8
8
  const methods$1 = {};
9
9
  const names = [];
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
- const TemplateStore = require('./TemplateStore-01ff3237.js');
8
+ const TemplateStore = require('./TemplateStore-df478971.js');
9
9
  const errors = require('./errors-0396da3d.js');
10
- require('./Templates-e258cbd5.js');
10
+ require('./Templates-24580a13.js');
11
11
 
12
12
  const verdocsTemplateAttachmentsCss = "verdocs-template-attachments{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#4c56cb}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b;border:1px solid #cccccc}verdocs-template-attachments svg{width:24px;height:24px;fill:#5c6575;margin:2px 10px 0 0}";
13
13
 
@@ -4,14 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
- const Templates = require('./Templates-e258cbd5.js');
8
- const TemplateDocuments = require('./TemplateDocuments-1c6620b0.js');
7
+ const Templates = require('./Templates-24580a13.js');
9
8
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
10
9
  const errors = require('./errors-0396da3d.js');
11
10
  const interact_min = require('./interact.min-ba5cc513.js');
12
11
  const Fields = require('./Fields-705a2168.js');
13
12
  const utils = require('./utils-c218d9c7.js');
14
- const TemplateStore = require('./TemplateStore-01ff3237.js');
13
+ const TemplateStore = require('./TemplateStore-df478971.js');
15
14
  const Roles = require('./Roles-9b593b95.js');
16
15
  const Colors = require('./Colors-e809dcc9.js');
17
16
  require('./_commonjsHelpers-0c557e26.js');
@@ -65,9 +64,7 @@ const VerdocsTemplateCreate = class {
65
64
  this.creating = true;
66
65
  this.progressLabel = 'Uploading...';
67
66
  try {
68
- const template = await Templates.createTemplate(this.endpoint, { name: this.file.name });
69
- console.log('[CREATE] Created template', template);
70
- const template_document = await TemplateDocuments.createTemplateDocument(this.endpoint, template.id, this.file, percent => {
67
+ const template = await Templates.createTemplate(this.endpoint, { name: this.file.name, documents: [this.file] }, percent => {
71
68
  if (percent >= 99) {
72
69
  this.progressLabel = 'Processing...';
73
70
  this.progressPercent = 100;
@@ -76,9 +73,8 @@ const VerdocsTemplateCreate = class {
76
73
  this.progressPercent = percent;
77
74
  }
78
75
  });
79
- console.log('[CREATE] Created document', template_document);
80
- const finalTemplate = await Templates.getTemplate(this.endpoint, template.id);
81
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit(finalTemplate);
76
+ console.log('[CREATE] Created template', template);
77
+ (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit(template);
82
78
  this.creating = false;
83
79
  this.progressLabel = '';
84
80
  this.progressPercent = 0;
@@ -103,7 +99,7 @@ const VerdocsTemplateCreate = class {
103
99
  };
104
100
  VerdocsTemplateCreate.style = verdocsTemplateCreateCss;
105
101
 
106
- const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative;display:block;min-height:600px}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields #verdocs-template-fields-toolbar{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 50px;flex:0 0 50px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;padding:0 20px 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#f5f5fa;-ms-flex-pack:center;justify-content:center;background:#46497d}verdocs-template-fields #verdocs-template-fields-toolbar svg{width:24px;height:24px}verdocs-template-fields #verdocs-template-fields-toolbar .add-for{margin:0;font-weight:500;color:#f5f5fa}verdocs-template-fields #verdocs-template-fields-toolbar verdocs-select-input{margin:0 20px 0 0}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox_group{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath fill='%23000000' d='M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25' /%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio_button_group{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg width='32' height='15' viewBox='0 0 32 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='path-1-inside-1_1401_24' fill='white'%3E%3Cpath d='M0 0H32V15H0V0Z'/%3E%3C/mask%3E%3Cpath d='M0 0H32V15H0V0Z' fill='%234C56CB' fill-opacity='0.1'/%3E%3Cpath d='M0 0V-1H-1V0H0ZM0 15H-1V16H0V15ZM0 1H32V-1H0V1ZM32 14H0V16H32V14ZM1 15V0H-1V15H1Z' fill='%234C56CB' mask='url(%23path-1-inside-1_1401_24)'/%3E%3Cpath d='M3 11.8V8.65H14.15V11.8H3ZM3 6.65V3.5H20.15V6.65H3Z' fill='%234C56CB'/%3E%3Cline x1='31.5' y1='1' x2='31.5' y2='14' stroke='%234C56CB' stroke-opacity='0.32' stroke-dasharray='1 1'/%3E%3C/svg%3E%0A\") 0 14, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath fill='%23000000' d='M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM13 14h-2V8h2v6z'%3E%3C/path%3E%3C/svg%3E\") 16 16, pointer}";
102
+ const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative;display:block;min-height:600px}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields #verdocs-template-fields-toolbar{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 50px;flex:0 0 50px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;font-weight:700;padding:0 20px 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#f5f5fa;-ms-flex-pack:center;justify-content:center;background:#46497d}verdocs-template-fields #verdocs-template-fields-toolbar>verdocs-select-input{margin:0}verdocs-template-fields #verdocs-template-fields-toolbar svg{width:24px;height:24px}verdocs-template-fields #verdocs-template-fields-toolbar .add-for{margin:0;font-weight:500;color:#f5f5fa}verdocs-template-fields #verdocs-template-fields-toolbar verdocs-select-input{margin:0 20px 0 0}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox_group{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath fill='%23000000' d='M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25' /%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio_button_group{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg width='32' height='15' viewBox='0 0 32 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='path-1-inside-1_1401_24' fill='white'%3E%3Cpath d='M0 0H32V15H0V0Z'/%3E%3C/mask%3E%3Cpath d='M0 0H32V15H0V0Z' fill='%234C56CB' fill-opacity='0.1'/%3E%3Cpath d='M0 0V-1H-1V0H0ZM0 15H-1V16H0V15ZM0 1H32V-1H0V1ZM32 14H0V16H32V14ZM1 15V0H-1V15H1Z' fill='%234C56CB' mask='url(%23path-1-inside-1_1401_24)'/%3E%3Cpath d='M3 11.8V8.65H14.15V11.8H3ZM3 6.65V3.5H20.15V6.65H3Z' fill='%234C56CB'/%3E%3Cline x1='31.5' y1='1' x2='31.5' y2='14' stroke='%234C56CB' stroke-opacity='0.32' stroke-dasharray='1 1'/%3E%3C/svg%3E%0A\") 0 14, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath fill='%23000000' d='M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM13 14h-2V8h2v6z'%3E%3C/path%3E%3C/svg%3E\") 16 16, pointer}";
107
103
 
108
104
  const iconTextbox = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';
109
105
  const iconTextarea = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';
@@ -371,7 +367,12 @@ const VerdocsTemplateFields = class {
371
367
  required: true,
372
368
  page_sequence: pageNumber,
373
369
  validator: null,
374
- setting: { x, y }, // In the future, this is all we should send, see below
370
+ setting: { x, y },
371
+ x,
372
+ y,
373
+ tabindex: 0,
374
+ width,
375
+ height,
375
376
  };
376
377
  // TODO: Fix how the server validates all this. It uses a JSON schema and is very particular about shapes for each field type.
377
378
  // That makes it harder for third party developers to create fields via API calls. It would be better to always set X/Y and
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
- const TemplateDocuments = require('./TemplateDocuments-1c6620b0.js');
8
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
9
8
  const utils = require('./utils-c218d9c7.js');
10
9
  require('./_commonjsHelpers-0c557e26.js');
@@ -12,6 +11,57 @@ require('./Envelopes-699531b7.js');
12
11
  require('./Files-4bdc0c0f.js');
13
12
  require('./index-6528b430.js');
14
13
 
14
+ /**
15
+ * A TemplateDocument represents a PDF or other attachment in a Template.
16
+ *
17
+ * @module
18
+ */
19
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
20
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
+ return new (P || (P = Promise))(function (resolve, reject) {
22
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
23
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
24
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
25
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
26
+ });
27
+ };
28
+ var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
29
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
30
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
31
+ function verb(n) { return function (v) { return step([n, v]); }; }
32
+ function step(op) {
33
+ if (f) throw new TypeError("Generator is already executing.");
34
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
35
+ 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;
36
+ if (y = 0, t) op = [op[0] & 2, t.value];
37
+ switch (op[0]) {
38
+ case 0: case 1: t = op; break;
39
+ case 4: _.label++; return { value: op[1], done: false };
40
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
42
+ default:
43
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
44
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
45
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
46
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
47
+ if (t[2]) _.ops.pop();
48
+ _.trys.pop(); continue;
49
+ }
50
+ op = body.call(thisArg, _);
51
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
52
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
53
+ }
54
+ };
55
+ /**
56
+ * Get a display URI for a given page in a file attached to a template document. These pages are rendered server-side
57
+ * into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
58
+ * for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants. The
59
+ * original asset may be obtained by calling `getTemplateDocumentFile()` or similar.
60
+ */
61
+ var getTemplateDocumentPageDisplayUri = function (endpoint, templateId, documentId, page) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
62
+ return [2 /*return*/, endpoint.api.get("/templates/".concat(templateId, "/documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
63
+ }); }); };
64
+
15
65
  const verdocsTemplateDocumentPageCss = "verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";
16
66
 
17
67
  const VerdocsTemplateDocumentPage = class {
@@ -35,7 +85,7 @@ const VerdocsTemplateDocumentPage = class {
35
85
  this.pageDisplayUri = '';
36
86
  }
37
87
  async componentWillLoad() {
38
- this.pageDisplayUri = await TemplateDocuments.getTemplateDocumentPageDisplayUri(this.endpoint, this.templateId, this.documentId, this.pageNumber);
88
+ this.pageDisplayUri = await getTemplateDocumentPageDisplayUri(this.endpoint, this.templateId, this.documentId, this.pageNumber);
39
89
  }
40
90
  componentDidLoad() {
41
91
  this.resizeObserver = new ResizeObserver(utils.throttle(entries => {
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
- const Templates = require('./Templates-e258cbd5.js');
7
+ const Templates = require('./Templates-24580a13.js');
8
8
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
9
- const TemplateStore = require('./TemplateStore-01ff3237.js');
9
+ const TemplateStore = require('./TemplateStore-df478971.js');
10
10
  const errors = require('./errors-0396da3d.js');
11
11
 
12
12
  const verdocsTemplateNameCss = "verdocs-template-name{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-name.loading{min-height:300px;position:relative;display:block}verdocs-template-name.empty{display:none}verdocs-template-name form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-name form label{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-name form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-name form input:focus{outline:none}verdocs-template-name .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-name ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-name ::-moz-placeholder{color:#aaaaaa}verdocs-template-name :-ms-input-placeholder{color:#aaaaaa}verdocs-template-name ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-name ::placeholder{color:#aaaaaa}";
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
- const TemplateStore = require('./TemplateStore-01ff3237.js');
8
+ const TemplateStore = require('./TemplateStore-df478971.js');
9
9
  const errors = require('./errors-0396da3d.js');
10
- require('./Templates-e258cbd5.js');
10
+ require('./Templates-24580a13.js');
11
11
 
12
12
  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}";
13
13
 
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
8
- const TemplateStore = require('./TemplateStore-01ff3237.js');
8
+ const TemplateStore = require('./TemplateStore-df478971.js');
9
9
  const errors = require('./errors-0396da3d.js');
10
- require('./Templates-e258cbd5.js');
10
+ require('./Templates-24580a13.js');
11
11
 
12
12
  var createReminder = function (endpoint, templateId, params) {
13
13
  return endpoint.api //
@@ -6,9 +6,9 @@ const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
7
  const Roles = require('./Roles-9b593b95.js');
8
8
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
9
- const TemplateStore = require('./TemplateStore-01ff3237.js');
9
+ const TemplateStore = require('./TemplateStore-df478971.js');
10
10
  const errors = require('./errors-0396da3d.js');
11
- const Templates = require('./Templates-e258cbd5.js');
11
+ const Templates = require('./Templates-24580a13.js');
12
12
 
13
13
  const verdocsTemplateRolePropertiesCss = "verdocs-template-role-properties{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}";
14
14
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
6
  require('./Types-f89f9116.js');
7
- const Templates = require('./Templates-e258cbd5.js');
7
+ const Templates = require('./Templates-24580a13.js');
8
8
  const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
9
- const TemplateStore = require('./TemplateStore-01ff3237.js');
9
+ const TemplateStore = require('./TemplateStore-df478971.js');
10
10
  const errors = require('./errors-0396da3d.js');
11
11
 
12
12
  const verdocsTemplateVisibilityCss = "verdocs-template-visibility{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-67233b76.js');
6
- const popper = require('./popper-11d5f714.js');
6
+ const popper = require('./popper-9def2535.js');
7
7
 
8
8
  const verdocsToolbarIconCss = "verdocs-toolbar-icon{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}";
9
9
 
@@ -84,10 +84,10 @@ export class VerdocsFieldAttachment {
84
84
  "type": "unknown",
85
85
  "mutable": false,
86
86
  "complexType": {
87
- "original": "IDocumentField | ITemplateField | null",
88
- "resolved": "IDocumentField | ITemplateField",
87
+ "original": "IEnvelopeField | ITemplateField | null",
88
+ "resolved": "IEnvelopeField | ITemplateField",
89
89
  "references": {
90
- "IDocumentField": {
90
+ "IEnvelopeField": {
91
91
  "location": "import",
92
92
  "path": "@verdocs/js-sdk/Envelopes/Types"
93
93
  },
@@ -84,10 +84,10 @@ export class VerdocsFieldCheckbox {
84
84
  "type": "unknown",
85
85
  "mutable": false,
86
86
  "complexType": {
87
- "original": "IDocumentField | ITemplateField | null",
88
- "resolved": "IDocumentField | ITemplateField",
87
+ "original": "IEnvelopeField | ITemplateField | null",
88
+ "resolved": "IEnvelopeField | ITemplateField",
89
89
  "references": {
90
- "IDocumentField": {
90
+ "IEnvelopeField": {
91
91
  "location": "import",
92
92
  "path": "@verdocs/js-sdk/Envelopes/Types"
93
93
  },
@@ -107,10 +107,10 @@ export class VerdocsFieldDate {
107
107
  "type": "unknown",
108
108
  "mutable": false,
109
109
  "complexType": {
110
- "original": "IDocumentField | ITemplateField | null",
111
- "resolved": "IDocumentField | ITemplateField",
110
+ "original": "IEnvelopeField | ITemplateField | null",
111
+ "resolved": "IEnvelopeField | ITemplateField",
112
112
  "references": {
113
- "IDocumentField": {
113
+ "IEnvelopeField": {
114
114
  "location": "import",
115
115
  "path": "@verdocs/js-sdk/Envelopes/Types"
116
116
  },
@@ -91,10 +91,10 @@ export class VerdocsFieldDropdown {
91
91
  "type": "unknown",
92
92
  "mutable": false,
93
93
  "complexType": {
94
- "original": "IDocumentField | ITemplateField | null",
95
- "resolved": "IDocumentField | ITemplateField",
94
+ "original": "IEnvelopeField | ITemplateField | null",
95
+ "resolved": "IEnvelopeField | ITemplateField",
96
96
  "references": {
97
- "IDocumentField": {
97
+ "IEnvelopeField": {
98
98
  "location": "import",
99
99
  "path": "@verdocs/js-sdk/Envelopes/Types"
100
100
  },
@@ -109,10 +109,10 @@ export class VerdocsFieldInitial {
109
109
  "type": "unknown",
110
110
  "mutable": false,
111
111
  "complexType": {
112
- "original": "IDocumentField | ITemplateField | null",
113
- "resolved": "IDocumentField | ITemplateField",
112
+ "original": "IEnvelopeField | ITemplateField | null",
113
+ "resolved": "IEnvelopeField | ITemplateField",
114
114
  "references": {
115
- "IDocumentField": {
115
+ "IEnvelopeField": {
116
116
  "location": "import",
117
117
  "path": "@verdocs/js-sdk/Envelopes/Types"
118
118
  },
@@ -146,10 +146,10 @@ export class VerdocsFieldPayment {
146
146
  "type": "unknown",
147
147
  "mutable": false,
148
148
  "complexType": {
149
- "original": "IDocumentField | ITemplateField | null",
150
- "resolved": "IDocumentField | ITemplateField",
149
+ "original": "IEnvelopeField | ITemplateField | null",
150
+ "resolved": "IEnvelopeField | ITemplateField",
151
151
  "references": {
152
- "IDocumentField": {
152
+ "IEnvelopeField": {
153
153
  "location": "import",
154
154
  "path": "@verdocs/js-sdk/Envelopes/Types"
155
155
  },