@syncfusion/ej2-navigations 20.4.52 → 20.4.53

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.4.52
3
+ * version : 20.4.53
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.4.51",
3
+ "_id": "@syncfusion/ej2-navigations@20.4.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Q8VMoyJrQ0tCiJxta0IDxJQ24N7zIDVLNct8uCnBwIkv62ew/RJ5/9/E2yADfBJamQ+nTlcwqWVpp5OmDAIuog==",
5
+ "_integrity": "sha512-VSeYC7Nk6oBvvTGB4FVtt37OASfO07aqnLNPE05P6D+6cz/67BRIrkn4CNTZ5OTX0HQduHzzWd9FONQ1Nkp/HA==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -38,8 +38,8 @@
38
38
  "/@syncfusion/ej2-spreadsheet",
39
39
  "/@syncfusion/ej2-vue-navigations"
40
40
  ],
41
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.51.tgz",
42
- "_shasum": "d49a33648a6e91d4683c4da0c4043d5ad6e2fc64",
41
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.52.tgz",
42
+ "_shasum": "1eba02ebec2a726b68d1a78846802f797e73eacf",
43
43
  "_spec": "@syncfusion/ej2-navigations@*",
44
44
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
45
45
  "author": {
@@ -51,11 +51,11 @@
51
51
  "bundleDependencies": false,
52
52
  "dependencies": {
53
53
  "@syncfusion/ej2-base": "~20.4.51",
54
- "@syncfusion/ej2-buttons": "~20.4.50",
54
+ "@syncfusion/ej2-buttons": "~20.4.53",
55
55
  "@syncfusion/ej2-data": "~20.4.48",
56
56
  "@syncfusion/ej2-inputs": "~20.4.52",
57
57
  "@syncfusion/ej2-lists": "~20.4.50",
58
- "@syncfusion/ej2-popups": "~20.4.52"
58
+ "@syncfusion/ej2-popups": "~20.4.53"
59
59
  },
60
60
  "deprecated": false,
61
61
  "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",
@@ -160,6 +160,6 @@
160
160
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
161
161
  },
162
162
  "typings": "index.d.ts",
163
- "version": "20.4.52",
163
+ "version": "20.4.53",
164
164
  "sideEffects": false
165
165
  }
