@verdocs/web-sdk 2.3.57 → 2.3.58

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/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-01-21T20:24:09",
2
+ "timestamp": "2024-01-21T22:10:31",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.20.0",
@@ -82,6 +82,9 @@ const VerdocsFieldDate = class {
82
82
  const event = new window.Event('input');
83
83
  console.log('Will dispatch', event, this.el);
84
84
  this.el.dispatchEvent(event);
85
+ const event2 = new window.Event('datechange');
86
+ console.log('Will dispatch 2', event2, this.el);
87
+ this.el.dispatchEvent(event2);
85
88
  },
86
89
  });
87
90
  }
@@ -288,7 +288,9 @@ const VerdocsSign = class {
288
288
  });
289
289
  case 'date':
290
290
  const iso = e.target.getAttribute('iso');
291
+ console.log('iso', iso);
291
292
  const formatted = format(new Date(iso), FORMAT_DATE);
293
+ console.log('f', formatted);
292
294
  if (formatted !== '1970-12-31') {
293
295
  return this.saveFieldChange(field.name, { prepared: false, value: formatted });
294
296
  }
@@ -424,6 +426,10 @@ const VerdocsSign = class {
424
426
  this.checkRecipientFields();
425
427
  }
426
428
  });
429
+ el.addEventListener('datechange', (e) => {
430
+ console.log('[SIGN] onfieldInput', e.detail, e.target.value);
431
+ this.checkRecipientFields();
432
+ });
427
433
  el.addEventListener('attached', async (e) => {
428
434
  console.log('[SIGN] onAttached', e.detail, e.target.value);
429
435
  const r = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail);