@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,217 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-67233b76.js');
|
6
|
-
require('./Types-f89f9116.js');
|
7
|
-
const Roles = require('./Roles-9b593b95.js');
|
8
|
-
const VerdocsEndpoint = require('./VerdocsEndpoint-3e95f87f.js');
|
9
|
-
const TemplateStore = require('./TemplateStore-df478971.js');
|
10
|
-
const errors = require('./errors-0396da3d.js');
|
11
|
-
const Templates = require('./Templates-24580a13.js');
|
12
|
-
|
13
|
-
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}";
|
14
|
-
|
15
|
-
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>`;
|
16
|
-
const VerdocsTemplateRoleProperties = class {
|
17
|
-
constructor(hostRef) {
|
18
|
-
index.registerInstance(this, hostRef);
|
19
|
-
this.close = index.createEvent(this, "close", 7);
|
20
|
-
this.delete = index.createEvent(this, "delete", 7);
|
21
|
-
this.sdkError = index.createEvent(this, "sdkError", 7);
|
22
|
-
this.store = null;
|
23
|
-
this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
|
24
|
-
this.templateId = '';
|
25
|
-
this.roleName = '';
|
26
|
-
this.sender = VerdocsEndpoint.TemplateSenderTypes.EVERYONE;
|
27
|
-
this.dirty = false;
|
28
|
-
this.saving = false;
|
29
|
-
this.name = '';
|
30
|
-
this.type = 'signer';
|
31
|
-
this.fullName = '';
|
32
|
-
this.email = '';
|
33
|
-
this.phone = '';
|
34
|
-
this.allowDelegation = false;
|
35
|
-
}
|
36
|
-
async componentWillLoad() {
|
37
|
-
var _a, _b, _c, _d, _e;
|
38
|
-
try {
|
39
|
-
this.endpoint.loadSession();
|
40
|
-
if (!this.templateId) {
|
41
|
-
console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);
|
42
|
-
return;
|
43
|
-
}
|
44
|
-
if (!this.endpoint.session) {
|
45
|
-
console.log('[ROLE_PROPERTIES] Unable to start builder session, must be authenticated');
|
46
|
-
return;
|
47
|
-
}
|
48
|
-
this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
|
49
|
-
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);
|
50
|
-
if (editingRole) {
|
51
|
-
this.name = editingRole.name;
|
52
|
-
this.type = editingRole.type;
|
53
|
-
this.fullName = editingRole.full_name;
|
54
|
-
this.email = editingRole.email;
|
55
|
-
this.phone = editingRole.phone;
|
56
|
-
this.allowDelegation = editingRole.delegator;
|
57
|
-
console.log('Got role', editingRole);
|
58
|
-
}
|
59
|
-
}
|
60
|
-
catch (e) {
|
61
|
-
console.log('[TEMPLATE ROLE PROPERTIES] Error with preview session', e);
|
62
|
-
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new errors.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));
|
63
|
-
}
|
64
|
-
}
|
65
|
-
handleCancel(e) {
|
66
|
-
var _a, _b, _c;
|
67
|
-
e.stopPropagation();
|
68
|
-
this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
|
69
|
-
this.dirty = false;
|
70
|
-
(_c = this.close) === null || _c === void 0 ? void 0 : _c.emit();
|
71
|
-
}
|
72
|
-
async handleSave(e) {
|
73
|
-
e.stopPropagation();
|
74
|
-
this.saving = true;
|
75
|
-
Roles.updateRole(this.endpoint, this.templateId, this.roleName, {
|
76
|
-
name: this.name,
|
77
|
-
type: this.type,
|
78
|
-
full_name: this.fullName,
|
79
|
-
email: this.email,
|
80
|
-
phone: this.phone,
|
81
|
-
delegator: this.allowDelegation,
|
82
|
-
})
|
83
|
-
.then(r => {
|
84
|
-
var _a;
|
85
|
-
console.log('Update result', r);
|
86
|
-
this.saving = false;
|
87
|
-
this.dirty = false;
|
88
|
-
const newRoles = [...this.store.state.roles];
|
89
|
-
newRoles.forEach(role => {
|
90
|
-
if (role.name === this.roleName) {
|
91
|
-
role.name = this.name;
|
92
|
-
role.type = this.type;
|
93
|
-
role.full_name = this.fullName;
|
94
|
-
role.email = this.email;
|
95
|
-
role.phone = this.phone;
|
96
|
-
role.delegator = this.allowDelegation;
|
97
|
-
}
|
98
|
-
});
|
99
|
-
this.store.state.roles = newRoles;
|
100
|
-
(_a = this.close) === null || _a === void 0 ? void 0 : _a.emit();
|
101
|
-
})
|
102
|
-
.catch(e => {
|
103
|
-
console.log('Update error', e);
|
104
|
-
this.saving = false;
|
105
|
-
});
|
106
|
-
}
|
107
|
-
async handleDelete(e) {
|
108
|
-
e.stopPropagation();
|
109
|
-
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.')) {
|
110
|
-
Roles.deleteRole(this.endpoint, this.templateId, this.roleName)
|
111
|
-
.then(r => {
|
112
|
-
var _a;
|
113
|
-
console.log('Role deleted', r);
|
114
|
-
this.store.state.roles = [...this.store.state.roles.filter(role => role.name !== this.roleName)];
|
115
|
-
(_a = this.delete) === null || _a === void 0 ? void 0 : _a.emit({ templateId: this.templateId, roleName: this.roleName });
|
116
|
-
})
|
117
|
-
.catch(e => {
|
118
|
-
console.log('Deletion error', e);
|
119
|
-
});
|
120
|
-
}
|
121
|
-
}
|
122
|
-
render() {
|
123
|
-
return (index.h(index.Host, null, index.h("div", { class: "background-overlay", onClick: e => this.handleCancel(e) }, index.h("div", { class: "dialog" }, index.h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, index.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) => {
|
124
|
-
this.name = e.target.value;
|
125
|
-
this.dirty = true;
|
126
|
-
} }), index.h("div", { class: "row" }, index.h("div", { class: "input-label" }, "Type:"), index.h("verdocs-select-input", { value: this.type, options: [
|
127
|
-
{ label: 'Signer', value: 'signer' },
|
128
|
-
{ label: 'CC', value: 'cc' },
|
129
|
-
{ label: 'Approver', value: 'approver' },
|
130
|
-
], onInput: (e) => {
|
131
|
-
this.type = e.target.value;
|
132
|
-
this.dirty = true;
|
133
|
-
} }), index.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." })), index.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) => {
|
134
|
-
this.fullName = e.target.value;
|
135
|
-
this.dirty = true;
|
136
|
-
} }), index.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) => {
|
137
|
-
this.email = e.target.value;
|
138
|
-
this.dirty = true;
|
139
|
-
} }), index.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) => {
|
140
|
-
this.phone = e.target.value;
|
141
|
-
this.dirty = true;
|
142
|
-
} }), index.h("div", { class: "row" }, index.h("div", { class: "input-label" }, "May Delegate:"), index.h("div", { class: "checkbox-wrapper" }, index.h("verdocs-checkbox", { checked: this.allowDelegation, onInput: (e) => {
|
143
|
-
this.allowDelegation = e.target.checked;
|
144
|
-
this.dirty = true;
|
145
|
-
} })), index.h("verdocs-help-icon", { text: "If enabled, this recipient may delegate their actions to another individual." })), index.h("div", { class: "buttons" }, index.h("button", { class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), index.h("div", { style: { flex: '1' } }), index.h("verdocs-button", { size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
|
146
|
-
}
|
147
|
-
};
|
148
|
-
VerdocsTemplateRoleProperties.style = verdocsTemplateRolePropertiesCss;
|
149
|
-
|
150
|
-
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}";
|
151
|
-
|
152
|
-
const VerdocsTemplateSender = class {
|
153
|
-
constructor(hostRef) {
|
154
|
-
index.registerInstance(this, hostRef);
|
155
|
-
this.close = index.createEvent(this, "close", 7);
|
156
|
-
this.sdkError = index.createEvent(this, "sdkError", 7);
|
157
|
-
this.store = null;
|
158
|
-
this.endpoint = VerdocsEndpoint.VerdocsEndpoint.getDefault();
|
159
|
-
this.templateId = '';
|
160
|
-
this.sender = VerdocsEndpoint.TemplateSenderTypes.EVERYONE;
|
161
|
-
this.saving = false;
|
162
|
-
}
|
163
|
-
async componentWillLoad() {
|
164
|
-
var _a, _b, _c, _d, _e;
|
165
|
-
try {
|
166
|
-
this.endpoint.loadSession();
|
167
|
-
if (!this.templateId) {
|
168
|
-
console.log(`[SENDER] Missing required template ID ${this.templateId}`);
|
169
|
-
return;
|
170
|
-
}
|
171
|
-
if (!this.endpoint.session) {
|
172
|
-
console.log('[SENDER] Unable to start builder session, must be authenticated');
|
173
|
-
return;
|
174
|
-
}
|
175
|
-
this.store = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
|
176
|
-
this.sender = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.sender;
|
177
|
-
}
|
178
|
-
catch (e) {
|
179
|
-
console.log('[SENDER] Error with preview session', e);
|
180
|
-
(_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new errors.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));
|
181
|
-
}
|
182
|
-
}
|
183
|
-
handleClose() {
|
184
|
-
this.close.emit();
|
185
|
-
}
|
186
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
187
|
-
handleDismiss(e) {
|
188
|
-
if (e.target.className === 'background-overlay') {
|
189
|
-
e.preventDefault();
|
190
|
-
this.handleClose();
|
191
|
-
}
|
192
|
-
}
|
193
|
-
async handleSelectSetting(value) {
|
194
|
-
this.saving = true;
|
195
|
-
Templates.updateTemplate(this.endpoint, this.templateId, { sender: value })
|
196
|
-
.then(r => {
|
197
|
-
var _a;
|
198
|
-
console.log('Update result', r);
|
199
|
-
if ((_a = this.store) === null || _a === void 0 ? void 0 : _a.state) {
|
200
|
-
this.store.state.sender = value;
|
201
|
-
}
|
202
|
-
this.saving = false;
|
203
|
-
this.sender = value;
|
204
|
-
})
|
205
|
-
.catch(e => {
|
206
|
-
console.log('Error saving', e);
|
207
|
-
this.saving = false;
|
208
|
-
});
|
209
|
-
}
|
210
|
-
render() {
|
211
|
-
return (index.h(index.Host, null, index.h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, index.h("div", { class: "dialog" }, index.h("div", { class: "options" }, index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.EVERYONE, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.EVERYONE, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.EVERYONE) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web"), index.h("verdocs-help-icon", { text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.EVERYONE_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone on the Web as me"), index.h("verdocs-help-icon", { text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization"), index.h("verdocs-help-icon", { text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.ORGANIZATION_MEMBER_AS_CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Anyone in my organization as me"), index.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'.)" }))), index.h("div", { class: "option" }, index.h("verdocs-radio-button", { name: "template-sender", value: VerdocsEndpoint.TemplateSenderTypes.CREATOR, checked: this.sender === VerdocsEndpoint.TemplateSenderTypes.CREATOR, onInput: () => this.handleSelectSetting(VerdocsEndpoint.TemplateSenderTypes.CREATOR) }), index.h("div", { class: "description" }, index.h("div", { class: "name" }, "Me"), index.h("verdocs-help-icon", { text: "Only I can use this template." })))), index.h("div", { class: "buttons" }, index.h("verdocs-button", { label: "Close", onClick: () => this.handleClose() }))))));
|
212
|
-
}
|
213
|
-
};
|
214
|
-
VerdocsTemplateSender.style = verdocsTemplateSenderCss;
|
215
|
-
|
216
|
-
exports.verdocs_template_role_properties = VerdocsTemplateRoleProperties;
|
217
|
-
exports.verdocs_template_sender = VerdocsTemplateSender;
|
@@ -1,51 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-67233b76.js');
|
6
|
-
const popper = require('./popper-9def2535.js');
|
7
|
-
|
8
|
-
const verdocsToolbarIconCss = "verdocs-toolbar-icon{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:\"\";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}";
|
9
|
-
|
10
|
-
const VerdocsToolbarIcon = class {
|
11
|
-
constructor(hostRef) {
|
12
|
-
index.registerInstance(this, hostRef);
|
13
|
-
this.text = '';
|
14
|
-
this.icon = '';
|
15
|
-
this.placement = 'bottom';
|
16
|
-
this.containerId = `verdocs-toolbar-icon-${Math.random().toString(36).substring(2, 11)}`;
|
17
|
-
}
|
18
|
-
componentDidLoad() {
|
19
|
-
this.popperInstance = popper.createPopper(this.iconEl, this.tooltip, {
|
20
|
-
placement: this.placement,
|
21
|
-
modifiers: this.placement === 'left' ? [{ name: 'offset', options: { offset: [0, 20] } }] : [],
|
22
|
-
});
|
23
|
-
// placement: 'top-end',
|
24
|
-
// modifiers: [{name: 'offset', options: {offset: [0, 10]}}],
|
25
|
-
// });
|
26
|
-
}
|
27
|
-
disconnectedCallback() {
|
28
|
-
if (this.popperInstance) {
|
29
|
-
this.popperInstance.destroy();
|
30
|
-
this.popperInstance = null;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
show() {
|
34
|
-
var _a, _b;
|
35
|
-
(_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.setAttribute('data-show', '');
|
36
|
-
(_b = this.popperInstance) === null || _b === void 0 ? void 0 : _b.update().catch(() => { });
|
37
|
-
}
|
38
|
-
hide() {
|
39
|
-
var _a;
|
40
|
-
(_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.removeAttribute('data-show');
|
41
|
-
}
|
42
|
-
// handlePress() {
|
43
|
-
// this.press?.emit();
|
44
|
-
// }
|
45
|
-
render() {
|
46
|
-
return (index.h(index.Host, { class: {} }, index.h("div", { "aria-describedby": this.containerId, class: "icon", innerHTML: this.icon, onMouseEnter: () => this.show(), onFocus: () => this.show(), onMouseLeave: () => this.hide(), onBlur: () => this.hide(), ref: el => (this.iconEl = el) }), index.h("div", { id: this.containerId, role: "tooltip", class: "tooltip", "data-popper-placement": this.placement, ref: el => (this.tooltip = el) }, this.text, index.h("div", { "data-popper-arrow": "true", class: "arrow" }))));
|
47
|
-
}
|
48
|
-
};
|
49
|
-
VerdocsToolbarIcon.style = verdocsToolbarIconCss;
|
50
|
-
|
51
|
-
exports.verdocs_toolbar_icon = VerdocsToolbarIcon;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* A "role" is an individual participant in a signing flow, such as a signer or CC contact. Roles are identified by
|
3
|
-
* their names, which must be unique (e.g. 'Recipient 1'). Template fields are assigned to roles for signing operations,
|
4
|
-
* so you may have 'Recipient 1 Signature 1' and so forth.
|
5
|
-
*
|
6
|
-
* @module
|
7
|
-
*/
|
8
|
-
var createRole = function (endpoint, templateId, params) {
|
9
|
-
return endpoint.api //
|
10
|
-
.post("/templates/".concat(templateId, "/roles"), params)
|
11
|
-
.then(function (r) { return r.data; });
|
12
|
-
};
|
13
|
-
var updateRole = function (endpoint, templateId, roleName, params) {
|
14
|
-
return endpoint.api //
|
15
|
-
.put("/templates/".concat(templateId, "/roles/").concat(roleName), params)
|
16
|
-
.then(function (r) { return r.data; });
|
17
|
-
};
|
18
|
-
var deleteRole = function (endpoint, templateId, roleName) {
|
19
|
-
return endpoint.api //
|
20
|
-
.delete("/templates/".concat(templateId, "/roles/").concat(roleName))
|
21
|
-
.then(function (r) { return r.data; });
|
22
|
-
};
|
23
|
-
|
24
|
-
export { createRole as c, deleteRole as d, updateRole as u };
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-5260ed60.js';
|
2
|
-
|
3
|
-
const verdocsProgressBarCss = "verdocs-progress-bar{font-family:\"Barlow\", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}";
|
4
|
-
|
5
|
-
const VerdocsProgressBar = class {
|
6
|
-
constructor(hostRef) {
|
7
|
-
registerInstance(this, hostRef);
|
8
|
-
this.label = '';
|
9
|
-
this.showPercent = false;
|
10
|
-
this.percent = 0;
|
11
|
-
}
|
12
|
-
render() {
|
13
|
-
const widthPercent = Math.ceil((100 * Math.min(this.percent, 100)) / 100);
|
14
|
-
return (h(Host, null, h("div", { class: "labels" }, this.label && h("div", { class: "label" }, this.label), this.showPercent && h("div", { class: "label" }, this.percent, "%")), h("div", { class: "bar" }, h("div", { class: "slider", style: { width: `${widthPercent}%` } }))));
|
15
|
-
}
|
16
|
-
};
|
17
|
-
VerdocsProgressBar.style = verdocsProgressBarCss;
|
18
|
-
|
19
|
-
export { VerdocsProgressBar as verdocs_progress_bar };
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5260ed60.js';
|
2
|
-
import './Types-5f31149e.js';
|
3
|
-
import { V as VerdocsEndpoint } from './VerdocsEndpoint-4367eb13.js';
|
4
|
-
import { g as getTemplateStore } from './TemplateStore-373c72a8.js';
|
5
|
-
import { S as SDKError } from './errors-9b5498c8.js';
|
6
|
-
import './Templates-67172396.js';
|
7
|
-
|
8
|
-
const verdocsTemplateAttachmentsCss = "verdocs-template-attachments{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#4c56cb}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b;border:1px solid #cccccc}verdocs-template-attachments svg{width:24px;height:24px;fill:#5c6575;margin:2px 10px 0 0}";
|
9
|
-
|
10
|
-
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>';
|
11
|
-
const VerdocsTemplateAttachments = class {
|
12
|
-
constructor(hostRef) {
|
13
|
-
registerInstance(this, hostRef);
|
14
|
-
this.close = createEvent(this, "close", 7);
|
15
|
-
this.sdkError = createEvent(this, "sdkError", 7);
|
16
|
-
this.store = null;
|
17
|
-
this.endpoint = VerdocsEndpoint.getDefault();
|
18
|
-
this.templateId = '';
|
19
|
-
}
|
20
|
-
async componentWillLoad() {
|
21
|
-
var _a, _b, _c;
|
22
|
-
try {
|
23
|
-
this.endpoint.loadSession();
|
24
|
-
if (!this.templateId) {
|
25
|
-
console.log(`[ROLES] Missing required template ID ${this.templateId}`);
|
26
|
-
return;
|
27
|
-
}
|
28
|
-
if (!this.endpoint.session) {
|
29
|
-
console.log('[ROLES] Unable to start builder session, must be authenticated');
|
30
|
-
return;
|
31
|
-
}
|
32
|
-
this.store = await getTemplateStore(this.endpoint, this.templateId, false);
|
33
|
-
this.endpoint.loadSession();
|
34
|
-
}
|
35
|
-
catch (e) {
|
36
|
-
console.log('[TEMPLATE ATTACHMENTS] Error loading template', e);
|
37
|
-
(_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));
|
38
|
-
}
|
39
|
-
}
|
40
|
-
render() {
|
41
|
-
var _a, _b;
|
42
|
-
if (!this.endpoint.session) {
|
43
|
-
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
44
|
-
}
|
45
|
-
const templateState = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state;
|
46
|
-
if (!templateState.isLoaded) {
|
47
|
-
return (h(Host, { class: "loading" }, h("verdocs-loader", null)));
|
48
|
-
}
|
49
|
-
// This is meant to be a companion for larger visual experiences so we just go blank on errors for now.
|
50
|
-
// Checking
|
51
|
-
if (!this.endpoint.session || !templateState.profile_id) {
|
52
|
-
return h(Host, { class: "empty" });
|
53
|
-
}
|
54
|
-
return (h(Host, null, h("h5", null, "Attachments"), (_b = this.store) === null || _b === void 0 ? void 0 :
|
55
|
-
_b.state.template_documents.map(document => (h("div", { class: "attachment" }, h("span", { innerHTML: FileIcon }), document.name, " (", document.page_numbers, " page", document.page_numbers > 1 ? 's' : '', ")")))));
|
56
|
-
}
|
57
|
-
};
|
58
|
-
VerdocsTemplateAttachments.style = verdocsTemplateAttachmentsCss;
|
59
|
-
|
60
|
-
export { VerdocsTemplateAttachments as verdocs_template_attachments };
|
@@ -1,212 +0,0 @@
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5260ed60.js';
|
2
|
-
import './Types-5f31149e.js';
|
3
|
-
import { u as updateRole, d as deleteRole } from './Roles-6eb459df.js';
|
4
|
-
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-4367eb13.js';
|
5
|
-
import { g as getTemplateStore } from './TemplateStore-373c72a8.js';
|
6
|
-
import { S as SDKError } from './errors-9b5498c8.js';
|
7
|
-
import { u as updateTemplate } from './Templates-67172396.js';
|
8
|
-
|
9
|
-
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}";
|
10
|
-
|
11
|
-
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>`;
|
12
|
-
const VerdocsTemplateRoleProperties = class {
|
13
|
-
constructor(hostRef) {
|
14
|
-
registerInstance(this, hostRef);
|
15
|
-
this.close = createEvent(this, "close", 7);
|
16
|
-
this.delete = createEvent(this, "delete", 7);
|
17
|
-
this.sdkError = createEvent(this, "sdkError", 7);
|
18
|
-
this.store = null;
|
19
|
-
this.endpoint = VerdocsEndpoint.getDefault();
|
20
|
-
this.templateId = '';
|
21
|
-
this.roleName = '';
|
22
|
-
this.sender = TemplateSenderTypes.EVERYONE;
|
23
|
-
this.dirty = false;
|
24
|
-
this.saving = false;
|
25
|
-
this.name = '';
|
26
|
-
this.type = 'signer';
|
27
|
-
this.fullName = '';
|
28
|
-
this.email = '';
|
29
|
-
this.phone = '';
|
30
|
-
this.allowDelegation = false;
|
31
|
-
}
|
32
|
-
async componentWillLoad() {
|
33
|
-
var _a, _b, _c, _d, _e;
|
34
|
-
try {
|
35
|
-
this.endpoint.loadSession();
|
36
|
-
if (!this.templateId) {
|
37
|
-
console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
if (!this.endpoint.session) {
|
41
|
-
console.log('[ROLE_PROPERTIES] Unable to start builder session, must be authenticated');
|
42
|
-
return;
|
43
|
-
}
|
44
|
-
this.store = await getTemplateStore(this.endpoint, this.templateId, false);
|
45
|
-
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);
|
46
|
-
if (editingRole) {
|
47
|
-
this.name = editingRole.name;
|
48
|
-
this.type = editingRole.type;
|
49
|
-
this.fullName = editingRole.full_name;
|
50
|
-
this.email = editingRole.email;
|
51
|
-
this.phone = editingRole.phone;
|
52
|
-
this.allowDelegation = editingRole.delegator;
|
53
|
-
console.log('Got role', editingRole);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
catch (e) {
|
57
|
-
console.log('[TEMPLATE ROLE PROPERTIES] Error with preview session', e);
|
58
|
-
(_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));
|
59
|
-
}
|
60
|
-
}
|
61
|
-
handleCancel(e) {
|
62
|
-
var _a, _b, _c;
|
63
|
-
e.stopPropagation();
|
64
|
-
this.name = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.name;
|
65
|
-
this.dirty = false;
|
66
|
-
(_c = this.close) === null || _c === void 0 ? void 0 : _c.emit();
|
67
|
-
}
|
68
|
-
async handleSave(e) {
|
69
|
-
e.stopPropagation();
|
70
|
-
this.saving = true;
|
71
|
-
updateRole(this.endpoint, this.templateId, this.roleName, {
|
72
|
-
name: this.name,
|
73
|
-
type: this.type,
|
74
|
-
full_name: this.fullName,
|
75
|
-
email: this.email,
|
76
|
-
phone: this.phone,
|
77
|
-
delegator: this.allowDelegation,
|
78
|
-
})
|
79
|
-
.then(r => {
|
80
|
-
var _a;
|
81
|
-
console.log('Update result', r);
|
82
|
-
this.saving = false;
|
83
|
-
this.dirty = false;
|
84
|
-
const newRoles = [...this.store.state.roles];
|
85
|
-
newRoles.forEach(role => {
|
86
|
-
if (role.name === this.roleName) {
|
87
|
-
role.name = this.name;
|
88
|
-
role.type = this.type;
|
89
|
-
role.full_name = this.fullName;
|
90
|
-
role.email = this.email;
|
91
|
-
role.phone = this.phone;
|
92
|
-
role.delegator = this.allowDelegation;
|
93
|
-
}
|
94
|
-
});
|
95
|
-
this.store.state.roles = newRoles;
|
96
|
-
(_a = this.close) === null || _a === void 0 ? void 0 : _a.emit();
|
97
|
-
})
|
98
|
-
.catch(e => {
|
99
|
-
console.log('Update error', e);
|
100
|
-
this.saving = false;
|
101
|
-
});
|
102
|
-
}
|
103
|
-
async handleDelete(e) {
|
104
|
-
e.stopPropagation();
|
105
|
-
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.')) {
|
106
|
-
deleteRole(this.endpoint, this.templateId, this.roleName)
|
107
|
-
.then(r => {
|
108
|
-
var _a;
|
109
|
-
console.log('Role deleted', r);
|
110
|
-
this.store.state.roles = [...this.store.state.roles.filter(role => role.name !== this.roleName)];
|
111
|
-
(_a = this.delete) === null || _a === void 0 ? void 0 : _a.emit({ templateId: this.templateId, roleName: this.roleName });
|
112
|
-
})
|
113
|
-
.catch(e => {
|
114
|
-
console.log('Deletion error', e);
|
115
|
-
});
|
116
|
-
}
|
117
|
-
}
|
118
|
-
render() {
|
119
|
-
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) => {
|
120
|
-
this.name = e.target.value;
|
121
|
-
this.dirty = true;
|
122
|
-
} }), h("div", { class: "row" }, h("div", { class: "input-label" }, "Type:"), h("verdocs-select-input", { value: this.type, options: [
|
123
|
-
{ label: 'Signer', value: 'signer' },
|
124
|
-
{ label: 'CC', value: 'cc' },
|
125
|
-
{ label: 'Approver', value: 'approver' },
|
126
|
-
], onInput: (e) => {
|
127
|
-
this.type = e.target.value;
|
128
|
-
this.dirty = true;
|
129
|
-
} }), 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) => {
|
130
|
-
this.fullName = e.target.value;
|
131
|
-
this.dirty = true;
|
132
|
-
} }), 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) => {
|
133
|
-
this.email = e.target.value;
|
134
|
-
this.dirty = true;
|
135
|
-
} }), 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) => {
|
136
|
-
this.phone = e.target.value;
|
137
|
-
this.dirty = true;
|
138
|
-
} }), h("div", { class: "row" }, h("div", { class: "input-label" }, "May Delegate:"), h("div", { class: "checkbox-wrapper" }, h("verdocs-checkbox", { checked: this.allowDelegation, onInput: (e) => {
|
139
|
-
this.allowDelegation = e.target.checked;
|
140
|
-
this.dirty = true;
|
141
|
-
} })), 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) })))))));
|
142
|
-
}
|
143
|
-
};
|
144
|
-
VerdocsTemplateRoleProperties.style = verdocsTemplateRolePropertiesCss;
|
145
|
-
|
146
|
-
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}";
|
147
|
-
|
148
|
-
const VerdocsTemplateSender = class {
|
149
|
-
constructor(hostRef) {
|
150
|
-
registerInstance(this, hostRef);
|
151
|
-
this.close = createEvent(this, "close", 7);
|
152
|
-
this.sdkError = createEvent(this, "sdkError", 7);
|
153
|
-
this.store = null;
|
154
|
-
this.endpoint = VerdocsEndpoint.getDefault();
|
155
|
-
this.templateId = '';
|
156
|
-
this.sender = TemplateSenderTypes.EVERYONE;
|
157
|
-
this.saving = false;
|
158
|
-
}
|
159
|
-
async componentWillLoad() {
|
160
|
-
var _a, _b, _c, _d, _e;
|
161
|
-
try {
|
162
|
-
this.endpoint.loadSession();
|
163
|
-
if (!this.templateId) {
|
164
|
-
console.log(`[SENDER] Missing required template ID ${this.templateId}`);
|
165
|
-
return;
|
166
|
-
}
|
167
|
-
if (!this.endpoint.session) {
|
168
|
-
console.log('[SENDER] Unable to start builder session, must be authenticated');
|
169
|
-
return;
|
170
|
-
}
|
171
|
-
this.store = await getTemplateStore(this.endpoint, this.templateId, false);
|
172
|
-
this.sender = (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.sender;
|
173
|
-
}
|
174
|
-
catch (e) {
|
175
|
-
console.log('[SENDER] Error with preview session', e);
|
176
|
-
(_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));
|
177
|
-
}
|
178
|
-
}
|
179
|
-
handleClose() {
|
180
|
-
this.close.emit();
|
181
|
-
}
|
182
|
-
// We need a separate event handler for clicking the background because it can receive events "through" other child components
|
183
|
-
handleDismiss(e) {
|
184
|
-
if (e.target.className === 'background-overlay') {
|
185
|
-
e.preventDefault();
|
186
|
-
this.handleClose();
|
187
|
-
}
|
188
|
-
}
|
189
|
-
async handleSelectSetting(value) {
|
190
|
-
this.saving = true;
|
191
|
-
updateTemplate(this.endpoint, this.templateId, { sender: value })
|
192
|
-
.then(r => {
|
193
|
-
var _a;
|
194
|
-
console.log('Update result', r);
|
195
|
-
if ((_a = this.store) === null || _a === void 0 ? void 0 : _a.state) {
|
196
|
-
this.store.state.sender = value;
|
197
|
-
}
|
198
|
-
this.saving = false;
|
199
|
-
this.sender = value;
|
200
|
-
})
|
201
|
-
.catch(e => {
|
202
|
-
console.log('Error saving', e);
|
203
|
-
this.saving = false;
|
204
|
-
});
|
205
|
-
}
|
206
|
-
render() {
|
207
|
-
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() }))))));
|
208
|
-
}
|
209
|
-
};
|
210
|
-
VerdocsTemplateSender.style = verdocsTemplateSenderCss;
|
211
|
-
|
212
|
-
export { VerdocsTemplateRoleProperties as verdocs_template_role_properties, VerdocsTemplateSender as verdocs_template_sender };
|