@verdocs/web-sdk 1.12.37 → 1.12.40
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-4d03f708.js → Envelopes-699531b7.js} +14 -11
- package/dist/cjs/{interact.min-531805f2.js → interact.min-fdb8d65c.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-3a88b566.js → utils-173073b5.js} +1 -1
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +4 -3
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview.cjs.entry.js +2 -3
- package/dist/cjs/verdocs-send.cjs.entry.js +9 -9
- package/dist/cjs/verdocs-sign.cjs.entry.js +5 -6
- package/dist/cjs/verdocs-template-create_3.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-document-page.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-view.cjs.entry.js +5 -13
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/elements/verdocs-envelope-document-page/verdocs-envelope-document-page.js +20 -1
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +0 -1
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.stories.js +4 -3
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +7 -7
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.stories.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +5 -6
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +3 -11
- package/dist/components/Envelopes.js +14 -11
- package/dist/components/verdocs-envelope-document-page2.js +3 -1
- package/dist/components/verdocs-preview.js +0 -1
- package/dist/components/verdocs-send.js +7 -7
- package/dist/components/verdocs-sign.js +4 -5
- package/dist/components/verdocs-view2.js +9 -23
- package/dist/custom-elements.json +1502 -0
- package/dist/docs.json +28 -9
- package/dist/esm/{Envelopes-223b2797.js → Envelopes-921cd9d0.js} +14 -11
- package/dist/esm/{interact.min-e441821e.js → interact.min-2d48f507.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-c0c6df0c.js → utils-218600d6.js} +1 -1
- package/dist/esm/verdocs-dropdown_2.entry.js +4 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
- package/dist/esm/verdocs-field-date.entry.js +2 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
- package/dist/esm/verdocs-field-initial.entry.js +2 -2
- package/dist/esm/verdocs-field-payment.entry.js +2 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
- package/dist/esm/verdocs-field-signature.entry.js +2 -2
- package/dist/esm/verdocs-field-textarea.entry.js +2 -2
- package/dist/esm/verdocs-field-textbox.entry.js +3 -3
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-preview.entry.js +2 -3
- package/dist/esm/verdocs-send.entry.js +9 -9
- package/dist/esm/verdocs-sign.entry.js +6 -7
- package/dist/esm/verdocs-template-create_3.entry.js +3 -3
- package/dist/esm/verdocs-template-document-page.entry.js +2 -2
- package/dist/esm/verdocs-view.entry.js +5 -13
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Envelopes-223b2797.js → Envelopes-921cd9d0.js} +1 -1
- package/dist/esm-es5/{interact.min-e441821e.js → interact.min-2d48f507.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-c0c6df0c.js → utils-218600d6.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-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page.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/elements/verdocs-envelope-document-page/verdocs-envelope-document-page.d.ts +1 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -1
- package/dist/types/components.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-88720222.system.entry.js → p-06431b48.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8e0b06f0.js → p-06b63e19.js} +1 -1
- package/dist/verdocs-web-sdk/{p-50b9e7a6.entry.js → p-07837642.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-124b98e3.system.entry.js → p-15a98f93.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-373cb7c4.entry.js → p-17ce2ecb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f19adeb1.entry.js → p-1e7791de.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dc257e34.entry.js → p-1f83efb6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1fadb008.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1ec52273.system.entry.js → p-2ec93d4f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-31c3e708.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-8b8ad34e.entry.js → p-33f518fe.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6870cbcb.entry.js → p-34327c86.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6c921148.entry.js → p-36e04ce1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-53b657ae.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-58176d9d.entry.js → p-5637ad60.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-56ca1b0f.system.entry.js → p-58616494.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-330a4c7d.system.js → p-5a7ccee3.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4c06e243.system.entry.js → p-61622a60.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6caf1137.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-fbb50212.entry.js → p-7b39af7f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4aa6b512.system.js → p-8c4ccdcf.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ff784558.entry.js → p-9131d247.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9c0dfec9.system.entry.js → p-977fbaf7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a4b7c9e5.system.entry.js → p-986d86f4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1c7478f8.system.entry.js → p-9ac9f634.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-08653421.entry.js → p-a4351594.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6034f271.system.entry.js → p-a746d24f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-038e9dfc.entry.js → p-af8d400f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a5b9428.system.entry.js → p-b270f99a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b3ec6306.js +1 -0
- package/dist/verdocs-web-sdk/{p-30c2dfbc.entry.js → p-beb76dac.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c1037597.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f3e81f0b.js → p-c181315f.js} +1 -1
- package/dist/verdocs-web-sdk/{p-468eee0c.system.entry.js → p-cd3ee92f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-cf5e07d6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-492f465d.system.js → p-d1c37175.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ef81ec0.system.entry.js → p-dce1c55d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ddf2b4d4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e4bbfd3f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-93780e22.system.entry.js → p-ec121c9e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71d5e053.system.entry.js → p-f5b2c369.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e7a1baaf.system.entry.js → p-f907648c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-14d7da8a.entry.js → p-ff7aef68.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-15205501.js +0 -1
- package/dist/verdocs-web-sdk/p-62c7d0c3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-636602ff.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-74350c7c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a59ae37d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-becc9197.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c344f0fd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ca7d441a.entry.js +0 -1
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
15
15
|
};
|
16
16
|
|
17
17
|
patchBrowser().then(options => {
|
18
|
-
return index.bootstrapLazy(JSON.parse("[[\"verdocs-checkbox_4.cjs\",[[0,\"verdocs-checkbox\",{\"checked\":[4],\"name\":[1],\"label\":[1],\"value\":[1],\"theme\":[1],\"disabled\":[4]}],[0,\"verdocs-text-input\",{\"value\":[1],\"label\":[1],\"placeholder\":[1],\"autocomplete\":[1],\"helpText\":[1,\"help-text\"],\"type\":[1],\"disabled\":[4]}],[0,\"verdocs-component-error\",{\"message\":[1]}],[0,\"verdocs-help-icon\",{\"text\":[1],\"containerId\":[32]}]]],[\"verdocs-build.cjs\",[[0,\"verdocs-build\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"step\":[32],\"pdfUrl\":[32],\"template\":[32]}]]],[\"verdocs-field-initial.cjs\",[[0,\"verdocs-field-initial\",{\"field\":[16],\"disabled\":[4],\"initials\":[1],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempInitials\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-signature.cjs\",[[0,\"verdocs-field-signature\",{\"field\":[16],\"name\":[1],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempSignature\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-checkbox.cjs\",[[0,\"verdocs-field-checkbox\",{\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-date.cjs\",[[0,\"verdocs-field-date\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"containerId\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-dropdown.cjs\",[[0,\"verdocs-field-dropdown\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-radio-button.cjs\",[[0,\"verdocs-field-radio-button\",{\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textarea.cjs\",[[0,\"verdocs-field-textarea\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textbox.cjs\",[[0,\"verdocs-field-textbox\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-timestamp.cjs\",[[0,\"verdocs-field-timestamp\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-sign.cjs\",[[0,\"verdocs-sign\",{\"envelopeId\":[1,\"envelope-id\"],\"roleId\":[1,\"role-id\"],\"inviteCode\":[1,\"invite-code\"],\"headerTargetId\":[1,\"header-target-id\"],\"envelope\":[32],\"roleNames\":[32],\"recipient\":[32],\"signerToken\":[32],\"hasSignature\":[32],\"nextButtonLabel\":[32],\"nextSubmits\":[32],\"errorMessage\":[32],\"focusedField\":[32],\"isDone\":[32],\"showDone\":[32],\"finishLater\":[32],\"showFinishLater\":[32],\"agreed\":[32],\"documentsSingularPlural\":[32]}]]],[\"verdocs-template-properties.cjs\",[[0,\"verdocs-template-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"template\":[32],\"name\":[32],\"visibility\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32]}]]],[\"verdocs-template-reminders.cjs\",[[0,\"verdocs-template-reminders\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showPlanBlocker\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32],\"dirty\":[32],\"loading\":[32]}]]],[\"verdocs-template-name.cjs\",[[0,\"verdocs-template-name\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"name\":[32],\"dirty\":[32],\"loading\":[32]}]]],[\"verdocs-auth.cjs\",[[0,\"verdocs-auth\",{\"endpoint\":[16],\"visible\":[4],\"logo\":[1],\"isAuthenticated\":[32],\"displayMode\":[32],\"username\":[32],\"password\":[32],\"loggingIn\":[32],\"activeSession\":[32],\"loginError\":[32]}]]],[\"verdocs-search.cjs\",[[0,\"verdocs-search\",{\"endpoint\":[16]}]]],[\"verdocs-send.cjs\",[[0,\"verdocs-send\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"containerId\":[32],\"rolesAtLevel\":[32],\"showPickerForId\":[32],\"sessionContacts\":[32],\"rolesCompleted\":[32],\"reset\":[64]}]]],[\"verdocs-template-visibility.cjs\",[[0,\"verdocs-template-visibility\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"dirty\":[32],\"loading\":[32],\"personal\":[32],\"public\":[32]}]]],[\"verdocs-view.cjs\",[[0,\"verdocs-view\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"headerTargetId\":[1,\"header-target-id\"],\"isProcessing\":[32],\"envelope\":[32],\"roleNames\":[32],\"showCancelDone\":[32]}]]],[\"verdocs-upload-dialog.cjs\",[[0,\"verdocs-upload-dialog\",{\"draggingOver\":[32],\"decodedFiles\":[32]}]]],[\"verdocs-field-attachment.cjs\",[[0,\"verdocs-field-attachment\",{\"field\":[16],\"disabled\":[4],\"roleIndex\":[2,\"role-index\"],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-template-document-page.cjs\",[[0,\"verdocs-template-document-page\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}]]],[\"verdocs-loader.cjs\",[[0,\"verdocs-loader\"]]],[\"verdocs-preview.cjs\",[[0,\"verdocs-preview\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-template-attachments.cjs\",[[0,\"verdocs-template-attachments\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"loading\":[32]}]]],[\"verdocs-envelope-sidebar.cjs\",[[0,\"verdocs-envelope-sidebar\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"envelope\":[32],\"roleNames\":[32],\"activeTab\":[32],\"panelOpen\":[32]}]]],[\"verdocs-floating-menu.cjs\",[[0,\"verdocs-floating-menu\",{\"options\":[16]}]]],[\"verdocs-kba-dialog.cjs\",[[0,\"verdocs-kba-dialog\",{\"step\":[2],\"steps\":[2],\"helptitle\":[1],\"helptext\":[1],\"mode\":[1],\"label\":[1],\"placeholder\":[1],\"choices\":[16],\"response\":[32]}]]],[\"verdocs-field-payment.cjs\",[[0,\"verdocs-field-payment\",{\"field\":[16],\"disabled\":[4],\"fields\":[16],\"pageNum\":[2,\"page-num\"],\"roleName\":[1,\"role-name\"],\"fieldId\":[1,\"field-id\"],\"recipients\":[8],\"selectedRoleName\":[1,\"selected-role-name\"],\"pdfPages\":[16],\"currentSignature\":[1,\"current-signature\"],\"currentSignatureId\":[1,\"current-signature-id\"],\"currentInitial\":[1,\"current-initial\"],\"currentInitialId\":[1,\"current-initial-id\"],\"focused\":[4],\"signed\":[4],\"rerender\":[2],\"roleindex\":[2],\"preparedMessage\":[32],\"signatureUrl\":[32],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-organization-card.cjs\",[[0,\"verdocs-organization-card\",{\"organization\":[16]}]]],[\"verdocs-search-tabs.cjs\",[[0,\"verdocs-search-tabs\",{\"selected\":[32]}]]],[\"verdocs-status-indicator.cjs\",[[0,\"verdocs-status-indicator\",{\"size\":[1],\"theme\":[1],\"status\":[1],\"envelope\":[16],\"isOpen\":[32],\"recipientStatusIcons\":[32],\"containerId\":[32]}]]],[\"verdocs-template-card.cjs\",[[0,\"verdocs-template-card\",{\"template\":[16]}]]],[\"verdocs-template-tags.cjs\",[[0,\"verdocs-template-tags\",{\"tags\":[16]}]]],[\"verdocs-toggle.cjs\",[[0,\"verdocs-toggle\",{\"options\":[16],\"theme\":[1],\"selectedOption\":[32]}]]],[\"verdocs-button.cjs\",[[0,\"verdocs-button\",{\"label\":[1],\"startIcon\":[1,\"start-icon\"],\"endIcon\":[1,\"end-icon\"],\"size\":[1],\"type\":[1],\"variant\":[1],\"disabled\":[4]}]]],[\"verdocs-initial-dialog.cjs\",[[0,\"verdocs-initial-dialog\",{\"initials\":[1],\"fontLoaded\":[32],\"enteredInitials\":[32],\"mode\":[32]}]]],[\"verdocs-signature-dialog.cjs\",[[0,\"verdocs-signature-dialog\",{\"name\":[1],\"fontLoaded\":[32],\"enteredName\":[32],\"mode\":[32]}]]],[\"verdocs-contact-picker.cjs\",[[0,\"verdocs-contact-picker\",{\"endpoint\":[16],\"templateRole\":[16],\"contactSuggestions\":[16],\"name\":[32],\"email\":[32],\"phone\":[32],\"message\":[32],\"showSuggestions\":[32],\"showMessage\":[32],\"delegator\":[32],\"nameFieldId\":[32],\"emailFieldId\":[32],\"phoneFieldId\":[32]}]]],[\"verdocs-progress-bar.cjs\",[[0,\"verdocs-progress-bar\",{\"label\":[1],\"showPercent\":[4,\"show-percent\"],\"percent\":[2]}]]],[\"verdocs-toggle-button.cjs\",[[0,\"verdocs-toggle-button\",{\"active\":[4],\"icon\":[1],\"label\":[1],\"size\":[1],\"_active\":[32]}]]],[\"verdocs-template-create_3.cjs\",[[0,\"verdocs-template-roles\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showingRoleDialog\":[32],\"showingSenderDialog\":[32],\"sender\":[32],\"forceRerender\":[32]}],[0,\"verdocs-template-create\",{\"endpoint\":[16],\"file\":[32],\"creating\":[32],\"progressLabel\":[32],\"progressPercent\":[32]}],[0,\"verdocs-template-fields\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"toolbarTargetId\":[1,\"toolbar-target-id\"],\"placing\":[32],\"selectedRoleName\":[32],\"rerender\":[32]},[[4,\"keydown\",\"handleKeyDown\"]]]]],[\"verdocs-quick-functions_3.cjs\",[[0,\"verdocs-quick-functions\",{\"endpoint\":[16]}],[0,\"verdocs-search-activity\",{\"endpoint\":[16],\"type\":[1],\"options\":[8],\"emptyMessage\":[32],\"authFailure\":[32],\"title\":[32],\"recent\":[32],\"saved\":[32],\"starred\":[32]}],[0,\"verdocs-search-box\",{\"endpoint\":[16],\"placeholder\":[1],\"type\":[1],\"query\":[1],\"grabsFocus\":[4,\"grabs-focus\"],\"focusField\":[64]}]]],[\"verdocs-toolbar-icon.cjs\",[[0,\"verdocs-toolbar-icon\",{\"text\":[1],\"icon\":[1],\"placement\":[1],\"containerId\":[32]}]]],[\"verdocs-template-role-properties_2.cjs\",[[0,\"verdocs-template-role-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"roleName\":[1,\"role-name\"],\"sender\":[1],\"dirty\":[32],\"saving\":[32],\"name\":[32],\"type\":[32],\"fullName\":[32],\"email\":[32],\"phone\":[32],\"allowDelegation\":[32]}],[0,\"verdocs-template-sender\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"sender\":[1],\"saving\":[32]}]]],[\"verdocs-ok-dialog.cjs\",[[0,\"verdocs-ok-dialog\",{\"heading\":[1],\"message\":[1],\"showCancel\":[4,\"show-cancel\"],\"closed\":[32]}]]],[\"verdocs-radio-button.cjs\",[[0,\"verdocs-radio-button\",{\"checked\":[4],\"name\":[1],\"value\":[1],\"disabled\":[4]}]]],[\"verdocs-dropdown_2.cjs\",[[0,\"verdocs-envelope-document-page\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}],[0,\"verdocs-dropdown\",{\"options\":[16],\"open\":[32]}]]],[\"verdocs-button-panel_3.cjs\",[[0,\"verdocs-template-field-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"fieldName\":[1,\"field-name\"],\"helpText\":[1,\"help-text\"],\"dirty\":[32],\"loading\":[32],\"type\":[32],\"setting\":[32],\"name\":[32],\"roleName\":[32],\"group\":[32],\"fieldType\":[32],\"required\":[32],\"options\":[32],\"placeholder\":[32],\"defaultValue\":[32],\"showingHelp\":[32]}],[4,\"verdocs-button-panel\",{\"icon\":[1],\"showPanel\":[64],\"hidePanel\":[64],\"toggle\":[64]}],[0,\"verdocs-select-input\",{\"value\":[1],\"label\":[1],\"options\":[16],\"disabled\":[4]}]]]]"), options);
|
18
|
+
return index.bootstrapLazy(JSON.parse("[[\"verdocs-checkbox_4.cjs\",[[0,\"verdocs-checkbox\",{\"checked\":[4],\"name\":[1],\"label\":[1],\"value\":[1],\"theme\":[1],\"disabled\":[4]}],[0,\"verdocs-text-input\",{\"value\":[1],\"label\":[1],\"placeholder\":[1],\"autocomplete\":[1],\"helpText\":[1,\"help-text\"],\"type\":[1],\"disabled\":[4]}],[0,\"verdocs-component-error\",{\"message\":[1]}],[0,\"verdocs-help-icon\",{\"text\":[1],\"containerId\":[32]}]]],[\"verdocs-build.cjs\",[[0,\"verdocs-build\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"step\":[32],\"pdfUrl\":[32],\"template\":[32]}]]],[\"verdocs-field-initial.cjs\",[[0,\"verdocs-field-initial\",{\"field\":[16],\"disabled\":[4],\"initials\":[1],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempInitials\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-signature.cjs\",[[0,\"verdocs-field-signature\",{\"field\":[16],\"name\":[1],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"tempSignature\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-checkbox.cjs\",[[0,\"verdocs-field-checkbox\",{\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-date.cjs\",[[0,\"verdocs-field-date\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"containerId\":[32],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-dropdown.cjs\",[[0,\"verdocs-field-dropdown\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-radio-button.cjs\",[[0,\"verdocs-field-radio-button\",{\"field\":[16],\"option\":[2],\"disabled\":[4],\"done\":[4],\"roleindex\":[2],\"editable\":[4],\"moveable\":[4],\"rerender\":[2],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textarea.cjs\",[[0,\"verdocs-field-textarea\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-textbox.cjs\",[[0,\"verdocs-field-textbox\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-field-timestamp.cjs\",[[0,\"verdocs-field-timestamp\",{\"field\":[16],\"disabled\":[4],\"editable\":[4],\"moveable\":[4],\"done\":[4],\"roleindex\":[2],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-sign.cjs\",[[0,\"verdocs-sign\",{\"envelopeId\":[1,\"envelope-id\"],\"roleId\":[1,\"role-id\"],\"inviteCode\":[1,\"invite-code\"],\"headerTargetId\":[1,\"header-target-id\"],\"envelope\":[32],\"roleNames\":[32],\"recipient\":[32],\"signerToken\":[32],\"hasSignature\":[32],\"nextButtonLabel\":[32],\"nextSubmits\":[32],\"errorMessage\":[32],\"focusedField\":[32],\"isDone\":[32],\"showDone\":[32],\"finishLater\":[32],\"showFinishLater\":[32],\"agreed\":[32],\"documentsSingularPlural\":[32]}]]],[\"verdocs-template-properties.cjs\",[[0,\"verdocs-template-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"template\":[32],\"name\":[32],\"visibility\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32]}]]],[\"verdocs-template-reminders.cjs\",[[0,\"verdocs-template-reminders\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showPlanBlocker\":[32],\"sendReminders\":[32],\"firstReminderDays\":[32],\"reminderDays\":[32],\"dirty\":[32],\"loading\":[32]}]]],[\"verdocs-template-name.cjs\",[[0,\"verdocs-template-name\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"name\":[32],\"dirty\":[32],\"loading\":[32]}]]],[\"verdocs-auth.cjs\",[[0,\"verdocs-auth\",{\"endpoint\":[16],\"visible\":[4],\"logo\":[1],\"isAuthenticated\":[32],\"displayMode\":[32],\"username\":[32],\"password\":[32],\"loggingIn\":[32],\"activeSession\":[32],\"loginError\":[32]}]]],[\"verdocs-search.cjs\",[[0,\"verdocs-search\",{\"endpoint\":[16]}]]],[\"verdocs-send.cjs\",[[0,\"verdocs-send\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"containerId\":[32],\"rolesAtLevel\":[32],\"showPickerForId\":[32],\"sessionContacts\":[32],\"rolesCompleted\":[32],\"reset\":[64]}]]],[\"verdocs-template-visibility.cjs\",[[0,\"verdocs-template-visibility\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"dirty\":[32],\"loading\":[32],\"personal\":[32],\"public\":[32]}]]],[\"verdocs-view.cjs\",[[0,\"verdocs-view\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"headerTargetId\":[1,\"header-target-id\"],\"isProcessing\":[32],\"envelope\":[32],\"roleNames\":[32],\"showCancelDone\":[32]}]]],[\"verdocs-upload-dialog.cjs\",[[0,\"verdocs-upload-dialog\",{\"draggingOver\":[32],\"decodedFiles\":[32]}]]],[\"verdocs-field-attachment.cjs\",[[0,\"verdocs-field-attachment\",{\"field\":[16],\"disabled\":[4],\"roleIndex\":[2,\"role-index\"],\"rerender\":[2],\"focusField\":[64],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-template-document-page.cjs\",[[0,\"verdocs-template-document-page\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}]]],[\"verdocs-loader.cjs\",[[0,\"verdocs-loader\"]]],[\"verdocs-preview.cjs\",[[0,\"verdocs-preview\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"]}]]],[\"verdocs-template-attachments.cjs\",[[0,\"verdocs-template-attachments\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"loading\":[32]}]]],[\"verdocs-envelope-sidebar.cjs\",[[0,\"verdocs-envelope-sidebar\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"envelope\":[32],\"roleNames\":[32],\"activeTab\":[32],\"panelOpen\":[32]}]]],[\"verdocs-floating-menu.cjs\",[[0,\"verdocs-floating-menu\",{\"options\":[16]}]]],[\"verdocs-kba-dialog.cjs\",[[0,\"verdocs-kba-dialog\",{\"step\":[2],\"steps\":[2],\"helptitle\":[1],\"helptext\":[1],\"mode\":[1],\"label\":[1],\"placeholder\":[1],\"choices\":[16],\"response\":[32]}]]],[\"verdocs-field-payment.cjs\",[[0,\"verdocs-field-payment\",{\"field\":[16],\"disabled\":[4],\"fields\":[16],\"pageNum\":[2,\"page-num\"],\"roleName\":[1,\"role-name\"],\"fieldId\":[1,\"field-id\"],\"recipients\":[8],\"selectedRoleName\":[1,\"selected-role-name\"],\"pdfPages\":[16],\"currentSignature\":[1,\"current-signature\"],\"currentSignatureId\":[1,\"current-signature-id\"],\"currentInitial\":[1,\"current-initial\"],\"currentInitialId\":[1,\"current-initial-id\"],\"focused\":[4],\"signed\":[4],\"rerender\":[2],\"roleindex\":[2],\"preparedMessage\":[32],\"signatureUrl\":[32],\"showSettingsPanel\":[64],\"hideSettingsPanel\":[64]}]]],[\"verdocs-organization-card.cjs\",[[0,\"verdocs-organization-card\",{\"organization\":[16]}]]],[\"verdocs-search-tabs.cjs\",[[0,\"verdocs-search-tabs\",{\"selected\":[32]}]]],[\"verdocs-status-indicator.cjs\",[[0,\"verdocs-status-indicator\",{\"size\":[1],\"theme\":[1],\"status\":[1],\"envelope\":[16],\"isOpen\":[32],\"recipientStatusIcons\":[32],\"containerId\":[32]}]]],[\"verdocs-template-card.cjs\",[[0,\"verdocs-template-card\",{\"template\":[16]}]]],[\"verdocs-template-tags.cjs\",[[0,\"verdocs-template-tags\",{\"tags\":[16]}]]],[\"verdocs-toggle.cjs\",[[0,\"verdocs-toggle\",{\"options\":[16],\"theme\":[1],\"selectedOption\":[32]}]]],[\"verdocs-button.cjs\",[[0,\"verdocs-button\",{\"label\":[1],\"startIcon\":[1,\"start-icon\"],\"endIcon\":[1,\"end-icon\"],\"size\":[1],\"type\":[1],\"variant\":[1],\"disabled\":[4]}]]],[\"verdocs-initial-dialog.cjs\",[[0,\"verdocs-initial-dialog\",{\"initials\":[1],\"fontLoaded\":[32],\"enteredInitials\":[32],\"mode\":[32]}]]],[\"verdocs-signature-dialog.cjs\",[[0,\"verdocs-signature-dialog\",{\"name\":[1],\"fontLoaded\":[32],\"enteredName\":[32],\"mode\":[32]}]]],[\"verdocs-contact-picker.cjs\",[[0,\"verdocs-contact-picker\",{\"endpoint\":[16],\"templateRole\":[16],\"contactSuggestions\":[16],\"name\":[32],\"email\":[32],\"phone\":[32],\"message\":[32],\"showSuggestions\":[32],\"showMessage\":[32],\"delegator\":[32],\"nameFieldId\":[32],\"emailFieldId\":[32],\"phoneFieldId\":[32]}]]],[\"verdocs-progress-bar.cjs\",[[0,\"verdocs-progress-bar\",{\"label\":[1],\"showPercent\":[4,\"show-percent\"],\"percent\":[2]}]]],[\"verdocs-toggle-button.cjs\",[[0,\"verdocs-toggle-button\",{\"active\":[4],\"icon\":[1],\"label\":[1],\"size\":[1],\"_active\":[32]}]]],[\"verdocs-template-create_3.cjs\",[[0,\"verdocs-template-roles\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"showingRoleDialog\":[32],\"showingSenderDialog\":[32],\"sender\":[32],\"forceRerender\":[32]}],[0,\"verdocs-template-create\",{\"endpoint\":[16],\"file\":[32],\"creating\":[32],\"progressLabel\":[32],\"progressPercent\":[32]}],[0,\"verdocs-template-fields\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"toolbarTargetId\":[1,\"toolbar-target-id\"],\"placing\":[32],\"selectedRoleName\":[32],\"rerender\":[32]},[[4,\"keydown\",\"handleKeyDown\"]]]]],[\"verdocs-quick-functions_3.cjs\",[[0,\"verdocs-quick-functions\",{\"endpoint\":[16]}],[0,\"verdocs-search-activity\",{\"endpoint\":[16],\"type\":[1],\"options\":[8],\"emptyMessage\":[32],\"authFailure\":[32],\"title\":[32],\"recent\":[32],\"saved\":[32],\"starred\":[32]}],[0,\"verdocs-search-box\",{\"endpoint\":[16],\"placeholder\":[1],\"type\":[1],\"query\":[1],\"grabsFocus\":[4,\"grabs-focus\"],\"focusField\":[64]}]]],[\"verdocs-toolbar-icon.cjs\",[[0,\"verdocs-toolbar-icon\",{\"text\":[1],\"icon\":[1],\"placement\":[1],\"containerId\":[32]}]]],[\"verdocs-template-role-properties_2.cjs\",[[0,\"verdocs-template-role-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"roleName\":[1,\"role-name\"],\"sender\":[1],\"dirty\":[32],\"saving\":[32],\"name\":[32],\"type\":[32],\"fullName\":[32],\"email\":[32],\"phone\":[32],\"allowDelegation\":[32]}],[0,\"verdocs-template-sender\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"sender\":[1],\"saving\":[32]}]]],[\"verdocs-ok-dialog.cjs\",[[0,\"verdocs-ok-dialog\",{\"heading\":[1],\"message\":[1],\"showCancel\":[4,\"show-cancel\"],\"closed\":[32]}]]],[\"verdocs-radio-button.cjs\",[[0,\"verdocs-radio-button\",{\"checked\":[4],\"name\":[1],\"value\":[1],\"disabled\":[4]}]]],[\"verdocs-dropdown_2.cjs\",[[0,\"verdocs-envelope-document-page\",{\"endpoint\":[16],\"envelopeId\":[1,\"envelope-id\"],\"documentId\":[1,\"document-id\"],\"pageNumber\":[2,\"page-number\"],\"virtualWidth\":[2,\"virtual-width\"],\"virtualHeight\":[1026,\"virtual-height\"],\"layers\":[16],\"type\":[1],\"containerId\":[32],\"renderedWidth\":[32],\"renderedHeight\":[32],\"naturalWidth\":[32],\"naturalHeight\":[32],\"aspectRatio\":[32],\"skipFirstNotification\":[32],\"pageDisplayUri\":[32]}],[0,\"verdocs-dropdown\",{\"options\":[16],\"open\":[32]}]]],[\"verdocs-button-panel_3.cjs\",[[0,\"verdocs-template-field-properties\",{\"endpoint\":[16],\"templateId\":[1,\"template-id\"],\"fieldName\":[1,\"field-name\"],\"helpText\":[1,\"help-text\"],\"dirty\":[32],\"loading\":[32],\"type\":[32],\"setting\":[32],\"name\":[32],\"roleName\":[32],\"group\":[32],\"fieldType\":[32],\"required\":[32],\"options\":[32],\"placeholder\":[32],\"defaultValue\":[32],\"showingHelp\":[32]}],[4,\"verdocs-button-panel\",{\"icon\":[1],\"showPanel\":[64],\"hidePanel\":[64],\"toggle\":[64]}],[0,\"verdocs-select-input\",{\"value\":[1],\"label\":[1],\"options\":[16],\"disabled\":[4]}]]]]"), options);
|
19
19
|
});
|
@@ -17,6 +17,7 @@ export class VerdocsEnvelopeDocumentPage {
|
|
17
17
|
this.virtualWidth = 612;
|
18
18
|
this.virtualHeight = 792;
|
19
19
|
this.layers = [{ name: 'page', type: 'canvas' }];
|
20
|
+
this.type = 'original';
|
20
21
|
this.containerId = `verdocs-envelope-document-page-${Math.random().toString(36).substring(2, 11)}`;
|
21
22
|
this.renderedWidth = this.virtualWidth;
|
22
23
|
this.renderedHeight = this.virtualHeight;
|
@@ -27,7 +28,7 @@ export class VerdocsEnvelopeDocumentPage {
|
|
27
28
|
this.pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png';
|
28
29
|
}
|
29
30
|
async componentWillLoad() {
|
30
|
-
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber);
|
31
|
+
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber, this.type);
|
31
32
|
}
|
32
33
|
componentDidLoad() {
|
33
34
|
this.resizeObserver = new ResizeObserver(throttle(entries => {
|
@@ -232,6 +233,24 @@ export class VerdocsEnvelopeDocumentPage {
|
|
232
233
|
"text": "The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.\nThe parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.\nif `pages` was ['page', 'fields'] the structure will be:\n\n```\n <div id=\"verdocs-envelope-document-page-ker2fr1p9\">\n <div id=\"verdocs-envelope-document-page-ker2fr1p9-page\"></div>\n <div id=\"verdocs-envelope-document-page-ker2fr1p9-fields\"></div>\n </div>\n```"
|
233
234
|
},
|
234
235
|
"defaultValue": "[{name: 'page', type: 'canvas'}]"
|
236
|
+
},
|
237
|
+
"type": {
|
238
|
+
"type": "string",
|
239
|
+
"mutable": false,
|
240
|
+
"complexType": {
|
241
|
+
"original": "'original' | 'filled' | 'certificate'",
|
242
|
+
"resolved": "\"certificate\" | \"filled\" | \"original\"",
|
243
|
+
"references": {}
|
244
|
+
},
|
245
|
+
"required": false,
|
246
|
+
"optional": false,
|
247
|
+
"docs": {
|
248
|
+
"tags": [],
|
249
|
+
"text": ""
|
250
|
+
},
|
251
|
+
"attribute": "type",
|
252
|
+
"reflect": false,
|
253
|
+
"defaultValue": "'original'"
|
235
254
|
}
|
236
255
|
};
|
237
256
|
}
|
@@ -47,7 +47,6 @@ export class VerdocsPreview {
|
|
47
47
|
const pages = [...TemplateStore.template.pages];
|
48
48
|
pages.sort((a, b) => a.sequence - b.sequence);
|
49
49
|
return (h(Host, null, pages.map(page => {
|
50
|
-
console.log('rendering page', page);
|
51
50
|
return (h("verdocs-template-document-page", { templateId: page.template_id, documentId: page.document_id, pageNumber: page.sequence, virtualWidth: 612, virtualHeight: 792, onPageRendered: e => this.handlePageRendered(e), layers: [
|
52
51
|
{ name: 'page', type: 'canvas' },
|
53
52
|
{ name: 'controls', type: 'div' },
|
@@ -3,8 +3,7 @@ export default {
|
|
3
3
|
title: 'Embeds/Preview',
|
4
4
|
component: 'verdocs-preview',
|
5
5
|
args: {
|
6
|
-
templateId: '
|
7
|
-
// templateId: 'd2338742-f3a1-465b-8592-806587413cc1',
|
6
|
+
templateId: '',
|
8
7
|
},
|
9
8
|
argTypes: {
|
10
9
|
templateId: { control: { type: 'string' } },
|
@@ -13,4 +12,6 @@ export default {
|
|
13
12
|
layout: 'fullscreen',
|
14
13
|
},
|
15
14
|
};
|
16
|
-
export const Preview = ({ templateId }) =>
|
15
|
+
export const Preview = ({ templateId }) => !templateId
|
16
|
+
? html `<img src="https://verdocs-public-assets.s3.amazonaws.com/billofsale-signed.png" alt="Signed document sample" style="display: flex; row-gap: 15px; padding: 15px;" />`
|
17
|
+
: html `<verdocs-preview .templateId=${templateId} />`;
|
@@ -34,7 +34,7 @@ export class VerdocsSend {
|
|
34
34
|
this.rolesCompleted = {};
|
35
35
|
}
|
36
36
|
async componentWillLoad() {
|
37
|
-
var _a, _b, _c, _d, _e;
|
37
|
+
var _a, _b, _c, _d, _e, _f;
|
38
38
|
const loadSessionResult = this.endpoint.loadSession();
|
39
39
|
if (!this.templateId) {
|
40
40
|
console.log(`[SEND] Missing required template ID ${this.templateId}`);
|
@@ -43,10 +43,10 @@ export class VerdocsSend {
|
|
43
43
|
try {
|
44
44
|
console.log(`[SEND] Loading template ${this.templateId}`);
|
45
45
|
await loadTemplate(this.endpoint, this.templateId, true);
|
46
|
-
if (!TemplateStore.template.is_sendable) {
|
46
|
+
if (!((_a = TemplateStore.template) === null || _a === void 0 ? void 0 : _a.is_sendable)) {
|
47
47
|
console.warn(`[SEND] Template is not sendable`, this.templateId);
|
48
48
|
}
|
49
|
-
if ((
|
49
|
+
if ((_b = TemplateStore.template) === null || _b === void 0 ? void 0 : _b.roles) {
|
50
50
|
const rolesAtLevel = {};
|
51
51
|
this.rolesCompleted = {};
|
52
52
|
TemplateStore.template.roles.forEach(role => {
|
@@ -62,9 +62,9 @@ export class VerdocsSend {
|
|
62
62
|
}
|
63
63
|
catch (e) {
|
64
64
|
console.log('[SEND] Error loading template', e);
|
65
|
-
(
|
65
|
+
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
|
66
66
|
}
|
67
|
-
if ((
|
67
|
+
if ((_f = loadSessionResult.session) === null || _f === void 0 ? void 0 : _f.profile) {
|
68
68
|
this.sessionContacts.push({
|
69
69
|
id: loadSessionResult.session.profile.id,
|
70
70
|
name: `${loadSessionResult.session.profile.first_name} ${loadSessionResult.session.profile.last_name}`,
|
@@ -105,11 +105,11 @@ export class VerdocsSend {
|
|
105
105
|
(_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
|
106
106
|
}
|
107
107
|
render() {
|
108
|
-
var _a;
|
108
|
+
var _a, _b;
|
109
109
|
const roleNames = (((_a = TemplateStore.template) === null || _a === void 0 ? void 0 : _a.roles) || []).map(role => role.name) || [];
|
110
110
|
const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email) || isValidPhone(recipient.phone));
|
111
111
|
const allRolesAssigned = rolesAssigned.length >= roleNames.length;
|
112
|
-
return (h(Host, { class: { sendable: TemplateStore.template.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
112
|
+
return (h(Host, { class: { sendable: (_b = TemplateStore.template) === null || _b === void 0 ? void 0 : _b.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
113
113
|
var _a, _b, _c, _d, _e, _f;
|
114
114
|
const unknown = !role.email;
|
115
115
|
return unknown ? (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.full_name) !== null && _e !== void 0 ? _e : role.full_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))));
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
2
|
import { Envelopes } from '@verdocs/js-sdk/Envelopes';
|
3
3
|
import { createInitials } from '@verdocs/js-sdk/Envelopes/Initials';
|
4
|
-
import { fullNameToInitials } from '@verdocs/js-sdk/Utils/Primitives';
|
5
4
|
import { createSignature } from '@verdocs/js-sdk/Envelopes/Signatures';
|
6
5
|
import { isValidEmail, isValidPhone } from '@verdocs/js-sdk/Templates/Validators';
|
7
|
-
import {
|
6
|
+
import { fullNameToInitials, integerSequence } from '@verdocs/js-sdk/Utils/Primitives';
|
8
7
|
import { Host, Fragment, h } from '@stencil/core';
|
8
|
+
import { RecipientStates } from '@verdocs/js-sdk/Envelopes/Types';
|
9
9
|
import { envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit } from '@verdocs/js-sdk/Envelopes/Recipients';
|
10
10
|
import { throttledGetEnvelope, updateEnvelopeFieldInitials, updateEnvelopeFieldSignature } from '@verdocs/js-sdk/Envelopes/Envelopes';
|
11
11
|
import { getFieldId, getRoleIndex, renderDocumentField, saveAttachment, updateDocumentFieldValue } from '../../../utils/utils';
|
@@ -455,9 +455,8 @@ export class VerdocsSign {
|
|
455
455
|
} }))));
|
456
456
|
}
|
457
457
|
return (h(Host, { class: { agreed: this.agreed } }, !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.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", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
458
|
-
const
|
459
|
-
|
460
|
-
return (h(Fragment, null, pages.map(page => {
|
458
|
+
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
459
|
+
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
461
460
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
462
461
|
// where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or
|
463
462
|
// future signers still need to act. Once we're "done" we flip to showing the envelope's documents which have the final
|
@@ -466,7 +465,7 @@ export class VerdocsSign {
|
|
466
465
|
// TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure
|
467
466
|
// we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.
|
468
467
|
// console.log('tp', templatePage, page);
|
469
|
-
return (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, virtualWidth: 612, virtualHeight: 792, pageNumber:
|
468
|
+
return (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, virtualWidth: 612, virtualHeight: 792, pageNumber: pageNumber, onPageRendered: e => this.handlePageRendered(e), type: "filled", layers: [
|
470
469
|
{ name: 'page', type: 'canvas' },
|
471
470
|
{ name: 'controls', type: 'div' },
|
472
471
|
] }));
|
@@ -4,6 +4,7 @@ import { userCanCancelEnvelope } from '@verdocs/js-sdk/Envelopes/Permissions';
|
|
4
4
|
import { h, Host, Fragment } from '@stencil/core';
|
5
5
|
import { saveAttachment, saveCertificate, saveEnvelopesAsZip } from '../../../utils/utils';
|
6
6
|
import { SDKError } from '../../../utils/errors';
|
7
|
+
import { integerSequence } from '@verdocs/js-sdk/Utils/Primitives';
|
7
8
|
/**
|
8
9
|
* Render the documents attached to an envelope in read-only (view) mode. All documents are displayed in order.
|
9
10
|
*/
|
@@ -45,10 +46,6 @@ export class VerdocsView {
|
|
45
46
|
try {
|
46
47
|
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
47
48
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
48
|
-
this.isProcessing = this.envelope.documents.some(document => document.type === 'attachment' && !document.processed);
|
49
|
-
if (this.isProcessing) {
|
50
|
-
setTimeout(() => this.reloadEnvelope(), 3000);
|
51
|
-
}
|
52
49
|
}
|
53
50
|
catch (e) {
|
54
51
|
(_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));
|
@@ -132,13 +129,8 @@ export class VerdocsView {
|
|
132
129
|
return (h(Host, null, h("div", { id: "verdocs-view-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.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", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (((_a = this.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
133
130
|
.filter(document => document.type !== 'certificate')
|
134
131
|
.map(envelopeDocument => {
|
135
|
-
|
136
|
-
|
137
|
-
pages.sort((a, b) => a.sequence - b.sequence);
|
138
|
-
if (!envelopeDocument.processed) {
|
139
|
-
return h("verdocs-loader", null);
|
140
|
-
}
|
141
|
-
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: [
|
132
|
+
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
133
|
+
return (h(Fragment, null, pageNumbers.map(pageNumber => (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, type: "filled", virtualWidth: 612, virtualHeight: 792, pageNumber: pageNumber, onPageRendered: e => this.handlePageRendered(e), layers: [
|
142
134
|
{ name: 'page', type: 'canvas' },
|
143
135
|
{ name: 'controls', type: 'div' },
|
144
136
|
] })))));
|
@@ -132,18 +132,21 @@ var getFieldAttachment = function (endpoint, envelopeId, fieldName) { return __a
|
|
132
132
|
* into PNG resources suitable for display in IMG tags although they may be used elsewhere. Note that these are intended
|
133
133
|
* for DISPLAY ONLY, are not legally binding documents, and do not contain any encoded metadata from participants.
|
134
134
|
*/
|
135
|
-
var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
135
|
+
var getEnvelopeDocumentPageDisplayUri = function (endpoint, envelopeId, documentId, page, type) {
|
136
|
+
if (type === void 0) { type = 'original'; }
|
137
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
138
|
+
return __generator(this, function (_a) {
|
139
|
+
return [2 /*return*/, endpoint.api
|
140
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId, "/pages/").concat(page, "/image?type=").concat(type), {
|
141
|
+
timeout: 20000,
|
142
|
+
'axios-retry': {
|
143
|
+
retries: 5,
|
144
|
+
},
|
145
|
+
})
|
146
|
+
.then(function (r) { return r.data; })];
|
147
|
+
});
|
145
148
|
});
|
146
|
-
}
|
149
|
+
};
|
147
150
|
var cachedEnvelopes = {};
|
148
151
|
/**
|
149
152
|
* Wrapper for `getEnvelope()` that limits queries to one every 2 seconds per template ID.
|
@@ -18,6 +18,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class exten
|
|
18
18
|
this.virtualWidth = 612;
|
19
19
|
this.virtualHeight = 792;
|
20
20
|
this.layers = [{ name: 'page', type: 'canvas' }];
|
21
|
+
this.type = 'original';
|
21
22
|
this.containerId = `verdocs-envelope-document-page-${Math.random().toString(36).substring(2, 11)}`;
|
22
23
|
this.renderedWidth = this.virtualWidth;
|
23
24
|
this.renderedHeight = this.virtualHeight;
|
@@ -28,7 +29,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class exten
|
|
28
29
|
this.pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png';
|
29
30
|
}
|
30
31
|
async componentWillLoad() {
|
31
|
-
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber);
|
32
|
+
this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.envelopeId, this.documentId, this.pageNumber, this.type);
|
32
33
|
}
|
33
34
|
componentDidLoad() {
|
34
35
|
this.resizeObserver = new ResizeObserver(throttle(entries => {
|
@@ -99,6 +100,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class exten
|
|
99
100
|
"virtualWidth": [2, "virtual-width"],
|
100
101
|
"virtualHeight": [1026, "virtual-height"],
|
101
102
|
"layers": [16],
|
103
|
+
"type": [1],
|
102
104
|
"containerId": [32],
|
103
105
|
"renderedWidth": [32],
|
104
106
|
"renderedHeight": [32],
|
@@ -50,7 +50,6 @@ const VerdocsPreview$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
50
50
|
const pages = [...state.template.pages];
|
51
51
|
pages.sort((a, b) => a.sequence - b.sequence);
|
52
52
|
return (h(Host, null, pages.map(page => {
|
53
|
-
console.log('rendering page', page);
|
54
53
|
return (h("verdocs-template-document-page", { templateId: page.template_id, documentId: page.document_id, pageNumber: page.sequence, virtualWidth: 612, virtualHeight: 792, onPageRendered: e => this.handlePageRendered(e), layers: [
|
55
54
|
{ name: 'page', type: 'canvas' },
|
56
55
|
{ name: 'controls', type: 'div' },
|
@@ -38,7 +38,7 @@ const VerdocsSend$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
38
38
|
this.rolesCompleted = {};
|
39
39
|
}
|
40
40
|
async componentWillLoad() {
|
41
|
-
var _a, _b, _c, _d, _e;
|
41
|
+
var _a, _b, _c, _d, _e, _f;
|
42
42
|
const loadSessionResult = this.endpoint.loadSession();
|
43
43
|
if (!this.templateId) {
|
44
44
|
console.log(`[SEND] Missing required template ID ${this.templateId}`);
|
@@ -47,10 +47,10 @@ const VerdocsSend$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
47
47
|
try {
|
48
48
|
console.log(`[SEND] Loading template ${this.templateId}`);
|
49
49
|
await loadTemplate(this.endpoint, this.templateId, true);
|
50
|
-
if (!state.template.is_sendable) {
|
50
|
+
if (!((_a = state.template) === null || _a === void 0 ? void 0 : _a.is_sendable)) {
|
51
51
|
console.warn(`[SEND] Template is not sendable`, this.templateId);
|
52
52
|
}
|
53
|
-
if ((
|
53
|
+
if ((_b = state.template) === null || _b === void 0 ? void 0 : _b.roles) {
|
54
54
|
const rolesAtLevel = {};
|
55
55
|
this.rolesCompleted = {};
|
56
56
|
state.template.roles.forEach(role => {
|
@@ -66,9 +66,9 @@ const VerdocsSend$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
66
66
|
}
|
67
67
|
catch (e) {
|
68
68
|
console.log('[SEND] Error loading template', e);
|
69
|
-
(
|
69
|
+
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
|
70
70
|
}
|
71
|
-
if ((
|
71
|
+
if ((_f = loadSessionResult.session) === null || _f === void 0 ? void 0 : _f.profile) {
|
72
72
|
this.sessionContacts.push({
|
73
73
|
id: loadSessionResult.session.profile.id,
|
74
74
|
name: `${loadSessionResult.session.profile.first_name} ${loadSessionResult.session.profile.last_name}`,
|
@@ -108,11 +108,11 @@ const VerdocsSend$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
108
108
|
(_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
|
109
109
|
}
|
110
110
|
render() {
|
111
|
-
var _a;
|
111
|
+
var _a, _b;
|
112
112
|
const roleNames = (((_a = state.template) === null || _a === void 0 ? void 0 : _a.roles) || []).map(role => role.name) || [];
|
113
113
|
const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email) || isValidPhone(recipient.phone));
|
114
114
|
const allRolesAssigned = rolesAssigned.length >= roleNames.length;
|
115
|
-
return (h(Host, { class: { sendable: state.template.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
115
|
+
return (h(Host, { class: { sendable: (_b = state.template) === null || _b === void 0 ? void 0 : _b.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
116
116
|
var _a, _b, _c, _d, _e, _f;
|
117
117
|
const unknown = !role.email;
|
118
118
|
return unknown ? (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.full_name) !== null && _e !== void 0 ? _e : role.full_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))));
|
@@ -3,7 +3,7 @@ import { g as getSigningSession, t as throttledGetEnvelope, u as updateEnvelopeF
|
|
3
3
|
import { R as RecipientStates } from './Types.js';
|
4
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
5
|
import { a as isValidPhone, i as isValidEmail } from './Validators.js';
|
6
|
-
import { f as fullNameToInitials } from './Primitives.js';
|
6
|
+
import { f as fullNameToInitials, i as integerSequence } from './Primitives.js';
|
7
7
|
import { s as saveAttachment, u as updateDocumentFieldValue, a as getRoleIndex, r as renderDocumentField, b as getFieldId } from './utils.js';
|
8
8
|
import { S as SDKError } from './errors.js';
|
9
9
|
import { d as defineCustomElement$8 } from './verdocs-button2.js';
|
@@ -542,9 +542,8 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
542
542
|
} }))));
|
543
543
|
}
|
544
544
|
return (h(Host, { class: { agreed: this.agreed } }, !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.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", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
545
|
-
const
|
546
|
-
|
547
|
-
return (h(Fragment, null, pages.map(page => {
|
545
|
+
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
546
|
+
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
548
547
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
549
548
|
// where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or
|
550
549
|
// future signers still need to act. Once we're "done" we flip to showing the envelope's documents which have the final
|
@@ -553,7 +552,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
553
552
|
// TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure
|
554
553
|
// we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.
|
555
554
|
// console.log('tp', templatePage, page);
|
556
|
-
return (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, virtualWidth: 612, virtualHeight: 792, pageNumber:
|
555
|
+
return (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, virtualWidth: 612, virtualHeight: 792, pageNumber: pageNumber, onPageRendered: e => this.handlePageRendered(e), type: "filled", layers: [
|
557
556
|
{ name: 'page', type: 'canvas' },
|
558
557
|
{ name: 'controls', type: 'div' },
|
559
558
|
] }));
|
@@ -2,12 +2,12 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from
|
|
2
2
|
import { t as throttledGetEnvelope, d as cancelEnvelope } from './Envelopes.js';
|
3
3
|
import { E as EnvelopeStates } from './Types.js';
|
4
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint.js';
|
5
|
+
import { i as integerSequence } from './Primitives.js';
|
5
6
|
import { f as saveEnvelopesAsZip, h as saveCertificate, s as saveAttachment } from './utils.js';
|
6
7
|
import { S as SDKError } from './errors.js';
|
7
|
-
import { d as defineCustomElement$
|
8
|
-
import { d as defineCustomElement$
|
9
|
-
import { d as defineCustomElement$
|
10
|
-
import { d as defineCustomElement$2 } from './verdocs-loader2.js';
|
8
|
+
import { d as defineCustomElement$4 } from './verdocs-button2.js';
|
9
|
+
import { d as defineCustomElement$3 } from './verdocs-dropdown2.js';
|
10
|
+
import { d as defineCustomElement$2 } from './verdocs-envelope-document-page2.js';
|
11
11
|
import { d as defineCustomElement$1 } from './verdocs-ok-dialog2.js';
|
12
12
|
|
13
13
|
/**
|
@@ -73,10 +73,6 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
73
73
|
try {
|
74
74
|
this.envelope = await throttledGetEnvelope(this.endpoint, this.envelopeId);
|
75
75
|
this.roleNames = this.envelope.recipients.map(r => r.role_name);
|
76
|
-
this.isProcessing = this.envelope.documents.some(document => document.type === 'attachment' && !document.processed);
|
77
|
-
if (this.isProcessing) {
|
78
|
-
setTimeout(() => this.reloadEnvelope(), 3000);
|
79
|
-
}
|
80
76
|
}
|
81
77
|
catch (e) {
|
82
78
|
(_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));
|
@@ -160,13 +156,8 @@ const VerdocsView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
160
156
|
return (h(Host, null, h("div", { id: "verdocs-view-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.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", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (((_a = this.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
161
157
|
.filter(document => document.type !== 'certificate')
|
162
158
|
.map(envelopeDocument => {
|
163
|
-
|
164
|
-
|
165
|
-
pages.sort((a, b) => a.sequence - b.sequence);
|
166
|
-
if (!envelopeDocument.processed) {
|
167
|
-
return h("verdocs-loader", null);
|
168
|
-
}
|
169
|
-
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: [
|
159
|
+
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
160
|
+
return (h(Fragment, null, pageNumbers.map(pageNumber => (h("verdocs-envelope-document-page", { envelopeId: this.envelopeId, documentId: envelopeDocument.id, endpoint: this.endpoint, type: "filled", virtualWidth: 612, virtualHeight: 792, pageNumber: pageNumber, onPageRendered: e => this.handlePageRendered(e), layers: [
|
170
161
|
{ name: 'page', type: 'canvas' },
|
171
162
|
{ name: 'controls', type: 'div' },
|
172
163
|
] })))));
|
@@ -189,7 +180,7 @@ function defineCustomElement() {
|
|
189
180
|
if (typeof customElements === "undefined") {
|
190
181
|
return;
|
191
182
|
}
|
192
|
-
const components = ["verdocs-view", "verdocs-button", "verdocs-dropdown", "verdocs-envelope-document-page", "verdocs-
|
183
|
+
const components = ["verdocs-view", "verdocs-button", "verdocs-dropdown", "verdocs-envelope-document-page", "verdocs-ok-dialog"];
|
193
184
|
components.forEach(tagName => { switch (tagName) {
|
194
185
|
case "verdocs-view":
|
195
186
|
if (!customElements.get(tagName)) {
|
@@ -197,21 +188,16 @@ function defineCustomElement() {
|
|
197
188
|
}
|
198
189
|
break;
|
199
190
|
case "verdocs-button":
|
200
|
-
if (!customElements.get(tagName)) {
|
201
|
-
defineCustomElement$5();
|
202
|
-
}
|
203
|
-
break;
|
204
|
-
case "verdocs-dropdown":
|
205
191
|
if (!customElements.get(tagName)) {
|
206
192
|
defineCustomElement$4();
|
207
193
|
}
|
208
194
|
break;
|
209
|
-
case "verdocs-
|
195
|
+
case "verdocs-dropdown":
|
210
196
|
if (!customElements.get(tagName)) {
|
211
197
|
defineCustomElement$3();
|
212
198
|
}
|
213
199
|
break;
|
214
|
-
case "verdocs-
|
200
|
+
case "verdocs-envelope-document-page":
|
215
201
|
if (!customElements.get(tagName)) {
|
216
202
|
defineCustomElement$2();
|
217
203
|
}
|