@syncfusion/ej2-navigations 28.2.5 → 28.2.6

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.2.5
3
+ * version : 28.2.6
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.2.4",
3
+ "_id": "@syncfusion/ej2-navigations@28.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AKvTyY3in+EMengMf8P8Hj0m6AOjc32uFLUp9WhgKoKNzd/MzTTv6Y2Vjd9FC4ws1aJPRg45effz9nUquLlAcw==",
5
+ "_integrity": "sha512-J51xSgbW1l08g7Z1W35eUBLRvLuhZtHaWfcqaTP70I1WHp5rPGQTZ+x2mZ8bfJnzwUNY9ftYG4Dh3wYDzC8ijQ==",
6
6
  "_location": "/@syncfusion/ej2-navigations",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -40,8 +40,8 @@
40
40
  "/@syncfusion/ej2-spreadsheet",
41
41
  "/@syncfusion/ej2-vue-navigations"
42
42
  ],
43
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.2.4.tgz",
44
- "_shasum": "0da922773b22bbbd212ba4c68c35cfb4fe0c27ad",
43
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-navigations/-/ej2-navigations-28.2.5.tgz",
44
+ "_shasum": "0a02933dc258a7fc88bc18f1f15cc35fc845394d",
45
45
  "_spec": "@syncfusion/ej2-navigations@*",
46
46
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
47
47
  "author": {
@@ -53,11 +53,11 @@
53
53
  "bundleDependencies": false,
54
54
  "dependencies": {
55
55
  "@syncfusion/ej2-base": "~28.2.5",
56
- "@syncfusion/ej2-buttons": "~28.2.3",
56
+ "@syncfusion/ej2-buttons": "~28.2.6",
57
57
  "@syncfusion/ej2-data": "~28.2.3",
58
58
  "@syncfusion/ej2-inputs": "~28.2.3",
59
59
  "@syncfusion/ej2-lists": "~28.2.3",
60
- "@syncfusion/ej2-popups": "~28.2.3"
60
+ "@syncfusion/ej2-popups": "~28.2.6"
61
61
  },
62
62
  "deprecated": false,
63
63
  "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",
@@ -162,6 +162,6 @@
162
162
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
163
163
  },
164
164
  "typings": "index.d.ts",
165
- "version": "28.2.5",
165
+ "version": "28.2.6",
166
166
  "sideEffects": false
167
167
  }
@@ -403,6 +403,9 @@ var Carousel = /** @class */ (function (_super) {
403
403
  if (isClone) {
404
404
  itemEle.classList.add(CLS_CLONED);
405
405
  }
406
+ if (!(this.selectedIndex === index && !isClone)) {
407
+ itemEle.setAttribute('inert', 'true');
408
+ }
406
409
  if (!isNullOrUndefined(item.htmlAttributes)) {
407
410
  this.setHtmlAttributes(item.htmlAttributes, itemEle);
408
411
  }
@@ -683,7 +686,9 @@ var Carousel = /** @class */ (function (_super) {
683
686
  }
684
687
  _this.setProperties({ selectedIndex: currentIndex }, true);
685
688
  attributes(args.currentSlide, { 'aria-hidden': 'true' });
689
+ args.currentSlide.setAttribute('inert', 'true');
686
690
  attributes(args.nextSlide, { 'aria-hidden': 'false' });
691
+ args.nextSlide.removeAttribute('inert');
687
692
  _this.refreshIndicators(activeIndex, currentIndex);
688
693
  _this.slideChangedEventArgs = {
689
694
  currentIndex: args.nextIndex,
@@ -851,7 +851,10 @@ var Toolbar = /** @class */ (function (_super) {
851
851
  else if (scrollNav) {
852
852
  navEleWidth = this.isVertical ? (scrollNav.offsetHeight * (2)) : (scrollNav.offsetWidth * 2);
853
853
  }
854
- if (itemWidth > eleWidth - navEleWidth) {
854
+ if (eleWidth >= itemWidth && scrollNav) {
855
+ return false;
856
+ }
857
+ else if (itemWidth > eleWidth - navEleWidth) {
855
858
  return true;
856
859
  }
857
860
  else {
@@ -1064,16 +1064,27 @@ var TreeView = /** @class */ (function (_super) {
1064
1064
  };
1065
1065
  TreeView.prototype.getSelectedChildNodeDetails = function (dataUid) {
1066
1066
  var _this = this;
1067
+ var childKey = typeof this.fields.child === 'string' ? this.fields.child : null;
1068
+ var dataId = this.fields.id;
1069
+ var parentKey = this.fields.parentID;
1067
1070
  return this.checkedNodes
1068
1071
  .map(function (checkedNodeId) {
1069
1072
  return new DataManager(_this.DDTTreeData)
1070
1073
  .executeLocal(new Query().where('id', 'equal', checkedNodeId, true))[0];
1071
1074
  })
1072
1075
  .filter(function (childNode) {
1073
- if (childNode && typeof childNode === 'object' && 'pid' in childNode) {
1074
- var childNodePid = childNode.pid;
1075
- if (!isNOU(childNodePid)) {
1076
- return childNodePid.toString() === dataUid;
1076
+ if (childNode && typeof childNode === 'object' && (parentKey in childNode || childKey in childNode)) {
1077
+ if (!isNOU(childKey) && childKey in childNode && Array.isArray(childNode[childKey])) {
1078
+ var matchNode = childNode[dataId];
1079
+ if (!isNOU(matchNode)) {
1080
+ return matchNode.toString() === dataUid;
1081
+ }
1082
+ }
1083
+ else {
1084
+ var childNodePid = childNode[parentKey];
1085
+ if (!isNOU(childNodePid)) {
1086
+ return childNodePid.toString() === dataUid;
1087
+ }
1077
1088
  }
1078
1089
  }
1079
1090
  return false;
@@ -1203,14 +1214,18 @@ var TreeView = /** @class */ (function (_super) {
1203
1214
  var checkBoxes = selectAll('.' + CHECKBOXWRAP, this.element);
1204
1215
  if (this.loadOnDemand) {
1205
1216
  for (var index = 0; index < checkBoxes.length; index++) {
1217
+ var liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
1206
1218
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
1207
1219
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck', null, null, null, doCheck);
1220
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
1208
1221
  }
1209
1222
  }
1210
1223
  else {
1211
1224
  for (var index = 0; index < checkBoxes.length; index++) {
1225
+ var liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
1212
1226
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
1213
1227
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck');
1228
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
1214
1229
  }
1215
1230
  }
1216
1231
  }