@verdocs/web-sdk 1.12.15 → 1.12.18
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 +22 -12
- 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 +72 -36
- 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.css +2 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +34 -6
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +3 -0
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +5 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +72 -30
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.stories.js +2 -2
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +0 -2
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +1 -1
- 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 +19 -7
- 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 +72 -32
- package/dist/docs.json +42 -8
- 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 +22 -12
- 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 +72 -36
- 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-sign/verdocs-sign.d.ts +11 -0
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +13 -0
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +4 -0
- package/dist/types/components.d.ts +18 -2
- 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-1eeceef9.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-854cf75f.entry.js → p-1f4d73da.entry.js} +1 -1
- 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-354ab558.entry.js +1 -0
- 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-474268c1.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-afa3d3fc.system.entry.js +1 -0
- 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-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,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';
|
@@ -107,7 +108,7 @@ var createInitials = function (endpoint, name, initials) {
|
|
107
108
|
.then(function (r) { return r.data; });
|
108
109
|
};
|
109
110
|
|
110
|
-
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .header{color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 15px;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}verdocs-sign .header .logo{width:80px;display:none;margin:-6px 0 0 10px}verdocs-sign .header .title{padding-left:16px;font-size:18px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;padding:0 15px;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}@media print{verdocs-sign .header{display:none}}";
|
111
|
+
const verdocsSignCss = "verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .header{color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 15px;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}verdocs-sign .header .logo{width:80px;display:none;margin:-6px 0 0 10px}verdocs-sign .header .title{padding-left:16px;font-size:18px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;padding:0 15px;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;height:100%;display:-ms-flexbox;display:flex;padding:70px 15px 15px 15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}@media print{verdocs-sign .header{display:none}}";
|
111
112
|
|
112
113
|
const inProgressMenuOptions = [
|
113
114
|
{ id: 'later', label: 'Finish Later' },
|
@@ -132,6 +133,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
132
133
|
this.envelopeId = null;
|
133
134
|
this.roleId = null;
|
134
135
|
this.inviteCode = null;
|
136
|
+
this.headerTargetId = null;
|
135
137
|
this.recipient = null;
|
136
138
|
this.signerToken = null;
|
137
139
|
this.hasSignature = false;
|
@@ -178,7 +180,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
178
180
|
if (this.agreed) {
|
179
181
|
this.nextButtonLabel = 'Next';
|
180
182
|
}
|
181
|
-
await getEnvelopeById(this.endpoint, this.envelopeId);
|
183
|
+
await getEnvelopeById(this.endpoint, this.envelopeId, true);
|
182
184
|
if (state.envelope.documents.length > 0) {
|
183
185
|
this.documentsSingularPlural = 'document(s)';
|
184
186
|
}
|
@@ -202,6 +204,15 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
202
204
|
(_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
|
203
205
|
}
|
204
206
|
}
|
207
|
+
componentDidRender() {
|
208
|
+
const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;
|
209
|
+
const headerEl = document.getElementById('verdocs-sign-header');
|
210
|
+
if (headerTarget && headerEl) {
|
211
|
+
console.log('[SIGN] Moving header');
|
212
|
+
headerEl.remove();
|
213
|
+
headerTarget.append(headerEl);
|
214
|
+
}
|
215
|
+
}
|
205
216
|
handleClickAgree() {
|
206
217
|
envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, true)
|
207
218
|
.then(() => {
|
@@ -223,7 +234,6 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
223
234
|
this.finishLater = true;
|
224
235
|
this.showFinishLater = true;
|
225
236
|
(_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
237
|
break;
|
228
238
|
case 'claim':
|
229
239
|
window.alert('This feature will be available in an upcoming release.');
|
@@ -501,9 +511,10 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
501
511
|
if (state.loading || !state.envelope) {
|
502
512
|
return (h(Host, null, h("verdocs-loader", null)));
|
503
513
|
}
|
504
|
-
|
505
|
-
|
506
|
-
|
514
|
+
if (this.isDone) {
|
515
|
+
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 = '') })));
|
516
|
+
}
|
517
|
+
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", id: "verdocs-sign-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
518
|
const pages = [...((envelopeDocument === null || envelopeDocument === void 0 ? void 0 : envelopeDocument.pages) || [])];
|
508
519
|
pages.sort((a, b) => a.sequence - b.sequence);
|
509
520
|
return (h(Fragment, null, pages.map(page => {
|
@@ -520,13 +531,14 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
520
531
|
{ name: 'controls', type: 'div' },
|
521
532
|
] }));
|
522
533
|
})));
|
523
|
-
}))
|
534
|
+
})), 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
535
|
}
|
525
536
|
static get style() { return verdocsSignCss; }
|
526
537
|
}, [0, "verdocs-sign", {
|
527
538
|
"envelopeId": [1, "envelope-id"],
|
528
539
|
"roleId": [1, "role-id"],
|
529
540
|
"inviteCode": [1, "invite-code"],
|
541
|
+
"headerTargetId": [1, "header-target-id"],
|
530
542
|
"recipient": [32],
|
531
543
|
"signerToken": [32],
|
532
544
|
"hasSignature": [32],
|
@@ -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';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
2
|
import { i as interact } from './interact.min.js';
|
3
|
+
import './Types.js';
|
3
4
|
import { u as updateRole, c as createRole, d as defineCustomElement$4 } from './verdocs-template-role-properties2.js';
|
4
5
|
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint.js';
|
5
6
|
import { g as getRGBA } from './Colors.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, T as TemplateSenderTypes } 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 { 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,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
2
|
+
import { d as cancelEnvelope } from './Envelopes.js';
|
3
|
+
import { E as EnvelopeStates } from './Types.js';
|
2
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
3
5
|
import { f as saveEnvelopesAsZip, h as saveCertificate, s as saveAttachment } from './utils.js';
|
4
6
|
import { g as getEnvelopeById, s as state } from './Envelopes2.js';
|
@@ -7,7 +9,26 @@ import { d as defineCustomElement$3 } from './verdocs-dropdown2.js';
|
|
7
9
|
import { d as defineCustomElement$2 } from './verdocs-envelope-document-page2.js';
|
8
10
|
import { d as defineCustomElement$1 } from './verdocs-loader2.js';
|
9
11
|
|
10
|
-
|
12
|
+
/**
|
13
|
+
* Various helpers to identify available operations for an envelope by a user.
|
14
|
+
*
|
15
|
+
* @module
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* Check to see if the user owns the envelope.
|
19
|
+
*/
|
20
|
+
var userIsEnvelopeOwner = function (session, envelope) { return envelope.profile_id === (session === null || session === void 0 ? void 0 : session.profile_id); };
|
21
|
+
/**
|
22
|
+
* Check to see if the user owns the envelope.
|
23
|
+
*/
|
24
|
+
var userCanCancelEnvelope = function (session, envelope) {
|
25
|
+
return userIsEnvelopeOwner(session, envelope) &&
|
26
|
+
envelope.status !== EnvelopeStates.COMPLETE &&
|
27
|
+
envelope.status !== EnvelopeStates.DECLINED &&
|
28
|
+
envelope.status !== EnvelopeStates.CANCELED;
|
29
|
+
};
|
30
|
+
|
31
|
+
const verdocsViewCss = "verdocs-view{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 15px;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}verdocs-view .header .logo{width:80px;display:none;margin:-6px 0 0 10px}verdocs-view .header .title{padding-left:16px;font-size:18px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:70px 15px 15px 15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}";
|
11
32
|
|
12
33
|
const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
13
34
|
constructor() {
|
@@ -17,6 +38,8 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
17
38
|
this.envelopeUpdated = createEvent(this, "envelopeUpdated", 7);
|
18
39
|
this.endpoint = VerdocsEndpoint.getDefault();
|
19
40
|
this.envelopeId = '';
|
41
|
+
this.headerTargetId = null;
|
42
|
+
this.isProcessing = false;
|
20
43
|
}
|
21
44
|
componentWillLoad() {
|
22
45
|
this.endpoint.loadSession();
|
@@ -24,13 +47,30 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
24
47
|
// TODO: Handling signing vs preview-as-user cases
|
25
48
|
// TODO: Handle anonymous case and failure to load due to not being logged in
|
26
49
|
async componentDidLoad() {
|
27
|
-
var _a, _b, _c;
|
28
50
|
if (!this.envelopeId) {
|
29
51
|
console.error(`[VIEW] Missing required envelopeId`);
|
30
52
|
return;
|
31
53
|
}
|
54
|
+
return this.reloadEnvelope();
|
55
|
+
}
|
56
|
+
componentDidRender() {
|
57
|
+
const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;
|
58
|
+
const headerEl = document.getElementById('verdocs-view-header');
|
59
|
+
if (headerTarget && headerEl) {
|
60
|
+
console.log('[VIEW] Moving header');
|
61
|
+
headerEl.remove();
|
62
|
+
headerTarget.append(headerEl);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
async reloadEnvelope() {
|
66
|
+
var _a, _b, _c;
|
67
|
+
console.log('[VIEW] Checking for updated envelope');
|
32
68
|
try {
|
33
|
-
await getEnvelopeById(this.endpoint, this.envelopeId);
|
69
|
+
await getEnvelopeById(this.endpoint, this.envelopeId, true);
|
70
|
+
this.isProcessing = state.envelope.documents.some(document => document.type === 'attachment' && !document.processed);
|
71
|
+
if (this.isProcessing) {
|
72
|
+
setTimeout(() => this.reloadEnvelope(), 3000);
|
73
|
+
}
|
34
74
|
}
|
35
75
|
catch (e) {
|
36
76
|
(_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));
|
@@ -39,28 +79,20 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
39
79
|
handlePageRendered(e) {
|
40
80
|
const pageInfo = e.detail;
|
41
81
|
console.log('[VIEW] Page rendered', pageInfo);
|
42
|
-
// EnvelopeStore.envelope.recipients.forEach((recipient, roleIndex) => {
|
43
|
-
// console.log('rendering fields for recipient', roleIndex, recipient);
|
44
|
-
// recipient.fields.forEach(field => {
|
45
|
-
// const el = renderDocumentField(field, pageInfo, roleIndex, {disabled: true, editable: false, draggable: false, done: true});
|
46
|
-
// if (!el) {
|
47
|
-
// return;
|
48
|
-
// }
|
49
|
-
//
|
50
|
-
// if (el.setAttribute) {
|
51
|
-
// el.setAttribute('roleindex', roleIndex);
|
52
|
-
// el.setAttribute('xScale', pageInfo.xScale);
|
53
|
-
// el.setAttribute('yScale', pageInfo.yScale);
|
54
|
-
// }
|
55
|
-
// });
|
56
|
-
// });
|
57
82
|
}
|
58
83
|
async handleOptionSelected(e) {
|
59
|
-
var _a;
|
84
|
+
var _a, _b;
|
60
85
|
switch (e.detail.id) {
|
86
|
+
case 'cancel':
|
87
|
+
// TODO: Better option for inline-flow confirmation and alert dialogs.
|
88
|
+
if (confirm('Are you sure you wish to cancel this envelope? This action cannot be undone.')) {
|
89
|
+
await cancelEnvelope(this.endpoint, this.envelopeId);
|
90
|
+
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'canceled' });
|
91
|
+
}
|
92
|
+
break;
|
61
93
|
case 'print':
|
62
94
|
window.print();
|
63
|
-
(
|
95
|
+
(_b = this.envelopeUpdated) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'printed' });
|
64
96
|
break;
|
65
97
|
case 'download-attachments':
|
66
98
|
saveAttachment(this.endpoint, state.envelope, state.envelope.envelope_document_id)
|
@@ -96,7 +128,6 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
96
128
|
}
|
97
129
|
render() {
|
98
130
|
var _a;
|
99
|
-
console.log('[VIEW] Rendering', state.error, state.loading, state.envelope);
|
100
131
|
if (state.loading || !state.envelope) {
|
101
132
|
return (h(Host, null, h("verdocs-loader", null)));
|
102
133
|
}
|
@@ -104,25 +135,32 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
104
135
|
return (h(Host, null, h("div", null, state.error)));
|
105
136
|
}
|
106
137
|
const menuOptions = [{ id: 'print', label: 'Print' }];
|
138
|
+
if (userCanCancelEnvelope(this.endpoint.session, state.envelope)) {
|
139
|
+
menuOptions.push({ id: 'cancel', label: 'Cancel' });
|
140
|
+
}
|
141
|
+
// Add download options to the menu
|
107
142
|
const hasAttachments = state.envelope.documents.length > 0;
|
108
143
|
const hasCertificate = !!state.envelope.certificate;
|
109
144
|
if (hasAttachments || hasCertificate) {
|
110
145
|
menuOptions.push({ label: '' });
|
146
|
+
if (hasAttachments) {
|
147
|
+
menuOptions.push({ id: 'download-attachments', label: 'Download Documents(s)' });
|
148
|
+
}
|
149
|
+
if (hasCertificate) {
|
150
|
+
menuOptions.push({ id: 'download-certificate', label: 'Download Certificate' });
|
151
|
+
}
|
152
|
+
if (hasAttachments && hasCertificate) {
|
153
|
+
menuOptions.push({ id: 'download-all', label: 'Download All Files' });
|
154
|
+
}
|
111
155
|
}
|
112
|
-
|
113
|
-
menuOptions.push({ id: 'download-attachments', label: 'Download Documents(s)' });
|
114
|
-
}
|
115
|
-
if (hasCertificate) {
|
116
|
-
menuOptions.push({ id: 'download-certificate', label: 'Download Certificate' });
|
117
|
-
}
|
118
|
-
if (hasAttachments && hasCertificate) {
|
119
|
-
menuOptions.push({ id: 'download-all', label: 'Download All Files' });
|
120
|
-
}
|
121
|
-
return (h(Host, { "data-r": state.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" }, state.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 = state.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
156
|
+
return (h(Host, { "data-r": state.updateCount }, h("div", { class: "header", id: "verdocs-view-header" }, 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' } }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document" }, (((_a = state.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
122
157
|
.filter(document => document.type !== 'certificate')
|
123
158
|
.map(envelopeDocument => {
|
124
159
|
const pages = [...((envelopeDocument === null || envelopeDocument === void 0 ? void 0 : envelopeDocument.pages) || [])];
|
125
160
|
pages.sort((a, b) => a.sequence - b.sequence);
|
161
|
+
if (!envelopeDocument.processed) {
|
162
|
+
return h("verdocs-loader", null);
|
163
|
+
}
|
126
164
|
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: [
|
127
165
|
{ name: 'page', type: 'canvas' },
|
128
166
|
{ name: 'controls', type: 'div' },
|
@@ -133,7 +171,9 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
133
171
|
static get style() { return verdocsViewCss; }
|
134
172
|
}, [0, "verdocs-view", {
|
135
173
|
"endpoint": [16],
|
136
|
-
"envelopeId": [1, "envelope-id"]
|
174
|
+
"envelopeId": [1, "envelope-id"],
|
175
|
+
"headerTargetId": [1, "header-target-id"],
|
176
|
+
"isProcessing": [32]
|
137
177
|
}]);
|
138
178
|
function defineCustomElement() {
|
139
179
|
if (typeof customElements === "undefined") {
|
package/dist/docs.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-03-
|
2
|
+
"timestamp": "2023-03-15T14:40:46",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.20.0",
|
@@ -5023,6 +5023,23 @@
|
|
5023
5023
|
"optional": false,
|
5024
5024
|
"required": false
|
5025
5025
|
},
|
5026
|
+
{
|
5027
|
+
"name": "headerTargetId",
|
5028
|
+
"type": "string",
|
5029
|
+
"mutable": false,
|
5030
|
+
"attr": "header-target-id",
|
5031
|
+
"reflectToAttr": false,
|
5032
|
+
"docs": "If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\ncomponent renders, the header will be removed from its default location and placed in the target element.\nThis allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n\nThe movement of the header to the target container is not dynamic - it is performed only on the initial\nrender. Host applications should not conditionally render this container. If the header's visibility must\nbe externally controlled, use CSS display options to hide/show it instead.",
|
5033
|
+
"docsTags": [],
|
5034
|
+
"default": "null",
|
5035
|
+
"values": [
|
5036
|
+
{
|
5037
|
+
"type": "string"
|
5038
|
+
}
|
5039
|
+
],
|
5040
|
+
"optional": false,
|
5041
|
+
"required": false
|
5042
|
+
},
|
5026
5043
|
{
|
5027
5044
|
"name": "inviteCode",
|
5028
5045
|
"type": "string",
|
@@ -5095,22 +5112,22 @@
|
|
5095
5112
|
"dependents": [],
|
5096
5113
|
"dependencies": [
|
5097
5114
|
"verdocs-loader",
|
5115
|
+
"verdocs-view",
|
5116
|
+
"verdocs-ok-dialog",
|
5098
5117
|
"verdocs-checkbox",
|
5099
5118
|
"verdocs-button",
|
5100
5119
|
"verdocs-dropdown",
|
5101
|
-
"verdocs-
|
5102
|
-
"verdocs-envelope-document-page",
|
5103
|
-
"verdocs-ok-dialog"
|
5120
|
+
"verdocs-envelope-document-page"
|
5104
5121
|
],
|
5105
5122
|
"dependencyGraph": {
|
5106
5123
|
"verdocs-sign": [
|
5107
5124
|
"verdocs-loader",
|
5125
|
+
"verdocs-view",
|
5126
|
+
"verdocs-ok-dialog",
|
5108
5127
|
"verdocs-checkbox",
|
5109
5128
|
"verdocs-button",
|
5110
5129
|
"verdocs-dropdown",
|
5111
|
-
"verdocs-
|
5112
|
-
"verdocs-envelope-document-page",
|
5113
|
-
"verdocs-ok-dialog"
|
5130
|
+
"verdocs-envelope-document-page"
|
5114
5131
|
],
|
5115
5132
|
"verdocs-view": [
|
5116
5133
|
"verdocs-loader",
|
@@ -5878,7 +5895,7 @@
|
|
5878
5895
|
"mutable": false,
|
5879
5896
|
"attr": "toolbar-target-id",
|
5880
5897
|
"reflectToAttr": false,
|
5881
|
-
"docs": "If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\ncomponent renders, the toolbar will be removed from its default location and placed in the target element.\nThis allows the parent application to more easily control its placement and scroll effects.",
|
5898
|
+
"docs": "If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\ncomponent renders, the toolbar will be removed from its default location and placed in the target element.\nThis allows the parent application to more easily control its placement and scroll effects.\n\nThe movement of the toolbar to the target container is not dynamic - it is performed only on the initial\nrender. Host applications should not conditionally render this container. If the toolbar's visibility must\nbe externally controlled, use CSS display options to hide/show it instead.",
|
5882
5899
|
"docsTags": [],
|
5883
5900
|
"default": "null",
|
5884
5901
|
"values": [
|
@@ -7313,6 +7330,23 @@
|
|
7313
7330
|
],
|
7314
7331
|
"optional": false,
|
7315
7332
|
"required": false
|
7333
|
+
},
|
7334
|
+
{
|
7335
|
+
"name": "headerTargetId",
|
7336
|
+
"type": "string",
|
7337
|
+
"mutable": false,
|
7338
|
+
"attr": "header-target-id",
|
7339
|
+
"reflectToAttr": false,
|
7340
|
+
"docs": "If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\ncomponent renders, the header will be removed from its default location and placed in the target element.\nThis allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n\nThe movement of the header to the target container is not dynamic - it is performed only on the initial\nrender. Host applications should not conditionally render this container. If the header's visibility must\nbe externally controlled, use CSS display options to hide/show it instead.",
|
7341
|
+
"docsTags": [],
|
7342
|
+
"default": "null",
|
7343
|
+
"values": [
|
7344
|
+
{
|
7345
|
+
"type": "string"
|
7346
|
+
}
|
7347
|
+
],
|
7348
|
+
"optional": false,
|
7349
|
+
"required": false
|
7316
7350
|
}
|
7317
7351
|
],
|
7318
7352
|
"methods": [],
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { d as decodeAccessTokenBody } from './
|
1
|
+
import { d as decodeAccessTokenBody } from './Types-6dc82c14.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 { getEnvelopeFile as a, getFieldAttachment as b, getSigningSession as c, updateEnvelopeFieldSignature as d, updateEnvelopeFieldInitials as e,
|
139
|
+
export { getEnvelopeFile as a, getFieldAttachment as b, getSigningSession as c, updateEnvelopeFieldSignature as d, updateEnvelopeFieldInitials as e, cancelEnvelope as f, getEnvelope as g, getEnvelopeDocumentPageDisplayUri as h, updateEnvelopeField as u };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as getEnvelope } from './Envelopes-
|
1
|
+
import { g as getEnvelope } from './Envelopes-16f09341.js';
|
2
2
|
import { c as createStore } from './index-24fd1580.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 };
|