@wernfried/daterangepicker 5.2.0 → 5.2.2

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.
@@ -79,7 +79,7 @@ var DateRangePicker = (function(exports, luxon2) {
79
79
  const name = item.name.replace(/^data-/g, "").replace(/-([a-z])/g, function(str) {
80
80
  return str[1].toUpperCase();
81
81
  });
82
- if (!Object.keys(this).includes(name) || Object.keys(options).includes(name))
82
+ if (!Object.keys(this).concat(["startDate", "endDate"]).includes(name) || Object.keys(options).includes(name))
83
83
  continue;
84
84
  let ts = luxon2.DateTime.fromISO(item.value);
85
85
  const isDate = ["startDate", "endDate", "minDate", "maxDate", "initalMonth"].includes(name);
@@ -2241,8 +2241,8 @@ var DateRangePicker = (function(exports, luxon2) {
2241
2241
  }
2242
2242
  /**
2243
2243
  * Helper function to dispatch events
2244
- * @param {Event} ev - From this.#events
2245
- * @param {...any?} args - Additional parameters if needed
2244
+ * @param {object} ev - Event template from this.#events
2245
+ * @param {...object} args - Additional parameters if needed
2246
2246
  */
2247
2247
  triggerEvent(ev, ...args) {
2248
2248
  if (args.length === 0) {
@@ -2260,7 +2260,7 @@ var DateRangePicker = (function(exports, luxon2) {
2260
2260
  * @param {string} element - Query selector of element where listener is added
2261
2261
  * @param {string} eventName - Name of the event
2262
2262
  * @param {string} selector - Query selector string to filter the descendants of the element
2263
- * @param {any} delegate - Handler data
2263
+ * @param {function} delegate - Handler data
2264
2264
  * @private
2265
2265
  */
2266
2266
  addListener(element, eventName, selector, delegate) {