@verdocs/web-sdk 1.13.7 → 1.13.11
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/Icons-a11fb3fc.js +84 -0
- package/dist/cjs/TemplateDocuments-e2e0e6b7.js +93 -0
- package/dist/cjs/{TemplateStore-df478971.js → TemplateStore-f934a60e.js} +13 -5
- package/dist/cjs/{index-67233b76.js → index-5e786db9.js} +10 -0
- package/dist/cjs/ipc-test.cjs.entry.js +36 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-build.cjs.entry.js +6 -8
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -2
- 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-file-chooser_2.cjs.entry.js +56 -0
- package/dist/cjs/verdocs-floating-menu.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +228 -0
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/{verdocs-template-document-page.cjs.entry.js → verdocs-template-document-page_2.cjs.entry.js} +49 -54
- package/dist/cjs/{verdocs-template-create_3.cjs.entry.js → verdocs-template-fields_4.cjs.entry.js} +261 -107
- package/dist/cjs/verdocs-template-name.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.css +27 -0
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +93 -0
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.stories.js +10 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +4 -3
- package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +22 -8
- package/dist/collection/components/other/ipctest/ipc-test.css +4 -0
- package/dist/collection/components/other/ipctest/ipc-test.js +79 -0
- package/dist/collection/components/other/ipctest/ipc-test.stories.js +8 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.css +91 -5
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +140 -10
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.js +2 -3
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +2 -2
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.stories.js +2 -3
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +16 -14
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +0 -40
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.stories.js +1 -2
- package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.js +1 -1
- package/dist/collection/components/templates/verdocs-template-properties/verdocs-template-properties.stories.js +1 -1
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.js +1 -2
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +18 -15
- package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +8 -4
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.js +1 -1
- package/dist/collection/utils/Icons.js +73 -0
- package/dist/collection/utils/TemplateStore.js +11 -3
- package/dist/components/Primitives.js +20 -0
- package/dist/components/TemplateDocuments.js +89 -0
- package/dist/components/TemplateStore.js +11 -3
- package/dist/components/VerdocsEndpoint.js +30 -30
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/ipc-test.d.ts +11 -0
- package/dist/components/ipc-test.js +136 -0
- package/dist/components/verdocs-auth.js +1 -1
- package/dist/components/verdocs-build.js +38 -23
- package/dist/components/verdocs-file-chooser.d.ts +11 -0
- package/dist/components/verdocs-file-chooser.js +6 -0
- package/dist/components/verdocs-file-chooser2.js +132 -0
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-sign.js +2 -1
- package/dist/components/verdocs-template-attachments.js +1 -87
- package/dist/components/verdocs-template-attachments2.js +200 -0
- package/dist/components/verdocs-template-create2.js +2 -2
- package/dist/components/verdocs-template-document-page2.js +1 -51
- package/dist/components/verdocs-template-fields2.js +16 -14
- package/dist/components/verdocs-template-name.js +1 -1
- package/dist/components/verdocs-template-properties.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +18 -15
- package/dist/components/verdocs-template-roles2.js +8 -4
- package/dist/components/verdocs-view2.js +2 -20
- package/dist/custom-elements.json +47 -2
- package/dist/docs.json +268 -8
- package/dist/esm/Icons-c29eb0fa.js +75 -0
- package/dist/esm/TemplateDocuments-6fd2f4e2.js +89 -0
- package/dist/esm/{TemplateStore-373c72a8.js → TemplateStore-1a6322b4.js} +13 -5
- package/dist/esm/{index-5260ed60.js → index-9ee0ca9f.js} +10 -0
- package/dist/esm/ipc-test.entry.js +32 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{utils-78a752e0.js → utils-39fef438.js} +1 -1
- package/dist/esm/verdocs-auth.entry.js +3 -3
- package/dist/esm/verdocs-build.entry.js +6 -8
- package/dist/esm/verdocs-button-panel_3.entry.js +3 -3
- package/dist/esm/verdocs-button.entry.js +1 -1
- package/dist/esm/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm/verdocs-dropdown_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -2
- package/dist/esm/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
- package/dist/esm/verdocs-field-date.entry.js +2 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
- package/dist/esm/verdocs-field-initial.entry.js +2 -2
- package/dist/esm/verdocs-field-payment.entry.js +2 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
- package/dist/esm/verdocs-field-signature.entry.js +2 -2
- package/dist/esm/verdocs-field-textarea.entry.js +2 -2
- package/dist/esm/verdocs-field-textbox.entry.js +2 -2
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +51 -0
- package/dist/esm/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +4 -4
- package/dist/esm/verdocs-quick-functions_3.entry.js +2 -2
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +2 -2
- package/dist/esm/verdocs-send.entry.js +4 -4
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm/verdocs-template-attachments_2.entry.js +223 -0
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/{verdocs-template-document-page.entry.js → verdocs-template-document-page_2.entry.js} +49 -55
- package/dist/esm/{verdocs-template-create_3.entry.js → verdocs-template-fields_4.entry.js} +259 -106
- package/dist/esm/verdocs-template-name.entry.js +4 -4
- package/dist/esm/verdocs-template-properties.entry.js +4 -4
- package/dist/esm/verdocs-template-reminders.entry.js +3 -3
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-template-visibility.entry.js +3 -3
- package/dist/esm/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +3 -3
- package/dist/esm/verdocs-web-sdk.js +2 -2
- package/dist/esm-es5/Icons-c29eb0fa.js +1 -0
- package/dist/esm-es5/TemplateDocuments-6fd2f4e2.js +1 -0
- package/dist/esm-es5/TemplateStore-1a6322b4.js +1 -0
- package/dist/esm-es5/{VerdocsEndpoint-4367eb13.js → VerdocsEndpoint-ca592138.js} +1 -1
- package/dist/esm-es5/{index-5260ed60.js → index-9ee0ca9f.js} +1 -1
- package/dist/esm-es5/ipc-test.entry.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-78a752e0.js → utils-39fef438.js} +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-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-file-chooser_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.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-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-fields_4.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-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.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/controls/verdocs-file-chooser/verdocs-file-chooser.d.ts +23 -0
- package/dist/types/components/controls/verdocs-file-chooser/verdocs-file-chooser.stories.d.ts +6 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +3 -2
- package/dist/types/components/embeds/verdocs-build/verdocs-build.d.ts +8 -5
- package/dist/types/components/other/ipctest/ipc-test.d.ts +17 -0
- package/dist/types/components/other/ipctest/ipc-test.stories.d.ts +4 -0
- package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.d.ts +27 -2
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +2 -2
- package/dist/types/components.d.ts +78 -4
- package/dist/types/utils/Icons.d.ts +8 -0
- package/dist/verdocs-web-sdk/p-01a240ac.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-1fc2dcb7.entry.js → p-07715513.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-08305f4e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d4f2c4cd.entry.js → p-09382df0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad6e9a9a.system.entry.js → p-09f756a2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1044c9ea.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-499022e8.entry.js → p-12aac44a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6b693508.system.entry.js → p-18658f1f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7464fd3c.system.entry.js → p-1900bbbb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d1f80bd5.entry.js → p-1a666173.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c2b91d4d.system.entry.js → p-1fe5af0c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-614368ee.system.entry.js → p-204fadd2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d643db3b.entry.js → p-2544faa8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-254b91cf.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3ca6f68d.entry.js → p-263acb59.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5e3893ec.system.entry.js → p-26801979.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fc67ddc9.entry.js → p-27eb5497.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bd8ff2a6.entry.js → p-288103cc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7f13e92e.entry.js → p-2a2ba635.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0464731b.system.entry.js → p-2d31b931.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e59061aa.system.entry.js → p-2d40f2ba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-77a2ec7e.entry.js → p-2d73b96f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1edbfaf5.entry.js → p-2e1b6646.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ebce4300.entry.js → p-2f929364.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9c36aaaa.entry.js → p-31de3afe.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-068e6212.entry.js → p-36c540fa.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1c75e276.entry.js → p-452d6537.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-455d16dc.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-9cbe4bc7.system.entry.js → p-473770b0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1db79af9.system.entry.js → p-47aac035.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c2c49441.js → p-49fb6d62.js} +1 -1
- package/dist/verdocs-web-sdk/{p-527f15bb.system.entry.js → p-4afeb123.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-87f428fb.entry.js → p-4c40cfde.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac61df73.system.entry.js → p-4fdf4196.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-603db817.entry.js → p-4ff16721.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-567a6e7c.js +1 -0
- package/dist/verdocs-web-sdk/{p-798c0134.system.entry.js → p-59d4ad25.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e16ad8fe.entry.js → p-5c55ff7b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6f511c7b.entry.js → p-5cfaf9d6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-895ca90d.system.entry.js → p-5d755377.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-da129971.entry.js → p-5e292135.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5e448806.system.js +1 -0
- package/dist/verdocs-web-sdk/p-637fee9b.js +1 -0
- package/dist/verdocs-web-sdk/{p-34eb8a38.entry.js → p-681c7361.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-438a5bfb.system.entry.js → p-6a26b4fd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6a6c8f99.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-21ad4745.entry.js → p-6c12d567.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a3282274.system.entry.js → p-6e1a4eb1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6e9af353.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-47bba747.entry.js → p-706044e2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-97be89cf.entry.js → p-73995d74.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-60b59333.system.entry.js → p-773ce755.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-756d5c24.entry.js → p-7aeb1f15.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-42fa6b2f.entry.js → p-7c109ef1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1abcf29d.js → p-7f727073.js} +1 -1
- package/dist/verdocs-web-sdk/p-809d389e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f0d1c6bd.system.entry.js → p-86cba33a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-870b157b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-c44fd897.system.js → p-882cf708.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d936d293.system.entry.js → p-8a48f02b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b9c0ae7.entry.js → p-8aa496fb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0f065d24.system.entry.js → p-8c8960a3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-227d07a2.entry.js → p-8d998322.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-658c3ab7.entry.js → p-8e89f2ce.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e352d3f8.system.entry.js → p-8ebf7d74.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-90254335.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-2287f1bc.system.entry.js → p-93b51fba.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-96cfa8a2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-201f27f6.system.js → p-a06e53f9.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-07d80297.entry.js → p-a490803a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e9751ec7.entry.js → p-a4e3a061.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-137664e4.system.entry.js → p-a6da9fa8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71a1576a.system.entry.js → p-a6f2cde3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-60548c5f.entry.js → p-a75f3b9a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1e782b9d.entry.js → p-aabfb02a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ac888bf4.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-1ea3753f.system.entry.js → p-adb73796.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-82854066.entry.js → p-af821140.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-eff8b358.entry.js → p-b29a5587.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a8003a10.system.entry.js → p-b2cb8889.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b310edb5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e035df4b.js → p-b3dfe499.js} +2 -2
- package/dist/verdocs-web-sdk/{p-16f3cd2d.system.entry.js → p-b568ce5d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d714a804.system.entry.js → p-b6c2f196.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b6f6c21e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-37dd3108.system.entry.js → p-b89b5bde.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7ba0c530.system.entry.js → p-beeb7c8a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a5a530fa.entry.js → p-bf4cdcdb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-809947d4.system.entry.js → p-c1099ce1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d595eba2.system.entry.js → p-c47e1d37.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3ef23762.system.entry.js → p-c8a56083.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-cb335fc6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-cf2fdb73.js +1 -0
- package/dist/verdocs-web-sdk/{p-f2f3583f.system.entry.js → p-d3402d72.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-db2b75bc.system.entry.js → p-db31b40c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-db7fb7e4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e20da92f.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-07dac8d8.entry.js → p-e44c2491.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e9c9cdf5.entry.js → p-e604b3b5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a5f3f29c.entry.js → p-e9f5417d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a5970648.system.entry.js → p-eb41c2c8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f201e410.system.entry.js → p-ebd5167e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-ed5afe17.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ec6c0c40.system.entry.js → p-f23e0059.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8a84234f.entry.js → p-f6306a21.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ab6bd525.entry.js → p-f876e71d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78f732f3.system.entry.js → p-f9a490e7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-56bea00a.system.entry.js → p-fbee0760.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aa3e3ffc.system.entry.js → p-fc64e091.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-871407e9.system.js → p-fd374620.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6ea848fe.system.entry.js → p-fe7a023d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/Roles-9b593b95.js +0 -28
- package/dist/cjs/verdocs-progress-bar.cjs.entry.js +0 -23
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +0 -64
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +0 -217
- package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -51
- package/dist/esm/Roles-6eb459df.js +0 -24
- package/dist/esm/verdocs-progress-bar.entry.js +0 -19
- package/dist/esm/verdocs-template-attachments.entry.js +0 -60
- package/dist/esm/verdocs-template-role-properties_2.entry.js +0 -212
- package/dist/esm/verdocs-toolbar-icon.entry.js +0 -47
- package/dist/esm-es5/Roles-6eb459df.js +0 -1
- package/dist/esm-es5/TemplateStore-373c72a8.js +0 -1
- package/dist/esm-es5/verdocs-progress-bar.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-create_3.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-document-page.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +0 -1
- package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0714e785.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-126c0301.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2413519c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-27332125.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2fc46a8b.js +0 -1
- package/dist/verdocs-web-sdk/p-5bb80e03.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-66c74103.system.js +0 -1
- package/dist/verdocs-web-sdk/p-6caf1137.system.js +0 -1
- package/dist/verdocs-web-sdk/p-7e8fe43e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8027431e.js +0 -1
- package/dist/verdocs-web-sdk/p-8229e6df.system.js +0 -1
- package/dist/verdocs-web-sdk/p-82512045.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-86e507c1.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-879e9572.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91f062a8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-920fd6d9.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ba591e02.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bcc9c2d8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bd35fd77.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c9ff6acb.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d28acca1.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d67b2a26.system.entry.js +0 -1
- package/dist/cjs/{VerdocsEndpoint-3e95f87f.js → VerdocsEndpoint-1b1836af.js} +30 -30
- package/dist/esm/{VerdocsEndpoint-4367eb13.js → VerdocsEndpoint-ca592138.js} +30 -30
@@ -1,99 +1,41 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, a as getElement } from './index-
|
2
|
-
import './Types-5f31149e.js';
|
3
|
-
import { c as createTemplate } from './Templates-67172396.js';
|
4
|
-
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-4367eb13.js';
|
5
|
-
import { S as SDKError } from './errors-9b5498c8.js';
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, a as getElement } from './index-9ee0ca9f.js';
|
6
2
|
import { i as interact } from './interact.min-cf83fa88.js';
|
3
|
+
import './Types-5f31149e.js';
|
7
4
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
5
|
+
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-ca592138.js';
|
6
|
+
import { i as integerSequence } from './Primitives-054bc6e5.js';
|
7
|
+
import { a as getRoleIndex, r as renderDocumentField, e as updateCssTransform, f as defaultWidth, h as defaultHeight } from './utils-39fef438.js';
|
8
|
+
import { g as getTemplateStore, a as getRoleNames } from './TemplateStore-1a6322b4.js';
|
9
|
+
import { S as SDKError } from './errors-9b5498c8.js';
|
11
10
|
import { g as getRGBA } from './Colors-1b298092.js';
|
11
|
+
import { u as updateTemplate } from './Templates-67172396.js';
|
12
12
|
import './_commonjsHelpers-5ec8f9b7.js';
|
13
13
|
import './Envelopes-921cd9d0.js';
|
14
14
|
import './Files-70a192df.js';
|
15
15
|
import './index-d264c496.js';
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
var _a;
|
39
|
-
this.file = ((_a = e.target.files) === null || _a === void 0 ? void 0 : _a[0]) || null;
|
40
|
-
console.log('[CREATE] Selected file', this.file);
|
41
|
-
// this.filePath = e.target.files?.[0]?.name;
|
42
|
-
}
|
43
|
-
handleUpload(e) {
|
44
|
-
e.stopPropagation();
|
45
|
-
const fileElem = document.getElementById('verdocs-template-create-file');
|
46
|
-
fileElem.click();
|
47
|
-
}
|
48
|
-
handleCancel(e) {
|
49
|
-
e.stopPropagation();
|
50
|
-
this.exit.emit();
|
51
|
-
}
|
52
|
-
async handleSubmit(e) {
|
53
|
-
var _a, _b, _c, _d;
|
54
|
-
e.stopPropagation();
|
55
|
-
console.log('Submitting');
|
56
|
-
// Should be true if we're here because onClick is only enabled then. We're just guarding this for Typescript.
|
57
|
-
if (!this.file) {
|
58
|
-
return;
|
59
|
-
}
|
60
|
-
this.creating = true;
|
61
|
-
this.progressLabel = 'Uploading...';
|
62
|
-
try {
|
63
|
-
const template = await createTemplate(this.endpoint, { name: this.file.name, documents: [this.file] }, percent => {
|
64
|
-
if (percent >= 99) {
|
65
|
-
this.progressLabel = 'Processing...';
|
66
|
-
this.progressPercent = 100;
|
67
|
-
}
|
68
|
-
else {
|
69
|
-
this.progressPercent = percent;
|
70
|
-
}
|
71
|
-
});
|
72
|
-
console.log('[CREATE] Created template', template);
|
73
|
-
(_a = this.next) === null || _a === void 0 ? void 0 : _a.emit(template);
|
74
|
-
this.creating = false;
|
75
|
-
this.progressLabel = '';
|
76
|
-
this.progressPercent = 0;
|
77
|
-
}
|
78
|
-
catch (e) {
|
79
|
-
console.log('[CREATE] Error creating template', e);
|
80
|
-
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
81
|
-
this.creating = false;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
render() {
|
85
|
-
if (!this.endpoint.session) {
|
86
|
-
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
87
|
-
}
|
88
|
-
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("input", { type: "file", id: "verdocs-template-create-file", multiple: true, accept: "application/pdf", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), this.creating ? (h("div", { class: "loader-wrapper" }, h("verdocs-loader", null), this.progressLabel && (h("div", { class: "progress-wrapper" }, h("verdocs-progress-bar", { showPercent: true, percent: this.progressPercent, label: this.progressLabel }))))) : (h("div", { class: "upload-box" }, h("div", null, h("span", { innerHTML: FileIcon })), h("div", { style: { marginTop: '20px', fontSize: '20px', fontWeight: 'bold', overflowWrap: 'anywhere' } }, this.file ? this.file.name : 'Drag a file here'), h("div", { style: {
|
89
|
-
marginTop: '20px',
|
90
|
-
marginBottom: '20px',
|
91
|
-
fontSize: '16px',
|
92
|
-
height: '20px',
|
93
|
-
} }, this.file ? unicodeNBSP : 'Or, if you prefer...'), h("verdocs-button", { label: this.file ? 'Select a different file' : 'Select a file from your computer', size: "small", onClick: e => this.handleUpload(e) }))), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e), disabled: this.creating }), h("verdocs-button", { label: "Next", size: "small", onClick: e => this.handleSubmit(e), disabled: !this.file || this.creating }))));
|
94
|
-
}
|
17
|
+
/**
|
18
|
+
* A "role" is an individual participant in a signing flow, such as a signer or CC contact. Roles are identified by
|
19
|
+
* their names, which must be unique (e.g. 'Recipient 1'). Template fields are assigned to roles for signing operations,
|
20
|
+
* so you may have 'Recipient 1 Signature 1' and so forth.
|
21
|
+
*
|
22
|
+
* @module
|
23
|
+
*/
|
24
|
+
var createRole = function (endpoint, templateId, params) {
|
25
|
+
return endpoint.api //
|
26
|
+
.post("/templates/".concat(templateId, "/roles"), params)
|
27
|
+
.then(function (r) { return r.data; });
|
28
|
+
};
|
29
|
+
var updateRole = function (endpoint, templateId, roleName, params) {
|
30
|
+
return endpoint.api //
|
31
|
+
.put("/templates/".concat(templateId, "/roles/").concat(roleName), params)
|
32
|
+
.then(function (r) { return r.data; });
|
33
|
+
};
|
34
|
+
var deleteRole = function (endpoint, templateId, roleName) {
|
35
|
+
return endpoint.api //
|
36
|
+
.delete("/templates/".concat(templateId, "/roles/").concat(roleName))
|
37
|
+
.then(function (r) { return r.data; });
|
95
38
|
};
|
96
|
-
VerdocsTemplateCreate.style = verdocsTemplateCreateCss;
|
97
39
|
|
98
40
|
const verdocsTemplateFieldsCss = "verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative;display:block;min-height:600px}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;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;font-weight:700;padding:0 20px 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#f5f5fa;-ms-flex-pack:center;justify-content:center;background:#46497d}verdocs-template-fields #verdocs-template-fields-toolbar>verdocs-select-input{margin:0}verdocs-template-fields #verdocs-template-fields-toolbar svg{width:24px;height:24px}verdocs-template-fields #verdocs-template-fields-toolbar .add-for{margin:0;font-weight:500;color:#f5f5fa}verdocs-template-fields #verdocs-template-fields-toolbar verdocs-select-input{margin:0 20px 0 0}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_group{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 fill='%23000000' 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'/%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' stroke-width='1.5' stroke='currentColor'%3E%3Cpath stroke='%23000000' 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' /%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_button_group{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 fill='%23000000' d='M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM13 14h-2V8h2v6z'%3E%3C/path%3E%3C/svg%3E\") 16 16, pointer}";
|
99
41
|
|
@@ -151,9 +93,9 @@ const VerdocsTemplateFields = class {
|
|
151
93
|
return;
|
152
94
|
}
|
153
95
|
this.store = await getTemplateStore(this.endpoint, this.templateId, true);
|
154
|
-
console.log(`[FIELDS]
|
96
|
+
console.log(`[FIELDS] Loaded template ${this.templateId}`, this.store.state);
|
155
97
|
this.selectedRoleName = ((_d = (_c = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.roles) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.name) || '';
|
156
|
-
console.log('Starting with role', this.selectedRoleName);
|
98
|
+
console.log('[FIELDS] Starting with role', this.selectedRoleName);
|
157
99
|
}
|
158
100
|
catch (e) {
|
159
101
|
console.log('[FIELDS] Error with preview session', e);
|
@@ -330,7 +272,7 @@ const VerdocsTemplateFields = class {
|
|
330
272
|
console.log('testing field', fieldName);
|
331
273
|
i++;
|
332
274
|
} while ((_a = this.store) === null || _a === void 0 ? void 0 : _a.state.fields.some(field => field.name === fieldName));
|
333
|
-
console.log('Will use field name', fieldName, (_b = this.store) === null || _b === void 0 ? void 0 : _b.state.fields);
|
275
|
+
console.log('Will use field name', this, fieldName, (_b = this.store) === null || _b === void 0 ? void 0 : _b.state.fields);
|
334
276
|
return fieldName;
|
335
277
|
}
|
336
278
|
// Scale the X,Y clicks to the virtual page dimensions. Also ensure the field doesn't go off the page.
|
@@ -340,17 +282,18 @@ const VerdocsTemplateFields = class {
|
|
340
282
|
const y = Math.floor(Math.min(Math.max(renderedHeight - viewY, 0) / yScale, yMax));
|
341
283
|
return { x, y };
|
342
284
|
}
|
343
|
-
async handleClickPage(e,
|
285
|
+
async handleClickPage(e, pageNumber) {
|
344
286
|
var _a, _b, _c;
|
345
287
|
if (this.placing) {
|
346
|
-
console.log('Placing field', this.
|
347
|
-
|
288
|
+
console.log('Placing field', this, this.selectedRoleName, this.placing, pageNumber, e.offsetX, e.offsetY);
|
289
|
+
// console.log('Placing field', this.placing, page.sequence, e.offsetX, e.offsetY);
|
290
|
+
// const pageNumber = page.sequence;
|
348
291
|
const clickedX = e.offsetX;
|
349
292
|
const clickedY = e.offsetY;
|
350
293
|
const width = defaultWidth(this.placing);
|
351
294
|
const height = defaultHeight(this.placing);
|
352
295
|
const cachedPage = this.cachedPageInfo[pageNumber];
|
353
|
-
console.log('Cached page', cachedPage);
|
296
|
+
// console.log('Cached page', cachedPage);
|
354
297
|
const { naturalWidth = 612, naturalHeight = 792 } = cachedPage;
|
355
298
|
const coords = this.viewCoordinatesToPageCoordinates(clickedX, clickedY, pageNumber, naturalWidth - width, naturalHeight - height);
|
356
299
|
const x = Math.floor(coords.x);
|
@@ -445,7 +388,8 @@ const VerdocsTemplateFields = class {
|
|
445
388
|
}
|
446
389
|
}
|
447
390
|
render() {
|
448
|
-
var _a, _b, _c, _d;
|
391
|
+
var _a, _b, _c, _d, _e;
|
392
|
+
console.log('[FIELDS] Rendering');
|
449
393
|
if (!this.endpoint.session) {
|
450
394
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
451
395
|
}
|
@@ -453,9 +397,7 @@ const VerdocsTemplateFields = class {
|
|
453
397
|
if (!((_a = this.store) === null || _a === void 0 ? void 0 : _a.state.isLoaded)) {
|
454
398
|
return (h(Host, null, h("verdocs-loader", null)));
|
455
399
|
}
|
456
|
-
const
|
457
|
-
pages.sort((a, b) => a.sequence - b.sequence);
|
458
|
-
const selectableRoles = (_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.roles.map(role => ({ value: role.name, label: role.name }));
|
400
|
+
const selectableRoles = (_c = (_b = this.store) === null || _b === void 0 ? void 0 : _b.state) === null || _c === void 0 ? void 0 : _c.roles.map(role => ({ value: role.name, label: role.name }));
|
459
401
|
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, "data-r": this.rerender, onSubmit: () => {
|
460
402
|
console.log('onSubmit');
|
461
403
|
} }, h("div", { id: "verdocs-template-fields-toolbar" }, h("div", { class: "add-for" }, "Add field:"), h("verdocs-select-input", { value: this.selectedRoleName, options: selectableRoles, onInput: (e) => (this.selectedRoleName = e.target.value) }), menuOptions.map(option => (h("verdocs-toolbar-icon", { text: option.tooltip, icon: option.icon, onClick: () => {
|
@@ -463,16 +405,157 @@ const VerdocsTemplateFields = class {
|
|
463
405
|
// We have empty tooltips on the separators, quick hack...
|
464
406
|
this.placing = option.id;
|
465
407
|
}
|
466
|
-
} })))), h("div", { class: "pages" },
|
467
|
-
|
408
|
+
} })))), h("div", { class: "pages" }, (((_e = (_d = this.store) === null || _d === void 0 ? void 0 : _d.state) === null || _e === void 0 ? void 0 : _e.template_documents) || []).map(document => {
|
409
|
+
const pageNumbers = integerSequence(1, document.page_numbers);
|
410
|
+
return pageNumbers.map(page => (h("verdocs-template-document-page", { templateId: this.templateId, documentId: document.id, pageNumber: page, virtualWidth: 612, virtualHeight: 792, onClick: (e) => this.handleClickPage(e, page), onPageRendered: e => this.handlePageRendered(e), layers: [
|
468
411
|
{ name: 'page', type: 'canvas' },
|
469
412
|
{ name: 'controls', type: 'div' },
|
470
|
-
] }));
|
413
|
+
] })));
|
471
414
|
}))));
|
472
415
|
}
|
473
416
|
};
|
474
417
|
VerdocsTemplateFields.style = verdocsTemplateFieldsCss;
|
475
418
|
|
419
|
+
const verdocsTemplateRolePropertiesCss = "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}";
|
420
|
+
|
421
|
+
const TrashIcon = `<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>`;
|
422
|
+
const VerdocsTemplateRoleProperties = class {
|
423
|
+
constructor(hostRef) {
|
424
|
+
registerInstance(this, hostRef);
|
425
|
+
this.close = createEvent(this, "close", 7);
|
426
|
+
this.delete = createEvent(this, "delete", 7);
|
427
|
+
this.sdkError = createEvent(this, "sdkError", 7);
|
428
|
+
this.store = null;
|
429
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
430
|
+
this.templateId = '';
|
431
|
+
this.roleName = '';
|
432
|
+
this.sender = TemplateSenderTypes.EVERYONE;
|
433
|
+
this.dirty = false;
|
434
|
+
this.saving = false;
|
435
|
+
this.name = '';
|
436
|
+
this.type = 'signer';
|
437
|
+
this.fullName = '';
|
438
|
+
this.email = '';
|
439
|
+
this.phone = '';
|
440
|
+
this.allowDelegation = false;
|
441
|
+
}
|
442
|
+
async componentWillLoad() {
|
443
|
+
var _a, _b, _c, _d, _e;
|
444
|
+
try {
|
445
|
+
this.endpoint.loadSession();
|
446
|
+
if (!this.templateId) {
|
447
|
+
console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);
|
448
|
+
return;
|
449
|
+
}
|
450
|
+
if (!this.endpoint.session) {
|
451
|
+
console.log('[ROLE_PROPERTIES] Unable to start builder session, must be authenticated');
|
452
|
+
return;
|
453
|
+
}
|
454
|
+
this.store = await getTemplateStore(this.endpoint, this.templateId, false);
|
455
|
+
const editingRole = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.roles.find(role => role.name === this.roleName);
|
456
|
+
if (editingRole) {
|
457
|
+
this.name = editingRole.name;
|
458
|
+
this.type = editingRole.type;
|
459
|
+
this.fullName = editingRole.full_name;
|
460
|
+
this.email = editingRole.email;
|
461
|
+
this.phone = editingRole.phone;
|
462
|
+
this.allowDelegation = editingRole.delegator;
|
463
|
+
console.log('[ROLES] Editing role', editingRole);
|
464
|
+
}
|
465
|
+
}
|
466
|
+
catch (e) {
|
467
|
+
console.log('[TEMPLATE ROLE PROPERTIES] Error with preview session', e);
|
468
|
+
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
|
469
|
+
}
|
470
|
+
}
|
471
|
+
handleCancel(e) {
|
472
|
+
var _a, _b, _c;
|
473
|
+
e.stopPropagation();
|
474
|
+
this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
|
475
|
+
this.dirty = false;
|
476
|
+
(_c = this.close) === null || _c === void 0 ? void 0 : _c.emit();
|
477
|
+
}
|
478
|
+
async handleSave(e) {
|
479
|
+
e.stopPropagation();
|
480
|
+
this.saving = true;
|
481
|
+
updateRole(this.endpoint, this.templateId, this.roleName, {
|
482
|
+
name: this.name,
|
483
|
+
type: this.type,
|
484
|
+
full_name: this.fullName,
|
485
|
+
email: this.email,
|
486
|
+
phone: this.phone,
|
487
|
+
delegator: this.allowDelegation,
|
488
|
+
})
|
489
|
+
.then(async (r) => {
|
490
|
+
var _a;
|
491
|
+
console.log('[ROLE_PROPERTIES] Update result', r);
|
492
|
+
this.saving = false;
|
493
|
+
this.dirty = false;
|
494
|
+
this.store = await getTemplateStore(this.endpoint, this.templateId, true);
|
495
|
+
// this.sortTemplateRoles();
|
496
|
+
// this.renumberTemplateRoles();
|
497
|
+
// const newRoles = [...this.store.state.roles];
|
498
|
+
// newRoles.forEach(role => {
|
499
|
+
// if (role.name === this.roleName) {
|
500
|
+
// role.name = this.name;
|
501
|
+
// role.type = this.type;
|
502
|
+
// role.full_name = this.fullName;
|
503
|
+
// role.email = this.email;
|
504
|
+
// role.phone = this.phone;
|
505
|
+
// role.delegator = this.allowDelegation;
|
506
|
+
// }
|
507
|
+
// });
|
508
|
+
// this.store.state.roles = newRoles;
|
509
|
+
(_a = this.close) === null || _a === void 0 ? void 0 : _a.emit();
|
510
|
+
})
|
511
|
+
.catch(e => {
|
512
|
+
console.log('Update error', e);
|
513
|
+
this.saving = false;
|
514
|
+
});
|
515
|
+
}
|
516
|
+
async handleDelete(e) {
|
517
|
+
e.stopPropagation();
|
518
|
+
if (window.confirm('Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.')) {
|
519
|
+
deleteRole(this.endpoint, this.templateId, this.roleName)
|
520
|
+
.then(r => {
|
521
|
+
var _a;
|
522
|
+
console.log('Role deleted', r);
|
523
|
+
this.store.state.roles = [...this.store.state.roles.filter(role => role.name !== this.roleName)];
|
524
|
+
(_a = this.delete) === null || _a === void 0 ? void 0 : _a.emit({ templateId: this.templateId, roleName: this.roleName });
|
525
|
+
})
|
526
|
+
.catch(e => {
|
527
|
+
console.log('Deletion error', e);
|
528
|
+
});
|
529
|
+
}
|
530
|
+
}
|
531
|
+
render() {
|
532
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { class: "dialog" }, h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("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) => {
|
533
|
+
this.name = e.target.value;
|
534
|
+
this.dirty = true;
|
535
|
+
} }), h("div", { class: "row" }, h("div", { class: "input-label" }, "Type:"), h("verdocs-select-input", { value: this.type, options: [
|
536
|
+
{ label: 'Signer', value: 'signer' },
|
537
|
+
{ label: 'CC', value: 'cc' },
|
538
|
+
{ label: 'Approver', value: 'approver' },
|
539
|
+
], onInput: (e) => {
|
540
|
+
this.type = e.target.value;
|
541
|
+
this.dirty = true;
|
542
|
+
} }), h("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." })), h("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) => {
|
543
|
+
this.fullName = e.target.value;
|
544
|
+
this.dirty = true;
|
545
|
+
} }), h("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) => {
|
546
|
+
this.email = e.target.value;
|
547
|
+
this.dirty = true;
|
548
|
+
} }), h("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) => {
|
549
|
+
this.phone = e.target.value;
|
550
|
+
this.dirty = true;
|
551
|
+
} }), h("div", { class: "row" }, h("div", { class: "input-label" }, "May Delegate:"), h("div", { class: "checkbox-wrapper" }, h("verdocs-checkbox", { checked: this.allowDelegation, onInput: (e) => {
|
552
|
+
this.allowDelegation = e.target.checked;
|
553
|
+
this.dirty = true;
|
554
|
+
} })), h("verdocs-help-icon", { text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { class: "buttons" }, h("button", { class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { style: { flex: '1' } }), h("verdocs-button", { size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
|
555
|
+
}
|
556
|
+
};
|
557
|
+
VerdocsTemplateRoleProperties.style = verdocsTemplateRolePropertiesCss;
|
558
|
+
|
476
559
|
const verdocsTemplateRolesCss = "verdocs-template-roles{display:block;min-width:400px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-roles>form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;padding:12px}verdocs-template-roles>form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 10px 0}verdocs-template-roles>form .participants{position:relative}verdocs-template-roles>form .left-line{top:32px;left:11px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-template-roles>form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0;min-height:35px;margin-left:40px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:6px 0 4px 0}verdocs-template-roles>form .row .row-roles{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;-ms-flex-direction:row;flex-direction:row}verdocs-template-roles>form .row .icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-template-roles>form .row .sender{height:30px;display:-ms-flexbox;display:flex;font-size:14px;line-height:30px;-ms-flex-align:center;align-items:center;border-radius:30px;-ms-flex-direction:row;flex-direction:row;padding:0 5px 0 15px;border:1px solid #c6c9cc;background-color:#f5f5fa}verdocs-template-roles>form .row .complete{height:30px;display:-ms-flexbox;display:flex;font-size:14px;padding:0 15px;line-height:30px;-ms-flex-direction:row;flex-direction:row;border-radius:30px;background-color:#f5f5fa;border:1px solid #aeb4bf}verdocs-template-roles>form .row .label{font-weight:bold;margin-right:6px;color:#33364b}verdocs-template-roles>form .row .settings-button{display:-ms-flexbox;display:flex;cursor:pointer;margin:0 0 0 9px}verdocs-template-roles>form .row .recipient{height:30px;display:-ms-flexbox;display:flex;font-size:14px;border-radius:30px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:0 5px 0 6px;white-space:nowrap;border:2px solid #aeb4bf}verdocs-template-roles>form .row .recipient .type-icon{width:24px;height:24px;-webkit-transform:scale(0.8);transform:scale(0.8);opacity:0.6;margin:0 12px 0 0}verdocs-template-roles>form .row .recipient.dragging{position:absolute}verdocs-template-roles>form .row .recipient.dragging+.dropzone{display:none !important}verdocs-template-roles>form .row .dropzone{width:14px;height:30px;display:none}verdocs-template-roles>form .row .dropzone svg{fill:#cccccc}verdocs-template-roles>form .row .dropzone.visible{margin:0 7px;display:-ms-flexbox;display:flex;-ms-flex:0 0 14px;flex:0 0 14px}verdocs-template-roles>form .row .dropzone.active{-ms-flex:0 0 120px;flex:0 0 120px;border-radius:30px;background:#654dcb7f;border:1px dashed #654dcb}verdocs-template-roles>form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-roles>form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-roles>form input:focus{outline:none}verdocs-template-roles .row.add-sequence{display:none}verdocs-template-roles .add-role{margin:0;padding:0;border:none;opacity:0.5;cursor:pointer;background:none}verdocs-template-roles .add-role:hover{opacity:1}verdocs-template-roles .add-role svg{width:32px;height:32px}verdocs-template-roles .add-step{margin:0;padding:0;border:none;opacity:0.5;cursor:pointer;background:none}verdocs-template-roles .add-step:hover{opacity:1}verdocs-template-roles .add-step svg{width:32px;height:32px}verdocs-template-roles.dragging .add-role{display:none}verdocs-template-roles.dragging form .row .recipient+.dropzone{display:-ms-flexbox;display:flex}verdocs-template-roles.dragging .row.add-sequence{display:-ms-flexbox;display:flex}verdocs-template-roles.dragging .row.add-sequence .dropzone{opacity:0.5;-ms-flex:0 0 120px;flex:0 0 120px;border-radius:30px;-ms-flex-align:center;align-items:center;background:#654dcb7f;-ms-flex-pack:center;justify-content:center;border:1px dashed #654dcb}verdocs-template-roles.dragging .row.add-sequence .dropzone.active{opacity:1}verdocs-template-roles .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-roles .empty{font-size:13px;margin-top:15px;margin-bottom:5px}verdocs-template-roles .empty svg{width:20px;height:20px;stroke:#666666;margin-bottom:-5px}verdocs-template-roles ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-roles ::-moz-placeholder{color:#aaaaaa}verdocs-template-roles :-ms-input-placeholder{color:#aaaaaa}verdocs-template-roles ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-roles ::placeholder{color:#aaaaaa}";
|
477
560
|
|
478
561
|
const senderLabels = {
|
@@ -675,12 +758,15 @@ const VerdocsTemplateRoles = class {
|
|
675
758
|
type: 'signer',
|
676
759
|
delegator: false,
|
677
760
|
})
|
678
|
-
.then(r => {
|
679
|
-
var _a, _b
|
761
|
+
.then(async (r) => {
|
762
|
+
var _a, _b;
|
680
763
|
console.log('[ROLES] Created role', r);
|
681
|
-
this.store
|
764
|
+
this.store = await getTemplateStore(this.endpoint, this.templateId, true);
|
765
|
+
this.sortTemplateRoles();
|
682
766
|
this.renumberTemplateRoles();
|
683
|
-
|
767
|
+
// this.store.state.roles = [...this.store?.state.roles, r];
|
768
|
+
// this.renumberTemplateRoles();
|
769
|
+
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ event: 'created-role', endpoint: this.endpoint, template: (_b = this.store) === null || _b === void 0 ? void 0 : _b.state });
|
684
770
|
})
|
685
771
|
.catch(e => {
|
686
772
|
console.log('[ROLES] Error creating role', e);
|
@@ -702,6 +788,7 @@ const VerdocsTemplateRoles = class {
|
|
702
788
|
}
|
703
789
|
render() {
|
704
790
|
var _a, _b, _c, _d, _e, _f;
|
791
|
+
console.log('[ROLES] Rendering');
|
705
792
|
if (!this.endpoint.session) {
|
706
793
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
707
794
|
}
|
@@ -732,4 +819,70 @@ const VerdocsTemplateRoles = class {
|
|
732
819
|
};
|
733
820
|
VerdocsTemplateRoles.style = verdocsTemplateRolesCss;
|
734
821
|
|
735
|
-
|
822
|
+
const verdocsTemplateSenderCss = "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}";
|
823
|
+
|
824
|
+
const VerdocsTemplateSender = class {
|
825
|
+
constructor(hostRef) {
|
826
|
+
registerInstance(this, hostRef);
|
827
|
+
this.close = createEvent(this, "close", 7);
|
828
|
+
this.sdkError = createEvent(this, "sdkError", 7);
|
829
|
+
this.store = null;
|
830
|
+
this.endpoint = VerdocsEndpoint.getDefault();
|
831
|
+
this.templateId = '';
|
832
|
+
this.sender = TemplateSenderTypes.EVERYONE;
|
833
|
+
this.saving = false;
|
834
|
+
}
|
835
|
+
async componentWillLoad() {
|
836
|
+
var _a, _b, _c, _d, _e;
|
837
|
+
try {
|
838
|
+
this.endpoint.loadSession();
|
839
|
+
if (!this.templateId) {
|
840
|
+
console.log(`[SENDER] Missing required template ID ${this.templateId}`);
|
841
|
+
return;
|
842
|
+
}
|
843
|
+
if (!this.endpoint.session) {
|
844
|
+
console.log('[SENDER] Unable to start builder session, must be authenticated');
|
845
|
+
return;
|
846
|
+
}
|
847
|
+
this.store = await getTemplateStore(this.endpoint, this.templateId, false);
|
848
|
+
this.sender = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.sender;
|
849
|
+
}
|
850
|
+
catch (e) {
|
851
|
+
console.log('[SENDER] Error with preview session', e);
|
852
|
+
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
|
853
|
+
}
|
854
|
+
}
|
855
|
+
handleClose() {
|
856
|
+
this.close.emit();
|
857
|
+
}
|
858
|
+
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
859
|
+
handleDismiss(e) {
|
860
|
+
if (e.target.className === 'background-overlay') {
|
861
|
+
e.preventDefault();
|
862
|
+
this.handleClose();
|
863
|
+
}
|
864
|
+
}
|
865
|
+
async handleSelectSetting(value) {
|
866
|
+
this.saving = true;
|
867
|
+
updateTemplate(this.endpoint, this.templateId, { sender: value })
|
868
|
+
.then(r => {
|
869
|
+
var _a;
|
870
|
+
console.log('Update result', r);
|
871
|
+
if ((_a = this.store) === null || _a === void 0 ? void 0 : _a.state) {
|
872
|
+
this.store.state.sender = value;
|
873
|
+
}
|
874
|
+
this.saving = false;
|
875
|
+
this.sender = value;
|
876
|
+
})
|
877
|
+
.catch(e => {
|
878
|
+
console.log('Error saving', e);
|
879
|
+
this.saving = false;
|
880
|
+
});
|
881
|
+
}
|
882
|
+
render() {
|
883
|
+
return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "options" }, h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.EVERYONE, checked: this.sender === TemplateSenderTypes.EVERYONE, onInput: () => this.handleSelectSetting(TemplateSenderTypes.EVERYONE) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.EVERYONE_AS_CREATOR, checked: this.sender === TemplateSenderTypes.EVERYONE_AS_CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.EVERYONE_AS_CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.ORGANIZATION_MEMBER, checked: this.sender === TemplateSenderTypes.ORGANIZATION_MEMBER, onInput: () => this.handleSelectSetting(TemplateSenderTypes.ORGANIZATION_MEMBER) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, checked: this.sender === TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { class: "option" }, h("verdocs-radio-button", { name: "template-sender", value: TemplateSenderTypes.CREATOR, checked: this.sender === TemplateSenderTypes.CREATOR, onInput: () => this.handleSelectSetting(TemplateSenderTypes.CREATOR) }), h("div", { class: "description" }, h("div", { class: "name" }, "Me"), h("verdocs-help-icon", { text: "Only I can use this template." })))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Close", onClick: () => this.handleClose() }))))));
|
884
|
+
}
|
885
|
+
};
|
886
|
+
VerdocsTemplateSender.style = verdocsTemplateSenderCss;
|
887
|
+
|
888
|
+
export { VerdocsTemplateFields as verdocs_template_fields, VerdocsTemplateRoleProperties as verdocs_template_role_properties, VerdocsTemplateRoles as verdocs_template_roles, VerdocsTemplateSender as verdocs_template_sender };
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { u as updateTemplate } from './Templates-67172396.js';
|
4
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-ca592138.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-1a6322b4.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
|
8
|
-
const verdocsTemplateNameCss = "
|
8
|
+
const verdocsTemplateNameCss = "";
|
9
9
|
|
10
10
|
const VerdocsTemplateName = class {
|
11
11
|
constructor(hostRef) {
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-ca592138.js';
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-1a6322b4.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import './Templates-67172396.js';
|
7
7
|
|
@@ -34,7 +34,7 @@ const VerdocsTemplateProperties = class {
|
|
34
34
|
console.log('[PROPERTIES] Unable to start builder session, must be authenticated');
|
35
35
|
return;
|
36
36
|
}
|
37
|
-
this.store = await getTemplateStore(this.endpoint, this.templateId,
|
37
|
+
this.store = await getTemplateStore(this.endpoint, this.templateId, true);
|
38
38
|
this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
|
39
39
|
this.sendReminders = ((_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.reminder_id) !== null;
|
40
40
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-
|
3
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-ca592138.js';
|
4
|
+
import { g as getTemplateStore } from './TemplateStore-1a6322b4.js';
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
6
6
|
import './Templates-67172396.js';
|
7
7
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
|
3
3
|
const verdocsTemplateTagsCss = "verdocs-template-tags{font-family:\"Barlow\", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}";
|
4
4
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
import './Types-5f31149e.js';
|
3
3
|
import { u as updateTemplate } from './Templates-67172396.js';
|
4
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-
|
4
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-ca592138.js';
|
5
|
+
import { g as getTemplateStore } from './TemplateStore-1a6322b4.js';
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
7
7
|
|
8
8
|
const verdocsTemplateVisibilityCss = "verdocs-template-visibility{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
|
3
3
|
const verdocsToggleButtonCss = "verdocs-toggle-button{font-family:\"Barlow\", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}";
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-9ee0ca9f.js';
|
2
2
|
|
3
3
|
const verdocsToggleCss = "verdocs-toggle{font-family:\"Barlow\", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";
|
4
4
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-9ee0ca9f.js';
|
2
2
|
import { f as fileToDataUrl } from './Files-70a192df.js';
|
3
3
|
|
4
4
|
const verdocsUploadDialogCss = "verdocs-upload-dialog{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .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-upload-dialog .dialog{width:300px;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-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-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-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}";
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, a as getElement } from './index-
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment, a as getElement } from './index-9ee0ca9f.js';
|
2
2
|
import { t as throttledGetEnvelope, e as cancelEnvelope } from './Envelopes-921cd9d0.js';
|
3
3
|
import { E as EnvelopeStates } from './Types-5f31149e.js';
|
4
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-
|
4
|
+
import { V as VerdocsEndpoint } from './VerdocsEndpoint-ca592138.js';
|
5
5
|
import { i as integerSequence } from './Primitives-054bc6e5.js';
|
6
|
-
import {
|
6
|
+
import { c as saveEnvelopesAsZip, d as saveCertificate, s as saveAttachment } from './utils-39fef438.js';
|
7
7
|
import { S as SDKError } from './errors-9b5498c8.js';
|
8
8
|
import './_commonjsHelpers-5ec8f9b7.js';
|
9
9
|
import './Files-70a192df.js';
|