@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
package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js
CHANGED
@@ -118,7 +118,7 @@ export class VerdocsEnvelopeSidebar {
|
|
118
118
|
}
|
119
119
|
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: (_b = this.store) === null || _b === void 0 ? void 0 : _b.state, event: id });
|
120
120
|
}
|
121
|
-
|
121
|
+
handleCancelEnvelope() {
|
122
122
|
this.loading = true;
|
123
123
|
cancelEnvelope(this.endpoint, this.envelopeId)
|
124
124
|
.then(async (r) => {
|
@@ -248,6 +248,8 @@ export class VerdocsEnvelopeSidebar {
|
|
248
248
|
case 'completed':
|
249
249
|
entries.push({ icon: 'done_all', message: `Envelope was completed.`, date: new Date(history.created_at) });
|
250
250
|
break;
|
251
|
+
// TODO: Final answer?
|
252
|
+
case 'envelope:canceled':
|
251
253
|
case 'envelope_canceled':
|
252
254
|
case 'canceled':
|
253
255
|
case 'owner:canceled':
|
@@ -327,7 +329,7 @@ export class VerdocsEnvelopeSidebar {
|
|
327
329
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
328
330
|
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Next Reminder:"), h("div", { style: { color: '#dddddd' } }, format(new Date((_y = (_x = this.store) === null || _x === void 0 ? void 0 : _x.state) === null || _y === void 0 ? void 0 : _y.next_reminder), 'P p'))))))), isEnvelopeOwner && (h("verdocs-button", { class: "manage-recipients-button", variant: "standard", label: "Cancel Envelope", onClick: () => (this.showCancelDialog = !functionsDisabled), disabled: functionsDisabled })))), this.activeTab === 3 && (h("div", { class: "content" }, h("div", { class: "title" }, "History"), historyEntries.map(entry => (h("div", { class: "history-entry" }, h("div", { class: "activity-icon", innerHTML: ActivityIcons[entry.icon] || entry.icon }), h("div", { class: "activity-details" }, h("div", { class: "activity-text" }, entry.message), h("div", { class: "activity-date" }, format(entry.date, FORMAT_TIMESTAMP)))))))), this.showRecipientDialog && (h("verdocs-envelope-recipient-link", { envelopeId: this.envelopeId, roleName: this.showRecipientDialog, onNext: () => (this.showRecipientDialog = '') })), this.showCancelDialog && (h("verdocs-ok-dialog", { heading: "Cancel Envelope?", message: 'Are you sure you want to cancel this Envelope? This action cannot be undone.', onNext: () => {
|
329
331
|
this.showCancelDialog = false;
|
330
|
-
this.
|
332
|
+
this.handleCancelEnvelope();
|
331
333
|
} }))));
|
332
334
|
}
|
333
335
|
static get is() { return "verdocs-envelope-sidebar"; }
|
package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js
CHANGED
@@ -191,18 +191,18 @@ export class VerdocsEnvelopesList {
|
|
191
191
|
});
|
192
192
|
}
|
193
193
|
render() {
|
194
|
-
return (h(Host, { key: '
|
194
|
+
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) => {
|
195
195
|
var _a;
|
196
196
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
197
197
|
this.match = e.target.value.trim();
|
198
198
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
199
|
-
} })), h("verdocs-quick-filter", { key: '
|
199
|
+
} })), h("verdocs-quick-filter", { key: '3c530e4b939ea9beb56fb6a8ef185aefda997b5c', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
200
200
|
this.view = e.detail.value;
|
201
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
201
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'c1dea5014f12031c2811a3a420638dcf9a629518', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
202
202
|
this.status = e.detail.value;
|
203
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
203
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '3709b032cc82bf52bcd1b0502bc320378d80321a', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
204
204
|
this.sort = e.detail.value;
|
205
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
205
|
+
} })), 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 => {
|
206
206
|
var _a;
|
207
207
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
208
208
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -243,7 +243,7 @@ export class VerdocsEnvelopesList {
|
|
243
243
|
break;
|
244
244
|
}
|
245
245
|
} }))));
|
246
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
246
|
+
}), !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 => {
|
247
247
|
this.selectedPage = e.detail.selectedPage;
|
248
248
|
} }))) : (h("div", null))));
|
249
249
|
}
|
package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js
CHANGED
@@ -238,11 +238,11 @@ export class VerdocsStatusIndicator {
|
|
238
238
|
}
|
239
239
|
const icon = this.getStatusIcon(status);
|
240
240
|
const statusMessage = this.getStatusMessage(status);
|
241
|
-
return (h(Host, { key: '
|
241
|
+
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 => {
|
242
242
|
e.stopPropagation();
|
243
243
|
e.preventDefault();
|
244
244
|
this.envelope && this.toggleDropdown();
|
245
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '
|
245
|
+
}, 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` } }))))));
|
246
246
|
}
|
247
247
|
static get is() { return "verdocs-status-indicator"; }
|
248
248
|
static get originalStyleUrls() {
|
package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js
CHANGED
@@ -22,13 +22,11 @@ export class VerdocsFieldAttachment {
|
|
22
22
|
};
|
23
23
|
this.handleUploadRemove = (e) => {
|
24
24
|
var _a;
|
25
|
-
console.log('removing attachment');
|
26
25
|
e.preventDefault();
|
27
26
|
e.stopPropagation();
|
28
|
-
|
27
|
+
this.dialogOpen = false;
|
29
28
|
this.selectedFile = null;
|
30
|
-
|
31
|
-
// this.dialogOpen = false;
|
29
|
+
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldname });
|
32
30
|
};
|
33
31
|
this.endpoint = VerdocsEndpoint.getDefault();
|
34
32
|
this.templateid = '';
|
@@ -48,6 +46,7 @@ export class VerdocsFieldAttachment {
|
|
48
46
|
async focusField() {
|
49
47
|
// Our input field is fake, so we fake the flash too
|
50
48
|
this.focused = true;
|
49
|
+
this.dialogOpen = true;
|
51
50
|
setTimeout(() => {
|
52
51
|
this.focused = false;
|
53
52
|
}, 500);
|
@@ -14,6 +14,7 @@ export class VerdocsFieldDate {
|
|
14
14
|
constructor() {
|
15
15
|
this.fieldStore = null;
|
16
16
|
this.roleStore = null;
|
17
|
+
this.picker = null;
|
17
18
|
this.templateid = '';
|
18
19
|
this.fieldname = '';
|
19
20
|
this.disabled = false;
|
@@ -29,8 +30,10 @@ export class VerdocsFieldDate {
|
|
29
30
|
this.focused = false;
|
30
31
|
}
|
31
32
|
async focusField() {
|
33
|
+
var _a;
|
32
34
|
// Our input field is fake, so we fake the flash too
|
33
35
|
this.focused = true;
|
36
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.show();
|
34
37
|
setTimeout(() => {
|
35
38
|
this.focused = false;
|
36
39
|
}, 500);
|
@@ -44,7 +47,7 @@ export class VerdocsFieldDate {
|
|
44
47
|
this.roleStore = getTemplateRoleStore(this.templateid);
|
45
48
|
}
|
46
49
|
componentDidLoad() {
|
47
|
-
new AirDatepicker(`#${this.containerId}`, {
|
50
|
+
this.picker = new AirDatepicker(`#${this.containerId}`, {
|
48
51
|
locale: localeEn,
|
49
52
|
isMobile: true,
|
50
53
|
autoClose: true,
|
@@ -51,11 +51,18 @@ export class VerdocsFieldDropdown {
|
|
51
51
|
render() {
|
52
52
|
const { templateid, fieldname = '', editable = false, done = false, disabled = false, focused, xscale = 1, yscale = 1 } = this;
|
53
53
|
const field = this.fieldStore.get('fields').find(field => field.name === fieldname);
|
54
|
-
|
54
|
+
let { required = false, role_name = '', value = '', label = '', options } = field || {};
|
55
55
|
const backgroundColor = getRGBA(getRoleIndex(this.roleStore, role_name));
|
56
56
|
if (done) {
|
57
57
|
return h(Host, { class: { done } }, value);
|
58
58
|
}
|
59
|
+
// TODO: Look for other places this mistaken assumption was made.
|
60
|
+
// Defaults only apply in destructuring if undefined. null doesn't trigger it.
|
61
|
+
options || (options = []);
|
62
|
+
if (!options.length) {
|
63
|
+
console.log('[DROPDOWN] Dropdown has no options, hiding field...', fieldname);
|
64
|
+
return h(Host, null);
|
65
|
+
}
|
59
66
|
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) => {
|
60
67
|
e.stopPropagation();
|
61
68
|
this.showingProperties = !this.showingProperties;
|
@@ -12,7 +12,7 @@ export class VerdocsTemplateCard {
|
|
12
12
|
}
|
13
13
|
render() {
|
14
14
|
var _a, _b, _c, _d;
|
15
|
-
return (h(Host, { key: '
|
15
|
+
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 }))));
|
16
16
|
}
|
17
17
|
static get is() { return "verdocs-template-card"; }
|
18
18
|
static get originalStyleUrls() {
|
@@ -94,7 +94,7 @@ export class VerdocsTemplateDocumentPage {
|
|
94
94
|
}
|
95
95
|
render() {
|
96
96
|
const height = `${this.renderedHeight}px`;
|
97
|
-
return (h(Host, { key: '
|
97
|
+
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' &&
|
98
98
|
this.fieldStore
|
99
99
|
.get('fields')
|
100
100
|
.filter(field => field && field.page === this.pageNumber)
|
@@ -116,34 +116,34 @@ export class VerdocsTemplateRoleProperties {
|
|
116
116
|
}
|
117
117
|
render() {
|
118
118
|
const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
|
119
|
-
return (h(Host, { key: '
|
119
|
+
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
|
120
120
|
? 'This role has fields assigned and can no longer be renamed.'
|
121
121
|
: 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
|
122
122
|
this.name = e.target.value;
|
123
123
|
this.dirty = true;
|
124
|
-
} }), h("div", { key: '
|
124
|
+
} }), h("div", { key: 'f3b5472084032d07ec4b5fe6c83250bc93a2e99b', class: "row" }, h("div", { key: 'd13db6776d097fdc8594f127b0ce7a5f82b0d346', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '35d3c3dfc5b07c8ba4e58a56bb20242b2893080c', value: this.type, options: [
|
125
125
|
{ label: 'Signer', value: 'signer' },
|
126
126
|
{ label: 'CC', value: 'cc' },
|
127
127
|
{ label: 'Approver', value: 'approver' },
|
128
128
|
], onInput: (e) => {
|
129
129
|
this.type = e.target.value;
|
130
130
|
this.dirty = true;
|
131
|
-
} }), h("verdocs-help-icon", { key: '
|
131
|
+
} }), 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) => {
|
132
132
|
this.first_name = e.target.value;
|
133
133
|
this.dirty = true;
|
134
|
-
} }), h("verdocs-text-input", { key: '
|
134
|
+
} }), 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) => {
|
135
135
|
this.last_name = e.target.value;
|
136
136
|
this.dirty = true;
|
137
|
-
} }), h("verdocs-text-input", { key: '
|
137
|
+
} }), 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) => {
|
138
138
|
this.email = e.target.value;
|
139
139
|
this.dirty = true;
|
140
|
-
} }), h("verdocs-text-input", { key: '
|
140
|
+
} }), 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) => {
|
141
141
|
this.phone = e.target.value;
|
142
142
|
this.dirty = true;
|
143
|
-
} }), h("div", { key: '
|
143
|
+
} }), 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) => {
|
144
144
|
this.delegator = e.target.checked;
|
145
145
|
this.dirty = true;
|
146
|
-
} })), h("verdocs-help-icon", { key: '
|
146
|
+
} })), 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) })))))));
|
147
147
|
}
|
148
148
|
static get is() { return "verdocs-template-role-properties"; }
|
149
149
|
static get originalStyleUrls() {
|
package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js
CHANGED
@@ -61,7 +61,7 @@ export class VerdocsTemplateSender {
|
|
61
61
|
});
|
62
62
|
}
|
63
63
|
render() {
|
64
|
-
return (h(Host, { key: '
|
64
|
+
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() }))))));
|
65
65
|
}
|
66
66
|
static get is() { return "verdocs-template-sender"; }
|
67
67
|
static get originalStyleUrls() {
|
@@ -38,7 +38,7 @@ export class VerdocsTemplateStar {
|
|
38
38
|
});
|
39
39
|
}
|
40
40
|
render() {
|
41
|
-
return (h(Host, { key: '
|
41
|
+
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 || '--')));
|
42
42
|
}
|
43
43
|
static get is() { return "verdocs-template-star"; }
|
44
44
|
static get originalStyleUrls() {
|
@@ -8,7 +8,7 @@ export class VerdocsTemplateTags {
|
|
8
8
|
}
|
9
9
|
render() {
|
10
10
|
var _a;
|
11
|
-
return (h(Host, { key: '
|
11
|
+
return (h(Host, { key: '2abee2130a12d5165984e025633f419082d02714' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
|
12
12
|
}
|
13
13
|
static get is() { return "verdocs-template-tags"; }
|
14
14
|
static get originalStyleUrls() {
|
@@ -237,7 +237,7 @@ export const saveEnvelopesAsZip = async (endpoint, envelopes) => {
|
|
237
237
|
const subFolder = envelopes.length > 0 ? zip.folder(`${envelope.id} - ${envelope.name} - ${date}`) : null;
|
238
238
|
for await (let document of envelope.documents) {
|
239
239
|
// TODO: When attachments are added to envelopes, add a field that reflects the full, original filename (including extension)
|
240
|
-
const documentFileName = document.type === 'certificate' ? `${envelope.name}_certificate.pdf` : `${document.name}.pdf`;
|
240
|
+
const documentFileName = document.type === 'certificate' ? `${envelope.name}_certificate.pdf` : `${document.name.replace('.pdf', '')}.pdf`;
|
241
241
|
const data = await getEnvelopeFile(endpoint, envelope.id, document.id);
|
242
242
|
if (subFolder) {
|
243
243
|
subFolder.file(documentFileName, data, { compression: 'DEFLATE' });
|
package/dist/components/utils.js
CHANGED
@@ -258,7 +258,7 @@ const saveEnvelopesAsZip = async (endpoint, envelopes) => {
|
|
258
258
|
const subFolder = envelopes.length > 0 ? zip.folder(`${envelope.id} - ${envelope.name} - ${date}`) : null;
|
259
259
|
for await (let document of envelope.documents) {
|
260
260
|
// TODO: When attachments are added to envelopes, add a field that reflects the full, original filename (including extension)
|
261
|
-
const documentFileName = document.type === 'certificate' ? `${envelope.name}_certificate.pdf` : `${document.name}.pdf`;
|
261
|
+
const documentFileName = document.type === 'certificate' ? `${envelope.name}_certificate.pdf` : `${document.name.replace('.pdf', '')}.pdf`;
|
262
262
|
const data = await getEnvelopeFile(endpoint, envelope.id, document.id);
|
263
263
|
if (subFolder) {
|
264
264
|
subFolder.file(documentFileName, data, { compression: 'DEFLATE' });
|
@@ -75,7 +75,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
|
|
75
75
|
}
|
76
76
|
render() {
|
77
77
|
const height = `${this.renderedHeight}px`;
|
78
|
-
return (h(Host, { key: '
|
78
|
+
return (h(Host, { key: 'a81d2ebfb4583ff9817dceff69838a2a38d51c58', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
79
79
|
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
80
80
|
// useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
|
81
81
|
// Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
|
@@ -132,7 +132,7 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
|
|
132
132
|
}
|
133
133
|
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: (_b = this.store) === null || _b === void 0 ? void 0 : _b.state, event: id });
|
134
134
|
}
|
135
|
-
|
135
|
+
handleCancelEnvelope() {
|
136
136
|
this.loading = true;
|
137
137
|
cancelEnvelope(this.endpoint, this.envelopeId)
|
138
138
|
.then(async (r) => {
|
@@ -262,6 +262,8 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
|
|
262
262
|
case 'completed':
|
263
263
|
entries.push({ icon: 'done_all', message: `Envelope was completed.`, date: new Date(history.created_at) });
|
264
264
|
break;
|
265
|
+
// TODO: Final answer?
|
266
|
+
case 'envelope:canceled':
|
265
267
|
case 'envelope_canceled':
|
266
268
|
case 'canceled':
|
267
269
|
case 'owner:canceled':
|
@@ -341,7 +343,7 @@ const VerdocsEnvelopeSidebar$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsE
|
|
341
343
|
this.handleSetReminders(this.initialReminder, this.followupReminders);
|
342
344
|
} })), h("div", { class: "form-row" }, h("div", { class: "form-label" }, "Next Reminder:"), h("div", { style: { color: '#dddddd' } }, format(new Date((_y = (_x = this.store) === null || _x === void 0 ? void 0 : _x.state) === null || _y === void 0 ? void 0 : _y.next_reminder), 'P p'))))))), isEnvelopeOwner && (h("verdocs-button", { class: "manage-recipients-button", variant: "standard", label: "Cancel Envelope", onClick: () => (this.showCancelDialog = !functionsDisabled), disabled: functionsDisabled })))), this.activeTab === 3 && (h("div", { class: "content" }, h("div", { class: "title" }, "History"), historyEntries.map(entry => (h("div", { class: "history-entry" }, h("div", { class: "activity-icon", innerHTML: ActivityIcons[entry.icon] || entry.icon }), h("div", { class: "activity-details" }, h("div", { class: "activity-text" }, entry.message), h("div", { class: "activity-date" }, format(entry.date, FORMAT_TIMESTAMP)))))))), this.showRecipientDialog && (h("verdocs-envelope-recipient-link", { envelopeId: this.envelopeId, roleName: this.showRecipientDialog, onNext: () => (this.showRecipientDialog = '') })), this.showCancelDialog && (h("verdocs-ok-dialog", { heading: "Cancel Envelope?", message: 'Are you sure you want to cancel this Envelope? This action cannot be undone.', onNext: () => {
|
343
345
|
this.showCancelDialog = false;
|
344
|
-
this.
|
346
|
+
this.handleCancelEnvelope();
|
345
347
|
} }))));
|
346
348
|
}
|
347
349
|
static get style() { return VerdocsEnvelopeSidebarStyle0; }
|
@@ -204,18 +204,18 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
|
|
204
204
|
});
|
205
205
|
}
|
206
206
|
render() {
|
207
|
-
return (h(Host, { key: '
|
207
|
+
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) => {
|
208
208
|
var _a;
|
209
209
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
210
210
|
this.match = e.target.value.trim();
|
211
211
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
212
|
-
} })), h("verdocs-quick-filter", { key: '
|
212
|
+
} })), h("verdocs-quick-filter", { key: '3c530e4b939ea9beb56fb6a8ef185aefda997b5c', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
213
213
|
this.view = e.detail.value;
|
214
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
214
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'c1dea5014f12031c2811a3a420638dcf9a629518', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
215
215
|
this.status = e.detail.value;
|
216
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
216
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '3709b032cc82bf52bcd1b0502bc320378d80321a', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
217
217
|
this.sort = e.detail.value;
|
218
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
218
|
+
} })), 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 => {
|
219
219
|
var _a;
|
220
220
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
221
221
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -256,7 +256,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
|
|
256
256
|
break;
|
257
257
|
}
|
258
258
|
} }))));
|
259
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
259
|
+
}), !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 => {
|
260
260
|
this.selectedPage = e.detail.selectedPage;
|
261
261
|
} }))) : (h("div", null))));
|
262
262
|
}
|
@@ -38,13 +38,11 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
38
38
|
};
|
39
39
|
this.handleUploadRemove = (e) => {
|
40
40
|
var _a;
|
41
|
-
console.log('removing attachment');
|
42
41
|
e.preventDefault();
|
43
42
|
e.stopPropagation();
|
44
|
-
|
43
|
+
this.dialogOpen = false;
|
45
44
|
this.selectedFile = null;
|
46
|
-
|
47
|
-
// this.dialogOpen = false;
|
45
|
+
(_a = this.deleted) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.fieldname });
|
48
46
|
};
|
49
47
|
this.endpoint = VerdocsEndpoint.getDefault();
|
50
48
|
this.templateid = '';
|
@@ -64,6 +62,7 @@ const VerdocsFieldAttachment = /*@__PURE__*/ proxyCustomElement(class VerdocsFie
|
|
64
62
|
async focusField() {
|
65
63
|
// Our input field is fake, so we fake the flash too
|
66
64
|
this.focused = true;
|
65
|
+
this.dialogOpen = true;
|
67
66
|
setTimeout(() => {
|
68
67
|
this.focused = false;
|
69
68
|
}, 500);
|
@@ -55,6 +55,7 @@ const VerdocsFieldDate = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldDate
|
|
55
55
|
this.deleted = createEvent(this, "deleted", 7);
|
56
56
|
this.fieldStore = null;
|
57
57
|
this.roleStore = null;
|
58
|
+
this.picker = null;
|
58
59
|
this.templateid = '';
|
59
60
|
this.fieldname = '';
|
60
61
|
this.disabled = false;
|
@@ -70,8 +71,10 @@ const VerdocsFieldDate = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldDate
|
|
70
71
|
this.focused = false;
|
71
72
|
}
|
72
73
|
async focusField() {
|
74
|
+
var _a;
|
73
75
|
// Our input field is fake, so we fake the flash too
|
74
76
|
this.focused = true;
|
77
|
+
(_a = this.picker) === null || _a === void 0 ? void 0 : _a.show();
|
75
78
|
setTimeout(() => {
|
76
79
|
this.focused = false;
|
77
80
|
}, 500);
|
@@ -85,7 +88,7 @@ const VerdocsFieldDate = /*@__PURE__*/ proxyCustomElement(class VerdocsFieldDate
|
|
85
88
|
this.roleStore = getTemplateRoleStore(this.templateid);
|
86
89
|
}
|
87
90
|
componentDidLoad() {
|
88
|
-
new AirDatepicker(`#${this.containerId}`, {
|
91
|
+
this.picker = new AirDatepicker(`#${this.containerId}`, {
|
89
92
|
locale: default_1,
|
90
93
|
isMobile: true,
|
91
94
|
autoClose: true,
|
@@ -65,11 +65,18 @@ const VerdocsFieldDropdown = /*@__PURE__*/ proxyCustomElement(class VerdocsField
|
|
65
65
|
render() {
|
66
66
|
const { templateid, fieldname = '', editable = false, done = false, disabled = false, focused, xscale = 1, yscale = 1 } = this;
|
67
67
|
const field = this.fieldStore.get('fields').find(field => field.name === fieldname);
|
68
|
-
|
68
|
+
let { required = false, role_name = '', value = '', label = '', options } = field || {};
|
69
69
|
const backgroundColor = getRGBA(getRoleIndex(this.roleStore, role_name));
|
70
70
|
if (done) {
|
71
71
|
return h(Host, { class: { done } }, value);
|
72
72
|
}
|
73
|
+
// TODO: Look for other places this mistaken assumption was made.
|
74
|
+
// Defaults only apply in destructuring if undefined. null doesn't trigger it.
|
75
|
+
options || (options = []);
|
76
|
+
if (!options.length) {
|
77
|
+
console.log('[DROPDOWN] Dropdown has no options, hiding field...', fieldname);
|
78
|
+
return h(Host, null);
|
79
|
+
}
|
73
80
|
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) => {
|
74
81
|
e.stopPropagation();
|
75
82
|
this.showingProperties = !this.showingProperties;
|
@@ -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: '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")));
|
25
25
|
}
|
26
26
|
static get style() { return VerdocsQuickFunctionsStyle0; }
|
27
27
|
}, [0, "verdocs-quick-functions", {
|
@@ -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: '33700d0c932da7138bf44f6dd69501d8c652bb4d' }, "\u00A0");
|
14
14
|
}
|
15
15
|
static get style() { return VerdocsSearchTabsStyle0; }
|
16
16
|
}, [0, "verdocs-search-tabs", {
|