@verdocs/web-sdk 2.3.60 → 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.
@@ -83,7 +83,10 @@ const VerdocsFieldDate = class {
83
83
  autoClose: true,
84
84
  onSelect: ({ date, formattedDate }) => {
85
85
  console.log('Selected date', formattedDate, date);
86
- const event = new window.Event('input');
86
+ const event = new CustomEvent('input', {
87
+ detail: { date, formattedDate },
88
+ });
89
+ // const event = new window.Event('input', {composed: true, bubbles: true, cancelable: true});
87
90
  console.log('Will dispatch', event, this.el);
88
91
  this.hostEl.dispatchEvent(event);
89
92
  },
@@ -45,7 +45,10 @@ export class VerdocsFieldDate {
45
45
  autoClose: true,
46
46
  onSelect: ({ date, formattedDate }) => {
47
47
  console.log('Selected date', formattedDate, date);
48
- const event = new window.Event('input');
48
+ const event = new CustomEvent('input', {
49
+ detail: { date, formattedDate },
50
+ });
51
+ // const event = new window.Event('input', {composed: true, bubbles: true, cancelable: true});
49
52
  console.log('Will dispatch', event, this.el);
50
53
  this.hostEl.dispatchEvent(event);
51
54
  },
@@ -84,7 +84,10 @@ const VerdocsFieldDate$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
84
84
  autoClose: true,
85
85
  onSelect: ({ date, formattedDate }) => {
86
86
  console.log('Selected date', formattedDate, date);
87
- const event = new window.Event('input');
87
+ const event = new CustomEvent('input', {
88
+ detail: { date, formattedDate },
89
+ });
90
+ // const event = new window.Event('input', {composed: true, bubbles: true, cancelable: true});
88
91
  console.log('Will dispatch', event, this.el);
89
92
  this.hostEl.dispatchEvent(event);
90
93
  },