@syncfusion/ej2-navigations 20.2.38 → 20.2.44

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 : 20.2.38
3
+ * version : 20.2.44
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@20.2.36",
3
+ "_id": "@syncfusion/ej2-navigations@20.2.43",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0n+gogPH5bHuev2mUQGro6hPj7UcCRITvLic1ggrXzyk7XQoMx6z6oJNcfofG3tS3uw1DMuDFFWSOhTQdKJH4w==",
5
+ "_integrity": "sha512-IuQJbKK1RGLgWUMWLJ/QkOzI8GiKSDSBJIzy3Mz8k4hAyIGtcpzBTb/ZzUtm+9idcAFfuNL1qRj/SCw/IbLzfg==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -37,8 +37,8 @@
37
37
  "/@syncfusion/ej2-spreadsheet",
38
38
  "/@syncfusion/ej2-vue-navigations"
39
39
  ],
40
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.36.tgz",
41
- "_shasum": "d41652358e5e3f46eed046a827743a106c15a3cb",
40
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.43.tgz",
41
+ "_shasum": "f209aa005ee9f65f1c4cf4326126e64fb84cea30",
42
42
  "_spec": "@syncfusion/ej2-navigations@*",
43
43
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
44
44
  "author": {
@@ -49,12 +49,12 @@
49
49
  },
50
50
  "bundleDependencies": false,
51
51
  "dependencies": {
52
- "@syncfusion/ej2-base": "~20.2.38",
53
- "@syncfusion/ej2-buttons": "~20.2.38",
54
- "@syncfusion/ej2-data": "~20.2.38",
55
- "@syncfusion/ej2-inputs": "~20.2.38",
56
- "@syncfusion/ej2-lists": "~20.2.38",
57
- "@syncfusion/ej2-popups": "~20.2.38"
52
+ "@syncfusion/ej2-base": "~20.2.43",
53
+ "@syncfusion/ej2-buttons": "~20.2.43",
54
+ "@syncfusion/ej2-data": "~20.2.43",
55
+ "@syncfusion/ej2-inputs": "~20.2.44",
56
+ "@syncfusion/ej2-lists": "~20.2.43",
57
+ "@syncfusion/ej2-popups": "~20.2.43"
58
58
  },
59
59
  "deprecated": false,
60
60
  "description": "A package of Essential JS 2 navigation components such as Tree-view, Tab, Toolbar, Context-menu, and Accordion which is used to navigate from one page to another",
@@ -159,6 +159,6 @@
159
159
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
160
160
  },
161
161
  "typings": "index.d.ts",
162
- "version": "20.2.38",
162
+ "version": "20.2.44",
163
163
  "sideEffects": false
164
164
  }
@@ -169,6 +169,7 @@ export declare abstract class MenuBase extends Component<HTMLUListElement> imple
169
169
  private showSubMenuOn;
170
170
  private defaultOption;
171
171
  private timer;
172
+ private currentTarget;
172
173
  /**
173
174
  * Triggers while rendering each menu item.
174
175
  *
@@ -520,6 +520,7 @@ var MenuBase = /** @class */ (function (_super) {
520
520
  };
521
521
  MenuBase.prototype.cmenuHandler = function (e) {
522
522
  e.preventDefault();
523
+ this.currentTarget = e.target;
523
524
  this.isCMenu = true;
524
525
  this.pageX = e.changedTouches ? e.changedTouches[0].pageX + 1 : e.pageX + 1;
525
526
  this.pageY = e.changedTouches ? e.changedTouches[0].pageY + 1 : e.pageY + 1;
@@ -1662,6 +1663,14 @@ var MenuBase = /** @class */ (function (_super) {
1662
1663
  navIdx.length = 0;
1663
1664
  }
1664
1665
  }
1666
+ if (this_1.enableScrolling) {
1667
+ if (this_1.element.classList.contains('e-vertical')) {
1668
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'vscroll', this_1.enableRtl);
1669
+ }
1670
+ else {
1671
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'hscroll', this_1.enableRtl);
1672
+ }
1673
+ }
1665
1674
  break;
1666
1675
  }
1667
1676
  }
@@ -1824,12 +1833,16 @@ var MenuBase = /** @class */ (function (_super) {
1824
1833
  ul.querySelector('.' + FOCUSED).focus();
1825
1834
  }
1826
1835
  else {
1827
- var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
1828
- if (ele) {
1829
- ele.querySelector('.' + SELECTED).focus();
1830
- }
1831
- else {
1832
- this.element.focus();
1836
+ if (this.currentTarget) {
1837
+ if (!(this.currentTarget.classList.contains("e-numerictextbox") || this.currentTarget.classList.contains("e-textbox"))) {
1838
+ var ele = this.getWrapper().children[this.getIdx(this.getWrapper(), ul) - 1];
1839
+ if (ele) {
1840
+ ele.querySelector('.' + SELECTED).focus();
1841
+ }
1842
+ else {
1843
+ this.element.focus();
1844
+ }
1845
+ }
1833
1846
  }
1834
1847
  }
1835
1848
  }
package/src/tab/tab.js CHANGED
@@ -1668,7 +1668,7 @@ var Tab = /** @class */ (function (_super) {
1668
1668
  }
1669
1669
  }
1670
1670
  else {
1671
- this.dragItem.parentNode.insertBefore(dropItem, this.dragItem);
1671
+ this.dragItem.parentNode.insertBefore(this.dragItem, dropItem.nextElementSibling);
1672
1672
  }
1673
1673
  }
1674
1674
  };
@@ -1849,8 +1849,8 @@ var Tab = /** @class */ (function (_super) {
1849
1849
  if (_this.allowDragAndDrop && (index !== Array.prototype.indexOf.call(_this.itemIndexArray, trg.id))) {
1850
1850
  index = Array.prototype.indexOf.call(_this.itemIndexArray, trg.id);
1851
1851
  }
1852
- _this.items.splice(index, 1);
1853
1852
  var targetEleIndex = _this.itemIndexArray.indexOf(trg.id);
1853
+ _this.items.splice(targetEleIndex, 1);
1854
1854
  _this.itemIndexArray.splice(targetEleIndex, 1);
1855
1855
  _this.refreshActiveBorder();
1856
1856
  var cntTrg = select('#' + CLS_CONTENT + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT, _this.element));
@@ -734,6 +734,7 @@ var TreeView = /** @class */ (function (_super) {
734
734
  }
735
735
  }
736
736
  }
737
+ this.parentCheckData = [];
737
738
  };
738
739
  TreeView.prototype.beforeNodeCreate = function (e) {
739
740
  if (this.showCheckBox) {