@syncfusion/ej2-navigations 20.4.38 → 20.4.40

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.38
3
+ * version : 20.4.40
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@19.79.2",
3
+ "_id": "@syncfusion/ej2-navigations@20.4.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-P13hGnVLWjJzE6kWSGgW8BIYBj8p4eNoLxQlj6pGbtGvJUZxDgQgfhyy8wCYsRuNTWV0tP6CUNlBGJ4JHKTweA==",
5
+ "_integrity": "sha512-hdhNtScx4b09fDOS/62jwi0AT09DS34cSCYSj37SYSv4BkwgRUS3SlAluqZn7FvEuCnW79+yomInD3ThxcKUhw==",
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-release/@syncfusion/ej2-navigations/-/ej2-navigations-19.79.2.tgz",
42
- "_shasum": "79275f1ffa34addc1af6c8fea4374a7338929c40",
41
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-20.4.38.tgz",
42
+ "_shasum": "5b613ec9c84750d24aafe522ba9f815e5eceeadc",
43
43
  "_spec": "@syncfusion/ej2-navigations@*",
44
44
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
45
45
  "author": {
@@ -50,18 +50,18 @@
50
50
  },
51
51
  "bundleDependencies": false,
52
52
  "dependencies": {
53
- "@syncfusion/ej2-base": "~20.4.38",
54
- "@syncfusion/ej2-buttons": "~20.4.38",
55
- "@syncfusion/ej2-data": "~20.4.38",
56
- "@syncfusion/ej2-inputs": "~20.4.38",
57
- "@syncfusion/ej2-lists": "~20.4.38",
58
- "@syncfusion/ej2-popups": "~20.4.38"
53
+ "@syncfusion/ej2-base": "~20.4.40",
54
+ "@syncfusion/ej2-buttons": "~20.4.40",
55
+ "@syncfusion/ej2-data": "~20.4.40",
56
+ "@syncfusion/ej2-inputs": "~20.4.40",
57
+ "@syncfusion/ej2-lists": "~20.4.40",
58
+ "@syncfusion/ej2-popups": "~20.4.40"
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",
62
62
  "devDependencies": {},
63
63
  "es2015": "./dist/es6/ej2-navigations.es5.js",
64
- "homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
64
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
65
65
  "keywords": [
66
66
  "ej2",
67
67
  "syncfusion",
@@ -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.38",
163
+ "version": "20.4.40",
164
164
  "sideEffects": false
165
165
  }
@@ -438,6 +438,14 @@ var MenuBase = /** @class */ (function (_super) {
438
438
  if (fliIdx === (e.action === DOWNARROW ? cul.childElementCount : -1)) {
439
439
  fliIdx = defaultIdx;
440
440
  }
441
+ if (cul.children[fliIdx].classList.contains(HIDE)) {
442
+ if (e.action === DOWNARROW && fliIdx === cul.childElementCount - 1) {
443
+ fliIdx = defaultIdx;
444
+ }
445
+ else if (e.action === UPARROW && fliIdx === 0) {
446
+ fliIdx = defaultIdx;
447
+ }
448
+ }
441
449
  }
442
450
  }
443
451
  var cli = cul.children[fliIdx];
@@ -1162,7 +1170,7 @@ var MenuBase = /** @class */ (function (_super) {
1162
1170
  itemCreated: function (args) {
1163
1171
  if (args.curData[_this.getField('separator', level)]) {
1164
1172
  args.item.classList.add(SEPARATOR);
1165
- args.item.removeAttribute('role');
1173
+ args.item.setAttribute('role', 'separator');
1166
1174
  }
1167
1175
  if (showIcon && !args.curData[args.fields.iconCss]
1168
1176
  && !args.curData[_this.getField('separator', level)]) {
@@ -1174,9 +1182,6 @@ var MenuBase = /** @class */ (function (_super) {
1174
1182
  args.item.appendChild(span);
1175
1183
  args.item.setAttribute('aria-haspopup', 'true');
1176
1184
  args.item.setAttribute('aria-expanded', 'false');
1177
- if (!_this.isMenu) {
1178
- args.item.removeAttribute('role');
1179
- }
1180
1185
  args.item.classList.add('e-menu-caret-icon');
1181
1186
  }
1182
1187
  if (_this.isMenu && _this.template) {
@@ -1200,9 +1205,7 @@ var MenuBase = /** @class */ (function (_super) {
1200
1205
  }
1201
1206
  var ul = ListBase.createList(this.createElement, items, listBaseOptions, !this.template, this);
1202
1207
  ul.setAttribute('tabindex', '0');
1203
- if (this.isMenu) {
1204
- ul.setAttribute('role', 'menu');
1205
- }
1208
+ this.isMenu ? ul.setAttribute('role', 'menu') : ul.setAttribute('role', 'menubar');
1206
1209
  return ul;
1207
1210
  };
1208
1211
  MenuBase.prototype.moverHandler = function (e) {