@verdocs/web-sdk 1.12.15 → 1.12.16
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.
- package/dist/cjs/{Envelopes-0d95b997.js → Envelopes-87aea63d.js} +13 -2
- package/dist/cjs/{Envelopes-d1e5566b.js → Envelopes-89f7004d.js} +3 -3
- package/dist/cjs/{Token-576f0e8a.js → Types-35abf4e8.js} +46 -0
- package/dist/cjs/{VerdocsEndpoint-3d59c835.js → VerdocsEndpoint-b23334ec.js} +51 -15
- package/dist/cjs/{interact.min-bfe9a299.js → interact.min-d2e625b7.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-278509c0.js → utils-cc3321ad.js} +2 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +4 -6
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-preview.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-sign.cjs.entry.js +11 -11
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-template-document-page.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-roles.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-view.cjs.entry.js +61 -35
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +6 -6
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +6 -3
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +3 -0
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +43 -29
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +0 -2
- package/dist/collection/utils/Envelopes.js +2 -2
- package/dist/components/Envelopes.js +12 -2
- package/dist/components/Envelopes2.js +3 -3
- package/dist/{esm/Token-54690789.js → components/Types.js} +47 -1
- package/dist/components/VerdocsEndpoint.js +50 -14
- package/dist/components/utils.js +2 -1
- package/dist/components/verdocs-auth.js +1 -0
- package/dist/components/verdocs-build.js +1 -0
- package/dist/components/verdocs-contact-picker2.js +1 -0
- package/dist/components/verdocs-envelope-document-page2.js +1 -0
- package/dist/components/verdocs-envelope-sidebar.js +2 -1
- package/dist/components/verdocs-field-textbox.js +0 -2
- package/dist/components/verdocs-preview.js +1 -0
- package/dist/components/verdocs-quick-functions2.js +1 -0
- package/dist/components/verdocs-search-activity2.js +1 -0
- package/dist/components/verdocs-search-box2.js +1 -0
- package/dist/components/verdocs-search.js +1 -0
- package/dist/components/verdocs-send.js +1 -0
- package/dist/components/verdocs-sign.js +7 -6
- package/dist/components/verdocs-template-attachments.js +1 -0
- package/dist/components/verdocs-template-create2.js +1 -0
- package/dist/components/verdocs-template-document-page2.js +1 -0
- package/dist/components/verdocs-template-field-properties2.js +1 -0
- package/dist/components/verdocs-template-fields2.js +1 -0
- package/dist/components/verdocs-template-name.js +1 -0
- package/dist/components/verdocs-template-properties.js +1 -0
- package/dist/components/verdocs-template-reminders.js +1 -0
- package/dist/components/verdocs-template-role-properties2.js +1 -0
- package/dist/components/verdocs-template-roles.js +1 -0
- package/dist/components/verdocs-template-sender2.js +1 -0
- package/dist/components/verdocs-template-visibility.js +1 -0
- package/dist/components/verdocs-view2.js +60 -31
- package/dist/docs.json +7 -7
- package/dist/esm/{Envelopes-3a9b4cff.js → Envelopes-16f09341.js} +12 -2
- package/dist/esm/{Envelopes-bbce70db.js → Envelopes-8c27f3c6.js} +3 -3
- package/dist/{components/Token.js → esm/Types-6dc82c14.js} +47 -1
- package/dist/esm/{VerdocsEndpoint-6ec36985.js → VerdocsEndpoint-ddde1255.js} +50 -14
- package/dist/esm/{interact.min-9ecbb023.js → interact.min-1e2f37ab.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-be76f4d8.js → utils-bca7b101.js} +2 -1
- package/dist/esm/verdocs-auth.entry.js +2 -2
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm/verdocs-dropdown_2.entry.js +4 -4
- package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -5
- package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
- package/dist/esm/verdocs-field-date.entry.js +3 -3
- package/dist/esm/verdocs-field-dropdown.entry.js +3 -3
- package/dist/esm/verdocs-field-initial.entry.js +3 -3
- package/dist/esm/verdocs-field-payment.entry.js +3 -3
- package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
- package/dist/esm/verdocs-field-signature.entry.js +3 -3
- package/dist/esm/verdocs-field-textarea.entry.js +3 -3
- package/dist/esm/verdocs-field-textbox.entry.js +4 -6
- package/dist/esm/verdocs-field-timestamp.entry.js +3 -3
- package/dist/esm/verdocs-preview.entry.js +4 -4
- package/dist/esm/verdocs-quick-functions_3.entry.js +2 -2
- package/dist/esm/verdocs-search.entry.js +2 -2
- package/dist/esm/verdocs-send.entry.js +4 -4
- package/dist/esm/verdocs-sign.entry.js +11 -11
- package/dist/esm/verdocs-template-attachments.entry.js +2 -2
- package/dist/esm/verdocs-template-create_2.entry.js +5 -5
- package/dist/esm/verdocs-template-document-page.entry.js +4 -4
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-properties.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-role-properties_2.entry.js +2 -2
- package/dist/esm/verdocs-template-roles.entry.js +5 -5
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-view.entry.js +61 -35
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Envelopes-3a9b4cff.js → Envelopes-16f09341.js} +1 -1
- package/dist/esm-es5/{Envelopes-bbce70db.js → Envelopes-8c27f3c6.js} +1 -1
- package/dist/esm-es5/Types-6dc82c14.js +1 -0
- package/dist/esm-es5/VerdocsEndpoint-ddde1255.js +1 -0
- package/dist/esm-es5/{interact.min-9ecbb023.js → interact.min-1e2f37ab.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-be76f4d8.js → utils-bca7b101.js} +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-roles.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +2 -0
- package/dist/types/utils/Envelopes.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-2829c669.system.entry.js → p-017e0370.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c38d2d4a.system.entry.js → p-0cbf3b46.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4c50da3f.entry.js → p-11f98973.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-416d1f60.system.entry.js → p-1498a643.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-151df9b1.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6f705797.system.entry.js → p-17e5e3d2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4c1349bf.entry.js → p-17f37dca.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-854cf75f.entry.js → p-1f4d73da.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-29b854c2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2bc0d9be.js +1 -0
- package/dist/verdocs-web-sdk/{p-aafe8054.system.entry.js → p-2cadb341.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2060a40c.entry.js → p-2f46a9a5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6c0caf56.system.entry.js → p-30d55a71.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1be57028.entry.js → p-32b09c04.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3165cfec.system.entry.js → p-37adaeae.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-475b76cf.system.entry.js → p-37bab4c1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d2baa74e.js → p-3d0efcc9.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aac3f2bd.system.entry.js → p-3d891611.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-17889700.system.entry.js → p-43014432.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e10dd0f7.system.js → p-43c3073f.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-4718a722.js +1 -0
- package/dist/verdocs-web-sdk/p-4af9b368.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a24fc6db.entry.js → p-508bbabc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78c681fe.system.entry.js → p-51010fb4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5abaf86d.js +1 -0
- package/dist/verdocs-web-sdk/{p-5662175d.system.entry.js → p-5e2f0571.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-97f21cbd.system.entry.js → p-603adb97.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-466589ad.entry.js → p-65effdc2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-be2bfca8.system.js → p-6a2e16ea.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c7ff8e32.entry.js → p-6a3a4a5a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a339ae33.system.entry.js → p-6d2386d1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fa5a2e43.js → p-736cf2bf.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fd718d03.system.entry.js → p-7bae4cd2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7e6d7c07.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-8a784d93.system.entry.js → p-8124d679.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c0146adc.system.entry.js → p-8391ba92.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-83b89865.js +1 -0
- package/dist/verdocs-web-sdk/{p-62866e51.entry.js → p-83eb6fcc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-50c2b2df.entry.js → p-85409b28.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4cc767d8.system.entry.js → p-8612c102.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-03f1894c.entry.js → p-8f85b842.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ba34157a.entry.js → p-9a57225a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-34996fc6.system.entry.js → p-9f28288c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-db960f7f.entry.js → p-a13a8b81.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-53692637.entry.js → p-a209882e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7d7918bc.entry.js → p-a2ac88a4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b92991d0.entry.js → p-a49d94a5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-37ba7969.entry.js → p-a7fbb26e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3c00e2fa.system.entry.js → p-a8c30709.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-399744e1.entry.js → p-acb10f44.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-569844d0.entry.js → p-b173ba1c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-724c0c3d.system.entry.js → p-b8baf9d7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-be30c368.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-be701e81.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-31813507.system.entry.js → p-be9bf14d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c39ac27d.system.entry.js → p-c1a6a086.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3b5acfe7.system.entry.js → p-c1fdae98.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a5e2612b.entry.js → p-c51176b3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-98497031.entry.js → p-c6f81ab9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-62bd0d06.system.entry.js → p-c93c0129.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05e4a811.entry.js → p-cce3a36c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d46a428b.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-c28e49a7.entry.js → p-d87925e0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-554a992e.system.entry.js → p-db54f1b4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e3b7c0fd.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-ae44e57b.entry.js → p-e624832c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-59a504ef.entry.js → p-eef54cf7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9e2c24ef.entry.js → p-efa81a50.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1418d2ab.system.js → p-f088f649.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-74a6403f.entry.js → p-f397f21d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-112daa16.entry.js → p-f773f3a1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6ba8adc5.system.entry.js → p-f7c9c9ea.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-24266a89.system.entry.js → p-f87f1072.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-569c96af.system.entry.js → p-fd72df84.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-177c637d.system.js → p-fdcf756a.system.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +8 -8
- package/dist/esm-es5/Token-54690789.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-6ec36985.js +0 -1
- package/dist/verdocs-web-sdk/p-0662b924.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-21603661.js +0 -1
- package/dist/verdocs-web-sdk/p-4926fa27.js +0 -1
- package/dist/verdocs-web-sdk/p-4b3172b1.js +0 -1
- package/dist/verdocs-web-sdk/p-65b43861.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-68602cb0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8e5d9f77.system.js +0 -1
- package/dist/verdocs-web-sdk/p-a93b745a.js +0 -1
- package/dist/verdocs-web-sdk/p-af2c2f79.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ebe3da9f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f529edb0.system.entry.js +0 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
verdocs-view {
|
2
2
|
display: flex;
|
3
|
+
align-items: center;
|
3
4
|
overflow: hidden;
|
4
5
|
position: relative;
|
5
6
|
min-height: 600px;
|
@@ -12,6 +13,7 @@ verdocs-view canvas {
|
|
12
13
|
box-sizing: border-box;
|
13
14
|
}
|
14
15
|
verdocs-view .header {
|
16
|
+
width: 100%;
|
15
17
|
color: #fff;
|
16
18
|
display: flex;
|
17
19
|
z-index: 1000;
|
@@ -38,6 +40,7 @@ verdocs-view .header .title {
|
|
38
40
|
}
|
39
41
|
verdocs-view .document {
|
40
42
|
flex: 1;
|
43
|
+
width: 100%;
|
41
44
|
height: 100%;
|
42
45
|
display: flex;
|
43
46
|
padding: 15px;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
|
+
import { cancelEnvelope } from '@verdocs/js-sdk/Envelopes/Envelopes';
|
3
|
+
import { userCanCancelEnvelope } from '@verdocs/js-sdk/Envelopes/Permissions';
|
2
4
|
import { h, Host, Fragment } from '@stencil/core';
|
3
5
|
import { saveAttachment, saveCertificate, saveEnvelopesAsZip } from '../../../utils/utils';
|
4
6
|
import { getEnvelopeById } from '../../../utils/Envelopes';
|
@@ -11,6 +13,7 @@ export class VerdocsView {
|
|
11
13
|
constructor() {
|
12
14
|
this.endpoint = VerdocsEndpoint.getDefault();
|
13
15
|
this.envelopeId = '';
|
16
|
+
this.isProcessing = false;
|
14
17
|
}
|
15
18
|
componentWillLoad() {
|
16
19
|
this.endpoint.loadSession();
|
@@ -18,13 +21,21 @@ export class VerdocsView {
|
|
18
21
|
// TODO: Handling signing vs preview-as-user cases
|
19
22
|
// TODO: Handle anonymous case and failure to load due to not being logged in
|
20
23
|
async componentDidLoad() {
|
21
|
-
var _a, _b, _c;
|
22
24
|
if (!this.envelopeId) {
|
23
25
|
console.error(`[VIEW] Missing required envelopeId`);
|
24
26
|
return;
|
25
27
|
}
|
28
|
+
return this.reloadEnvelope();
|
29
|
+
}
|
30
|
+
async reloadEnvelope() {
|
31
|
+
var _a, _b, _c;
|
32
|
+
console.log('[VIEW] Checking for updated envelope');
|
26
33
|
try {
|
27
|
-
await getEnvelopeById(this.endpoint, this.envelopeId);
|
34
|
+
await getEnvelopeById(this.endpoint, this.envelopeId, true);
|
35
|
+
this.isProcessing = EnvelopeStore.envelope.documents.some(document => document.type === 'attachment' && !document.processed);
|
36
|
+
if (this.isProcessing) {
|
37
|
+
setTimeout(() => this.reloadEnvelope(), 3000);
|
38
|
+
}
|
28
39
|
}
|
29
40
|
catch (e) {
|
30
41
|
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
@@ -33,28 +44,20 @@ export class VerdocsView {
|
|
33
44
|
handlePageRendered(e) {
|
34
45
|
const pageInfo = e.detail;
|
35
46
|
console.log('[VIEW] Page rendered', pageInfo);
|
36
|
-
// EnvelopeStore.envelope.recipients.forEach((recipient, roleIndex) => {
|
37
|
-
// console.log('rendering fields for recipient', roleIndex, recipient);
|
38
|
-
// recipient.fields.forEach(field => {
|
39
|
-
// const el = renderDocumentField(field, pageInfo, roleIndex, {disabled: true, editable: false, draggable: false, done: true});
|
40
|
-
// if (!el) {
|
41
|
-
// return;
|
42
|
-
// }
|
43
|
-
//
|
44
|
-
// if (el.setAttribute) {
|
45
|
-
// el.setAttribute('roleindex', roleIndex);
|
46
|
-
// el.setAttribute('xScale', pageInfo.xScale);
|
47
|
-
// el.setAttribute('yScale', pageInfo.yScale);
|
48
|
-
// }
|
49
|
-
// });
|
50
|
-
// });
|
51
47
|
}
|
52
48
|
async handleOptionSelected(e) {
|
53
|
-
var _a;
|
49
|
+
var _a, _b;
|
54
50
|
switch (e.detail.id) {
|
51
|
+
case 'cancel':
|
52
|
+
// TODO: Better option for inline-flow confirmation and alert dialogs.
|
53
|
+
if (confirm('Are you sure you wish to cancel this envelope? This action cannot be undone.')) {
|
54
|
+
await cancelEnvelope(this.endpoint, this.envelopeId);
|
55
|
+
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: EnvelopeStore.envelope, event: 'canceled' });
|
56
|
+
}
|
57
|
+
break;
|
55
58
|
case 'print':
|
56
59
|
window.print();
|
57
|
-
(
|
60
|
+
(_b = this.envelopeUpdated) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope: EnvelopeStore.envelope, event: 'printed' });
|
58
61
|
break;
|
59
62
|
case 'download-attachments':
|
60
63
|
saveAttachment(this.endpoint, EnvelopeStore.envelope, EnvelopeStore.envelope.envelope_document_id)
|
@@ -90,7 +93,6 @@ export class VerdocsView {
|
|
90
93
|
}
|
91
94
|
render() {
|
92
95
|
var _a;
|
93
|
-
console.log('[VIEW] Rendering', EnvelopeStore.error, EnvelopeStore.loading, EnvelopeStore.envelope);
|
94
96
|
if (EnvelopeStore.loading || !EnvelopeStore.envelope) {
|
95
97
|
return (h(Host, null, h("verdocs-loader", null)));
|
96
98
|
}
|
@@ -98,25 +100,32 @@ export class VerdocsView {
|
|
98
100
|
return (h(Host, null, h("div", null, EnvelopeStore.error)));
|
99
101
|
}
|
100
102
|
const menuOptions = [{ id: 'print', label: 'Print' }];
|
103
|
+
if (userCanCancelEnvelope(this.endpoint.session, EnvelopeStore.envelope)) {
|
104
|
+
menuOptions.push({ id: 'cancel', label: 'Cancel' });
|
105
|
+
}
|
106
|
+
// Add download options to the menu
|
101
107
|
const hasAttachments = EnvelopeStore.envelope.documents.length > 0;
|
102
108
|
const hasCertificate = !!EnvelopeStore.envelope.certificate;
|
103
109
|
if (hasAttachments || hasCertificate) {
|
104
110
|
menuOptions.push({ label: '' });
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
if (hasAttachments) {
|
112
|
+
menuOptions.push({ id: 'download-attachments', label: 'Download Documents(s)' });
|
113
|
+
}
|
114
|
+
if (hasCertificate) {
|
115
|
+
menuOptions.push({ id: 'download-certificate', label: 'Download Certificate' });
|
116
|
+
}
|
117
|
+
if (hasAttachments && hasCertificate) {
|
118
|
+
menuOptions.push({ id: 'download-all', label: 'Download All Files' });
|
119
|
+
}
|
114
120
|
}
|
115
121
|
return (h(Host, { "data-r": EnvelopeStore.updateCount }, h("div", { class: "header" }, h(Fragment, null, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, EnvelopeStore.envelope.name), h("div", { style: { flex: '1' } }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document" }, (((_a = EnvelopeStore.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
116
122
|
.filter(document => document.type !== 'certificate')
|
117
123
|
.map(envelopeDocument => {
|
118
124
|
const pages = [...((envelopeDocument === null || envelopeDocument === void 0 ? void 0 : envelopeDocument.pages) || [])];
|
119
125
|
pages.sort((a, b) => a.sequence - b.sequence);
|
126
|
+
if (!envelopeDocument.processed) {
|
127
|
+
return h("verdocs-loader", null);
|
128
|
+
}
|
120
129
|
return (h(Fragment, null, pages.map(page => (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, virtualWidth: 612, virtualHeight: 792, pageNumber: page.sequence, onPageRendered: e => this.handlePageRendered(e), layers: [
|
121
130
|
{ name: 'page', type: 'canvas' },
|
122
131
|
{ name: 'controls', type: 'div' },
|
@@ -177,6 +186,11 @@ export class VerdocsView {
|
|
177
186
|
}
|
178
187
|
};
|
179
188
|
}
|
189
|
+
static get states() {
|
190
|
+
return {
|
191
|
+
"isProcessing": {}
|
192
|
+
};
|
193
|
+
}
|
180
194
|
static get events() {
|
181
195
|
return [{
|
182
196
|
"method": "sdkError",
|
@@ -28,7 +28,6 @@ export class VerdocsFieldTextbox {
|
|
28
28
|
}
|
29
29
|
async hideSettingsPanel() {
|
30
30
|
const settingsPanel = document.getElementById(`verdocs-settings-panel-${this.field.name}`);
|
31
|
-
console.log('will hide', settingsPanel);
|
32
31
|
if (settingsPanel && settingsPanel.hidePanel) {
|
33
32
|
settingsPanel.hidePanel();
|
34
33
|
}
|
@@ -68,7 +67,6 @@ export class VerdocsFieldTextbox {
|
|
68
67
|
let disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
69
68
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
70
69
|
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
71
|
-
console.log('settings', settings);
|
72
70
|
if (this.done) {
|
73
71
|
return h(Host, { class: { done: this.done } }, value);
|
74
72
|
}
|
@@ -2,13 +2,13 @@ import { getEnvelope } from '@verdocs/js-sdk/Envelopes/Envelopes';
|
|
2
2
|
import EnvelopeStore from './envelopeStore';
|
3
3
|
// Allows envelope data to be cached for reuse between components, without parent components having to prop-drill entire envelopes into
|
4
4
|
// child elements.
|
5
|
-
export const getEnvelopeById = async (endpoint, envelopeId) => {
|
5
|
+
export const getEnvelopeById = async (endpoint, envelopeId, forceReload = false) => {
|
6
6
|
var _a, _b;
|
7
7
|
if (!envelopeId) {
|
8
8
|
console.log(`[ENVELOPES] Missing required envelope ID`);
|
9
9
|
return;
|
10
10
|
}
|
11
|
-
if (((_a = EnvelopeStore.envelope) === null || _a === void 0 ? void 0 : _a.id) === envelopeId) {
|
11
|
+
if (((_a = EnvelopeStore.envelope) === null || _a === void 0 ? void 0 : _a.id) === envelopeId && !forceReload) {
|
12
12
|
console.log(`[ENVELOPES] Skipping load for already-loaded envelope ID`);
|
13
13
|
return;
|
14
14
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { d as decodeAccessTokenBody } from './
|
1
|
+
import { d as decodeAccessTokenBody } from './Types.js';
|
2
2
|
|
3
3
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4
4
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
@@ -63,6 +63,16 @@ var getEnvelope = function (endpoint, envelopeId, ssr) { return __awaiter(void 0
|
|
63
63
|
.then(function (r) { return r.data; })];
|
64
64
|
});
|
65
65
|
}); };
|
66
|
+
/**
|
67
|
+
* Cancel an Envelope.
|
68
|
+
*/
|
69
|
+
var cancelEnvelope = function (endpoint, envelopeId) { return __awaiter(void 0, void 0, void 0, function () {
|
70
|
+
return __generator(this, function (_a) {
|
71
|
+
return [2 /*return*/, endpoint.api //
|
72
|
+
.put("/envelopes/".concat(envelopeId), { action: 'cancel' })
|
73
|
+
.then(function (r) { return r.data; })];
|
74
|
+
});
|
75
|
+
}); };
|
66
76
|
/**
|
67
77
|
* Get (binary download) a file attached to an Envelope. It is important to use this method
|
68
78
|
* rather than a direct A HREF or similar link to set the authorization headers for the
|
@@ -126,4 +136,4 @@ var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, document
|
|
126
136
|
return [2 /*return*/, endpoint.api.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image")).then(function (r) { return r.data; })];
|
127
137
|
}); }); };
|
128
138
|
|
129
|
-
export { updateEnvelopeFieldSignature as a, updateEnvelopeFieldInitials as b, getEnvelopeDocumentPageDisplayUri as c,
|
139
|
+
export { updateEnvelopeFieldSignature as a, updateEnvelopeFieldInitials as b, getEnvelopeDocumentPageDisplayUri as c, cancelEnvelope as d, getEnvelopeFile as e, getFieldAttachment as f, getSigningSession as g, getEnvelope as h, updateEnvelopeField as u };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { h as getEnvelope } from './Envelopes.js';
|
2
2
|
import { c as createStore } from './index3.js';
|
3
3
|
|
4
4
|
// NOTE: Do not attempt to convert this to a named-export module. It triggers compilation issues in Rollup that I spent days trying to
|
@@ -30,13 +30,13 @@ onChange('envelope', async (newEnvelope) => {
|
|
30
30
|
|
31
31
|
// Allows envelope data to be cached for reuse between components, without parent components having to prop-drill entire envelopes into
|
32
32
|
// child elements.
|
33
|
-
const getEnvelopeById = async (endpoint, envelopeId) => {
|
33
|
+
const getEnvelopeById = async (endpoint, envelopeId, forceReload = false) => {
|
34
34
|
var _a, _b;
|
35
35
|
if (!envelopeId) {
|
36
36
|
console.log(`[ENVELOPES] Missing required envelope ID`);
|
37
37
|
return;
|
38
38
|
}
|
39
|
-
if (((_a = state.envelope) === null || _a === void 0 ? void 0 : _a.id) === envelopeId) {
|
39
|
+
if (((_a = state.envelope) === null || _a === void 0 ? void 0 : _a.id) === envelopeId && !forceReload) {
|
40
40
|
console.log(`[ENVELOPES] Skipping load for already-loaded envelope ID`);
|
41
41
|
return;
|
42
42
|
}
|
@@ -66,4 +66,50 @@ var decodeAccessTokenBody = function (token) {
|
|
66
66
|
return decoded;
|
67
67
|
};
|
68
68
|
|
69
|
-
|
69
|
+
var RecipientActions;
|
70
|
+
(function (RecipientActions) {
|
71
|
+
RecipientActions["SUBMIT"] = "submit";
|
72
|
+
RecipientActions["DECLINE"] = "decline";
|
73
|
+
RecipientActions["PREPARE"] = "prepare";
|
74
|
+
RecipientActions["UPDATE"] = "update";
|
75
|
+
})(RecipientActions || (RecipientActions = {}));
|
76
|
+
var EnvelopeStates;
|
77
|
+
(function (EnvelopeStates) {
|
78
|
+
EnvelopeStates["COMPLETE"] = "complete";
|
79
|
+
EnvelopeStates["PENDING"] = "pending";
|
80
|
+
EnvelopeStates["IN_PROGRESS"] = "in progress";
|
81
|
+
EnvelopeStates["DECLINED"] = "declined";
|
82
|
+
EnvelopeStates["CANCELED"] = "canceled";
|
83
|
+
})(EnvelopeStates || (EnvelopeStates = {}));
|
84
|
+
var RecipientStates;
|
85
|
+
(function (RecipientStates) {
|
86
|
+
RecipientStates["INVITED"] = "invited";
|
87
|
+
RecipientStates["OPENED"] = "opened";
|
88
|
+
RecipientStates["SIGNED"] = "signed";
|
89
|
+
RecipientStates["SUBMITTED"] = "submitted";
|
90
|
+
RecipientStates["CANCELED"] = "canceled";
|
91
|
+
RecipientStates["PENDING"] = "pending";
|
92
|
+
RecipientStates["DECLINED"] = "declined";
|
93
|
+
})(RecipientStates || (RecipientStates = {}));
|
94
|
+
var RecipientTypes;
|
95
|
+
(function (RecipientTypes) {
|
96
|
+
RecipientTypes["SIGNER"] = "signer";
|
97
|
+
RecipientTypes["CC"] = "cc";
|
98
|
+
RecipientTypes["APPROVER"] = "approver";
|
99
|
+
})(RecipientTypes || (RecipientTypes = {}));
|
100
|
+
var DocumentFieldTypes;
|
101
|
+
(function (DocumentFieldTypes) {
|
102
|
+
DocumentFieldTypes["SIGNATURE"] = "signature";
|
103
|
+
DocumentFieldTypes["INITIAL"] = "initial";
|
104
|
+
DocumentFieldTypes["CHECKBOX_GROUP"] = "checkbox_group";
|
105
|
+
DocumentFieldTypes["RADIO_BUTTON_GROUP"] = "radio_button_group";
|
106
|
+
DocumentFieldTypes["TEXTBOX"] = "textbox";
|
107
|
+
DocumentFieldTypes["TIMESTAMP"] = "timestamp";
|
108
|
+
DocumentFieldTypes["DATE"] = "date";
|
109
|
+
DocumentFieldTypes["DROPDOWN"] = "dropdown";
|
110
|
+
DocumentFieldTypes["TEXTAREA"] = "textarea";
|
111
|
+
DocumentFieldTypes["ATTACHMENT"] = "attachment";
|
112
|
+
DocumentFieldTypes["PAYMENT"] = "payment";
|
113
|
+
})(DocumentFieldTypes || (DocumentFieldTypes = {}));
|
114
|
+
|
115
|
+
export { EnvelopeStates as E, decodeAccessTokenBody as d };
|
@@ -1,17 +1,53 @@
|
|
1
|
-
import { d as decodeAccessTokenBody } from './
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { d as decodeAccessTokenBody } from './Types.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Operation within Verdocs that users may perform.
|
5
|
+
*/
|
6
|
+
var Permissions;
|
7
|
+
(function (Permissions) {
|
8
|
+
Permissions["RCOMMON"] = "rcommon:access";
|
9
|
+
Permissions["RFORM_ACCESS"] = "rform:access";
|
10
|
+
Permissions["ORG_CREATE"] = "org:create";
|
11
|
+
Permissions["ORG_VIEW"] = "org:view";
|
12
|
+
Permissions["ORG_UPDATE"] = "org:update";
|
13
|
+
Permissions["ORG_DELETE"] = "org:delete";
|
14
|
+
Permissions["ORG_TRANSFER"] = "org:transfer";
|
15
|
+
Permissions["ORG_LIST"] = "org:list";
|
16
|
+
Permissions["OWNER_ADD"] = "owner:add";
|
17
|
+
Permissions["OWNER_REMOVE"] = "owner:remove";
|
18
|
+
Permissions["ADMIN_ADD"] = "admin:add";
|
19
|
+
Permissions["ADMIN_REMOVE"] = "admin:remove";
|
20
|
+
Permissions["MEMBER_VIEW"] = "member:view";
|
21
|
+
Permissions["MEMBER_ADD"] = "member:add";
|
22
|
+
Permissions["MEMBER_REMOVE"] = "member:remove";
|
23
|
+
Permissions["TEMPLATE_CREATOR_DELETE"] = "template:creator:delete";
|
24
|
+
Permissions["TEMPLATE_CREATOR_VISIBILITY"] = "template:creator:visibility";
|
25
|
+
Permissions["TEMPLATE_CREATOR_CREATE_ORG"] = "template:creator:create:org";
|
26
|
+
Permissions["TEMPLATE_CREATOR_CREATE_PUBLIC"] = "template:creator:create:public";
|
27
|
+
Permissions["TEMPLATE_CREATOR_CREATE_PERSONAL"] = "template:creator:create:personal";
|
28
|
+
Permissions["TEMPLATE_MEMBER_READ"] = "template:member:read";
|
29
|
+
Permissions["TEMPLATE_MEMBER_WRITE"] = "template:member:write";
|
30
|
+
Permissions["TEMPLATE_MEMBER_DELETE"] = "template:member:delete";
|
31
|
+
Permissions["TEMPLATE_MEMBER_VISIBILITY"] = "template:member:visibility";
|
32
|
+
})(Permissions || (Permissions = {}));
|
33
|
+
/**
|
34
|
+
* Plans provide access to Verdocs product features.
|
35
|
+
*/
|
36
|
+
var Plans;
|
37
|
+
(function (Plans) {
|
38
|
+
Plans["ENV_ESSENTIAL"] = "env:essential";
|
39
|
+
Plans["ORG_STANDARD"] = "org:standard";
|
40
|
+
})(Plans || (Plans = {}));
|
41
|
+
/**
|
42
|
+
* Roles provide access to groups of permissions.
|
43
|
+
*/
|
44
|
+
var Roles;
|
45
|
+
(function (Roles) {
|
46
|
+
Roles["OWNER"] = "owner";
|
47
|
+
Roles["BASIC_USER"] = "basic_user";
|
48
|
+
Roles["MEMBER"] = "member";
|
49
|
+
})(Roles || (Roles = {}));
|
50
|
+
|
15
51
|
var TemplateSenderTypes;
|
16
52
|
(function (TemplateSenderTypes) {
|
17
53
|
TemplateSenderTypes["CREATOR"] = "creator";
|
package/dist/components/utils.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { e as getEnvelopeFile, f as getFieldAttachment } from './Envelopes.js';
|
2
|
+
import './Types.js';
|
2
3
|
import { d as downloadBlob } from './Files.js';
|
3
4
|
import { f as format } from './index2.js';
|
4
5
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
2
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
|
+
import './Types.js';
|
3
4
|
import { S as SDKError } from './errors.js';
|
4
5
|
import { d as defineCustomElement$5 } from './verdocs-button2.js';
|
5
6
|
import { d as defineCustomElement$4 } from './verdocs-help-icon2.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { l as loadTemplate } from './Templates.js';
|
4
5
|
import { S as SDKError } from './errors.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { d as defineCustomElement$2 } from './verdocs-button2.js';
|
4
5
|
import { d as defineCustomElement$1 } from './verdocs-toggle-button2.js';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { c as getEnvelopeDocumentPageDisplayUri } from './Envelopes.js';
|
3
|
+
import './Types.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { t as throttle } from './utils.js';
|
5
6
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { g as getEnvelopeById, s as state } from './Envelopes2.js';
|
4
5
|
import { S as SDKError } from './errors.js';
|
@@ -201,7 +202,7 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class extends
|
|
201
202
|
const session = this.endpoint.getSession();
|
202
203
|
const isEnvelopeOwner = session.profile_id === state.envelope.profile_id; // TODO: What about org admins?
|
203
204
|
const historyEntries = this.prepareHistoryEntries();
|
204
|
-
return (h(Host, { class: this.panelOpen ? 'open' : '', "data-r": state.updateCount }, h("div", { class: "buttons" }, h("button", { class: this.activeTab === 1 ? 'active' : '', onClick: () => this.setTab(1), innerHTML: InformationCircle }), h("button", { class: this.activeTab === 2 ? 'active' : '', onClick: () => this.setTab(2), innerHTML: Users }), h("button", { class: this.activeTab === 3 ? 'active' : '', onClick: () => this.setTab(3), innerHTML: ClipboardDocuments })), this.activeTab === 1 && (h("div", { class: "content" }, h("div", { class: "title" }, "Details"), h("div", { class: "label" }, "Envelope ID"), h("div", { class: "value" }, state.envelope.id), h("div", { class: "label" }, "Date Created"), h("div", { class: "value" }, format(new Date(state.envelope.created_at), 'PP pp')), h("div", { class: "label" }, "Last Modified"), h("div", { class: "value" }, format(new Date(state.envelope.updated_at), 'PP pp')), h("div", { class: "label" }, "Status"), h("div", { class: "value" }, state.envelope.status), h("div", { class: "label" }, "Verdoc Owner
|
205
|
+
return (h(Host, { class: this.panelOpen ? 'open' : '', "data-r": state.updateCount }, h("div", { class: "buttons" }, h("button", { class: this.activeTab === 1 ? 'active' : '', onClick: () => this.setTab(1), innerHTML: InformationCircle }), h("button", { class: this.activeTab === 2 ? 'active' : '', onClick: () => this.setTab(2), innerHTML: Users }), h("button", { class: this.activeTab === 3 ? 'active' : '', onClick: () => this.setTab(3), innerHTML: ClipboardDocuments })), this.activeTab === 1 && (h("div", { class: "content" }, h("div", { class: "title" }, "Details"), h("div", { class: "label" }, "Envelope ID"), h("div", { class: "value" }, state.envelope.id), h("div", { class: "label" }, "Date Created"), h("div", { class: "value" }, format(new Date(state.envelope.created_at), 'PP pp')), h("div", { class: "label" }, "Last Modified"), h("div", { class: "value" }, format(new Date(state.envelope.updated_at), 'PP pp')), h("div", { class: "label" }, "Status"), h("div", { class: "value" }, state.envelope.status), h("div", { class: "label" }, "Verdoc Owner ID"), h("div", { class: "value" }, state.envelope.profile_id), h("div", { class: "label" }, "Verdoc Owner Name"), h("div", { class: "value" }, (_a = state.envelope.profile) === null || _a === void 0 ? void 0 :
|
205
206
|
_a.first_name, " ", (_b = state.envelope.profile) === null || _b === void 0 ? void 0 :
|
206
207
|
_b.last_name), h("div", { class: "label" }, "Verdoc Owner Email"), h("div", { class: "value" }, (_c = state.envelope.profile) === null || _c === void 0 ? void 0 : _c.email))), this.activeTab === 2 && (h("div", { class: "content" }, h("div", { class: "title" }, "Recipients"), state.envelope.recipients.map((recipient, index) => (h("div", { class: "recipient-detail" }, h("div", { class: "recipient-header" }, h("div", { class: "recipient-number" }, index + 1), h("div", { class: "recipient-type" }, recipient.type), h("div", { class: { 'recipient-status': true, [recipient.status]: true } }, recipient.status), isEnvelopeOwner && (h("verdocs-dropdown", { onOptionSelected: item => this.handleRecipientAction(recipient, item.detail.id), options: [
|
207
208
|
{ id: 'reminder', label: 'Send Reminder', disabled: !this.canResendRecipient(recipient) },
|
@@ -40,7 +40,6 @@ const VerdocsFieldTextbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
40
40
|
}
|
41
41
|
async hideSettingsPanel() {
|
42
42
|
const settingsPanel = document.getElementById(`verdocs-settings-panel-${this.field.name}`);
|
43
|
-
console.log('will hide', settingsPanel);
|
44
43
|
if (settingsPanel && settingsPanel.hidePanel) {
|
45
44
|
settingsPanel.hidePanel();
|
46
45
|
}
|
@@ -80,7 +79,6 @@ const VerdocsFieldTextbox$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
80
79
|
let disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
81
80
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
82
81
|
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
83
|
-
console.log('settings', settings);
|
84
82
|
if (this.done) {
|
85
83
|
return h(Host, { class: { done: this.done } }, value);
|
86
84
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { r as renderDocumentField, a as getRoleIndex } from './utils.js';
|
4
5
|
import { s as state } from './templateStore.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
|
4
5
|
const verdocsQuickFunctionsCss = "verdocs-quick-functions{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}";
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
|
4
5
|
const verdocsSearchBoxCss = "verdocs-search-box{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}";
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { d as defineCustomElement$4 } from './verdocs-quick-functions2.js';
|
4
5
|
import { d as defineCustomElement$3 } from './verdocs-search-activity2.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { i as isValidEmail, a as isValidPhone } from './Validators.js';
|
4
5
|
import { g as getRGBA } from './Colors.js';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
2
|
import { g as getSigningSession, u as updateEnvelopeField, a as updateEnvelopeFieldSignature, b as updateEnvelopeFieldInitials } from './Envelopes.js';
|
3
|
+
import './Types.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { a as isValidPhone, i as isValidEmail } from './Validators.js';
|
5
6
|
import { f as fullNameToInitials } from './Primitives.js';
|
@@ -178,7 +179,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
178
179
|
if (this.agreed) {
|
179
180
|
this.nextButtonLabel = 'Next';
|
180
181
|
}
|
181
|
-
await getEnvelopeById(this.endpoint, this.envelopeId);
|
182
|
+
await getEnvelopeById(this.endpoint, this.envelopeId, true);
|
182
183
|
if (state.envelope.documents.length > 0) {
|
183
184
|
this.documentsSingularPlural = 'document(s)';
|
184
185
|
}
|
@@ -223,7 +224,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
223
224
|
this.finishLater = true;
|
224
225
|
this.showFinishLater = true;
|
225
226
|
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'later' });
|
226
|
-
// this.router.navigate([`view/sign/${this.envelopeId}/role/${this.roleName}/saved`]);
|
227
227
|
break;
|
228
228
|
case 'claim':
|
229
229
|
window.alert('This feature will be available in an upcoming release.');
|
@@ -501,9 +501,10 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
501
501
|
if (state.loading || !state.envelope) {
|
502
502
|
return (h(Host, null, h("verdocs-loader", null)));
|
503
503
|
}
|
504
|
-
|
505
|
-
|
506
|
-
|
504
|
+
if (this.isDone) {
|
505
|
+
return (h(Host, { class: { agreed: this.agreed }, "data-r": state.updateCount }, this.isDone ? (h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })) : (h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') })));
|
506
|
+
}
|
507
|
+
return (h(Host, { class: { agreed: this.agreed }, "data-r": state.updateCount }, !this.finishLater && h("div", { class: "intro" }, "Please review and act on these documents."), h("div", { class: "header" }, !this.agreed ? (h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (h(Fragment, null, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, state.envelope.name), h("div", { style: { flex: '1' } }))), !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) })), !this.agreed ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), h("div", { class: "document" }, (state.envelope.documents || []).map(envelopeDocument => {
|
507
508
|
const pages = [...((envelopeDocument === null || envelopeDocument === void 0 ? void 0 : envelopeDocument.pages) || [])];
|
508
509
|
pages.sort((a, b) => a.sequence - b.sequence);
|
509
510
|
return (h(Fragment, null, pages.map(page => {
|
@@ -520,7 +521,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
520
521
|
{ name: 'controls', type: 'div' },
|
521
522
|
] }));
|
522
523
|
})));
|
523
|
-
}))
|
524
|
+
})), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => (this.showDone = false) }))));
|
524
525
|
}
|
525
526
|
static get style() { return verdocsSignCss; }
|
526
527
|
}, [0, "verdocs-sign", {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { s as state } from './templateStore.js';
|
4
5
|
import { l as loadTemplate } from './Templates.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { c as createTemplate, g as getTemplate } from './Templates2.js';
|
3
4
|
import { c as createTemplateDocument } from './TemplateDocuments.js';
|
4
5
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { g as getTemplateDocumentPageDisplayUri } from './TemplateDocuments.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { t as throttle } from './utils.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { u as updateField, d as deleteField } from './Fields.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { s as state } from './templateStore.js';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
2
|
import { i as interact } from './interact.min.js';
|
3
|
+
import './Types.js';
|
3
4
|
import { u as updateField, c as createField } from './Fields.js';
|
4
5
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
6
|
import { a as getRoleIndex, r as renderDocumentField, c as updateCssTransform, d as defaultWidth, e as defaultHeight } from './utils.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { u as updateTemplate } from './Templates2.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { s as state } from './templateStore.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { g as getTemplate } from './Templates2.js';
|
3
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
4
5
|
import { S as SDKError } from './errors.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
4
|
import { s as state } from './templateStore.js';
|
4
5
|
import { l as loadTemplate } from './Templates.js';
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import './Types.js';
|
2
3
|
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint.js';
|
3
4
|
import { s as state } from './templateStore.js';
|
4
5
|
import { l as loadTemplate } from './Templates.js';
|