@syncfusion/ej2-navigations 20.1.60 → 20.1.61

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.
@@ -9193,7 +9193,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9193
9193
  }
9194
9194
  this.tbItems = select('.' + CLS_TB_ITEMS, this.getTabHeader());
9195
9195
  this.isAdd = true;
9196
- var tabItems = this.parseObject(items, index);
9196
+ var tabItems_2 = this.parseObject(items, index);
9197
9197
  this.isAdd = false;
9198
9198
  var i_1 = 0;
9199
9199
  var textValue_1;
@@ -9201,6 +9201,12 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9201
9201
  textValue_1 = item.headerTemplate || item.header.text;
9202
9202
  if (!(isNullOrUndefined(item.headerTemplate || item.header) || isNullOrUndefined(textValue_1) ||
9203
9203
  (textValue_1.length === 0) && !isNullOrUndefined(item.header) && isNullOrUndefined(item.header.iconCss))) {
9204
+ if (tabItems_2[place]) {
9205
+ if (isNullOrUndefined(item.id)) {
9206
+ item.id = TABITEMPREFIX + (lastEleIndex + place).toString();
9207
+ }
9208
+ tabItems_2[place].htmlAttributes['data-id'] = item.id;
9209
+ }
9204
9210
  _this.items.splice((index + i_1), 0, item);
9205
9211
  i_1++;
9206
9212
  }
@@ -9215,7 +9221,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9215
9221
  _this.getContent(eleTrg, item.content, 'render', index);
9216
9222
  }
9217
9223
  });
9218
- this.tbObj.addItems(tabItems, index);
9224
+ this.tbObj.addItems(tabItems_2, index);
9219
9225
  if (!this.isReplace) {
9220
9226
  this.trigger('added', { addedItems: items });
9221
9227
  }
@@ -9224,6 +9230,7 @@ var Tab = /** @__PURE__ @class */ (function (_super) {
9224
9230
  }
9225
9231
  else {
9226
9232
  this.setActiveBorder();
9233
+ this.tbItem = selectAll('.' + CLS_TB_ITEM, this.getTabHeader());
9227
9234
  }
9228
9235
  this.bindDraggable();
9229
9236
  }
@@ -13432,14 +13439,10 @@ var TreeView = /** @__PURE__ @class */ (function (_super) {
13432
13439
  for (var j = 0; j < cNodes.length; j++) {
13433
13440
  var returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
13434
13441
  if (returnValue) {
13435
- refNode = cNodes[j];
13436
- dropUl.insertBefore(li[i], refNode);
13442
+ dropUl.insertBefore(li[i], cNodes[j]);
13437
13443
  break;
13438
13444
  }
13439
- else {
13440
- refNode = cNodes[cNodes.length];
13441
- dropUl.insertBefore(li[i], refNode);
13442
- }
13445
+ dropUl.insertBefore(li[i], cNodes[cNodes.length]);
13443
13446
  }
13444
13447
  }
13445
13448
  }