@verdocs/web-sdk 4.2.122 → 4.2.124
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/{utils-6a8c3390.js → utils-5accd019.js} +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +4 -2
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +31 -11
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_9.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +9 -9
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +43 -13
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +4 -0
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +35 -5
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +44 -12
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +4 -3
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +4 -2
- 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/fields/verdocs-field-attachment/verdocs-field-attachment.js +3 -4
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +4 -1
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +8 -1
- 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-sender/verdocs-template-sender.js +1 -1
- 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/utils/utils.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +4 -2
- package/dist/components/verdocs-envelopes-list.js +6 -6
- package/dist/components/verdocs-field-attachment2.js +3 -4
- package/dist/components/verdocs-field-date2.js +4 -1
- package/dist/components/verdocs-field-dropdown2.js +8 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-sign.js +45 -13
- package/dist/components/verdocs-status-indicator2.js +2 -2
- 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-sender2.js +1 -1
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +19 -6
- package/dist/components/verdocs-view2.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-8f3ace81.js → utils-6ecd6558.js} +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +4 -2
- package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
- package/dist/esm/verdocs-field-attachment_13.entry.js +31 -11
- package/dist/esm/verdocs-kba-dialog_2.entry.js +4 -4
- package/dist/esm/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_9.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-radio-button_3.entry.js +9 -9
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +44 -14
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-8f3ace81.js → utils-6ecd6558.js} +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.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_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_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_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.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-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.d.ts +3 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +2 -0
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +1 -1
- package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +1 -1
- package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +2 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/verdocs-web-sdk/p-02af8123.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ddb7b790.entry.js → p-12a39d57.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c43f5df7.system.entry.js → p-1dacf5e4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-f3d00620.entry.js → p-28684a2b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a3a3c2c.system.entry.js → p-43a7fce5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-188e327d.system.entry.js → p-4d071145.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c5b6c6b0.entry.js → p-5313e672.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-04cb12eb.system.js → p-5381847c.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cc5245b4.system.entry.js → p-53a3cdf3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8f3ed4da.system.entry.js → p-54526558.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-43b81463.entry.js → p-5c9fd1e3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5b7fd148.entry.js → p-5f61d897.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-98885cd8.entry.js → p-68a37526.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2510a25a.system.entry.js → p-6a57c036.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-70006d4d.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-aace040e.entry.js → p-77407be2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7cad3ec7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e621a28c.system.entry.js → p-7d7ca35a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-779a342d.system.entry.js → p-808f956b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6ab8ef68.system.entry.js → p-932ec5e5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c0018ff8.entry.js → p-965464db.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48c2f79b.entry.js → p-9750767c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b52b2533.system.entry.js → p-a246dd98.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e9513023.system.entry.js → p-a6be54b0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7f8c83da.entry.js → p-ab385138.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e723c6b1.entry.js → p-acf595c9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3128b508.system.entry.js → p-ad8dfb2b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0f7e164f.system.entry.js → p-aebb6858.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-147f2526.entry.js → p-bc9928a8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ce033ef.entry.js → p-c32f6de0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-55f49f87.entry.js → p-d1ec0c0e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d69410c4.system.entry.js → p-d775d674.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e0ffd00f.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3b6dfc9f.js → p-fae63f89.js} +1 -1
- package/dist/verdocs-web-sdk/p-fdba52be.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-826d6fb0.system.entry.js → p-fed1d58a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-1ef68dfb.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5f27e1c5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6cadd2b5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7764870c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a3bc322b.entry.js +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-a68c7262.js';
|
2
2
|
import { VerdocsEndpoint, getEnvelopes, integerSequence, getRecipientsWithActions, userCanCancelEnvelope, userCanAct, formatFullName, cancelEnvelope } from '@verdocs/js-sdk';
|
3
|
-
import { s as saveEnvelopesAsZip } from './utils-
|
3
|
+
import { s as saveEnvelopesAsZip } from './utils-6ecd6558.js';
|
4
4
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
5
5
|
import { S as SDKError } from './errors-887f1e88.js';
|
6
6
|
import './_commonjsHelpers-bdec4bbd.js';
|
@@ -196,18 +196,18 @@ const VerdocsEnvelopesList = class {
|
|
196
196
|
});
|
197
197
|
}
|
198
198
|
render() {
|
199
|
-
return (h(Host, { key: '
|
199
|
+
return (h(Host, { key: '16ef23582bd602e8f1d73d6dededfbb9034411a3' }, h("div", { key: '08a44cfcd5b9c4c99196192889cd04b2b28d16dd', class: "header" }, h("div", { key: '1e52bd468584ed21fec2e82fab55df929fa6a882', class: "filter" }, h("verdocs-text-input", { key: 'da6f8fe6d6c7c890a50d89e754f0f6e8cf0dc1f5', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
|
200
200
|
var _a;
|
201
201
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
202
202
|
this.match = e.target.value.trim();
|
203
203
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
204
|
-
} })), h("verdocs-quick-filter", { key: '
|
204
|
+
} })), h("verdocs-quick-filter", { key: '3c530e4b939ea9beb56fb6a8ef185aefda997b5c', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
205
205
|
this.view = e.detail.value;
|
206
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
206
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'c1dea5014f12031c2811a3a420638dcf9a629518', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
207
207
|
this.status = e.detail.value;
|
208
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
208
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '3709b032cc82bf52bcd1b0502bc320378d80321a', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
209
209
|
this.sort = e.detail.value;
|
210
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
210
|
+
} })), this.loading && h("verdocs-spinner", { key: '41543cc37ff98e5b6243e26ad557c4db702b3785', mode: "dark", size: 24 }), h("div", { key: '3cb1462b5701c9845097d667eda3fcef56c6adf2', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: 'ebd3fc5c23bd0c26bc0044dcbc26b967e70ae3da', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
|
211
211
|
var _a;
|
212
212
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
213
213
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -248,7 +248,7 @@ const VerdocsEnvelopesList = class {
|
|
248
248
|
break;
|
249
249
|
}
|
250
250
|
} }))));
|
251
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
251
|
+
}), !this.initiallyLoaded && (h("div", { key: '0d44a7b663ea9220fa43665f6245a78187ae6ef0', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'c024bc67a3360c9350b65bbd40948a63eb47f6bb', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
|
252
252
|
this.selectedPage = e.detail.selectedPage;
|
253
253
|
} }))) : (h("div", null))));
|
254
254
|
}
|
@@ -32,13 +32,11 @@ const VerdocsFieldAttachment = class {
|
|
32
32
|
};
|
33
33
|
this.handleUploadRemove = (e) => {
|
34
34
|
var _a;
|
35
|
-
console.log('removing attachment');
|
36
35
|
e.preventDefault();
|
37
36
|
e.stopPropagation();
|
38
|
-
|
37
|
+
this.dialogOpen = false;
|
39
38
|
this.selectedFile = null;
|
40
|
-
|
41
|
-
// this.dialogOpen = false;
|
39
|
+
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldname });
|
42
40
|
};
|
43
41
|
this.endpoint = VerdocsEndpoint.getDefault();
|
44
42
|
this.templateid = '';
|
@@ -58,6 +56,7 @@ const VerdocsFieldAttachment = class {
|
|
58
56
|
async focusField() {
|
59
57
|
// Our input field is fake, so we fake the flash too
|
60
58
|
this.focused = true;
|
59
|
+
this.dialogOpen = true;
|
61
60
|
setTimeout(() => {
|
62
61
|
this.focused = false;
|
63
62
|
}, 500);
|
@@ -218,6 +217,7 @@ const VerdocsFieldDate = class {
|
|
218
217
|
this.deleted = createEvent(this, "deleted", 7);
|
219
218
|
this.fieldStore = null;
|
220
219
|
this.roleStore = null;
|
220
|
+
this.picker = null;
|
221
221
|
this.templateid = '';
|
222
222
|
this.fieldname = '';
|
223
223
|
this.disabled = false;
|
@@ -233,8 +233,10 @@ const VerdocsFieldDate = class {
|
|
233
233
|
this.focused = false;
|
234
234
|
}
|
235
235
|
async focusField() {
|
236
|
+
var _a;
|
236
237
|
// Our input field is fake, so we fake the flash too
|
237
238
|
this.focused = true;
|
239
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.show();
|
238
240
|
setTimeout(() => {
|
239
241
|
this.focused = false;
|
240
242
|
}, 500);
|
@@ -248,7 +250,7 @@ const VerdocsFieldDate = class {
|
|
248
250
|
this.roleStore = getTemplateRoleStore(this.templateid);
|
249
251
|
}
|
250
252
|
componentDidLoad() {
|
251
|
-
new AirDatepicker(`#${this.containerId}`, {
|
253
|
+
this.picker = new AirDatepicker(`#${this.containerId}`, {
|
252
254
|
locale: default_1,
|
253
255
|
isMobile: true,
|
254
256
|
autoClose: true,
|
@@ -351,11 +353,18 @@ const VerdocsFieldDropdown = class {
|
|
351
353
|
render() {
|
352
354
|
const { templateid, fieldname = '', editable = false, done = false, disabled = false, focused, xscale = 1, yscale = 1 } = this;
|
353
355
|
const field = this.fieldStore.get('fields').find(field => field.name === fieldname);
|
354
|
-
|
356
|
+
let { required = false, role_name = '', value = '', label = '', options } = field || {};
|
355
357
|
const backgroundColor = getRGBA(getRoleIndex(this.roleStore, role_name));
|
356
358
|
if (done) {
|
357
359
|
return h(Host, { class: { done } }, value);
|
358
360
|
}
|
361
|
+
// TODO: Look for other places this mistaken assumption was made.
|
362
|
+
// Defaults only apply in destructuring if undefined. null doesn't trigger it.
|
363
|
+
options || (options = []);
|
364
|
+
if (!options.length) {
|
365
|
+
console.log('[DROPDOWN] Dropdown has no options, hiding field...', fieldname);
|
366
|
+
return h(Host, null);
|
367
|
+
}
|
359
368
|
return (h(Host, { class: { required, disabled, done, focused }, style: { backgroundColor } }, label && h("label", null, label), h("select", { disabled: disabled, onChange: e => this.handleChange(e) }, h("option", { value: "" }, "Select..."), options.map(option => (h("option", { value: option.id, selected: option.id === value }, option.label)))), editable && (h(Fragment, null, h("div", { id: `verdocs-settings-panel-trigger-${fieldname}`, style: { transform: `scale(${Math.floor((1 / xscale) * 1000) / 1000}, ${Math.floor((1 / yscale) * 1000) / 1000})` }, class: "settings-icon", innerHTML: SettingsIcon, onClick: (e) => {
|
360
369
|
e.stopPropagation();
|
361
370
|
this.showingProperties = !this.showingProperties;
|
@@ -1388,7 +1397,7 @@ const VerdocsSignatureDialog = class {
|
|
1388
1397
|
};
|
1389
1398
|
VerdocsSignatureDialog.style = VerdocsSignatureDialogStyle0;
|
1390
1399
|
|
1391
|
-
const verdocsUploadDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-upload-dialog{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}verdocs-upload-dialog .upload-dialog-content{width:320px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .current-label{margin:20px 0 5px 0}verdocs-upload-dialog .drop-target{opacity:1;width:100%;display:-ms-flexbox;display:flex;margin:20px 0;min-height:260px;padding:30px 15px;text-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;background-color:#f5f5f5;color:rgba(0, 0, 0, 0.54);border:2px dashed #979797}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;font-size:14px;overflow:hidden;font-weight:400;white-space:nowrap;text-overflow:ellipsis}";
|
1400
|
+
const verdocsUploadDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-upload-dialog{position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}verdocs-upload-dialog .upload-dialog-content{width:320px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .current-label{margin:20px 0 5px 0}verdocs-upload-dialog .drop-target{opacity:1;width:100%;display:-ms-flexbox;display:flex;margin:20px 0;min-height:260px;padding:30px 15px;text-align:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;background-color:#f5f5f5;color:rgba(0, 0, 0, 0.54);border:2px dashed #979797}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;font-size:14px;overflow:hidden;font-weight:400;white-space:nowrap;text-overflow:ellipsis}verdocs-upload-dialog .error{margin:0 0 20px 0;color:#cc0000}";
|
1392
1401
|
const VerdocsUploadDialogStyle0 = verdocsUploadDialogCss;
|
1393
1402
|
|
1394
1403
|
const TrashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" /></svg>`;
|
@@ -1399,10 +1408,12 @@ const VerdocsUploadDialog = class {
|
|
1399
1408
|
this.exit = createEvent(this, "exit", 7);
|
1400
1409
|
this.next = createEvent(this, "next", 7);
|
1401
1410
|
this.remove = createEvent(this, "remove", 7);
|
1411
|
+
this.maxSize = 20 * 1024 * 1024;
|
1402
1412
|
this.existingFile = undefined;
|
1403
1413
|
this.draggingOver = false;
|
1404
1414
|
this.confirmDelete = false;
|
1405
1415
|
this.selectedFiles = [];
|
1416
|
+
this.errorMessage = '';
|
1406
1417
|
}
|
1407
1418
|
handleCancel() {
|
1408
1419
|
this.exit.emit();
|
@@ -1428,12 +1439,20 @@ const VerdocsUploadDialog = class {
|
|
1428
1439
|
async handleDrop(e) {
|
1429
1440
|
e.preventDefault();
|
1430
1441
|
this.draggingOver = false;
|
1431
|
-
this.
|
1442
|
+
this.handleSetSelected(Array.from(e.dataTransfer.files));
|
1432
1443
|
}
|
1433
1444
|
handleRemoveAttachment(index) {
|
1434
1445
|
const newFiles = [...this.selectedFiles];
|
1435
1446
|
newFiles.splice(index, 1);
|
1436
|
-
this.
|
1447
|
+
this.handleSetSelected(newFiles);
|
1448
|
+
}
|
1449
|
+
handleSetSelected(files) {
|
1450
|
+
this.selectedFiles = files;
|
1451
|
+
this.errorMessage = '';
|
1452
|
+
const totalSize = this.selectedFiles.reduce((acc, file) => acc + file.size, 0);
|
1453
|
+
if (totalSize > this.maxSize) {
|
1454
|
+
this.errorMessage = 'Total file size must not exceed 20MB.';
|
1455
|
+
}
|
1437
1456
|
}
|
1438
1457
|
handleDeleteAttachment(e) {
|
1439
1458
|
var _a;
|
@@ -1451,12 +1470,13 @@ const VerdocsUploadDialog = class {
|
|
1451
1470
|
}
|
1452
1471
|
async handleFileChange() {
|
1453
1472
|
var _a;
|
1454
|
-
|
1473
|
+
const selectedFiles = Array.from((_a = this.fileInput) === null || _a === void 0 ? void 0 : _a.files);
|
1474
|
+
this.handleSetSelected(selectedFiles);
|
1455
1475
|
}
|
1456
1476
|
render() {
|
1457
1477
|
var _a;
|
1458
1478
|
const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
|
1459
|
-
return (h(Host, { key: '
|
1479
|
+
return (h(Host, { key: 'e7a5e6df6d936adbfe74ba8e212dfe79816b0c05' }, h("div", { key: 'b534d7c777b37af48c27498337b62daca283e22e', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '11967dfddc9da736bdf1957ee3743b1777dc971e', class: "upload-dialog-content" }, h("div", { key: 'ec967b175dfc6edffbfc57537f0a6c12f8cf3844', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: '9e6ec10aeacb411d5fefada717b9d724520e0869' }, h("div", { key: '5b5cd3c87833d862fd361e84155c3622d51280d1', class: "current-label" }, "Current Attachment"), h("div", { key: '866c221a7b3bda742d336d2c111da02b8fd4a960', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '345302d3801fe2b0f2e69ed64d2cba8f42e57174', class: "attachment" }, h("div", { key: '7a9a948fa18aca0a99b76f089622113de7e24cee', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '5dced948f61febe18703583f7e4a3b9827782cff', class: "name" }, existingFile.name), h("div", { key: '9e715db7009c444ae2ebcdc2f7ac15e9165d2798', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: 'bf4a4796aeaa0d3a941299e482198c58acc26912', 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: '73708b0cc4f5a17b25336546bc167500de6b7d33' }, "Drag and drop a ", !!existingFile && 'replacement', " here..."), h("p", { key: 'c8e0584a2816f73e0ded9a512d9a8a21482748d4' }, "- or -"), h("verdocs-button", { key: 'bde27f1ace37fcfe4c499f13d30078bded11415a', label: !!existingFile ? 'Replace file...' : 'Select a file...', onClick: () => this.handleSelectFile() }), h("input", { key: '7d9fa1cd9432bfa2929999f5f3f7bd5027ca07cf', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: 'ea91d6a64a82c89614aa1f925491d22569dd641a', 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: 'a1d49fc0d88dd44dacd75267f5fc1d3607c9ba1c', class: "error" }, this.errorMessage), h("div", { key: '2b195ca472b3490e6aa00559736db4760f5e822e', class: "buttons" }, h("verdocs-button", { key: '213c44025a3e7f3343c69ce4fcf880416d3c84f7', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'a7c12c9c0b497fec67f43dbe7fefb31700625724', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: 'e0c2be554a401f9a02ba8ca63b33ba11f02c836a', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
|
1460
1480
|
// So we don't close the upload dialog
|
1461
1481
|
e.preventDefault();
|
1462
1482
|
e.stopPropagation();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-a68c7262.js';
|
2
2
|
import { VerdocsEndpoint, getEnvelope, getDocumentDownloadLink, cancelEnvelope, userCanCancelEnvelope, integerSequence } from '@verdocs/js-sdk';
|
3
|
-
import { s as saveEnvelopesAsZip } from './utils-
|
3
|
+
import { s as saveEnvelopesAsZip } from './utils-6ecd6558.js';
|
4
4
|
import { S as SDKError } from './errors-887f1e88.js';
|
5
5
|
import './_commonjsHelpers-bdec4bbd.js';
|
6
6
|
import './Types-95d86a44.js';
|
@@ -96,9 +96,9 @@ const VerdocsView = class {
|
|
96
96
|
headerTarget.append(headerEl);
|
97
97
|
}
|
98
98
|
}
|
99
|
-
handlePageRendered(
|
100
|
-
const pageInfo = e.detail;
|
101
|
-
console.log('[VIEW] Page rendered', pageInfo);
|
99
|
+
handlePageRendered(_e) {
|
100
|
+
// const pageInfo = e.detail as IDocumentPageInfo;
|
101
|
+
// console.log('[VIEW] Page rendered', pageInfo);
|
102
102
|
}
|
103
103
|
async handleOptionSelected(e) {
|
104
104
|
var _a, _b;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a68c7262.js';
|
2
2
|
import { integerSequence } from '@verdocs/js-sdk';
|
3
|
-
import { h as renderedTextWidth } from './utils-
|
3
|
+
import { h as renderedTextWidth } from './utils-6ecd6558.js';
|
4
4
|
import { c as createPopper } from './popper-0fbeff6d.js';
|
5
5
|
import './_commonjsHelpers-bdec4bbd.js';
|
6
6
|
import './Types-95d86a44.js';
|
@@ -8,7 +8,7 @@ import { D as DocIcon, P as PngIcon, J as JpgIcon, a as PdfIcon, F as FileIcon$1
|
|
8
8
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
9
9
|
import { f as format } from './format-b8602175.js';
|
10
10
|
import { i as interact } from './interact.min-a71beb3d.js';
|
11
|
-
import { b as updateCssTransform, c as removeCssTransform, g as getFieldId, d as defaultWidth, e as defaultHeight } from './utils-
|
11
|
+
import { b as updateCssTransform, c as removeCssTransform, g as getFieldId, d as defaultWidth, e as defaultHeight } from './utils-6ecd6558.js';
|
12
12
|
import './index-a971a584.js';
|
13
13
|
import './index-7588a071.js';
|
14
14
|
import './_commonjsHelpers-bdec4bbd.js';
|
@@ -20,7 +20,7 @@ const VerdocsQuickFunctions = class {
|
|
20
20
|
this.createDocument.emit();
|
21
21
|
}
|
22
22
|
render() {
|
23
|
-
return (h("div", { key: '
|
23
|
+
return (h("div", { key: '0cff01678f477efbb74f37a070db94c6ffa195a1', class: "container" }, h("p", { key: '2b781540591813f4955324bfb89084ad2b0a5132', class: "title" }, "Quick Create"), h("button", { key: '1530472b7904a08465cb27e61b2adc84d0ff7560', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '7f07268a4aaa6dbb610815af95f27025c0d91c41', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
|
24
24
|
}
|
25
25
|
};
|
26
26
|
VerdocsQuickFunctions.style = VerdocsQuickFunctionsStyle0;
|
@@ -140,34 +140,34 @@ const VerdocsTemplateRoleProperties = class {
|
|
140
140
|
}
|
141
141
|
render() {
|
142
142
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
143
|
-
return (h(Host, { key: '
|
143
|
+
return (h(Host, { key: '2344ca9e482f0a9e3d45226dcf60f3082f0b262a' }, h("div", { key: '7f59190bffce63910b4ac8bbf3c18871ec7e07a5', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: '468001c9b9bdc563826173f96e5222a616f6f340', class: "dialog" }, h("form", { key: 'e4ff405dad0f312bf121e73aa9c6a6f6b937b768', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: '612dc771f957602284f24fa47b6a140ba02a0f56', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
|
144
144
|
? 'This role has fields assigned and can no longer be renamed.'
|
145
145
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
146
146
|
this.name = e.target.value;
|
147
147
|
this.dirty = true;
|
148
|
-
} }), h("div", { key: '
|
148
|
+
} }), h("div", { key: 'f3b5472084032d07ec4b5fe6c83250bc93a2e99b', class: "row" }, h("div", { key: 'd13db6776d097fdc8594f127b0ce7a5f82b0d346', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '35d3c3dfc5b07c8ba4e58a56bb20242b2893080c', value: this.type, options: [
|
149
149
|
{ label: 'Signer', value: 'signer' },
|
150
150
|
{ label: 'CC', value: 'cc' },
|
151
151
|
{ label: 'Approver', value: 'approver' },
|
152
152
|
], onInput: (e) => {
|
153
153
|
this.type = e.target.value;
|
154
154
|
this.dirty = true;
|
155
|
-
} }), h("verdocs-help-icon", { key: '
|
155
|
+
} }), h("verdocs-help-icon", { key: 'e4f59b8e5afa43bf495985fbe890dbf782607afe', 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: '90a869359264a8add5c1b75f90ef827bde176c18', 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) => {
|
156
156
|
this.first_name = e.target.value;
|
157
157
|
this.dirty = true;
|
158
|
-
} }), h("verdocs-text-input", { key: '
|
158
|
+
} }), h("verdocs-text-input", { key: '0290e4e4965c894a5171dc525c807b6ed79e8509', 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) => {
|
159
159
|
this.last_name = e.target.value;
|
160
160
|
this.dirty = true;
|
161
|
-
} }), h("verdocs-text-input", { key: '
|
161
|
+
} }), h("verdocs-text-input", { key: '9c0b81fe916d053f342b9864a003cee504ef8e28', 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) => {
|
162
162
|
this.email = e.target.value;
|
163
163
|
this.dirty = true;
|
164
|
-
} }), h("verdocs-text-input", { key: '
|
164
|
+
} }), h("verdocs-text-input", { key: 'e31ba5928aa9fa5cf294c583381c5a2c45fbe697', 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) => {
|
165
165
|
this.phone = e.target.value;
|
166
166
|
this.dirty = true;
|
167
|
-
} }), h("div", { key: '
|
167
|
+
} }), h("div", { key: 'de4d2996f7558203a157de4089bd08b03e3ccb4c', class: "row" }, h("div", { key: '5204416e20532f20e7b8800da46af1a819262d47', class: "input-label" }, "May Delegate:"), h("div", { key: 'ea93e1f42e9748aad209a71de59648234c577a72', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '55a7d77e35c16bf3f669b62adffac9df4b57462e', checked: this.delegator, onInput: (e) => {
|
168
168
|
this.delegator = e.target.checked;
|
169
169
|
this.dirty = true;
|
170
|
-
} })), h("verdocs-help-icon", { key: '
|
170
|
+
} })), h("verdocs-help-icon", { key: 'c10dd23ca7b7e47f836dd3839e5749a3c0c76794', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '8e2c8d88f213aca0d30dfdb3880b634d878a327e', class: "buttons" }, h("button", { key: '68fc1d701b0519694fecf129ac40ea02bd2a3c5c', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '1c0f4b7f56d564c304cf728d1cc74c10cdb6a452', style: { flex: '1' } }), h("verdocs-button", { key: 'cb4e24c4b49c1505da07b6341229b60e6cd33371', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '4a170cf772986625008e3550ba167db69d523baa', size: "small", label: "Save", disabled: !this.dirty, onClick: e => this.handleSave(e) })))))));
|
171
171
|
}
|
172
172
|
};
|
173
173
|
VerdocsTemplateRoleProperties.style = VerdocsTemplateRolePropertiesStyle0;
|
@@ -234,7 +234,7 @@ const VerdocsTemplateSender = class {
|
|
234
234
|
});
|
235
235
|
}
|
236
236
|
render() {
|
237
|
-
return (h(Host, { key: '
|
237
|
+
return (h(Host, { key: 'f9ebeecc2d0d2467718e1c54161fd8eee32ba5f6' }, h("div", { key: 'efc13020bd5674c874707cefea2384b52521a85f', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '3c85258b0ea837e4e78ad16eb6cec93cffa6e629', class: "dialog" }, h("div", { key: '46a6eb1bed8de495d834faa73e48547a891aa00e', class: "options" }, h("div", { key: '9425750a4508f6a6c176f0ee88a1674aceec8475', class: "option" }, h("verdocs-radio-button", { key: '65d2059bb0b433e1b95a55273ad7a7ca4734ce51', name: "template-sender", value: 'everyone', checked: this.sender === 'everyone', onInput: () => this.handleSelectSetting('everyone') }), h("div", { key: '119b053c18bffd95451eed224132d1592ccf6004', class: "description" }, h("div", { key: 'c4a3fac447abea997dec0906221df87cc9014e4b', class: "name" }, "Anyone on the Web"), h("verdocs-help-icon", { key: '1e8e078477cdd86100e3b73e275e856449eb84ee', text: "Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)" }))), h("div", { key: 'b91f257e6a6c702f2fa0ee147dda5642b6ff514a', class: "option" }, h("verdocs-radio-button", { key: '00a900ef8a3a1e9cb7ca8e1de93bf3528f78b32d', name: "template-sender", value: 'everyone_as_creator', checked: this.sender === 'everyone_as_creator', onInput: () => this.handleSelectSetting('everyone_as_creator') }), h("div", { key: 'f767a5d108262e22fb3f0936379f6b84481801ad', class: "description" }, h("div", { key: '59f6f409b9f51a2ab597241a4052191e46a4d5c1', class: "name" }, "Anyone on the Web as me"), h("verdocs-help-icon", { key: '0b90c72573e4b75c3294e8f95a709ee0559bdbef', text: "Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)" }))), h("div", { key: 'afd67488f38d33075a454476be475cd7801c4ed3', class: "option" }, h("verdocs-radio-button", { key: '8c09dc41fbb371c3380a2ddf06a806a131aef8b6', name: "template-sender", value: 'organization_member', checked: this.sender === 'organization_member', onInput: () => this.handleSelectSetting('organization_member') }), h("div", { key: 'caf2a20f93130262b878e9df13e0e569aacffb9c', class: "description" }, h("div", { key: '430ccbe92e4b39a789d215886e9ecbfed0c30f3e', class: "name" }, "Anyone in my organization"), h("verdocs-help-icon", { key: '21a2cec2a249f6e4d6f486f501a813e10bdd1497', text: "Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')" }))), h("div", { key: 'a48b2814e9b04e09f6661a754b52e739d0566200', class: "option" }, h("verdocs-radio-button", { key: 'e3f9885aa8215f79686555a1fb85c5b87aa4aa03', name: "template-sender", value: 'organization_member_as_creator', checked: this.sender === 'organization_member_as_creator', onInput: () => this.handleSelectSetting('organization_member_as_creator') }), h("div", { key: '99ea5cdc2c55b0e73d092a1df4fc728f30810059', class: "description" }, h("div", { key: '79109d8cc3845c287fbffdd017695139cfb1a16f', class: "name" }, "Anyone in my organization as me"), h("verdocs-help-icon", { key: 'b093f771c7cf119cbf27c404562bf5029664bb1b', text: "Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)" }))), h("div", { key: '1a250fdd2b385e70d27f0fb6895a5b673c24e655', class: "option" }, h("verdocs-radio-button", { key: '526a88e4e339932623183ec5fa9218adcbb5d832', name: "template-sender", value: 'creator', checked: this.sender === 'creator', onInput: () => this.handleSelectSetting('creator') }), h("div", { key: '94a699f6c4c430cbd3e221c6baf4972ec188260f', class: "description" }, h("div", { key: 'b2c16bda7146c436cd90d919e7c7a7d912c90809', class: "name" }, "Me"), h("verdocs-help-icon", { key: '360ad19358fd4ce6a6f8e3e3e47bb0ff0da18d37', text: "Only I can use this template." })))), h("div", { key: '059e9ebf124ffcd2d45ea4316d1fdd49c4ec36ae', class: "buttons" }, h("verdocs-button", { key: 'b0a0a519eb6b713fa334065de19021369e20ee0b', label: "Close", onClick: () => this.handleClose() }))))));
|
238
238
|
}
|
239
239
|
};
|
240
240
|
VerdocsTemplateSender.style = VerdocsTemplateSenderStyle0;
|
@@ -9,7 +9,7 @@ const VerdocsSearchTabs = class {
|
|
9
9
|
this.selected = 'all';
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return h("div", { key: '
|
12
|
+
return h("div", { key: '33700d0c932da7138bf44f6dd69501d8c652bb4d' }, "\u00A0");
|
13
13
|
}
|
14
14
|
};
|
15
15
|
VerdocsSearchTabs.style = VerdocsSearchTabsStyle0;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-a68c7262.js';
|
2
|
-
import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline,
|
3
|
-
import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils-
|
2
|
+
import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, sortFields, envelopeRecipientSubmit, getEnvelope, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, submitKbaPin, integerSequence } from '@verdocs/js-sdk';
|
3
|
+
import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils-6ecd6558.js';
|
4
4
|
import { a as createTemplateFieldStoreFromEnvelope } from './TemplateFieldStore-68bf6acd.js';
|
5
5
|
import { V as VerdocsToast } from './Toast-c4843828.js';
|
6
6
|
import { S as SDKError } from './errors-887f1e88.js';
|
@@ -50,6 +50,8 @@ const VerdocsSign = class {
|
|
50
50
|
this.declined = false;
|
51
51
|
this.isDone = false;
|
52
52
|
this.showDone = false;
|
53
|
+
this.showCanceled = false;
|
54
|
+
this.showDeclined = false;
|
53
55
|
this.showLoadError = false;
|
54
56
|
this.finishLater = false;
|
55
57
|
this.showFinishLater = false;
|
@@ -101,10 +103,15 @@ const VerdocsSign = class {
|
|
101
103
|
else {
|
102
104
|
console.warn('[SIGN] Could not find our recipient record', this.roleId, this.sortedRecipients);
|
103
105
|
}
|
106
|
+
// TODO: Envelope "complete" | "declined" | "canceled"
|
107
|
+
// TODO: Recipient "canceled"
|
104
108
|
this.submitted = this.recipient.status === 'submitted';
|
105
109
|
this.declined = this.recipient.status === 'declined';
|
106
110
|
this.canceled = this.envelope.status === 'canceled';
|
107
111
|
this.isDone = this.submitted || this.declined || this.canceled;
|
112
|
+
this.showDone = this.submitted;
|
113
|
+
this.showCanceled = this.canceled;
|
114
|
+
this.showDeclined = this.declined;
|
108
115
|
if (this.agreed) {
|
109
116
|
this.nextButtonLabel = 'Next';
|
110
117
|
}
|
@@ -172,16 +179,17 @@ const VerdocsSign = class {
|
|
172
179
|
(_c = this.envelopeUpdated) === null || _c === void 0 ? void 0 : _c.emit({ endpoint: this.endpoint, envelope: this.envelope, event: 'declined' });
|
173
180
|
this.submitting = false;
|
174
181
|
this.declined = true;
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
182
|
+
this.showDeclined = true;
|
183
|
+
// console.log('[SIGN] Reloading envelope');
|
184
|
+
// getEnvelope(this.endpoint, this.envelopeId)
|
185
|
+
// .then(envelope => {
|
186
|
+
// this.envelope = envelope;
|
187
|
+
// this.isDone = true;
|
188
|
+
// })
|
189
|
+
// .catch(e => {
|
190
|
+
// this.isDone = true;
|
191
|
+
// console.log('[SIGN] Error reloading envelope', e);
|
192
|
+
// });
|
185
193
|
}
|
186
194
|
break;
|
187
195
|
case 'print':
|
@@ -298,7 +306,7 @@ const VerdocsSign = class {
|
|
298
306
|
case 'phone':
|
299
307
|
return isValidPhone(value);
|
300
308
|
default:
|
301
|
-
return value !== '';
|
309
|
+
return (value || '').trim() !== '';
|
302
310
|
}
|
303
311
|
case 'signature':
|
304
312
|
return value === 'signed';
|
@@ -543,9 +551,21 @@ const VerdocsSign = class {
|
|
543
551
|
return (h(Host, null, h("verdocs-loader", null)));
|
544
552
|
}
|
545
553
|
if (this.isDone) {
|
546
|
-
return (h(Host, { class: { agreed: this.agreed } }, h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, envelope: this.envelope, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), 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: () => {
|
554
|
+
return (h(Host, { class: { agreed: this.agreed } }, h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, envelope: this.envelope, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), 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: (e) => {
|
555
|
+
e.preventDefault();
|
556
|
+
e.stopPropagation();
|
547
557
|
this.showDone = false;
|
548
558
|
this.isDone = true;
|
559
|
+
} })), this.showCanceled && (h("verdocs-ok-dialog", { heading: "Document Canceled", message: `This envelope has been canceled. Please contact the sender.`, onNext: (e) => {
|
560
|
+
e.preventDefault();
|
561
|
+
e.stopPropagation();
|
562
|
+
// We don't allow this to be hidden
|
563
|
+
// this.showCanceled = false;
|
564
|
+
} })), this.showDeclined && (h("verdocs-ok-dialog", { heading: "Declined to Sign", message: `You have declined to sign this document. Please contact the sender.`, onNext: (e) => {
|
565
|
+
e.preventDefault();
|
566
|
+
e.stopPropagation();
|
567
|
+
// We don't allow this to be hidden
|
568
|
+
// this.showDeclined = false;
|
549
569
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
550
570
|
}
|
551
571
|
if (!this.agreed) {
|
@@ -586,6 +606,16 @@ const VerdocsSign = class {
|
|
586
606
|
})), 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: () => {
|
587
607
|
this.showDone = false;
|
588
608
|
this.isDone = true;
|
609
|
+
} })), this.showCanceled && (h("verdocs-ok-dialog", { heading: "Document Canceled", message: `This envelope has been canceled. Please contact the sender.`, onNext: (e) => {
|
610
|
+
e.preventDefault();
|
611
|
+
e.stopPropagation();
|
612
|
+
// We don't allow this to be hidden
|
613
|
+
// this.showCanceled = false;
|
614
|
+
} })), this.showDeclined && (h("verdocs-ok-dialog", { heading: "Declined to Sign", message: `You have declined to sign this document. Please contact the sender.`, onNext: (e) => {
|
615
|
+
e.preventDefault();
|
616
|
+
e.stopPropagation();
|
617
|
+
// We don't allow this to be hidden
|
618
|
+
// this.showDeclined = false;
|
589
619
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), this.showSpinner && (h("verdocs-portal", null, h("div", { class: "spinner-overlay" }, h("verdocs-spinner", null))))));
|
590
620
|
}
|
591
621
|
};
|
@@ -7189,11 +7189,11 @@ const VerdocsStatusIndicator = class {
|
|
7189
7189
|
}
|
7190
7190
|
const icon = this.getStatusIcon(status);
|
7191
7191
|
const statusMessage = this.getStatusMessage(status);
|
7192
|
-
return (h(Host, { key: '
|
7192
|
+
return (h(Host, { key: '26b42a98a4f70d09aeb1721916f3a6239b73b1cb', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
7193
7193
|
e.stopPropagation();
|
7194
7194
|
e.preventDefault();
|
7195
7195
|
this.envelope && this.toggleDropdown();
|
7196
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
7196
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '755c501d67a395d153c2433bcd0593931aed3b13', class: "icon", innerHTML: icon }), h("span", { key: '393027372c519cff2fbdf391cbd1325e880f46d0', class: "content" }, statusMessage), h("div", { key: '7e0168d274fa853e5b74ccadbc3cd1fc06751280', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: 'ef04e1f77c3cfbab5054946d7c48de5f60e9ee06', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
7197
7197
|
}
|
7198
7198
|
};
|
7199
7199
|
VerdocsStatusIndicator.style = VerdocsStatusIndicatorStyle0;
|
@@ -14,7 +14,7 @@ const VerdocsTemplateCard = class {
|
|
14
14
|
}
|
15
15
|
render() {
|
16
16
|
var _a, _b, _c, _d;
|
17
|
-
return (h(Host, { key: '
|
17
|
+
return (h(Host, { key: '5d51a6309b35282260e0b5a9accb65368f66e137' }, h("span", { key: '5077d1f9917cd63eba77d19efa46854000d2285d', class: "name" }, this.template.name), h("span", { key: '3dfe49dbf90de379d47e6a4b9b1583ac38ff4abd', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: '9cf9967baf829422608934bb3cdc44e872655b6a' }), h("div", { key: 'a778ca45266cf6915903885658914388e2fb6482', class: "controls" }, h("div", { key: '3ac820a94080adccf68076cfd2c5acf795ad7fc8', class: "control" }, h("span", { key: '0f852a590b4ea1c7c523aa2d132de6a502ca64a3', class: "icon", innerHTML: StarIcon }), h("span", { key: 'b6d8ff745a148d734a443d6975546018c38d720c', class: "value" }, this.template.star_counter)), h("div", { key: '66ad10b503b311b1e474ac5a757eda68d7c14da9', class: "control secondary" }, h("span", { key: '5a799e82a7e982a3878267ba7142968a9ae57ed9', class: "icon", innerHTML: PagesIcon }), h("span", { key: '786f8e6e4c7d8050754d4c4879b7eb16c0f8616b', 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: '8beaba61ba61c3d65b3b7f3e8a353ac4e851eeae', class: "control secondary" }, h("span", { key: 'af4de26fb0adc0b3dce0dd902b770870a1aeae50', class: "icon", innerHTML: EmailIcon }), h("span", { key: '98e12c32e97de73267f511ea736a9bcb1d63d027', class: "value" }, this.template.counter)), h("span", { key: 'df0f16420601b26ff1263370b92335df3fe0e80f', class: "additional-controls", innerHTML: ActionsIcon }))));
|
18
18
|
}
|
19
19
|
};
|
20
20
|
VerdocsTemplateCard.style = VerdocsTemplateCardStyle0;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-a68c7262.js';
|
2
2
|
import { VerdocsEndpoint, getTemplateDocumentPageDisplayUri } from '@verdocs/js-sdk';
|
3
3
|
import { g as getTemplateFieldStore } from './TemplateFieldStore-68bf6acd.js';
|
4
|
-
import { t as throttle, i as getControlStyles, g as getFieldId } from './utils-
|
4
|
+
import { t as throttle, i as getControlStyles, g as getFieldId } from './utils-6ecd6558.js';
|
5
5
|
import { c as createPopper } from './popper-0fbeff6d.js';
|
6
6
|
import './index-a971a584.js';
|
7
7
|
import './_commonjsHelpers-bdec4bbd.js';
|
@@ -98,7 +98,7 @@ const VerdocsTemplateDocumentPage = class {
|
|
98
98
|
}
|
99
99
|
render() {
|
100
100
|
const height = `${this.renderedHeight}px`;
|
101
|
-
return (h(Host, { key: '
|
101
|
+
return (h(Host, { key: 'ddeacbfbd9f38bddfbb5c9886df494881b4e38cf', 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' &&
|
102
102
|
this.fieldStore
|
103
103
|
.get('fields')
|
104
104
|
.filter(field => field && field.page === this.pageNumber)
|
@@ -42,7 +42,7 @@ const VerdocsTemplateStar = class {
|
|
42
42
|
});
|
43
43
|
}
|
44
44
|
render() {
|
45
|
-
return (h(Host, { key: '
|
45
|
+
return (h(Host, { key: '3bf76e18041a195c1bf050776cd465f7afde3c37' }, h("div", { key: '566edf26b382ce4b758571f6470d1ac873d1e0b6', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '602436f5d52db7118af35deccb264ccb331d1b72', class: "count" }, this.template.star_counter || '--')));
|
46
46
|
}
|
47
47
|
};
|
48
48
|
VerdocsTemplateStar.style = VerdocsTemplateStarStyle0;
|
@@ -10,7 +10,7 @@ const VerdocsTemplateTags = class {
|
|
10
10
|
}
|
11
11
|
render() {
|
12
12
|
var _a;
|
13
|
-
return (h(Host, { key: '
|
13
|
+
return (h(Host, { key: '2abee2130a12d5165984e025633f419082d02714' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
14
14
|
}
|
15
15
|
};
|
16
16
|
VerdocsTemplateTags.style = VerdocsTemplateTagsStyle0;
|