@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.4
3
+ * version : 21.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-navigations@*",
3
- "_id": "@syncfusion/ej2-navigations@21.2.3",
3
+ "_id": "@syncfusion/ej2-navigations@21.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-wkXN1stY02EuXHBfwv7RtsJsFvnKxYNoT74/VZu+Dqe2dMMx1JH8zDLVbjIVflAo3BiDRTKs6erEjJB4ErtUUQ==",
5
+ "_integrity": "sha512-tNqo7fwXnp6YNAF+gVKLJwXJK2dL+l1taEvIzEwjIvBLxKDnPcIXQkPD/mA5L+/Dm2dVRrLm8B0EB4n43UyPiQ==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -39,8 +39,8 @@
39
39
  "/@syncfusion/ej2-spreadsheet",
40
40
  "/@syncfusion/ej2-vue-navigations"
41
41
  ],
42
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-21.2.3.tgz",
43
- "_shasum": "e53c4fd12005ea2d5c63cd9b9b7d97deb07ba785",
42
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-21.2.4.tgz",
43
+ "_shasum": "f4bd273deb7fef77a35df8828162db349c176394",
44
44
  "_spec": "@syncfusion/ej2-navigations@*",
45
45
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
46
46
  "author": {
@@ -52,7 +52,7 @@
52
52
  "bundleDependencies": false,
53
53
  "dependencies": {
54
54
  "@syncfusion/ej2-base": "~21.2.3",
55
- "@syncfusion/ej2-buttons": "~21.2.3",
55
+ "@syncfusion/ej2-buttons": "~21.2.5",
56
56
  "@syncfusion/ej2-data": "~21.2.4",
57
57
  "@syncfusion/ej2-inputs": "~21.2.4",
58
58
  "@syncfusion/ej2-lists": "~21.2.3",
@@ -161,6 +161,6 @@
161
161
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
162
162
  },
163
163
  "typings": "index.d.ts",
164
- "version": "21.2.4",
164
+ "version": "21.2.5",
165
165
  "sideEffects": false
166
166
  }
package/src/tab/tab.js CHANGED
@@ -357,15 +357,6 @@ var Tab = /** @class */ (function (_super) {
357
357
  this.setContentHeight(true);
358
358
  this.select(this.selectedItem);
359
359
  }
360
- this.tbItem = selectAll('.' + CLS_TB_ITEM, this.hdrEle);
361
- if (!isNOU(this.tbItem)) {
362
- for (var i = 0; i < this.items.length; i++) {
363
- if (this.tbItem[i]) {
364
- var tabID = this.items[i].id;
365
- this.tbItem[i].setAttribute('data-id', tabID);
366
- }
367
- }
368
- }
369
360
  this.setRTL(this.enableRtl);
370
361
  }
371
362
  };
