@syncfusion/ej2-navigations 20.1.55 → 20.1.56

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.1.55
3
+ * version : 20.1.56
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.1.51",
3
+ "_id": "@syncfusion/ej2-navigations@20.1.55",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0njNxaARzN9JOwEKSpg7dD0wE8gmLMGMjwx8mWeAHOLEO0rqKih8z3uVm36brMlEFTEvD0mIRQxcOq49w/H0ag==",
5
+ "_integrity": "sha512-8AwSmYnHII48hpkQHbSPrgkphzeigvtvGXK6dpMZeW3JnjnMwOA1ytJp86fvdfpEt7qCEiL7H4vCPqhp5MS+AA==",
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.1.51.tgz",
41
- "_shasum": "3811dcf6ae7f08b655e52736ab0b055d9db885c8",
40
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.1.55.tgz",
41
+ "_shasum": "80fcf366b821e8eddd4416efb8592927358690b6",
42
42
  "_spec": "@syncfusion/ej2-navigations@*",
43
43
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
44
44
  "author": {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "bundleDependencies": false,
51
51
  "dependencies": {
52
- "@syncfusion/ej2-base": "~20.1.55",
52
+ "@syncfusion/ej2-base": "~20.1.56",
53
53
  "@syncfusion/ej2-buttons": "~20.1.55",
54
54
  "@syncfusion/ej2-data": "~20.1.55",
55
55
  "@syncfusion/ej2-inputs": "~20.1.55",
@@ -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.1.55",
162
+ "version": "20.1.56",
163
163
  "sideEffects": false
164
164
  }
@@ -41,6 +41,7 @@ var LEFTARROW = 'leftarrow';
41
41
  var RIGHTARROW = 'rightarrow';
42
42
  var HOME = 'home';
43
43
  var END = 'end';
44
+ var TAB = 'tab';
44
45
  var CARET = 'e-caret';
45
46
  var ITEM = 'e-menu-item';
46
47
  var DISABLED = 'e-disabled';
@@ -330,6 +331,7 @@ var MenuBase = /** @class */ (function (_super) {
330
331
  if (this.isMenu) {
331
332
  keyConfigs.home = HOME;
332
333
  keyConfigs.end = END;
334
+ keyConfigs.tab = TAB;
333
335
  }
334
336
  new KeyboardEvents(element, {
335
337
  keyAction: this.keyBoardHandler.bind(this),
@@ -390,6 +392,7 @@ var MenuBase = /** @class */ (function (_super) {
390
392
  case UPARROW:
391
393
  case END:
392
394
  case HOME:
395
+ case TAB:
393
396
  this.upDownKeyHandler(e);
394
397
  break;
395
398
  case RIGHTARROW:
@@ -416,7 +419,7 @@ var MenuBase = /** @class */ (function (_super) {
416
419
  };
417
420
  MenuBase.prototype.upDownKeyHandler = function (e) {
418
421
  var cul = this.getUlByNavIdx();
419
- var defaultIdx = (e.action === DOWNARROW || e.action === HOME) ? 0 : cul.childElementCount - 1;
422
+ var defaultIdx = (e.action === DOWNARROW || e.action === HOME || e.action === TAB) ? 0 : cul.childElementCount - 1;
420
423
  var fliIdx = defaultIdx;
421
424
  var fli = this.getLIByClass(cul, FOCUSED);
422
425
  if (fli) {
@@ -553,6 +556,12 @@ var MenuBase = /** @class */ (function (_super) {
553
556
  }
554
557
  if (!isClose) {
555
558
  var liElem_1 = e && e.target && this.getLI(e.target);
559
+ if (liElem_1) {
560
+ this.cli = liElem_1;
561
+ }
562
+ else {
563
+ this.cli = ul_1.children[0];
564
+ }
556
565
  item_1 = this.navIdx.length ? this.getItem(this.navIdx) : null;
557
566
  items_1 = item_1 ? item_1.items : this.items;
558
567
  beforeCloseArgs = { element: ul_1, parentItem: item_1, items: items_1, event: e, cancel: false, isFocused: true };
@@ -2156,6 +2165,7 @@ var MenuBase = /** @class */ (function (_super) {
2156
2165
  this.clearTemplate(['template']);
2157
2166
  }
2158
2167
  }
2168
+ this.rippleFn = null;
2159
2169
  };
2160
2170
  __decorate([
2161
2171
  Event()
package/src/tab/tab.js CHANGED
@@ -1245,10 +1245,12 @@ var Tab = /** @class */ (function (_super) {
1245
1245
  var _this = this;
1246
1246
  if (this.allowDragAndDrop) {
1247
1247
  var tabHeader = this.element.querySelector('.' + CLS_HEADER);
1248
- var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
1249
- items.forEach(function (element) {
1250
- _this.initializeDrag(element);
1251
- });
1248
+ if (tabHeader) {
1249
+ var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
1250
+ items.forEach(function (element) {
1251
+ _this.initializeDrag(element);
1252
+ });
1253
+ }
1252
1254
  }
1253
1255
  };
1254
1256
  Tab.prototype.wireEvents = function () {
@@ -1821,6 +1823,7 @@ var Tab = /** @class */ (function (_super) {
1821
1823
  if (isNOU(this.hdrEle)) {
1822
1824
  this.items = items;
1823
1825
  this.reRenderItems();
1826
+ this.bindDraggable();
1824
1827
  }
1825
1828
  else {
1826
1829
  var itemsCount = selectAll('.e-tab-header .' + CLS_TB_ITEM, this.element).length;
@@ -717,7 +717,8 @@ var TreeView = /** @class */ (function (_super) {
717
717
  }
718
718
  var subChildItems = getValue(this.fields.child.toString(), childItems[index]);
719
719
  if (subChildItems && subChildItems.length) {
720
- this.parentCheckData.push(treeData);
720
+ if (this.parentCheckData.indexOf(treeData) === -1)
721
+ this.parentCheckData.push(treeData);
721
722
  this.updateChildCheckState(subChildItems, childItems[index]);
722
723
  }
723
724
  if (count === childItems.length && this.autoCheck && this.checkedNodes.indexOf(checkedParent) === -1) {
@@ -732,7 +733,6 @@ var TreeView = /** @class */ (function (_super) {
732
733
  }
733
734
  }
734
735
  }
735
- this.parentCheckData = [];
736
736
  };
737
737
  TreeView.prototype.beforeNodeCreate = function (e) {
738
738
  if (this.showCheckBox) {