dhtmlx-scheduler 7.2.12 → 7.2.14

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.
@@ -1,6 +1,6 @@
1
1
  /** @license
2
2
 
3
- dhtmlxScheduler v.7.2.12 Standard
3
+ dhtmlxScheduler v.7.2.14 Standard
4
4
 
5
5
  To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Commercial/Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at sales@dhtmlx.com
6
6
 
@@ -1363,13 +1363,13 @@ function createHandlers(scheduler2) {
1363
1363
  }
1364
1364
  }
1365
1365
  if (typeof eventData.start_date === "string") {
1366
- eventData.start_date = scheduler2.templates.parse_date(eventData.start_date);
1366
+ existingEvent.start_date = scheduler2.templates.parse_date(eventData.start_date);
1367
1367
  }
1368
1368
  if (typeof eventData.end_date === "string") {
1369
- eventData.end_date = scheduler2.templates.parse_date(eventData.end_date);
1369
+ existingEvent.end_date = scheduler2.templates.parse_date(eventData.end_date);
1370
1370
  }
1371
1371
  if (eventData.original_start && typeof eventData.original_start === "string") {
1372
- eventData.original_start = scheduler2.templates.parse_date(eventData.original_start);
1372
+ existingEvent.original_start = scheduler2.templates.parse_date(eventData.original_start);
1373
1373
  }
1374
1374
  scheduler2.callEvent("onEventChanged", [sid, existingEvent]);
1375
1375
  scheduler2.updateEvent(sid);
@@ -9267,7 +9267,7 @@ class DatePicker {
9267
9267
  }
9268
9268
  }
9269
9269
  function factoryMethod(extensionManager) {
9270
- const scheduler2 = { version: "7.2.12" };
9270
+ const scheduler2 = { version: "7.2.14" };
9271
9271
  scheduler2.$stateProvider = StateService();
9272
9272
  scheduler2.getState = scheduler2.$stateProvider.getState;
9273
9273
  extend$n(scheduler2);
@@ -18507,9 +18507,9 @@ function recurring(scheduler2) {
18507
18507
  }
18508
18508
  ev._thisAndFollowing = occurrence.id;
18509
18509
  }
18510
- function setPropsForStorageEvent(index, data, ev, tempEvent) {
18510
+ function setPropsForStorageEvent(index, actualData, ev, tempEvent) {
18511
18511
  const targetIndex = ev._modified ? tempEvent.id : index;
18512
- scheduler2._events[targetIndex] = { ...tempEvent, text: data.text, duration: data.duration, start_date: data.start_date, rrule: data.rrule, end_date: tempEvent._end_date, _start_date: tempEvent.start_date, _thisAndFollowing: null, _end_date: null };
18512
+ scheduler2._events[targetIndex] = { ...tempEvent, ...actualData, end_date: tempEvent._end_date, _start_date: tempEvent.start_date, _thisAndFollowing: null, _end_date: null };
18513
18513
  if (ev._modified) {
18514
18514
  delete scheduler2._events[index];
18515
18515
  }
@@ -21092,15 +21092,16 @@ function units_restricted(scheduler2) {
21092
21092
  }
21093
21093
  function url(scheduler2) {
21094
21094
  function parseHashParameters() {
21095
- const parameters = {};
21095
+ const parameters = /* @__PURE__ */ Object.create(null);
21096
21096
  const raw = (document.location.hash || "").replace("#", "");
21097
21097
  if (!raw) {
21098
21098
  return parameters;
21099
21099
  }
21100
21100
  const pairs = raw.split(",");
21101
+ const forbiddenKeys = ["__proto__", "constructor", "prototype"];
21101
21102
  for (let i = 0; i < pairs.length; i++) {
21102
21103
  const parts = pairs[i].split("=");
21103
- if (parts.length === 2) {
21104
+ if (parts.length === 2 && !forbiddenKeys.includes(parts[0])) {
21104
21105
  parameters[parts[0]] = parts[1];
21105
21106
  }
21106
21107
  }