@verdocs/web-sdk 4.2.139 → 4.2.141
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-button_3.cjs.entry.js +5 -5
- package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +16 -9
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +2 -2
- 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-file-chooser_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview_9.cjs.entry.js +9 -6
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-role-properties.cjs.entry.js +8 -8
- 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-templates-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
- package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
- package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +3 -3
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-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-box/verdocs-search-box.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +11 -8
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +12 -2
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +16 -8
- 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-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-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -8
- 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/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
- package/dist/components/verdocs-button-panel2.js +2 -2
- package/dist/components/verdocs-button2.js +1 -1
- package/dist/components/verdocs-checkbox2.js +1 -1
- package/dist/components/verdocs-component-error2.js +1 -1
- package/dist/components/verdocs-contact-picker2.js +17 -9
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-dropdown2.js +1 -1
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +6 -6
- package/dist/components/verdocs-file-chooser2.js +1 -1
- package/dist/components/verdocs-help-icon2.js +1 -1
- package/dist/components/verdocs-initial-dialog2.js +1 -1
- package/dist/components/verdocs-kba-dialog2.js +1 -1
- package/dist/components/verdocs-loader2.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-organization-card.js +1 -1
- package/dist/components/verdocs-pagination2.js +1 -1
- package/dist/components/verdocs-portal2.js +1 -1
- package/dist/components/verdocs-progress-bar2.js +1 -1
- package/dist/components/verdocs-quick-filter2.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-radio-button.js +1 -1
- package/dist/components/verdocs-search-box.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-select-input2.js +1 -1
- package/dist/components/verdocs-send2.js +11 -8
- package/dist/components/verdocs-signature-dialog2.js +1 -1
- package/dist/components/verdocs-spinner2.js +1 -1
- package/dist/components/verdocs-status-indicator2.js +2 -2
- package/dist/components/verdocs-switch2.js +2 -2
- package/dist/components/verdocs-table.js +2 -2
- package/dist/components/verdocs-tabs2.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-document-page2.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +8 -8
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +7 -7
- package/dist/components/verdocs-text-input2.js +3 -3
- package/dist/components/verdocs-toggle-button2.js +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-toolbar-icon2.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
- package/dist/esm/verdocs-button_3.entry.js +5 -5
- package/dist/esm/verdocs-checkbox_4.entry.js +3 -3
- package/dist/esm/verdocs-contact-picker_2.entry.js +17 -10
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +2 -2
- 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-file-chooser_2.entry.js +2 -2
- package/dist/esm/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-preview_9.entry.js +10 -7
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-box.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-spinner.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-table.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-role-properties.entry.js +8 -8
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +7 -7
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- 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-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_9.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-table.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties.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-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +2 -1
- package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +3 -1
- package/dist/verdocs-web-sdk/{p-4d071145.system.entry.js → p-06448ac6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2717a4d8.entry.js → p-0b345a45.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d775d674.system.entry.js → p-0cf80242.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a246dd98.system.entry.js → p-1129b2c6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a12ed59f.system.entry.js → p-1134fec8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3de99865.entry.js → p-11730369.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-221c1a1e.entry.js → p-1537c6d4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c56a9fd0.system.entry.js → p-1a0cbfcc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-329e5d8b.entry.js → p-1b55a23f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1e8c7927.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-069574d7.entry.js → p-1fd82865.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-80ddfda6.system.entry.js → p-226fc99e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-9567cba1.entry.js → p-2a97be57.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ab385138.entry.js → p-2becc4f4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c6de5539.entry.js → p-2eccd1db.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c621b381.entry.js → p-3457d011.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2844d252.system.entry.js → p-42d245bb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-101f3138.entry.js → p-44ecab31.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-458eda56.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-535f7ee3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-317f7a56.system.entry.js → p-5822f3c1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d1ec0c0e.entry.js → p-585fd9ff.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fed1d58a.system.entry.js → p-5a267f30.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-68a37526.entry.js → p-5ac7e3d0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aebb6858.system.entry.js → p-5f3f22ad.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-377858e5.system.entry.js → p-69f5136c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48227855.system.entry.js → p-6c9514db.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7fb3ba8a.system.entry.js → p-6ef0c33b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9458de83.system.entry.js → p-6efc761e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ea093336.system.entry.js → p-7349df8b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e15086a1.entry.js → p-79aa0c7b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-adbf48ae.system.entry.js → p-7f0af248.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9931d962.system.entry.js → p-7f33a64f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-93fc163b.entry.js → p-7f5ac627.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-815404c0.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4f864f00.system.entry.js → p-838d0ed1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-85184829.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0729a901.entry.js → p-88481111.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8e67affa.entry.js → p-90c60846.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ac677e8c.system.entry.js → p-95eaf936.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9750767c.entry.js → p-9745c048.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a91eadcc.entry.js → p-9b34699e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ab97a806.system.entry.js → p-a251441b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-aa66d378.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-96393d62.entry.js → p-adf6fde9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-682ce711.system.entry.js → p-aedfa605.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3af0fcae.system.entry.js → p-b12dc865.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-54ef19e9.system.entry.js → p-b1397670.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-53a3cdf3.system.entry.js → p-b5763ec0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4a20885d.entry.js → p-b581231f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2eca2eda.entry.js → p-c0087254.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-12a39d57.entry.js → p-cad5ac82.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bb523ebf.system.entry.js → p-d2fc4789.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-50271eca.entry.js → p-d51ca7f9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b4e6217b.system.entry.js → p-daa9193c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-26bd87bf.entry.js → p-e3e5e18c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b3c4d445.entry.js → p-e6242ac2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6a57c036.system.entry.js → p-ebf16d0c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5c9fd1e3.entry.js → p-f0bc99ba.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8a7b7815.system.entry.js → p-f85644ea.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad8dfb2b.system.entry.js → p-f9858e4a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-965464db.entry.js → p-ff50e207.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +4 -4
- package/dist/custom-elements.json +0 -2010
- package/dist/verdocs-web-sdk/p-0165edae.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0f677e5a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-28684a2b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3912a575.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a6be54b0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-acf595c9.entry.js +0 -1
@@ -31,7 +31,7 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsOkDialog e
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
render() {
|
34
|
-
return (h(Host, { key: '
|
34
|
+
return (h(Host, { key: 'cdad366f6824ef7e31b7a0b3d275220d68246a68', class: this.closed ? 'closed' : '' }, h("div", { key: '7b7de91ae3c9776a21e75bb7742472d718714b8f', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '9a505af291a9fb814b8e8f171e2e50602e53b1d0', class: "dialog" }, h("div", { key: '2ffa7892a2f8d287359b65ee698633ce5e75d78c', class: "heading" }, this.heading), h("div", { key: '06c1eead32adf2c37dab81ac2fe725d85a2bb73a', class: "content" }, h("div", { key: '8f0ccbf6d268ba16306e7946e214abeaf9166b63', class: "message", innerHTML: this.message }), h("div", { key: 'ac3f34bff19673dbe40d54fda0b8a0ee4665b662', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: '6178b12ce93665122dfc65ad858e37db103b859f', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
|
35
35
|
}
|
36
36
|
static get style() { return VerdocsOkDialogStyle0; }
|
37
37
|
}, [0, "verdocs-ok-dialog", {
|
@@ -26,7 +26,7 @@ const VerdocsOrganizationCard$1 = /*@__PURE__*/ proxyCustomElement(class Verdocs
|
|
26
26
|
console.log('Rendering org card', this.organization.thumbnail_url, this.organization);
|
27
27
|
const fallbackIcon = BusinessIcon;
|
28
28
|
const portalId = `verdocs-org-card-${this.organization.id}`;
|
29
|
-
return (h(Host, { key: '
|
29
|
+
return (h(Host, { key: 'd7b475ffa8a508828c58362f1d132313910db262', id: portalId }, this.organization.thumbnail_url ? h("img", { class: "icon", src: this.organization.thumbnail_url, alt: "Logo" }) : h("span", { class: "icon", innerHTML: fallbackIcon }), h("span", { key: '41371ad0ece9b5b13c455313658b3983facf5db5', class: "content" }, (_a = this.organization) === null || _a === void 0 ? void 0 : _a.name), h("verdocs-portal", { key: '37b667310a2124dc68a88a8b5732ecd4a87f9da1', anchor: portalId }, h("div", { key: '7f72d2f2c25314cdfa81721c6b6653989c7be72b', class: "verdocs-org-card-popup", style: { display: this.hovered ? 'block' : 'none' } }, this.organization.full_logo_url ? (h("div", { class: "popup-header-with-logo" }, h("img", { src: this.organization.full_logo_url, alt: "Logo" }), h("div", { class: "title" }, (_b = this.organization) === null || _b === void 0 ? void 0 : _b.name))) : (h("div", { class: "popup-header" }, h("span", { class: "status" }, h("span", { class: "icon", innerHTML: fallbackIcon })), h("span", { class: "title" }, (_c = this.organization) === null || _c === void 0 ? void 0 : _c.name))), h("div", { key: '478657fefd75b3adda14550ce7dd8117ee3f519f', class: "popup-body" }, h("div", { key: '213022879f5f5d2cab6cf415692e418911e1ee05', class: "field" }, h("strong", { key: '3e36b9b9ef2dd6b39dc313c77772b750d7bdb242' }, "Joined"), format(new Date(((_d = this.organization) === null || _d === void 0 ? void 0 : _d.created_at) || undefined), 'LLL d, Y')), this.organization.url && (h("div", { key: 'b28cb49fe0214c3f0851fe4609433ada584bf0be', class: "field" }, h("strong", { key: '9cdfd0da0dcb3d51149b1e0bc2f612e0f0edab6d' }, "Website"), h("a", { key: '74be8e66995435c5e6a071098ec1d4a6a7ca6f5f', href: (_e = this.organization) === null || _e === void 0 ? void 0 : _e.url, target: "_blank", rel: "nofollow" }, (_f = this.organization) === null || _f === void 0 ? void 0 : _f.url))))))));
|
30
30
|
}
|
31
31
|
static get style() { return VerdocsOrganizationCardStyle0; }
|
32
32
|
}, [0, "verdocs-organization-card", {
|
@@ -38,7 +38,7 @@ const VerdocsQuickFilter = /*@__PURE__*/ proxyCustomElement(class VerdocsQuickFi
|
|
38
38
|
const firstPage = Math.max(0, this.selectedPage - 2);
|
39
39
|
const numPages = this.itemCount > 0 ? Math.ceil(this.itemCount / this.perPage) : 0;
|
40
40
|
const pagesToDisplay = integerSequence(0, Math.ceil(this.itemCount / this.perPage)).slice(firstPage, firstPage + VISIBLE_PAGES);
|
41
|
-
return (h(Host, { key: '
|
41
|
+
return (h(Host, { key: '9cb81ab797997f6bedf65126e759a329e01b5d86' }, this.selectedPage > 0 && h(PageButton, { key: 'a172567f4adbaa02644a3c285344c0de4d2e5a33', page: 'first', selected: this.selectedPage, onClick: () => this.handleSelectPage(0) }), firstPage > 0 && h("div", { key: '97833b23734e758e9ae5627b756fecad2371037c', class: "ellipsis" }, "..."), pagesToDisplay.map(pageNumber => (h(PageButton, { page: pageNumber, selected: this.selectedPage, onClick: page => this.handleSelectPage(+page) }))), this.selectedPage < numPages - 1 && h("div", { key: '20dc5aa9111118ce1df8177d64c6fecff1d497e2', class: "ellipsis" }, "..."), this.selectedPage < numPages - 1 && h(PageButton, { key: '04b5d3fce4ba05f3acc2f24927c1bda6be7f34e7', page: 'last', selected: this.selectedPage, onClick: () => this.handleSelectPage(numPages - 1) })));
|
42
42
|
}
|
43
43
|
get el() { return this; }
|
44
44
|
static get style() { return VerdocsPaginationStyle0; }
|
@@ -75,7 +75,7 @@ const VerdocsPortal = /*@__PURE__*/ proxyCustomElement(class VerdocsPortal exten
|
|
75
75
|
this.moved ? this.portal.remove() : (this.moved = true);
|
76
76
|
}
|
77
77
|
render() {
|
78
|
-
return (h(Host, { key: '
|
78
|
+
return (h(Host, { key: '7379bf2578c769bf6112486912c7aa30b429fae1', ref: el => (this.element = el) }, h("slot", { key: '3b141548481e6dd23f47ed4e0db78e3931a5bdaa' })));
|
79
79
|
}
|
80
80
|
static get style() { return VerdocsPortalStyle0; }
|
81
81
|
}, [4, "verdocs-portal", {
|
@@ -14,7 +14,7 @@ const VerdocsProgressBar = /*@__PURE__*/ proxyCustomElement(class VerdocsProgres
|
|
14
14
|
render() {
|
15
15
|
const widthPercent = Math.ceil((100 * Math.min(this.percent, 100)) / 100);
|
16
16
|
console.log('Rendering progress bar', { widthPercent, label: this.label, showPercent: this.showPercent, percent: this.percent });
|
17
|
-
return (h(Host, { key: '
|
17
|
+
return (h(Host, { key: 'c57b566587b7fe5f95f7082964dc7d27c46008cb' }, h("div", { key: 'b44243b4c65cdd5ddb7a47028db07e47e1c9373b', class: "labels" }, this.label && h("div", { key: '58715d2cd0a47260618472ed06d3eeda095ea852', class: "label" }, this.label), this.showPercent && h("div", { key: '38b9fa2f2180eee29cdc6aff0562475c9d6cc943', class: "label" }, this.percent, "%")), h("div", { key: '1258f3696cb5852865e7d1af59bf2acb7acfda50', class: "bar" }, h("div", { key: 'eb1346d2b9f7ccce786c358ef247fd3ec62de67f', class: "slider", style: { width: `${widthPercent}%` } }))));
|
18
18
|
}
|
19
19
|
static get style() { return VerdocsProgressBarStyle0; }
|
20
20
|
}, [0, "verdocs-progress-bar", {
|
@@ -85,7 +85,7 @@ const VerdocsQuickFilter = /*@__PURE__*/ proxyCustomElement(class VerdocsQuickFi
|
|
85
85
|
const longestLabelWidth = renderedTextWidth((longestOption === null || longestOption === void 0 ? void 0 : longestOption.label) || 'FILLER', '14px Inter, Barlow, sans-serif');
|
86
86
|
const prefixWidth = renderedTextWidth(this.label, '14px Inter, Barlow, sans-serif');
|
87
87
|
const minWidth = `${longestLabelWidth + prefixWidth + 40}px`;
|
88
|
-
return (h(Host, { key: '
|
88
|
+
return (h(Host, { key: '63c979bc0e8b4b75f0608a7b5c11bf92de2375cc', class: { open: !!this.open }, style: { minWidth, display: 'inline-block' } }, h("div", { key: '785aac3556deaac0bbf55d8eb1f52e846448b44d', class: "control", onClick: e => this.toggleDropdown(e), onBlur: e => this.handleHideDropdown(e) }, h("div", { key: '521c951babae9d882402ffb94aeb4f40a3afe9c6', class: "title", ref: el => (this.dropdownButton = el) }, h("span", { key: '66f15637c5bcaa84326b0360b1cf0b9eeb34cc19', class: "prefix" }, this.label, ":"), selectedOption ? selectedOption.label : this.placeholder), h("div", { key: '8f5719750fd5fb40c8787d044904629ede1cb5a5', style: { flex: '1' } }), h("div", { key: '1f16f93487115760416fa9d7fa025e25da4e1cb9', class: "separator" }), h("div", { key: 'bf485d08eccf8e960d161007b3b16517f494f85f', class: "arrow", innerHTML: DropdownArrow, "aria-label": "Open Menu" })), h("div", { key: '8842f5609144f401a51124501544f0fb6c4700c9', class: "items", "aria-hidden": !this.open, ref: el => (this.dropdownMenu = el), style: { minWidth } }, (_c = this.options) === null || _c === void 0 ? void 0 : _c.map(option => option.label ? (h("button", { onClick: e => this.handleSelectOption(e, option), class: `option ${option.value === this.value ? 'selected' : ''}`, disabled: option.disabled }, option.label)) : (h("div", { class: "separator" }))))));
|
89
89
|
}
|
90
90
|
get el() { return this; }
|
91
91
|
static get style() { return VerdocsQuickFilterStyle0; }
|
@@ -21,7 +21,7 @@ const VerdocsQuickFunctions$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsQu
|
|
21
21
|
this.createDocument.emit();
|
22
22
|
}
|
23
23
|
render() {
|
24
|
-
return (h("div", { key: '
|
24
|
+
return (h("div", { key: '203c6c824345141c0a851d59290a9c13234d5469', class: "container" }, h("p", { key: 'ea66aa5b1b0c2f1da43b8d3dd3766d8b5d35c506', class: "title" }, "Quick Create"), h("button", { key: 'f6e63849639708920c8014001da50b0bdb2dc9c2', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '5c0850fc51e648bdc59e8afa56aa19698dd4a9bb', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
|
25
25
|
}
|
26
26
|
static get style() { return VerdocsQuickFunctionsStyle0; }
|
27
27
|
}, [0, "verdocs-quick-functions", {
|
@@ -13,7 +13,7 @@ const VerdocsRadioButton$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsRadio
|
|
13
13
|
this.disabled = false;
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: '67f3ed35f002dc6836a583735bc5394f13bd12d4', class: { disabled: this.disabled } }, h("input", { key: '791fd4eb3d0336065189160bc9e3597f8f2e5a4b', type: "radio", value: this.value, name: this.name, id: `verdocs-radio-button-${this.name}-${this.value}`, checked: this.checked, disabled: this.disabled }), h("label", { key: '508701c11f5ee5dc91fe5f96182b51e29451b910', htmlFor: `verdocs-radio-button-${this.name}-${this.value}` })));
|
17
17
|
}
|
18
18
|
static get style() { return VerdocsRadioButtonStyle0; }
|
19
19
|
}, [0, "verdocs-radio-button", {
|
@@ -44,7 +44,7 @@ const VerdocsSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSearchB
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
render() {
|
47
|
-
return (h("form", { key: '
|
47
|
+
return (h("form", { key: '0a0ff0dfa9ee6be3ded1c6b169d28d7a35804336', onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (h("span", { key: '1bc2808c678e4502a8a91dcb5cc4130ff433847a', class: "type" }, this.type, "s ", h("button", { key: 'd86c649ef1b0c18513474c85e62d362993fe13e7', class: "remove", innerHTML: CloseIcon, onClick: () => this.handleClearFilter() }))), h("input", { key: '848235e32539c294c4be6969cabc523a786c9524', type: "text", value: this.query, placeholder: this.placeholder, onInput: e => this.handleChange(e), onKeyUp: e => this.handleKeyUp(e), ref: el => (this.inputEl = el) }), h("button", { key: '8679d4b98adbfdc8b7b45c6faab5b6a7a8e18d95', onClick: e => this.handleSearch(e), class: "search" }, h("span", { key: '06d492ec322302918ac8e497eb83accd77812267', innerHTML: SearchIcon }), "Search")));
|
48
48
|
}
|
49
49
|
static get style() { return VerdocsSearchBoxStyle0; }
|
50
50
|
}, [0, "verdocs-search-box", {
|
@@ -10,7 +10,7 @@ const VerdocsSearchTabs$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSearch
|
|
10
10
|
this.selected = 'all';
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return h("div", { key: '
|
13
|
+
return h("div", { key: '1bf01d30c4826feab942e3481ce4162dbd4f096e' }, "\u00A0");
|
14
14
|
}
|
15
15
|
static get style() { return VerdocsSearchTabsStyle0; }
|
16
16
|
}, [0, "verdocs-search-tabs", {
|
@@ -13,7 +13,7 @@ const VerdocsSelectInput = /*@__PURE__*/ proxyCustomElement(class VerdocsSelectI
|
|
13
13
|
this.disabled = false;
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: 'e1e3c3714edcde76c0066d89113477b549e4dc03', class: "input-field" }, h("label", { key: '6d33d53a467a2f62a7752a03912ea49ba5445305' }, this.label ? h("div", { class: "input-label" }, this.label + ':') : h("div", null), h("select", { key: 'ae947da59ffc2e3e23cbfb4213e133ef39719297', class: "input-element", disabled: this.disabled }, this.options.map(option => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))))));
|
17
17
|
}
|
18
18
|
static get style() { return VerdocsSelectInputStyle0; }
|
19
19
|
}, [0, "verdocs-select-input", {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { VerdocsEndpoint, getOrganizationContacts,
|
2
|
+
import { VerdocsEndpoint, getOrganizationContacts, isValidEmail, createEnvelope, getRGBA, formatFullName } from '@verdocs/js-sdk';
|
3
3
|
import { g as getTemplateRoleStore, b as getRoleNames, a as getRoleIndex } from './TemplateRoleStore.js';
|
4
4
|
import { g as getTemplateStore } from './TemplateStore.js';
|
5
|
-
import { S as SDKError } from './errors.js';
|
6
5
|
import { V as VerdocsToast } from './Toast.js';
|
6
|
+
import { S as SDKError } from './errors.js';
|
7
7
|
import { d as defineCustomElement$8 } from './verdocs-button2.js';
|
8
8
|
import { d as defineCustomElement$7 } from './verdocs-component-error2.js';
|
9
9
|
import { d as defineCustomElement$6 } from './verdocs-contact-picker2.js';
|
@@ -117,7 +117,9 @@ const VerdocsSend = /*@__PURE__*/ proxyCustomElement(class VerdocsSend extends H
|
|
117
117
|
rolesAtLevel[level] || (rolesAtLevel[level] = []);
|
118
118
|
const id = `r-${level}-${rolesAtLevel[level].length}`;
|
119
119
|
rolesAtLevel[level].push({ ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name });
|
120
|
-
|
120
|
+
// TODO: Re-activate once SMS is re-enabled
|
121
|
+
// if (role.first_name && (isValidEmail(role.email) || isValidPhone(role.phone))) {
|
122
|
+
if (role.first_name && isValidEmail(role.email)) {
|
121
123
|
this.rolesCompleted[id] = { ...role, id, role_name: role.name, first_name: role.first_name, last_name: role.last_name };
|
122
124
|
}
|
123
125
|
});
|
@@ -179,11 +181,10 @@ const VerdocsSend = /*@__PURE__*/ proxyCustomElement(class VerdocsSend extends H
|
|
179
181
|
template_id: this.templateId,
|
180
182
|
name: ((_c = (_b = this.templateStore) === null || _b === void 0 ? void 0 : _b.state) === null || _c === void 0 ? void 0 : _c.name) || '',
|
181
183
|
environment: this.environment,
|
182
|
-
// TODO: Make optional in the SDK
|
183
184
|
initial_reminder: 0,
|
184
185
|
followup_reminders: 0,
|
185
186
|
recipients: Object.values(this.rolesCompleted),
|
186
|
-
// TODO
|
187
|
+
// TODO: Pre-filled fields support
|
187
188
|
fields: [],
|
188
189
|
};
|
189
190
|
console.log('[SEND] Creating envelope', details);
|
@@ -199,7 +200,7 @@ const VerdocsSend = /*@__PURE__*/ proxyCustomElement(class VerdocsSend extends H
|
|
199
200
|
.catch(e => {
|
200
201
|
var _a, _b, _c;
|
201
202
|
console.log('Send error', e);
|
202
|
-
VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.
|
203
|
+
VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Error creating envelope, please try again later.');
|
203
204
|
this.sending = false;
|
204
205
|
(_c = this.sendingEnvelope) === null || _c === void 0 ? void 0 : _c.emit({ sending: false });
|
205
206
|
});
|
@@ -216,9 +217,11 @@ const VerdocsSend = /*@__PURE__*/ proxyCustomElement(class VerdocsSend extends H
|
|
216
217
|
}
|
217
218
|
const levels = this.getLevels();
|
218
219
|
const roleNames = getRoleNames(this.roleStore);
|
219
|
-
const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email)
|
220
|
+
const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email));
|
221
|
+
// TODO: Reactivate once SMS is re-enabled
|
222
|
+
// const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email) || isValidPhone(recipient.phone));
|
220
223
|
const allRolesAssigned = rolesAssigned.length >= roleNames.length;
|
221
|
-
console.log('[SEND] Roles completed', this.rolesCompleted);
|
224
|
+
// console.log('[SEND] Roles completed', this.rolesCompleted);
|
222
225
|
return (h(Host, { class: { sendable: (_b = (_a = this.templateStore) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.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")), levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.getRolesAtLevel(level).map(role => {
|
223
226
|
var _a, _b, _c, _d;
|
224
227
|
const unknown = !role.email;
|
@@ -220,7 +220,7 @@ const VerdocsSignatureDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsSig
|
|
220
220
|
}
|
221
221
|
*/
|
222
222
|
render() {
|
223
|
-
return (h(Host, { key: '
|
223
|
+
return (h(Host, { key: '54cff7fb088365c049eb3e390f9f6d4610cfdf9d', onClick: e => this.handleCancel(e) }, h("div", { key: 'c191e54c5e29bcd2acba9012458d19e4d0b7f1ae', class: "dialog" }, h("div", { key: '28c47b528a9e78102b073a55937cdd2d4ffc46bb', class: "heading" }, "Create Your Signature"), h("div", { key: '783fa9f11e1053291038d03eb63c078080fbe6bc', class: "content" }, h("verdocs-text-input", { key: 'f616c58ad10fc2f6b928fd935c17ad94d9ef53dd', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '94527aaedcabde82ebcea83d4427b15aa9866fd2', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'aa9e8f88b99d77948051d7f88393dd1cf94f4534', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '9da4d0c5247df04d6f48e80877f424abc6eaa2a3', class: "buttons" }, h("verdocs-button", { key: '92fb167bbd635e2b4cb736a543c4d8c0a9cced9a', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '83128b52715ee1c5b1f2a19c3f8ac4343d54645c', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
|
224
224
|
}
|
225
225
|
static get style() { return VerdocsSignatureDialogStyle0; }
|
226
226
|
}, [0, "verdocs-signature-dialog", {
|
@@ -13,7 +13,7 @@ const VerdocsQuickFilter = /*@__PURE__*/ proxyCustomElement(class VerdocsQuickFi
|
|
13
13
|
this.mode = 'light';
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: 'b71bb590c4c908d7b0c9b6483ee8def10f327d2f', style: {
|
17
17
|
width: `${this.size}px`, //
|
18
18
|
height: `${this.size}px`,
|
19
19
|
flex: `0 0 ${this.size}px`,
|
@@ -7190,11 +7190,11 @@ const VerdocsStatusIndicator = /*@__PURE__*/ proxyCustomElement(class VerdocsSta
|
|
7190
7190
|
}
|
7191
7191
|
const icon = this.getStatusIcon(status);
|
7192
7192
|
const statusMessage = this.getStatusMessage(status);
|
7193
|
-
return (h(Host, { key: '
|
7193
|
+
return (h(Host, { key: '6312602f7079a3c8d77671570118712d5ee4ea0f', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
7194
7194
|
e.stopPropagation();
|
7195
7195
|
e.preventDefault();
|
7196
7196
|
this.envelope && this.toggleDropdown();
|
7197
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
7197
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '002f53e8f17930ffb75c282b3db8555578b69381', class: "icon", innerHTML: icon }), h("span", { key: 'b1c8f30923fe0b19910c692f8117d81a69eba410', class: "content" }, statusMessage), h("div", { key: 'c00a99383415570210692cdecbfd83673d18937e', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: '8067991e8781d12151e774eb761dfab613e77fe3', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
7198
7198
|
}
|
7199
7199
|
static get style() { return VerdocsStatusIndicatorStyle0; }
|
7200
7200
|
}, [0, "verdocs-status-indicator", {
|
@@ -13,13 +13,13 @@ const VerdocsSwitch = /*@__PURE__*/ proxyCustomElement(class VerdocsSwitch exten
|
|
13
13
|
this.disabled = false;
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h("button", { key: '
|
16
|
+
return (h("button", { key: 'b633ac84b8e37af94312e2803204934e0a734cbf', value: "on", type: "button", role: "switch", class: `switch ${this.theme} ${this.disabled ? 'disabled' : ''}`, "data-state": this.checked ? 'checked' : 'unchecked', "aria-checked": this.checked ? 'checked' : 'unchecked', onClick: () => {
|
17
17
|
var _a;
|
18
18
|
if (!this.disabled) {
|
19
19
|
this.checked = !this.checked;
|
20
20
|
(_a = this.checkedChange) === null || _a === void 0 ? void 0 : _a.emit(this.checked);
|
21
21
|
}
|
22
|
-
} }, h("span", { key: '
|
22
|
+
} }, h("span", { key: '81a536a86086881ef0c15b5bfa5408f4f9d6831e', "data-state": this.checked ? 'checked' : 'unchecked', class: "slider" })));
|
23
23
|
}
|
24
24
|
static get style() { return VerdocsSwitchStyle0; }
|
25
25
|
}, [0, "verdocs-switch", {
|
@@ -13,9 +13,9 @@ const VerdocsTable$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTable exten
|
|
13
13
|
this.data = [];
|
14
14
|
}
|
15
15
|
render() {
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: '237b25276ade798e6286880f02aa366e6bcd7a45', class: "table-wrapper" }, h("table", { key: '604ec40339c8c880fe68bc7cb49b5c84ff3161f3', class: "table" }, h("thead", { key: '355091e91fc735f8170d082b7a1e63118522d9dc' }, h("tr", { key: 'a826f1200533300f54b3340d3e45e62d8f4fb814', class: "row header-row" }, this.columns.map((col, i) => {
|
17
17
|
return (h("th", { class: `col header-col col-${i} col-${col.id}`, onClick: () => { var _a; return (_a = this.colHeaderClick) === null || _a === void 0 ? void 0 : _a.emit({ col }); }, innerHTML: col.renderHeader ? col.renderHeader(col) : col.header || col.id }));
|
18
|
-
}))), h("tbody", { key: '
|
18
|
+
}))), h("tbody", { key: 'f9bace73706b28bf610e897605c580319d4b05c2' }, this.data.map(row => (h("tr", { class: "row data-row", onClick: () => { var _a; return (_a = this.rowClick) === null || _a === void 0 ? void 0 : _a.emit({ row }); } }, this.columns.map((col, i) => {
|
19
19
|
return col.renderCell ? (h("td", { class: `col data-col col-${i} col-${col.id}`, innerHTML: col.renderCell(col, row) })) : (h("td", { class: `col data-col col-${i} col-${col.id}` }, row[col.id]));
|
20
20
|
}))))))));
|
21
21
|
}
|
@@ -16,7 +16,7 @@ const VerdocsTabs = /*@__PURE__*/ proxyCustomElement(class VerdocsTabs extends H
|
|
16
16
|
(_a = this.selectTab) === null || _a === void 0 ? void 0 : _a.emit({ tab: this.tabs[index], index });
|
17
17
|
}
|
18
18
|
render() {
|
19
|
-
return (h(Host, { key: '
|
19
|
+
return (h(Host, { key: '5e7051e19f0c1fb073f10f06444fb337a23748a2' }, this.tabs.map((tab, index) => (h("div", { class: `tab ${index === this.selectedTab ? 'active' : ''} ${tab.disabled ? 'disabled' : ''}`, onClick: tab.disabled ? () => { } : () => this.handleSelectTab(index) }, tab.label))), h("div", { key: 'f4b3a80b48a4a30e66110277a28eb448a63a7978', class: "flex flex-1" }), h("slot", { key: 'd4b4a76900d92bb044e8fe1777a1f096d58631f0' }, h("div", { key: 'cb5e9561a73f9044c94282cfb880ba68710a6de8' }))));
|
20
20
|
}
|
21
21
|
static get style() { return VerdocsTabsStyle0; }
|
22
22
|
}, [4, "verdocs-tabs", {
|
@@ -15,7 +15,7 @@ const VerdocsTemplateCard$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
|
|
15
15
|
}
|
16
16
|
render() {
|
17
17
|
var _a, _b, _c, _d;
|
18
|
-
return (h(Host, { key: '
|
18
|
+
return (h(Host, { key: 'd91ad349d43b29a364e20eb2d552eda22a684bfb' }, h("span", { key: '3921cd424720786785071f698758d770a0ba3cea', class: "name" }, this.template.name), h("span", { key: '229f1190a546c8bd588b1a4588b880a70832c06a', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: '725d4d03814909199ada357874e0383d2306e34d' }), h("div", { key: 'c95f57c02bb89f14b12c1a501a241d0f799aa8bc', class: "controls" }, h("div", { key: 'ae9c7b8bf7a9e85d31aa29cfbaad1d458df50ac8', class: "control" }, h("span", { key: 'ce4ec610d9f87c2b8b6db99c89a9a25554aa46a0', class: "icon", innerHTML: StarIcon }), h("span", { key: '7b7440269617317f3a31c87d7bb4e470f9d3af06', class: "value" }, this.template.star_counter)), h("div", { key: '2edfdee2eabff9fd18d48bdcc1e9c6813dde6bcb', class: "control secondary" }, h("span", { key: 'a97c594f26a3a9550e49426a05b3a6aa40789246', class: "icon", innerHTML: PagesIcon }), h("span", { key: 'bd7425bb723624484a4550de2fca1970b53de2c9', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: '7a5e4e2bf93af1ac58140189d64762b806a4d25c', class: "control secondary" }, h("span", { key: '108128b396a7190df160120a696dfa5af51b2491', class: "icon", innerHTML: EmailIcon }), h("span", { key: 'af3b4bf2c3f3c421ed7403c61fd3ea4978322a66', class: "value" }, this.template.counter)), h("span", { key: 'ae096641db6ac975e3874e7af6bf509dd331025b', class: "additional-controls", innerHTML: ActionsIcon }))));
|
19
19
|
}
|
20
20
|
static get style() { return VerdocsTemplateCardStyle0; }
|
21
21
|
}, [0, "verdocs-template-card", {
|
@@ -116,7 +116,7 @@ const VerdocsTemplateDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
|
|
116
116
|
}
|
117
117
|
render() {
|
118
118
|
const height = `${this.renderedHeight}px`;
|
119
|
-
return (h(Host, { key: '
|
119
|
+
return (h(Host, { key: 'a27edb5194ef483dba9825b8c04e7a334e1bba50', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
|
120
120
|
this.fieldStore
|
121
121
|
.get('fields')
|
122
122
|
.filter(field => field && field.page === this.pageNumber)
|
@@ -126,34 +126,34 @@ const VerdocsTemplateRoleProperties = /*@__PURE__*/ proxyCustomElement(class Ver
|
|
126
126
|
}
|
127
127
|
render() {
|
128
128
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
129
|
-
return (h(Host, { key: '
|
129
|
+
return (h(Host, { key: 'f8c0f4b3d408390e935c539583177c3ca16d9229' }, h("div", { key: 'dc1e94f660fd04fdd46949cea264665ffb13c386', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'b12d9663eb57894cadc189bd114c5e9394b5de73', class: "dialog" }, h("form", { key: 'b85e1cbb6cc84c0cede0a29ef33b51bb048b6b87', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: '76180529bea555a4a3368f590c2a111ecac5bfc9', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
|
130
130
|
? 'This role has fields assigned and can no longer be renamed.'
|
131
131
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
132
132
|
this.name = e.target.value;
|
133
133
|
this.dirty = true;
|
134
|
-
} }), h("div", { key: '
|
134
|
+
} }), h("div", { key: 'df08983c5f1362a22dc6e3aa2e63d956ff6d57c2', class: "row" }, h("div", { key: '2f19675fbf378cf95508d7ba92a67f655c046de6', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '1dbe2f47e8f8bbe06eed928fe1dea5aaac67b14d', value: this.type, options: [
|
135
135
|
{ label: 'Signer', value: 'signer' },
|
136
136
|
{ label: 'CC', value: 'cc' },
|
137
137
|
{ label: 'Approver', value: 'approver' },
|
138
138
|
], onInput: (e) => {
|
139
139
|
this.type = e.target.value;
|
140
140
|
this.dirty = true;
|
141
|
-
} }), h("verdocs-help-icon", { key: '
|
141
|
+
} }), h("verdocs-help-icon", { key: 'acb627ac84f551f546ab78d24257c67b66547a21', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: '46bbd9cf613f063b97507db5847018f2e1050e96', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
|
142
142
|
this.first_name = e.target.value;
|
143
143
|
this.dirty = true;
|
144
|
-
} }), h("verdocs-text-input", { key: '
|
144
|
+
} }), h("verdocs-text-input", { key: '235ec9a054944c50514b19f22dc55eeb118e78e2', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
|
145
145
|
this.last_name = e.target.value;
|
146
146
|
this.dirty = true;
|
147
|
-
} }), h("verdocs-text-input", { key: '
|
147
|
+
} }), h("verdocs-text-input", { key: '322a925e71166b74a1519a95efeaf458de5e4636', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
|
148
148
|
this.email = e.target.value;
|
149
149
|
this.dirty = true;
|
150
|
-
} }), h("verdocs-text-input", { key: '
|
150
|
+
} }), h("verdocs-text-input", { key: '3f38cfe49d5038659511bd78aaf1d7c198232ca7', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
|
151
151
|
this.phone = e.target.value;
|
152
152
|
this.dirty = true;
|
153
|
-
} }), h("div", { key: '
|
153
|
+
} }), h("div", { key: '36848d9cca848871dd9446cf610422d3bb3dec5a', class: "row" }, h("div", { key: 'a0981091c78c70485c667d7815bcf1265120f01a', class: "input-label" }, "May Delegate:"), h("div", { key: 'fe3b762847c9163b13df5cfd4515cc33b0b75881', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'e0dbfd9356f331030b659bf1a0e2d2e708eb1e9a', checked: this.delegator, onInput: (e) => {
|
154
154
|
this.delegator = e.target.checked;
|
155
155
|
this.dirty = true;
|
156
|
-
} })), h("verdocs-help-icon", { key: '
|
156
|
+
} })), h("verdocs-help-icon", { key: 'a9e562dec930345f38b80dc24ec3002f01730916', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '35f529ca8a2470bc6311e838e3185432b6a4f5f3', class: "buttons" }, h("button", { key: 'fd67b04b234ef3dd768b6fac3ebd1c45a8d62ae4', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: 'e050a318046ea51566f3d2c1b52a39ecf4001dd5', style: { flex: '1' } }), h("verdocs-button", { key: 'b4661018898ab310dc0e0e5738bd7707c056ee6d', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '978b78c58668af0b81a9de136f04c57bba4fce54', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
|
157
157
|
}
|
158
158
|
static get style() { return VerdocsTemplateRolePropertiesStyle0; }
|
159
159
|
}, [0, "verdocs-template-role-properties", {
|
@@ -43,7 +43,7 @@ const VerdocsTemplateStar = /*@__PURE__*/ proxyCustomElement(class VerdocsTempla
|
|
43
43
|
});
|
44
44
|
}
|
45
45
|
render() {
|
46
|
-
return (h(Host, { key: '
|
46
|
+
return (h(Host, { key: '7003637e9953f089bf0ddf9a128ab416103f64db' }, h("div", { key: '8b53c549e72e2b8432edc6d6de7d5ec4af746b37', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '66382354cf49ca5f0b01896983d34a3d27684041', class: "count" }, this.template.star_counter || '--')));
|
47
47
|
}
|
48
48
|
static get style() { return VerdocsTemplateStarStyle0; }
|
49
49
|
}, [0, "verdocs-template-star", {
|
@@ -11,7 +11,7 @@ const VerdocsTemplateTags$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
|
|
11
11
|
}
|
12
12
|
render() {
|
13
13
|
var _a;
|
14
|
-
return (h(Host, { key: '
|
14
|
+
return (h(Host, { key: '67dd899e37a2c181705a9abf3ea031869e93257b' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
15
15
|
}
|
16
16
|
static get style() { return VerdocsTemplateTagsStyle0; }
|
17
17
|
}, [0, "verdocs-template-tags", {
|
@@ -166,24 +166,24 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTem
|
|
166
166
|
// In addition to the server query we also filter locally. This provides a faster UI update
|
167
167
|
// while the onBlur re-queries the server for any new records that now qualify by the filter.
|
168
168
|
const locallyFilteredTemplates = !this.localNameFilter ? this.templates : this.templates.filter(t => t.name.toLowerCase().includes(this.localNameFilter.toLowerCase()));
|
169
|
-
return (h(Host, { key: '
|
169
|
+
return (h(Host, { key: '8a4c436255e24af2dd9bffaa108a3c62ea72accc' }, h("div", { key: 'a28f3b140c708fc9491a1567b7e0977d00b02b23', class: "header" }, h("div", { key: 'ecb9bf6ea174af19a155b3bffdd9f3df6e3d0452', class: "filter" }, h("verdocs-text-input", { key: 'b4f4046fee300d2deefe70246158cb6048844e75', id: "verdocs-filter-name", value: this.name, clearable: true, autocomplete: "off", placeholder: "Filter by Name...", onInput: (e) => (this.localNameFilter = e.target.value.trim()), onFocusout: (e) => {
|
170
170
|
var _a;
|
171
171
|
this.name = e.target.value.trim();
|
172
172
|
this.localNameFilter = e.target.value.trim();
|
173
173
|
(_a = this.changeName) === null || _a === void 0 ? void 0 : _a.emit(this.name);
|
174
|
-
} })), h("verdocs-quick-filter", { key: '
|
174
|
+
} })), h("verdocs-quick-filter", { key: 'c070d309bdf00dbdcb244929cbe3f16ce404656f', label: "Visibility", value: this.visibility, options: VisibilityFilters, onOptionSelected: e => {
|
175
175
|
var _a;
|
176
176
|
this.visibility = e.detail.value;
|
177
177
|
(_a = this.changeVisibility) === null || _a === void 0 ? void 0 : _a.emit(this.visibility);
|
178
|
-
} }), h("verdocs-quick-filter", { key: '
|
178
|
+
} }), h("verdocs-quick-filter", { key: 'ed6d35f557ae3c39498b020167e572024d8c2fa0', label: "Starred", value: this.starred, options: StarredFilters, onOptionSelected: e => {
|
179
179
|
var _a;
|
180
180
|
this.starred = e.detail.value;
|
181
181
|
(_a = this.changeStarred) === null || _a === void 0 ? void 0 : _a.emit(this.starred);
|
182
|
-
} }), h("verdocs-quick-filter", { key: '
|
182
|
+
} }), h("verdocs-quick-filter", { key: '59ae730527224140d6b4ae1f94878ccc3cc9e5e8', label: "Sort By", value: this.sort, options: SortOptions, onOptionSelected: e => {
|
183
183
|
var _a;
|
184
184
|
this.sort = e.detail.value;
|
185
185
|
(_a = this.changeSort) === null || _a === void 0 ? void 0 : _a.emit(this.sort);
|
186
|
-
} }), this.loading && h("verdocs-spinner", { key: '
|
186
|
+
} }), this.loading && h("verdocs-spinner", { key: '10c67eddf0cd00c85f636251b276f8fb6acc8a0c', mode: "dark", size: 24 }), h("div", { key: '615ebf459f9ee6c07a171393844add188b1af82a', style: { display: 'flex', flex: '1' } })), locallyFilteredTemplates.map(template => {
|
187
187
|
const dateToShow = this.sort === 'created_at' ? 'created_at' : this.sort === 'updated_at' ? 'updated_at' : 'last_used_at';
|
188
188
|
const date = template[dateToShow];
|
189
189
|
const MENU_OPTIONS = [];
|
@@ -230,9 +230,9 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTem
|
|
230
230
|
var _a;
|
231
231
|
(_a = this.viewTemplate) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template });
|
232
232
|
} }, h("div", { class: "inner" }, h("verdocs-template-star", { template: template, endpoint: this.endpoint }), h("div", { class: "spacer icon-spacer" }), h("div", { class: "name" }, template.name), h("div", { class: "spacer usage-spacer" }), h("div", { class: "usage" }, h("span", { innerHTML: EnvelopeIcon, title: "Usage Counter" }), template.counter || '--'), h("div", { class: "spacer last-used-spacer" }), h("div", { class: "last-used" }, dateToShow === 'created_at' && h("span", { innerHTML: CreatedIcon, title: "Created" }), dateToShow === 'updated_at' && h("span", { innerHTML: UpdatedIcon, title: "Last Updated" }), dateToShow === 'last_used_at' && h("span", { innerHTML: LastUsedIcon, title: "Last Used" }), date ? format(new Date(date), 'P') : 'Never'), h("div", { class: "spacer ownership-spacer" }), template.is_public && (h("div", { class: "ownership" }, h("span", { innerHTML: GlobeAltIcon }), " Public")), !template.is_public && !template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: LockClosedIcon }), " Private")), !template.is_public && template.is_personal && (h("div", { class: "ownership" }, h("span", { innerHTML: BuildingOfficeIcon }), " Shared")), h("verdocs-dropdown", { options: MENU_OPTIONS, onOptionSelected: e => this.handleOptionSelected(e.detail.id, template) }))));
|
233
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
233
|
+
}), !this.initiallyLoaded && (h("div", { key: '3163f2916038b79f02e5cbda0c73d8da99b7770c' }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "template-placeholder" }))))), this.initiallyLoaded && !this.templates.length && h("div", { key: 'ad467ef5f9d17286134252e0dac59584a670f381', class: "empty-text" }, "No matching templates found. Please adjust your filters and try again."), this.initiallyLoaded && this.templates.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
|
234
234
|
this.selectedPage = e.detail.selectedPage;
|
235
|
-
} }))) : (h("div", null)), this.confirmDelete && (h("verdocs-ok-dialog", { key: '
|
235
|
+
} }))) : (h("div", null)), this.confirmDelete && (h("verdocs-ok-dialog", { key: '523648491adbf8f81da3b3e2a239d671b3e087d6', heading: "Delete this Template?", message: "This operation cannot be undone.", onNext: () => this.deleteTemplate(this.confirmDelete), onExit: () => (this.confirmDelete = null), showCancel: true }))));
|
236
236
|
}
|
237
237
|
static get watchers() { return {
|
238
238
|
"sharing": ["handleSharingUpdated"],
|
@@ -34,7 +34,7 @@ const VerdocsTextInput = /*@__PURE__*/ proxyCustomElement(class VerdocsTextInput
|
|
34
34
|
.catch(e => console.log('Error copying to clipboard', e));
|
35
35
|
}
|
36
36
|
render() {
|
37
|
-
return (h(Host, { key: '
|
37
|
+
return (h(Host, { key: '3888ea9f7b49575fb01b020bd8a41fe3dc622f11', class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", { key: '365d2babe40c0c5a970e097824baf5c542a8175e' }, this.label && (h("div", { key: '61a8c93752c28975728497fa6fe0c19a95119a3d', class: "input-label" }, this.label + ':', this.required && h("span", { key: '6dc87a8f7271f2bd99fd642cacb5016c3ea48005', class: "required" }, "*"))), h("div", { key: '2e54cf4b26faaa6925ea15be392a4922ff53aafc', class: "input-container" }, h("input", { key: '5150d825629eed7a8cf586b669240a48d46c1929', type: this.type === 'password' && this.showingPw ? 'text' : this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, onBlur: (e) => { var _a; return (_a = this.blur) === null || _a === void 0 ? void 0 : _a.emit(e.target.value); }, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { key: 'eb7134d17f7fbe5167cb753460caf18c3587a03b', innerHTML: ClearIcon, class: "clear", onClick: () => {
|
38
38
|
// We need to allow the onInput event to fire first in case
|
39
39
|
// the user was focused on this field before clicking clear.
|
40
40
|
setTimeout(() => {
|
@@ -48,9 +48,9 @@ const VerdocsTextInput = /*@__PURE__*/ proxyCustomElement(class VerdocsTextInput
|
|
48
48
|
(_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
|
49
49
|
}, 50);
|
50
50
|
}, 50);
|
51
|
-
} })), this.type === 'password' && (h("span", { key: '
|
51
|
+
} })), this.type === 'password' && (h("span", { key: 'f4729b2f91b29b04a2caa3ff6a473e87311b3d03', innerHTML: this.showingPw ? EyeIcon : EyeSlashIcon, class: "toggle-pw", onClick: () => {
|
52
52
|
this.showingPw = !this.showingPw;
|
53
|
-
} })), !this.clearable && this.copyable && this.value && h("span", { key: '
|
53
|
+
} })), !this.clearable && this.copyable && this.value && h("span", { key: '892ec8f554a2e1e825ec8fd0b51c7a41f1bcc367', innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { key: 'c7612b57f351baa2dc243a2ca20d0d4a02388060', text: this.helpText }))));
|
54
54
|
}
|
55
55
|
get hostEl() { return this; }
|
56
56
|
static get style() { return VerdocsTextInputStyle0; }
|
@@ -25,7 +25,7 @@ const VerdocsToggleButton = /*@__PURE__*/ proxyCustomElement(class VerdocsToggle
|
|
25
25
|
(_a = this.toggle) === null || _a === void 0 ? void 0 : _a.emit({ active: newState });
|
26
26
|
}
|
27
27
|
render() {
|
28
|
-
return (h(Host, { key: '
|
28
|
+
return (h(Host, { key: '90f073b58425c92fade3871d8d605407f43dc671', class: `size-${this.size}` }, this.icon ? (h("button", { innerHTML: this.icon, class: { active: this._active }, onClick: e => this.handleToggle(e) })) : (h("button", { class: { active: this._active }, onClick: e => this.handleToggle(e) }, this.label))));
|
29
29
|
}
|
30
30
|
static get style() { return VerdocsToggleButtonStyle0; }
|
31
31
|
}, [0, "verdocs-toggle-button", {
|
@@ -16,7 +16,7 @@ const VerdocsToggle$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsToggle ext
|
|
16
16
|
this.selectedOption = ((_a = this.options) === null || _a === void 0 ? void 0 : _a.defaultSelection) || 0;
|
17
17
|
}
|
18
18
|
render() {
|
19
|
-
return (h("div", { key: '
|
19
|
+
return (h("div", { key: '003d84de26eefef7106ba2527cde291ed5373cac', class: "container" }, h("span", { key: '3fcab14cf397f8855baaddc885528765a0f4bf09', class: "label" }, `${this.options.label}:`), h("div", { key: '09ca127f48655ad1ce57bc17ea6c205b055ffebd', class: "buttons" }, this.options.buttons.map((button, index) => (h("button", { id: button.id, key: button.id, innerHTML: button.icon, class: index === this.selectedOption ? 'selected' : '', onClick: () => {
|
20
20
|
console.log('clicked', index);
|
21
21
|
this.selectedOption = index;
|
22
22
|
} }))))));
|
@@ -41,7 +41,7 @@ const VerdocsToolbarIcon = /*@__PURE__*/ proxyCustomElement(class VerdocsToolbar
|
|
41
41
|
// this.press?.emit();
|
42
42
|
// }
|
43
43
|
render() {
|
44
|
-
return (h(Host, { key: '
|
44
|
+
return (h(Host, { key: '2ff1baf8227efaa911d823914f2645d3b2d7d82e', class: {} }, h("div", { key: 'c13b7a5e10720450462e4c7229b1093e03e87808', "aria-describedby": this.containerId, class: "icon", innerHTML: this.icon, onMouseEnter: () => this.show(), onFocus: () => this.show(), onMouseLeave: () => this.hide(), onBlur: () => this.hide(), ref: el => (this.iconEl = el) }), h("div", { key: 'ac849c0f365f2570c94aff71dfbba9edd357b713', id: this.containerId, role: "tooltip", class: "tooltip", "data-popper-placement": this.placement, ref: el => (this.tooltip = el) }, this.text, h("div", { key: 'f4e4f13a0016c6deb1db21c13b2f0ca6fe6bea25', "data-popper-arrow": "true", class: "arrow" }))));
|
45
45
|
}
|
46
46
|
static get style() { return VerdocsToolbarIconStyle0; }
|
47
47
|
}, [0, "verdocs-toolbar-icon", {
|
@@ -82,7 +82,7 @@ const VerdocsUploadDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsUpload
|
|
82
82
|
render() {
|
83
83
|
var _a;
|
84
84
|
const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
|
85
|
-
return (h(Host, { key: '
|
85
|
+
return (h(Host, { key: 'afa5841540ceb409766827648bcc48c7bae6cda4' }, h("div", { key: 'bd26d331ac3bc7be352ab1695373f75d69fd792c', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '705662b801d76ef3f4449d5f3722e17f466e4609', class: "upload-dialog-content" }, h("div", { key: '0816ed0a1475713aa50054ad89c65f87500de125', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: 'c373b31539252aa5b7a3d8a9192e039d7231c43f' }, h("div", { key: 'da478e822f7e03e9bb1453cf6b94253264df322a', class: "current-label" }, "Current Attachment"), h("div", { key: '7ff31b740c32fde706e8388037b104517f36dd13', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '5af9047ab932ff3896099f54498f514081e9c88e', class: "attachment" }, h("div", { key: 'b3528446f4107953a1e8bbaeda9f77f6f90d543e', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '87ef88f1d7c74ad769cbf5f0b5c79cdf8e8828d5', class: "name" }, existingFile.name), h("div", { key: 'adb89b2ef87c98a046712637a977682ae5abfa14', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: '1996a92dc8f456276e82950cfea6367308b58bf8', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: 'd9ba97f559e20d8d56a005ecc98c1a137aecb8ed' }, "Drag and drop your files here"), h("p", { key: 'a1ea9f6e83e27d0c9f849b51949faeac3dfdeadc', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), h("verdocs-button", { key: 'd9e97782f69b70da1a4362010c0fce204c0c1c37', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), h("input", { key: '3c8b9ac05bfd8199db07d0c6ef33aeda672c02a7', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: 'c700b6423d7d413b6f8039e00e6e80efc8c5e1ac', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), !!this.errorMessage && h("div", { key: '2ee3dd69b224d7b3b7063e944ad95f83f52f97e8', class: "error" }, this.errorMessage), h("div", { key: '600a733497ac38b298e3251753cd96d573ed378a', class: "buttons" }, h("verdocs-button", { key: '5783ad39ab4511d8c992f38dce78fd9c3facb6a0', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'ff2b632b963df19f298c8d1e909b4aafd42fd238', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: '21df3093619d33a599fd6b486ba57d1da4f987ec', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
|
86
86
|
// So we don't close the upload dialog
|
87
87
|
e.preventDefault();
|
88
88
|
e.stopPropagation();
|