@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.
@@ -4249,7 +4249,10 @@ let Toolbar = class Toolbar extends Component {
4249
4249
  else if (scrollNav) {
4250
4250
  navEleWidth = this.isVertical ? (scrollNav.offsetHeight * (2)) : (scrollNav.offsetWidth * 2);
4251
4251
  }
4252
- if (itemWidth > eleWidth - navEleWidth) {
4252
+ if (eleWidth >= itemWidth && scrollNav) {
4253
+ return false;
4254
+ }
4255
+ else if (itemWidth > eleWidth - navEleWidth) {
4253
4256
  return true;
4254
4257
  }
4255
4258
  else {
@@ -11037,16 +11040,27 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11037
11040
  }
11038
11041
  }
11039
11042
  getSelectedChildNodeDetails(dataUid) {
11043
+ const childKey = typeof this.fields.child === 'string' ? this.fields.child : null;
11044
+ const dataId = this.fields.id;
11045
+ const parentKey = this.fields.parentID;
11040
11046
  return this.checkedNodes
11041
11047
  .map((checkedNodeId) => {
11042
11048
  return new DataManager(this.DDTTreeData)
11043
11049
  .executeLocal(new Query().where('id', 'equal', checkedNodeId, true))[0];
11044
11050
  })
11045
11051
  .filter((childNode) => {
11046
- if (childNode && typeof childNode === 'object' && 'pid' in childNode) {
11047
- const childNodePid = childNode.pid;
11048
- if (!isNullOrUndefined(childNodePid)) {
11049
- return childNodePid.toString() === dataUid;
11052
+ if (childNode && typeof childNode === 'object' && (parentKey in childNode || childKey in childNode)) {
11053
+ if (!isNullOrUndefined(childKey) && childKey in childNode && Array.isArray(childNode[childKey])) {
11054
+ const matchNode = childNode[dataId];
11055
+ if (!isNullOrUndefined(matchNode)) {
11056
+ return matchNode.toString() === dataUid;
11057
+ }
11058
+ }
11059
+ else {
11060
+ const childNodePid = childNode[parentKey];
11061
+ if (!isNullOrUndefined(childNodePid)) {
11062
+ return childNodePid.toString() === dataUid;
11063
+ }
11050
11064
  }
11051
11065
  }
11052
11066
  return false;
@@ -11175,14 +11189,18 @@ let TreeView = TreeView_1 = class TreeView extends Component {
11175
11189
  const checkBoxes = selectAll('.' + CHECKBOXWRAP, this.element);
11176
11190
  if (this.loadOnDemand) {
11177
11191
  for (let index = 0; index < checkBoxes.length; index++) {
11192
+ const liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
11178
11193
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
11179
11194
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck', null, null, null, doCheck);
11195
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
11180
11196
  }
11181
11197
  }
11182
11198
  else {
11183
11199
  for (let index = 0; index < checkBoxes.length; index++) {
11200
+ const liEle = closest(checkBoxes[parseInt(index.toString(), 10)], '.' + LISTITEM);
11184
11201
  this.updateFieldChecked(checkBoxes[parseInt(index.toString(), 10)], doCheck);
11185
11202
  this.changeState(checkBoxes[parseInt(index.toString(), 10)], doCheck ? 'check' : 'uncheck');
11203
+ this.updateOldCheckedData([this.getNodeData(liEle)]);
11186
11204
  }
11187
11205
  }
11188
11206
  }
@@ -17581,6 +17599,9 @@ let Carousel = class Carousel extends Component {
17581
17599
  if (isClone) {
17582
17600
  itemEle.classList.add(CLS_CLONED);
17583
17601
  }
17602
+ if (!(this.selectedIndex === index && !isClone)) {
17603
+ itemEle.setAttribute('inert', 'true');
17604
+ }
17584
17605
  if (!isNullOrUndefined(item.htmlAttributes)) {
17585
17606
  this.setHtmlAttributes(item.htmlAttributes, itemEle);
17586
17607
  }
@@ -17856,7 +17877,9 @@ let Carousel = class Carousel extends Component {
17856
17877
  }
17857
17878
  this.setProperties({ selectedIndex: currentIndex }, true);
17858
17879
  attributes(args.currentSlide, { 'aria-hidden': 'true' });
17880
+ args.currentSlide.setAttribute('inert', 'true');
17859
17881
  attributes(args.nextSlide, { 'aria-hidden': 'false' });
17882
+ args.nextSlide.removeAttribute('inert');
17860
17883
  this.refreshIndicators(activeIndex, currentIndex);
17861
17884
  this.slideChangedEventArgs = {
17862
17885
  currentIndex: args.nextIndex,