@syncfusion/ej2-navigations 28.1.35 → 28.1.37

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 : 28.1.35
3
+ * version : 28.1.37
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.33",
3
+ "_id": "@syncfusion/ej2-navigations@28.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0OLo+b+tpp6pVC1e+OE3OcYMqxPCCG1JxTo35UipJ2I2/Fve/COtxBBPpyBLFsAmMHeHldqnsLcSo3X7Fo3mWg==",
5
+ "_integrity": "sha512-DfoiKu0Ty+W9EEEdLGr+dOBgL49Swh2Atz6fR4L8J6o6KMJYYtoj9OrfZuN20hP5i5WrCVbbu8/ORFHYL6RWTQ==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,7 +18,6 @@
18
18
  },
19
19
  "_requiredBy": [
20
20
  "/",
21
- "/@syncfusion/ej2",
22
21
  "/@syncfusion/ej2-angular-navigations",
23
22
  "/@syncfusion/ej2-charts",
24
23
  "/@syncfusion/ej2-diagrams",
@@ -27,21 +26,18 @@
27
26
  "/@syncfusion/ej2-filemanager",
28
27
  "/@syncfusion/ej2-gantt",
29
28
  "/@syncfusion/ej2-grids",
30
- "/@syncfusion/ej2-image-editor",
31
29
  "/@syncfusion/ej2-inplace-editor",
32
- "/@syncfusion/ej2-interactive-chat",
33
30
  "/@syncfusion/ej2-kanban",
34
31
  "/@syncfusion/ej2-pdfviewer",
35
32
  "/@syncfusion/ej2-pivotview",
36
33
  "/@syncfusion/ej2-react-navigations",
37
- "/@syncfusion/ej2-ribbon",
38
34
  "/@syncfusion/ej2-richtexteditor",
39
35
  "/@syncfusion/ej2-schedule",
40
36
  "/@syncfusion/ej2-spreadsheet",
41
37
  "/@syncfusion/ej2-vue-navigations"
42
38
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.1.33.tgz",
44
- "_shasum": "12d9c190b00e66a4da177fff767f1d7e117474e9",
39
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.1.35.tgz",
40
+ "_shasum": "685ff5b2d985a4c45b82f43fbb9b78c8f0a8a289",
45
41
  "_spec": "@syncfusion/ej2-navigations@*",
46
42
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
47
43
  "author": {
@@ -53,10 +49,10 @@
53
49
  "bundleDependencies": false,
54
50
  "dependencies": {
55
51
  "@syncfusion/ej2-base": "~28.1.33",
56
- "@syncfusion/ej2-buttons": "~28.1.33",
52
+ "@syncfusion/ej2-buttons": "~28.1.37",
57
53
  "@syncfusion/ej2-data": "~28.1.33",
58
- "@syncfusion/ej2-inputs": "~28.1.33",
59
- "@syncfusion/ej2-lists": "~28.1.33",
54
+ "@syncfusion/ej2-inputs": "~28.1.37",
55
+ "@syncfusion/ej2-lists": "~28.1.37",
60
56
  "@syncfusion/ej2-popups": "~28.1.33"
61
57
  },
62
58
  "deprecated": false,
@@ -162,6 +158,6 @@
162
158
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
163
159
  },
164
160
  "typings": "index.d.ts",
165
- "version": "28.1.35",
161
+ "version": "28.1.37",
166
162
  "sideEffects": false
167
163
  }
@@ -1003,6 +1003,9 @@ var Carousel = /** @class */ (function (_super) {
1003
1003
  addClass([].slice.call(navigator.childNodes), CLS_HOVER_ARROWS);
1004
1004
  }
1005
1005
  removeClass([this.element], CLS_HOVER);
1006
+ if (this.isSwipe) {
1007
+ this.swipStop();
1008
+ }
1006
1009
  break;
1007
1010
  }
1008
1011
  this.autoSlide();
@@ -349,6 +349,7 @@ export declare abstract class MenuBase extends Component<HTMLUListElement> imple
349
349
  private wireKeyboardEvent;
350
350
  private mouseDownHandler;
351
351
  private keyHandler;
352
+ private domKeyHandler;
352
353
  private keyBoardHandler;
353
354
  private upDownKeyHandler;
354
355
  private isValidLI;
