@hubsync/esign-web-sdk 6.5.16 → 6.5.17
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-sign.cjs.entry.js +40 -20
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -20
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-sign.js +40 -20
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +40 -20
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/p-3d090c74.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-3d090c74.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-48063d1a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-48063d1a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/p-BRtoT1b4.system.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-5715959e.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-5715959e.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5a4bae68.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-5a4bae68.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CeIEedHd.system.js.map +0 -1
|
@@ -444,12 +444,16 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
444
444
|
console.log('[SIGN] Reusing initial', this.initialId);
|
|
445
445
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.initialId, false);
|
|
446
446
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
447
|
-
// Auto-focus next field after filling initial
|
|
447
|
+
// Auto-focus next field after filling initial (only if not the last field)
|
|
448
448
|
setTimeout(() => {
|
|
449
449
|
const fields = this.getSortedFillableFields();
|
|
450
|
-
const
|
|
451
|
-
if
|
|
452
|
-
|
|
450
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
451
|
+
// Only focus next field if current field is not the last one
|
|
452
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
453
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
454
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
455
|
+
this.focusField(nextField);
|
|
456
|
+
}
|
|
453
457
|
}
|
|
454
458
|
}, 100);
|
|
455
459
|
return;
|
|
@@ -460,12 +464,16 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
460
464
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
461
465
|
this.initialId = e.detail;
|
|
462
466
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
463
|
-
// Auto-focus next field after filling initial
|
|
467
|
+
// Auto-focus next field after filling initial (only if not the last field)
|
|
464
468
|
setTimeout(() => {
|
|
465
469
|
const fields = this.getSortedFillableFields();
|
|
466
|
-
const
|
|
467
|
-
if
|
|
468
|
-
|
|
470
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
471
|
+
// Only focus next field if current field is not the last one
|
|
472
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
473
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
474
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
475
|
+
this.focusField(nextField);
|
|
476
|
+
}
|
|
469
477
|
}
|
|
470
478
|
}, 100);
|
|
471
479
|
return;
|
|
@@ -512,12 +520,16 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
512
520
|
console.log('[SIGN] Reusing signature', this.signatureId);
|
|
513
521
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.signatureId, false);
|
|
514
522
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
515
|
-
// Auto-focus next field after filling signature
|
|
523
|
+
// Auto-focus next field after filling signature (only if not the last field)
|
|
516
524
|
setTimeout(() => {
|
|
517
525
|
const fields = this.getSortedFillableFields();
|
|
518
|
-
const
|
|
519
|
-
if
|
|
520
|
-
|
|
526
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
527
|
+
// Only focus next field if current field is not the last one
|
|
528
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
529
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
530
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
531
|
+
this.focusField(nextField);
|
|
532
|
+
}
|
|
521
533
|
}
|
|
522
534
|
}, 100);
|
|
523
535
|
return;
|
|
@@ -528,12 +540,16 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
528
540
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
529
541
|
this.signatureId = e.detail;
|
|
530
542
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
531
|
-
// Auto-focus next field after filling signature
|
|
543
|
+
// Auto-focus next field after filling signature (only if not the last field)
|
|
532
544
|
setTimeout(() => {
|
|
533
545
|
const fields = this.getSortedFillableFields();
|
|
534
|
-
const
|
|
535
|
-
if
|
|
536
|
-
|
|
546
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
547
|
+
// Only focus next field if current field is not the last one
|
|
548
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
549
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
550
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
551
|
+
this.focusField(nextField);
|
|
552
|
+
}
|
|
537
553
|
}
|
|
538
554
|
}, 100);
|
|
539
555
|
return;
|
|
@@ -566,12 +582,16 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
|
|
|
566
582
|
const { formattedDate } = e.detail;
|
|
567
583
|
if (formattedDate) {
|
|
568
584
|
return this.saveFieldChange(field.name, formattedDate, false).then(() => {
|
|
569
|
-
// Auto-focus next field after filling date
|
|
585
|
+
// Auto-focus next field after filling date (only if not the last field)
|
|
570
586
|
setTimeout(() => {
|
|
571
587
|
const fields = this.getSortedFillableFields();
|
|
572
|
-
const
|
|
573
|
-
if
|
|
574
|
-
|
|
588
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
589
|
+
// Only focus next field if current field is not the last one
|
|
590
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
591
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
592
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
593
|
+
this.focusField(nextField);
|
|
594
|
+
}
|
|
575
595
|
}
|
|
576
596
|
}, 100);
|
|
577
597
|
});
|