@syncfusion/ej2-navigations 20.1.55 → 20.1.58

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.58
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.57",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0njNxaARzN9JOwEKSpg7dD0wE8gmLMGMjwx8mWeAHOLEO0rqKih8z3uVm36brMlEFTEvD0mIRQxcOq49w/H0ag==",
5
+ "_integrity": "sha512-Bhf/dof5zmFSvsr6bSuHKY6mp9OFKixVx0pGXiyyeP6Oo12jIIiQ0HwSTYm4FNW4+J64GohvGelIGMKb2jvL0A==",
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.57.tgz",
41
+ "_shasum": "0969aed7da8a53b76ef197b40a0756d8df5d6fdf",
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.1.55",
52
+ "@syncfusion/ej2-base": "~20.1.57",
53
53
  "@syncfusion/ej2-buttons": "~20.1.55",
54
54
  "@syncfusion/ej2-data": "~20.1.55",
55
- "@syncfusion/ej2-inputs": "~20.1.55",
55
+ "@syncfusion/ej2-inputs": "~20.1.58",
56
56
  "@syncfusion/ej2-lists": "~20.1.55",
57
- "@syncfusion/ej2-popups": "~20.1.55"
57
+ "@syncfusion/ej2-popups": "~20.1.58"
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.1.55",
162
+ "version": "20.1.58",
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
@@ -219,7 +219,7 @@ var Tab = /** @class */ (function (_super) {
219
219
  this.tbObj = null;
220
220
  }
221
221
  this.unWireEvents();
222
- ['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation'].forEach(function (val) {
222
+ ['role', 'aria-disabled', 'aria-activedescendant', 'tabindex', 'aria-orientation', 'aria-owns'].forEach(function (val) {
223
223
  _this.element.removeAttribute(val);
224
224
  });
225
225
  this.expTemplateContent();
@@ -300,7 +300,7 @@ var Tab = /** @class */ (function (_super) {
300
300
  var css = (name === 'msie') ? 'e-ie' : (name === 'edge') ? 'e-edge' : (name === 'safari') ? 'e-safari' : '';
301
301
  setStyle(this.element, { 'width': formatUnit(this.width), 'height': formatUnit(this.height) });
302
302
  this.setCssClass(this.element, this.cssClass, true);
303
- attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '' });
303
+ attributes(this.element, { role: 'tablist', 'aria-disabled': 'false', 'aria-activedescendant': '', 'aria-owns': this.element.id + '_' + 'tab_header_items' });
304
304
  this.setCssClass(this.element, css, true);
305
305
  this.updatePopAnimationConfig();
306
306
  };
@@ -485,6 +485,10 @@ var Tab = /** @class */ (function (_super) {
485
485
  attributes(this.hdrEle, { 'aria-label': 'tab-header' });
486
486
  this.updateOrientationAttribute();
487
487
  this.setCloseButton(this.showCloseButton);
488
+ var toolbarHeader = this.tbObj.element.querySelector('.' + CLS_TB_ITEMS);
489
+ if (!isNOU(toolbarHeader)) {
490
+ toolbarHeader.id = this.element.id + '_' + 'tab_header_items';
491
+ }
488
492
  };
489
493
  Tab.prototype.renderContent = function () {
490
494
  this.cntEle = select('.' + CLS_CONTENT, this.element);
@@ -1245,10 +1249,12 @@ var Tab = /** @class */ (function (_super) {
1245
1249
  var _this = this;
1246
1250
  if (this.allowDragAndDrop) {
1247
1251
  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
- });
1252
+ if (tabHeader) {
1253
+ var items = tabHeader.querySelectorAll('.' + CLS_TB_ITEM);
1254
+ items.forEach(function (element) {
1255
+ _this.initializeDrag(element);
1256
+ });
1257
+ }
1252
1258
  }
1253
1259
  };
1254
1260
  Tab.prototype.wireEvents = function () {
@@ -1821,6 +1827,7 @@ var Tab = /** @class */ (function (_super) {
1821
1827
  if (isNOU(this.hdrEle)) {
1822
1828
  this.items = items;
1823
1829
  this.reRenderItems();
1830
+ this.bindDraggable();
1824
1831
  }
1825
1832
  else {
1826
1833
  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) {
@@ -6625,7 +6625,7 @@
6625
6625
  .e-treeview .e-icon-expandable {
6626
6626
  display: inline-block;
6627
6627
  height: 20px;
6628
- margin: 0 0 0 -20px;
6628
+ margin: 0 2px 0 -24px;
6629
6629
  vertical-align: middle;
6630
6630
  width: 20px;
6631
6631
  }
@@ -6625,7 +6625,7 @@
6625
6625
  .e-treeview .e-icon-expandable {
6626
6626
  display: inline-block;
6627
6627
  height: 20px;
6628
- margin: 0 0 0 -20px;
6628
+ margin: 0 2px 0 -24px;
6629
6629
  vertical-align: middle;
6630
6630
  width: 20px;
6631
6631
  }
@@ -13,7 +13,7 @@ $treeview-rtl-child-ul-padding: 0 20px 0 0 !default;
13
13
  $treeview-text-wrap-padding: 0 0 0 20px !default;
14
14
  $treeview-rtl-text-wrap-padding: 0 20px 0 0 !default;
15
15
  $treeview-icon-size: 20px !default;
16
- $treeview-icon-margin: 0 0 0 -20px !default;
16
+ $treeview-icon-margin: 0 2px 0 -24px !default;
17
17
  $treeview-rtl-icon-margin: 0 -20px 0 0 !default;
18
18
  $treeview-icon-padding: 0px !default;
19
19
  $treeview-text-padding: 0 8px !default;
@@ -443,7 +443,7 @@
443
443
  .e-treeview .e-icon-expandable {
444
444
  display: inline-block;
445
445
  height: 20px;
446
- margin: 0 0 0 -20px;
446
+ margin: 0 2px 0 -24px;
447
447
  vertical-align: middle;
448
448
  width: 20px;
449
449
  }
@@ -443,7 +443,7 @@
443
443
  .e-treeview .e-icon-expandable {
444
444
  display: inline-block;
445
445
  height: 20px;
446
- margin: 0 0 0 -20px;
446
+ margin: 0 2px 0 -24px;
447
447
  vertical-align: middle;
448
448
  width: 20px;
449
449
  }