@syncfusion/ej2-layouts 26.1.38 → 26.2.5

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.
@@ -2181,6 +2181,7 @@ let Splitter = class Splitter extends Component {
2181
2181
  if (!this.isDestroyed) {
2182
2182
  super.destroy();
2183
2183
  EventHandler.remove(document, 'touchstart click', this.onDocumentClick);
2184
+ EventHandler.remove(this.element, 'keydown', this.onMove);
2184
2185
  this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize, true);
2185
2186
  while (this.element.attributes.length > 0) {
2186
2187
  this.element.removeAttribute(this.element.attributes[0].name);
@@ -5662,7 +5663,9 @@ let Timeline = class Timeline extends Component {
5662
5663
  if (oldPropItems.dotCss !== '') {
5663
5664
  dotEle.classList.remove(...oldPropItems.dotCss.trim().split(' '));
5664
5665
  }
5665
- dotEle.classList.add(...this.items[parseInt(index.toString(), 10)].dotCss.trim().split(' '));
5666
+ if (item.dotCss !== '') {
5667
+ dotEle.classList.add(...this.items[parseInt(index.toString(), 10)].dotCss.trim().split(' '));
5668
+ }
5666
5669
  break;
5667
5670
  case 'content':
5668
5671
  contentEle = timelineItemElements[parseInt(index.toString(), 10)].querySelector('.' + CONTENT);
@@ -5683,7 +5686,9 @@ let Timeline = class Timeline extends Component {
5683
5686
  if (oldPropItems.cssClass !== '') {
5684
5687
  timelineItemElements[parseInt(index.toString(), 10)].classList.remove(...oldPropItems.cssClass.trim().split(' '));
5685
5688
  }
5686
- timelineItemElements[parseInt(index.toString(), 10)].classList.add(...item.cssClass.trim().split(' '));
5689
+ if (item.cssClass !== '') {
5690
+ timelineItemElements[parseInt(index.toString(), 10)].classList.add(...item.cssClass.trim().split(' '));
5691
+ }
5687
5692
  break;
5688
5693
  }
5689
5694
  }
@@ -5704,11 +5709,13 @@ let Timeline = class Timeline extends Component {
5704
5709
  this.renderItems();
5705
5710
  }
5706
5711
  else {
5707
- const itemObject = Object.keys(newProp.items);
5708
- for (let i = 0; i < itemObject.length; i++) {
5709
- const index = parseInt(Object.keys(newProp.items)[i], 10);
5710
- const property = Object.keys(newProp.items[index])[0];
5711
- this.updateItems(property, oldProp.items[index], index, newProp.items[index]);
5712
+ const itemLength = Object.keys(newProp.items).length;
5713
+ for (let i = 0; i < itemLength; i++) {
5714
+ const itemPropLength = parseInt(Object.keys(newProp.items)[i], 10);
5715
+ for (let j = 0; j < Object.keys(newProp.items[itemPropLength]).length; j++) {
5716
+ const property = Object.keys(newProp.items[itemPropLength])[j];
5717
+ this.updateItems(property, oldProp.items[itemPropLength], itemPropLength, newProp.items[itemPropLength]);
5718
+ }
5712
5719
  }
5713
5720
  }
5714
5721
  break;