@@ -545,7 +536,7 @@ var Tab = /** @class */ (function (_super) {
545
536
  _this.itemIndexArray.splice((index + i), 0, CLS_ITEM + _this.tabId + '_' + _this.lastIndex);
546
537
  }
547
538
  var attrObj = {
548
- id: CLS_ITEM + _this.tabId + '_' + _this.lastIndex
539
+ id: CLS_ITEM + _this.tabId + '_' + _this.lastIndex, 'data-id': item.id
549
540
  };
550
541
  var tItem = { htmlAttributes: attrObj, template: wrap };
551
542
  tItem.cssClass = ((item.cssClass !== undefined) ? item.cssClass : ' ') + ' ' + disabled + ' ' + hidden + ' '
@@ -1629,6 +1620,10 @@ var Tab = /** @class */ (function (_super) {
1629
1620
  };
1630
1621
  this.trigger('onDragStart', dragArgs, function (tabitemDragArgs) {
1631
1622
  if (tabitemDragArgs.cancel) {
1623
+ var dragObj = e.element.ej2_instances[0];
1624
+ if (!isNullOrUndefined(dragObj)) {
1625
+ dragObj.intDestroy(e.event);
1626
+ }
1632
1627
  detach(_this.cloneElement);
1633
1628
  }
1634
1629
  else {
@@ -2965,6 +2965,8 @@ var TreeView = /** @class */ (function (_super) {
2965
2965
  enableTailMode: true, enableAutoScroll: true,
2966
2966
  dragArea: this.dragArea,
2967
2967
  dragTarget: '.' + TEXTWRAP,
2968
+ enableTapHold: true,
2969
+ tapHoldThreshold: 100,
2968
2970
  helper: function (e) {
2969
2971
  _this.dragTarget = e.sender.target;
2970
2972
  var dragRoot = closest(_this.dragTarget, '.' + ROOT);
@@ -3395,7 +3397,10 @@ var TreeView = /** @class */ (function (_super) {
3395
3397
  dropUl.style.display = 'none';
3396
3398
  }
3397
3399
  if (isNOU(dropUl)) {
3398
- this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
3400
+ var args = this.expandArgs;
3401
+ if (isNOU(args) || args.name != 'nodeExpanding') {
3402
+ this.trigger('nodeExpanding', this.getExpandEvent(dropLi, null));
3403
+ }
3399
3404
  if (isNOU(dropIcon)) {
3400
3405
  ListBase.generateIcon(this.createElement, dropLi, COLLAPSIBLE, this.listBaseOption);
3401
3406
  }
@@ -3745,6 +3750,7 @@ var TreeView = /** @class */ (function (_super) {
3745
3750
  }
3746
3751
  refNode = dropUl.childNodes[index];
3747
3752
  if (!this.isFirstRender || this.dataType === 1) {
3753
+ var args = this.expandArgs;
3748
3754
  if (refNode || this.sortOrder === 'None') {
3749
3755
  for (var i = 0; i < li.length; i++) {
3750
3756
  dropUl.insertBefore(li[i], refNode);
@@ -3752,7 +3758,7 @@ var TreeView = /** @class */ (function (_super) {
3752
3758
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNOU(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
3753
3759
  this.preventExpand = false;
3754
3760
  var dropIcon = select('div.' + ICON, dropLi);
3755
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
3761
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNOU(args) || args.name != 'nodeExpanding')) {
3756
3762
  this.expandAction(dropLi, dropIcon, null);
3757
3763
  }
3758
3764
  }
@@ -3765,7 +3771,7 @@ var TreeView = /** @class */ (function (_super) {
3765
3771
  if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNOU(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
3766
3772
  this.preventExpand = false;
3767
3773
  var dropIcon = select('div.' + ICON, dropLi);
3768
- if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
3774
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE) && (isNOU(args) || args.name != 'nodeExpanding')) {
3769
3775
  this.expandAction(dropLi, dropIcon, null);
3770
3776
  }
3771
3777
  }
@@ -8149,10 +8149,10 @@
8149
8149
  color: rgba(0, 0, 0, 0.54);
8150
8150
  }
8151
8151
  .e-treeview .e-list-item.e-active > .e-text-content {
8152
- color: #cc1351;
8152
+ color: #e3165b;
8153
8153
  }
8154
8154
  .e-treeview .e-list-item.e-active > .e-text-content .e-list-text {
8155
- color: #cc1351;
8155
+ color: #e3165b;
8156
8156
  }
8157
8157
  .e-treeview .e-list-item.e-active > .e-text-content .e-icon-collapsible,
8158
8158
  .e-treeview .e-list-item.e-active > .e-text-content .e-icon-expandable {
@@ -12,7 +12,7 @@ $treeview-text-color: rgba($grey-light-font, .87) !default;
12
12
  $treeview-item-border-color: transparent !default;
13
13
  $treeview-item-active-bg: $grey-200 !default;
14
14
  $treeview-icon-active-color: rgba($grey-light-font, .54) !default;
15
- $treeview-text-active-color: $tree-node-text-color !default;
15
+ $treeview-text-active-color: $accent !default;
16
16
  $treeview-item-active-border-color: $grey-200 !default;
17
17
  $treeview-item-hover-bg: $grey-100 !default;
18
18
  $treeview-icon-hover-color: rgba($grey-light-font, .54) !default;
@@ -619,10 +619,10 @@
619
619
  color: rgba(0, 0, 0, 0.54);
620
620
  }
621
621
  .e-treeview .e-list-item.e-active > .e-text-content {
622
- color: #cc1351;
622
+ color: #e3165b;
623
623
  }
624
624
  .e-treeview .e-list-item.e-active > .e-text-content .e-list-text {
625
- color: #cc1351;
625
+ color: #e3165b;
626
626
  }
627
627
  .e-treeview .e-list-item.e-active > .e-text-content .e-icon-collapsible,
628
628
  .e-treeview .e-list-item.e-active > .e-text-content .e-icon-expandable {