@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
|
@@ -418,12 +418,16 @@ const VerdocsSign = class {
|
|
|
418
418
|
console.log('[SIGN] Reusing initial', this.initialId);
|
|
419
419
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.initialId, false);
|
|
420
420
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
421
|
-
// Auto-focus next field after filling initial
|
|
421
|
+
// Auto-focus next field after filling initial (only if not the last field)
|
|
422
422
|
setTimeout(() => {
|
|
423
423
|
const fields = this.getSortedFillableFields();
|
|
424
|
-
const
|
|
425
|
-
if
|
|
426
|
-
|
|
424
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
425
|
+
// Only focus next field if current field is not the last one
|
|
426
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
427
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
428
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
429
|
+
this.focusField(nextField);
|
|
430
|
+
}
|
|
427
431
|
}
|
|
428
432
|
}, 100);
|
|
429
433
|
return;
|
|
@@ -434,12 +438,16 @@ const VerdocsSign = class {
|
|
|
434
438
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
435
439
|
this.initialId = e.detail;
|
|
436
440
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
437
|
-
// Auto-focus next field after filling initial
|
|
441
|
+
// Auto-focus next field after filling initial (only if not the last field)
|
|
438
442
|
setTimeout(() => {
|
|
439
443
|
const fields = this.getSortedFillableFields();
|
|
440
|
-
const
|
|
441
|
-
if
|
|
442
|
-
|
|
444
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
445
|
+
// Only focus next field if current field is not the last one
|
|
446
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
447
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
448
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
449
|
+
this.focusField(nextField);
|
|
450
|
+
}
|
|
443
451
|
}
|
|
444
452
|
}, 100);
|
|
445
453
|
return;
|
|
@@ -486,12 +494,16 @@ const VerdocsSign = class {
|
|
|
486
494
|
console.log('[SIGN] Reusing signature', this.signatureId);
|
|
487
495
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, this.signatureId, false);
|
|
488
496
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
489
|
-
// Auto-focus next field after filling signature
|
|
497
|
+
// Auto-focus next field after filling signature (only if not the last field)
|
|
490
498
|
setTimeout(() => {
|
|
491
499
|
const fields = this.getSortedFillableFields();
|
|
492
|
-
const
|
|
493
|
-
if
|
|
494
|
-
|
|
500
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
501
|
+
// Only focus next field if current field is not the last one
|
|
502
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
503
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
504
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
505
|
+
this.focusField(nextField);
|
|
506
|
+
}
|
|
495
507
|
}
|
|
496
508
|
}, 100);
|
|
497
509
|
return;
|
|
@@ -502,12 +514,16 @@ const VerdocsSign = class {
|
|
|
502
514
|
const updateResult = await updateEnvelopeField(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail, false);
|
|
503
515
|
this.signatureId = e.detail;
|
|
504
516
|
this.updateRecipientFieldValue(field.name, updateResult);
|
|
505
|
-
// Auto-focus next field after filling signature
|
|
517
|
+
// Auto-focus next field after filling signature (only if not the last field)
|
|
506
518
|
setTimeout(() => {
|
|
507
519
|
const fields = this.getSortedFillableFields();
|
|
508
|
-
const
|
|
509
|
-
if
|
|
510
|
-
|
|
520
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
521
|
+
// Only focus next field if current field is not the last one
|
|
522
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
523
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
524
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
525
|
+
this.focusField(nextField);
|
|
526
|
+
}
|
|
511
527
|
}
|
|
512
528
|
}, 100);
|
|
513
529
|
return;
|
|
@@ -540,12 +556,16 @@ const VerdocsSign = class {
|
|
|
540
556
|
const { formattedDate } = e.detail;
|
|
541
557
|
if (formattedDate) {
|
|
542
558
|
return this.saveFieldChange(field.name, formattedDate, false).then(() => {
|
|
543
|
-
// Auto-focus next field after filling date
|
|
559
|
+
// Auto-focus next field after filling date (only if not the last field)
|
|
544
560
|
setTimeout(() => {
|
|
545
561
|
const fields = this.getSortedFillableFields();
|
|
546
|
-
const
|
|
547
|
-
if
|
|
548
|
-
|
|
562
|
+
const currentIndex = fields.findIndex(f => f.name === field.name);
|
|
563
|
+
// Only focus next field if current field is not the last one
|
|
564
|
+
if (currentIndex >= 0 && currentIndex < fields.length - 1) {
|
|
565
|
+
const nextField = this.getNextFieldFromList(fields);
|
|
566
|
+
if (nextField && fields.findIndex(f => f.name === nextField.name) > currentIndex) {
|
|
567
|
+
this.focusField(nextField);
|
|
568
|
+
}
|
|
549
569
|
}
|
|
550
570
|
}, 100);
|
|
551
571
|
});
|