@syncfusion/ej2-navigations 20.2.44 → 20.2.48

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.44
3
+ * version : 20.2.48
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.43",
3
+ "_id": "@syncfusion/ej2-navigations@20.2.46",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-IuQJbKK1RGLgWUMWLJ/QkOzI8GiKSDSBJIzy3Mz8k4hAyIGtcpzBTb/ZzUtm+9idcAFfuNL1qRj/SCw/IbLzfg==",
5
+ "_integrity": "sha512-awRmOqQRwgtSUGppb0WFtM9SxkrQqfBQqgPVqGM2HOv7AtqlZulvRpn6c/wl7uu8zL2NCPCWy85YamsJh8ZHAw==",
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.43.tgz",
41
- "_shasum": "f209aa005ee9f65f1c4cf4326126e64fb84cea30",
40
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.2.46.tgz",
41
+ "_shasum": "5c70090f4bfea471436722b4ac52e280f3465150",
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.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"
52
+ "@syncfusion/ej2-base": "~20.2.48",
53
+ "@syncfusion/ej2-buttons": "~20.2.46",
54
+ "@syncfusion/ej2-data": "~20.2.45",
55
+ "@syncfusion/ej2-inputs": "~20.2.48",
56
+ "@syncfusion/ej2-lists": "~20.2.46",
57
+ "@syncfusion/ej2-popups": "~20.2.45"
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.44",
162
+ "version": "20.2.48",
163
163
  "sideEffects": false
164
164
  }
@@ -1515,10 +1515,7 @@ var MenuBase = /** @class */ (function (_super) {
1515
1515
  }
1516
1516
  var navIdx = this.getIndex(idx, isUniqueId);
1517
1517
  var newItem = this.getItem(navIdx);
1518
- newItem.iconCss = item.iconCss || newItem.iconCss;
1519
- newItem.text = item.text || newItem.text;
1520
- newItem.url = item.url || newItem.url;
1521
- newItem.separator = item.separator || newItem.separator;
1518
+ Object.assign(newItem, item);
1522
1519
  };
1523
1520
  MenuBase.prototype.getItem = function (navIdx) {
1524
1521
  navIdx = navIdx.slice();
@@ -1642,6 +1639,14 @@ var MenuBase = /** @class */ (function (_super) {
1642
1639
  var item = void 0;
1643
1640
  if (!Object.keys(oldProp.items).length) {
1644
1641
  this_1.updateItem(this_1.element, this_1.items);
1642
+ if (this_1.enableScrolling && this_1.element.parentElement.classList.contains('e-custom-scroll')) {
1643
+ if (this_1.element.classList.contains('e-vertical')) {
1644
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'vscroll', this_1.enableRtl);
1645
+ }
1646
+ else {
1647
+ addScrolling(this_1.createElement, wrapper, this_1.element, 'hscroll', this_1.enableRtl);
1648
+ }
1649
+ }
1645
1650
  if (!this_1.hamburgerMode) {
1646
1651
  for (var i = 1, count = wrapper.childElementCount; i < count; i++) {
1647
1652
  detach(wrapper.lastElementChild);
@@ -1663,14 +1668,6 @@ var MenuBase = /** @class */ (function (_super) {
1663
1668
  navIdx.length = 0;
1664
1669
  }
1665
1670
  }
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
- }
1674
1671
  break;
1675
1672
  }
1676
1673
  }
@@ -1686,6 +1683,16 @@ var MenuBase = /** @class */ (function (_super) {
1686
1683
  ul = this.removeChildElement(ul);
1687
1684
  }
1688
1685
  else {
1686
+ if (this.enableScrolling) {
1687
+ var wrapper1 = this.getWrapper();
1688
+ var ul1 = wrapper1.children[0];
1689
+ if (this.element.classList.contains('e-vertical')) {
1690
+ destroyScroll(getInstance(ul1, VScroll), ul1);
1691
+ }
1692
+ else {
1693
+ destroyScroll(getInstance(ul1, HScroll), ul1);
1694
+ }
1695
+ }
1689
1696
  ul.innerHTML = '';
1690
1697
  }
1691
1698
  var lis = [].slice.call(this.createItems(items).children);