@syncfusion/ej2-layouts 26.1.35 → 26.2.4

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.
@@ -2212,6 +2212,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
2212
2212
  if (!this.isDestroyed) {
2213
2213
  _super.prototype.destroy.call(this);
2214
2214
  EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2215
+ EventHandler.remove(this.element, 'keydown', this.onMove);
2215
2216
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2216
2217
  while (this.element.attributes.length > 0) {
2217
2218
  this.element.removeAttribute(this.element.attributes[0].name);
@@ -5777,7 +5778,9 @@ var Timeline = /** @__PURE__ @class */ (function (_super) {
5777
5778
  if (oldPropItems.dotCss !== '') {
5778
5779
  (_a = dotEle.classList).remove.apply(_a, oldPropItems.dotCss.trim().split(' '));
5779
5780
  }
5780
- (_b = dotEle.classList).add.apply(_b, this.items[parseInt(index.toString(), 10)].dotCss.trim().split(' '));
5781
+ if (item.dotCss !== '') {
5782
+ (_b = dotEle.classList).add.apply(_b, this.items[parseInt(index.toString(), 10)].dotCss.trim().split(' '));
5783
+ }
5781
5784
  break;
5782
5785
  case 'content':
5783
5786
  contentEle = timelineItemElements[parseInt(index.toString(), 10)].querySelector('.' + CONTENT);
@@ -5798,7 +5801,9 @@ var Timeline = /** @__PURE__ @class */ (function (_super) {
5798
5801
  if (oldPropItems.cssClass !== '') {
5799
5802
  (_c = timelineItemElements[parseInt(index.toString(), 10)].classList).remove.apply(_c, oldPropItems.cssClass.trim().split(' '));
5800
5803
  }
5801
- (_d = timelineItemElements[parseInt(index.toString(), 10)].classList).add.apply(_d, item.cssClass.trim().split(' '));
5804
+ if (item.cssClass !== '') {
5805
+ (_d = timelineItemElements[parseInt(index.toString(), 10)].classList).add.apply(_d, item.cssClass.trim().split(' '));
5806
+ }
5802
5807
  break;
5803
5808
  }
5804
5809
  };
@@ -5820,11 +5825,13 @@ var Timeline = /** @__PURE__ @class */ (function (_super) {
5820
5825
  this.renderItems();
5821
5826
  }
5822
5827
  else {
5823
- var itemObject = Object.keys(newProp.items);
5824
- for (var i = 0; i < itemObject.length; i++) {
5825
- var index = parseInt(Object.keys(newProp.items)[i], 10);
5826
- var property = Object.keys(newProp.items[index])[0];
5827
- this.updateItems(property, oldProp.items[index], index, newProp.items[index]);
5828
+ var itemLength = Object.keys(newProp.items).length;
5829
+ for (var i = 0; i < itemLength; i++) {
5830
+ var itemPropLength = parseInt(Object.keys(newProp.items)[i], 10);
5831
+ for (var j = 0; j < Object.keys(newProp.items[itemPropLength]).length; j++) {
5832
+ var property = Object.keys(newProp.items[itemPropLength])[j];
5833
+ this.updateItems(property, oldProp.items[itemPropLength], itemPropLength, newProp.items[itemPropLength]);
5834
+ }
5828
5835
  }
5829
5836
  }
5830
5837
  break;