@verdocs/web-sdk 1.11.2 → 1.11.4
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-7a63d848.js} +2 -2
- 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 +3 -2
- package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -2
- package/dist/cjs/{verdocs-floating-menu_2.cjs.entry.js → verdocs-floating-menu.cjs.entry.js} +0 -45
- 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 +36 -50
- package/dist/cjs/verdocs-template-document-page.cjs.entry.js +103 -0
- 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-toolbar-icon.cjs.entry.js +51 -0
- 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/embeds/verdocs-preview/verdocs-preview.stories.js +2 -1
- package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +16 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +16 -1
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +15 -0
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +16 -1
- package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +15 -0
- package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.js +16 -1
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +16 -1
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +16 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +16 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +16 -1
- 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.css +16 -2
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +47 -15
- 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/Templates.js +1 -1
- package/dist/collection/utils/templateStore.js +1 -0
- package/dist/components/TemplateDocuments.js +75 -0
- package/dist/components/Templates.js +1 -1
- 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 +10 -16
- package/dist/components/verdocs-field-checkbox.js +2 -1
- package/dist/components/verdocs-field-date.js +2 -1
- package/dist/components/verdocs-field-dropdown.js +1 -0
- package/dist/components/verdocs-field-initial.js +2 -1
- package/dist/components/verdocs-field-payment.js +1 -0
- package/dist/components/verdocs-field-radio-button.js +2 -1
- package/dist/components/verdocs-field-signature.js +2 -1
- package/dist/components/verdocs-field-textarea.js +2 -1
- package/dist/components/verdocs-field-textbox.js +2 -1
- package/dist/components/verdocs-field-timestamp.js +2 -1
- package/dist/components/verdocs-floating-menu.js +123 -1
- 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 +37 -28
- package/dist/components/verdocs-template-recipients.js +31 -18
- package/dist/components/verdocs-template-role-properties2.js +1 -1
- package/dist/docs.json +284 -30
- 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-e288e682.js} +2 -2
- 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 +3 -2
- package/dist/esm/verdocs-field-date.entry.js +3 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +2 -1
- package/dist/esm/verdocs-field-initial.entry.js +3 -2
- package/dist/esm/verdocs-field-payment.entry.js +2 -1
- package/dist/esm/verdocs-field-radio-button.entry.js +3 -2
- package/dist/esm/verdocs-field-signature.entry.js +3 -2
- package/dist/esm/verdocs-field-textarea.entry.js +3 -2
- package/dist/esm/verdocs-field-textbox.entry.js +3 -2
- package/dist/esm/verdocs-field-timestamp.entry.js +3 -2
- package/dist/{components/verdocs-floating-menu2.js → esm/verdocs-floating-menu.entry.js} +8 -31
- 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 +35 -49
- package/dist/esm/verdocs-template-document-page.entry.js +99 -0
- 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-toolbar-icon.entry.js +47 -0
- 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-e288e682.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.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-document-page.entry.js +1 -0
- 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-toolbar-icon.entry.js +1 -0
- 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/fields/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-payment/verdocs-field-payment.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +6 -0
- package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +6 -0
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +6 -0
- package/dist/types/components.d.ts +125 -0
- package/dist/verdocs-web-sdk/p-0522edd2.system.js +1 -0
- package/dist/verdocs-web-sdk/p-07f254ef.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0be7122f.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-011eedf8.entry.js → p-0c3d9831.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-11161d87.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-17d70035.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-bde3d383.system.entry.js → p-1872ef41.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-8b20b903.system.entry.js → p-190394ec.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1aa26bbb.entry.js +1 -0
- 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-1e710eb7.system.entry.js → p-23255004.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-23842282.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-5fda1fe8.system.entry.js → p-2699042e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-2ae1b96d.js +1 -0
- package/dist/verdocs-web-sdk/{p-9576a08f.system.entry.js → p-2d9225e9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3046d912.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-36fe1557.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-37146bc0.system.entry.js +1 -0
- 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-442b0dca.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-479d7e1f.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-49a1c436.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-4f63fae0.system.js +1 -0
- package/dist/verdocs-web-sdk/p-50a2bf7b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-608de9cf.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-61dbd1ed.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b537b400.entry.js → p-623e2beb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cf27d3ce.system.entry.js → p-66384a4c.system.entry.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-7d8de5d6.system.entry.js → p-68c780bd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5a4b4373.entry.js → p-71cce0f0.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-0e5274d0.system.entry.js → p-7c2ce3ba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-45a4da16.system.js → p-7e58e898.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e079768b.entry.js → p-7f0e6545.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8012b6c0.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8027431e.js +1 -0
- package/dist/verdocs-web-sdk/{p-8644dd0f.system.entry.js → p-80345c52.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0c393c2b.system.entry.js → p-8175a794.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8229e6df.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-e91b174d.system.entry.js → p-86bd8c38.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-8f61a9ee.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-91df3bb9.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1fe9560f.system.entry.js → p-939190da.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-127a569c.system.entry.js → p-96f838ea.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0d7db907.system.entry.js → p-98ce58df.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-70ad917b.entry.js → p-99942818.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-93b857b6.system.entry.js → p-99c75b7d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8e5065af.entry.js → p-9ba92e4f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-08270eb7.system.entry.js → p-a0d235a3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a3a9fcba.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e65ec569.system.entry.js → p-a5237a8c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac3a9c3c.entry.js → p-aa7f6376.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-41122f38.system.entry.js → p-ab500634.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f4f44d6f.system.entry.js → p-b6e6f993.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-0fc8ae0a.entry.js → p-d0bac2b8.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-79514d21.system.entry.js → p-d2af1be8.system.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-dd4589d9.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-fc208e71.entry.js → p-deed17c8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-63c55bc3.entry.js → p-e40012b6.entry.js} +1 -1
- 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-f12e0150.entry.js +1 -0
- 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-fb69732f.entry.js +1 -0
- 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/verdocs-floating-menu_2.entry.js +0 -146
- 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-19d13aca.system.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-4086a15a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-42a82518.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-56196fad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5dc58d34.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-68eb0ad8.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-ad6cc9f4.js +0 -1
- package/dist/verdocs-web-sdk/p-b225dcfb.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-d5836d39.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d78594bb.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d946b1b6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e53a7969.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ec913a97.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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-f78d163d.js';
|
|
2
|
+
|
|
3
|
+
const verdocsLoaderCss = "verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";
|
|
4
|
+
|
|
5
|
+
const VerdocsLoader = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return h(Host, null);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
VerdocsLoader.style = verdocsLoaderCss;
|
|
14
|
+
|
|
15
|
+
export { VerdocsLoader as verdocs_loader };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
3
|
import { r as renderDocumentField, a as getRoleIndex } from './utils-8065a62d.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
4
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './Envelopes-eb3eef02.js';
|
|
@@ -38,9 +38,6 @@ const VerdocsPreview = class {
|
|
|
38
38
|
(_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
async handleFieldChange(field, e, optionId) {
|
|
42
|
-
console.log('[PREVIEW] handleFieldChange', field, e, optionId);
|
|
43
|
-
}
|
|
44
41
|
handlePageRendered(e) {
|
|
45
42
|
const pageInfo = e.detail;
|
|
46
43
|
console.log('[PREVIEW] Page rendered', pageInfo);
|
|
@@ -57,7 +54,7 @@ const VerdocsPreview = class {
|
|
|
57
54
|
pages.sort((a, b) => a.sequence - b.sequence);
|
|
58
55
|
return (h(Host, null, pages.map(page => {
|
|
59
56
|
console.log('rendering page', page);
|
|
60
|
-
return (h("verdocs-document-page", {
|
|
57
|
+
return (h("verdocs-template-document-page", { templateId: page.template_id, documentId: page.document_id, pageNumber: page.sequence, virtualWidth: 612, virtualHeight: 792, onPageRendered: e => this.handlePageRendered(e), layers: [
|
|
61
58
|
{ name: 'page', type: 'canvas' },
|
|
62
59
|
{ name: 'controls', type: 'div' },
|
|
63
60
|
] }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
3
|
import { a as getTemplates } from './Templates-8e4ab976.js';
|
|
4
4
|
import './Token-54690789.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
3
|
import './Token-54690789.js';
|
|
4
4
|
|
|
5
5
|
const verdocsSearchCss = "verdocs-search{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
3
|
import { i as isValidEmail, a as isValidPhone } from './Validators-f110bae2.js';
|
|
4
4
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
5
|
-
import { s as state } from './templateStore-
|
|
6
|
-
import { l as loadTemplate } from './Templates-
|
|
5
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
6
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
7
7
|
import { a as getRoleIndex } from './utils-8065a62d.js';
|
|
8
8
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
9
9
|
import './Token-54690789.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-f78d163d.js';
|
|
2
2
|
import { c as getSigningSession, u as updateEnvelopeField, d as updateEnvelopeFieldSignature, e as updateEnvelopeFieldInitials } from './Envelopes-eb3eef02.js';
|
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
4
|
import { a as isValidPhone, i as isValidEmail } from './Validators-f110bae2.js';
|
|
5
5
|
import { f as fullNameToInitials } from './Primitives-054bc6e5.js';
|
|
6
6
|
import { s as saveAttachment, u as updateDocumentFieldValue, a as getRoleIndex, r as renderDocumentField, b as getFieldId } from './utils-8065a62d.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
3
|
-
import { s as state } from './templateStore-
|
|
4
|
-
import { l as loadTemplate } from './Templates-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
4
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { c as createTemplate, g as getTemplate } from './Templates-8e4ab976.js';
|
|
3
|
-
import {
|
|
3
|
+
import { c as createTemplateDocument } from './TemplateDocuments-1214b04d.js';
|
|
4
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
5
6
|
import { i as interact } from './interact.min-e472871a.js';
|
|
6
7
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
|
7
8
|
import { a as getRoleIndex, r as renderDocumentField, e as updateCssTransform, f as defaultWidth, h as defaultHeight } from './utils-8065a62d.js';
|
|
8
|
-
import { s as state } from './templateStore-
|
|
9
|
-
import { l as loadTemplate } from './Templates-
|
|
9
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
10
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
10
11
|
import './Token-54690789.js';
|
|
11
12
|
import './Envelopes-eb3eef02.js';
|
|
12
13
|
import './Files-70a192df.js';
|
|
@@ -14,36 +15,7 @@ import './index-d264c496.js';
|
|
|
14
15
|
import './index-fd7b8a34.js';
|
|
15
16
|
import './Primitives-054bc6e5.js';
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
* A TemplateDocument represents a PDF or other attachment in a Template.
|
|
19
|
-
*
|
|
20
|
-
* @module
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* Create a Document for a particular Template.
|
|
24
|
-
*
|
|
25
|
-
* ```typescript
|
|
26
|
-
* import {TemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
27
|
-
*
|
|
28
|
-
* await TemplateDocument.createDocument((VerdocsEndpoint.getDefault(), templateID, params);
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
var createTemplateDocument = function (endpoint, templateId, file, onUploadProgress) {
|
|
32
|
-
var formData = new FormData();
|
|
33
|
-
formData.append('document', file, file.name);
|
|
34
|
-
return endpoint.api //
|
|
35
|
-
.post("/templates/".concat(templateId, "/documents"), formData, {
|
|
36
|
-
timeout: 60000,
|
|
37
|
-
onUploadProgress: function (event) {
|
|
38
|
-
var total = event.total || 1;
|
|
39
|
-
var loaded = event.loaded || 0;
|
|
40
|
-
onUploadProgress === null || onUploadProgress === void 0 ? void 0 : onUploadProgress(Math.floor((loaded * 100) / (total || 1)), loaded, total || 1);
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
.then(function (r) { return r.data; });
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end;padding:0 0 30px 0}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
18
|
+
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;max-width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end;padding:0 0 30px 0}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
47
19
|
|
|
48
20
|
const unicodeNBSP = ' ';
|
|
49
21
|
const FileIcon = '<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';
|
|
@@ -120,27 +92,29 @@ const VerdocsTemplateCreate = class {
|
|
|
120
92
|
};
|
|
121
93
|
VerdocsTemplateCreate.style = verdocsTemplateCreateCss;
|
|
122
94
|
|
|
123
|
-
const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'
|
|
95
|
+
const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields #verdocs-template-fields-toolbar{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 50px;flex:0 0 50px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;background:#46497d}verdocs-template-fields #verdocs-template-fields-toolbar svg{width:24px;height:24px}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg width='32' height='15' viewBox='0 0 32 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='path-1-inside-1_1401_24' fill='white'%3E%3Cpath d='M0 0H32V15H0V0Z'/%3E%3C/mask%3E%3Cpath d='M0 0H32V15H0V0Z' fill='%234C56CB' fill-opacity='0.1'/%3E%3Cpath d='M0 0V-1H-1V0H0ZM0 15H-1V16H0V15ZM0 1H32V-1H0V1ZM32 14H0V16H32V14ZM1 15V0H-1V15H1Z' fill='%234C56CB' mask='url(%23path-1-inside-1_1401_24)'/%3E%3Cpath d='M3 11.8V8.65H14.15V11.8H3ZM3 6.65V3.5H20.15V6.65H3Z' fill='%234C56CB'/%3E%3Cline x1='31.5' y1='1' x2='31.5' y2='14' stroke='%234C56CB' stroke-opacity='0.32' stroke-dasharray='1 1'/%3E%3C/svg%3E%0A\") 0 14, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 0 14, pointer}";
|
|
124
96
|
|
|
125
|
-
const iconSingleline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';
|
|
126
|
-
const iconMultiline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';
|
|
127
|
-
const iconCheck = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>';
|
|
128
|
-
const iconRadio = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>';
|
|
129
|
-
const iconDatepicker = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>';
|
|
130
|
-
const iconSignature = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';
|
|
131
|
-
const iconInitial = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';
|
|
97
|
+
const iconSingleline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';
|
|
98
|
+
const iconMultiline = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';
|
|
99
|
+
const iconCheck = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>';
|
|
100
|
+
const iconRadio = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>';
|
|
101
|
+
const iconDatepicker = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>';
|
|
102
|
+
const iconSignature = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';
|
|
103
|
+
const iconInitial = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path fill="#ffffff" d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';
|
|
104
|
+
const iconClock = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path fill="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>';
|
|
105
|
+
const iconBarsDown = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" d="M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0l-3.75-3.75M17.25 21L21 17.25" /></svg>';
|
|
132
106
|
const menuOptions = [
|
|
133
107
|
// {id: 'attachment', tooltip: 'Attachment', icon: 'A'},
|
|
134
108
|
{ id: 'checkbox', tooltip: 'Check Box', icon: iconCheck },
|
|
135
109
|
{ id: 'date', tooltip: 'Date', icon: iconDatepicker },
|
|
136
|
-
{ id: 'dropdown', tooltip: 'Dropdown', icon:
|
|
110
|
+
{ id: 'dropdown', tooltip: 'Dropdown', icon: iconBarsDown },
|
|
137
111
|
{ id: 'initial', tooltip: 'Initials', icon: iconInitial },
|
|
138
112
|
// {id: 'payment', tooltip: 'Payment', icon: 'P'},
|
|
139
113
|
{ id: 'radio', tooltip: 'Radio Button', icon: iconRadio },
|
|
140
114
|
{ id: 'signature', tooltip: 'Signature', icon: iconSignature },
|
|
141
115
|
{ id: 'textarea', tooltip: 'Text Area', icon: iconMultiline },
|
|
142
116
|
{ id: 'textbox', tooltip: 'Text Box', icon: iconSingleline },
|
|
143
|
-
{ id: 'timestamp', tooltip: 'Timestamp', icon:
|
|
117
|
+
{ id: 'timestamp', tooltip: 'Timestamp', icon: iconClock },
|
|
144
118
|
];
|
|
145
119
|
const VerdocsTemplateFields = class {
|
|
146
120
|
constructor(hostRef) {
|
|
@@ -153,6 +127,7 @@ const VerdocsTemplateFields = class {
|
|
|
153
127
|
this.cachedPageInfo = {};
|
|
154
128
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
155
129
|
this.templateId = null;
|
|
130
|
+
this.toolbarTargetId = null;
|
|
156
131
|
this.placing = null;
|
|
157
132
|
this.selectedRoleName = '';
|
|
158
133
|
this.rerender = 1;
|
|
@@ -187,6 +162,13 @@ const VerdocsTemplateFields = class {
|
|
|
187
162
|
}
|
|
188
163
|
componentDidRender() {
|
|
189
164
|
interact.dynamicDrop(true);
|
|
165
|
+
const toolbarTarget = this.toolbarTargetId ? document.getElementById(this.toolbarTargetId) : null;
|
|
166
|
+
const toolbarEl = document.getElementById('verdocs-template-fields-toolbar');
|
|
167
|
+
if (toolbarTarget && toolbarEl) {
|
|
168
|
+
console.log('[FIELDS] Moving toolbar');
|
|
169
|
+
toolbarEl.remove();
|
|
170
|
+
toolbarTarget.append(toolbarEl);
|
|
171
|
+
}
|
|
190
172
|
}
|
|
191
173
|
async handleFieldChange(field, e, optionId) {
|
|
192
174
|
console.log('[FIELDS] handleFieldChange', field, e, optionId);
|
|
@@ -201,6 +183,13 @@ const VerdocsTemplateFields = class {
|
|
|
201
183
|
this.rerender++;
|
|
202
184
|
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'updated-field' });
|
|
203
185
|
});
|
|
186
|
+
el.addEventListener('deleted', () => {
|
|
187
|
+
var _a;
|
|
188
|
+
console.log('deleted', this, field);
|
|
189
|
+
el.remove();
|
|
190
|
+
this.rerender++;
|
|
191
|
+
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'updated-field' });
|
|
192
|
+
});
|
|
204
193
|
el.setAttribute('roleindex', roleIndex);
|
|
205
194
|
el.setAttribute('pageNumber', pageInfo.pageNumber);
|
|
206
195
|
el.setAttribute('xScale', pageInfo.xScale);
|
|
@@ -358,15 +347,12 @@ const VerdocsTemplateFields = class {
|
|
|
358
347
|
pages.sort((a, b) => a.sequence - b.sequence);
|
|
359
348
|
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, "data-r": this.rerender, onSubmit: () => {
|
|
360
349
|
console.log('onSubmit');
|
|
361
|
-
} }, h("div", { class: "pages" }, pages.map(page => {
|
|
362
|
-
|
|
363
|
-
return (h("verdocs-document-page", { pageImageUri: page.display_uri, virtualWidth: 612, virtualHeight: 792, onClick: (e) => this.handleClickPage(e, page), pageNumber: page.sequence, onPageRendered: e => this.handlePageRendered(e), layers: [
|
|
350
|
+
} }, h("div", { id: "verdocs-template-fields-toolbar" }, menuOptions.map(option => (h("verdocs-toolbar-icon", { text: option.tooltip, icon: option.icon, onClick: () => (this.placing = option.id) })))), h("div", { class: "pages" }, pages.map(page => {
|
|
351
|
+
return (h("verdocs-template-document-page", { templateId: page.template_id, documentId: page.document_id, pageNumber: page.sequence, virtualWidth: 612, virtualHeight: 792, onClick: (e) => this.handleClickPage(e, page), onPageRendered: e => this.handlePageRendered(e), layers: [
|
|
364
352
|
{ name: 'page', type: 'canvas' },
|
|
365
353
|
{ name: 'controls', type: 'div' },
|
|
366
354
|
] }));
|
|
367
|
-
}))
|
|
368
|
-
this.placing = e.detail.id;
|
|
369
|
-
} })));
|
|
355
|
+
}))));
|
|
370
356
|
}
|
|
371
357
|
};
|
|
372
358
|
VerdocsTemplateFields.style = verdocsTemplateFieldsCss;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-f78d163d.js';
|
|
2
|
+
import { g as getTemplateDocumentPageDisplayUri } from './TemplateDocuments-1214b04d.js';
|
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
|
+
import { t as throttle } from './utils-8065a62d.js';
|
|
5
|
+
import './Token-54690789.js';
|
|
6
|
+
import './Envelopes-eb3eef02.js';
|
|
7
|
+
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
9
|
+
|
|
10
|
+
const verdocsTemplateDocumentPageCss = "verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";
|
|
11
|
+
|
|
12
|
+
const VerdocsTemplateDocumentPage = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
registerInstance(this, hostRef);
|
|
15
|
+
this.pageRendered = createEvent(this, "pageRendered", 7);
|
|
16
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
|
17
|
+
this.templateId = '';
|
|
18
|
+
this.documentId = '';
|
|
19
|
+
this.pageNumber = 1;
|
|
20
|
+
this.virtualWidth = 612;
|
|
21
|
+
this.virtualHeight = 792;
|
|
22
|
+
this.layers = [{ name: 'page', type: 'canvas' }];
|
|
23
|
+
this.containerId = `verdocs-document-page-${Math.random().toString(36).substring(2, 11)}`;
|
|
24
|
+
this.renderedWidth = this.virtualWidth;
|
|
25
|
+
this.renderedHeight = this.virtualHeight;
|
|
26
|
+
this.naturalWidth = this.virtualWidth;
|
|
27
|
+
this.naturalHeight = this.virtualHeight;
|
|
28
|
+
this.aspectRatio = this.virtualWidth / this.virtualHeight;
|
|
29
|
+
this.skipFirstNotification = true;
|
|
30
|
+
this.pageDisplayUri = '';
|
|
31
|
+
}
|
|
32
|
+
async componentWillLoad() {
|
|
33
|
+
const uri = await getTemplateDocumentPageDisplayUri(this.endpoint, this.templateId, this.documentId, this.pageNumber);
|
|
34
|
+
console.log('pd', uri);
|
|
35
|
+
this.pageDisplayUri = uri;
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
this.resizeObserver = new ResizeObserver(throttle(entries => {
|
|
39
|
+
for (const entry of entries) {
|
|
40
|
+
const renderedWidth = entry.contentRect.width;
|
|
41
|
+
this.renderedWidth = renderedWidth;
|
|
42
|
+
this.renderedHeight = this.virtualHeight * (renderedWidth / this.virtualWidth);
|
|
43
|
+
}
|
|
44
|
+
this.notifyRenderedSize();
|
|
45
|
+
}, 100));
|
|
46
|
+
this.resizeObserver.observe(this.container);
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
var _a;
|
|
50
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
51
|
+
}
|
|
52
|
+
// Left here for documentation purposes in case we find an edge case where this isn't true. But we apparently don't need this.
|
|
53
|
+
// When we add the resize observer it will always be triggered at least once so notifying here as well is just a dupe.
|
|
54
|
+
// componentDidRender() {
|
|
55
|
+
// this.notifyRenderedSize();
|
|
56
|
+
// }
|
|
57
|
+
notifyRenderedSize() {
|
|
58
|
+
// We skip one notification because by default we will always get at least two, one when rendering the initial size
|
|
59
|
+
// and a second once we're able to compute the scale size, when the resizeObserver sets renderedWidth/renderedHeight.
|
|
60
|
+
if (this.skipFirstNotification) {
|
|
61
|
+
this.skipFirstNotification = false;
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this.pageRendered.emit({
|
|
65
|
+
// container: this.container,
|
|
66
|
+
containerId: this.containerId,
|
|
67
|
+
pageNumber: this.pageNumber,
|
|
68
|
+
virtualWidth: this.virtualWidth,
|
|
69
|
+
virtualHeight: this.virtualHeight,
|
|
70
|
+
renderedWidth: this.renderedWidth,
|
|
71
|
+
renderedHeight: this.renderedHeight,
|
|
72
|
+
naturalWidth: this.naturalWidth,
|
|
73
|
+
naturalHeight: this.naturalHeight,
|
|
74
|
+
aspectRatio: this.aspectRatio,
|
|
75
|
+
xScale: this.renderedWidth / this.virtualWidth,
|
|
76
|
+
yScale: this.renderedHeight / this.virtualHeight,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
const height = `${this.renderedHeight}px`;
|
|
81
|
+
return (h(Host, { id: `${this.containerId}`, style: { height } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-template-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
|
82
|
+
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
|
83
|
+
// useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
|
|
84
|
+
// Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
|
|
85
|
+
// for a field are based on the responsive Web view the Template editor was seeing. The IMG was scaled down there in the
|
|
86
|
+
// exact same way, so we just honor it. We capture the natural width and height here more as information. Then we use the
|
|
87
|
+
// aspect ratio to adjust the "virtual" height in case the page is not 8.5"x11".
|
|
88
|
+
// TODO: Store this in the DB with each page.
|
|
89
|
+
this.naturalWidth = e.target.naturalWidth;
|
|
90
|
+
this.naturalHeight = e.target.naturalHeight;
|
|
91
|
+
this.aspectRatio = this.naturalWidth / this.naturalHeight;
|
|
92
|
+
this.virtualHeight = this.virtualWidth / this.aspectRatio;
|
|
93
|
+
} })) : (h("div", null)))));
|
|
94
|
+
}
|
|
95
|
+
get container() { return getElement(this); }
|
|
96
|
+
};
|
|
97
|
+
VerdocsTemplateDocumentPage.style = verdocsTemplateDocumentPageCss;
|
|
98
|
+
|
|
99
|
+
export { VerdocsTemplateDocumentPage as verdocs_template_document_page };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { u as updateTemplate } from './Templates-8e4ab976.js';
|
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './index-fd7b8a34.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getTemplate } from './Templates-8e4ab976.js';
|
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
4
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
5
|
-
import { s as state } from './templateStore-
|
|
5
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|
|
8
8
|
import './Primitives-054bc6e5.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, a as getElement } from './index-f78d163d.js';
|
|
2
2
|
import { i as interact } from './interact.min-e472871a.js';
|
|
3
|
-
import { u as updateRole, c as createRole } from './Roles-
|
|
4
|
-
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-
|
|
3
|
+
import { u as updateRole, c as createRole } from './Roles-6eb459df.js';
|
|
4
|
+
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-d50a8d28.js';
|
|
5
5
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
6
|
-
import { s as state } from './templateStore-
|
|
7
|
-
import { l as loadTemplate } from './Templates-
|
|
6
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
7
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
8
8
|
import { a as getRoleIndex } from './utils-8065a62d.js';
|
|
9
9
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
10
10
|
import './Token-54690789.js';
|
|
@@ -105,6 +105,7 @@ const VerdocsTemplateRecipients = class {
|
|
|
105
105
|
interact('.dropzone').dropzone({
|
|
106
106
|
overlap: 0.05,
|
|
107
107
|
ondrop: function handleDrop(event) {
|
|
108
|
+
var _a, _b;
|
|
108
109
|
event.target.classList.remove('active');
|
|
109
110
|
// target will be the recipient e.g. <div class="recipient" data-rolename="Buyer" />
|
|
110
111
|
// relatedTarget will be the drop zone, e.g. <div class="dropzone" data-order="2" data-sequence="1" />
|
|
@@ -118,7 +119,7 @@ const VerdocsTemplateRecipients = class {
|
|
|
118
119
|
const roleName = event.relatedTarget.dataset.rolename;
|
|
119
120
|
const targetSequence = +event.target.dataset.sequence;
|
|
120
121
|
const targetOrder = +event.target.dataset.order;
|
|
121
|
-
const changingRole = state.template.roles.find(role => role.name === roleName);
|
|
122
|
+
const changingRole = (_a = state.template) === null || _a === void 0 ? void 0 : _a.roles.find(role => role.name === roleName);
|
|
122
123
|
if (changingRole) {
|
|
123
124
|
// To handle the renumbering, we update the role being moved to the new values, which will be some half-interval e.g.
|
|
124
125
|
// sequence 1.5 order 1. Then we
|
|
@@ -130,7 +131,7 @@ const VerdocsTemplateRecipients = class {
|
|
|
130
131
|
// We have to update ALL the roles to be sure each gets new proper sequence/order numbers assigned.
|
|
131
132
|
// TODO: We could optimize this by tracking "dirty" states and only update the roles that have changed. But it's a LOT more
|
|
132
133
|
// code to do right, and since most workflows will typically only have 2-4 recipients max, it may not be worth it.
|
|
133
|
-
Promise.all(state.template.roles.map(role => updateRole(this.endpoint, this.templateId, role.name, {
|
|
134
|
+
Promise.all((_b = state.template) === null || _b === void 0 ? void 0 : _b.roles.map(role => updateRole(this.endpoint, this.templateId, role.name, {
|
|
134
135
|
sequence: role.sequence,
|
|
135
136
|
order: role.order,
|
|
136
137
|
})))
|
|
@@ -163,13 +164,15 @@ const VerdocsTemplateRecipients = class {
|
|
|
163
164
|
(_a = this.next) === null || _a === void 0 ? void 0 : _a.emit();
|
|
164
165
|
}
|
|
165
166
|
sortTemplateRoles() {
|
|
166
|
-
|
|
167
|
+
var _a;
|
|
168
|
+
(_a = state.template) === null || _a === void 0 ? void 0 : _a.roles.sort((a, b) => {
|
|
167
169
|
return a.sequence === b.sequence ? a.order - b.order : a.sequence - b.sequence;
|
|
168
170
|
});
|
|
169
171
|
}
|
|
170
172
|
extractSequenceNumbers() {
|
|
173
|
+
var _a;
|
|
171
174
|
this.sequences = [];
|
|
172
|
-
state.template.roles.forEach(role => {
|
|
175
|
+
(_a = state.template) === null || _a === void 0 ? void 0 : _a.roles.forEach(role => {
|
|
173
176
|
if (!this.sequences.includes(role.sequence)) {
|
|
174
177
|
this.sequences.push(role.sequence);
|
|
175
178
|
}
|
|
@@ -183,9 +186,8 @@ const VerdocsTemplateRecipients = class {
|
|
|
183
186
|
// If the user dragged an entry from below a row to above it, we end up here like [1,0]. Make sure it's [0,1] for the next operation.
|
|
184
187
|
this.sequences.sort((a, b) => a - b);
|
|
185
188
|
this.sequences.forEach((originalSequence, newSequenceIndex) => {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
.forEach((role, newOrderIndex) => {
|
|
189
|
+
var _a;
|
|
190
|
+
(_a = state.template) === null || _a === void 0 ? void 0 : _a.roles.filter(role => role.sequence === originalSequence).forEach((role, newOrderIndex) => {
|
|
189
191
|
if (!renumbered.includes(role.name)) {
|
|
190
192
|
role.sequence = newSequenceIndex + 1;
|
|
191
193
|
role.order = newOrderIndex + 1;
|
|
@@ -198,12 +200,13 @@ const VerdocsTemplateRecipients = class {
|
|
|
198
200
|
}
|
|
199
201
|
// Look for name conflicts, because they're UGC and can be anything, regardless of order.
|
|
200
202
|
getNextRecipientName() {
|
|
203
|
+
var _a, _b;
|
|
201
204
|
let name = '';
|
|
202
|
-
let nextNumber = state.template.roles.length;
|
|
205
|
+
let nextNumber = (_a = state.template) === null || _a === void 0 ? void 0 : _a.roles.length;
|
|
203
206
|
do {
|
|
204
207
|
nextNumber++;
|
|
205
208
|
name = `Recipient ${nextNumber}`;
|
|
206
|
-
} while (!name || state.template.roles.some(role => role.name === name));
|
|
209
|
+
} while (!name || ((_b = state.template) === null || _b === void 0 ? void 0 : _b.roles.some(role => role.name === name)));
|
|
207
210
|
return name;
|
|
208
211
|
}
|
|
209
212
|
handleAddRole(e, sequence) {
|
|
@@ -264,12 +267,16 @@ const VerdocsTemplateRecipients = class {
|
|
|
264
267
|
if (!this.endpoint.session) {
|
|
265
268
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
266
269
|
}
|
|
270
|
+
if (state.loading || !state.template) {
|
|
271
|
+
return (h(Host, null, h("verdocs-loader", null)));
|
|
272
|
+
}
|
|
267
273
|
const roleNames = (((_a = state.template) === null || _a === void 0 ? void 0 : _a.roles) || []).map(role => role.name);
|
|
274
|
+
console.log('s', this.sequences);
|
|
268
275
|
return (h(Host, null, h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off", "data-r": this.forceRerender }, h("h5", null, "Roles"), h("div", { class: "participants" }, h("div", { class: "left-line" }), h("div", { class: "row" }, h("div", { class: "icon", innerHTML: startIcon }), h("div", { class: "row-recipients" }, h("div", { class: "sender" }, h("span", { class: "label" }, "Sender:"), " ", senderLabels[state.template.sender], ' ', h("div", { class: "settings-button", innerHTML: settingsIcon, onClick: () => (this.showingSenderDialog = true), "aria-role": "button" })))), h("div", { class: "row add-sequence", "data-sequence": 0 }, h("div", { class: "icon", innerHTML: plusIcon }), h("div", { class: "row-recipients" }, h("div", { class: "dropzone", "data-sequence": 0, "data-order": 1 }, "Add Step"))), this.sequences.map(sequence => (h(Fragment, null, h("div", { class: "row" }, h("div", { class: "icon", innerHTML: stepIcon }), h("div", { class: "row-recipients" }, h("div", { class: "dropzone", "data-order": 0.5, "data-sequence": sequence }), state.template.roles
|
|
269
276
|
.filter(role => role.sequence === sequence)
|
|
270
277
|
.map(role => {
|
|
271
278
|
return (h(Fragment, null, h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, "data-rolename": role.name }, h("span", { class: "type-icon", innerHTML: role.type === 'signer' ? iconSigner : role.type === 'cc' ? iconCC : iconApprover }), role.name, " ", h("div", { class: "settings-button", innerHTML: settingsIcon, onClick: () => (this.showingRoleDialog = role.name), "aria-role": "button" })), h("div", { class: "dropzone", "data-order": role.order + 0.5, "data-sequence": sequence })));
|
|
272
|
-
}), h("button", { class: "add-role", innerHTML: plusIcon, onClick: e => this.handleAddRole(e, sequence) }))), h("div", { class: "row add-sequence", "data-sequence": sequence }, h("div", { class: "row-recipients" }, h("div", { class: "icon", innerHTML: plusIcon }), h("div", { class: "dropzone", "data-sequence": sequence + 1, "data-order": 1 }, "Add Step")))))), h("div", { class: "row", "data-sequence": this.sequences.length + 1 }, h("div", { class: "row-recipients" }, h("div", { class: "icon", innerHTML: plusIcon }), h("button", { class: "add-step", innerHTML: plusIcon, onClick: e => this.handleAddStep(e, this.sequences.length + 1) }))), this.sequences.length < 1 && (h(Fragment, null, h("div", { class: "row" }, h("div", { class: "icon", innerHTML: stepIcon }), h("div", { class: "row-recipients" }, h("button", { class: "add-role", innerHTML: plusIcon, onClick: e => this.handleAddRole(e, 1) }))))), h("div", { class: "row" }, h("div", { class: "icon", innerHTML: doneIcon }), h("div", { class: "row-recipients" }, h("div", { class: "complete" }, "Document Complete")))), roleNames.length < 1 && (h("div", { class: "empty" }, "You must add at least one Role before proceeding.", h("br", null), " Click the ", h("span", { innerHTML: plusIcon }), " Add button above to get started.")), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e), disabled: roleNames.length < 1 }))), this.showingRoleDialog && (h("verdocs-template-role-properties", { endpoint: this.endpoint, templateId: this.templateId, roleName: this.showingRoleDialog, onClose: () => {
|
|
279
|
+
}), h("button", { class: "add-role", innerHTML: plusIcon, onClick: e => this.handleAddRole(e, sequence) }))), this.sequences.length > 0 && (h("div", { class: "row add-sequence", "data-sequence": sequence }, h("div", { class: "row-recipients" }, h("div", { class: "icon", innerHTML: plusIcon }), h("div", { class: "dropzone", "data-sequence": sequence + 1, "data-order": 1 }, "Add Step"))))))), h("div", { class: "row", "data-sequence": this.sequences.length + 1 }, h("div", { class: "row-recipients" }, h("div", { class: "icon", innerHTML: plusIcon }), h("button", { class: "add-step", innerHTML: plusIcon, onClick: e => this.handleAddStep(e, this.sequences.length + 1) }))), this.sequences.length < 1 && (h(Fragment, null, h("div", { class: "row" }, h("div", { class: "icon", innerHTML: stepIcon }), h("div", { class: "row-recipients" }, h("button", { class: "add-role", innerHTML: plusIcon, onClick: e => this.handleAddRole(e, 1) }))))), h("div", { class: "row" }, h("div", { class: "icon", innerHTML: doneIcon }), h("div", { class: "row-recipients" }, h("div", { class: "complete" }, "Document Complete")))), roleNames.length < 1 && (h("div", { class: "empty" }, "You must add at least one Role before proceeding.", h("br", null), " Click the ", h("span", { innerHTML: plusIcon }), " Add button above to get started.")), h("div", { class: "buttons" }, h("div", { class: "flex-fill" }), h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "OK", size: "small", onClick: e => this.handleSubmit(e), disabled: roleNames.length < 1 }))), this.showingRoleDialog && (h("verdocs-template-role-properties", { endpoint: this.endpoint, templateId: this.templateId, roleName: this.showingRoleDialog, onClose: () => {
|
|
273
280
|
this.showingRoleDialog = null;
|
|
274
281
|
this.forceRerender++;
|
|
275
282
|
}, onDelete: e => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
3
|
-
import { s as state } from './templateStore-
|
|
4
|
-
import { l as loadTemplate } from './Templates-
|
|
2
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
3
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
4
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { u as updateRole, d as deleteRole } from './Roles-
|
|
3
|
-
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
2
|
+
import { u as updateRole, d as deleteRole } from './Roles-6eb459df.js';
|
|
3
|
+
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import { u as updateTemplate } from './Templates-8e4ab976.js';
|
|
8
8
|
import './Token-54690789.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { u as updateTemplate } from './Templates-8e4ab976.js';
|
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-d50a8d28.js';
|
|
4
|
+
import { s as state } from './templateStore-a7a5149a.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-e288e682.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './index-fd7b8a34.js';
|