package/src/tab/tab.js CHANGED
@@ -1849,6 +1849,21 @@ var Tab = /** @class */ (function (_super) {
1849
1849
  _this.refreshActiveBorder();
1850
1850
  var cntTrg = select('#' + CLS_CONTENT + _this.tabId + '_' + _this.extIndex(trg.id), select('.' + CLS_CONTENT, _this.element));
1851
1851
  if (!isNOU(cntTrg)) {
1852
+ var registeredTemplate = _this.registeredTemplate;
1853
+ if (registeredTemplate && registeredTemplate.content) {
1854
+ var templateToClear = [];
1855
+ for (var i = 0; i < registeredTemplate.content.length; i++) {
1856
+ var registeredItem = registeredTemplate.content[i].rootNodes[0];
1857
+ var closestItem = closest(registeredItem, '.' + CLS_ITEM);
1858
+ if (!isNullOrUndefined(registeredItem) && closestItem === cntTrg) {
1859
+ templateToClear.push(registeredTemplate.content[i]);
1860
+ break;
1861
+ }
1862
+ }
1863
+ if (templateToClear.length > 0) {
1864
+ _this.clearTemplate(['content'], templateToClear);
1865
+ }
1866
+ }
1852
1867
  detach(cntTrg);
1853
1868
  }
1854
1869
  _this.trigger('removed', tabRemovingArgs);
@@ -2644,7 +2644,7 @@ var TreeView = /** @class */ (function (_super) {
2644
2644
  TreeView.prototype.focusIn = function () {
2645
2645
  if (!this.mouseDownStatus) {
2646
2646
  var focusedElement = this.getFocusedNode();
2647
- focusedElement.setAttribute("tanindex", "0");
2647
+ focusedElement.setAttribute("tabindex", "0");
2648
2648
  addClass([focusedElement], [HOVER, FOCUS]);
2649
2649
  EventHandler.add(focusedElement, 'blur', this.focusOut, this);
2650
2650
  }
@@ -3058,7 +3058,7 @@ var TreeView = /** @class */ (function (_super) {
3058
3058
  });
3059
3059
  this.dropObj = new Droppable(this.element, {
3060
3060
  out: function (e) {
3061
- if (!isNOU(e) && !e.target.classList.contains(SIBLING)) {
3061
+ if (!isNOU(e) && !e.target.classList.contains(SIBLING) && (_this.dropObj.dragData.default && _this.dropObj.dragData.default.helper.classList.contains(ROOT))) {
3062
3062
  document.body.style.cursor = 'not-allowed';
3063
3063
  }
3064
3064
  },
@@ -3757,15 +3757,29 @@ var TreeView = /** @class */ (function (_super) {
3757
3757
  }
3758
3758
  }
3759
3759
  if (!refNode && ((this.sortOrder === 'Ascending') || (this.sortOrder === 'Descending'))) {
3760
- var cNodes = dropUl.childNodes;
3761
- for (var i = 0; i < li.length; i++) {
3762
- for (var j = 0; j < cNodes.length; j++) {
3763
- var returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
3764
- if (returnValue) {
3765
- dropUl.insertBefore(li[i], cNodes[j]);
3766
- break;
3760
+ if (dropUl.childNodes.length === 0) {
3761
+ for (var i = 0; i < li.length; i++) {
3762
+ dropUl.insertBefore(li[i], refNode);
3763
+ }
3764
+ if (this.dataType === 1 && !isNullOrUndefined(dropLi) && !isNOU(this.element.offsetParent) && !this.element.offsetParent.parentElement.classList.contains('e-filemanager')) {
3765
+ this.preventExpand = false;
3766
+ var dropIcon = select('div.' + ICON, dropLi);
3767
+ if (dropIcon && dropIcon.classList.contains(EXPANDABLE)) {
3768
+ this.expandAction(dropLi, dropIcon, null);
3769
+ }
3770
+ }
3771
+ }
3772
+ else {
3773
+ var cNodes = dropUl.childNodes;
3774
+ for (var i = 0; i < li.length; i++) {
3775
+ for (var j = 0; j < cNodes.length; j++) {
3776
+ var returnValue = (this.sortOrder === 'Ascending') ? cNodes[j].textContent.toUpperCase() > li[i].innerText.toUpperCase() : cNodes[j].textContent.toUpperCase() < li[i].innerText.toUpperCase();
3777
+ if (returnValue) {
3778
+ dropUl.insertBefore(li[i], cNodes[j]);
3779
+ break;
3780
+ }
3781
+ dropUl.insertBefore(li[i], cNodes[cNodes.length]);
3767
3782
  }
3768
- dropUl.insertBefore(li[i], cNodes[cNodes.length]);
3769
3783
  }
3770
3784
  }
3771
3785
  }
@@ -137,7 +137,7 @@ $pager-container-border-radius: 4px !default;
137
137
  $pager-bigger-tripledot-font-size: $pager-tripledot-font-size !default;
138
138
  $pager-active-border: 2px !default;
139
139
  $pager-active-size: solid !default;
140
- $pager-active-color: $primary;
140
+ $pager-active-color: $primary !default;
141
141
  $pager-numeric-icon-padding-with-margin: 7px 10px 7px 10px !default;
142
142
  $pager-focus-bg-color: $table-bg-color-hover !default;
143
143
  $pager-focus-tripledot-padding: $pager-tripledot-padding !default;
@@ -137,7 +137,7 @@ $pager-container-border-radius: 4px !default;
137
137
  $pager-bigger-tripledot-font-size: $pager-tripledot-font-size !default;
138
138
  $pager-active-border: 2px !default;
139
139
  $pager-active-size: solid !default;
140
- $pager-active-color: $primary;
140
+ $pager-active-color: $primary !default;
141
141
  $pager-numeric-icon-padding-with-margin: 7px 10px 7px 10px !default;
142
142
  $pager-focus-bg-color: $table-bg-color-hover !default;
143
143
  $pager-focus-tripledot-padding: $pager-tripledot-padding !default;
@@ -137,7 +137,7 @@ $pager-container-border-radius: 4px !default;
137
137
  $pager-bigger-tripledot-font-size: $pager-tripledot-font-size !default;
138
138
  $pager-active-border: 2px !default;
139
139
  $pager-active-size: solid !default;
140
- $pager-active-color: $primary;
140
+ $pager-active-color: $primary !default;
141
141
  $pager-numeric-icon-padding-with-margin: 7px 10px 7px 10px !default;
142
142
  $pager-focus-bg-color: $table-bg-color-hover !default;
143
143
  $pager-focus-tripledot-padding: $pager-tripledot-padding !default;
@@ -1 +0,0 @@
1
- []
Binary file
Binary file