@@ -322,6 +322,7 @@ var MenuBase = /** @class */ (function (_super) {
322
322
  this.delegateMouseDownHandler = this.mouseDownHandler.bind(this);
323
323
  EventHandler.add(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler, this);
324
324
  EventHandler.add(document, 'mousedown', this.delegateMouseDownHandler, this);
325
+ EventHandler.add(document, 'keydown', this.domKeyHandler, this);
325
326
  if (!this.isMenu && !this.target) {
326
327
  EventHandler.add(document, 'scroll', this.scrollHandler, this);
327
328
  }
@@ -363,6 +364,12 @@ var MenuBase = /** @class */ (function (_super) {
363
364
  }
364
365
  }
365
366
  };
367
+ MenuBase.prototype.domKeyHandler = function (e) {
368
+ if (e.keyCode === 27) {
369
+ e.action = ESCAPE;
370
+ this.leftEscKeyHandler(e);
371
+ }
372
+ };
366
373
  MenuBase.prototype.keyBoardHandler = function (e) {
367
374
  var actionName = '';
368
375
  var trgt = e.target;
@@ -428,9 +435,6 @@ var MenuBase = /** @class */ (function (_super) {
428
435
  this.rightEnterKeyHandler(e);
429
436
  }
430
437
  break;
431
- case ESCAPE:
432
- this.leftEscKeyHandler(e);
433
- break;
434
438
  }
435
439
  if (actionNeeded) {
436
440
  e.action = actionName;
@@ -1008,6 +1012,7 @@ var MenuBase = /** @class */ (function (_super) {
1008
1012
  element: ul, items: items, parentItem: item, event: e, cancel: false, top: top, left: left, showSubMenuOn: 'Auto'
1009
1013
  };
1010
1014
  var menuType = type;
1015
+ var observedElement;
1011
1016
  this.trigger('beforeOpen', eventArgs, function (observedOpenArgs) {
1012
1017
  switch (menuType) {
1013
1018
  case 'menu':
@@ -1057,6 +1062,10 @@ var MenuBase = /** @class */ (function (_super) {
1057
1062
  _this.top = observedOpenArgs.top;
1058
1063
  _this.left = observedOpenArgs.left;
1059
1064
  _this.isContextMenuClosed = true;
1065
+ observedElement = observedOpenArgs.element;
1066
+ if (_this.enableScrolling && _this.isCMenu && observedElement && observedElement.parentElement) {
1067
+ observedElement.style.height = observedElement.parentElement.style.height;
1068
+ }
1060
1069
  break;
1061
1070
  case 'hamburger':
1062
1071
  if (!observedOpenArgs.cancel) {
@@ -1237,6 +1246,9 @@ var MenuBase = /** @class */ (function (_super) {
1237
1246
  }
1238
1247
  }
1239
1248
  this.toggleVisiblity(ul, false);
1249
+ if (this.isCMenu && this.enableScrolling && ul) {
1250
+ ul.style.height = '';
1251
+ }
1240
1252
  var wrapper = closest(this.element, '.e-' + this.getModuleName() + '-wrapper');
1241
1253
  if (!this.isMenu && this.enableScrolling && ul && wrapper && wrapper.offsetHeight > 0) {
1242
1254
  var menuVScroll = closest(ul, '.e-menu-vscroll');
@@ -1958,6 +1970,7 @@ var MenuBase = /** @class */ (function (_super) {
1958
1970
  if (!Browser.isDevice) {
1959
1971
  EventHandler.remove(this.isMenu ? document : wrapper, 'mouseover', this.delegateMoverHandler);
1960
1972
  EventHandler.remove(document, 'mousedown', this.delegateMouseDownHandler);
1973
+ EventHandler.remove(document, 'keydown', this.domKeyHandler);
1961
1974
  if (!this.isMenu && !this.target) {
1962
1975
  EventHandler.remove(document, 'scroll', this.scrollHandler);
1963
1976
  }
@@ -2125,7 +2138,9 @@ var MenuBase = /** @class */ (function (_super) {
2125
2138
  level = isCallBack ? level + 1 : 0;
2126
2139
  for (var i = 0, len = items.length; i < len; i++) {
2127
2140
  item = items[i];
2141
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2128
2142
  var currentField = isUniqueId ? item[this.getField('itemId', level)] : item[this.getField('text', level)];
2143
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2129
2144
  var itemId = (item.htmlAttributes && 'id' in item.htmlAttributes) ? item.htmlAttributes.id : currentField;
2130
2145
  if (itemId === data) {
2131
2146
  nIndex.push(i);
package/src/tab/tab.js CHANGED
@@ -2456,6 +2456,10 @@ var Tab = /** @class */ (function (_super) {
2456
2456
  * @returns {void}
2457
2457
  */
2458
2458
  Tab.prototype.refreshActiveTabBorder = function () {
2459
+ if (this.heightAdjustMode === 'None' && this.height !== 'auto' && this.cntEle && !this.isVertical()) {
2460
+ var hdrEle = this.getTabHeader();
2461
+ setStyle(this.cntEle, { 'height': (this.element.clientHeight - hdrEle.offsetHeight) + 'px' });
2462
+ }
2459
2463
  var activeEle = select('.' + CLS_TB_ITEM + '.' + CLS_TB_POPUP + '.' + CLS_ACTIVE, this.element);
2460
2464
  if (!isNOU(activeEle) && this.reorderActiveTab) {
2461
2465
  this.select(this.getEleIndex(activeEle));
@@ -3800,7 +3800,7 @@ var TreeView = /** @class */ (function (_super) {
3800
3800
  this.renderChildNodes(dropLi);
3801
3801
  }
3802
3802
  dropUl = select('.' + PARENTITEM, dropLi);
3803
- if (!isNOU(dropUl) && this.preventExpand === true) {
3803
+ if (!isNOU(dropUl) && (this.preventExpand && !(dropLi.getAttribute('aria-expanded') === 'true'))) {
3804
3804
  dropUl.style.display = 'none';
3805
3805
  }
3806
3806
  if (!isNOU(dropUl) && this.preventExpand === false) {
@@ -3848,7 +3848,7 @@ var TreeView = /** @class */ (function (_super) {
3848
3848
  this.trigger('nodeExpanded', this.getExpandEvent(dropLi, null));
3849
3849
  }
3850
3850
  var collapseIcon = select('div.' + COLLAPSIBLE, dropLi);
3851
- if (!isNOU(dropUl) && collapseIcon && this.preventExpand) {
3851
+ if (!isNOU(dropUl) && collapseIcon && (this.preventExpand && !(dropLi.getAttribute('aria-expanded') === 'true'))) {
3852
3852
  removeClass([collapseIcon], COLLAPSIBLE);
3853
3853
  dropLi.setAttribute('aria-expanded', 'false');
3854
3854
  addClass([collapseIcon], EXPANDABLE);