@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.
@@ -7795,15 +7795,6 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7795
7795
  this.setContentHeight(true);
7796
7796
  this.select(this.selectedItem);
7797
7797
  }
7798
- this.tbItem = selectAll('.' + CLS_TB_ITEM, this.hdrEle);
7799
- if (!isNullOrUndefined(this.tbItem)) {
7800
- for (var i = 0; i < this.items.length; i++) {
7801
- if (this.tbItem[i]) {
7802
- var tabID = this.items[i].id;
7803
- this.tbItem[i].setAttribute('data-id', tabID);
7804
- }
7805
- }
7806
- }
7807
7798
  this.setRTL(this.enableRtl);
7808
7799
  }
7809
7800
  };
@@ -7982,7 +7973,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
7982
7973
  _this.itemIndexArray.splice((index + i), 0, CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex);
7983
7974
  }
7984
7975
  var attrObj = {
7985
- id: CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex
7976
+ id: CLS_ITEM$2 + _this.tabId + '_' + _this.lastIndex, 'data-id': item.id
7986
7977
  };
7987
7978
  var tItem = { htmlAttributes: attrObj, template: wrap };
7988
7979
  tItem.cssClass = ((item.cssClass !== undefined) ? item.cssClass : ' ') + ' ' + disabled + ' ' + hidden + ' '
@@ -9066,6 +9057,10 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9066
9057
  };
9067
9058
  this.trigger('onDragStart', dragArgs, function (tabitemDragArgs) {
9068
9059
  if (tabitemDragArgs.cancel) {
9060
+ var dragObj = e.element.ej2_instances[0];
9061
+ if (!isNullOrUndefined(dragObj)) {
9062
+ dragObj.intDestroy(e.event);
9063
+ }
9069
9064
  detach(_this.cloneElement);
9070
9065
  }
9071
9066
  else {
@@ -12822,6 +12817,8 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
12822
12817
  enableTailMode: true, enableAutoScroll: true,
12823
12818
  dragArea: this.dragArea,
12824
12819
  dragTarget: '.' + TEXTWRAP,
12820
+ enableTapHold: true,
12821
+ tapHoldThreshold: 100,
12825
12822
  helper: function (e) {
12826
12823
  _this.dragTarget = e.sender.target;
12827
12824
  var dragRoot = closest(_this.dragTarget, '.' + ROOT);
@@ -13251,7 +13248,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13251
13248
  dropUl.style.display = 'none';
13252
13249
  }
13253
13250
  if (isNullOrUndefined(dropUl)) {
13254
- this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
13251
+ var args = this.expandArgs;
13252
+ if (isNullOrUndefined(args) || args.name != 'nodeExpanding') {
13253
+ this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
13254
+ }
13255
13255
  if (isNullOrUndefined(dropIcon)) {
13256
13256
  ListBase.generateIcon(this.createElement, dropLi, COLLAPSIBLE, this.listBaseOption);
13257
13257
  }
@@ -13601,6 +13601,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13601
13601
  }
13602
13602
  refNode = dropUl.childNodes[index];
13603
13603
  if (!this.isFirstRender || this.dataType === 1) {
13604
+ var args = this.expandArgs;
13604
13605
  if (refNode || this.sortOrder === 'None') {
13605
13606
  for (var i = 0; i < li.length; i++) {
13606
13607
  dropUl.insertBefore(li[i], refNode);
@@ -13608,7 +13609,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13608
13609
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
13609
13610
  this.preventExpand = false;
13610
13611
  var dropIcon = select('div.' + ICON, dropLi);
13611
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
13612
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name != 'nodeExpanding')) {
13612
13613
  this.expandAction(dropLi, dropIcon, null);
13613
13614
  }
13614
13615
  }
@@ -13621,7 +13622,7 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13621
13622
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNullOrUndefined(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
13622
13623
  this.preventExpand = false;
13623
13624
  var dropIcon = select('div.' + ICON, dropLi);
13624
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
13625
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNullOrUndefined(args) || args.name != 'nodeExpanding')) {
13625
13626
  this.expandAction(dropLi, dropIcon, null);
13626
13627
  }
13627
13628
  }