@syncfusion/ej2-navigations 21.2.4 → 21.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.
@@ -7529,15 +7529,6 @@ let Tab = class Tab extends Component {
7529
7529
  this.setContentHeight(true);
7530
7530
  this.select(this.selectedItem);
7531
7531
  }
7532
- this.tbItem = selectAll('.' + CLS_TB_ITEM, this.hdrEle);
7533
- if (!isNullOrUndefined(this.tbItem)) {
7534
- for (let i = 0; i < this.items.length; i++) {
7535
- if (this.tbItem[i]) {
7536
- const tabID = this.items[i].id;
7537
- this.tbItem[i].setAttribute('data-id', tabID);
7538
- }
7539
- }
7540
- }
7541
7532
  this.setRTL(this.enableRtl);
7542
7533
  }
7543
7534
  }
@@ -7714,7 +7705,7 @@ let Tab = class Tab extends Component {
7714
7705
  this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + this.tabId + '_' + this.lastIndex);
7715
7706
  }
7716
7707
  const attrObj = {
7717
- id: CLS_ITEM$2 + this.tabId + '_' + this.lastIndex
7708
+ id: CLS_ITEM$2 + this.tabId + '_' + this.lastIndex, 'data-id': item.id
7718
7709
  };
7719
7710
  const tItem = { htmlAttributes: attrObj, template: wrap };
7720
7711
  tItem.cssClass = ((item.cssClass !== undefined) ? item.cssClass : ' ') + ' ' + disabled + ' ' + hidden + ' '
@@ -8790,6 +8781,10 @@ let Tab = class Tab extends Component {
8790
8781
  };
8791
8782
  this.trigger('onDragStart', dragArgs, (tabitemDragArgs) => {
8792
8783
  if (tabitemDragArgs.cancel) {
8784
+ const dragObj = e.element.ej2_instances[0];
8785
+ if (!isNullOrUndefined(dragObj)) {
8786
+ dragObj.intDestroy(e.event);
8787
+ }
8793
8788
  detach(this.cloneElement);
8794
8789
  }
8795
8790
  else {
@@ -12486,6 +12481,8 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12486
12481
  enableTailMode: true, enableAutoScroll: true,
12487
12482
  dragArea: this.dragArea,
12488
12483
  dragTarget: '.' + TEXTWRAP,
12484
+ enableTapHold: true,
12485
+ tapHoldThreshold: 100,
12489
12486
  helper: (e) => {
12490
12487
  this.dragTarget = e.sender.target;
12491
12488
  let dragRoot = closest(this.dragTarget, '.' + ROOT);
@@ -12915,7 +12912,10 @@ let TreeView = TreeView_1 = class TreeView extends Component {
12915
12912
  dropUl.style.display = 'none';
12916
12913
  }
12917
12914
  if (isNullOrUndefined(dropUl)) {
12918
- this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
12915
+ let args = this.expandArgs;
12916
+ if (isNullOrUndefined(args) || args.name != 'nodeExpanding') {
12917
+ this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
12918
+ }
12919
12919
  if (isNullOrUndefined(dropIcon)) {
12920
12920
  ListBase.generateIcon(this.createElement, dropLi, COLLAPSIBLE, this.listBaseOption);
12921
12921
  }
@@ -13263,6 +13263,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13263
13263
  }
13264
13264
  refNode = dropUl.childNodes[index];
13265
13265
  if (!this.isFirstRender || this.dataType === 1) {
13266
+ let args = this.expandArgs;
13266
13267
  if (refNode || this.sortOrder === 'None') {
13267
13268
  for (let i = 0; i < li.length; i++) {
13268
13269
  dropUl.insertBefore(li[i], refNode);
@@ -13270,7 +13271,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13270
13271
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
13271
13272
  this.preventExpand = false;
13272
13273
  let dropIcon = select('div.' + ICON, dropLi);
13273
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
13274
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name != 'nodeExpanding')) {
13274
13275
  this.expandAction(dropLi, dropIcon, null);
13275
13276
  }
13276
13277
  }
@@ -13283,7 +13284,7 @@ let TreeView = TreeView_1 = class TreeView extends Component {
13283
13284
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
13284
13285
  this.preventExpand = false;
13285
13286
  let dropIcon = select('div.' + ICON, dropLi);
13286
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
13287
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name != 'nodeExpanding')) {
13287
13288
  this.expandAction(dropLi, dropIcon, null);
13288
13289
  }
13289
13290
  }