@verdocs/web-sdk 6.3.1 → 6.5.0-beta.1
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/index-CQ5bTnED.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
- package/dist/cjs/{verdocs-delegate-dialog_5.cjs.entry.js → verdocs-adopt-signature-dialog_6.cjs.entry.js} +443 -4
- package/dist/cjs/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dialog.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +42 -4
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.css +225 -0
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +515 -0
- package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.css +5 -0
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +11 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +43 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/p--22mTpQu.js +492 -0
- package/dist/components/p--22mTpQu.js.map +1 -0
- package/dist/components/{p-xtoLmSCb.js → p--MAFwnYi.js} +4 -4
- package/dist/components/{p-xtoLmSCb.js.map → p--MAFwnYi.js.map} +1 -1
- package/dist/components/{p-DQZV5DpX.js → p-03-0JktC.js} +6 -6
- package/dist/components/{p-DQZV5DpX.js.map → p-03-0JktC.js.map} +1 -1
- package/dist/components/{p-5Fek5Wy9.js → p-B-Dy5ZZg.js} +3 -3
- package/dist/components/{p-5Fek5Wy9.js.map → p-B-Dy5ZZg.js.map} +1 -1
- package/dist/components/{p-ShTRLp1e.js → p-B2kqp9s3.js} +3 -3
- package/dist/components/{p-ShTRLp1e.js.map → p-B2kqp9s3.js.map} +1 -1
- package/dist/components/{p-BBgYkz_p.js → p-B8ZrxzPu.js} +4 -4
- package/dist/components/{p-BBgYkz_p.js.map → p-B8ZrxzPu.js.map} +1 -1
- package/dist/components/{p-ewRI_6tO.js → p-B9UsTlmn.js} +4 -4
- package/dist/components/{p-ewRI_6tO.js.map → p-B9UsTlmn.js.map} +1 -1
- package/dist/components/{p-tXZcbV3w.js → p-BL-JaC6f.js} +4 -4
- package/dist/components/{p-tXZcbV3w.js.map → p-BL-JaC6f.js.map} +1 -1
- package/dist/components/{p-foP05GI4.js → p-BMuFgZcf.js} +20 -20
- package/dist/components/{p-foP05GI4.js.map → p-BMuFgZcf.js.map} +1 -1
- package/dist/components/{p-DQ5Kf869.js → p-BPl-hwhm.js} +5 -5
- package/dist/components/{p-DQ5Kf869.js.map → p-BPl-hwhm.js.map} +1 -1
- package/dist/components/{p-DzDB_SyD.js → p-BRnBGYE7.js} +4 -4
- package/dist/components/{p-DzDB_SyD.js.map → p-BRnBGYE7.js.map} +1 -1
- package/dist/components/{p-DYfrJ4GD.js → p-BeOs-_Hc.js} +4 -4
- package/dist/components/{p-DYfrJ4GD.js.map → p-BeOs-_Hc.js.map} +1 -1
- package/dist/components/{p-DLRzhboq.js → p-BgdorSdl.js} +4 -4
- package/dist/components/{p-DLRzhboq.js.map → p-BgdorSdl.js.map} +1 -1
- package/dist/components/{p-Cxr-iSrc.js → p-ByN2xw3g.js} +3 -3
- package/dist/components/{p-Cxr-iSrc.js.map → p-ByN2xw3g.js.map} +1 -1
- package/dist/components/{p-DHYsT4bg.js → p-CAAXnAJc.js} +19 -19
- package/dist/components/{p-DHYsT4bg.js.map → p-CAAXnAJc.js.map} +1 -1
- package/dist/components/{p-D90w1eGV.js → p-CAXnLTMU.js} +6 -6
- package/dist/components/{p-D90w1eGV.js.map → p-CAXnLTMU.js.map} +1 -1
- package/dist/components/{p-B1xA5_lE.js → p-CGEus5vb.js} +4 -4
- package/dist/components/{p-B1xA5_lE.js.map → p-CGEus5vb.js.map} +1 -1
- package/dist/components/{p-D9PE4xz7.js → p-CVw3uIMa.js} +3 -3
- package/dist/components/{p-D9PE4xz7.js.map → p-CVw3uIMa.js.map} +1 -1
- package/dist/components/{p-CSxSI_ON.js → p-CWyDvAhW.js} +20 -20
- package/dist/components/{p-CSxSI_ON.js.map → p-CWyDvAhW.js.map} +1 -1
- package/dist/components/{p-DaISePSz.js → p-Cb2BVlCf.js} +3 -3
- package/dist/components/p-Cb2BVlCf.js.map +1 -0
- package/dist/components/{p-C74Z96Hx.js → p-CfteiEu5.js} +3 -3
- package/dist/components/{p-C74Z96Hx.js.map → p-CfteiEu5.js.map} +1 -1
- package/dist/components/{p-_8VAlOYF.js → p-CmNkNw68.js} +4 -4
- package/dist/components/{p-_8VAlOYF.js.map → p-CmNkNw68.js.map} +1 -1
- package/dist/components/{p-D-o8QR0Y.js → p-Crvz6jDy.js} +3 -3
- package/dist/components/{p-D-o8QR0Y.js.map → p-Crvz6jDy.js.map} +1 -1
- package/dist/components/{p-MbNTNztz.js → p-CvzTGqMO.js} +4 -4
- package/dist/components/{p-MbNTNztz.js.map → p-CvzTGqMO.js.map} +1 -1
- package/dist/components/{p-s5aulRbG.js → p-CxLl7FNM.js} +4 -4
- package/dist/components/{p-s5aulRbG.js.map → p-CxLl7FNM.js.map} +1 -1
- package/dist/components/{p-DMN-w8Ma.js → p-D-H-9KY8.js} +4 -4
- package/dist/components/{p-DMN-w8Ma.js.map → p-D-H-9KY8.js.map} +1 -1
- package/dist/components/{p-Dj0PabuK.js → p-D7__Pp00.js} +6 -6
- package/dist/components/{p-Dj0PabuK.js.map → p-D7__Pp00.js.map} +1 -1
- package/dist/components/{p-CmOvVqbw.js → p-D7a2wzo5.js} +4 -4
- package/dist/components/{p-CmOvVqbw.js.map → p-D7a2wzo5.js.map} +1 -1
- package/dist/components/{p-BQVsyF2B.js → p-DBAtkaK6.js} +4 -4
- package/dist/components/{p-BQVsyF2B.js.map → p-DBAtkaK6.js.map} +1 -1
- package/dist/components/{p-CcVkCmQi.js → p-DE0Pffxj.js} +4 -4
- package/dist/components/{p-CcVkCmQi.js.map → p-DE0Pffxj.js.map} +1 -1
- package/dist/components/p-DNljqkuf.js +55 -0
- package/dist/components/p-DNljqkuf.js.map +1 -0
- package/dist/components/{p-Be40bZ4S.js → p-DR2UE0Os.js} +7 -7
- package/dist/components/{p-Be40bZ4S.js.map → p-DR2UE0Os.js.map} +1 -1
- package/dist/components/{p-zln1sHDr.js → p-DaIaz1c1.js} +4 -4
- package/dist/components/{p-zln1sHDr.js.map → p-DaIaz1c1.js.map} +1 -1
- package/dist/components/{p-CWGZlA4l.js → p-DdW2wHj_.js} +5 -5
- package/dist/components/p-DdW2wHj_.js.map +1 -0
- package/dist/components/{p-5cFBOeAO.js → p-DkrVyv_Q.js} +3 -3
- package/dist/components/{p-5cFBOeAO.js.map → p-DkrVyv_Q.js.map} +1 -1
- package/dist/components/{p-DZonUNfY.js → p-DngKAB2o.js} +10 -10
- package/dist/components/{p-DZonUNfY.js.map → p-DngKAB2o.js.map} +1 -1
- package/dist/components/{p-BJmkJ4bg.js → p-DsYzavXP.js} +3 -3
- package/dist/components/{p-BJmkJ4bg.js.map → p-DsYzavXP.js.map} +1 -1
- package/dist/components/{p-BjnLxewv.js → p-GiBzmfuf.js} +4 -4
- package/dist/components/{p-BjnLxewv.js.map → p-GiBzmfuf.js.map} +1 -1
- package/dist/components/{p-B847qTqO.js → p-LWshb-T0.js} +5 -5
- package/dist/components/{p-B847qTqO.js.map → p-LWshb-T0.js.map} +1 -1
- package/dist/components/{p-C97fAomN.js → p-YdjsfZWX.js} +7 -7
- package/dist/components/{p-C97fAomN.js.map → p-YdjsfZWX.js.map} +1 -1
- package/dist/components/p-j_Tq7bTq.js +66 -0
- package/dist/components/p-j_Tq7bTq.js.map +1 -0
- package/dist/components/verdocs-adopt-signature-dialog.d.ts +11 -0
- package/dist/components/verdocs-adopt-signature-dialog.js +9 -0
- package/dist/components/verdocs-adopt-signature-dialog.js.map +1 -0
- package/dist/components/verdocs-auth.js +1 -1
- package/dist/components/verdocs-build.js +27 -27
- package/dist/components/verdocs-button.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-delegate-dialog.js +1 -1
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-disclosure-dialog.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +5 -5
- package/dist/components/verdocs-envelope-update-recipient.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +8 -8
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +2 -2
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-file-chooser.js +1 -1
- package/dist/components/verdocs-initial-dialog.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-otp-dialog.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-question-dialog.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-radio-button.js +1 -50
- package/dist/components/verdocs-radio-button.js.map +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign-footer.js +1 -1
- package/dist/components/verdocs-sign.js +86 -34
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-status-indicator.js +1 -1
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-create.js +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-template-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +3 -3
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/index-BIRwgFLv.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
- package/dist/esm/{verdocs-delegate-dialog_5.entry.js → verdocs-adopt-signature-dialog_6.entry.js} +443 -5
- package/dist/esm/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
- package/dist/esm/verdocs-button_3.entry.js +1 -1
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-dialog.entry.js.map +1 -1
- package/dist/esm/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -1
- package/dist/esm/verdocs-envelope-document-page_3.entry.js +4 -4
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-menu-panel_2.entry.js +7 -7
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +42 -4
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-BIRwgFLv.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-adopt-signature-dialog_6.entry.js +2 -0
- package/dist/esm-es5/verdocs-adopt-signature-dialog_6.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.d.ts +72 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +6 -0
- package/dist/types/components.d.ts +63 -0
- package/dist/verdocs-web-sdk/{p-314eebba.system.entry.js → p-00a4e7bb.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0c0bc455.system.entry.js → p-04d12736.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1deb700a.entry.js → p-08cc95f2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a59be807.system.entry.js → p-119a435b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-11b7417a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-11b7417a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-18f123b0.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-18f123b0.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-f40ab4f5.entry.js → p-1a24cb02.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-1b6e12fd.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-46c1af93.system.entry.js.map → p-1b6e12fd.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-228e230f.entry.js → p-2b3b18d9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-32fbbfa8.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-33daf816.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-33daf816.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-e4f0949d.system.entry.js → p-35bff3e8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ac9343dd.system.entry.js → p-360b6fe2.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ac9343dd.system.entry.js.map → p-360b6fe2.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-40da805a.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-acd04b08.entry.js.map → p-40da805a.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-b976781d.system.entry.js → p-4c34cce1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-no56iQU4.system.js.map → p-5QBnJPzZ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-c061d0f7.system.entry.js → p-5b6a5423.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-63ab6794.entry.js → p-5caf5e89.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ce3e9ace.entry.js → p-63a1cdc4.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-645ecdf2.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-645ecdf2.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-ed353630.entry.js → p-67f9303c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ed353630.entry.js.map → p-67f9303c.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-59190e63.system.entry.js → p-76d415d8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-7d0ad091.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-79dba586.entry.js.map → p-7d0ad091.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ea69720d.entry.js → p-8198f626.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ffb4ee7b.system.entry.js → p-89253f22.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6ac24714.entry.js → p-96c615c4.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f51c7617.system.entry.js → p-9c6794e2.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-BK1P8OnR.system.js.map → p-BPADFnIx.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BXWpJq0l.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DjEDnCUT.system.js.map → p-BzzCPrH6.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-C3zDhjUw.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CjbrW449.system.js.map → p-CIBNz0ch.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-RthJMgT5.system.js.map → p-CObV00Q6.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-0YtsUAM2.system.js.map → p-CxMoZjwF.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-D-tqfMW2.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CzugWljc.system.js.map → p-DYzIpql-.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BOIq74fd.system.js.map → p-Db51eGCN.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-6cRdX3ws.system.js.map → p-DbIrKAuV.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CD1Gqdjg.system.js.map → p-Dm8o0wRd.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CPejf19w.system.js.map → p-U8PkMVAC.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-aadc0955.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-9fcc54f8.system.entry.js.map → p-aadc0955.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-eee0e96c.entry.js → p-b6b216b2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a8582158.entry.js → p-c0a10c67.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aa1f6673.entry.js → p-e4e3b8ce.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ipStHMZx.system.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
- package/dist/components/p-BLnFOrAj.js +0 -66
- package/dist/components/p-BLnFOrAj.js.map +0 -1
- package/dist/components/p-CWGZlA4l.js.map +0 -1
- package/dist/components/p-DaISePSz.js.map +0 -1
- package/dist/custom-elements.json +0 -2332
- package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +0 -2
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0c77bf48.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0c77bf48.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-2xwvEc_F.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-46c1af93.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-49122faa.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-49122faa.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4bd8b685.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-79dba586.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9fcc54f8.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-CTxgqZQn.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CzO641zU.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-D_YsBkfv.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-acd04b08.entry.js +0 -2
- package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-314eebba.system.entry.js.map → p-00a4e7bb.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0c0bc455.system.entry.js.map → p-04d12736.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1deb700a.entry.js.map → p-08cc95f2.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a59be807.system.entry.js.map → p-119a435b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f40ab4f5.entry.js.map → p-1a24cb02.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-228e230f.entry.js.map → p-2b3b18d9.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-4bd8b685.system.entry.js.map → p-32fbbfa8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e4f0949d.system.entry.js.map → p-35bff3e8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b976781d.system.entry.js.map → p-4c34cce1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c061d0f7.system.entry.js.map → p-5b6a5423.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-63ab6794.entry.js.map → p-5caf5e89.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ce3e9ace.entry.js.map → p-63a1cdc4.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-59190e63.system.entry.js.map → p-76d415d8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ea69720d.entry.js.map → p-8198f626.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ffb4ee7b.system.entry.js.map → p-89253f22.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6ac24714.entry.js.map → p-96c615c4.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f51c7617.system.entry.js.map → p-9c6794e2.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-eee0e96c.entry.js.map → p-b6b216b2.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a8582158.entry.js.map → p-c0a10c67.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-aa1f6673.entry.js.map → p-e4e3b8ce.entry.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import { h, Host } from "@stencil/core";
|
|
|
5
5
|
export class VerdocsTemplateTags {
|
|
6
6
|
render() {
|
|
7
7
|
var _a;
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'd858d6a42d82aad9a04c369feaec42f024fefea0' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "verdocs-template-tags"; }
|
|
11
11
|
static get originalStyleUrls() {
|
package/dist/components/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerdocsAdoptSignatureDialog } from './verdocs-adopt-signature-dialog.js';
|
|
1
2
|
import { VerdocsAuth } from './verdocs-auth.js';
|
|
2
3
|
import { VerdocsBuild } from './verdocs-build.js';
|
|
3
4
|
import { VerdocsButton } from './verdocs-button.js';
|
|
@@ -81,6 +82,7 @@ export { g as getAssetPath, r as render, s as setAssetPath, a as setNonce, b as
|
|
|
81
82
|
const defineCustomElements = (opts) => {
|
|
82
83
|
if (typeof customElements !== 'undefined') {
|
|
83
84
|
[
|
|
85
|
+
VerdocsAdoptSignatureDialog,
|
|
84
86
|
VerdocsAuth,
|
|
85
87
|
VerdocsBuild,
|
|
86
88
|
VerdocsButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h } from './p-CUAGH_8P.js';
|
|
2
|
+
import { d as defineCustomElement$4 } from './p-Cb2BVlCf.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './p-Ddtzdi61.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-DNljqkuf.js';
|
|
5
|
+
import { d as defineCustomElement$1 } from './p-ExxjGoKu.js';
|
|
6
|
+
|
|
7
|
+
const verdocsAdoptSignatureDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-adopt-signature-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-adopt-signature-dialog verdocs-dialog{border-radius:4px}verdocs-adopt-signature-dialog .heading{color:#201f1e;font-weight:400;padding-bottom:0;border-bottom:none}verdocs-adopt-signature-dialog .content{display:-ms-flexbox;display:flex;padding-top:12px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog verdocs-text-input .input-label{color:#242424;font-size:13px;font-weight:400}verdocs-adopt-signature-dialog verdocs-text-input .input-element{border:1px solid #e0e0e0}verdocs-adopt-signature-dialog verdocs-radio-button{-webkit-transform:scale(0.9);transform:scale(0.9)}verdocs-adopt-signature-dialog canvas{width:100%;height:79px;margin:10px 0;border-radius:4px;background:#fafafa;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d1d1d1}verdocs-adopt-signature-dialog .disclaimer{padding:8px 0;font-size:11px;line-height:14px;text-align:justify;color:rgba(0, 0, 0, 0.54)}verdocs-adopt-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:-20px -20px 0 -20px;border-bottom:1px solid #eeeeee}verdocs-adopt-signature-dialog .tabs .tab{-ms-flex:1;flex:1;gap:4px;display:-ms-flexbox;display:flex;cursor:pointer;font-size:12px;font-weight:500;padding:6px 10px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-adopt-signature-dialog .tabs .tab.active{background:#f9f5fe;border-bottom:2px solid #707ae5}verdocs-adopt-signature-dialog .tabs .tab:hover{color:#55bc81}verdocs-adopt-signature-dialog .tabs .tab .icon{width:16px;height:16px}verdocs-adopt-signature-dialog .type{display:none;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .type.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .draw.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw .draw-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .draw canvas{cursor:crosshair;-ms-touch-action:none;touch-action:none}verdocs-adopt-signature-dialog .draw .draw-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-top:12px}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:6px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .upload.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .upload .upload-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .upload .upload-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:12px;margin-top:8px}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button{border:1px solid #55bc81;background-color:#55bc81;color:#ffffff;padding:8px 20px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button:hover{background-color:rgb(62.7594936709, 159.2405063291, 103.9746835443);border-color:rgb(62.7594936709, 159.2405063291, 103.9746835443)}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:8px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload .upload-filename{font-size:12px;color:rgba(0, 0, 0, 0.6);text-align:center;margin-top:8px;font-style:italic}verdocs-adopt-signature-dialog{}verdocs-adopt-signature-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-adopt-signature-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-adopt-signature-dialog .buttons button.cancel{background-color:#654dcb}verdocs-adopt-signature-dialog .buttons button.proceed{background-color:#55bc81}verdocs-adopt-signature-dialog .buttons button:disabled{background-color:#6c727f}";
|
|
8
|
+
|
|
9
|
+
const VerdocsAdoptSignatureDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsAdoptSignatureDialog extends H {
|
|
10
|
+
constructor(registerHost) {
|
|
11
|
+
super();
|
|
12
|
+
if (registerHost !== false) {
|
|
13
|
+
this.__registerHost();
|
|
14
|
+
}
|
|
15
|
+
this.next = createEvent(this, "next");
|
|
16
|
+
this.exit = createEvent(this, "exit");
|
|
17
|
+
/**
|
|
18
|
+
* Initial signature text
|
|
19
|
+
*/
|
|
20
|
+
this.name = '';
|
|
21
|
+
this.fontLoaded = false;
|
|
22
|
+
this.enteredName = '';
|
|
23
|
+
this.enteredInitials = '';
|
|
24
|
+
this.mode = 'type';
|
|
25
|
+
this.isDrawing = false;
|
|
26
|
+
this.hasDrawnSignature = false;
|
|
27
|
+
this.currentSigStroke = [];
|
|
28
|
+
this.allSigStrokes = [];
|
|
29
|
+
this.lastSigPoint = null;
|
|
30
|
+
this.currentInitialsStroke = [];
|
|
31
|
+
this.allInitialsStrokes = [];
|
|
32
|
+
this.lastInitialsPoint = null;
|
|
33
|
+
this.handleSigPointerDown = (e) => {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
if (!this.signatureElement || !this.sigDrawingContext) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.isDrawing = true;
|
|
39
|
+
this.hasDrawnSignature = true;
|
|
40
|
+
const point = this.getSigCanvasCoordinates(e);
|
|
41
|
+
this.currentSigStroke = [point];
|
|
42
|
+
this.lastSigPoint = point;
|
|
43
|
+
// Start a new path
|
|
44
|
+
this.sigDrawingContext.beginPath();
|
|
45
|
+
this.sigDrawingContext.moveTo(point.x, point.y);
|
|
46
|
+
// Capture pointer to ensure we get all events even if pointer leaves canvas
|
|
47
|
+
this.signatureElement.setPointerCapture(e.pointerId);
|
|
48
|
+
};
|
|
49
|
+
this.handleSigPointerMove = (e) => {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
if (!this.isDrawing || !this.sigDrawingContext || !this.lastSigPoint) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const point = this.getSigCanvasCoordinates(e);
|
|
55
|
+
this.currentSigStroke.push(point);
|
|
56
|
+
// Use quadratic curves for smooth drawing
|
|
57
|
+
// The control point is the last point, and we draw to the midpoint
|
|
58
|
+
const midPoint = {
|
|
59
|
+
x: (this.lastSigPoint.x + point.x) / 2,
|
|
60
|
+
y: (this.lastSigPoint.y + point.y) / 2,
|
|
61
|
+
};
|
|
62
|
+
this.sigDrawingContext.quadraticCurveTo(this.lastSigPoint.x, this.lastSigPoint.y, midPoint.x, midPoint.y);
|
|
63
|
+
this.sigDrawingContext.stroke();
|
|
64
|
+
this.lastSigPoint = point;
|
|
65
|
+
};
|
|
66
|
+
this.handleSigPointerUp = (e) => {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
if (!this.isDrawing || !this.sigDrawingContext) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// Complete the stroke
|
|
72
|
+
if (this.lastSigPoint && this.currentSigStroke.length > 0) {
|
|
73
|
+
this.sigDrawingContext.lineTo(this.lastSigPoint.x, this.lastSigPoint.y);
|
|
74
|
+
this.sigDrawingContext.stroke();
|
|
75
|
+
}
|
|
76
|
+
// Save the completed stroke
|
|
77
|
+
if (this.currentSigStroke.length > 0) {
|
|
78
|
+
this.allSigStrokes.push([...this.currentSigStroke]);
|
|
79
|
+
}
|
|
80
|
+
this.isDrawing = false;
|
|
81
|
+
this.currentSigStroke = [];
|
|
82
|
+
this.lastSigPoint = null;
|
|
83
|
+
// Release pointer capture
|
|
84
|
+
if (this.signatureElement) {
|
|
85
|
+
this.signatureElement.releasePointerCapture(e.pointerId);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
this.handleSigPointerCancel = (e) => {
|
|
89
|
+
// Handle cases where drawing is interrupted (e.g., phone call, notification)
|
|
90
|
+
this.isDrawing = false;
|
|
91
|
+
this.currentSigStroke = [];
|
|
92
|
+
this.lastSigPoint = null;
|
|
93
|
+
if (this.signatureElement) {
|
|
94
|
+
this.signatureElement.releasePointerCapture(e.pointerId);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.handleInitialsPointerDown = (e) => {
|
|
98
|
+
e.preventDefault();
|
|
99
|
+
if (!this.initialsElement || !this.initialsDrawingContext) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
this.isDrawing = true;
|
|
103
|
+
this.hasDrawnSignature = true;
|
|
104
|
+
const point = this.getInitialsCanvasCoordinates(e);
|
|
105
|
+
this.currentInitialsStroke = [point];
|
|
106
|
+
this.lastInitialsPoint = point;
|
|
107
|
+
// Start a new path
|
|
108
|
+
this.initialsDrawingContext.beginPath();
|
|
109
|
+
this.initialsDrawingContext.moveTo(point.x, point.y);
|
|
110
|
+
// Capture pointer to ensure we get all events even if pointer leaves canvas
|
|
111
|
+
this.initialsElement.setPointerCapture(e.pointerId);
|
|
112
|
+
};
|
|
113
|
+
this.handleInitialsPointerMove = (e) => {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
if (!this.isDrawing || !this.initialsDrawingContext || !this.lastInitialsPoint) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const point = this.getInitialsCanvasCoordinates(e);
|
|
119
|
+
this.currentInitialsStroke.push(point);
|
|
120
|
+
// Use quadratic curves for smooth drawing
|
|
121
|
+
// The control point is the last point, and we draw to the midpoint
|
|
122
|
+
const midPoint = {
|
|
123
|
+
x: (this.lastInitialsPoint.x + point.x) / 2,
|
|
124
|
+
y: (this.lastInitialsPoint.y + point.y) / 2,
|
|
125
|
+
};
|
|
126
|
+
this.initialsDrawingContext.quadraticCurveTo(this.lastInitialsPoint.x, this.lastInitialsPoint.y, midPoint.x, midPoint.y);
|
|
127
|
+
this.initialsDrawingContext.stroke();
|
|
128
|
+
this.lastInitialsPoint = point;
|
|
129
|
+
};
|
|
130
|
+
this.handleInitialsPointerUp = (e) => {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
if (!this.isDrawing || !this.initialsDrawingContext) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
// Complete the stroke
|
|
136
|
+
if (this.lastInitialsPoint && this.currentInitialsStroke.length > 0) {
|
|
137
|
+
this.initialsDrawingContext.lineTo(this.lastInitialsPoint.x, this.lastInitialsPoint.y);
|
|
138
|
+
this.initialsDrawingContext.stroke();
|
|
139
|
+
}
|
|
140
|
+
// Save the completed stroke
|
|
141
|
+
if (this.currentInitialsStroke.length > 0) {
|
|
142
|
+
this.allInitialsStrokes.push([...this.currentInitialsStroke]);
|
|
143
|
+
}
|
|
144
|
+
this.isDrawing = false;
|
|
145
|
+
this.currentInitialsStroke = [];
|
|
146
|
+
this.lastInitialsPoint = null;
|
|
147
|
+
// Release pointer capture
|
|
148
|
+
if (this.initialsElement) {
|
|
149
|
+
this.initialsElement.releasePointerCapture(e.pointerId);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
this.handleInitialsPointerCancel = (e) => {
|
|
153
|
+
// Handle cases where drawing is interrupted (e.g., phone call, notification)
|
|
154
|
+
this.isDrawing = false;
|
|
155
|
+
this.currentInitialsStroke = [];
|
|
156
|
+
this.lastInitialsPoint = null;
|
|
157
|
+
if (this.initialsElement) {
|
|
158
|
+
this.initialsElement.releasePointerCapture(e.pointerId);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
componentWillLoad() {
|
|
163
|
+
this.enteredName = this.name;
|
|
164
|
+
this.enteredInitials = this.name
|
|
165
|
+
.split(' ')
|
|
166
|
+
.map(word => word.charAt(0).toUpperCase())
|
|
167
|
+
.join('');
|
|
168
|
+
const ds = new FontFace('Dancing Script', 'url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)');
|
|
169
|
+
ds.load().then(font => {
|
|
170
|
+
document.fonts.add(font);
|
|
171
|
+
this.fontLoaded = true;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
componentDidLoad() {
|
|
175
|
+
this.drawSignatureText();
|
|
176
|
+
this.drawInitialsText();
|
|
177
|
+
this.setupSignatureCanvas();
|
|
178
|
+
this.setupInitialsCanvas();
|
|
179
|
+
}
|
|
180
|
+
componentDidUpdate() {
|
|
181
|
+
this.drawSignatureText();
|
|
182
|
+
this.drawInitialsText();
|
|
183
|
+
this.setupSignatureCanvas();
|
|
184
|
+
this.setupInitialsCanvas();
|
|
185
|
+
// Redraw drawn signature when in draw mode
|
|
186
|
+
if (this.mode === 'draw' && this.allSigStrokes.length > 0) {
|
|
187
|
+
this.redrawDrawnSignature();
|
|
188
|
+
}
|
|
189
|
+
if (this.mode === 'draw' && this.allInitialsStrokes.length > 0) {
|
|
190
|
+
this.redrawDrawnInitials();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
drawSignatureText() {
|
|
194
|
+
if (!this.signatureElement || this.mode !== 'type') {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
const sigCanvasWidth = this.signatureElement.width;
|
|
198
|
+
const sigCanvasHeight = this.signatureElement.height;
|
|
199
|
+
const sigContext = this.signatureElement.getContext('2d');
|
|
200
|
+
sigContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);
|
|
201
|
+
let fontSize = 100;
|
|
202
|
+
let metrics = sigContext.measureText(this.enteredName);
|
|
203
|
+
do {
|
|
204
|
+
fontSize -= 2;
|
|
205
|
+
sigContext.font = `${fontSize}px Dancing Script`;
|
|
206
|
+
metrics = sigContext.measureText(this.enteredName);
|
|
207
|
+
} while (metrics.width > sigCanvasWidth - 32 && metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent > sigCanvasHeight - 24);
|
|
208
|
+
sigContext.textAlign = 'center';
|
|
209
|
+
sigContext.textBaseline = 'middle';
|
|
210
|
+
sigContext.font = `${fontSize}px Dancing Script`;
|
|
211
|
+
sigContext.fillText(this.enteredName, this.signatureElement.width / 2, this.signatureElement.height / 2);
|
|
212
|
+
}
|
|
213
|
+
drawInitialsText() {
|
|
214
|
+
if (!this.initialsElement || this.mode !== 'type') {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const initialsCanvasWidth = this.initialsElement.width;
|
|
218
|
+
const initialsCanvasHeight = this.initialsElement.height;
|
|
219
|
+
const context = this.initialsElement.getContext('2d');
|
|
220
|
+
context.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);
|
|
221
|
+
let fontSize = 100;
|
|
222
|
+
let metrics = context.measureText(this.enteredInitials);
|
|
223
|
+
do {
|
|
224
|
+
fontSize -= 2;
|
|
225
|
+
context.font = `${fontSize}px Dancing Script`;
|
|
226
|
+
metrics = context.measureText(this.enteredInitials);
|
|
227
|
+
} while (metrics.width > initialsCanvasWidth - 32 && metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent > initialsCanvasHeight - 24);
|
|
228
|
+
context.textAlign = 'center';
|
|
229
|
+
context.textBaseline = 'middle';
|
|
230
|
+
context.font = `${fontSize}px Dancing Script`;
|
|
231
|
+
context.fillText(this.enteredInitials, this.initialsElement.width / 2, this.initialsElement.height / 2);
|
|
232
|
+
}
|
|
233
|
+
redrawDrawnSignature() {
|
|
234
|
+
if (!this.signatureElement || !this.sigDrawingContext || this.allSigStrokes.length === 0) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
// Clear the canvas first
|
|
238
|
+
this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);
|
|
239
|
+
// Redraw all strokes
|
|
240
|
+
for (const stroke of this.allSigStrokes) {
|
|
241
|
+
if (stroke.length === 0) {
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
// Start the path at the first point
|
|
245
|
+
this.sigDrawingContext.beginPath();
|
|
246
|
+
this.sigDrawingContext.moveTo(stroke[0].x, stroke[0].y);
|
|
247
|
+
// Draw smooth curves through all points in the stroke
|
|
248
|
+
for (let i = 1; i < stroke.length; i++) {
|
|
249
|
+
const currentPoint = stroke[i];
|
|
250
|
+
const previousPoint = stroke[i - 1];
|
|
251
|
+
// Use quadratic curves for smooth lines
|
|
252
|
+
const midPoint = {
|
|
253
|
+
x: (previousPoint.x + currentPoint.x) / 2,
|
|
254
|
+
y: (previousPoint.y + currentPoint.y) / 2,
|
|
255
|
+
};
|
|
256
|
+
this.sigDrawingContext.quadraticCurveTo(previousPoint.x, previousPoint.y, midPoint.x, midPoint.y);
|
|
257
|
+
}
|
|
258
|
+
// Draw to the last point
|
|
259
|
+
if (stroke.length > 1) {
|
|
260
|
+
const lastPoint = stroke[stroke.length - 1];
|
|
261
|
+
this.sigDrawingContext.lineTo(lastPoint.x, lastPoint.y);
|
|
262
|
+
}
|
|
263
|
+
this.sigDrawingContext.stroke();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
redrawDrawnInitials() {
|
|
267
|
+
if (!this.initialsElement || !this.initialsDrawingContext || this.allInitialsStrokes.length === 0) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
// Clear the canvas first
|
|
271
|
+
this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);
|
|
272
|
+
// Redraw all strokes
|
|
273
|
+
for (const stroke of this.allInitialsStrokes) {
|
|
274
|
+
if (stroke.length === 0) {
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
// Start the path at the first point
|
|
278
|
+
this.initialsDrawingContext.beginPath();
|
|
279
|
+
this.initialsDrawingContext.moveTo(stroke[0].x, stroke[0].y);
|
|
280
|
+
// Draw smooth curves through all points in the stroke
|
|
281
|
+
for (let i = 1; i < stroke.length; i++) {
|
|
282
|
+
const currentPoint = stroke[i];
|
|
283
|
+
const previousPoint = stroke[i - 1];
|
|
284
|
+
// Use quadratic curves for smooth lines
|
|
285
|
+
const midPoint = {
|
|
286
|
+
x: (previousPoint.x + currentPoint.x) / 2,
|
|
287
|
+
y: (previousPoint.y + currentPoint.y) / 2,
|
|
288
|
+
};
|
|
289
|
+
this.initialsDrawingContext.quadraticCurveTo(previousPoint.x, previousPoint.y, midPoint.x, midPoint.y);
|
|
290
|
+
}
|
|
291
|
+
// Draw to the last point
|
|
292
|
+
if (stroke.length > 1) {
|
|
293
|
+
const lastPoint = stroke[stroke.length - 1];
|
|
294
|
+
this.initialsDrawingContext.lineTo(lastPoint.x, lastPoint.y);
|
|
295
|
+
}
|
|
296
|
+
this.initialsDrawingContext.stroke();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
handleNameChange(e) {
|
|
300
|
+
this.enteredName = e.target.value;
|
|
301
|
+
this.enteredInitials = e.target.value
|
|
302
|
+
.split(' ')
|
|
303
|
+
.map(word => word.charAt(0).toUpperCase())
|
|
304
|
+
.join('');
|
|
305
|
+
}
|
|
306
|
+
handleCancel(e) {
|
|
307
|
+
e.stopPropagation();
|
|
308
|
+
e.preventDefault();
|
|
309
|
+
this.exit.emit();
|
|
310
|
+
}
|
|
311
|
+
handleAdopt(e) {
|
|
312
|
+
e.stopPropagation();
|
|
313
|
+
e.preventDefault();
|
|
314
|
+
const signature = this.signatureElement.toDataURL('image/png');
|
|
315
|
+
const initials = this.initialsElement.toDataURL('image/png');
|
|
316
|
+
this.next.emit({ signature, initials });
|
|
317
|
+
}
|
|
318
|
+
isAdoptButtonDisabled() {
|
|
319
|
+
switch (this.mode) {
|
|
320
|
+
case 'type':
|
|
321
|
+
// Disable if no name has been entered
|
|
322
|
+
return !this.enteredName || this.enteredName.trim().length === 0;
|
|
323
|
+
case 'draw':
|
|
324
|
+
// Disable if nothing has been drawn
|
|
325
|
+
return !this.hasDrawnSignature || this.allSigStrokes.length === 0 || this.allInitialsStrokes.length === 0;
|
|
326
|
+
default:
|
|
327
|
+
return true;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
setupSignatureCanvas() {
|
|
331
|
+
if (!this.signatureElement) {
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
// Set up drawing context when in draw mode
|
|
335
|
+
if (this.mode === 'draw') {
|
|
336
|
+
// Always get fresh context from the current canvas element
|
|
337
|
+
const sigContext = this.signatureElement.getContext('2d');
|
|
338
|
+
// Only initialize if we don't have a context or it's different
|
|
339
|
+
if (sigContext && sigContext !== this.sigDrawingContext) {
|
|
340
|
+
this.sigDrawingContext = sigContext;
|
|
341
|
+
// Configure drawing style for smooth signatures
|
|
342
|
+
this.sigDrawingContext.strokeStyle = '#000000';
|
|
343
|
+
this.sigDrawingContext.lineWidth = 2;
|
|
344
|
+
this.sigDrawingContext.lineCap = 'round';
|
|
345
|
+
this.sigDrawingContext.lineJoin = 'round';
|
|
346
|
+
// Clear canvas only if there are no existing strokes
|
|
347
|
+
if (this.allSigStrokes.length === 0) {
|
|
348
|
+
this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
// Reset drawing context when switching away from draw mode
|
|
353
|
+
// NOTE: We don't clear allStrokes here so drawing persists when returning to draw mode
|
|
354
|
+
if (this.mode !== 'draw' && this.sigDrawingContext) {
|
|
355
|
+
this.sigDrawingContext = null;
|
|
356
|
+
this.currentSigStroke = [];
|
|
357
|
+
this.lastSigPoint = null;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
setupInitialsCanvas() {
|
|
361
|
+
if (!this.initialsElement) {
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
// Set up drawing context when in draw mode
|
|
365
|
+
if (this.mode === 'draw') {
|
|
366
|
+
// Always get fresh context from the current canvas element
|
|
367
|
+
const initialsContext = this.initialsElement.getContext('2d');
|
|
368
|
+
// Only initialize if we don't have a context or it's different
|
|
369
|
+
if (initialsContext && initialsContext !== this.initialsDrawingContext) {
|
|
370
|
+
this.initialsDrawingContext = initialsContext;
|
|
371
|
+
// Configure drawing style for smooth signatures
|
|
372
|
+
this.initialsDrawingContext.strokeStyle = '#000000';
|
|
373
|
+
this.initialsDrawingContext.lineWidth = 2;
|
|
374
|
+
this.initialsDrawingContext.lineCap = 'round';
|
|
375
|
+
this.initialsDrawingContext.lineJoin = 'round';
|
|
376
|
+
// Clear canvas only if there are no existing strokes
|
|
377
|
+
if (this.allInitialsStrokes.length === 0) {
|
|
378
|
+
this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
// Reset drawing context when switching away from draw mode
|
|
383
|
+
// NOTE: We don't clear allStrokes here so drawing persists when returning to draw mode
|
|
384
|
+
if (this.mode !== 'draw' && this.initialsDrawingContext) {
|
|
385
|
+
this.initialsDrawingContext = null;
|
|
386
|
+
this.currentInitialsStroke = [];
|
|
387
|
+
this.lastInitialsPoint = null;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
clearSignatureCanvas() {
|
|
391
|
+
if (!this.signatureElement || !this.sigDrawingContext) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);
|
|
395
|
+
this.currentSigStroke = [];
|
|
396
|
+
this.allSigStrokes = [];
|
|
397
|
+
this.lastSigPoint = null;
|
|
398
|
+
this.hasDrawnSignature = false;
|
|
399
|
+
}
|
|
400
|
+
clearInitialsCanvas() {
|
|
401
|
+
if (!this.initialsElement || !this.initialsDrawingContext) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);
|
|
405
|
+
this.currentInitialsStroke = [];
|
|
406
|
+
this.allInitialsStrokes = [];
|
|
407
|
+
this.lastInitialsPoint = null;
|
|
408
|
+
this.hasDrawnSignature = false;
|
|
409
|
+
}
|
|
410
|
+
handleClearDrawing(e) {
|
|
411
|
+
e.stopPropagation();
|
|
412
|
+
e.preventDefault();
|
|
413
|
+
this.clearSignatureCanvas();
|
|
414
|
+
this.clearInitialsCanvas();
|
|
415
|
+
}
|
|
416
|
+
getSigCanvasCoordinates(e) {
|
|
417
|
+
if (!this.signatureElement) {
|
|
418
|
+
return { x: 0, y: 0 };
|
|
419
|
+
}
|
|
420
|
+
const rect = this.signatureElement.getBoundingClientRect();
|
|
421
|
+
// Calculate the scale factor between canvas size and display size
|
|
422
|
+
const scaleX = this.signatureElement.width / rect.width;
|
|
423
|
+
const scaleY = this.signatureElement.height / rect.height;
|
|
424
|
+
return {
|
|
425
|
+
x: (e.clientX - rect.left) * scaleX,
|
|
426
|
+
y: (e.clientY - rect.top) * scaleY,
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
getInitialsCanvasCoordinates(e) {
|
|
430
|
+
if (!this.initialsElement) {
|
|
431
|
+
return { x: 0, y: 0 };
|
|
432
|
+
}
|
|
433
|
+
const rect = this.initialsElement.getBoundingClientRect();
|
|
434
|
+
// Calculate the scale factor between canvas size and display size
|
|
435
|
+
const scaleX = this.initialsElement.width / rect.width;
|
|
436
|
+
const scaleY = this.initialsElement.height / rect.height;
|
|
437
|
+
return {
|
|
438
|
+
x: (e.clientX - rect.left) * scaleX,
|
|
439
|
+
y: (e.clientY - rect.top) * scaleY,
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
render() {
|
|
443
|
+
return (h("verdocs-dialog", { key: 'e0e6f91846971ced0a1110d70575d0328d1df7f2' }, h("div", { key: 'c43c511d79afa5fcdb8dc0e2f2c1b3c475dbb24c', slot: "heading", class: "heading" }, "Adopt Your Signature"), h("div", { key: '4d41a510e27c7ecf47015c5c78f12e3ace24dfe0', slot: "content", class: "content" }, h("div", { key: 'cbb0bb88d87d07a84eeb0f3c5889aa9191d1db46', style: { fontWeight: '300', color: '#242424', fontSize: '13px' } }, "Confirm your name, initials, and signature."), h("div", { key: '153019386dbce3681ca90a5878e8062d5ebd629f', class: { type: true, active: this.mode === 'type' } }, h("verdocs-text-input", { key: '21997a21554a74bf5f6664e18962e151b696977e', label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() })), h("div", { key: '74f5a84db5ae90e063f85a80e86d4b995e516a0c', style: { fontWeight: '400', color: '#242424', fontSize: '13px' } }, "Select a signature style"), h("div", { key: '05a83923186b180cc32a7060ddcf30e8f78aaeae', style: { display: 'flex', flexDirection: 'row', gap: '10px', marginBottom: '6px', alignItems: 'center', fontSize: '13px' } }, h("verdocs-radio-button", { key: '2475dd5c213b45339996799282a1b650cd9f4416', checked: this.mode === 'type', value: "type", name: "mode", onClick: () => (this.mode = 'type') }), h("label", { key: '84426bebb6184f146a82ca3df75afb377d57dc1e' }, "Typed with a keyboard")), h("div", { key: '299feecf4b50ffaeb6bbac8349adc90872acb3d0', style: { display: 'flex', flexDirection: 'row', gap: '10px', marginBottom: '6px', alignItems: 'center', fontSize: '13px' } }, h("verdocs-radio-button", { key: '7fc2262551d100b509065e3e61cb2606c3ee3ce4', checked: this.mode === 'draw', value: "draw", name: "mode", onClick: () => (this.mode = 'draw') }), h("label", { key: '6f6c89fedb6fdbef092dd0300945bc0ba723ecc9' }, "Drawn with touch, mouse, or stylus")), h("div", { key: 'd46dfe69a754bb9db55798af1918426ee1ed41d0', style: { fontSize: '13px', fontWeight: '400', marginTop: '8px' } }, "Signature Preview"), h("canvas", { key: 'b32ad9debae275905b188f50c747fb9100dc6915', ref: el => (this.signatureElement = el), width: "300", height: "79", onPointerDown: this.handleSigPointerDown, onPointerMove: this.handleSigPointerMove, onPointerUp: this.handleSigPointerUp, onPointerCancel: this.handleSigPointerCancel, style: { touchAction: 'none', cursor: 'crosshair' } }), h("div", { key: 'f86ac5d3273319bc6dbd573e8fe203819c4b2f47', style: { fontSize: '13px', fontWeight: '400', marginTop: '8px' } }, "Initials Preview"), h("canvas", { key: 'e989b879e932fe17ef4263b887841fb57bbc2307', ref: el => (this.initialsElement = el), width: "300", height: "79", onPointerDown: this.handleInitialsPointerDown, onPointerMove: this.handleInitialsPointerMove, onPointerUp: this.handleInitialsPointerUp, onPointerCancel: this.handleInitialsPointerCancel, style: { touchAction: 'none', cursor: 'crosshair' } }), h("div", { key: 'a5245a28f5d9c2b75e8a6033ae0f43935af3d8ab', class: "disclaimer" }, "By clicking \u00ABAdopt Signature\u00BB, I agree that the signature and initials above will be the electronic representation of my signature and initials for all purposes when I use them to sign documents. Applying them to a document is legally equivalent to signing with a pen on paper.")), h("div", { key: 'ca0a22af2bcac343af88ccc2a1bac7785ee26213', class: "footer", slot: "footer" }, h("div", { key: '4aa605c10723fff6cc5589f4a602d89e9ecd4ec6', class: "buttons" }, h("button", { key: '18fff440c52c241cb6c17cb095ee7fdb805172a0', class: "cancel", onClick: e => this.handleCancel(e) }, "Cancel"), h("button", { key: '1375add10925435c0ad870e3eea330edc202fb24', class: "proceed", onClick: e => this.handleAdopt(e), disabled: this.isAdoptButtonDisabled() }, "Adopt & Sign")))));
|
|
444
|
+
}
|
|
445
|
+
static get style() { return verdocsAdoptSignatureDialogCss; }
|
|
446
|
+
}, [256, "verdocs-adopt-signature-dialog", {
|
|
447
|
+
"name": [1],
|
|
448
|
+
"fontLoaded": [32],
|
|
449
|
+
"enteredName": [32],
|
|
450
|
+
"enteredInitials": [32],
|
|
451
|
+
"mode": [32],
|
|
452
|
+
"isDrawing": [32],
|
|
453
|
+
"hasDrawnSignature": [32]
|
|
454
|
+
}]);
|
|
455
|
+
function defineCustomElement() {
|
|
456
|
+
if (typeof customElements === "undefined") {
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
const components = ["verdocs-adopt-signature-dialog", "verdocs-dialog", "verdocs-help-icon", "verdocs-radio-button", "verdocs-text-input"];
|
|
460
|
+
components.forEach(tagName => { switch (tagName) {
|
|
461
|
+
case "verdocs-adopt-signature-dialog":
|
|
462
|
+
if (!customElements.get(tagName)) {
|
|
463
|
+
customElements.define(tagName, VerdocsAdoptSignatureDialog);
|
|
464
|
+
}
|
|
465
|
+
break;
|
|
466
|
+
case "verdocs-dialog":
|
|
467
|
+
if (!customElements.get(tagName)) {
|
|
468
|
+
defineCustomElement$4();
|
|
469
|
+
}
|
|
470
|
+
break;
|
|
471
|
+
case "verdocs-help-icon":
|
|
472
|
+
if (!customElements.get(tagName)) {
|
|
473
|
+
defineCustomElement$3();
|
|
474
|
+
}
|
|
475
|
+
break;
|
|
476
|
+
case "verdocs-radio-button":
|
|
477
|
+
if (!customElements.get(tagName)) {
|
|
478
|
+
defineCustomElement$2();
|
|
479
|
+
}
|
|
480
|
+
break;
|
|
481
|
+
case "verdocs-text-input":
|
|
482
|
+
if (!customElements.get(tagName)) {
|
|
483
|
+
defineCustomElement$1();
|
|
484
|
+
}
|
|
485
|
+
break;
|
|
486
|
+
} });
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export { VerdocsAdoptSignatureDialog as V, defineCustomElement as d };
|
|
490
|
+
//# sourceMappingURL=p--22mTpQu.js.map
|
|
491
|
+
|
|
492
|
+
//# sourceMappingURL=p--22mTpQu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p--22mTpQu.js","mappings":";;;;;;AAAA,MAAM,8BAA8B,GAAG,ghLAAghL;;MCU1iL,2BAA2B,iBAAAA,kBAAA,CAAA,MAAA,2BAAA,SAAAC,CAAA,CAAA;AAJxC,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAUE;;AAEG;AACK,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE;AAahB,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK;AAClB,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE;AACxB,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AAC5B,QAAA,IAAI,CAAA,IAAA,GAAoB,MAAM;AAC9B,QAAA,IAAS,CAAA,SAAA,GAAG,KAAK;AAC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AI,EAAC,QAAQ,EAAA,EAC/B,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAEhD,EAAA,QAAA,CAAA,EACT,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,qBAAqB,EAAE,EAAA,EAAA,cAAA,CAExF,CACL,CACF,CACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.scss?tag=verdocs-adopt-signature-dialog","src/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-adopt-signature-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n verdocs-dialog {\n border-radius: 4px;\n }\n\n .heading {\n color: #201f1e;\n font-weight: 400;\n padding-bottom: 0;\n border-bottom: none;\n }\n\n .content {\n display: flex;\n padding-top: 12px;\n flex-direction: column;\n }\n\n verdocs-text-input .input-label {\n color: #242424;\n font-size: 13px;\n font-weight: 400;\n }\n\n verdocs-text-input .input-element {\n border: 1px solid #e0e0e0;\n }\n\n verdocs-radio-button {\n transform: scale(0.9);\n }\n\n canvas {\n width: 100%;\n height: 79px;\n margin: 10px 0;\n border-radius: 4px;\n background: #fafafa;\n box-sizing: border-box;\n border: 1px solid #d1d1d1;\n }\n\n .disclaimer {\n padding: 8px 0;\n font-size: 11px;\n line-height: 14px;\n text-align: justify;\n color: rgba(0, 0, 0, 0.54);\n }\n\n .tabs {\n display: flex;\n flex-direction: row;\n margin: -20px -20px 0 -20px;\n border-bottom: 1px solid #eeeeee;\n\n .tab {\n flex: 1;\n gap: 4px;\n display: flex;\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\n padding: 6px 10px;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n &.active {\n background: #f9f5fe;\n border-bottom: 2px solid $border-color;\n }\n\n &:hover {\n color: $primary-color;\n }\n\n .icon {\n width: 16px;\n height: 16px;\n }\n }\n }\n\n // We use fixed heights for these sections to avoid layout shifts when switching tabs.\n .type {\n display: none;\n flex-direction: column;\n\n &.active {\n display: flex;\n }\n }\n\n .draw {\n height: 100px;\n display: none;\n margin-top: 20px;\n flex-direction: column;\n\n &.active {\n display: flex;\n }\n\n .draw-instructions {\n font-size: 13px;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 8px;\n text-align: center;\n }\n\n canvas {\n cursor: crosshair;\n touch-action: none;\n }\n\n .draw-actions {\n display: flex;\n justify-content: center;\n margin-top: 12px;\n\n .clear-button {\n border: 1px solid #d0d0d0;\n background-color: #ffffff;\n color: #333333;\n padding: 6px 16px;\n font-size: 13px;\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.2s ease;\n\n &:hover:not(:disabled) {\n background-color: #f5f5f5;\n border-color: #b0b0b0;\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n }\n }\n }\n\n .upload {\n height: 100px;\n display: none;\n margin-top: 20px;\n flex-direction: column;\n\n &.active {\n display: flex;\n }\n\n .upload-instructions {\n font-size: 13px;\n color: rgba(0, 0, 0, 0.6);\n margin-bottom: 8px;\n text-align: center;\n }\n\n .upload-actions {\n display: flex;\n justify-content: center;\n gap: 12px;\n margin-top: 8px;\n\n .upload-button {\n border: 1px solid $primary-color;\n background-color: $primary-color;\n color: #ffffff;\n padding: 8px 20px;\n font-size: 13px;\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.2s ease;\n\n &:hover {\n background-color: darken($primary-color, 10%);\n border-color: darken($primary-color, 10%);\n }\n }\n\n .clear-button {\n border: 1px solid #d0d0d0;\n background-color: #ffffff;\n color: #333333;\n padding: 8px 16px;\n font-size: 13px;\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.2s ease;\n\n &:hover:not(:disabled) {\n background-color: #f5f5f5;\n border-color: #b0b0b0;\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n }\n }\n\n .upload-filename {\n font-size: 12px;\n color: rgba(0, 0, 0, 0.6);\n text-align: center;\n margin-top: 8px;\n font-style: italic;\n }\n }\n\n /* TODO: We're getting positive feedback. Add this as a formal button variant. */\n .buttons {\n gap: 20px;\n display: flex;\n margin-top: 14px;\n flex-direction: row;\n justify-content: flex-end;\n\n button {\n flex: 1;\n border: 0;\n height: 38px;\n display: flex;\n color: #ffffff;\n font-size: 14px;\n //font-size: 16px;\n cursor: pointer;\n align-items: center;\n border-radius: 6px;\n justify-content: center;\n\n &.cancel {\n background-color: $verdocs-button-purple;\n }\n\n &.proceed {\n background-color: $verdocs-button-green;\n }\n\n &:disabled {\n background-color: $verdocs-button-disabled;\n }\n }\n }\n}\n","import {Component, Prop, h, Event, EventEmitter, State} from '@stencil/core';\n\n/**\n * Display a dialog that allows the user to specify a signature image, either by using a signature-font-generated image\n * based on their full name, or by hand-drawing their signature with a mouse or tablet.\n */\n@Component({\n tag: 'verdocs-adopt-signature-dialog',\n styleUrl: 'verdocs-adopt-signature-dialog.scss',\n})\nexport class VerdocsAdoptSignatureDialog {\n private signatureElement?: HTMLCanvasElement;\n private initialsElement?: HTMLCanvasElement;\n private sigDrawingContext?: CanvasRenderingContext2D;\n private initialsDrawingContext?: CanvasRenderingContext2D;\n\n /**\n * Initial signature text\n */\n @Prop() name: string = '';\n\n /**\n * Fired when the user completes the dialog and clicks Adopt. The event detail will contain a base64-encoded string\n * representation of the signature adopted.\n */\n @Event({composed: true}) next: EventEmitter<{signature: string; initials: string}>;\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n @State() fontLoaded = false;\n @State() enteredName: string = '';\n @State() enteredInitials: string = '';\n @State() mode: 'type' | 'draw' = 'type';\n @State() isDrawing = false;\n @State() hasDrawnSignature = false;\n\n private currentSigStroke: Array<{x: number; y: number}> = [];\n private allSigStrokes: Array<Array<{x: number; y: number}>> = [];\n private lastSigPoint: {x: number; y: number} | null = null;\n\n private currentInitialsStroke: Array<{x: number; y: number}> = [];\n private allInitialsStrokes: Array<Array<{x: number; y: number}>> = [];\n private lastInitialsPoint: {x: number; y: number} | null = null;\n\n componentWillLoad() {\n this.enteredName = this.name;\n this.enteredInitials = this.name\n .split(' ')\n .map(word => word.charAt(0).toUpperCase())\n .join('');\n\n const ds = new FontFace('Dancing Script', 'url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)');\n ds.load().then(font => {\n document.fonts.add(font);\n this.fontLoaded = true;\n });\n }\n\n componentDidLoad() {\n this.drawSignatureText();\n this.drawInitialsText();\n this.setupSignatureCanvas();\n this.setupInitialsCanvas();\n }\n\n componentDidUpdate() {\n this.drawSignatureText();\n this.drawInitialsText();\n this.setupSignatureCanvas();\n this.setupInitialsCanvas();\n\n // Redraw drawn signature when in draw mode\n if (this.mode === 'draw' && this.allSigStrokes.length > 0) {\n this.redrawDrawnSignature();\n }\n if (this.mode === 'draw' && this.allInitialsStrokes.length > 0) {\n this.redrawDrawnInitials();\n }\n }\n\n drawSignatureText() {\n if (!this.signatureElement || this.mode !== 'type') {\n return;\n }\n\n const sigCanvasWidth = this.signatureElement.width;\n const sigCanvasHeight = this.signatureElement.height;\n const sigContext = this.signatureElement.getContext('2d');\n sigContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);\n\n let fontSize = 100;\n let metrics: TextMetrics = sigContext.measureText(this.enteredName);\n do {\n fontSize -= 2;\n sigContext.font = `${fontSize}px Dancing Script`;\n metrics = sigContext.measureText(this.enteredName);\n } while (metrics.width > sigCanvasWidth - 32 && metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent > sigCanvasHeight - 24);\n\n sigContext.textAlign = 'center';\n sigContext.textBaseline = 'middle';\n sigContext.font = `${fontSize}px Dancing Script`;\n sigContext.fillText(this.enteredName, this.signatureElement.width / 2, this.signatureElement.height / 2);\n }\n\n drawInitialsText() {\n if (!this.initialsElement || this.mode !== 'type') {\n return;\n }\n\n const initialsCanvasWidth = this.initialsElement.width;\n const initialsCanvasHeight = this.initialsElement.height;\n const context = this.initialsElement.getContext('2d');\n context.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);\n\n let fontSize = 100;\n let metrics: TextMetrics = context.measureText(this.enteredInitials);\n do {\n fontSize -= 2;\n context.font = `${fontSize}px Dancing Script`;\n metrics = context.measureText(this.enteredInitials);\n } while (metrics.width > initialsCanvasWidth - 32 && metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent > initialsCanvasHeight - 24);\n\n context.textAlign = 'center';\n context.textBaseline = 'middle';\n context.font = `${fontSize}px Dancing Script`;\n context.fillText(this.enteredInitials, this.initialsElement.width / 2, this.initialsElement.height / 2);\n }\n\n redrawDrawnSignature() {\n if (!this.signatureElement || !this.sigDrawingContext || this.allSigStrokes.length === 0) {\n return;\n }\n\n // Clear the canvas first\n this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);\n\n // Redraw all strokes\n for (const stroke of this.allSigStrokes) {\n if (stroke.length === 0) {\n continue;\n }\n\n // Start the path at the first point\n this.sigDrawingContext.beginPath();\n this.sigDrawingContext.moveTo(stroke[0].x, stroke[0].y);\n\n // Draw smooth curves through all points in the stroke\n for (let i = 1; i < stroke.length; i++) {\n const currentPoint = stroke[i];\n const previousPoint = stroke[i - 1];\n\n // Use quadratic curves for smooth lines\n const midPoint = {\n x: (previousPoint.x + currentPoint.x) / 2,\n y: (previousPoint.y + currentPoint.y) / 2,\n };\n\n this.sigDrawingContext.quadraticCurveTo(previousPoint.x, previousPoint.y, midPoint.x, midPoint.y);\n }\n\n // Draw to the last point\n if (stroke.length > 1) {\n const lastPoint = stroke[stroke.length - 1];\n this.sigDrawingContext.lineTo(lastPoint.x, lastPoint.y);\n }\n\n this.sigDrawingContext.stroke();\n }\n }\n\n redrawDrawnInitials() {\n if (!this.initialsElement || !this.initialsDrawingContext || this.allInitialsStrokes.length === 0) {\n return;\n }\n\n // Clear the canvas first\n this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);\n\n // Redraw all strokes\n for (const stroke of this.allInitialsStrokes) {\n if (stroke.length === 0) {\n continue;\n }\n\n // Start the path at the first point\n this.initialsDrawingContext.beginPath();\n this.initialsDrawingContext.moveTo(stroke[0].x, stroke[0].y);\n\n // Draw smooth curves through all points in the stroke\n for (let i = 1; i < stroke.length; i++) {\n const currentPoint = stroke[i];\n const previousPoint = stroke[i - 1];\n\n // Use quadratic curves for smooth lines\n const midPoint = {\n x: (previousPoint.x + currentPoint.x) / 2,\n y: (previousPoint.y + currentPoint.y) / 2,\n };\n\n this.initialsDrawingContext.quadraticCurveTo(previousPoint.x, previousPoint.y, midPoint.x, midPoint.y);\n }\n\n // Draw to the last point\n if (stroke.length > 1) {\n const lastPoint = stroke[stroke.length - 1];\n this.initialsDrawingContext.lineTo(lastPoint.x, lastPoint.y);\n }\n\n this.initialsDrawingContext.stroke();\n }\n }\n\n handleNameChange(e: any) {\n this.enteredName = e.target.value;\n this.enteredInitials = e.target.value\n .split(' ')\n .map(word => word.charAt(0).toUpperCase())\n .join('');\n }\n\n handleCancel(e: any) {\n e.stopPropagation();\n e.preventDefault();\n this.exit.emit();\n }\n\n handleAdopt(e: any) {\n e.stopPropagation();\n e.preventDefault();\n const signature = this.signatureElement.toDataURL('image/png');\n const initials = this.initialsElement.toDataURL('image/png');\n this.next.emit({signature, initials});\n }\n\n isAdoptButtonDisabled(): boolean {\n switch (this.mode) {\n case 'type':\n // Disable if no name has been entered\n return !this.enteredName || this.enteredName.trim().length === 0;\n case 'draw':\n // Disable if nothing has been drawn\n return !this.hasDrawnSignature || this.allSigStrokes.length === 0 || this.allInitialsStrokes.length === 0;\n default:\n return true;\n }\n }\n\n setupSignatureCanvas() {\n if (!this.signatureElement) {\n return;\n }\n\n // Set up drawing context when in draw mode\n if (this.mode === 'draw') {\n // Always get fresh context from the current canvas element\n const sigContext = this.signatureElement.getContext('2d');\n\n // Only initialize if we don't have a context or it's different\n if (sigContext && sigContext !== this.sigDrawingContext) {\n this.sigDrawingContext = sigContext;\n\n // Configure drawing style for smooth signatures\n this.sigDrawingContext.strokeStyle = '#000000';\n this.sigDrawingContext.lineWidth = 2;\n this.sigDrawingContext.lineCap = 'round';\n this.sigDrawingContext.lineJoin = 'round';\n\n // Clear canvas only if there are no existing strokes\n if (this.allSigStrokes.length === 0) {\n this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);\n }\n }\n }\n\n // Reset drawing context when switching away from draw mode\n // NOTE: We don't clear allStrokes here so drawing persists when returning to draw mode\n if (this.mode !== 'draw' && this.sigDrawingContext) {\n this.sigDrawingContext = null;\n this.currentSigStroke = [];\n this.lastSigPoint = null;\n }\n }\n\n setupInitialsCanvas() {\n if (!this.initialsElement) {\n return;\n }\n\n // Set up drawing context when in draw mode\n if (this.mode === 'draw') {\n // Always get fresh context from the current canvas element\n const initialsContext = this.initialsElement.getContext('2d');\n\n // Only initialize if we don't have a context or it's different\n if (initialsContext && initialsContext !== this.initialsDrawingContext) {\n this.initialsDrawingContext = initialsContext;\n\n // Configure drawing style for smooth signatures\n this.initialsDrawingContext.strokeStyle = '#000000';\n this.initialsDrawingContext.lineWidth = 2;\n this.initialsDrawingContext.lineCap = 'round';\n this.initialsDrawingContext.lineJoin = 'round';\n\n // Clear canvas only if there are no existing strokes\n if (this.allInitialsStrokes.length === 0) {\n this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);\n }\n }\n }\n\n // Reset drawing context when switching away from draw mode\n // NOTE: We don't clear allStrokes here so drawing persists when returning to draw mode\n if (this.mode !== 'draw' && this.initialsDrawingContext) {\n this.initialsDrawingContext = null;\n this.currentInitialsStroke = [];\n this.lastInitialsPoint = null;\n }\n }\n\n clearSignatureCanvas() {\n if (!this.signatureElement || !this.sigDrawingContext) {\n return;\n }\n\n this.sigDrawingContext.clearRect(0, 0, this.signatureElement.width, this.signatureElement.height);\n this.currentSigStroke = [];\n this.allSigStrokes = [];\n this.lastSigPoint = null;\n this.hasDrawnSignature = false;\n }\n\n clearInitialsCanvas() {\n if (!this.initialsElement || !this.initialsDrawingContext) {\n return;\n }\n\n this.initialsDrawingContext.clearRect(0, 0, this.initialsElement.width, this.initialsElement.height);\n this.currentInitialsStroke = [];\n this.allInitialsStrokes = [];\n this.lastInitialsPoint = null;\n this.hasDrawnSignature = false;\n }\n\n handleClearDrawing(e: any) {\n e.stopPropagation();\n e.preventDefault();\n this.clearSignatureCanvas();\n this.clearInitialsCanvas();\n }\n\n getSigCanvasCoordinates(e: PointerEvent): {x: number; y: number} {\n if (!this.signatureElement) {\n return {x: 0, y: 0};\n }\n\n const rect = this.signatureElement.getBoundingClientRect();\n\n // Calculate the scale factor between canvas size and display size\n const scaleX = this.signatureElement.width / rect.width;\n const scaleY = this.signatureElement.height / rect.height;\n\n return {\n x: (e.clientX - rect.left) * scaleX,\n y: (e.clientY - rect.top) * scaleY,\n };\n }\n\n getInitialsCanvasCoordinates(e: PointerEvent): {x: number; y: number} {\n if (!this.initialsElement) {\n return {x: 0, y: 0};\n }\n\n const rect = this.initialsElement.getBoundingClientRect();\n\n // Calculate the scale factor between canvas size and display size\n const scaleX = this.initialsElement.width / rect.width;\n const scaleY = this.initialsElement.height / rect.height;\n\n return {\n x: (e.clientX - rect.left) * scaleX,\n y: (e.clientY - rect.top) * scaleY,\n };\n }\n\n handleSigPointerDown = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.signatureElement || !this.sigDrawingContext) {\n return;\n }\n\n this.isDrawing = true;\n this.hasDrawnSignature = true;\n\n const point = this.getSigCanvasCoordinates(e);\n this.currentSigStroke = [point];\n this.lastSigPoint = point;\n\n // Start a new path\n this.sigDrawingContext.beginPath();\n this.sigDrawingContext.moveTo(point.x, point.y);\n\n // Capture pointer to ensure we get all events even if pointer leaves canvas\n this.signatureElement.setPointerCapture(e.pointerId);\n };\n\n handleSigPointerMove = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.isDrawing || !this.sigDrawingContext || !this.lastSigPoint) {\n return;\n }\n\n const point = this.getSigCanvasCoordinates(e);\n this.currentSigStroke.push(point);\n\n // Use quadratic curves for smooth drawing\n // The control point is the last point, and we draw to the midpoint\n const midPoint = {\n x: (this.lastSigPoint.x + point.x) / 2,\n y: (this.lastSigPoint.y + point.y) / 2,\n };\n\n this.sigDrawingContext.quadraticCurveTo(this.lastSigPoint.x, this.lastSigPoint.y, midPoint.x, midPoint.y);\n this.sigDrawingContext.stroke();\n\n this.lastSigPoint = point;\n };\n\n handleSigPointerUp = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.isDrawing || !this.sigDrawingContext) {\n return;\n }\n\n // Complete the stroke\n if (this.lastSigPoint && this.currentSigStroke.length > 0) {\n this.sigDrawingContext.lineTo(this.lastSigPoint.x, this.lastSigPoint.y);\n this.sigDrawingContext.stroke();\n }\n\n // Save the completed stroke\n if (this.currentSigStroke.length > 0) {\n this.allSigStrokes.push([...this.currentSigStroke]);\n }\n\n this.isDrawing = false;\n this.currentSigStroke = [];\n this.lastSigPoint = null;\n\n // Release pointer capture\n if (this.signatureElement) {\n this.signatureElement.releasePointerCapture(e.pointerId);\n }\n };\n\n handleSigPointerCancel = (e: PointerEvent) => {\n // Handle cases where drawing is interrupted (e.g., phone call, notification)\n this.isDrawing = false;\n this.currentSigStroke = [];\n this.lastSigPoint = null;\n\n if (this.signatureElement) {\n this.signatureElement.releasePointerCapture(e.pointerId);\n }\n };\n\n handleInitialsPointerDown = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.initialsElement || !this.initialsDrawingContext) {\n return;\n }\n\n this.isDrawing = true;\n this.hasDrawnSignature = true;\n\n const point = this.getInitialsCanvasCoordinates(e);\n this.currentInitialsStroke = [point];\n this.lastInitialsPoint = point;\n\n // Start a new path\n this.initialsDrawingContext.beginPath();\n this.initialsDrawingContext.moveTo(point.x, point.y);\n\n // Capture pointer to ensure we get all events even if pointer leaves canvas\n this.initialsElement.setPointerCapture(e.pointerId);\n };\n\n handleInitialsPointerMove = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.isDrawing || !this.initialsDrawingContext || !this.lastInitialsPoint) {\n return;\n }\n\n const point = this.getInitialsCanvasCoordinates(e);\n this.currentInitialsStroke.push(point);\n\n // Use quadratic curves for smooth drawing\n // The control point is the last point, and we draw to the midpoint\n const midPoint = {\n x: (this.lastInitialsPoint.x + point.x) / 2,\n y: (this.lastInitialsPoint.y + point.y) / 2,\n };\n\n this.initialsDrawingContext.quadraticCurveTo(this.lastInitialsPoint.x, this.lastInitialsPoint.y, midPoint.x, midPoint.y);\n this.initialsDrawingContext.stroke();\n\n this.lastInitialsPoint = point;\n };\n\n handleInitialsPointerUp = (e: PointerEvent) => {\n e.preventDefault();\n\n if (!this.isDrawing || !this.initialsDrawingContext) {\n return;\n }\n\n // Complete the stroke\n if (this.lastInitialsPoint && this.currentInitialsStroke.length > 0) {\n this.initialsDrawingContext.lineTo(this.lastInitialsPoint.x, this.lastInitialsPoint.y);\n this.initialsDrawingContext.stroke();\n }\n\n // Save the completed stroke\n if (this.currentInitialsStroke.length > 0) {\n this.allInitialsStrokes.push([...this.currentInitialsStroke]);\n }\n\n this.isDrawing = false;\n this.currentInitialsStroke = [];\n this.lastInitialsPoint = null;\n\n // Release pointer capture\n if (this.initialsElement) {\n this.initialsElement.releasePointerCapture(e.pointerId);\n }\n };\n\n handleInitialsPointerCancel = (e: PointerEvent) => {\n // Handle cases where drawing is interrupted (e.g., phone call, notification)\n this.isDrawing = false;\n this.currentInitialsStroke = [];\n this.lastInitialsPoint = null;\n\n if (this.initialsElement) {\n this.initialsElement.releasePointerCapture(e.pointerId);\n }\n };\n\n render() {\n return (\n <verdocs-dialog>\n <div slot=\"heading\" class=\"heading\">\n Adopt Your Signature\n </div>\n\n <div slot=\"content\" class=\"content\">\n <div style={{fontWeight: '300', color: '#242424', fontSize: '13px'}}>Confirm your name, initials, and signature.</div>\n\n <div class={{type: true, active: this.mode === 'type'}}>\n <verdocs-text-input label=\"Full Name\" value={this.enteredName} onInput={e => this.handleNameChange(e)} onClick={e => e.stopPropagation()} />\n </div>\n\n <div style={{fontWeight: '400', color: '#242424', fontSize: '13px'}}>Select a signature style</div>\n\n <div style={{display: 'flex', flexDirection: 'row', gap: '10px', marginBottom: '6px', alignItems: 'center', fontSize: '13px'}}>\n <verdocs-radio-button checked={this.mode === 'type'} value=\"type\" name=\"mode\" onClick={() => (this.mode = 'type')} />\n <label>Typed with a keyboard</label>\n </div>\n <div style={{display: 'flex', flexDirection: 'row', gap: '10px', marginBottom: '6px', alignItems: 'center', fontSize: '13px'}}>\n <verdocs-radio-button checked={this.mode === 'draw'} value=\"draw\" name=\"mode\" onClick={() => (this.mode = 'draw')} />\n <label>Drawn with touch, mouse, or stylus</label>\n </div>\n\n {/*<div class=\"draw-actions\">*/}\n {/* <button class=\"clear-button\" onClick={e => this.handleClearDrawing(e)} disabled={!this.hasDrawnSignature}>*/}\n {/* Clear*/}\n {/* </button>*/}\n {/*</div>*/}\n\n <div style={{fontSize: '13px', fontWeight: '400', marginTop: '8px'}}>Signature Preview</div>\n <canvas\n ref={el => (this.signatureElement = el as HTMLCanvasElement)}\n width=\"300\"\n height=\"79\"\n onPointerDown={this.handleSigPointerDown}\n onPointerMove={this.handleSigPointerMove}\n onPointerUp={this.handleSigPointerUp}\n onPointerCancel={this.handleSigPointerCancel}\n style={{touchAction: 'none', cursor: 'crosshair'}}\n />\n\n <div style={{fontSize: '13px', fontWeight: '400', marginTop: '8px'}}>Initials Preview</div>\n <canvas\n ref={el => (this.initialsElement = el as HTMLCanvasElement)}\n width=\"300\"\n height=\"79\"\n onPointerDown={this.handleInitialsPointerDown}\n onPointerMove={this.handleInitialsPointerMove}\n onPointerUp={this.handleInitialsPointerUp}\n onPointerCancel={this.handleInitialsPointerCancel}\n style={{touchAction: 'none', cursor: 'crosshair'}}\n />\n\n <div class=\"disclaimer\">\n By clicking «Adopt Signature», I agree that the signature and initials above will be the electronic representation of my signature and initials for all purposes when I\n use them to sign documents. Applying them to a document is legally equivalent to signing with a pen on paper.\n </div>\n </div>\n\n <div class=\"footer\" slot=\"footer\">\n <div class=\"buttons\">\n <button class=\"cancel\" onClick={e => this.handleCancel(e)}>\n Cancel\n </button>\n <button class=\"proceed\" onClick={e => this.handleAdopt(e)} disabled={this.isAdoptButtonDisabled()}>\n Adopt & Sign\n </button>\n </div>\n </div>\n </verdocs-dialog>\n );\n }\n}\n"],"version":3}
|