@verdocs/web-sdk 1.10.4 → 1.10.6
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/{Templates-a46d2fe8.js → Templates-a75b133d.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{templateStore-97e17e58.js → templateStore-81ad25a7.js} +1 -0
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +36 -40
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +7 -4
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/elements/verdocs-contact-picker/verdocs-contact-picker.js +2 -2
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +60 -47
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.stories.js +2 -1
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.css +1 -0
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +6 -2
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.stories.js +4 -28
- package/dist/collection/utils/templateStore.js +1 -0
- package/dist/components/templateStore.js +1 -0
- package/dist/components/verdocs-contact-picker2.js +2 -2
- package/dist/components/verdocs-send.js +35 -43
- package/dist/components/verdocs-template-create2.js +7 -3
- package/dist/docs.json +16 -4
- package/dist/esm/{Templates-2522e194.js → Templates-7595bdbf.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{templateStore-da902ad4.js → templateStore-fd4beaae.js} +1 -0
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-field-initial.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-field-signature.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +2 -2
- package/dist/esm/verdocs-send.entry.js +36 -40
- package/dist/esm/verdocs-template-attachments.entry.js +2 -2
- package/dist/esm/verdocs-template-create_2.entry.js +7 -4
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-properties.entry.js +1 -1
- package/dist/esm/verdocs-template-recipients.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-role-properties_2.entry.js +2 -2
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Templates-2522e194.js → Templates-7595bdbf.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{templateStore-da902ad4.js → templateStore-fd4beaae.js} +0 -0
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.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-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +10 -8
- package/dist/types/components/embeds/verdocs-send/verdocs-send.stories.d.ts +2 -1
- package/dist/types/components/templates/verdocs-template-create/verdocs-template-create.d.ts +1 -0
- package/dist/types/components/templates/verdocs-template-create/verdocs-template-create.stories.d.ts +3 -6
- package/dist/types/components.d.ts +2 -1
- package/dist/verdocs-web-sdk/{p-8edafff8.entry.js → p-01117b44.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1aa8ed0f.entry.js → p-0e1f1b27.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1dbbf991.system.entry.js → p-0e5274d0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8d65016c.system.entry.js → p-19f6e8c8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-74f703ae.entry.js → p-1b58f506.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ea9497e5.entry.js → p-2037252b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-26bfe095.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-80f0cd72.system.entry.js → p-34efc869.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-75921846.system.entry.js → p-36fd1c28.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cd49eb2b.system.entry.js → p-3a04acf4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-99b80f74.js → p-3cb8a7f4.js} +0 -0
- package/dist/verdocs-web-sdk/{p-d7d096dc.system.entry.js → p-50892057.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-465288c0.system.entry.js → p-51a99eed.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2f1e01f3.entry.js → p-584e4fca.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-677cf03e.system.js → p-5b62f239.system.js} +0 -0
- package/dist/verdocs-web-sdk/{p-67231081.system.entry.js → p-628aef1d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-6c2d3b0f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-f1a671d5.entry.js → p-6cb274e3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b6e20078.system.js → p-7067adce.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-52c73272.entry.js → p-72f4b40b.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d48d5f49.entry.js → p-7417cdc7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7b111f2b.system.entry.js → p-85336769.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9eaf02d1.system.entry.js → p-875f9455.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8c3d48c1.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-2a5021ab.entry.js → p-9345346d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-af4fd8da.system.entry.js → p-996008f6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d2eb3fb.system.entry.js → p-9f52748a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6183a4e4.entry.js → p-a7c75902.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bb90788b.entry.js → p-a802a598.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dbdfbcd2.entry.js → p-abffbbaf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-370903ee.entry.js → p-af657dd3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b79ab2a9.system.entry.js → p-b22a2c9a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-477301b7.system.entry.js → p-b39df234.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48ac051a.system.entry.js → p-b40a50a8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2ae4af9b.entry.js → p-c11a7c7e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-757e73bc.system.entry.js → p-c86a40a3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a62f9f22.system.entry.js → p-c9216df9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad1da3a4.system.entry.js → p-ccaa35ac.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a259853e.system.entry.js → p-cd4270a9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-cf9883c7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3fd9305c.js → p-d1393a1a.js} +1 -1
- package/dist/verdocs-web-sdk/{p-29dd37a7.entry.js → p-d27a02b5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8fa14890.system.entry.js → p-d95b1215.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-33361647.entry.js → p-e1754b47.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d8fd179b.system.entry.js → p-e179e3de.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d176aad6.entry.js → p-e6f3735e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d683b4f.entry.js → p-e845dc2c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6170a128.entry.js → p-ef4603fd.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bbcfdcdb.system.entry.js → p-efa9bfa2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c84f9b23.entry.js → p-f2ae6ed5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-79776f10.entry.js → p-f69cdc41.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-fc208e71.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-20a0588c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d31be81.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c8133122.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d5a95369.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ea0d2a5a.system.entry.js +0 -1
|
@@ -34,10 +34,11 @@ var createTemplateDocument = function (endpoint, templateId, file, onUploadProgr
|
|
|
34
34
|
.then(function (r) { return r.data; });
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
37
|
+
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:340px}verdocs-template-create form .upload-box{max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
38
38
|
|
|
39
39
|
// import {ITemplate, ITemplateDocument} from '@verdocs/js-sdk/Templates/Types';
|
|
40
40
|
// import {createPage} from '@verdocs/js-sdk/Templates/Pages';
|
|
41
|
+
const unicodeNBSP = ' ';
|
|
41
42
|
const FileIcon = '<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';
|
|
42
43
|
const VerdocsTemplateCreate = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
43
44
|
constructor() {
|
|
@@ -48,8 +49,10 @@ const VerdocsTemplateCreate = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
48
49
|
this.sdkError = createEvent(this, "sdkError", 7);
|
|
49
50
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
50
51
|
this.file = undefined;
|
|
52
|
+
this.creating = false;
|
|
51
53
|
}
|
|
52
54
|
componentWillLoad() {
|
|
55
|
+
this.endpoint.setTimeout(30000);
|
|
53
56
|
this.endpoint.loadSession();
|
|
54
57
|
}
|
|
55
58
|
handleFileChanged(e) {
|
|
@@ -99,12 +102,13 @@ const VerdocsTemplateCreate = /*@__PURE__*/ proxyCustomElement(class extends HTM
|
|
|
99
102
|
if (!this.endpoint.session) {
|
|
100
103
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
101
104
|
}
|
|
102
|
-
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("input", { type: "file", id: "verdocs-template-create-file", multiple: true, accept: "application/pdf", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), h("div", { class: "upload-box" }, h("div", null, h("span", { innerHTML: FileIcon })), h("div", { style: { marginTop: '20px', fontSize: '20px', fontWeight: 'bold' } },
|
|
105
|
+
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("input", { type: "file", id: "verdocs-template-create-file", multiple: true, accept: "application/pdf", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), h("div", { class: "upload-box" }, h("div", null, h("span", { innerHTML: FileIcon })), h("div", { style: { marginTop: '20px', fontSize: '20px', fontWeight: 'bold' } }, this.file ? this.file.name : 'Drag a file here'), h("div", { style: { marginTop: '20px', marginBottom: '20px', fontSize: '16px', height: '20px' } }, this.file ? unicodeNBSP : 'Or, if you prefer...'), h("verdocs-button", { label: this.file ? 'Select a different file' : 'Select a file from your computer', size: "small", onClick: e => this.handleUpload(e) })), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "Next", size: "small", onClick: e => this.handleSubmit(e), disabled: !this.file }))));
|
|
103
106
|
}
|
|
104
107
|
static get style() { return verdocsTemplateCreateCss; }
|
|
105
108
|
}, [0, "verdocs-template-create", {
|
|
106
109
|
"endpoint": [16],
|
|
107
|
-
"file": [32]
|
|
110
|
+
"file": [32],
|
|
111
|
+
"creating": [32]
|
|
108
112
|
}]);
|
|
109
113
|
function defineCustomElement() {
|
|
110
114
|
if (typeof customElements === "undefined") {
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-02-
|
|
2
|
+
"timestamp": "2023-02-10T13:08:38",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "2.20.0",
|
|
@@ -4513,7 +4513,7 @@
|
|
|
4513
4513
|
"filePath": "./src/components/embeds/verdocs-send/verdocs-send.tsx",
|
|
4514
4514
|
"encapsulation": "none",
|
|
4515
4515
|
"tag": "verdocs-send",
|
|
4516
|
-
"docs": "Display a form to collect recipient information for a new
|
|
4516
|
+
"docs": "Display a form to collect recipient information for a new Envelope. If used anonymously, the specified `templateId` must be public.\nBecause most applications have custom workflow requirements to trigger after sending an Envelope, this component does not actually\nperform that operation. Parent applications should listen for the `onSend` event, and can pass the contents of `event.detail`\ndirectly to the `createEnvelope()` call in JS-SDK.",
|
|
4517
4517
|
"docsTags": [],
|
|
4518
4518
|
"usage": {},
|
|
4519
4519
|
"props": [
|
|
@@ -4551,7 +4551,19 @@
|
|
|
4551
4551
|
"required": false
|
|
4552
4552
|
}
|
|
4553
4553
|
],
|
|
4554
|
-
"methods": [
|
|
4554
|
+
"methods": [
|
|
4555
|
+
{
|
|
4556
|
+
"name": "reset",
|
|
4557
|
+
"returns": {
|
|
4558
|
+
"type": "Promise<void>",
|
|
4559
|
+
"docs": ""
|
|
4560
|
+
},
|
|
4561
|
+
"signature": "reset() => Promise<void>",
|
|
4562
|
+
"parameters": [],
|
|
4563
|
+
"docs": "",
|
|
4564
|
+
"docsTags": []
|
|
4565
|
+
}
|
|
4566
|
+
],
|
|
4555
4567
|
"events": [
|
|
4556
4568
|
{
|
|
4557
4569
|
"event": "cancel",
|
|
@@ -4573,7 +4585,7 @@
|
|
|
4573
4585
|
},
|
|
4574
4586
|
{
|
|
4575
4587
|
"event": "send",
|
|
4576
|
-
"detail": "{
|
|
4588
|
+
"detail": "{ roles: IRole[]; name: string; template_id: string; }",
|
|
4577
4589
|
"bubbles": true,
|
|
4578
4590
|
"cancelable": true,
|
|
4579
4591
|
"composed": true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getTemplate } from './Templates-8e4ab976.js';
|
|
2
|
-
import { s as state } from './templateStore-
|
|
2
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
3
3
|
|
|
4
4
|
const pendingNotifications = [];
|
|
5
5
|
const loadTemplate = async (endpoint, templateId) => {
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["verdocs-field-initial",[[0,"verdocs-field-initial",{"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-signature",[[0,"verdocs-field-signature",{"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-build",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[32],"pdfUrl":[32],"template":[32]}]]],["verdocs-field-checkbox",[[0,"verdocs-field-checkbox",{"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-date",[[0,"verdocs-field-date",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-radio-button",[[0,"verdocs-field-radio-button",{"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-textarea",[[0,"verdocs-field-textarea",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-textbox",[[0,"verdocs-field-textbox",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-timestamp",[[0,"verdocs-field-timestamp",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-template-recipients",[[0,"verdocs-template-recipients",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32],"forceRerender":[32]}]]],["verdocs-sign",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["verdocs-template-properties",[[0,"verdocs-template-properties",{"endpoint":[16],"templateId":[1,"template-id"],"template":[32],"name":[32],"visibility":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32]}]]],["verdocs-template-reminders",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32],"loading":[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"username":[32],"password":[32],"loggingIn":[32],"activeSession":[32],"loginError":[32]}]]],["verdocs-template-name",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32],"loading":[32]}]]],["verdocs-search",[[0,"verdocs-search",{"endpoint":[16]}]]],["verdocs-send",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"
|
|
13
|
+
return bootstrapLazy([["verdocs-field-initial",[[0,"verdocs-field-initial",{"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-signature",[[0,"verdocs-field-signature",{"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-build",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[32],"pdfUrl":[32],"template":[32]}]]],["verdocs-field-checkbox",[[0,"verdocs-field-checkbox",{"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-date",[[0,"verdocs-field-date",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-radio-button",[[0,"verdocs-field-radio-button",{"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-textarea",[[0,"verdocs-field-textarea",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-textbox",[[0,"verdocs-field-textbox",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-timestamp",[[0,"verdocs-field-timestamp",{"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-template-recipients",[[0,"verdocs-template-recipients",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32],"forceRerender":[32]}]]],["verdocs-sign",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["verdocs-template-properties",[[0,"verdocs-template-properties",{"endpoint":[16],"templateId":[1,"template-id"],"template":[32],"name":[32],"visibility":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32]}]]],["verdocs-template-reminders",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32],"loading":[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"username":[32],"password":[32],"loggingIn":[32],"activeSession":[32],"loginError":[32]}]]],["verdocs-template-name",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32],"loading":[32]}]]],["verdocs-search",[[0,"verdocs-search",{"endpoint":[16]}]]],["verdocs-send",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["verdocs-template-visibility",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"loading":[32],"personal":[32],"public":[32]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["verdocs-field-attachment",[[0,"verdocs-field-attachment",{"field":[16],"disabled":[4],"roleIndex":[2,"role-index"],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-preview",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["verdocs-envelope-sidebar",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32]}]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["verdocs-template-attachments",[[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"loading":[32]}]]],["verdocs-field-dropdown",[[0,"verdocs-field-dropdown",{"field":[16],"disabled":[4],"roleindex":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-field-payment",[[0,"verdocs-field-payment",{"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{"organization":[16]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"recipientStatusIcons":[32],"containerId":[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{"template":[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{"tags":[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["verdocs-initial-dialog",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["verdocs-view",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"]}]]],["verdocs-toggle-button",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["verdocs-contact-picker",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32]}]]],["verdocs-radio-button",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["verdocs-button",[[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["verdocs-template-role-properties_2",[[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]],["verdocs-floating-menu_2",[[0,"verdocs-floating-menu",{"options":[16]}],[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["verdocs-template-create_2",[[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"placing":[32],"selectedRoleName":[32]}],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"]}]]],["verdocs-quick-functions_3",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["verdocs-dropdown",[[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]],["verdocs-document-page_2",[[0,"verdocs-document-page",{"pageImageUri":[1,"page-image-uri"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32]}],[0,"verdocs-loader"]]],["verdocs-checkbox_4",[[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-text-input",{"value":[1],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"type":[1],"disabled":[4]}],[0,"verdocs-help-icon",{"text":[1],"containerId":[32]}]]],["verdocs-button-panel_3",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"dirty":[32],"loading":[32],"type":[32],"name":[32],"roleName":[32],"required":[32],"placeholder":[32],"defaultValue":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -38,6 +38,7 @@ onChange('template', async (newTemplate) => {
|
|
|
38
38
|
state.pageNumbers = integerSequence(1, newTemplate.pages.length);
|
|
39
39
|
state.updateCount++;
|
|
40
40
|
});
|
|
41
|
+
// TODO: Do not rely on this, it doesn't appear to be working
|
|
41
42
|
onChange('fields', newField => {
|
|
42
43
|
console.log('[TEMPLATESTORE] Field changed', newField);
|
|
43
44
|
state.dirty = true;
|
|
@@ -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 { l as loadTemplate } from './Templates-
|
|
3
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
4
4
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
5
5
|
import './Token-54690789.js';
|
|
6
6
|
import './Templates-8e4ab976.js';
|
|
7
|
-
import './templateStore-
|
|
7
|
+
import './templateStore-fd4beaae.js';
|
|
8
8
|
import './index-fd7b8a34.js';
|
|
9
9
|
import './Primitives-054bc6e5.js';
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ import { r as registerInstance, h, H as Host, c as createEvent, a as getElement
|
|
|
2
2
|
import { c as createPopper } from './popper-f860750c.js';
|
|
3
3
|
import { u as updateField, d as deleteField } from './Fields-c82e6df3.js';
|
|
4
4
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
5
|
-
import { s as state } from './templateStore-
|
|
6
|
-
import { l as loadTemplate } from './Templates-
|
|
5
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
6
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
7
7
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
8
8
|
import './Token-54690789.js';
|
|
9
9
|
import './index-fd7b8a34.js';
|
|
@@ -74,12 +74,12 @@ const VerdocsContactPicker = class {
|
|
|
74
74
|
this.showSuggestions = false;
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-name" }, "Name:"), h("input", { id: "verdocs-contact-picker-name", name: "verdocs-contact-picker-name", type: "text", "data-lpignore": "true", autocomplete: "
|
|
77
|
+
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-name" }, "Name:"), h("input", { id: "verdocs-contact-picker-name", name: "verdocs-contact-picker-name", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.name, placeholder: "Recipient Name...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); },
|
|
78
78
|
// onBlur={() => (this.showSuggestions = false)}
|
|
79
79
|
onInput: e => this.handleNameChange(e) }), this.showSuggestions && (h("div", { class: "dropdown" }, this.contactSuggestions.map(suggestion => {
|
|
80
80
|
var _a;
|
|
81
81
|
return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.name, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.avatar ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.avatar }) : h("div", { class: "avatar", innerHTML: placeholderIcon }), h("div", { class: "details" }, h("div", { class: "name" }, suggestion.name), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
|
|
82
|
-
})))), h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-email" }, "Email:"), h("input", { id: "verdocs-contact-picker-email", name: "verdocs-contact-picker-email", type: "text", "data-lpignore": "true",
|
|
82
|
+
})))), h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-email" }, "Email:"), h("input", { id: "verdocs-contact-picker-email", name: "verdocs-contact-picker-email", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.email, placeholder: "Email Address...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleEmailChange(e) })), h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-phone" }, "Phone:"), h("input", { id: "verdocs-contact-picker-phone", name: "verdocs-contact-picker-phone", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.phone, placeholder: "Phone Number...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handlePhoneChange(e) })), this.showMessage && (h("div", { class: "row" }, h("label", { htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Invitation Message...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleMessageChange(e) }))), h("div", { class: "buttons" }, h("verdocs-toggle-button", { icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
|
|
83
83
|
this.showMessage = e.detail.active;
|
|
84
84
|
this.showSuggestions = false;
|
|
85
85
|
} }), h("verdocs-toggle-button", { icon: delegateIcon, size: "small", active: this.delegator, onToggle: e => {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { s as state } from './templateStore-
|
|
3
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
4
4
|
import './index-fd7b8a34.js';
|
|
5
5
|
import './Primitives-054bc6e5.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { g as getFieldSettings } from './utils-274e2e93.js';
|
|
3
3
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import { f as format } from './index-d264c496.js';
|
|
6
6
|
import './Envelopes-130fd6ea.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import './Envelopes-130fd6ea.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './Files-70a192df.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { s as state } from './templateStore-
|
|
3
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
4
4
|
import { g as getFieldSettings } from './utils-274e2e93.js';
|
|
5
5
|
import './index-fd7b8a34.js';
|
|
6
6
|
import './Primitives-054bc6e5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { g as getFieldSettings } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
5
|
import { f as format } from './index-d264c496.js';
|
|
6
6
|
import './Envelopes-130fd6ea.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
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
3
|
import { r as renderDocumentField, a as getRoleIndex } from './utils-274e2e93.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './Envelopes-130fd6ea.js';
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
|
-
import { g as getTemplate } from './Templates-8e4ab976.js';
|
|
3
2
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
4
3
|
import { i as isValidEmail, a as isValidPhone } from './Validators-f110bae2.js';
|
|
5
4
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
5
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
6
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
6
7
|
import { a as getRoleIndex } from './utils-274e2e93.js';
|
|
8
|
+
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
9
|
import './Token-54690789.js';
|
|
10
|
+
import './index-fd7b8a34.js';
|
|
11
|
+
import './Primitives-054bc6e5.js';
|
|
12
|
+
import './Templates-8e4ab976.js';
|
|
8
13
|
import './Envelopes-130fd6ea.js';
|
|
9
14
|
import './Files-70a192df.js';
|
|
10
15
|
|
|
@@ -23,42 +28,29 @@ const VerdocsSend = class {
|
|
|
23
28
|
this.levels = [];
|
|
24
29
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
25
30
|
this.templateId = null;
|
|
26
|
-
this.template = null;
|
|
27
|
-
this.pdfUrl = null;
|
|
28
31
|
this.containerId = `verdocs-send-${Math.random().toString(36).substring(2, 11)}`;
|
|
29
32
|
this.rolesAtLevel = {};
|
|
30
33
|
this.showPickerForId = '';
|
|
31
34
|
this.sessionContacts = [];
|
|
32
|
-
this.
|
|
35
|
+
this.rolesCompleted = {};
|
|
36
|
+
}
|
|
37
|
+
async reset() {
|
|
38
|
+
this.rolesCompleted = {};
|
|
33
39
|
}
|
|
34
40
|
async componentWillLoad() {
|
|
35
|
-
var _a;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.sessionContacts.push({
|
|
41
|
-
id: result.session.profile.id,
|
|
42
|
-
name: `${result.session.profile.first_name} ${result.session.profile.last_name}`,
|
|
43
|
-
email: result.session.profile.email,
|
|
44
|
-
phone: result.session.profile.phone,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
console.log('Error loading session', e);
|
|
41
|
+
var _a, _b, _c, _d, _e;
|
|
42
|
+
const loadSessionResult = this.endpoint.loadSession();
|
|
43
|
+
if (!this.templateId) {
|
|
44
|
+
console.log(`[SEND] Missing required template ID ${this.templateId}`);
|
|
45
|
+
return;
|
|
50
46
|
}
|
|
51
|
-
}
|
|
52
|
-
async componentDidLoad() {
|
|
53
|
-
console.log('[SEND] Showing template', this.templateId);
|
|
54
47
|
try {
|
|
55
48
|
console.log(`[SEND] Loading template ${this.templateId}`);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.template = template;
|
|
59
|
-
if (template === null || template === void 0 ? void 0 : template.roles) {
|
|
49
|
+
await loadTemplate(this.endpoint, this.templateId);
|
|
50
|
+
if ((_a = state.template) === null || _a === void 0 ? void 0 : _a.roles) {
|
|
60
51
|
const rolesAtLevel = {};
|
|
61
|
-
|
|
52
|
+
this.rolesCompleted = {};
|
|
53
|
+
state.template.roles.forEach(role => {
|
|
62
54
|
const level = role.sequence - 1;
|
|
63
55
|
rolesAtLevel[level] || (rolesAtLevel[level] = []);
|
|
64
56
|
const id = `r-${level}-${rolesAtLevel[level].length}`;
|
|
@@ -70,7 +62,16 @@ const VerdocsSend = class {
|
|
|
70
62
|
}
|
|
71
63
|
}
|
|
72
64
|
catch (e) {
|
|
73
|
-
console.log('[SEND] Error
|
|
65
|
+
console.log('[SEND] Error loading template', e);
|
|
66
|
+
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
|
67
|
+
}
|
|
68
|
+
if ((_e = loadSessionResult.session) === null || _e === void 0 ? void 0 : _e.profile) {
|
|
69
|
+
this.sessionContacts.push({
|
|
70
|
+
id: loadSessionResult.session.profile.id,
|
|
71
|
+
name: `${loadSessionResult.session.profile.first_name} ${loadSessionResult.session.profile.last_name}`,
|
|
72
|
+
email: loadSessionResult.session.profile.email,
|
|
73
|
+
phone: loadSessionResult.session.profile.phone,
|
|
74
|
+
});
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
getLevelIcon(level) {
|
|
@@ -86,7 +87,7 @@ const VerdocsSend = class {
|
|
|
86
87
|
}
|
|
87
88
|
handleSelectContact(e, role) {
|
|
88
89
|
e.preventDefault();
|
|
89
|
-
this.
|
|
90
|
+
this.rolesCompleted[role.id] = { ...role, ...e.detail };
|
|
90
91
|
this.showPickerForId = '';
|
|
91
92
|
}
|
|
92
93
|
handleClickRole(e, role) {
|
|
@@ -96,7 +97,7 @@ const VerdocsSend = class {
|
|
|
96
97
|
handleSend(e) {
|
|
97
98
|
var _a;
|
|
98
99
|
e.stopPropagation();
|
|
99
|
-
(_a = this.send) === null || _a === void 0 ? void 0 : _a.emit({
|
|
100
|
+
(_a = this.send) === null || _a === void 0 ? void 0 : _a.emit({ roles: Object.values(this.rolesCompleted), name: state.template.name, template_id: this.templateId });
|
|
100
101
|
}
|
|
101
102
|
handleCancel(e) {
|
|
102
103
|
var _a;
|
|
@@ -104,18 +105,13 @@ const VerdocsSend = class {
|
|
|
104
105
|
(_a = this.cancel) === null || _a === void 0 ? void 0 : _a.emit();
|
|
105
106
|
}
|
|
106
107
|
render() {
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
console.log('valid email', isValidEmail(recipient.email), recipient.email);
|
|
111
|
-
console.log('valid phone', isValidPhone(recipient.phone), recipient.phone);
|
|
112
|
-
return isValidEmail(recipient.email) || isValidPhone(recipient.phone);
|
|
113
|
-
}).length >= ((_c = this.template) === null || _c === void 0 ? void 0 : _c.roles.length);
|
|
114
|
-
console.log('assigned', allRecipientsAssigned);
|
|
108
|
+
const roleNames = state.template.roles.map(role => role.name) || [];
|
|
109
|
+
const rolesAssigned = Object.values(this.rolesCompleted).filter(recipient => isValidEmail(recipient.email) || isValidPhone(recipient.phone));
|
|
110
|
+
const allRolesAssigned = rolesAssigned.length >= roleNames.length;
|
|
115
111
|
return (h(Host, { class: {} }, h("div", { class: "recipients" }, h("div", { class: "left-line" }), h("div", { class: `level level-start` }, this.getLevelIcon(-1), h("div", { class: "complete" }, "Send Envelope")), this.levels.map(level => (h("div", { class: `level level-${level}` }, this.getLevelIcon(level), this.rolesAtLevel[level].map(role => {
|
|
116
112
|
var _a, _b, _c;
|
|
117
|
-
return (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_b = (_a = this.
|
|
118
|
-
})))), h("div", { class: `level level-done` }, this.getLevelIcon(this.levels.length), h("div", { class: "complete" }, "Signing Complete"))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", size: "small", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "Send", size: "small", disabled: !
|
|
113
|
+
return (h("div", { class: "recipient", style: { backgroundColor: getRGBA(getRoleIndex(roleNames, role.name)) }, onClick: e => this.handleClickRole(e, role) }, (_b = (_a = this.rolesCompleted[role.id]) === null || _a === void 0 ? void 0 : _a.full_name) !== null && _b !== void 0 ? _b : role.name, h("div", { class: "icon", innerHTML: editIcon }), this.showPickerForId === role.id && (h("verdocs-contact-picker", { onCancel: () => (this.showPickerForId = ''), onNext: e => this.handleSelectContact(e, role), contactSuggestions: this.sessionContacts, templateRole: (_c = this.rolesCompleted[role.id]) !== null && _c !== void 0 ? _c : role, onSearchContacts: e => console.log('Search', e.detail) }))));
|
|
114
|
+
})))), h("div", { class: `level level-done` }, this.getLevelIcon(this.levels.length), h("div", { class: "complete" }, "Signing Complete"))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", size: "small", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "Send", size: "small", disabled: !allRolesAssigned, onClick: e => this.handleSend(e) }))));
|
|
119
115
|
}
|
|
120
116
|
};
|
|
121
117
|
VerdocsSend.style = verdocsSendCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { s as state } from './templateStore-
|
|
4
|
-
import { l as loadTemplate } from './Templates-
|
|
3
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
4
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|
|
@@ -5,8 +5,8 @@ import { S as SDKError } from './errors-9b5498c8.js';
|
|
|
5
5
|
import { i as interact } from './interact.min-32c1c1e4.js';
|
|
6
6
|
import { u as updateField, c as createField } from './Fields-c82e6df3.js';
|
|
7
7
|
import { a as getRoleIndex, r as renderDocumentField, c as updateCssTransform, d as defaultWidth, e as defaultHeight } from './utils-274e2e93.js';
|
|
8
|
-
import { s as state } from './templateStore-
|
|
9
|
-
import { l as loadTemplate } from './Templates-
|
|
8
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
9
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
10
10
|
import './Token-54690789.js';
|
|
11
11
|
import './Envelopes-130fd6ea.js';
|
|
12
12
|
import './Files-70a192df.js';
|
|
@@ -42,10 +42,11 @@ var createTemplateDocument = function (endpoint, templateId, file, onUploadProgr
|
|
|
42
42
|
.then(function (r) { return r.data; });
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
45
|
+
const verdocsTemplateCreateCss = "verdocs-template-create{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:340px}verdocs-template-create form .upload-box{max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}";
|
|
46
46
|
|
|
47
47
|
// import {ITemplate, ITemplateDocument} from '@verdocs/js-sdk/Templates/Types';
|
|
48
48
|
// import {createPage} from '@verdocs/js-sdk/Templates/Pages';
|
|
49
|
+
const unicodeNBSP = ' ';
|
|
49
50
|
const FileIcon = '<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';
|
|
50
51
|
const VerdocsTemplateCreate = class {
|
|
51
52
|
constructor(hostRef) {
|
|
@@ -55,8 +56,10 @@ const VerdocsTemplateCreate = class {
|
|
|
55
56
|
this.sdkError = createEvent(this, "sdkError", 7);
|
|
56
57
|
this.endpoint = VerdocsEndpoint.getDefault();
|
|
57
58
|
this.file = undefined;
|
|
59
|
+
this.creating = false;
|
|
58
60
|
}
|
|
59
61
|
componentWillLoad() {
|
|
62
|
+
this.endpoint.setTimeout(30000);
|
|
60
63
|
this.endpoint.loadSession();
|
|
61
64
|
}
|
|
62
65
|
handleFileChanged(e) {
|
|
@@ -106,7 +109,7 @@ const VerdocsTemplateCreate = class {
|
|
|
106
109
|
if (!this.endpoint.session) {
|
|
107
110
|
return (h(Host, null, h("verdocs-component-error", { message: "You must be authenticated to use this module." })));
|
|
108
111
|
}
|
|
109
|
-
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("input", { type: "file", id: "verdocs-template-create-file", multiple: true, accept: "application/pdf", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), h("div", { class: "upload-box" }, h("div", null, h("span", { innerHTML: FileIcon })), h("div", { style: { marginTop: '20px', fontSize: '20px', fontWeight: 'bold' } },
|
|
112
|
+
return (h("form", { onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("input", { type: "file", id: "verdocs-template-create-file", multiple: true, accept: "application/pdf", style: { display: 'none' }, onChange: e => this.handleFileChanged(e) }), h("div", { class: "upload-box" }, h("div", null, h("span", { innerHTML: FileIcon })), h("div", { style: { marginTop: '20px', fontSize: '20px', fontWeight: 'bold' } }, this.file ? this.file.name : 'Drag a file here'), h("div", { style: { marginTop: '20px', marginBottom: '20px', fontSize: '16px', height: '20px' } }, this.file ? unicodeNBSP : 'Or, if you prefer...'), h("verdocs-button", { label: this.file ? 'Select a different file' : 'Select a file from your computer', size: "small", onClick: e => this.handleUpload(e) })), h("div", { class: "buttons" }, h("verdocs-button", { variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { label: "Next", size: "small", onClick: e => this.handleSubmit(e), disabled: !this.file }))));
|
|
110
113
|
}
|
|
111
114
|
};
|
|
112
115
|
VerdocsTemplateCreate.style = verdocsTemplateCreateCss;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-f78d163d.js';
|
|
2
2
|
import { u as updateTemplate } from './Templates-8e4ab976.js';
|
|
3
3
|
import { V as VerdocsEndpoint } from './VerdocsEndpoint-7f17b088.js';
|
|
4
|
-
import { s as state } from './templateStore-
|
|
5
|
-
import { l as loadTemplate } from './Templates-
|
|
4
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
5
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
6
6
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
7
7
|
import './Token-54690789.js';
|
|
8
8
|
import './index-fd7b8a34.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-f
|
|
|
2
2
|
import { 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 { s as state } from './templateStore-
|
|
5
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|
|
8
8
|
import './Primitives-054bc6e5.js';
|
|
@@ -3,8 +3,8 @@ import { i as interact } from './interact.min-32c1c1e4.js';
|
|
|
3
3
|
import { u as updateRole, c as createRole } from './Roles-2488d047.js';
|
|
4
4
|
import { V as VerdocsEndpoint, T as TemplateSenderTypes } from './VerdocsEndpoint-7f17b088.js';
|
|
5
5
|
import { g as getRGBA } from './Colors-1b298092.js';
|
|
6
|
-
import { s as state } from './templateStore-
|
|
7
|
-
import { l as loadTemplate } from './Templates-
|
|
6
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
7
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
8
8
|
import { a as getRoleIndex } from './utils-274e2e93.js';
|
|
9
9
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
10
10
|
import './Token-54690789.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { s as state } from './templateStore-
|
|
4
|
-
import { l as loadTemplate } from './Templates-
|
|
3
|
+
import { s as state } from './templateStore-fd4beaae.js';
|
|
4
|
+
import { l as loadTemplate } from './Templates-7595bdbf.js';
|
|
5
5
|
import { S as SDKError } from './errors-9b5498c8.js';
|
|
6
6
|
import './Token-54690789.js';
|
|
7
7
|
import './index-fd7b8a34.js';
|