@verdocs/web-sdk 2.3.14 → 2.3.16
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/{EnvelopeStore-f8c301e1.js → EnvelopeStore-efc35530.js} +1 -1
- package/dist/cjs/{Envelopes-99ca79fe.js → Envelopes-0b9deb2c.js} +2 -6
- package/dist/cjs/{Profiles-54271244.js → Profiles-1a26e4eb.js} +0 -34
- package/dist/cjs/TemplateFieldStore-7449e5ff.js +24 -0
- package/dist/cjs/{TemplateStore-d9936a68.js → TemplateStore-0074c71d.js} +3 -1
- package/dist/cjs/{Types-ee5afdf8.js → Types-fb95ed6b.js} +2 -1
- package/dist/cjs/{VerdocsEndpoint-2d85658d.js → VerdocsEndpoint-8f298664.js} +197 -563
- package/dist/cjs/{_commonjsHelpers-0c557e26.js → _commonjsHelpers-1fbbf0eb.js} +0 -5
- package/dist/cjs/interact.min-a61b43b3.js +12 -0
- package/dist/cjs/ipc-test.cjs.entry.js +3 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-2ddfdf9e.js → utils-0916d10f.js} +3 -3
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +8 -34
- package/dist/cjs/verdocs-build.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +71 -45
- package/dist/cjs/{verdocs-contact-picker_2.cjs.entry.js → verdocs-contact-picker_3.cjs.entry.js} +78 -6
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -4
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-date.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +4 -5
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +10 -9
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +19 -10
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -1
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +10 -8
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +79 -0
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +70 -37
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +12 -9
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +92 -80
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.css +0 -0
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +181 -0
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.stories.js +20 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +20 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +6 -34
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +2 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +8 -4
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +4 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -0
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +1 -0
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +0 -1
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +2 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +27 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +1 -0
- 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.js +71 -44
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +80 -68
- package/dist/collection/utils/TemplateFieldStore.js +18 -0
- package/dist/collection/utils/TemplateStore.js +2 -0
- package/dist/collection/utils/Types.js +2 -1
- package/dist/components/Envelopes.js +2 -6
- package/dist/components/TemplateStore.js +21 -2
- package/dist/components/Types2.js +2 -1
- package/dist/components/VerdocsEndpoint.js +197 -562
- package/dist/components/_commonjsHelpers.js +1 -5
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index3.js +40 -29
- package/dist/components/interact.min.js +5 -6
- package/dist/components/verdocs-auth.js +12 -46
- package/dist/components/verdocs-build.js +22 -16
- package/dist/components/verdocs-contact-picker2.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +1 -0
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +0 -1
- package/dist/components/verdocs-field-textarea.js +5 -4
- package/dist/components/verdocs-field-textbox.js +14 -5
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +3 -1
- package/dist/components/verdocs-portal.d.ts +11 -0
- package/dist/components/verdocs-portal.js +6 -0
- package/dist/components/verdocs-portal2.js +93 -0
- package/dist/components/verdocs-preview2.js +1 -1
- package/dist/components/verdocs-search.js +2 -8
- package/dist/components/verdocs-send2.js +12 -5
- package/dist/components/verdocs-settings-organization2.js +22 -1
- package/dist/components/verdocs-sign.js +8 -4
- package/dist/components/verdocs-template-create2.js +2 -2
- package/dist/components/verdocs-template-field-properties2.js +71 -45
- package/dist/components/verdocs-template-fields2.js +83 -72
- package/dist/components/verdocs-template-roles2.js +4 -4
- package/dist/docs.json +156 -108
- package/dist/esm/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
- package/dist/esm/{Envelopes-21ffb899.js → Envelopes-627c5239.js} +2 -6
- package/dist/esm/{Profiles-4cc942ef.js → Profiles-d4df4d1c.js} +1 -32
- package/dist/esm/TemplateFieldStore-4f1b6332.js +21 -0
- package/dist/esm/{TemplateStore-018fc1db.js → TemplateStore-a2ebdaca.js} +3 -1
- package/dist/esm/Types-1628dc71.js +5 -0
- package/dist/esm/{VerdocsEndpoint-b011af25.js → VerdocsEndpoint-56fa3371.js} +197 -562
- package/dist/esm/{_commonjsHelpers-5ec8f9b7.js → _commonjsHelpers-8a9f3b18.js} +1 -5
- package/dist/esm/interact.min-6a7b19a1.js +10 -0
- package/dist/esm/ipc-test.entry.js +3 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-d269cea3.js → utils-ca3121df.js} +3 -3
- package/dist/esm/verdocs-activity-box.entry.js +2 -2
- package/dist/esm/verdocs-auth.entry.js +8 -34
- package/dist/esm/verdocs-build.entry.js +3 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +71 -45
- package/dist/esm/{verdocs-contact-picker_2.entry.js → verdocs-contact-picker_3.entry.js} +78 -7
- package/dist/esm/verdocs-envelope-document-page.entry.js +5 -5
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -4
- package/dist/esm/verdocs-envelopes-list.entry.js +5 -5
- package/dist/esm/verdocs-field-attachment.entry.js +4 -4
- package/dist/esm/verdocs-field-checkbox.entry.js +4 -4
- package/dist/esm/verdocs-field-date.entry.js +5 -5
- package/dist/esm/verdocs-field-dropdown.entry.js +4 -5
- package/dist/esm/verdocs-field-initial.entry.js +4 -4
- package/dist/esm/verdocs-field-payment.entry.js +4 -4
- package/dist/esm/verdocs-field-radio-button.entry.js +4 -4
- package/dist/esm/verdocs-field-signature.entry.js +4 -4
- package/dist/esm/verdocs-field-textarea.entry.js +10 -9
- package/dist/esm/verdocs-field-textbox.entry.js +19 -10
- package/dist/esm/verdocs-field-timestamp.entry.js +5 -5
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -1
- package/dist/esm/verdocs-pagination_2.entry.js +4 -4
- package/dist/esm/verdocs-preview_8.entry.js +10 -8
- package/dist/esm/verdocs-quick-functions_2.entry.js +74 -0
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +68 -35
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +12 -9
- package/dist/esm/verdocs-template-document-page_2.entry.js +5 -5
- package/dist/esm/verdocs-template-fields_4.entry.js +92 -80
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +5 -5
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
- package/dist/esm-es5/Envelopes-627c5239.js +1 -0
- package/dist/esm-es5/Profiles-d4df4d1c.js +1 -0
- package/dist/esm-es5/TemplateFieldStore-4f1b6332.js +1 -0
- package/dist/esm-es5/TemplateStore-a2ebdaca.js +1 -0
- package/dist/esm-es5/Types-1628dc71.js +1 -0
- package/dist/esm-es5/VerdocsEndpoint-56fa3371.js +1 -0
- package/dist/esm-es5/_commonjsHelpers-8a9f3b18.js +1 -0
- package/dist/esm-es5/interact.min-6a7b19a1.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-d269cea3.js → utils-ca3121df.js} +2 -2
- package/dist/esm-es5/verdocs-activity-box.entry.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_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_3.entry.js +1 -0
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.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 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.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-portal/verdocs-portal.d.ts +37 -0
- package/dist/types/components/{elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts → controls/verdocs-portal/verdocs-portal.stories.d.ts} +3 -6
- package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +4 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +0 -2
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +8 -5
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +4 -2
- package/dist/types/components.d.ts +58 -34
- package/dist/types/utils/TemplateFieldStore.d.ts +6 -0
- package/dist/types/utils/TemplateStore.d.ts +1 -1
- package/dist/types/utils/Types.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +2 -2
- package/dist/verdocs-web-sdk/{p-a35314fe.js → p-02a71e03.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7805f0e0.entry.js → p-035a3ce2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-035f6b38.js +1 -0
- package/dist/verdocs-web-sdk/{p-1406ffd2.entry.js → p-05e6bc91.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-10af7aec.system.entry.js → p-0685d939.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-084c23e4.system.js +1 -0
- package/dist/verdocs-web-sdk/p-0abf0058.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-12d00a0f.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-17598002.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-04d7d759.system.entry.js → p-17bf98f2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1a7aa04b.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1ba9f457.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-2f04fb38.system.entry.js → p-1cb878c8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-261d376e.system.entry.js → p-1e38b22f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ebc4142c.js → p-1f78be32.js} +1 -1
- package/dist/verdocs-web-sdk/p-22e0d2bc.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4f439363.entry.js → p-2ccbf54d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-319c00bd.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-32c40388.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-358aef29.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-77abc3ce.entry.js → p-37dfdc84.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-3cd0d440.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3e607686.js +1 -0
- package/dist/verdocs-web-sdk/{p-a171983b.system.entry.js → p-3f3807b0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8da1555a.entry.js → p-410c63e6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-429cad70.js +1 -0
- package/dist/verdocs-web-sdk/{p-3a702f79.entry.js → p-46624bec.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a0b02d83.system.entry.js → p-4d98f194.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-af3e9624.entry.js → p-4e47ed1c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4e74bb3c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-588d6cea.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e3a9d167.system.entry.js → p-59769c39.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-126ba5d2.system.entry.js → p-5aa77f6d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-5bf12ef8.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-39cbfe15.entry.js → p-6331d113.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b07a2a7.entry.js → p-637187de.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-df6a373e.system.entry.js → p-6685ff29.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6dd69d82.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-72978ba3.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-736fbb87.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-76f8c30a.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7b30c523.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7d5dbd9a.js +1 -0
- package/dist/verdocs-web-sdk/{p-eef694e8.entry.js → p-82d4afbf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-839f6f0d.js +1 -0
- package/dist/verdocs-web-sdk/{p-c694cf93.system.js → p-840827b7.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-62f090c7.system.entry.js → p-870707e8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8aae8d16.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-14aefeb2.system.entry.js → p-8af68516.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ace35be6.entry.js → p-8b0a5309.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8dc15d33.js +1 -0
- package/dist/verdocs-web-sdk/p-915883e6.js +1 -0
- package/dist/verdocs-web-sdk/{p-aa51514f.system.entry.js → p-9360b085.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a310f65b.entry.js → p-94009f45.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7e8d64fb.system.js → p-9615b087.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-9bf2d124.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-5c50a778.system.entry.js → p-9ceff040.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9fc06f7b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0df58c57.entry.js → p-a40b3946.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a627881e.system.js +1 -0
- package/dist/verdocs-web-sdk/p-aae6b4e0.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-35769d0c.system.entry.js → p-ac98f6f1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bd0bc3dd.system.entry.js → p-acc873cf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-50ac71f3.system.entry.js → p-b6231fd3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-609c7fab.system.entry.js → p-b648ab63.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a52a832b.system.entry.js → p-b7a815e9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b91de346.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0e5449d1.system.entry.js → p-ba653c39.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-bd9ba3b3.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3abfff14.entry.js → p-c80237f9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-cd20fb77.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-6bda7dce.entry.js → p-cf703fe4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d0a09719.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-d1ea580b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-37187046.system.entry.js → p-d39e4a26.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-137cedc8.entry.js → p-d59b6988.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d61fda4b.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d8cd6b59.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-b73415c3.system.entry.js → p-d99a05e4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-dc2ad047.js +1 -0
- package/dist/verdocs-web-sdk/{p-0f94d635.entry.js → p-dd2c2edc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79dc4f76.entry.js → p-e1bc55f8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e28878eb.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +1 -0
- package/dist/verdocs-web-sdk/p-e3ffc00f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e4dc3264.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cf765153.entry.js → p-eeca4c30.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-3f9fbf94.entry.js → p-f42c84f1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dd8845d4.system.entry.js → p-f6b7439f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +8 -7
- package/dist/cjs/interact.min-ba5cc513.js +0 -13
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +0 -220
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +0 -66
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +0 -187
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +0 -14
- package/dist/components/Organizations.js +0 -32
- package/dist/components/verdocs-search-activity.d.ts +0 -11
- package/dist/components/verdocs-search-activity.js +0 -6
- package/dist/components/verdocs-search-activity2.js +0 -170
- package/dist/esm/Types-de18e225.js +0 -4
- package/dist/esm/interact.min-cf83fa88.js +0 -11
- package/dist/esm/verdocs-quick-functions_3.entry.js +0 -214
- package/dist/esm-es5/Envelopes-21ffb899.js +0 -1
- package/dist/esm-es5/Profiles-4cc942ef.js +0 -1
- package/dist/esm-es5/TemplateStore-018fc1db.js +0 -1
- package/dist/esm-es5/Types-de18e225.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-b011af25.js +0 -1
- package/dist/esm-es5/_commonjsHelpers-5ec8f9b7.js +0 -1
- package/dist/esm-es5/interact.min-cf83fa88.js +0 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +0 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +0 -1
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +0 -33
- package/dist/verdocs-web-sdk/p-01166179.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-04580be0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0ad1fd33.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0d28cf05.js +0 -1
- package/dist/verdocs-web-sdk/p-15cb963a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-17d0e5f4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-23be436b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2ccbcfeb.system.js +0 -1
- package/dist/verdocs-web-sdk/p-30b4bd45.js +0 -1
- package/dist/verdocs-web-sdk/p-3305a941.system.js +0 -1
- package/dist/verdocs-web-sdk/p-343672f5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-409e992a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4a94ee00.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-51756c1b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5a91bf23.js +0 -1
- package/dist/verdocs-web-sdk/p-5df0fa7a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6307e6ae.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-66d66e2b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-76907130.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7b63017c.js +0 -1
- package/dist/verdocs-web-sdk/p-7fd7152d.system.js +0 -1
- package/dist/verdocs-web-sdk/p-89aa696c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-961708ac.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-983da2f6.js +0 -1
- package/dist/verdocs-web-sdk/p-9934f3ec.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a5425a9b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b17a20b8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b2d698f7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bb2c866b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bbee73c8.system.js +0 -1
- package/dist/verdocs-web-sdk/p-bfcf8ad2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cbbf849f.system.js +0 -1
- package/dist/verdocs-web-sdk/p-cbd0802f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-de60d3a8.js +0 -1
- package/dist/verdocs-web-sdk/p-eab67c09.js +0 -1
- package/dist/verdocs-web-sdk/p-eb595245.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ecf04564.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ee195e5e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f1257cd0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +0 -1
- package/dist/verdocs-web-sdk/p-fde6b724.entry.js +0 -1
@@ -0,0 +1,181 @@
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
2
|
+
const Z_INDEX = '10001';
|
3
|
+
/**
|
4
|
+
* Display a child component in a "portal", popping it out of the main DOM tree
|
5
|
+
* to allow it to escape the bounds set by its parent.
|
6
|
+
* @credit https://github.com/tomas-teston/stencil-portal for the basic
|
7
|
+
* technique. This has been altered in a few ways to make it more friendly
|
8
|
+
* to cases where there may be multiple portals on the page and provide more
|
9
|
+
* alignment options for the child to be displayed.
|
10
|
+
*/
|
11
|
+
export class VerdocsPortal {
|
12
|
+
constructor() {
|
13
|
+
this.moved = false;
|
14
|
+
this.anchor = undefined;
|
15
|
+
this.voffset = 0;
|
16
|
+
this.align = 'left';
|
17
|
+
}
|
18
|
+
handleScroll() {
|
19
|
+
this.calculatePosition();
|
20
|
+
}
|
21
|
+
handleResize() {
|
22
|
+
this.calculatePosition();
|
23
|
+
}
|
24
|
+
handleClick(e) {
|
25
|
+
var _a;
|
26
|
+
if (!this.element.contains(e.target)) {
|
27
|
+
(_a = this.clickAway) === null || _a === void 0 ? void 0 : _a.emit();
|
28
|
+
}
|
29
|
+
}
|
30
|
+
calculateLeft() {
|
31
|
+
const anchorEl = document.getElementById(this.anchor);
|
32
|
+
if (!anchorEl)
|
33
|
+
return 0;
|
34
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
35
|
+
if (this.align === 'left') {
|
36
|
+
return Math.max(anchorRect.left, 0);
|
37
|
+
}
|
38
|
+
if (this.align === 'right') {
|
39
|
+
return Math.max(anchorRect.left + anchorRect.width - this.portal.offsetWidth, 0);
|
40
|
+
}
|
41
|
+
return Math.max(anchorRect.left - this.portal.offsetWidth / 2 + anchorRect.width / 2, 0);
|
42
|
+
}
|
43
|
+
calculateTop() {
|
44
|
+
const anchorEl = document.getElementById(this.anchor);
|
45
|
+
if (!anchorEl)
|
46
|
+
return 0;
|
47
|
+
const anchorRect = anchorEl.getBoundingClientRect();
|
48
|
+
return anchorRect.bottom + this.voffset;
|
49
|
+
}
|
50
|
+
calculatePosition() {
|
51
|
+
this.portal.style.top = `${this.calculateTop()}px`;
|
52
|
+
this.portal.style.left = `${this.calculateLeft()}px`;
|
53
|
+
}
|
54
|
+
componentWillLoad() {
|
55
|
+
var _a;
|
56
|
+
const id = `${this.anchor}-portal`;
|
57
|
+
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
|
58
|
+
this.portal = document.createElement('div');
|
59
|
+
this.portal.setAttribute('id', id);
|
60
|
+
this.portal.style.zIndex = Z_INDEX;
|
61
|
+
this.portal.style.position = 'absolute';
|
62
|
+
document.body.append(this.portal);
|
63
|
+
}
|
64
|
+
componentDidLoad() {
|
65
|
+
this.portal.appendChild(this.element);
|
66
|
+
this.calculatePosition();
|
67
|
+
}
|
68
|
+
disconnectedCallback() {
|
69
|
+
this.moved ? this.portal.remove() : (this.moved = true);
|
70
|
+
}
|
71
|
+
render() {
|
72
|
+
return (h(Host, { ref: el => (this.element = el) }, h("slot", null)));
|
73
|
+
}
|
74
|
+
static get is() { return "verdocs-portal"; }
|
75
|
+
static get originalStyleUrls() {
|
76
|
+
return {
|
77
|
+
"$": ["verdocs-portal.scss"]
|
78
|
+
};
|
79
|
+
}
|
80
|
+
static get styleUrls() {
|
81
|
+
return {
|
82
|
+
"$": ["verdocs-portal.css"]
|
83
|
+
};
|
84
|
+
}
|
85
|
+
static get properties() {
|
86
|
+
return {
|
87
|
+
"anchor": {
|
88
|
+
"type": "string",
|
89
|
+
"mutable": false,
|
90
|
+
"complexType": {
|
91
|
+
"original": "string",
|
92
|
+
"resolved": "string",
|
93
|
+
"references": {}
|
94
|
+
},
|
95
|
+
"required": false,
|
96
|
+
"optional": false,
|
97
|
+
"docs": {
|
98
|
+
"tags": [],
|
99
|
+
"text": "Unique ID of the parent element to anchor to."
|
100
|
+
},
|
101
|
+
"attribute": "anchor",
|
102
|
+
"reflect": false
|
103
|
+
},
|
104
|
+
"voffset": {
|
105
|
+
"type": "number",
|
106
|
+
"mutable": false,
|
107
|
+
"complexType": {
|
108
|
+
"original": "number",
|
109
|
+
"resolved": "number",
|
110
|
+
"references": {}
|
111
|
+
},
|
112
|
+
"required": false,
|
113
|
+
"optional": false,
|
114
|
+
"docs": {
|
115
|
+
"tags": [],
|
116
|
+
"text": "Vertical offset from the parent."
|
117
|
+
},
|
118
|
+
"attribute": "voffset",
|
119
|
+
"reflect": false,
|
120
|
+
"defaultValue": "0"
|
121
|
+
},
|
122
|
+
"align": {
|
123
|
+
"type": "string",
|
124
|
+
"mutable": false,
|
125
|
+
"complexType": {
|
126
|
+
"original": "'left' | 'center' | 'right'",
|
127
|
+
"resolved": "\"center\" | \"left\" | \"right\"",
|
128
|
+
"references": {}
|
129
|
+
},
|
130
|
+
"required": false,
|
131
|
+
"optional": false,
|
132
|
+
"docs": {
|
133
|
+
"tags": [],
|
134
|
+
"text": "Horizontal alignment."
|
135
|
+
},
|
136
|
+
"attribute": "align",
|
137
|
+
"reflect": false,
|
138
|
+
"defaultValue": "'left'"
|
139
|
+
}
|
140
|
+
};
|
141
|
+
}
|
142
|
+
static get events() {
|
143
|
+
return [{
|
144
|
+
"method": "clickAway",
|
145
|
+
"name": "clickAway",
|
146
|
+
"bubbles": true,
|
147
|
+
"cancelable": true,
|
148
|
+
"composed": true,
|
149
|
+
"docs": {
|
150
|
+
"tags": [],
|
151
|
+
"text": ""
|
152
|
+
},
|
153
|
+
"complexType": {
|
154
|
+
"original": "void",
|
155
|
+
"resolved": "void",
|
156
|
+
"references": {}
|
157
|
+
}
|
158
|
+
}];
|
159
|
+
}
|
160
|
+
static get listeners() {
|
161
|
+
return [{
|
162
|
+
"name": "scroll",
|
163
|
+
"method": "handleScroll",
|
164
|
+
"target": "window",
|
165
|
+
"capture": true,
|
166
|
+
"passive": true
|
167
|
+
}, {
|
168
|
+
"name": "resize",
|
169
|
+
"method": "handleResize",
|
170
|
+
"target": "window",
|
171
|
+
"capture": true,
|
172
|
+
"passive": true
|
173
|
+
}, {
|
174
|
+
"name": "click",
|
175
|
+
"method": "handleClick",
|
176
|
+
"target": "window",
|
177
|
+
"capture": true,
|
178
|
+
"passive": false
|
179
|
+
}];
|
180
|
+
}
|
181
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { html } from 'lit-html';
|
2
|
+
export default {
|
3
|
+
title: 'Controls/Portal',
|
4
|
+
component: 'verdocs-portal',
|
5
|
+
args: {
|
6
|
+
align: 'left',
|
7
|
+
voffset: 0,
|
8
|
+
},
|
9
|
+
argTypes: {},
|
10
|
+
};
|
11
|
+
export const Portal = ({ align, voffset }) => html `
|
12
|
+
<div style="padding: 40px">
|
13
|
+
<div id="sample-tooltip" style="border: 1px solid green; padding: 3px 10px;">
|
14
|
+
Tooltip Anchor
|
15
|
+
<verdocs-portal anchor="sample-tooltip" .align=${align} .voffset=${voffset}>
|
16
|
+
<div style="border: 1px solid red; padding: 3px 10px;">Tooltip</div>
|
17
|
+
</verdocs-portal>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
`;
|
@@ -8,6 +8,7 @@ export class VerdocsOkDialog {
|
|
8
8
|
constructor() {
|
9
9
|
this.heading = '';
|
10
10
|
this.message = '';
|
11
|
+
this.buttonLabel = 'OK';
|
11
12
|
this.showCancel = false;
|
12
13
|
this.closed = false;
|
13
14
|
}
|
@@ -26,7 +27,7 @@ export class VerdocsOkDialog {
|
|
26
27
|
}
|
27
28
|
}
|
28
29
|
render() {
|
29
|
-
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label:
|
30
|
+
return (h(Host, { class: this.closed ? 'closed' : '' }, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, this.heading), h("div", { class: "content" }, h("div", { class: "message", innerHTML: this.message }), h("div", { class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
30
31
|
}
|
31
32
|
static get is() { return "verdocs-ok-dialog"; }
|
32
33
|
static get originalStyleUrls() {
|
@@ -77,6 +78,24 @@ export class VerdocsOkDialog {
|
|
77
78
|
"reflect": false,
|
78
79
|
"defaultValue": "''"
|
79
80
|
},
|
81
|
+
"buttonLabel": {
|
82
|
+
"type": "string",
|
83
|
+
"mutable": false,
|
84
|
+
"complexType": {
|
85
|
+
"original": "string",
|
86
|
+
"resolved": "string",
|
87
|
+
"references": {}
|
88
|
+
},
|
89
|
+
"required": false,
|
90
|
+
"optional": false,
|
91
|
+
"docs": {
|
92
|
+
"tags": [],
|
93
|
+
"text": "Override the \"OK\" button's label"
|
94
|
+
},
|
95
|
+
"attribute": "button-label",
|
96
|
+
"reflect": false,
|
97
|
+
"defaultValue": "'OK'"
|
98
|
+
},
|
80
99
|
"showCancel": {
|
81
100
|
"type": "boolean",
|
82
101
|
"mutable": false,
|
@@ -1,14 +1,10 @@
|
|
1
1
|
import { Token } from '@verdocs/js-sdk/Utils';
|
2
2
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
3
3
|
import { Auth, Profiles } from '@verdocs/js-sdk/Users';
|
4
|
-
import { Organizations } from '@verdocs/js-sdk/Organizations';
|
5
4
|
import { h } from '@stencil/core';
|
6
5
|
import { VerdocsToast } from '../../../utils/Toast';
|
7
6
|
import { SDKError } from '../../../utils/errors';
|
8
7
|
const RECHECK_INTERVAL = 5000;
|
9
|
-
const OkIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>`;
|
10
|
-
const TakenIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
11
|
-
const InfoIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>`;
|
12
8
|
const Industries = [
|
13
9
|
{ value: '', label: '' },
|
14
10
|
{ value: 'Accounting & Tax', label: 'Accounting & Tax' },
|
@@ -89,7 +85,6 @@ export class VerdocsAuth {
|
|
89
85
|
this.isAuthenticated = false;
|
90
86
|
this.displayMode = 'login';
|
91
87
|
this.orgname = '';
|
92
|
-
this.orgAvailable = 'UNKNOWN';
|
93
88
|
this.first = '';
|
94
89
|
this.last = '';
|
95
90
|
this.username = '';
|
@@ -152,13 +147,10 @@ export class VerdocsAuth {
|
|
152
147
|
firstName: this.first,
|
153
148
|
lastName: this.last,
|
154
149
|
orgName: this.orgname,
|
155
|
-
industry: this.industry,
|
156
|
-
size: this.companySize,
|
157
|
-
//
|
158
|
-
//
|
159
|
-
// coupon?: string;
|
160
|
-
reason: this.reason,
|
161
|
-
hearabout: this.howHear,
|
150
|
+
// industry: this.industry,
|
151
|
+
// size: this.companySize,
|
152
|
+
// reason: this.reason,
|
153
|
+
// hearabout: this.howHear,
|
162
154
|
})
|
163
155
|
.then(r => {
|
164
156
|
console.log('Result', r);
|
@@ -252,23 +244,6 @@ export class VerdocsAuth {
|
|
252
244
|
this.submitting = false;
|
253
245
|
});
|
254
246
|
}
|
255
|
-
async checkAvailability(name) {
|
256
|
-
this.checkingOrg = true;
|
257
|
-
try {
|
258
|
-
this.orgname = name;
|
259
|
-
const r = await Organizations.isOrgAvailable(this.endpoint, name);
|
260
|
-
this.orgAvailable = r.result;
|
261
|
-
console.log('response', this.orgAvailable);
|
262
|
-
// Stage: POST - https://2r8pilqa44.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
263
|
-
// Prod: POST - https://lb1is9fxoc.execute-api.us-east-1.amazonaws.com/organizations/check-availability
|
264
|
-
}
|
265
|
-
catch (e) {
|
266
|
-
// NOP
|
267
|
-
// We need to trap this error because we get a 400 if the org name is invalid.
|
268
|
-
this.orgAvailable = 'UNKNOWN';
|
269
|
-
}
|
270
|
-
this.checkingOrg = false;
|
271
|
-
}
|
272
247
|
render() {
|
273
248
|
if (!this.visible) {
|
274
249
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
@@ -277,10 +252,8 @@ export class VerdocsAuth {
|
|
277
252
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
278
253
|
}
|
279
254
|
if (this.displayMode === 'signup') {
|
280
|
-
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname
|
281
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("
|
282
|
-
console.log('blur');
|
283
|
-
} }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
255
|
+
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname;
|
256
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => (this.orgname = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
284
257
|
this.signupStep = 2;
|
285
258
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
286
259
|
}
|
@@ -377,7 +350,6 @@ export class VerdocsAuth {
|
|
377
350
|
"isAuthenticated": {},
|
378
351
|
"displayMode": {},
|
379
352
|
"orgname": {},
|
380
|
-
"orgAvailable": {},
|
381
353
|
"first": {},
|
382
354
|
"last": {},
|
383
355
|
"username": {},
|
@@ -149,7 +149,8 @@ export class VerdocsSend {
|
|
149
149
|
return (h(Host, { class: { sendable: (_d = (_c = this.store) === null || _c === void 0 ? void 0 : _c.state) === null || _d === void 0 ? void 0 : _d.is_sendable } }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
150
150
|
var _a, _b, _c, _d, _e, _f;
|
151
151
|
const unknown = !role.email;
|
152
|
-
|
152
|
+
const elId = `verdocs-send-recipient-${role.name}`;
|
153
|
+
return unknown ? (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }))))) : (h("div", { class: "recipient", style: { borderColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role), id: elId }, (_e = (_d = this.rolesCompleted[role.id]) === null || _d === void 0 ? void 0 : _d.full_name) !== null && _e !== void 0 ? _e : role.full_name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-portal", { anchor: elId, onClickAway: () => (this.showPickerForId = '') }, h("verdocs-contact-picker", { onExit: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_f = this.rolesCompleted[role.id]) !== null && _f !== void 0 ? _f : role, onSearchContacts: e => { var _a; return (_a = this.searchContacts) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })))));
|
153
154
|
})))), h("div", { class: `level level-done` }, this.getLevelIcon(this.levels.length), h("div", { class: "complete" }, "Signing Complete"))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", size: "small", variant: "outline", onClick: e => this.handleCancel(e), disabled: this.sending }), h("verdocs-button", { label: "Send", size: "small", disabled: !allRolesAssigned || this.sending, onClick: e => this.handleSend(e) }), this.sending && h("verdocs-spinner", null))));
|
154
155
|
}
|
155
156
|
static get is() { return "verdocs-send"; }
|
@@ -62,6 +62,7 @@ export class VerdocsSign {
|
|
62
62
|
this.submitting = false;
|
63
63
|
this.isDone = false;
|
64
64
|
this.showDone = false;
|
65
|
+
this.showLoadError = false;
|
65
66
|
this.finishLater = false;
|
66
67
|
this.showFinishLater = false;
|
67
68
|
this.agreed = false;
|
@@ -127,6 +128,7 @@ export class VerdocsSign {
|
|
127
128
|
catch (e) {
|
128
129
|
console.log('Error with signing session', e);
|
129
130
|
(_e = this.sdkError) === null || _e === void 0 ? void 0 : _e.emit(new SDKError(e.message, (_f = e.response) === null || _f === void 0 ? void 0 : _f.status, (_g = e.response) === null || _g === void 0 ? void 0 : _g.data));
|
131
|
+
this.showLoadError = true;
|
130
132
|
}
|
131
133
|
}
|
132
134
|
componentDidRender() {
|
@@ -253,9 +255,7 @@ export class VerdocsSign {
|
|
253
255
|
if (!e.detail) {
|
254
256
|
return;
|
255
257
|
}
|
256
|
-
console.log('Creating signature blob', e.detail);
|
257
258
|
const signatureBlob = await (await fetch(e.detail)).blob();
|
258
|
-
console.log('Created signature blob', signatureBlob);
|
259
259
|
return createSignature(this.endpoint, 'signature', signatureBlob) //
|
260
260
|
.then(async (newSignature) => {
|
261
261
|
console.log('Signature update result', newSignature);
|
@@ -303,6 +303,7 @@ export class VerdocsSign {
|
|
303
303
|
case 'textarea':
|
304
304
|
case 'date':
|
305
305
|
case 'attachment':
|
306
|
+
console.log('Date-type field valid', { required, result, output: !required || result !== '' });
|
306
307
|
return !required || result !== '';
|
307
308
|
case 'dropdown':
|
308
309
|
return !required || value !== '';
|
@@ -377,7 +378,6 @@ export class VerdocsSign {
|
|
377
378
|
if (invalidFields.length < 1) {
|
378
379
|
this.nextButtonLabel = 'Finish';
|
379
380
|
if (!this.nextSubmits) {
|
380
|
-
// this.showSubmitDialog = true;
|
381
381
|
this.nextSubmits = true;
|
382
382
|
}
|
383
383
|
}
|
@@ -393,7 +393,7 @@ export class VerdocsSign {
|
|
393
393
|
console.log('[SIGN] onfieldInput', e.detail, e.target.value);
|
394
394
|
// These field types don't emit fieldChange. Should we standardize on that? We don't tap "input" for fields like
|
395
395
|
// text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.
|
396
|
-
if (e.target.name.includes('
|
396
|
+
if (e.target.name.includes('checkbox_group') || e.target.name.includes('radio_button_group')) {
|
397
397
|
console.log('CB', e.target);
|
398
398
|
this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());
|
399
399
|
}
|
@@ -490,6 +490,9 @@ export class VerdocsSign {
|
|
490
490
|
})), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
|
491
491
|
this.showDone = false;
|
492
492
|
this.isDone = true;
|
493
|
+
} })), this.showLoadError && (h("verdocs-ok-dialog", { heading: "Error Loading Document", message: `Please check with the sender to ensure it has not been canceled, and try again later.`, buttonLabel: "Retry", onNext: () => {
|
494
|
+
this.showLoadError = false;
|
495
|
+
window.location.reload();
|
493
496
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), !this.agreed && (h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), ".")))))));
|
494
497
|
}
|
495
498
|
static get is() { return "verdocs-sign"; }
|
@@ -594,6 +597,7 @@ export class VerdocsSign {
|
|
594
597
|
"submitting": {},
|
595
598
|
"isDone": {},
|
596
599
|
"showDone": {},
|
600
|
+
"showLoadError": {},
|
597
601
|
"finishLater": {},
|
598
602
|
"showFinishLater": {},
|
599
603
|
"agreed": {},
|
package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
verdocs-contact-picker {
|
2
|
-
|
2
|
+
display: block;
|
3
|
+
border: 1px solid #ebebeb;
|
3
4
|
background-color: #ffffff;
|
5
|
+
font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
|
6
|
+
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
|
4
7
|
}
|
5
8
|
verdocs-contact-picker form {
|
6
9
|
background-color: #f5f5fa;
|
package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js
CHANGED
@@ -16,6 +16,7 @@ const ActivityIcons = {
|
|
16
16
|
visibility: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>`,
|
17
17
|
pencil: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>`,
|
18
18
|
mail: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
|
19
|
+
contact_mail: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
|
19
20
|
done: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>`,
|
20
21
|
send: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>`,
|
21
22
|
gesture: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>`,
|
@@ -25,7 +25,6 @@ export class VerdocsFieldDropdown {
|
|
25
25
|
}
|
26
26
|
async showSettingsPanel() {
|
27
27
|
const settingsPanel = document.getElementById(`verdocs-settings-panel-${this.field.name}`);
|
28
|
-
console.log('will hide', settingsPanel);
|
29
28
|
if (settingsPanel && settingsPanel.showPanel) {
|
30
29
|
settingsPanel.showPanel();
|
31
30
|
}
|
@@ -87,11 +87,12 @@ export class VerdocsFieldTextarea {
|
|
87
87
|
var _a, _b, _c, _d;
|
88
88
|
const settings = getFieldSettings(this.field);
|
89
89
|
const disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
90
|
+
const value = (settings === null || settings === void 0 ? void 0 : settings.result) || '';
|
90
91
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
91
92
|
if (this.done) {
|
92
93
|
return h(Host, { class: { done: this.done } }, settings.value);
|
93
94
|
}
|
94
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order,
|
95
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, disabled: disabled, name: this.field.name, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.inputEl = el) }, value), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("verdocs-template-field-properties", { templateId: this.templateid, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
95
96
|
var _a;
|
96
97
|
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
97
98
|
return this.hideSettingsPanel();
|
@@ -5,7 +5,6 @@ verdocs-field-textbox {
|
|
5
5
|
height: 15px;
|
6
6
|
display: block;
|
7
7
|
font-size: 11px;
|
8
|
-
position: relative;
|
9
8
|
letter-spacing: -0.2px;
|
10
9
|
background-color: transparent;
|
11
10
|
transform-origin: bottom left;
|
@@ -24,6 +23,7 @@ verdocs-field-textbox input {
|
|
24
23
|
font-size: 11px;
|
25
24
|
background: none;
|
26
25
|
font-weight: 500;
|
26
|
+
position: absolute;
|
27
27
|
transform-origin: 0 0;
|
28
28
|
box-sizing: border-box;
|
29
29
|
color: rgba(0, 0, 0, 0.87);
|
@@ -4,15 +4,18 @@ import { getRGBA } from '@verdocs/js-sdk/Utils/Colors';
|
|
4
4
|
import { updateField } from '@verdocs/js-sdk/Templates/Fields';
|
5
5
|
import { h, Host } from '@stencil/core';
|
6
6
|
import { getFieldSettings } from '../../../utils/utils';
|
7
|
+
import { getTemplateFieldStore } from '../../../utils/TemplateFieldStore';
|
7
8
|
const settingsIcon = '<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>';
|
8
9
|
/**
|
9
10
|
* Display a text input field.
|
10
11
|
*/
|
11
12
|
export class VerdocsFieldTextbox {
|
12
13
|
constructor() {
|
14
|
+
this.fieldStore = null;
|
13
15
|
this.endpoint = VerdocsEndpoint.getDefault();
|
14
16
|
this.templateid = '';
|
15
17
|
this.field = null;
|
18
|
+
this.fieldname = '';
|
16
19
|
this.disabled = false;
|
17
20
|
this.editable = false;
|
18
21
|
this.moveable = false;
|
@@ -37,6 +40,10 @@ export class VerdocsFieldTextbox {
|
|
37
40
|
settingsPanel.hidePanel();
|
38
41
|
}
|
39
42
|
}
|
43
|
+
async componentWillLoad() {
|
44
|
+
console.log('Loading field', this.field);
|
45
|
+
this.fieldStore = getTemplateFieldStore(this.templateid);
|
46
|
+
}
|
40
47
|
componentDidRender() {
|
41
48
|
interact.dynamicDrop(true);
|
42
49
|
if (this.editable) {
|
@@ -85,6 +92,8 @@ export class VerdocsFieldTextbox {
|
|
85
92
|
}
|
86
93
|
render() {
|
87
94
|
var _a, _b, _c, _d;
|
95
|
+
const f = this.fieldStore.get(this.fieldname);
|
96
|
+
console.log('rendering field', f);
|
88
97
|
const settings = getFieldSettings(this.field);
|
89
98
|
let disabled = (_b = (_a = this.disabled) !== null && _a !== void 0 ? _a : settings.disabled) !== null && _b !== void 0 ? _b : false;
|
90
99
|
const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);
|
@@ -101,7 +110,6 @@ export class VerdocsFieldTextbox {
|
|
101
110
|
return this.hideSettingsPanel();
|
102
111
|
}, onSettingsChanged: e => {
|
103
112
|
var _a;
|
104
|
-
console.log('here');
|
105
113
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
106
114
|
return this.hideSettingsPanel();
|
107
115
|
}, helpText: 'Text boxes may be used to capture simple text input. Participant-entered values will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must complete the field before proceeding.' })))));
|
@@ -183,6 +191,24 @@ export class VerdocsFieldTextbox {
|
|
183
191
|
},
|
184
192
|
"defaultValue": "null"
|
185
193
|
},
|
194
|
+
"fieldname": {
|
195
|
+
"type": "string",
|
196
|
+
"mutable": false,
|
197
|
+
"complexType": {
|
198
|
+
"original": "string",
|
199
|
+
"resolved": "string",
|
200
|
+
"references": {}
|
201
|
+
},
|
202
|
+
"required": false,
|
203
|
+
"optional": false,
|
204
|
+
"docs": {
|
205
|
+
"tags": [],
|
206
|
+
"text": "The name of the field to display."
|
207
|
+
},
|
208
|
+
"attribute": "fieldname",
|
209
|
+
"reflect": false,
|
210
|
+
"defaultValue": "''"
|
211
|
+
},
|
186
212
|
"disabled": {
|
187
213
|
"type": "boolean",
|
188
214
|
"mutable": false,
|
package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
2
|
-
import {
|
2
|
+
import { createTemplatev2 } from '@verdocs/js-sdk/Templates/Templates';
|
3
3
|
import { h, Host } from '@stencil/core';
|
4
4
|
import { SDKError } from '../../../utils/errors';
|
5
5
|
const unicodeNBSP = ' ';
|
@@ -46,7 +46,7 @@ export class VerdocsTemplateCreate {
|
|
46
46
|
this.creating = true;
|
47
47
|
this.progressLabel = 'Uploading...';
|
48
48
|
try {
|
49
|
-
const template = await
|
49
|
+
const template = await createTemplatev2(this.endpoint, { name: this.file.name, documents: [this.file] }, percent => {
|
50
50
|
if (percent >= 99) {
|
51
51
|
this.progressLabel = 'Processing...';
|
52
52
|
this.progressPercent = 100;
|