@verdocs/web-sdk 1.10.10 → 1.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Envelopes-68058bbe.js → Envelopes-7381bd9a.js} +11 -0
- package/dist/cjs/{Envelopes-4cc18551.js → Envelopes-9886af0f.js} +4 -1
- package/dist/cjs/{interact.min-3e3c03a5.js → interact.min-d223d04b.js} +3 -19
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-f4cfa1fb.js +349 -0
- package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_2.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +6 -3
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-date.cjs.entry.js +7 -3
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +8 -3
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +7 -3
- package/dist/cjs/verdocs-preview.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +12 -5
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +3 -0
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +16 -7
- package/dist/cjs/verdocs-template-name.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +47 -11
- package/dist/cjs/verdocs-view.cjs.entry.js +51 -11
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +6 -0
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +4 -2
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-component-error/verdocs-component-error.css +2 -0
- package/dist/collection/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +27 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +10 -4
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +70 -8
- package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +5 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +5 -1
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +5 -1
- package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.js +5 -1
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +5 -1
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +5 -1
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +5 -1
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +5 -1
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +3 -0
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +37 -5
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.js +3 -4
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.css +16 -0
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +65 -7
- package/dist/collection/utils/envelopeStore.js +3 -0
- package/dist/collection/utils/utils.js +44 -3
- package/dist/components/Envelopes.js +4 -1
- package/dist/components/Envelopes2.js +11 -1
- package/dist/components/interact.min.js +1 -17
- package/dist/components/utils.js +80 -4
- package/dist/components/verdocs-component-error2.js +1 -1
- package/dist/components/verdocs-dropdown2.js +2 -2
- package/dist/components/verdocs-envelope-sidebar.js +4 -1
- package/dist/components/verdocs-field-checkbox.js +5 -1
- package/dist/components/verdocs-field-date.js +5 -1
- package/dist/components/verdocs-field-initial.js +5 -1
- package/dist/components/verdocs-field-radio-button.js +5 -1
- package/dist/components/verdocs-field-signature.js +5 -1
- package/dist/components/verdocs-field-textarea.js +5 -1
- package/dist/components/verdocs-field-textbox.js +5 -1
- package/dist/components/verdocs-field-timestamp.js +5 -1
- package/dist/components/verdocs-sign.js +9 -3
- package/dist/components/verdocs-template-attachments.js +10 -1
- package/dist/components/verdocs-template-fields2.js +14 -5
- package/dist/components/verdocs-template-name.js +11 -6
- package/dist/components/verdocs-template-recipients.js +53 -12
- package/dist/components/verdocs-view2.js +47 -8
- package/dist/docs.json +57 -3
- package/dist/esm/{Envelopes-91d7e139.js → Envelopes-b8945309.js} +4 -1
- package/dist/esm/{Envelopes-130fd6ea.js → Envelopes-eb3eef02.js} +11 -1
- package/dist/esm/{interact.min-32c1c1e4.js → interact.min-e472871a.js} +1 -17
- package/dist/esm/loader.js +1 -1
- package/dist/esm/utils-8065a62d.js +334 -0
- package/dist/esm/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm/verdocs-document-page_2.entry.js +3 -2
- package/dist/esm/verdocs-dropdown.entry.js +2 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +6 -3
- package/dist/esm/verdocs-field-checkbox.entry.js +8 -3
- package/dist/esm/verdocs-field-date.entry.js +7 -3
- package/dist/esm/verdocs-field-dropdown.entry.js +3 -2
- package/dist/esm/verdocs-field-initial.entry.js +8 -3
- package/dist/esm/verdocs-field-payment.entry.js +3 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +8 -3
- package/dist/esm/verdocs-field-signature.entry.js +8 -3
- package/dist/esm/verdocs-field-textarea.entry.js +8 -3
- package/dist/esm/verdocs-field-textbox.entry.js +8 -3
- package/dist/esm/verdocs-field-timestamp.entry.js +7 -3
- package/dist/esm/verdocs-preview.entry.js +3 -2
- package/dist/esm/verdocs-send.entry.js +3 -2
- package/dist/esm/verdocs-sign.entry.js +12 -5
- package/dist/esm/verdocs-template-attachments.entry.js +3 -0
- package/dist/esm/verdocs-template-create_2.entry.js +16 -7
- package/dist/esm/verdocs-template-name.entry.js +3 -4
- package/dist/esm/verdocs-template-recipients.entry.js +48 -12
- package/dist/esm/verdocs-view.entry.js +51 -11
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Envelopes-b8945309.js +1 -0
- package/dist/esm-es5/{Envelopes-130fd6ea.js → Envelopes-eb3eef02.js} +1 -1
- package/dist/esm-es5/interact.min-e472871a.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/utils-8065a62d.js +13 -0
- package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +3 -1
- package/dist/types/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +9 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -1
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +9 -0
- package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +10 -1
- package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.d.ts +12 -1
- package/dist/types/components.d.ts +17 -1
- package/dist/types/utils/envelopeStore.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +4 -1
- package/dist/verdocs-web-sdk/p-085d66a2.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b39df234.system.entry.js → p-0c393c2b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0d7db907.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-113a45d3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-127a569c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-19d13aca.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1fe9560f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-25fa36d7.js +13 -0
- package/dist/verdocs-web-sdk/p-28620067.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-388b771c.js +1 -0
- package/dist/verdocs-web-sdk/p-38d00c38.system.js +13 -0
- package/dist/verdocs-web-sdk/p-4086a15a.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b40a50a8.system.entry.js → p-41122f38.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-42a82518.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-433a7bb3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-56196fad.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5dc58d34.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5fda1fe8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-63c55bc3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6619bc62.js +1 -0
- package/dist/verdocs-web-sdk/p-68eb0ad8.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6c231fe6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6c4d28a2.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6e15a51e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-7ac87084.system.js → p-6f53c098.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-76bdb162.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-79514d21.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-7d8de5d6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-80fe8ac3.system.js +1 -0
- package/dist/verdocs-web-sdk/p-8a430554.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8b20b903.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8e5065af.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8ff15619.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-93b857b6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a892d5b4.js +1 -0
- package/dist/verdocs-web-sdk/p-b225dcfb.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cdff8cba.system.entry.js → p-b430f3d0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b7740fe7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d06946ca.entry.js → p-bc24fcdc.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-bde3d383.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c08b737c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-8c53e0ff.system.entry.js → p-c317702e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c6406e1d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-cf27d3ce.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0eb992eb.entry.js → p-d3e25ad3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-d5836d39.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d78594bb.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-9345346d.entry.js → p-e079768b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e53a7969.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e65ec569.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e0cfad01.system.js → p-e764098e.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-abffbbaf.entry.js → p-ec913a97.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/utils-865fd657.js +0 -269
- package/dist/esm/utils-274e2e93.js +0 -258
- package/dist/esm-es5/Envelopes-91d7e139.js +0 -1
- package/dist/esm-es5/interact.min-32c1c1e4.js +0 -1
- package/dist/esm-es5/utils-274e2e93.js +0 -1
- package/dist/verdocs-web-sdk/p-00307be5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-0214eab8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-07dfda29.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-19f6e8c8.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1b58f506.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1c92741b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2037252b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-242647c0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-25256749.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29df733a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-36fd1c28.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-46cfb904.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-47dfcf69.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4f12a8a7.js +0 -1
- package/dist/verdocs-web-sdk/p-50c9771e.js +0 -1
- package/dist/verdocs-web-sdk/p-587f4405.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-628aef1d.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6790f267.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-72f4b40b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7a05d4ac.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-875f9455.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-880b619d.js +0 -1
- package/dist/verdocs-web-sdk/p-996008f6.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-af65650c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b22a2c9a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b981d415.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bda7353b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c11a7c7e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c73998d3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c86a40a3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c9eb3771.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cd4270a9.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d122cadd.system.js +0 -1
- package/dist/verdocs-web-sdk/p-d6e07c20.js +0 -1
- package/dist/verdocs-web-sdk/p-d88f7d5e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e090d5e1.system.js +0 -1
- package/dist/verdocs-web-sdk/p-e1754b47.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e6f3735e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e845dc2c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ef4603fd.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f81a559c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ff2816cf.entry.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
3
|
-
import { g as getEnvelopeById, s as state } from './Envelopes-
|
|
3
|
+
import { g as getEnvelopeById, s as state } from './Envelopes-b8945309.js';
|
|
4
4
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
5
5
|
import { f as format } from './index-d264c496.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
|
-
import './Envelopes-
|
|
7
|
+
import './Envelopes-eb3eef02.js';
|
|
8
8
|
import './index-fd7b8a34.js';
|
|
9
9
|
import './Templates-8e4ab976.js';
|
|
10
10
|
|
|
@@ -38,6 +38,7 @@ const VerdocsEnvelopeSidebar = class {
|
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
this.sdkError = createEvent(this, "sdkError", 7);
|
|
41
|
+
this.envelopeUpdated = createEvent(this, "envelopeUpdated", 7);
|
|
41
42
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
42
43
|
this.envelopeId = '';
|
|
43
44
|
this.activeTab = 1;
|
|
@@ -76,7 +77,9 @@ const VerdocsEnvelopeSidebar = class {
|
|
|
76
77
|
!['complete', 'declined', 'canceled'].includes(state.envelope.status));
|
|
77
78
|
}
|
|
78
79
|
handleRecipientAction(recipient, id) {
|
|
80
|
+
var _a;
|
|
79
81
|
console.log('recipient action', id, recipient);
|
|
82
|
+
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: state.envelope, event: id });
|
|
80
83
|
}
|
|
81
84
|
prepareHistoryEntries() {
|
|
82
85
|
const entries = [];
|
|
@@ -200,7 +203,7 @@ const VerdocsEnvelopeSidebar = class {
|
|
|
200
203
|
const session = this.endpoint.getSession();
|
|
201
204
|
const isEnvelopeOwner = session.profile_id === state.envelope.profile_id; // TODO: What about org admins?
|
|
202
205
|
const historyEntries = this.prepareHistoryEntries();
|
|
203
|
-
return (h(Host, { class: this.panelOpen ? 'open' : '' }, h("div", { class: "buttons" }, h("button", { class: this.activeTab === 1 ? 'active' : '', onClick: () => this.setTab(1), innerHTML: InformationCircle }), h("button", { class: this.activeTab === 2 ? 'active' : '', onClick: () => this.setTab(2), innerHTML: Users }), h("button", { class: this.activeTab === 3 ? 'active' : '', onClick: () => this.setTab(3), innerHTML: ClipboardDocuments })), this.activeTab === 1 && (h("div", { class: "content" }, h("div", { class: "title" }, "Details"), h("div", { class: "label" }, "Envelope ID"), h("div", { class: "value" }, state.envelope.id), h("div", { class: "label" }, "Date Created"), h("div", { class: "value" }, format(new Date(state.envelope.created_at), 'PP pp')), h("div", { class: "label" }, "Last Modified"), h("div", { class: "value" }, format(new Date(state.envelope.updated_at), 'PP pp')), h("div", { class: "label" }, "Status"), h("div", { class: "value" }, state.envelope.status), h("div", { class: "label" }, "Verdoc Owner UUID"), h("div", { class: "value" }, state.envelope.profile_id), h("div", { class: "label" }, "Verdoc Owner Name"), h("div", { class: "value" }, (_a = state.envelope.profile) === null || _a === void 0 ? void 0 :
|
|
206
|
+
return (h(Host, { class: this.panelOpen ? 'open' : '', "data-r": state.updateCount }, h("div", { class: "buttons" }, h("button", { class: this.activeTab === 1 ? 'active' : '', onClick: () => this.setTab(1), innerHTML: InformationCircle }), h("button", { class: this.activeTab === 2 ? 'active' : '', onClick: () => this.setTab(2), innerHTML: Users }), h("button", { class: this.activeTab === 3 ? 'active' : '', onClick: () => this.setTab(3), innerHTML: ClipboardDocuments })), this.activeTab === 1 && (h("div", { class: "content" }, h("div", { class: "title" }, "Details"), h("div", { class: "label" }, "Envelope ID"), h("div", { class: "value" }, state.envelope.id), h("div", { class: "label" }, "Date Created"), h("div", { class: "value" }, format(new Date(state.envelope.created_at), 'PP pp')), h("div", { class: "label" }, "Last Modified"), h("div", { class: "value" }, format(new Date(state.envelope.updated_at), 'PP pp')), h("div", { class: "label" }, "Status"), h("div", { class: "value" }, state.envelope.status), h("div", { class: "label" }, "Verdoc Owner UUID"), h("div", { class: "value" }, state.envelope.profile_id), h("div", { class: "label" }, "Verdoc Owner Name"), h("div", { class: "value" }, (_a = state.envelope.profile) === null || _a === void 0 ? void 0 :
|
|
204
207
|
_a.first_name, " ", (_b = state.envelope.profile) === null || _b === void 0 ? void 0 :
|
|
205
208
|
_b.last_name), h("div", { class: "label" }, "Verdoc Owner Email"), h("div", { class: "value" }, (_c = state.envelope.profile) === null || _c === void 0 ? void 0 : _c.email))), this.activeTab === 2 && (h("div", { class: "content" }, h("div", { class: "title" }, "Recipients"), state.envelope.recipients.map((recipient, index) => (h("div", { class: "recipient-detail" }, h("div", { class: "recipient-header" }, h("div", { class: "recipient-number" }, index + 1), h("div", { class: "recipient-type" }, recipient.type), h("div", { class: { 'recipient-status': true, [recipient.status]: true } }, recipient.status), isEnvelopeOwner && (h("verdocs-dropdown", { onOptionSelected: item => this.handleRecipientAction(recipient, item.detail.id), options: [
|
|
206
209
|
{ id: 'reminder', label: 'Send Reminder', disabled: !this.canResendRecipient(recipient) },
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -45,7 +46,11 @@ const VerdocsFieldCheckbox = class {
|
|
|
45
46
|
if (this.done) {
|
|
46
47
|
return h(Host, { class: { done: this.done } }, option.checked ? '✓' : '☐');
|
|
47
48
|
}
|
|
48
|
-
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("label", null, h("input", { type: "checkbox", tabIndex: settings.order, checked: option.checked, disabled: disabled, required: settings.required, value: option.id }), h("span", null), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
49
|
+
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("label", null, h("input", { type: "checkbox", tabIndex: settings.order, checked: option.checked, disabled: disabled, required: settings.required, value: option.id }), h("span", null), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
50
|
+
var _a;
|
|
51
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
52
|
+
return this.hideSettingsPanel();
|
|
53
|
+
}, onSettingsChanged: e => {
|
|
49
54
|
var _a;
|
|
50
55
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
51
56
|
return this.hideSettingsPanel();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { g as getFieldSettings } from './utils-
|
|
2
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
3
3
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import { f as format } from './index-d264c496.js';
|
|
6
|
-
import './Envelopes-
|
|
6
|
+
import './Envelopes-eb3eef02.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './Files-70a192df.js';
|
|
9
9
|
import './index-fd7b8a34.js';
|
|
@@ -2617,7 +2617,11 @@ const VerdocsFieldDate = class {
|
|
|
2617
2617
|
const formatted = (settings === null || settings === void 0 ? void 0 : settings.result) ? format(new Date(settings === null || settings === void 0 ? void 0 : settings.result), 'MMM d, y') : '';
|
|
2618
2618
|
return h(Host, { class: { done: this.done } }, formatted);
|
|
2619
2619
|
}
|
|
2620
|
-
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("input", { type: "text", value: "", id: this.containerId, disabled: disabled, placeholder: settings.placeholder, required: settings.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
2620
|
+
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("input", { type: "text", value: "", id: this.containerId, disabled: disabled, placeholder: settings.placeholder, required: settings.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
2621
|
+
var _a;
|
|
2622
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
2623
|
+
return this.hideSettingsPanel();
|
|
2624
|
+
}, onSettingsChanged: e => {
|
|
2621
2625
|
var _a;
|
|
2622
2626
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
2623
2627
|
return this.hideSettingsPanel();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -73,7 +74,11 @@ const VerdocsFieldInitial = class {
|
|
|
73
74
|
if (this.done) {
|
|
74
75
|
return h(Host, { class: { done: this.done } }, value && h("img", { src: value, alt: "Initials" }));
|
|
75
76
|
}
|
|
76
|
-
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
77
|
+
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, value ? (h("img", { src: value, alt: "Initials" })) : (h("button", { class: {}, onClick: () => !disabled && this.handleShow() }, "Initials")), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
78
|
+
var _a;
|
|
79
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
80
|
+
return this.hideSettingsPanel();
|
|
81
|
+
}, onSettingsChanged: e => {
|
|
77
82
|
var _a;
|
|
78
83
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
79
84
|
return this.hideSettingsPanel();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -49,7 +50,11 @@ const VerdocsFieldRadioButton = class {
|
|
|
49
50
|
if (this.done) {
|
|
50
51
|
return (h(Host, { class: { done: this.done }, style: { maxWidth: '10px' } }, h("span", { innerHTML: !!option.selected ? RadioIconSelected : RadioIconUnselected })));
|
|
51
52
|
}
|
|
52
|
-
return (h(Host, { class: { required, disabled }, style: { backgroundColor } }, h("input", { id: id, type: "radio", value: option.id, tabIndex: settings.order, name: this.field.name, checked: !!option.selected, disabled: disabled, required: settings.required }), h("label", { htmlFor: id }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
53
|
+
return (h(Host, { class: { required, disabled }, style: { backgroundColor } }, h("input", { id: id, type: "radio", value: option.id, tabIndex: settings.order, name: this.field.name, checked: !!option.selected, disabled: disabled, required: settings.required }), h("label", { htmlFor: id }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
54
|
+
var _a;
|
|
55
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
56
|
+
return this.hideSettingsPanel();
|
|
57
|
+
}, onSettingsChanged: e => {
|
|
53
58
|
var _a;
|
|
54
59
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
55
60
|
return this.hideSettingsPanel();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -72,7 +73,11 @@ const VerdocsFieldSignature = class {
|
|
|
72
73
|
if (this.done) {
|
|
73
74
|
return h(Host, { class: { done: this.done } }, value && h("img", { src: value, alt: "Signature" }));
|
|
74
75
|
}
|
|
75
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, value ? h("img", { src: value, alt: "Signature" }) : h("button", { onClick: () => !disabled && this.handleShow() }, "Signature"), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
76
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, value ? h("img", { src: value, alt: "Signature" }) : h("button", { onClick: () => !disabled && this.handleShow() }, "Signature"), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
79
|
+
return this.hideSettingsPanel();
|
|
80
|
+
}, onSettingsChanged: e => {
|
|
76
81
|
var _a;
|
|
77
82
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
78
83
|
return this.hideSettingsPanel();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
-
import './Envelopes-
|
|
5
|
+
import './Envelopes-eb3eef02.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
8
|
+
import './index-d264c496.js';
|
|
8
9
|
import './index-fd7b8a34.js';
|
|
9
10
|
import './Primitives-054bc6e5.js';
|
|
10
11
|
|
|
@@ -46,7 +47,11 @@ const VerdocsFieldTextarea = class {
|
|
|
46
47
|
if (this.done) {
|
|
47
48
|
return h(Host, { class: { done: this.done } }, settings.value);
|
|
48
49
|
}
|
|
49
|
-
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, value: settings.value, disabled: disabled, required: settings.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
50
|
+
return (h(Host, { class: { required: settings.required, disabled }, style: { backgroundColor } }, h("textarea", { placeholder: settings.placeholder || '', tabIndex: settings.order, value: settings.value, disabled: disabled, required: settings.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
51
|
+
var _a;
|
|
52
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
53
|
+
return this.hideSettingsPanel();
|
|
54
|
+
}, onSettingsChanged: e => {
|
|
50
55
|
var _a;
|
|
51
56
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
52
57
|
return this.hideSettingsPanel();
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
3
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
4
|
-
import { g as getFieldSettings } from './utils-
|
|
4
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
5
5
|
import './index-fd7b8a34.js';
|
|
6
6
|
import './Primitives-054bc6e5.js';
|
|
7
|
-
import './Envelopes-
|
|
7
|
+
import './Envelopes-eb3eef02.js';
|
|
8
8
|
import './Token-54690789.js';
|
|
9
9
|
import './Files-70a192df.js';
|
|
10
|
+
import './index-d264c496.js';
|
|
10
11
|
|
|
11
12
|
const verdocsFieldTextboxCss = "verdocs-field-textbox{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;width:150px;height:15px;display:block;font-size:11px;position:relative;letter-spacing:-0.2px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-textbox.disabled{opacity:0.5}verdocs-field-textbox input{width:100%;height:100%;font-size:11px;background:none;font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);border:none;outline:none}verdocs-field-textbox input.hide{display:none}verdocs-field-textbox.required{border:1px solid #cc0000}verdocs-field-textbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-textbox verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-textbox verdocs-button-panel[data-active],verdocs-field-textbox verdocs-button-panel:hover{opacity:1}verdocs-field-textbox verdocs-button-panel .icon svg{fill:#333333}verdocs-field-textbox verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-textbox [data-lastpass-icon-root]{display:none !important}";
|
|
12
13
|
|
|
@@ -47,7 +48,11 @@ const VerdocsFieldTextbox = class {
|
|
|
47
48
|
if (this.done) {
|
|
48
49
|
return h(Host, { class: { done: this.done } }, value);
|
|
49
50
|
}
|
|
50
|
-
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("input", { type: "text", placeholder: settings === null || settings === void 0 ? void 0 : settings.placeholder, tabIndex: settings === null || settings === void 0 ? void 0 : settings.order, value: value, disabled: disabled, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
51
|
+
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled, done: this.done }, style: { backgroundColor } }, h("input", { type: "text", placeholder: settings === null || settings === void 0 ? void 0 : settings.placeholder, tabIndex: settings === null || settings === void 0 ? void 0 : settings.order, value: value, disabled: disabled, required: (_d = this.field) === null || _d === void 0 ? void 0 : _d.required, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
52
|
+
var _a;
|
|
53
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
54
|
+
return this.hideSettingsPanel();
|
|
55
|
+
}, onSettingsChanged: e => {
|
|
51
56
|
var _a;
|
|
52
57
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
53
58
|
return this.hideSettingsPanel();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
3
|
-
import { g as getFieldSettings } from './utils-
|
|
3
|
+
import { g as getFieldSettings } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import { f as format } from './index-d264c496.js';
|
|
6
|
-
import './Envelopes-
|
|
6
|
+
import './Envelopes-eb3eef02.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './Files-70a192df.js';
|
|
9
9
|
import './index-fd7b8a34.js';
|
|
@@ -53,7 +53,11 @@ const VerdocsFieldTimestamp = class {
|
|
|
53
53
|
return (h(Host, { class: { required: (_c = this.field) === null || _c === void 0 ? void 0 : _c.required, disabled }, style: { backgroundColor } }, h("input", { type: "text", placeholder: settings === null || settings === void 0 ? void 0 : settings.placeholder, tabIndex: settings === null || settings === void 0 ? void 0 : settings.order,
|
|
54
54
|
// TODO: It would really make more sense to show the date and time but the default width of 64px for this field
|
|
55
55
|
// is encoded in a ton of existing entries in the database and is hard to change.
|
|
56
|
-
value: formatted, disabled: true, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(),
|
|
56
|
+
value: formatted, disabled: true, ref: el => (this.el = el) }), this.editable && (h("verdocs-button-panel", { icon: settingsIcon, id: `verdocs-settings-panel-${this.field.name}` }, h("h6", null, "Field Settings"), h("verdocs-template-field-properties", { templateId: state.templateId, fieldName: this.field.name, onClose: () => this.hideSettingsPanel(), onDelete: () => {
|
|
57
|
+
var _a;
|
|
58
|
+
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit({ fieldName: this.field.name });
|
|
59
|
+
return this.hideSettingsPanel();
|
|
60
|
+
}, onSettingsChanged: e => {
|
|
57
61
|
var _a;
|
|
58
62
|
(_a = this.settingsChanged) === null || _a === void 0 ? void 0 : _a.emit(e.detail);
|
|
59
63
|
return this.hideSettingsPanel();
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
3
|
-
import { r as renderDocumentField, a as getRoleIndex } from './utils-
|
|
3
|
+
import { r as renderDocumentField, a as getRoleIndex } from './utils-8065a62d.js';
|
|
4
4
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import { l as loadTemplate } from './Templates-a7530314.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
|
-
import './Envelopes-
|
|
8
|
+
import './Envelopes-eb3eef02.js';
|
|
9
9
|
import './Files-70a192df.js';
|
|
10
|
+
import './index-d264c496.js';
|
|
10
11
|
import './index-fd7b8a34.js';
|
|
11
12
|
import './Primitives-054bc6e5.js';
|
|
12
13
|
import './Templates-8e4ab976.js';
|
|
@@ -4,14 +4,15 @@ import { i as isValidEmail, a as isValidPhone } from './Validators-f110bae2.js';
|
|
|
4
4
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
5
5
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
6
6
|
import { l as loadTemplate } from './Templates-a7530314.js';
|
|
7
|
-
import { a as getRoleIndex } from './utils-
|
|
7
|
+
import { a as getRoleIndex } from './utils-8065a62d.js';
|
|
8
8
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
9
9
|
import './Token-54690789.js';
|
|
10
10
|
import './index-fd7b8a34.js';
|
|
11
11
|
import './Primitives-054bc6e5.js';
|
|
12
12
|
import './Templates-8e4ab976.js';
|
|
13
|
-
import './Envelopes-
|
|
13
|
+
import './Envelopes-eb3eef02.js';
|
|
14
14
|
import './Files-70a192df.js';
|
|
15
|
+
import './index-d264c496.js';
|
|
15
16
|
|
|
16
17
|
const verdocsSendCss = "verdocs-send{display:-ms-flexbox;display:flex;padding:10px;position:relative;background:#ffffff;-ms-flex-direction:column;flex-direction:column;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-send .recipients{position:relative}verdocs-send .left-line{top:32px;left:20px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-send .level{display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;margin-left:50px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:8px 0 4px 0;border-bottom:1px solid #97979744}verdocs-send .level .level-icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-send .level .level-icon svg{fill:#00000089}verdocs-send .level .recipient{height:30px;display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px;color:#000000;cursor:pointer;font-size:14px;-ms-flex-align:center;align-items:center;border-radius:30px;-ms-flex-direction:row;flex-direction:row;background:#dddddd;white-space:nowrap;padding:2px 10px 2px 14px}verdocs-send .level .recipient .icon{width:22px;height:22px;-ms-flex:0 0 22px;flex:0 0 22px;margin:0 0 0 10px}verdocs-send .level .recipient .icon svg{width:22px;height:22px;fill:#333333;outline:none}verdocs-send .level .complete{-ms-flex:1;flex:1;height:30px;display:-ms-flexbox;display:flex;color:#000000;font-size:14px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:3px 10px 3px 2px}verdocs-send .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-direction:row;flex-direction:row}verdocs-send verdocs-contact-picker{left:0;top:41px;z-index:10;position:absolute;border:1px solid #dddddd;-webkit-box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1);box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1)}";
|
|
17
18
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-f78d163d.js';
|
|
2
|
-
import {
|
|
2
|
+
import { c as getSigningSession, u as updateEnvelopeField, d as updateEnvelopeFieldSignature, e as updateEnvelopeFieldInitials } from './Envelopes-eb3eef02.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
4
4
|
import { a as isValidPhone, i as isValidEmail } from './Validators-f110bae2.js';
|
|
5
5
|
import { f as fullNameToInitials } from './Primitives-054bc6e5.js';
|
|
6
|
-
import { s as
|
|
7
|
-
import { g as getEnvelopeById, s as state } from './Envelopes-
|
|
6
|
+
import { s as saveAttachment, u as updateDocumentFieldValue, a as getRoleIndex, r as renderDocumentField, b as getFieldId } from './utils-8065a62d.js';
|
|
7
|
+
import { g as getEnvelopeById, s as state } from './Envelopes-b8945309.js';
|
|
8
8
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
9
9
|
import './Token-54690789.js';
|
|
10
10
|
import './Files-70a192df.js';
|
|
11
|
+
import './index-d264c496.js';
|
|
11
12
|
import './index-fd7b8a34.js';
|
|
12
13
|
import './Templates-8e4ab976.js';
|
|
13
14
|
|
|
@@ -213,29 +214,35 @@ const VerdocsSign = class {
|
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
216
|
async handleOptionSelected(e) {
|
|
217
|
+
var _a, _b, _c, _d, _e;
|
|
216
218
|
switch (e.detail.id) {
|
|
217
219
|
case 'later':
|
|
218
220
|
this.finishLater = true;
|
|
219
221
|
this.showFinishLater = true;
|
|
222
|
+
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'later' });
|
|
220
223
|
// this.router.navigate([`view/sign/${this.envelopeId}/role/${this.roleName}/saved`]);
|
|
221
224
|
break;
|
|
222
225
|
case 'claim':
|
|
223
226
|
window.alert('This feature will be available in an upcoming release.');
|
|
227
|
+
(_b = this.envelopeUpdated) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'claimed' });
|
|
224
228
|
break;
|
|
225
229
|
case 'decline':
|
|
226
230
|
{
|
|
227
231
|
const declineResult = await envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId);
|
|
228
232
|
console.log('Decline result', declineResult);
|
|
233
|
+
(_c = this.envelopeUpdated) === null || _c === void 0 ? void 0 : _c.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'declined' });
|
|
229
234
|
this.isDone = true;
|
|
230
235
|
}
|
|
231
236
|
break;
|
|
232
237
|
case 'print':
|
|
233
238
|
window.print();
|
|
239
|
+
(_d = this.envelopeUpdated) === null || _d === void 0 ? void 0 : _d.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'printed' });
|
|
234
240
|
break;
|
|
235
241
|
case 'download':
|
|
236
|
-
|
|
242
|
+
saveAttachment(this.endpoint, state.envelope, state.envelope.envelope_document_id).catch(e => {
|
|
237
243
|
console.log('Error downloading PDF', e);
|
|
238
244
|
});
|
|
245
|
+
(_e = this.envelopeUpdated) === null || _e === void 0 ? void 0 : _e.emit({ endpoint: this.endpoint, envelope: state.envelope, event: 'downloaded' });
|
|
239
246
|
break;
|
|
240
247
|
}
|
|
241
248
|
}
|
|
@@ -491,7 +498,7 @@ const VerdocsSign = class {
|
|
|
491
498
|
if (state.loading || !state.envelope) {
|
|
492
499
|
return (h(Host, null, h("verdocs-loader", null)));
|
|
493
500
|
}
|
|
494
|
-
return (h(Host, { class: { agreed: this.agreed } }, !this.isDone && !this.finishLater && h("div", { class: "intro" }, "Please review and act on these documents."), !this.isDone && (h("div", { class: "header" }, !this.agreed ? (h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (h(Fragment, null, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, state.envelope.name), h("div", { style: { flex: '1' } }))), !this.isDone && !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.isDone && !this.agreed ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), this.isDone ? (
|
|
501
|
+
return (h(Host, { class: { agreed: this.agreed }, "data-r": state.updateCount }, !this.isDone && !this.finishLater && h("div", { class: "intro" }, "Please review and act on these documents."), !this.isDone && (h("div", { class: "header" }, !this.agreed ? (h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (h(Fragment, null, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, state.envelope.name), h("div", { style: { flex: '1' } }))), !this.isDone && !this.finishLater && h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.isDone && !this.agreed ? h("div", { class: "cover" }) : h("div", { style: { display: 'none' } }), this.isDone ? (
|
|
495
502
|
// <div>test</div>
|
|
496
503
|
h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } })) : (h("div", { class: "document" }, (state.envelope.documents || []).map(envelopeDocument => {
|
|
497
504
|
const pages = [...((envelopeDocument === null || envelopeDocument === void 0 ? void 0 : envelopeDocument.pages) || [])];
|
|
@@ -34,6 +34,9 @@ const VerdocsTemplateAttachments = class {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
+
if (!this.endpoint.session) {
|
|
38
|
+
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
39
|
+
}
|
|
37
40
|
if (this.loading) {
|
|
38
41
|
return (h(Host, { class: "loading" }, h("verdocs-loader", null)));
|
|
39
42
|
}
|
|
@@ -2,14 +2,15 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-f
|
|
|
2
2
|
import { c as createTemplate, g as getTemplate } from './Templates-8e4ab976.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
4
4
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
5
|
-
import { i as interact } from './interact.min-
|
|
5
|
+
import { i as interact } from './interact.min-e472871a.js';
|
|
6
6
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
|
7
|
-
import { a as getRoleIndex, r as renderDocumentField,
|
|
7
|
+
import { a as getRoleIndex, r as renderDocumentField, e as updateCssTransform, f as defaultWidth, h as defaultHeight } from './utils-8065a62d.js';
|
|
8
8
|
import { s as state } from './templateStore-fd4beaae.js';
|
|
9
9
|
import { l as loadTemplate } from './Templates-a7530314.js';
|
|
10
10
|
import './Token-54690789.js';
|
|
11
|
-
import './Envelopes-
|
|
11
|
+
import './Envelopes-eb3eef02.js';
|
|
12
12
|
import './Files-70a192df.js';
|
|
13
|
+
import './index-d264c496.js';
|
|
13
14
|
import './index-fd7b8a34.js';
|
|
14
15
|
import './Primitives-054bc6e5.js';
|
|
15
16
|
|
|
@@ -124,12 +125,12 @@ const iconDatepicker = '<svg xmlns="http://www.w3.org/2000/svg" height="24" widt
|
|
|
124
125
|
const iconSignature = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';
|
|
125
126
|
const iconInitial = '<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';
|
|
126
127
|
const menuOptions = [
|
|
127
|
-
{
|
|
128
|
+
// {id: 'attachment', tooltip: 'Attachment', icon: 'A'},
|
|
128
129
|
{ id: 'checkbox', tooltip: 'Check Box', icon: iconCheck },
|
|
129
130
|
{ id: 'date', tooltip: 'Date', icon: iconDatepicker },
|
|
130
131
|
{ id: 'dropdown', tooltip: 'Dropdown', icon: 'O' },
|
|
131
132
|
{ id: 'initial', tooltip: 'Initials', icon: iconInitial },
|
|
132
|
-
{
|
|
133
|
+
// {id: 'payment', tooltip: 'Payment', icon: 'P'},
|
|
133
134
|
{ id: 'radio', tooltip: 'Radio Button', icon: iconRadio },
|
|
134
135
|
{ id: 'signature', tooltip: 'Signature', icon: iconSignature },
|
|
135
136
|
{ id: 'textarea', tooltip: 'Text Area', icon: iconMultiline },
|
|
@@ -142,12 +143,14 @@ const VerdocsTemplateFields = class {
|
|
|
142
143
|
this.next = createEvent(this, "next", 7);
|
|
143
144
|
this.cancel = createEvent(this, "cancel", 7);
|
|
144
145
|
this.sdkError = createEvent(this, "sdkError", 7);
|
|
146
|
+
this.templateUpdated = createEvent(this, "templateUpdated", 7);
|
|
145
147
|
this.pageHeights = {};
|
|
146
148
|
this.cachedPageInfo = {};
|
|
147
149
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
148
150
|
this.templateId = null;
|
|
149
151
|
this.placing = null;
|
|
150
152
|
this.selectedRoleName = '';
|
|
153
|
+
this.rerender = 1;
|
|
151
154
|
}
|
|
152
155
|
async componentWillLoad() {
|
|
153
156
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -182,11 +185,16 @@ const VerdocsTemplateFields = class {
|
|
|
182
185
|
}
|
|
183
186
|
async handleFieldChange(field, e, optionId) {
|
|
184
187
|
console.log('[FIELDS] handleFieldChange', field, e, optionId);
|
|
188
|
+
this.rerender++;
|
|
185
189
|
}
|
|
186
190
|
attachFieldAttributes(pageInfo, field, roleIndex, el) {
|
|
187
191
|
el.addEventListener('input', e => this.handleFieldChange(field, e));
|
|
188
192
|
el.addEventListener('settingsChanged', () => {
|
|
193
|
+
var _a;
|
|
194
|
+
console.log('settings changed', this, field);
|
|
189
195
|
el.setAttribute('roleindex', getRoleIndex(state.roleNames, field.role_name));
|
|
196
|
+
this.rerender++;
|
|
197
|
+
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'updated-field' });
|
|
190
198
|
});
|
|
191
199
|
el.setAttribute('roleindex', roleIndex);
|
|
192
200
|
el.setAttribute('pageNumber', pageInfo.pageNumber);
|
|
@@ -270,6 +278,7 @@ const VerdocsTemplateFields = class {
|
|
|
270
278
|
return { x, y };
|
|
271
279
|
}
|
|
272
280
|
async handleClickPage(e, page) {
|
|
281
|
+
var _a;
|
|
273
282
|
if (this.placing) {
|
|
274
283
|
const pageNumber = page.sequence;
|
|
275
284
|
const clickedX = e.offsetX;
|
|
@@ -328,11 +337,11 @@ const VerdocsTemplateFields = class {
|
|
|
328
337
|
console.log('Saved field', saved);
|
|
329
338
|
state.fields.push(saved);
|
|
330
339
|
this.placing = null;
|
|
340
|
+
(_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, template: state.template, event: 'added-field' });
|
|
331
341
|
this.handlePageRendered({ detail: this.cachedPageInfo[pageNumber] });
|
|
332
342
|
}
|
|
333
343
|
}
|
|
334
344
|
render() {
|
|
335
|
-
console.log('rendering', state.updateCount);
|
|
336
345
|
if (!this.endpoint.session) {
|
|
337
346
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
338
347
|
}
|
|
@@ -342,7 +351,7 @@ const VerdocsTemplateFields = class {
|
|
|
342
351
|
}
|
|
343
352
|
const pages = [...state.template.pages];
|
|
344
353
|
pages.sort((a, b) => a.sequence - b.sequence);
|
|
345
|
-
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, "data-
|
|
354
|
+
return (h(Host, { class: this.placing ? { [`placing-${this.placing}`]: true } : {}, "data-r": this.rerender, onSubmit: () => {
|
|
346
355
|
console.log('onSubmit');
|
|
347
356
|
} }, h("div", { class: "pages" }, pages.map(page => {
|
|
348
357
|
// console.log('rendering page', page);
|
|
@@ -52,13 +52,12 @@ const VerdocsTemplateName = class {
|
|
|
52
52
|
(_a = this.close) === null || _a === void 0 ? void 0 : _a.emit();
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
+
if (!this.endpoint.session) {
|
|
56
|
+
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
57
|
+
}
|
|
55
58
|
if (this.loading) {
|
|
56
59
|
return (h(Host, { class: "loading" }, h("verdocs-loader", null)));
|
|
57
60
|
}
|
|
58
|
-
// This is meant to be a companion for larger visual experiences so we just go blank on errors for now.
|
|
59
|
-
if (!this.endpoint.session || !state.template) {
|
|
60
|
-
return h(Host, { class: "empty" });
|
|
61
|
-
}
|
|
62
61
|
return (h(Host, null, h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("label", { htmlFor: "verdocs-template-name" }, "Template Name"), h("verdocs-text-input", { id: "verdocs-template-name", value: this.name, autocomplete: "off", placeholder: "Template Name...", onInput: (e) => {
|
|
63
62
|
this.name = e.target.value;
|
|
64
63
|
this.dirty = this.name !== state.template.name;
|