@syncfusion/ej2-schedule 20.3.47 → 20.3.50

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.
@@ -15010,7 +15010,8 @@ class ResourceBase {
15010
15010
  child: 'resourceChild'
15011
15011
  },
15012
15012
  nodeTemplate: this.parent.resourceHeaderTemplate,
15013
- nodeClicked: this.resourceClick.bind(this)
15013
+ nodeClicked: this.resourceClick.bind(this),
15014
+ created: this.resourceTreeCreated.bind(this)
15014
15015
  });
15015
15016
  this.treeViewObj.appendTo(resourceTree);
15016
15017
  this.treeViewObj.expandAll();
@@ -15027,6 +15028,12 @@ class ResourceBase {
15027
15028
  });
15028
15029
  this.parent.on(documentClick, this.documentClick, this);
15029
15030
  }
15031
+ resourceTreeCreated() {
15032
+ if (this.parent.portals) {
15033
+ this.parent.portals = this.parent.portals.concat(this.treeViewObj.portals);
15034
+ this.parent.renderTemplates();
15035
+ }
15036
+ }
15030
15037
  generateTreeData(isTimeLine) {
15031
15038
  const treeCollection = [];
15032
15039
  const resTreeColl = [];
@@ -15618,6 +15625,10 @@ class ResourceBase {
15618
15625
  destroy() {
15619
15626
  this.parent.off(documentClick, this.documentClick);
15620
15627
  if (this.treeViewObj) {
15628
+ if (this.treeViewObj.portals && this.treeViewObj.portals.length > 0) {
15629
+ const treeViewTemplates = this.treeViewObj.portals.map((x) => x.propName);
15630
+ this.parent.resetTemplates(treeViewTemplates);
15631
+ }
15621
15632
  this.treeViewObj.destroy();
15622
15633
  this.treeViewObj = null;
15623
15634
  }
@@ -20382,7 +20393,7 @@ class DragAndDrop extends ActionBase {
20382
20393
  const eventDuration = eventObj[this.parent.eventFields.endTime].getTime() -
20383
20394
  eventObj[this.parent.eventFields.startTime].getTime();
20384
20395
  const td = closest(e.target, 'td');
20385
- if (this.parent.currentView === 'TimelineYear' && !td.classList.contains('e-work-cells')) {
20396
+ if (this.parent.currentView === 'TimelineYear' && (!td.classList.contains(WORK_CELLS_CLASS) || td.classList.contains(OTHERMONTH_CLASS))) {
20386
20397
  return;
20387
20398
  }
20388
20399
  const dragStart$$1 = this.parent.getDateFromElement(td);
@@ -25869,17 +25880,21 @@ class ICalendarImport {
25869
25880
  // eslint-disable-next-line no-prototype-builtins
25870
25881
  if (data[i].hasOwnProperty(fields.recurrenceID)) {
25871
25882
  const exdate = data[i][fields.recurrenceID];
25883
+ data[i][fields.id] = this.parent.eventBase.generateGuid();
25872
25884
  data[i][fields.recurrenceID] = id;
25873
25885
  data[i][fields.recurrenceException] = null;
25874
25886
  parentObj[fields.recurrenceException] = (isNullOrUndefined(parentObj[fields.recurrenceException])) ?
25875
25887
  exdate : parentObj[fields.recurrenceException] + ',' + exdate;
25888
+ delete data[i][uId];
25876
25889
  appoint.push(data[i]);
25877
25890
  }
25878
25891
  }
25892
+ delete parentObj[uId];
25879
25893
  appoint.push(parentObj);
25880
25894
  // eslint-disable-next-line no-prototype-builtins
25881
25895
  }
25882
25896
  else if (!eventObj.hasOwnProperty(fields.recurrenceID)) {
25897
+ delete eventObj[uId];
25883
25898
  appoint.push(eventObj);
25884
25899
  }
25885
25900
  }