@verdocs/web-sdk 2.3.59 → 2.3.61

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-21T23:02:36",
2
+ "timestamp": "2024-01-21T23:48:52",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "2.20.0",
@@ -79,12 +79,12 @@ const VerdocsFieldDate = class {
79
79
  autoClose: true,
80
80
  onSelect: ({ date, formattedDate }) => {
81
81
  console.log('Selected date', formattedDate, date);
82
- const event = new window.Event('input');
82
+ const event = new CustomEvent('input', {
83
+ detail: { date, formattedDate },
84
+ });
85
+ // const event = new window.Event('input', {composed: true, bubbles: true, cancelable: true});
83
86
  console.log('Will dispatch', event, this.el);
84
- this.el.dispatchEvent(event);
85
- const event2 = new window.Event('datechange');
86
- console.log('Will dispatch 2', event2, this.el);
87
- this.hostEl.dispatchEvent(event2);
87
+ this.hostEl.dispatchEvent(event);
88
88
  },
89
89
  });
90
90
  }
@@ -326,7 +326,7 @@ const VerdocsSign = class {
326
326
  case 'textarea':
327
327
  case 'date':
328
328
  case 'attachment':
329
- console.log('Date-type field valid', { required, result, output: !required || result !== '' });
329
+ console.log('Checking date-type field validity', { required, result, output: !required || result !== '' });
330
330
  return !required || result !== '';
331
331
  case 'dropdown':
332
332
  return !required || value !== '';
@@ -426,10 +426,6 @@ const VerdocsSign = class {
426
426
  this.checkRecipientFields();
427
427
  }
428
428
  });
429
- el.addEventListener('datechange', (e) => {
430
- console.log('[SIGN] onfieldInput', e.detail, e.target.value);
431
- this.checkRecipientFields();
432
- });
433
429
  el.addEventListener('attached', async (e) => {
434
430
  console.log('[SIGN] onAttached', e.detail, e.target.value);
435
431
  const r = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, this.roleId, field.name, e.detail);