@syncfusion/ej2-treegrid 21.1.38 → 21.1.41

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.
@@ -1669,9 +1669,10 @@ var Render = /** @__PURE__ @class */ (function () {
1669
1669
  args.row.style.display = 'none';
1670
1670
  }
1671
1671
  }
1672
+ var dragStartData = 'dragStartData';
1672
1673
  var draggedRecord = 'draggedRecord';
1673
- if (!isNullOrUndefined(this.parent.rowDragAndDropModule) && !isNullOrUndefined(this.parent.rowDragAndDropModule["" + draggedRecord])
1674
- && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
1674
+ if (this.parent.rowDragAndDropModule && this.parent.grid.rowDragAndDropModule && (this.parent.grid.rowDragAndDropModule["" + dragStartData] ||
1675
+ this.parent.rowDragAndDropModule["" + draggedRecord]) && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
1675
1676
  var lastRowBorder = 'lastRowBorder';
1676
1677
  var lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
1677
1678
  if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {
@@ -4600,6 +4601,25 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4600
4601
  if (requestType === 'reorder') {
4601
4602
  _this.notify('getColumnIndex', {});
4602
4603
  }
4604
+ if (requestType === 'filterbeforeopen' && args.columnName && _this.filterSettings.hierarchyMode !== 'None') {
4605
+ for (var j = 0; j < _this.columns.length; j++) {
4606
+ var fields = 'field';
4607
+ if (_this.columns[parseInt(j.toString(), 10)]["" + fields] === args.columnName) {
4608
+ var taskFields = [];
4609
+ for (var i = 0; i < _this.grid.currentViewData.length; i++) {
4610
+ var fieldValue = _this.grid.currentViewData[parseInt(i.toString(), 10)][args.columnName];
4611
+ if (taskFields.indexOf(fieldValue) === -1) {
4612
+ taskFields.push(fieldValue);
4613
+ }
4614
+ }
4615
+ args['filterModel'].options.dataSource = taskFields.map(function (name) {
4616
+ var _a;
4617
+ return (_a = {}, _a[args.columnName] = name, _a);
4618
+ });
4619
+ args['filterModel'].options.filteredColumns = args['filterModel'].options.filteredColumns.filter(function (col) { return col.field === args.columnName; });
4620
+ }
4621
+ }
4622
+ }
4603
4623
  if (isRemoteData(_this) && _this.enableVirtualization) {
4604
4624
  if (args.requestType === 'virtualscroll') {
4605
4625
  _this.query.expand('VirtualScrollingAction');