@syncfusion/ej2-treegrid 24.1.44 → 24.1.45

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.
@@ -5617,7 +5617,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5617
5617
  showTooltip = true;
5618
5618
  }
5619
5619
  var element = parentsUntil(e.target, 'e-ellipsistooltip');
5620
- if ((showTooltip || (this.treeColumnIndex != -1 && cols[this.treeColumnIndex].clipMode === 'EllipsisWithTooltip')) && element != null && parseInt(element.getAttribute("data-colindex"), 10) == this.treeColumnIndex && element.children[0].scrollWidth > element.children[0].clientWidth) {
5620
+ if ((showTooltip || (this.treeColumnIndex !== -1 && cols[this.treeColumnIndex].clipMode === 'EllipsisWithTooltip')) && element !== null && parseInt(element.getAttribute('data-colindex'), 10) === this.treeColumnIndex && element.children[0].scrollWidth > element.children[0].clientWidth) {
5621
5621
  var tooltip = new Tooltip({
5622
5622
  content: element.textContent
5623
5623
  });
@@ -11084,7 +11084,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11084
11084
  var selectedrow = tObj.getSelectedRows()[0];
11085
11085
  if ((indent || outdent) && !isNullOrUndefined(selectedrow)) {
11086
11086
  var targetElement = args.event.target.closest('td');
11087
- if (isNullOrUndefined(targetElement) || (!isNullOrUndefined(targetElement) && !targetElement.classList.contains('e-rowcell'))) {
11087
+ if (isNullOrUndefined(targetElement) || (!isNullOrUndefined(targetElement) && (!targetElement.classList.contains('e-rowcell') || targetElement.querySelectorAll('.e-gridform').length !== 0))) {
11088
11088
  indent.style.display = outdent.style.display = 'none';
11089
11089
  }
11090
11090
  else {
@@ -11094,19 +11094,16 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11094
11094
  else if (args['name'] !== 'rowDeselected' || (!isNullOrUndefined(selectedrow) && tObj.grid.isCheckBoxSelection)) {
11095
11095
  var selectedItem = tObj.getCurrentViewRecords()[selectedrow.rowIndex];
11096
11096
  if (!isNullOrUndefined(selectedItem)) {
11097
- if ((selectedItem.level > tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level) || this.parent.editSettings.mode === 'Batch'
11098
- || this.parent.editSettings.mode === 'Cell') {
11097
+ if ((selectedItem.level > tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level)) {
11099
11098
  indent.style.display = 'none';
11100
11099
  }
11101
11100
  else {
11102
11101
  indent.style.display = 'block';
11103
11102
  }
11104
- if ((selectedItem.level === tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level) && this.parent.editSettings.mode !== 'Batch'
11105
- && this.parent.editSettings.mode !== 'Cell') {
11103
+ if ((selectedItem.level === tObj.getCurrentViewRecords()[selectedrow.rowIndex - 1].level)) {
11106
11104
  indent.style.display = 'block';
11107
11105
  }
11108
- if ((selectedItem.level === 0) || this.parent.editSettings.mode === 'Batch'
11109
- || this.parent.editSettings.mode === 'Cell') {
11106
+ if ((selectedItem.level === 0)) {
11110
11107
  outdent.style.display = 'none';
11111
11108
  }
11112
11109
  else {