@verdocs/web-sdk 2.0.21 → 2.0.23
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/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +9 -8
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +9 -8
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-sign.js +9 -8
- package/dist/custom-elements.json +1939 -0
- package/dist/docs.json +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +9 -8
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/verdocs-web-sdk/p-249d4dbf.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-54dc2f71.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e8d9c730.entry.js → p-5567acac.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-29f70720.system.entry.js → p-7d9d22d9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-00dcb2d7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dfa2cada.system.entry.js +0 -1
@@ -2592,7 +2592,7 @@ const VerdocsFieldDate = class {
|
|
2592
2592
|
dateFormat: 'Y-m-d',
|
2593
2593
|
defaultDate: result,
|
2594
2594
|
onChange: selectedDate => {
|
2595
|
-
|
2595
|
+
console.log('Selected date', selectedDate[0]);
|
2596
2596
|
this.el.setAttribute('iso', selectedDate[0].toISOString());
|
2597
2597
|
const event = new window.Event('input');
|
2598
2598
|
this.el.dispatchEvent(event);
|
@@ -271,10 +271,11 @@ const VerdocsSign = class {
|
|
271
271
|
});
|
272
272
|
case 'date':
|
273
273
|
const iso = e.target.getAttribute('iso');
|
274
|
-
console.log('Formatting date for save', iso);
|
275
274
|
const formatted = index$1.format(new Date(iso), Types.FORMAT_DATE);
|
276
|
-
|
277
|
-
|
275
|
+
if (formatted !== '1970-12-31') {
|
276
|
+
return this.saveFieldChange(field.name, { prepared: false, value: formatted });
|
277
|
+
}
|
278
|
+
break;
|
278
279
|
case 'timestamp':
|
279
280
|
console.log('Updating timestamp', { value, ts: e.target.getAttribute('timestamp') });
|
280
281
|
break;
|
@@ -335,10 +336,10 @@ const VerdocsSign = class {
|
|
335
336
|
this.isDone = true;
|
336
337
|
// TODO: This is a temporary hack. After submitting, if we immediately show the View component it won't have re-renedered the
|
337
338
|
// pages yet with our submitted data.
|
338
|
-
setTimeout(() => {
|
339
|
-
|
340
|
-
|
341
|
-
},
|
339
|
+
// setTimeout(() => {
|
340
|
+
// console.log('[SIGN] Reloading');
|
341
|
+
// window.location.reload();
|
342
|
+
// }, 250);
|
342
343
|
}
|
343
344
|
catch (e) {
|
344
345
|
console.log('[SIGN] Error submitting', e);
|
@@ -474,7 +475,7 @@ const VerdocsSign = class {
|
|
474
475
|
this.isDone = true;
|
475
476
|
} })), this.submitting && (index.h("div", { class: "loading-indicator" }, index.h("verdocs-loader", null)))));
|
476
477
|
}
|
477
|
-
return (index.h(index.Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (index.h("div", { class: "intro" }, index.h("div", { class: "inner" }, "Please review and act on these documents."))), index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, !this.agreed ? (index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (index.h(index.Fragment, null, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }))), !this.finishLater && index.h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.agreed
|
478
|
+
return (index.h(index.Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (index.h("div", { class: "intro" }, index.h("div", { class: "inner" }, "Please review and act on these documents."))), index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, !this.agreed ? (index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "I agree to use electronic records and signatures.", onInput: () => this.handleClickAgree() }))) : (index.h(index.Fragment, null, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }))), !this.finishLater && index.h("verdocs-button", { size: "small", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), !this.agreed && index.h("div", { class: "cover" }), index.h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
478
479
|
const pageNumbers = Primitives.integerSequence(1, envelopeDocument.page_numbers);
|
479
480
|
return (index.h(index.Fragment, null, pageNumbers.map(pageNumber => {
|
480
481
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -250,10 +250,11 @@ export class VerdocsSign {
|
|
250
250
|
});
|
251
251
|
case 'date':
|
252
252
|
const iso = e.target.getAttribute('iso');
|
253
|
-
console.log('Formatting date for save', iso);
|
254
253
|
const formatted = format(new Date(iso), FORMAT_DATE);
|
255
|
-
|
256
|
-
|
254
|
+
if (formatted !== '1970-12-31') {
|
255
|
+
return this.saveFieldChange(field.name, { prepared: false, value: formatted });
|
256
|
+
}
|
257
|
+
break;
|
257
258
|
case 'timestamp':
|
258
259
|
console.log('Updating timestamp', { value, ts: e.target.getAttribute('timestamp') });
|
259
260
|
break;
|
@@ -314,10 +315,10 @@ export class VerdocsSign {
|
|
314
315
|
this.isDone = true;
|
315
316
|
// TODO: This is a temporary hack. After submitting, if we immediately show the View component it won't have re-renedered the
|
316
317
|
// pages yet with our submitted data.
|
317
|
-
setTimeout(() => {
|
318
|
-
|
319
|
-
|
320
|
-
},
|
318
|
+
// setTimeout(() => {
|
319
|
+
// console.log('[SIGN] Reloading');
|
320
|
+
// window.location.reload();
|
321
|
+
// }, 250);
|
321
322
|
}
|
322
323
|
catch (e) {
|
323
324
|
console.log('[SIGN] Error submitting', e);
|
@@ -453,7 +454,7 @@ export class VerdocsSign {
|
|
453
454
|
this.isDone = true;
|
454
455
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
455
456
|
}
|
456
|
-
return (h(Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.envelope.name), h("div", { style: { flex: '1' } }))), !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.agreed
|
457
|
+
return (h(Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.envelope.name), h("div", { style: { flex: '1' } }))), !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.agreed && h("div", { class: "cover" }), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
457
458
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
458
459
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
459
460
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|
@@ -32,7 +32,7 @@ export class VerdocsFieldDate {
|
|
32
32
|
dateFormat: 'Y-m-d',
|
33
33
|
defaultDate: result,
|
34
34
|
onChange: selectedDate => {
|
35
|
-
|
35
|
+
console.log('Selected date', selectedDate[0]);
|
36
36
|
this.el.setAttribute('iso', selectedDate[0].toISOString());
|
37
37
|
const event = new window.Event('input');
|
38
38
|
this.el.dispatchEvent(event);
|
@@ -2593,7 +2593,7 @@ const VerdocsFieldDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
2593
2593
|
dateFormat: 'Y-m-d',
|
2594
2594
|
defaultDate: result,
|
2595
2595
|
onChange: selectedDate => {
|
2596
|
-
|
2596
|
+
console.log('Selected date', selectedDate[0]);
|
2597
2597
|
this.el.setAttribute('iso', selectedDate[0].toISOString());
|
2598
2598
|
const event = new window.Event('input');
|
2599
2599
|
this.el.dispatchEvent(event);
|
@@ -273,10 +273,11 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
273
273
|
});
|
274
274
|
case 'date':
|
275
275
|
const iso = e.target.getAttribute('iso');
|
276
|
-
console.log('Formatting date for save', iso);
|
277
276
|
const formatted = format(new Date(iso), FORMAT_DATE);
|
278
|
-
|
279
|
-
|
277
|
+
if (formatted !== '1970-12-31') {
|
278
|
+
return this.saveFieldChange(field.name, { prepared: false, value: formatted });
|
279
|
+
}
|
280
|
+
break;
|
280
281
|
case 'timestamp':
|
281
282
|
console.log('Updating timestamp', { value, ts: e.target.getAttribute('timestamp') });
|
282
283
|
break;
|
@@ -337,10 +338,10 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
337
338
|
this.isDone = true;
|
338
339
|
// TODO: This is a temporary hack. After submitting, if we immediately show the View component it won't have re-renedered the
|
339
340
|
// pages yet with our submitted data.
|
340
|
-
setTimeout(() => {
|
341
|
-
|
342
|
-
|
343
|
-
},
|
341
|
+
// setTimeout(() => {
|
342
|
+
// console.log('[SIGN] Reloading');
|
343
|
+
// window.location.reload();
|
344
|
+
// }, 250);
|
344
345
|
}
|
345
346
|
catch (e) {
|
346
347
|
console.log('[SIGN] Error submitting', e);
|
@@ -476,7 +477,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
476
477
|
this.isDone = true;
|
477
478
|
} })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
|
478
479
|
}
|
479
|
-
return (h(Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.envelope.name), h("div", { style: { flex: '1' } }))), !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.agreed
|
480
|
+
return (h(Host, { class: { agreed: this.agreed } }, !this.agreed && !this.finishLater && (h("div", { class: "intro" }, h("div", { class: "inner" }, "Please review and act on these documents."))), h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, !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" }, this.envelope.name), h("div", { style: { flex: '1' } }))), !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.agreed && h("div", { class: "cover" }), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
480
481
|
const pageNumbers = integerSequence(1, envelopeDocument.page_numbers);
|
481
482
|
return (h(Fragment, null, pageNumbers.map(pageNumber => {
|
482
483
|
// In signing mode we show the original template page with all the recipient fields so we can show source formatting and
|