@verdocs/web-sdk 1.11.2 → 1.11.3
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/{Roles-927719de.js → Roles-9b593b95.js} +1 -1
- package/dist/cjs/TemplateDocuments-6b395b32.js +78 -0
- package/dist/cjs/{Templates-2f2ea153.js → Templates-16615cb0.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-25056c73.js → VerdocsEndpoint-26bb7607.js} +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{templateStore-81ad25a7.js → templateStore-198752d5.js} +1 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_2.cjs.entry.js +74 -5
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
- package/dist/cjs/{verdocs-floating-menu_2.cjs.entry.js → verdocs-floating-menu_3.cjs.entry.js} +97 -0
- package/dist/cjs/verdocs-loader.cjs.entry.js +19 -0
- package/dist/cjs/verdocs-preview.cjs.entry.js +4 -7
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +7 -35
- package/dist/cjs/verdocs-template-name.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +21 -14
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/elements/verdocs-template-document-page/verdocs-template-document-page.css +15 -0
- package/dist/collection/components/elements/verdocs-template-document-page/verdocs-template-document-page.js +275 -0
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +1 -4
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.css +1 -1
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +1 -1
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +17 -10
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +1 -1
- package/dist/collection/utils/templateStore.js +1 -0
- package/dist/components/TemplateDocuments.js +75 -0
- package/dist/components/VerdocsEndpoint.js +8 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/templateStore.js +1 -0
- package/dist/components/verdocs-build.js +9 -9
- package/dist/components/verdocs-preview.js +6 -9
- package/dist/components/verdocs-template-create2.js +2 -30
- package/dist/components/verdocs-template-document-page.d.ts +11 -0
- package/dist/components/verdocs-template-document-page.js +6 -0
- package/dist/components/verdocs-template-document-page2.js +126 -0
- package/dist/components/verdocs-template-fields2.js +8 -8
- package/dist/components/verdocs-template-recipients.js +31 -18
- package/dist/components/verdocs-template-role-properties2.js +1 -1
- package/dist/custom-elements.json +1390 -0
- package/dist/docs.json +168 -14
- package/dist/esm/{Roles-2488d047.js → Roles-6eb459df.js} +1 -1
- package/dist/esm/TemplateDocuments-1214b04d.js +75 -0
- package/dist/esm/{Templates-a7530314.js → Templates-2528dad5.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-7f17b088.js → VerdocsEndpoint-d50a8d28.js} +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{templateStore-fd4beaae.js → templateStore-a7a5149a.js} +1 -0
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +3 -3
- package/dist/esm/verdocs-button-panel_3.entry.js +3 -3
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-document-page_2.entry.js +74 -5
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-field-initial.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-field-signature.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm/{verdocs-floating-menu_2.entry.js → verdocs-floating-menu_3.entry.js} +97 -1
- package/dist/esm/verdocs-loader.entry.js +15 -0
- package/dist/esm/verdocs-preview.entry.js +4 -7
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +3 -3
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-template-attachments.entry.js +3 -3
- package/dist/esm/verdocs-template-create_2.entry.js +6 -34
- package/dist/esm/verdocs-template-name.entry.js +3 -3
- package/dist/esm/verdocs-template-properties.entry.js +2 -2
- package/dist/esm/verdocs-template-recipients.entry.js +21 -14
- package/dist/esm/verdocs-template-reminders.entry.js +3 -3
- package/dist/esm/verdocs-template-role-properties_2.entry.js +4 -4
- package/dist/esm/verdocs-template-visibility.entry.js +3 -3
- package/dist/esm/verdocs-view.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Roles-6eb459df.js +1 -0
- package/dist/esm-es5/TemplateDocuments-1214b04d.js +1 -0
- package/dist/esm-es5/{Templates-a7530314.js → Templates-2528dad5.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-d50a8d28.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/templateStore-a7a5149a.js +1 -0
- 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-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.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-floating-menu_3.entry.js +1 -0
- package/dist/esm-es5/verdocs-loader.entry.js +1 -0
- 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-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-recipients.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-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/elements/verdocs-template-document-page/verdocs-template-document-page.d.ts +68 -0
- package/dist/types/components/embeds/verdocs-preview/verdocs-preview.d.ts +0 -2
- package/dist/types/components.d.ts +77 -0
- package/dist/verdocs-web-sdk/{p-ec913a97.entry.js → p-0049ecc7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0522edd2.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-127a569c.system.entry.js → p-05f3c7bb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5a4b4373.entry.js → p-06512901.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1e710eb7.system.entry.js → p-0aaa85ed.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0ef66c28.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ccaa35ac.system.entry.js → p-11967343.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6c231fe6.system.entry.js → p-1654be9f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-85336769.system.entry.js → p-18bb4152.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1c02faba.js +1 -0
- package/dist/verdocs-web-sdk/{p-37a493a6.entry.js → p-1d787be7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0fc8ae0a.entry.js → p-27396fa8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-68eb0ad8.entry.js → p-2c3aecb8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bde3d383.system.entry.js → p-3019014e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8e5065af.entry.js → p-3379e220.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-36fe1557.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-41122f38.system.entry.js → p-37e93857.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3d4b187a.js +1 -0
- package/dist/verdocs-web-sdk/{p-cd70bb21.system.entry.js → p-3f01debd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4a17efd7.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-83adc0f7.system.entry.js → p-4c7a531c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4e49fb12.js +1 -0
- package/dist/verdocs-web-sdk/p-4e9b66b1.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4f63fae0.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-5dc58d34.entry.js → p-4fc181bd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e079768b.entry.js → p-53261332.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5fda1fe8.system.entry.js → p-58dda3d1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f4f44d6f.system.entry.js → p-5a63da92.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b537b400.entry.js → p-5d6c8737.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e53a7969.entry.js → p-64a6448f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d5836d39.entry.js → p-66bf5e70.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad6cc9f4.js → p-671036fb.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c317702e.system.entry.js → p-673304f6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac3a9c3c.entry.js → p-686608f0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4086a15a.entry.js → p-6a736c6a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-45a4da16.system.js → p-6e3daf5a.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0d7db907.system.entry.js → p-72bc8464.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-085d66a2.entry.js → p-741a34fc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cf27d3ce.system.entry.js → p-760262f3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0e5274d0.system.entry.js → p-7c2ce3ba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8027431e.js +1 -0
- package/dist/verdocs-web-sdk/{p-8b20b903.system.entry.js → p-817e6569.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8229e6df.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-b225dcfb.entry.js → p-823bf074.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e91b174d.system.entry.js → p-82452c9b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-70ad917b.entry.js → p-84b3f146.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79514d21.system.entry.js → p-87e67bc6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-285eaf3c.system.entry.js → p-8b3cf06c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-91df3bb9.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-19d13aca.system.entry.js → p-93e8443f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7d8de5d6.system.entry.js → p-93f0d41c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-95ed895f.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0c393c2b.system.entry.js → p-9b7d218c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9576a08f.system.entry.js → p-9b9ecf94.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8644dd0f.system.entry.js → p-9ccdb9a9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-93b857b6.system.entry.js → p-9f6e7b4a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-011eedf8.entry.js → p-a4b4ce45.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e65ec569.system.entry.js → p-bac9ba46.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/p-c30fa791.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cf8522b5.entry.js → p-c37913b6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c3922dbb.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d27a02b5.entry.js → p-c6e0cc16.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ca0a2a00.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d78594bb.entry.js → p-cb4d8942.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ff15619.entry.js → p-d1cb1151.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-34db97b7.entry.js → p-dcd59898.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fc208e71.entry.js → p-deed17c8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-08270eb7.system.entry.js → p-e29f375d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-63c55bc3.entry.js → p-e79aabb3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e7b7bd2b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-af657dd3.entry.js → p-edcd7d44.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-433a7bb3.entry.js → p-f0022cf0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-42a82518.entry.js → p-f5c1ceb0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c08b737c.system.entry.js → p-f6aa16f3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5b62f239.system.js → p-f9f0d3b4.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1fe9560f.system.entry.js → p-ffdcc57f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -88
- package/dist/esm/verdocs-dropdown.entry.js +0 -84
- package/dist/esm-es5/Roles-2488d047.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-7f17b088.js +0 -1
- package/dist/esm-es5/templateStore-fd4beaae.js +0 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
- package/dist/esm-es5/verdocs-floating-menu_2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1be43032.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-261dcea1.system.js +0 -1
- package/dist/verdocs-web-sdk/p-2d4712ea.js +0 -1
- package/dist/verdocs-web-sdk/p-3cb8a7f4.js +0 -1
- package/dist/verdocs-web-sdk/p-56196fad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6c4d28a2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6e15a51e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-76bdb162.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-80d98971.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b7740fe7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c95c8e1f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d3e25ad3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d946b1b6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fbc81799.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ffe60abd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-f78d163d.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-f78d163d.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-template-recipients",[[0,"verdocs-template-recipients",{endpoint:[16],templateId:[1,"template-id"],showingRoleDialog:[32],showingSenderDialog:[32],sender:[32],forceRerender:[32]}]]],["verdocs-field-initial",[[0,"verdocs-field-initial",{field:[16],disabled:[4],initials:[1],editable:[4],moveable:[4],done:[4],roleindex:[2],tempInitials:[32],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-signature",[[0,"verdocs-field-signature",{field:[16],name:[1],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],tempSignature:[32],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-build",[[0,"verdocs-build",{endpoint:[16],templateId:[1,"template-id"],step:[32],pdfUrl:[32],template:[32]}]]],["verdocs-field-checkbox",[[0,"verdocs-field-checkbox",{field:[16],option:[2],disabled:[4],done:[4],roleindex:[2],editable:[4],moveable:[4],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-date",[[0,"verdocs-field-date",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],containerId:[32],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-radio-button",[[0,"verdocs-field-radio-button",{field:[16],option:[2],disabled:[4],done:[4],roleindex:[2],editable:[4],moveable:[4],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-textarea",[[0,"verdocs-field-textarea",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-textbox",[[0,"verdocs-field-textbox",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-timestamp",[[0,"verdocs-field-timestamp",{field:[16],disabled:[4],editable:[4],moveable:[4],done:[4],roleindex:[2],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],showCancel:[4,"show-cancel"]}]]],["verdocs-sign",[[0,"verdocs-sign",{envelopeId:[1,"envelope-id"],roleId:[1,"role-id"],inviteCode:[1,"invite-code"],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",[[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",[[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",[[0,"verdocs-template-name",{endpoint:[16],templateId:[1,"template-id"],name:[32],dirty:[32],loading:[32]}]]],["verdocs-auth",[[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",[[0,"verdocs-search",{endpoint:[16]}]]],["verdocs-send",[[0,"verdocs-send",{endpoint:[16],templateId:[1,"template-id"],containerId:[32],rolesAtLevel:[32],showPickerForId:[32],sessionContacts:[32],rolesCompleted:[32],reset:[64]}]]],["verdocs-template-visibility",[[0,"verdocs-template-visibility",{endpoint:[16],templateId:[1,"template-id"],dirty:[32],loading:[32],personal:[32],public:[32]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{draggingOver:[32],decodedFiles:[32]}]]],["verdocs-field-attachment",[[0,"verdocs-field-attachment",{field:[16],disabled:[4],roleIndex:[2,"role-index"],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-toggle-button",[[0,"verdocs-toggle-button",{active:[4],icon:[1],label:[1],size:[1],_active:[32]}]]],["verdocs-floating-menu_3",[[0,"verdocs-floating-menu",{options:[16]}],[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]}],[0,"verdocs-toolbar-icon",{text:[1],icon:[1],placement:[1],containerId:[32]}]]],["verdocs-preview",[[0,"verdocs-preview",{endpoint:[16],templateId:[1,"template-id"]}]]],["verdocs-template-attachments",[[0,"verdocs-template-attachments",{endpoint:[16],templateId:[1,"template-id"],loading:[32]}]]],["verdocs-envelope-sidebar",[[0,"verdocs-envelope-sidebar",{endpoint:[16],envelopeId:[1,"envelope-id"],activeTab:[32],panelOpen:[32]}]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],response:[32]}]]],["verdocs-field-dropdown",[[0,"verdocs-field-dropdown",{field:[16],disabled:[4],roleindex:[2],focusField:[64],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-field-payment",[[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],roleindex:[2],preparedMessage:[32],signatureUrl:[32],showSettingsPanel:[64],hideSettingsPanel:[64]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{organization:[16]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{selected:[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],envelope:[16],isOpen:[32],recipientStatusIcons:[32],containerId:[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{template:[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{tags:[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{options:[16],theme:[1],selectedOption:[32]}]]],["verdocs-button",[[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["verdocs-checkbox_4",[[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-initial-dialog",[[0,"verdocs-initial-dialog",{initials:[1],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{name:[1],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["verdocs-document-page_2",[[0,"verdocs-document-page",{pageImageUri:[1,"page-image-uri"],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]}],[0,"verdocs-dropdown",{options:[16],open:[32]}]]],["verdocs-view",[[0,"verdocs-view",{endpoint:[16],envelopeId:[1,"envelope-id"]}]]],["verdocs-contact-picker",[[0,"verdocs-contact-picker",{endpoint:[16],templateRole:[16],contactSuggestions:[16],name:[32],email:[32],phone:[32],message:[32],showSuggestions:[32],showMessage:[32],delegator:[32]}]]],["verdocs-loader",[[0,"verdocs-loader"]]],["verdocs-template-create_2",[[0,"verdocs-template-fields",{endpoint:[16],templateId:[1,"template-id"],placing:[32],selectedRoleName:[32],rerender:[32]}],[0,"verdocs-template-create",{endpoint:[16],file:[32],creating:[32]}]]],["verdocs-radio-button",[[0,"verdocs-radio-button",{checked:[4],name:[1],value:[1],disabled:[4]}]]],["verdocs-button-panel_3",[[0,"verdocs-template-field-properties",{endpoint:[16],templateId:[1,"template-id"],fieldName:[1,"field-name"],dirty:[32],loading:[32],type:[32],name:[32],roleName:[32],required:[32],placeholder:[32],defaultValue:[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]}]]],["verdocs-template-role-properties_2",[[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-quick-functions_3",[[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]}]]]],e)}));
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
3
|
+
import { IDocumentPageInfo, IPageLayer } from '../../../utils/Types';
|
|
4
|
+
/**
|
|
5
|
+
* Represents one document page. This is primarily a layout container used to coordinate positions of
|
|
6
|
+
* page-related layers such as the page itself, signature fields, etc. It is not intended to be used
|
|
7
|
+
* on its own as an individual component.
|
|
8
|
+
*/
|
|
9
|
+
export declare class VerdocsTemplateDocumentPage {
|
|
10
|
+
container: HTMLElement;
|
|
11
|
+
private resizeObserver;
|
|
12
|
+
/**
|
|
13
|
+
* The endpoint to load from.
|
|
14
|
+
*/
|
|
15
|
+
endpoint: VerdocsEndpoint;
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the template the document is for.
|
|
18
|
+
*/
|
|
19
|
+
templateId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ID of the document to display.
|
|
22
|
+
*/
|
|
23
|
+
documentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The page number being rendered. (Reminder: page numbers are 1-based.)
|
|
26
|
+
*/
|
|
27
|
+
pageNumber: number;
|
|
28
|
+
/**
|
|
29
|
+
* The "virtual" width of the page canvas. Defaults to 612 which at 72dpi is 8.5" wide. This is used to compute
|
|
30
|
+
* the aspect ratio of the final rendered element when scaling up/down.
|
|
31
|
+
*/
|
|
32
|
+
virtualWidth: number;
|
|
33
|
+
/**
|
|
34
|
+
* The "virtual" height of the page canvas. Defaults to 792 which at 72dpi is 11" tall. This is used to compute
|
|
35
|
+
* the aspect ratio of the final rendered element when scaling up/down.
|
|
36
|
+
*/
|
|
37
|
+
virtualHeight: number;
|
|
38
|
+
/**
|
|
39
|
+
* The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.
|
|
40
|
+
* The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.
|
|
41
|
+
* if `pages` was ['page', 'fields'] the structure will be:
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
* <div id="verdocs-document-page-ker2fr1p9">
|
|
45
|
+
* <div id="verdocs-document-page-ker2fr1p9-page"></div>
|
|
46
|
+
* <div id="verdocs-document-page-ker2fr1p9-fields"></div>
|
|
47
|
+
* </div>
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
layers: IPageLayer[];
|
|
51
|
+
/**
|
|
52
|
+
* Fired when a page has been rendered. This is also fired when the page is resized.
|
|
53
|
+
*/
|
|
54
|
+
pageRendered: EventEmitter<IDocumentPageInfo>;
|
|
55
|
+
containerId: string;
|
|
56
|
+
renderedWidth: number;
|
|
57
|
+
renderedHeight: number;
|
|
58
|
+
naturalWidth: number;
|
|
59
|
+
naturalHeight: number;
|
|
60
|
+
aspectRatio: number;
|
|
61
|
+
skipFirstNotification: boolean;
|
|
62
|
+
pageDisplayUri: string;
|
|
63
|
+
componentWillLoad(): Promise<void>;
|
|
64
|
+
componentDidLoad(): void;
|
|
65
|
+
disconnectedCallback(): void;
|
|
66
|
+
notifyRenderedSize(): void;
|
|
67
|
+
render(): any;
|
|
68
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
3
|
-
import { ITemplateField } from '@verdocs/js-sdk/Templates/Types';
|
|
4
3
|
import { SDKError } from '../../../utils/errors';
|
|
5
4
|
/**
|
|
6
5
|
* Display a template preview experience. This will display the template's attached
|
|
@@ -22,7 +21,6 @@ export declare class VerdocsPreview {
|
|
|
22
21
|
*/
|
|
23
22
|
sdkError: EventEmitter<SDKError>;
|
|
24
23
|
componentDidLoad(): Promise<void>;
|
|
25
|
-
handleFieldChange(field: ITemplateField, e: any, optionId?: string): Promise<void>;
|
|
26
24
|
handlePageRendered(e: any): void;
|
|
27
25
|
render(): any;
|
|
28
26
|
}
|
|
@@ -713,6 +713,36 @@ export namespace Components {
|
|
|
713
713
|
*/
|
|
714
714
|
"endpoint": VerdocsEndpoint;
|
|
715
715
|
}
|
|
716
|
+
interface VerdocsTemplateDocumentPage {
|
|
717
|
+
/**
|
|
718
|
+
* The ID of the document to display.
|
|
719
|
+
*/
|
|
720
|
+
"documentId": string;
|
|
721
|
+
/**
|
|
722
|
+
* The endpoint to load from.
|
|
723
|
+
*/
|
|
724
|
+
"endpoint": VerdocsEndpoint;
|
|
725
|
+
/**
|
|
726
|
+
* The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer. The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g. if `pages` was ['page', 'fields'] the structure will be: ``` <div id="verdocs-document-page-ker2fr1p9"> <div id="verdocs-document-page-ker2fr1p9-page"></div> <div id="verdocs-document-page-ker2fr1p9-fields"></div> </div> ```
|
|
727
|
+
*/
|
|
728
|
+
"layers": IPageLayer[];
|
|
729
|
+
/**
|
|
730
|
+
* The page number being rendered. (Reminder: page numbers are 1-based.)
|
|
731
|
+
*/
|
|
732
|
+
"pageNumber": number;
|
|
733
|
+
/**
|
|
734
|
+
* The ID of the template the document is for.
|
|
735
|
+
*/
|
|
736
|
+
"templateId": string;
|
|
737
|
+
/**
|
|
738
|
+
* The "virtual" height of the page canvas. Defaults to 792 which at 72dpi is 11" tall. This is used to compute the aspect ratio of the final rendered element when scaling up/down.
|
|
739
|
+
*/
|
|
740
|
+
"virtualHeight": number;
|
|
741
|
+
/**
|
|
742
|
+
* The "virtual" width of the page canvas. Defaults to 612 which at 72dpi is 8.5" wide. This is used to compute the aspect ratio of the final rendered element when scaling up/down.
|
|
743
|
+
*/
|
|
744
|
+
"virtualWidth": number;
|
|
745
|
+
}
|
|
716
746
|
interface VerdocsTemplateFieldProperties {
|
|
717
747
|
/**
|
|
718
748
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
@@ -1027,6 +1057,10 @@ export interface VerdocsTemplateCreateCustomEvent<T> extends CustomEvent<T> {
|
|
|
1027
1057
|
detail: T;
|
|
1028
1058
|
target: HTMLVerdocsTemplateCreateElement;
|
|
1029
1059
|
}
|
|
1060
|
+
export interface VerdocsTemplateDocumentPageCustomEvent<T> extends CustomEvent<T> {
|
|
1061
|
+
detail: T;
|
|
1062
|
+
target: HTMLVerdocsTemplateDocumentPageElement;
|
|
1063
|
+
}
|
|
1030
1064
|
export interface VerdocsTemplateFieldPropertiesCustomEvent<T> extends CustomEvent<T> {
|
|
1031
1065
|
detail: T;
|
|
1032
1066
|
target: HTMLVerdocsTemplateFieldPropertiesElement;
|
|
@@ -1334,6 +1368,12 @@ declare global {
|
|
|
1334
1368
|
prototype: HTMLVerdocsTemplateCreateElement;
|
|
1335
1369
|
new (): HTMLVerdocsTemplateCreateElement;
|
|
1336
1370
|
};
|
|
1371
|
+
interface HTMLVerdocsTemplateDocumentPageElement extends Components.VerdocsTemplateDocumentPage, HTMLStencilElement {
|
|
1372
|
+
}
|
|
1373
|
+
var HTMLVerdocsTemplateDocumentPageElement: {
|
|
1374
|
+
prototype: HTMLVerdocsTemplateDocumentPageElement;
|
|
1375
|
+
new (): HTMLVerdocsTemplateDocumentPageElement;
|
|
1376
|
+
};
|
|
1337
1377
|
interface HTMLVerdocsTemplateFieldPropertiesElement extends Components.VerdocsTemplateFieldProperties, HTMLStencilElement {
|
|
1338
1378
|
}
|
|
1339
1379
|
var HTMLVerdocsTemplateFieldPropertiesElement: {
|
|
@@ -1474,6 +1514,7 @@ declare global {
|
|
|
1474
1514
|
"verdocs-template-attachments": HTMLVerdocsTemplateAttachmentsElement;
|
|
1475
1515
|
"verdocs-template-card": HTMLVerdocsTemplateCardElement;
|
|
1476
1516
|
"verdocs-template-create": HTMLVerdocsTemplateCreateElement;
|
|
1517
|
+
"verdocs-template-document-page": HTMLVerdocsTemplateDocumentPageElement;
|
|
1477
1518
|
"verdocs-template-field-properties": HTMLVerdocsTemplateFieldPropertiesElement;
|
|
1478
1519
|
"verdocs-template-fields": HTMLVerdocsTemplateFieldsElement;
|
|
1479
1520
|
"verdocs-template-name": HTMLVerdocsTemplateNameElement;
|
|
@@ -2376,6 +2417,40 @@ declare namespace LocalJSX {
|
|
|
2376
2417
|
*/
|
|
2377
2418
|
"onSdkError"?: (event: VerdocsTemplateCreateCustomEvent<SDKError>) => void;
|
|
2378
2419
|
}
|
|
2420
|
+
interface VerdocsTemplateDocumentPage {
|
|
2421
|
+
/**
|
|
2422
|
+
* The ID of the document to display.
|
|
2423
|
+
*/
|
|
2424
|
+
"documentId"?: string;
|
|
2425
|
+
/**
|
|
2426
|
+
* The endpoint to load from.
|
|
2427
|
+
*/
|
|
2428
|
+
"endpoint"?: VerdocsEndpoint;
|
|
2429
|
+
/**
|
|
2430
|
+
* The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer. The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g. if `pages` was ['page', 'fields'] the structure will be: ``` <div id="verdocs-document-page-ker2fr1p9"> <div id="verdocs-document-page-ker2fr1p9-page"></div> <div id="verdocs-document-page-ker2fr1p9-fields"></div> </div> ```
|
|
2431
|
+
*/
|
|
2432
|
+
"layers"?: IPageLayer[];
|
|
2433
|
+
/**
|
|
2434
|
+
* Fired when a page has been rendered. This is also fired when the page is resized.
|
|
2435
|
+
*/
|
|
2436
|
+
"onPageRendered"?: (event: VerdocsTemplateDocumentPageCustomEvent<IDocumentPageInfo>) => void;
|
|
2437
|
+
/**
|
|
2438
|
+
* The page number being rendered. (Reminder: page numbers are 1-based.)
|
|
2439
|
+
*/
|
|
2440
|
+
"pageNumber"?: number;
|
|
2441
|
+
/**
|
|
2442
|
+
* The ID of the template the document is for.
|
|
2443
|
+
*/
|
|
2444
|
+
"templateId"?: string;
|
|
2445
|
+
/**
|
|
2446
|
+
* The "virtual" height of the page canvas. Defaults to 792 which at 72dpi is 11" tall. This is used to compute the aspect ratio of the final rendered element when scaling up/down.
|
|
2447
|
+
*/
|
|
2448
|
+
"virtualHeight"?: number;
|
|
2449
|
+
/**
|
|
2450
|
+
* The "virtual" width of the page canvas. Defaults to 612 which at 72dpi is 8.5" wide. This is used to compute the aspect ratio of the final rendered element when scaling up/down.
|
|
2451
|
+
*/
|
|
2452
|
+
"virtualWidth"?: number;
|
|
2453
|
+
}
|
|
2379
2454
|
interface VerdocsTemplateFieldProperties {
|
|
2380
2455
|
/**
|
|
2381
2456
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
@@ -2737,6 +2812,7 @@ declare namespace LocalJSX {
|
|
|
2737
2812
|
"verdocs-template-attachments": VerdocsTemplateAttachments;
|
|
2738
2813
|
"verdocs-template-card": VerdocsTemplateCard;
|
|
2739
2814
|
"verdocs-template-create": VerdocsTemplateCreate;
|
|
2815
|
+
"verdocs-template-document-page": VerdocsTemplateDocumentPage;
|
|
2740
2816
|
"verdocs-template-field-properties": VerdocsTemplateFieldProperties;
|
|
2741
2817
|
"verdocs-template-fields": VerdocsTemplateFields;
|
|
2742
2818
|
"verdocs-template-name": VerdocsTemplateName;
|
|
@@ -2802,6 +2878,7 @@ declare module "@stencil/core" {
|
|
|
2802
2878
|
"verdocs-template-attachments": LocalJSX.VerdocsTemplateAttachments & JSXBase.HTMLAttributes<HTMLVerdocsTemplateAttachmentsElement>;
|
|
2803
2879
|
"verdocs-template-card": LocalJSX.VerdocsTemplateCard & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCardElement>;
|
|
2804
2880
|
"verdocs-template-create": LocalJSX.VerdocsTemplateCreate & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCreateElement>;
|
|
2881
|
+
"verdocs-template-document-page": LocalJSX.VerdocsTemplateDocumentPage & JSXBase.HTMLAttributes<HTMLVerdocsTemplateDocumentPageElement>;
|
|
2805
2882
|
"verdocs-template-field-properties": LocalJSX.VerdocsTemplateFieldProperties & JSXBase.HTMLAttributes<HTMLVerdocsTemplateFieldPropertiesElement>;
|
|
2806
2883
|
"verdocs-template-fields": LocalJSX.VerdocsTemplateFields & JSXBase.HTMLAttributes<HTMLVerdocsTemplateFieldsElement>;
|
|
2807
2884
|
"verdocs-template-name": LocalJSX.VerdocsTemplateName & JSXBase.HTMLAttributes<HTMLVerdocsTemplateNameElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as s,H as i}from"./p-ff1278ed.js";import{g as o}from"./p-6de76553.js";import{g as r}from"./p-25fa36d7.js";import{s as n}from"./p-
|
|
1
|
+
import{r as t,c as e,h as s,H as i}from"./p-ff1278ed.js";import{g as o}from"./p-6de76553.js";import{g as r}from"./p-25fa36d7.js";import{s as n}from"./p-3d4b187a.js";import{f as l}from"./p-ab01f71e.js";import"./p-388b771c.js";import"./p-21603661.js";import"./p-aa124212.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const a=class{constructor(s){t(this,s),this.settingsChanged=e(this,"settingsChanged",7),this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0}async focusField(){this.el.focus()}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.hidePanel&&t.hidePanel(),n.updateCount++}render(){var t,e,a;const d=r(this.field),p=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:d.disabled)&&void 0!==e&&e,c=this.field.rgba||o(this.roleindex),m=d.value||(new Date).toISOString(),h=new Date(m),v=l(h,"MMM d, y");return this.done?s(i,{class:{done:this.done}},v):s(i,{class:{required:null===(a=this.field)||void 0===a?void 0:a.required,disabled:p},style:{backgroundColor:c}},s("input",{type:"text",placeholder:null==d?void 0:d.placeholder,tabIndex:null==d?void 0:d.order,value:v,disabled:!0,ref:t=>this.el=t}),this.editable&&s("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},s("h6",null,"Field Settings"),s("verdocs-template-field-properties",{templateId:n.templateId,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var t;return null===(t=this.settingsChanged)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()}})))}};a.style='verdocs-field-timestamp{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:150px;height:15px;display:block;font-size:10px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0.5}verdocs-field-timestamp.done{opacity:1}verdocs-field-timestamp input{-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:10px;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-timestamp input.hide{display:none}verdocs-field-timestamp.required{border:1px solid #cc0000}verdocs-field-timestamp.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-timestamp verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-timestamp verdocs-button-panel[data-active],verdocs-field-timestamp verdocs-button-panel:hover{opacity:1}verdocs-field-timestamp verdocs-button-panel .icon svg{fill:#333333}verdocs-field-timestamp verdocs-button-panel .icon:hover svg{fill:#000000}';export{a as verdocs_field_timestamp}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register([],(function(n){"use strict";return{execute:function(){var e=undefined&&undefined.__awaiter||function(n,e,t,r){function o(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,a){function u(n){try{c(r.next(n))}catch(n){a(n)}}function i(n){try{c(r["throw"](n))}catch(n){a(n)}}function c(n){n.done?t(n.value):o(n.value).then(u,i)}c((r=r.apply(n,e||[])).next())}))};var t=undefined&&undefined.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,u;return u={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function i(n){return function(e){return c([n,e])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,i[0]&&(t=0)),t)try{if(r=1,o&&(a=i[0]&2?o["return"]:i[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,i[1])).done)return a;if(o=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:t.label++;return{value:i[1],done:false};case 5:t.label++;o=i[1];i=[0];continue;case 7:i=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){t.label=i[1];break}if(i[0]===6&&t.label<a[1]){t.label=a[1];a=i;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(i);break}if(a[2])t.ops.pop();t.trys.pop();continue}i=e.call(n,t)}catch(n){i=[6,n];o=0}finally{r=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var r=n("c",(function(n,e,t,r){var o=new FormData;o.append("document",t,t.name);return n.api.post("/templates/".concat(e,"/documents"),o,{timeout:6e4,onUploadProgress:function(n){var e=n.total||1;var t=n.loaded||0;r===null||r===void 0?void 0:r(Math.floor(t*100/(e||1)),t,e||1)}}).then((function(n){return n.data}))}));var o=n("g",(function(n,r,o,a){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n.api.get("/templates/".concat(r,"/documents/").concat(o,"/pages/").concat(a,"/image")).then((function(n){return n.data}))]}))}))}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(s=r[0]&2?o["return"]:r[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;if(o=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){i.label=r[1];break}if(r[0]===6&&i.label<s[1]){i.label=s[1];s=r;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(r);break}if(s[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];o=0}finally{n=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-05eb4fed.system.js","./p-38d00c38.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n["throw"](t))}catch(t){s(t)}}function l(t){t.done?i(t.value):o(t.value).then(r,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(r){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(s=r[0]&2?o["return"]:r[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;if(o=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){i.label=r[1];break}if(r[0]===6&&i.label<s[1]){i.label=s[1];s=r;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(r);break}if(s[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];o=0}finally{n=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-05eb4fed.system.js","./p-38d00c38.system.js","./p-f9f0d3b4.system.js","./p-e764098e.system.js","./p-af2c2f79.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js"],(function(t){"use strict";var e,i,n,o,s,r,a;return{setters:[function(t){e=t.r;i=t.c;n=t.h;o=t.H},function(t){s=t.g},function(t){r=t.g},function(t){a=t.s},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var l='verdocs-field-initial{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:83px;height:36px;display:block;font-size:11px;letter-spacing:0.3px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-initial.disabled{opacity:0.5}verdocs-field-initial.done{border:none;opacity:1}verdocs-field-initial img{display:block;max-width:100%;max-height:100%}verdocs-field-initial button{-webkit-box-sizing:border-box;box-sizing:border-box;border:none;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-initial button.hide{display:none}verdocs-field-initial.required{border:1px solid #cc0000}verdocs-field-initial.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-initial verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-initial verdocs-button-panel[data-active],verdocs-field-initial verdocs-button-panel:hover{opacity:1}verdocs-field-initial verdocs-button-panel .icon svg{fill:#333333}verdocs-field-initial verdocs-button-panel .icon:hover svg{fill:#000000}';var d='<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>';var c=t("verdocs_field_initial",function(){function t(t){e(this,t);this.adopt=i(this,"adopt",7);this.cancel=i(this,"cancel",7);this.fieldChange=i(this,"fieldChange",7);this.settingsChanged=i(this,"settingsChanged",7);this.settingsPress=i(this,"settingsPress",7);this.field=null;this.disabled=false;this.initials="";this.editable=false;this.moveable=false;this.done=false;this.roleindex=0;this.tempInitials=""}t.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.handleShow();return[2]}))}))};t.prototype.hideDialog=function(){var t;(t=this.dialog)===null||t===void 0?void 0:t.remove();this.dialog=null};t.prototype.handleAdopt=function(t){var e;console.log("[INITIAL] Adopted initials");this.tempInitials=t.detail;(e=this.fieldChange)===null||e===void 0?void 0:e.emit(this.tempInitials);this.hideDialog()};t.prototype.handleShow=function(){var t=this;this.dialog=document.createElement("verdocs-initial-dialog");this.dialog.setAttribute("initials",this.initials);this.dialog.setAttribute("roleindex",this.roleindex);this.dialog.addEventListener("cancel",(function(){return t.hideDialog()}));this.dialog.addEventListener("next",(function(e){return t.handleAdopt(e)}));document.body.append(this.dialog)};t.prototype.showSettingsPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=document.getElementById("verdocs-settings-panel-".concat(this.field.name));if(t&&t.showPanel){t.showPanel()}return[2]}))}))};t.prototype.hideSettingsPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=document.getElementById("verdocs-settings-panel-".concat(this.field.name));if(t&&t.hidePanel){t.hidePanel()}a.updateCount++;return[2]}))}))};t.prototype.render=function(){var t=this;var e,i;var l=r(this.field);var c=l.base64||this.tempInitials;var u=(i=(e=this.disabled)!==null&&e!==void 0?e:l.disabled)!==null&&i!==void 0?i:false;var f=this.field["rgba"]||s(this.roleindex);if(this.done){return n(o,{class:{done:this.done}},c&&n("img",{src:c,alt:"Initials"}))}return n(o,{class:{required:l.required,disabled:u},style:{backgroundColor:f}},c?n("img",{src:c,alt:"Initials"}):n("button",{class:{},onClick:function(){return!u&&t.handleShow()}},"Initials"),this.editable&&n("verdocs-button-panel",{icon:d,id:"verdocs-settings-panel-".concat(this.field.name)},n("h6",null,"Field Settings"),n("verdocs-template-field-properties",{templateId:a.templateId,fieldName:this.field.name,onClose:function(){return t.hideSettingsPanel()},onDelete:function(){var e;(e=t.settingsChanged)===null||e===void 0?void 0:e.emit({fieldName:t.field.name});return t.hideSettingsPanel()},onSettingsChanged:function(e){var i;(i=t.settingsChanged)===null||i===void 0?void 0:i.emit(e.detail);return t.hideSettingsPanel()}})))};return t}());c.style=l}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as s}from"./p-ff1278ed.js";import{u as o,d as l}from"./p-ffe60abd.js";import{V as r,T as n}from"./p-2d4712ea.js";import{s as a}from"./p-3cb8a7f4.js";import{l as d}from"./p-ad6cc9f4.js";import{S as p}from"./p-7a1b2643.js";import{u as c}from"./p-b28ef4bb.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const h=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.delete=t(this,"delete",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.roleName="",this.sender=n.EVERYONE,this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.fullName="",this.email="",this.phone="",this.allowDelegation=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE ROLE PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE ROLE PROPERTIES] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE ROLE PROPERTIES] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE ROLE PROPERTIES] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}const s=a.template.roles.find((e=>e.name===this.roleName));s&&(this.name=s.name,this.type=s.type,this.fullName=s.full_name,this.email=s.email,this.phone=s.phone,this.allowDelegation=s.delegator,console.log("Got role",s))}catch(e){console.log("[TEMPLATE ROLE PROPERTIES] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleCancel(e){var t;e.stopPropagation(),this.name=a.template.name,this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,o(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.fullName,email:this.email,phone:this.phone,delegator:this.allowDelegation}).then((e=>{var t;console.log("Update result",e),this.saving=!1,this.dirty=!1,a.template.roles.forEach((e=>{e.name===this.roleName&&(e.name=this.name,e.type=this.type,e.full_name=this.fullName,e.email=this.email,e.phone=this.phone,e.delegator=this.allowDelegation)})),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("Uopdate error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&l(this.endpoint,this.templateId,this.roleName).then((e=>{var t;console.log("Role deleted",e),a.template.roles=[...a.template.roles.filter((e=>e.name!==this.roleName))],null===(t=this.delete)||void 0===t||t.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("Deletion error",e)}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleCancel(e)},i("div",{class:"dialog"},i("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},i("verdocs-text-input",{id:"verdocs-recipient-name",label:"Role Name",value:this.name,autocomplete:"off",helpText:"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Template Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"Type:"),i("verdocs-select-input",{value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),i("verdocs-help-icon",{text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),i("verdocs-text-input",{id:"verdocs-recipient-email",label:"Full Name",value:this.fullName,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.fullName=e.target.value,this.dirty=!0}}),i("verdocs-text-input",{id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),i("verdocs-text-input",{id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"May Delegate:"),i("div",{class:"checkbox-wrapper"},i("verdocs-checkbox",{checked:this.allowDelegation,onInput:e=>{this.allowDelegation=e.target.checked,this.dirty=!0}})),i("verdocs-help-icon",{text:"If enabled, this recipient may delegate their actions to another individual."})),i("div",{class:"buttons"},i("button",{class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),i("div",{style:{flex:"1"}}),i("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),i("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};h.style='verdocs-template-role-properties{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}';const m=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.sender=n.EVERYONE,this.saving=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE SENDER] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE SENDER] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE SENDER] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}this.sender=a.template.sender,console.log("s",this.sender)}catch(e){console.log("[TEMPLATE SENDER] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,c(this.endpoint,this.templateId,{sender:e}).then((t=>{console.log("Update result",t),a.template.sender=e,this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},i("div",{class:"dialog"},i("div",{class:"options"},i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE,checked:this.sender===n.EVERYONE,onInput:()=>this.handleSelectSetting(n.EVERYONE)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web"),i("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE_AS_CREATOR,checked:this.sender===n.EVERYONE_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.EVERYONE_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web as me"),i("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER,checked:this.sender===n.ORGANIZATION_MEMBER,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.sender===n.ORGANIZATION_MEMBER_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization as me"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.CREATOR,checked:this.sender===n.CREATOR,onInput:()=>this.handleSelectSetting(n.CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Me"),i("verdocs-help-icon",{text:"Only I can use this template."})))),i("div",{class:"buttons"},i("verdocs-button",{label:"Close",onClick:()=>this.handleClose()})))))}};m.style='verdocs-template-sender{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_template_role_properties,m as verdocs_template_sender}
|
|
1
|
+
import{r as e,c as t,h as i,H as s}from"./p-ff1278ed.js";import{u as o,d as l}from"./p-8027431e.js";import{V as r,T as n}from"./p-4e49fb12.js";import{s as a}from"./p-3d4b187a.js";import{l as d}from"./p-671036fb.js";import{S as p}from"./p-7a1b2643.js";import{u as c}from"./p-b28ef4bb.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const h=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.delete=t(this,"delete",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.roleName="",this.sender=n.EVERYONE,this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.fullName="",this.email="",this.phone="",this.allowDelegation=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE ROLE PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE ROLE PROPERTIES] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE ROLE PROPERTIES] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE ROLE PROPERTIES] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}const s=a.template.roles.find((e=>e.name===this.roleName));s&&(this.name=s.name,this.type=s.type,this.fullName=s.full_name,this.email=s.email,this.phone=s.phone,this.allowDelegation=s.delegator,console.log("Got role",s))}catch(e){console.log("[TEMPLATE ROLE PROPERTIES] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleCancel(e){var t;e.stopPropagation(),this.name=a.template.name,this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,o(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.fullName,email:this.email,phone:this.phone,delegator:this.allowDelegation}).then((e=>{var t;console.log("Update result",e),this.saving=!1,this.dirty=!1,a.template.roles.forEach((e=>{e.name===this.roleName&&(e.name=this.name,e.type=this.type,e.full_name=this.fullName,e.email=this.email,e.phone=this.phone,e.delegator=this.allowDelegation)})),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("Uopdate error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&l(this.endpoint,this.templateId,this.roleName).then((e=>{var t;console.log("Role deleted",e),a.template.roles=[...a.template.roles.filter((e=>e.name!==this.roleName))],null===(t=this.delete)||void 0===t||t.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("Deletion error",e)}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleCancel(e)},i("div",{class:"dialog"},i("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},i("verdocs-text-input",{id:"verdocs-recipient-name",label:"Role Name",value:this.name,autocomplete:"off",helpText:"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Template Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"Type:"),i("verdocs-select-input",{value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),i("verdocs-help-icon",{text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),i("verdocs-text-input",{id:"verdocs-recipient-email",label:"Full Name",value:this.fullName,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.fullName=e.target.value,this.dirty=!0}}),i("verdocs-text-input",{id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),i("verdocs-text-input",{id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),i("div",{class:"row"},i("div",{class:"input-label"},"May Delegate:"),i("div",{class:"checkbox-wrapper"},i("verdocs-checkbox",{checked:this.allowDelegation,onInput:e=>{this.allowDelegation=e.target.checked,this.dirty=!0}})),i("verdocs-help-icon",{text:"If enabled, this recipient may delegate their actions to another individual."})),i("div",{class:"buttons"},i("button",{class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),i("div",{style:{flex:"1"}}),i("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),i("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};h.style='verdocs-template-role-properties{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}';const m=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.sender=n.EVERYONE,this.saving=!1}async componentWillLoad(){var e,t,i,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[TEMPLATE SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[TEMPLATE SENDER] Unable to start builder session, must be authenticated");try{console.log(`[TEMPLATE SENDER] Loading template ${this.templateId}`,this.endpoint.session),await d(this.endpoint,this.templateId)}catch(s){console.log("[TEMPLATE SENDER] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new p(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}this.sender=a.template.sender,console.log("s",this.sender)}catch(e){console.log("[TEMPLATE SENDER] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new p(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(l=e.response)||void 0===l?void 0:l.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,c(this.endpoint,this.templateId,{sender:e}).then((t=>{console.log("Update result",t),a.template.sender=e,this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return i(s,null,i("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},i("div",{class:"dialog"},i("div",{class:"options"},i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE,checked:this.sender===n.EVERYONE,onInput:()=>this.handleSelectSetting(n.EVERYONE)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web"),i("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE_AS_CREATOR,checked:this.sender===n.EVERYONE_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.EVERYONE_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web as me"),i("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER,checked:this.sender===n.ORGANIZATION_MEMBER,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.sender===n.ORGANIZATION_MEMBER_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER_AS_CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization as me"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:n.CREATOR,checked:this.sender===n.CREATOR,onInput:()=>this.handleSelectSetting(n.CREATOR)}),i("div",{class:"description"},i("div",{class:"name"},"Me"),i("verdocs-help-icon",{text:"Only I can use this template."})))),i("div",{class:"buttons"},i("verdocs-button",{label:"Close",onClick:()=>this.handleClose()})))))}};m.style='verdocs-template-sender{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_template_role_properties,m as verdocs_template_sender}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function s(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):s(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,s&&(i=o[0]&2?s["return"]:o[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;if(s=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;s=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function s(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):s(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,s&&(i=o[0]&2?s["return"]:o[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;if(s=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;s=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-4f63fae0.system.js","./p-f9f0d3b4.system.js","./p-6e3daf5a.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js","./p-69912cbf.system.js"],(function(e){"use strict";var t,r,n,s,i,o,a,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;s=e.H},function(e){i=e.V},function(e){o=e.s},function(e){a=e.l},function(e){l=e.S},function(){},function(){},function(){},function(){}],execute:function(){var d=function(e,t,r){return e.api.post("/templates/".concat(t,"/reminder/"),r).then((function(e){return e.data}))};var c=function(e,t,r,n){return e.api.put("/templates/".concat(t,"/reminder/").concat(r),n).then((function(e){return e.data}))};var u=function(e,t,r){return e.api.delete("/templates/".concat(t,"/reminder/").concat(r)).then((function(e){return e.data}))};var m='verdocs-template-reminders{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-reminders.loading{min-height:300px;position:relative;display:block}verdocs-template-reminders.empty{display:none}verdocs-template-reminders form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-reminders form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-reminders form label{font-size:16px;font-weight:500;margin:0 0 6px 0;color:#33364b}verdocs-template-reminders form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-reminders form input:focus{outline:none}verdocs-template-reminders form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-reminders form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px}verdocs-template-reminders form .input-row verdocs-text-input input{text-align:center}verdocs-template-reminders form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-reminders .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-moz-placeholder{color:#aaaaaa}verdocs-template-reminders :-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::placeholder{color:#aaaaaa}';var p=e("verdocs_template_reminders",function(){function e(e){t(this,e);this.close=r(this,"close",7);this.sdkError=r(this,"sdkError",7);this.endpoint=i.getDefault();this.templateId="";this.showPlanBlocker=false;this.sendReminders=false;this.firstReminderDays="1";this.reminderDays="1";this.dirty=false;this.loading=true}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,2,,3]);this.endpoint.loadSession();return[4,a(this.endpoint,this.templateId)];case 1:s.sent();this.loading=false;this.sendReminders=!!o.template.reminder_id;this.dirty=false;return[3,3];case 2:n=s.sent();console.log("[TEMPLATE REMINDERS] Error loading template",n);this.loading=false;(e=this.sdkError)===null||e===void 0?void 0:e.emit(new l(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(r=n.response)===null||r===void 0?void 0:r.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.sendReminders=!!o.template.reminder_id;this.dirty=false;(t=this.close)===null||t===void 0?void 0:t.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:e.stopPropagation();if(!this.sendReminders)return[3,5];r={setup_time:864e5*+this.firstReminderDays,interval_time:864e5*+this.reminderDays};if(!!o.template.reminder_id)return[3,2];return[4,d(this.endpoint,this.templateId,r)];case 1:n.sent();return[3,4];case 2:return[4,c(this.endpoint,this.templateId,o.template.reminder_id,r)];case 3:n.sent();n.label=4;case 4:return[3,7];case 5:return[4,u(this.endpoint,this.templateId,o.template.reminder_id)];case 6:n.sent();n.label=7;case 7:this.dirty=false;(t=this.close)===null||t===void 0?void 0:t.emit();return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return n(s,null,n("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(!this.endpoint.session||!o.template){return n(s,{class:"empty"})}return n(s,null,n("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("h5",null,"Reminders"),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-send-reminders"},"Send Automatic Reminders"),n("verdocs-checkbox",{id:"verdocs-send-reminders",name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:function(t){e.showPlanBlocker=true;t.target.checked=false}})),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-first-reminder-days"},"Days Before First Reminder"),n("verdocs-text-input",{id:"verdocs-first-reminder-days",type:"number",value:this.firstReminderDays,onInput:function(t){return e.firstReminderDays=t.target.value},disabled:!this.sendReminders})),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-days-between-reminders"},"Days Between Reminders"),n("verdocs-text-input",{id:"verdocs-days-between-reminders",type:"number",value:this.reminderDays,onInput:function(t){return e.reminderDays=t.target.value},disabled:!this.sendReminders})),n("div",{class:"buttons"},n("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))),this.showPlanBlocker&&n("verdocs-ok-dialog",{heading:"Upgrade to access this feature",message:"Please upgrade your plan to access this feature.",onNext:function(){return e.showPlanBlocker=false}}))};return e}());p.style=m}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,o,n){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function a(t){try{c(n.next(t))}catch(t){r(t)}}function s(t){try{c(n["throw"](t))}catch(t){r(t)}}function c(t){t.done?o(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,i,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t];i=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-0522edd2.system.js","./p-4f63fae0.system.js","./p-38d00c38.system.js","./p-e12b7fbc.system.js","./p-af2c2f79.system.js","./p-e764098e.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js"],(function(t){"use strict";var e,o,n,i,r,a,s,c,l;return{setters:[function(t){e=t.r;o=t.c;n=t.h;i=t.a;r=t.H},function(t){a=t.g},function(t){s=t.V},function(t){c=t.t},function(t){l=t.c},function(){},function(){},function(){},function(){}],execute:function(){var p="verdocs-floating-menu{display:none}#verdocs-floating-menu{position:absolute;width:56px;height:56px;display:-ms-flexbox;display:flex;-ms-flex:0 0 fit-content;flex:0 0 fit-content}#verdocs-floating-menu:not(.force-closed):hover{height:500px}#verdocs-floating-menu:not(.force-closed):hover .trigger{-webkit-box-shadow:0 10px 25px #4c56cb;box-shadow:0 10px 25px #4c56cb;-webkit-transform:translatey(2px);transform:translatey(2px);-webkit-transition:all 0.3s;transition:all 0.3s}#verdocs-floating-menu:not(.force-closed):hover .options{display:-ms-flexbox;display:flex}#verdocs-floating-menu:not(.force-closed):hover .options .option{-webkit-animation:vfm-appear 0.1s forwards 0.2s;animation:vfm-appear 0.1s forwards 0.2s}#verdocs-floating-menu .trigger{position:absolute;width:56px;height:56px;background:#654dcb;bottom:0;border-radius:50%;left:0;right:0;margin:auto;color:white;line-height:52px;text-align:center;font-size:44px;z-index:100;-webkit-box-shadow:0 10px 25px -5px #4c56cb;box-shadow:0 10px 25px -5px #4c56cb;cursor:pointer;-webkit-transition:all 0.3s;transition:all 0.3s}#verdocs-floating-menu .options{width:56px;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 fit-content;flex:0 0 fit-content;position:absolute;bottom:70px;display:none}#verdocs-floating-menu .option{background:#654dcb;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;width:36px;height:36px;margin:5px auto;color:white;font-weight:500;text-align:center;line-height:36px;opacity:0}#verdocs-floating-menu verdocs-toolbar-icon .icon{display:-ms-flexbox;display:flex}#verdocs-floating-menu verdocs-toolbar-icon .icon svg{fill:#ffffff}@-webkit-keyframes vfm-appear{0%{opacity:0}30%{-webkit-transform:scale(0.4);transform:scale(0.4);opacity:0.3}70%{-webkit-transform:scale(1.2);transform:scale(1.2);opacity:0.6}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes vfm-appear{0%{opacity:0}30%{-webkit-transform:scale(0.4);transform:scale(0.4);opacity:0.3}70%{-webkit-transform:scale(1.2);transform:scale(1.2);opacity:0.6}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}";var d=function(t){var e=/(auto|scroll)/;var o=function(t,e){if(t.parentNode===null){return e}return o(t.parentNode,e.concat([t]))};var n=function(t,e){return getComputedStyle(t,null).getPropertyValue(e)};var i=function(t){return n(t,"overflow")+n(t,"overflow-y")+n(t,"overflow-x")};var r=function(t){return e.test(i(t))};var a=function(t){if(!(t instanceof HTMLElement||t instanceof SVGElement)){return}var e=o(t.parentNode,[]);for(var n=0;n<e.length;n+=1){if(r(e[n])){return e[n]}}return document.scrollingElement||document.documentElement};return a(t)};var u=t("verdocs_floating_menu",function(){function t(t){e(this,t);this.optionSelected=o(this,"optionSelected",7);this.menuContainer=null;this.scrollParent=null;this.scrollParentParent=null;this.options=[]}t.prototype.componentDidLoad=function(){this.menuContainer=document.createElement("div");this.menuContainer.id="verdocs-floating-menu";var t=document.createElement("div");t.className="trigger";t.innerText="+";this.menuContainer.append(t);t=document.createElement("div");t.className="options";this.menuContainer.append(t);var e=this.handleSelect.bind(this);this.options.forEach((function(o){var n=document.createElement("div");n.className="option";n.addEventListener("click",(function(){return e(o)}));t.append(n);var i=document.createElement("verdocs-toolbar-icon");i.setAttribute("icon",o.icon);i.setAttribute("text",o.tooltip);i.setAttribute("placement","left");n.append(i)}));document.body.append(this.menuContainer);this.scrollParent=d(this.el);if(this.scrollParent){this.scrollParentParent=this.scrollParent.parentElement;this.repositionTrigger(this.scrollParent)}};t.prototype.disconnectedCallback=function(){var t;(t=this.menuContainer)===null||t===void 0?void 0:t.remove()};t.prototype.handleSelect=function(t){var e;(e=this.optionSelected)===null||e===void 0?void 0:e.emit(t);var o=document.getElementById("verdocs-floating-menu");if(o){o.className="force-closed";setTimeout((function(){o.className=""}),100)}};t.prototype.repositionTrigger=function(t){var e=t.parentElement;if(e){var o=e.getBoundingClientRect();var n=document.getElementById("verdocs-floating-menu");if(n){n.style.bottom="".concat(document.documentElement.clientHeight-(document.documentElement.scrollTop+o.bottom)+10,"px");n.style.left="".concat(o.right-80,"px")}}};t.prototype.render=function(){return n(r,null)};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());u.style=p;var h="verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";var f=t("verdocs_template_document_page",function(){function t(t){e(this,t);this.pageRendered=o(this,"pageRendered",7);this.endpoint=s.getDefault();this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri=""}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,a(this.endpoint,this.templateId,this.documentId,this.pageNumber)];case 1:t=e.sent();console.log("pd",t);this.pageDisplayUri=t;return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var o=0,n=e;o<n.length;o++){var i=n[o];var r=i.contentRect.width;t.renderedWidth=r;t.renderedHeight=t.virtualHeight*(r/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return n(r,{id:"".concat(this.containerId),style:{height:e}},this.layers.map((function(o){return o.type==="div"?n("div",{class:"verdocs-template-document-page-layer",id:"".concat(t.containerId,"-").concat(o.name),style:{height:e}}):t.pageDisplayUri?n("img",{class:"verdocs-template-document-page-layer img",id:"".concat(t.containerId,"-").concat(o.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio}}):n("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());f.style=h;var m='verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var v=t("verdocs_toolbar_icon",function(){function t(t){e(this,t);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=l(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,e;(t=this.tooltip)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltip)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return n(r,{class:{}},n("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(e){return t.iconEl=e}}),n("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(e){return t.tooltip=e}},this.text,n("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());v.style=m}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):r(e.value).then(s,a)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,r&&(n=s[0]&2?r["return"]:s[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;if(r=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];r=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-69912cbf.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):r(e.value).then(s,a)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,r&&(n=s[0]&2?r["return"]:s[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;if(r=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];r=0}finally{o=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-69912cbf.system.js","./p-4f63fae0.system.js","./p-187b20b7.system.js","./p-f9f0d3b4.system.js","./p-af2c2f79.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js"],(function(e){"use strict";var t,i,o,r,n,s,a,l;return{setters:[function(e){t=e.r;i=e.c;o=e.h;r=e.H},function(e){n=e.g},function(e){s=e.V},function(e){a=e.S},function(e){l=e.s},function(){},function(){},function(){}],execute:function(){var p='verdocs-template-properties{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-properties form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form h5{font-size:14px;font-weight:400;margin:0 0 6px 0}verdocs-template-properties form .row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form fieldset{width:440px;border:none;max-width:100%;margin:0 0 20px 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding:20px 20px 10px 20px;background-color:#ffffff;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-template-properties form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-properties form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-properties form input:focus{outline:none}verdocs-template-properties form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-properties form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-properties form .input-row verdocs-text-input input{text-align:center}verdocs-template-properties form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-properties form .radio-row{display:-ms-flexbox;display:flex;position:relative;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties form .radio-row verdocs-radio-button{display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px}verdocs-template-properties form .radio-row label{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-properties form .radio-row label .title{font-size:16px;font-weight:500}verdocs-template-properties form .radio-row label .description{font-size:14px;font-weight:400}verdocs-template-properties .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-properties .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-properties ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-moz-placeholder{color:#aaaaaa}verdocs-template-properties :-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-properties ::placeholder{color:#aaaaaa}';var c=e("verdocs_template_properties",function(){function e(e){t(this,e);this.cancel=i(this,"cancel",7);this.next=i(this,"next",7);this.sdkError=i(this,"sdkError",7);this.endpoint=s.getDefault();this.templateId="";this.template=null;this.name="";this.visibility="";this.sendReminders=false;this.firstReminderDays="1";this.reminderDays="1"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,r;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,2,,3]);this.endpoint.loadSession();console.log("[PROPERTIES] Loading template ".concat(this.templateId));return[4,n(this.endpoint,this.templateId)];case 1:o=s.sent();if(!o){console.log("[PREVIEW] Unable to load template");return[2]}console.log("[PROPERTIES] Got template",o);this.template=o;l.template=o;this.name=o.name;this.sendReminders=o.reminder_id!==null;return[3,3];case 2:r=s.sent();console.log("[PROPERTIES] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new a(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(i=r.response)===null||i===void 0?void 0:i.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.cancel)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();(t=this.next)===null||t===void 0?void 0:t.emit({name:this.name,firstReminderDays:+this.firstReminderDays,reminderDays:+this.reminderDays,sendReminders:this.sendReminders})};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return o(r,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return o("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("h5",null,"Template Name"),o("fieldset",null,o("verdocs-text-input",{value:this.name,autocomplete:"off",onInput:function(t){return e.name=t.target.value}})),o("h5",null,"Reminders"),o("fieldset",null,o("div",{class:"input-row"},o("label",null,"Send Automatic Reminders"),o("verdocs-checkbox",{name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:function(t){return e.sendReminders=t.target.checked}})),o("div",{class:"input-row"},o("label",null,"Days Before First Reminder"),o("verdocs-text-input",{value:this.firstReminderDays,onInput:function(t){return e.firstReminderDays=t.target.value}})),o("div",{class:"input-row"},o("label",null,"Days Between Reminders"),o("verdocs-text-input",{value:this.reminderDays,onInput:function(t){return e.reminderDays=t.target.value}}))),o("h5",null,"Template Visibility"),o("fieldset",null,o("div",{class:"radio-row"},o("verdocs-radio-button",{name:"visibility",checked:true,value:"private",onChange:function(){return e.visibility="private"}}),o("label",{htmlFor:"verdocs-radio-button-visibility-private"},o("div",{class:"title"},"Private"),o("div",{class:"description"},"Only you can share and use this template"))),o("div",{class:"radio-row"},o("verdocs-radio-button",{name:"visibility",checked:true,value:"shared",onChange:function(){return e.visibility="shared"}}),o("label",{htmlFor:"verdocs-radio-button-visibility-shared"},o("div",{class:"title"},"Shared to your organization"),o("div",{class:"description"},"Give access to your organization to share and use this template"))),o("div",{class:"radio-row"},o("verdocs-radio-button",{name:"visibility",checked:true,value:"shared_public",onChange:function(){return e.visibility="shared_public"}}),o("label",{htmlFor:"verdocs-radio-button-visibility-shared_public"},o("div",{class:"title"},"Shared to your organization and Public"),o("div",{class:"description"},"Give access to your organization to share this template, and anyone on the Web can find and use this template"))),o("div",{class:"radio-row"},o("verdocs-radio-button",{name:"visibility",checked:this.visibility==="public",value:"public",onChange:function(){return e.visibility="public"}}),o("label",{htmlFor:"verdocs-radio-button-visibility-public"},o("div",{class:"title"},"Public"),o("div",{class:"description"},"Anyone on the Web can find and use this template")))),o("div",{class:"buttons"},o("div",{class:"flex-fill"}),o("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{label:"OK",size:"small",onClick:function(t){return e.handleSubmit(t)}})))};return e}());c.style=p}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,r){function l(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?t(e.value):i(e.value).then(l,a)}s((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(n){return s([e,n])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(t)try{if(o=1,i&&(r=l[0]&2?i["return"]:l[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;if(i=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;i=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){t.label=l[1];break}if(l[0]===6&&t.label<r[1]){t.label=r[1];r=l;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(l);break}if(r[2])t.ops.pop();t.trys.pop();continue}l=n.call(e,t)}catch(e){l=[6,e];i=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,t){if(t||arguments.length===2)for(var o=0,i=n.length,r;o<i;o++){if(r||!(o in n)){if(!r)r=Array.prototype.slice.call(n,0,o);r[o]=n[o]}}return e.concat(r||Array.prototype.slice.call(n))};System.register(["./p-97329951.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,r){function l(e){try{s(o.next(e))}catch(e){r(e)}}function a(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?t(e.value):i(e.value).then(l,a)}s((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(e){return function(n){return s([e,n])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(t)try{if(o=1,i&&(r=l[0]&2?i["return"]:l[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;if(i=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;i=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){t.label=l[1];break}if(l[0]===6&&t.label<r[1]){t.label=r[1];r=l;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(l);break}if(r[2])t.ops.pop();t.trys.pop();continue}l=n.call(e,t)}catch(e){l=[6,e];i=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,t){if(t||arguments.length===2)for(var o=0,i=n.length,r;o<i;o++){if(r||!(o in n)){if(!r)r=Array.prototype.slice.call(n,0,o);r[o]=n[o]}}return e.concat(r||Array.prototype.slice.call(n))};System.register(["./p-97329951.system.js","./p-4f63fae0.system.js","./p-38d00c38.system.js","./p-6f53c098.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js","./p-e764098e.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js","./p-0f6da8c7.system.js","./p-69912cbf.system.js"],(function(e){"use strict";var n,t,o,i,r,l,a,s,d,c,p,u,f;return{setters:[function(e){n=e.r;t=e.c;o=e.h;i=e.H;r=e.F;l=e.a},function(e){a=e.V},function(e){s=e.i;d=e.j;c=e.s},function(e){p=e.g;u=e.s},function(e){f=e.S},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v='verdocs-view{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-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .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-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;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;-ms-flex-pack:center;justify-content:center}verdocs-view .document .inner{width:100%;max-width:1028px}';var h=e("verdocs_view",function(){function e(e){n(this,e);this.sdkError=t(this,"sdkError",7);this.envelopeUpdated=t(this,"envelopeUpdated",7);this.endpoint=a.getDefault();this.envelopeId=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession()};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t,o;return __generator(this,(function(i){switch(i.label){case 0:if(!this.envelopeId){console.error("[VIEW] Missing required envelopeId");return[2]}i.label=1;case 1:i.trys.push([1,3,,4]);return[4,p(this.endpoint,this.envelopeId)];case 2:i.sent();return[3,4];case 3:o=i.sent();(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(o.message,(n=o.response)===null||n===void 0?void 0:n.status,(t=o.response)===null||t===void 0?void 0:t.data));return[3,4];case 4:return[2]}}))}))};e.prototype.handlePageRendered=function(e){var n=e.detail;console.log("[VIEW] Page rendered",n)};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var n;var t=this;return __generator(this,(function(o){switch(e.detail.id){case"print":window.print();(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:u.envelope,event:"printed"});break;case"download-attachments":c(this.endpoint,u.envelope,u.envelope.envelope_document_id).then((function(){var e;(e=t.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:t.endpoint,envelope:u.envelope,event:"downloaded"})})).catch((function(e){console.log("Error downloading PDF",e)}));break;case"download-certificate":d(this.endpoint,u.envelope,u.envelope.certificate_document_id).then((function(){var e;(e=t.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:t.endpoint,envelope:u.envelope,event:"downloaded"})})).catch((function(e){console.log("Error downloading PDF",e)}));break;case"download-all":s(this.endpoint,[u.envelope]).then((function(){var e;(e=t.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:t.endpoint,envelope:u.envelope,event:"downloaded"})})).catch((function(e){console.log("Error downloading Zip",e)}));break}return[2]}))}))};e.prototype.render=function(){var e=this;var n;console.log("[VIEW] Rendering",u.error,u.loading,u.envelope);if(u.loading||!u.envelope){return o(i,null,o("verdocs-loader",null))}if(u.error){return o(i,null,o("div",null,u.error))}var t=[{id:"print",label:"Print"}];var l=u.envelope.documents.length>0;var a=!!u.envelope.certificate;if(l||a){t.push({label:""})}if(l){t.push({id:"download-attachments",label:"Download Documents(s)"})}if(a){t.push({id:"download-certificate",label:"Download Certificate"})}if(l&&a){t.push({id:"download-all",label:"Download All Files"})}return o(i,{"data-r":u.updateCount},o("div",{class:"header"},o(r,null,o("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),o("div",{class:"title"},u.envelope.name),o("div",{style:{flex:"1"}}),o("div",{style:{marginLeft:"10px"}}),o("verdocs-dropdown",{options:t,onOptionSelected:function(n){return e.handleOptionSelected(n)}}))),o("div",{class:"document"},(((n=u.envelope)===null||n===void 0?void 0:n.documents)||[]).filter((function(e){return e.type!=="certificate"})).map((function(n){var t=__spreadArray([],(n===null||n===void 0?void 0:n.pages)||[],true);t.sort((function(e,n){return e.sequence-n.sequence}));return o(r,null,t.map((function(n){return o("verdocs-document-page",{pageImageUri:n.display_uri,virtualWidth:612,virtualHeight:792,pageNumber:n.sequence,onPageRendered:function(n){return e.handlePageRendered(n)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))))};Object.defineProperty(e.prototype,"component",{get:function(){return l(this)},enumerable:false,configurable:true});return e}());h.style=v}}}));
|