@syncfusion/ej2-treegrid 21.1.35 → 21.1.38

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 : 21.1.35
3
+ * version : 21.1.38
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@20.10.6",
3
+ "_id": "@syncfusion/ej2-treegrid@21.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-LwZ8Bk/n3qJ/XPtP5s+q96/nhnVitf0eG8bFH4vsCs7NOwgWv4QZFvRxCjhmkcJ8dkHERj63RQtJ5/UxWx2hlQ==",
5
+ "_integrity": "sha512-KcFFYzCZtqS5yaixGRtSjaScyvmUZY/3fg3cPrBbHEDte8vAGk+qrGY1PNYS29TDZFeu5aIhYt95HNR/VGOO8Q==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.10.6.tgz",
28
- "_shasum": "434d8ed4a3b80e39087ce9dcccd315ad607091ad",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.1.37.tgz",
28
+ "_shasum": "d761d0f0b6ef1c633daafc06f62d46416a8ce26f",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~21.1.35",
40
- "@syncfusion/ej2-data": "~21.1.35",
41
- "@syncfusion/ej2-grids": "~21.1.35",
42
- "@syncfusion/ej2-popups": "~21.1.35"
39
+ "@syncfusion/ej2-base": "~21.1.38",
40
+ "@syncfusion/ej2-data": "~21.1.38",
41
+ "@syncfusion/ej2-grids": "~21.1.38",
42
+ "@syncfusion/ej2-popups": "~21.1.37"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "21.1.35",
69
+ "version": "21.1.38",
70
70
  "sideEffects": false
71
71
  }
@@ -996,13 +996,14 @@ var RowDD = /** @class */ (function () {
996
996
  var childRecords = rec[0].childRecords;
997
997
  var droppedRecordIndex = childRecords.indexOf(droppedRecord) + 1;
998
998
  childRecords.splice(droppedRecordIndex, 0, draggedRecord_2);
999
- draggedRecord_2.parentItem = droppedRecord.parentItem;
999
+ if (this_1.parent.enableImmutableMode || this_1.parent['isIndentEnabled'] && !this_1.parent.parentIdMapping) {
1000
+ draggedRecord_2.parentItem = droppedRecord.parentItem;
1001
+ draggedRecord_2.level = droppedRecord.level;
1002
+ }
1000
1003
  draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
1001
- draggedRecord_2.level = droppedRecord.level;
1002
1004
  if (this_1.parent.parentIdMapping) {
1003
1005
  draggedRecord_2[this_1.parent.parentIdMapping] = droppedRecord[this_1.parent.parentIdMapping];
1004
- draggedRecord_2.parentItem = droppedRecord.parentItem;
1005
- draggedRecord_2.level = droppedRecord.level;
1006
+ draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
1006
1007
  }
1007
1008
  }
1008
1009
  if (draggedRecord_2.hasChildRecords) {
@@ -248,7 +248,7 @@ export interface TreeGridModel extends ComponentModel{
248
248
 
249
249
  /**
250
250
  * Configures the TreeGrid aggregate rows.
251
- * > Check the [`Aggregates`](../../treegrid/aggregate/) for its configuration.
251
+ * > Check the [`Aggregates`](../../treegrid/aggregates/aggregates) for its configuration.
252
252
  *
253
253
  * @default []
254
254
  */
@@ -392,7 +392,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
392
392
  sortSettings: SortSettingsModel;
393
393
  /**
394
394
  * Configures the TreeGrid aggregate rows.
395
- * > Check the [`Aggregates`](../../treegrid/aggregate/) for its configuration.
395
+ * > Check the [`Aggregates`](../../treegrid/aggregates/aggregates) for its configuration.
396
396
  *
397
397
  * @default []
398
398
  */
@@ -764,7 +764,7 @@ var TreeGrid = /** @class */ (function (_super) {
764
764
  TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
765
765
  if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
766
766
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
767
- && (!isNullOrUndefined(args.data) && args.data['hasChildRecords'])) {
767
+ && (!isNullOrUndefined(args.data) && args.data['hasChildRecords']) && !this.selectionSettings.checkboxOnly) {
768
768
  args.cancel = true;
769
769
  return;
770
770
  }
@@ -975,6 +975,11 @@ var TreeGrid = /** @class */ (function (_super) {
975
975
  return callBackPromise;
976
976
  };
977
977
  this.grid.cellSelecting = function (args) {
978
+ var actualTarget = 'actualTarget';
979
+ var target = _this.grid.selectionModule["" + actualTarget];
980
+ if (!isNullOrUndefined(target) && (target.classList.contains('e-treegridexpand') || target.classList.contains('e-treegridcollapse'))) {
981
+ args.cancel = true;
982
+ }
978
983
  var callBackPromise = new Deferred();
979
984
  _this.trigger(getObject('name', args), args, function (cellselectingArgs) {
980
985
  callBackPromise.resolve(cellselectingArgs);
@@ -172,8 +172,8 @@ export declare class Column {
172
172
  /**
173
173
  * It is used to change display value with the given format and does not affect the original data.
174
174
  * Gets the format from the user which can be standard or custom
175
- * [`number`](../../../common/internationalization/#supported-format-string)
176
- * and [`date`](../../../common/internationalization/#supported-format-string-1) formats.
175
+ * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
176
+ * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
177
177
  *
178
178
  * @default null
179
179
  * @aspType string
@@ -473,8 +473,8 @@ export interface ColumnModel {
473
473
  /**
474
474
  * It is used to change display value with the given format and does not affect the original data.
475
475
  * Gets the format from the user which can be standard or custom
476
- * [`number`](../../../common/internationalization/#supported-format-string)
477
- * and [`date`](../../../common/internationalization/#supported-format-string-1) formats.
476
+ * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
477
+ * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
478
478
  *
479
479
  * @default null
480
480
  * @aspType string
@@ -526,7 +526,7 @@ export interface ColumnModel {
526
526
  commands?: CommandModel[];
527
527
  /**
528
528
  * Defines the column template that renders customized element in each cell of the column.
529
- * It accepts either [template string](../../../common/template-engine/) or HTML element ID.
529
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
530
530
  *
531
531
  * @default null
532
532
  */
@@ -50,7 +50,7 @@ export interface PageSettingsModel {
50
50
 
51
51
  /**
52
52
  * Defines the template which renders customized elements in pager of TreeGrid instead of default elements.
53
- * It accepts either [template string](../../../common/template-engine/) or HTML element ID.
53
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
54
54
  *
55
55
  * @default null
56
56
  */
@@ -43,7 +43,7 @@ export declare class PageSettings extends ChildProperty<PageSettings> {
43
43
  pageSizes: boolean | (number | string)[];
44
44
  /**
45
45
  * Defines the template which renders customized elements in pager of TreeGrid instead of default elements.
46
- * It accepts either [template string](../../../common/template-engine/) or HTML element ID.
46
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
47
47
  *
48
48
  * @default null
49
49
  */
@@ -44,8 +44,8 @@ export interface AggregateColumnModel {
44
44
  /**
45
45
  * Format is applied to a calculated value before it is displayed.
46
46
  * Gets the format from the user, which can be standard or custom
47
- * [`number`](../../../common/internationalization/#supported-format-string)
48
- * and [`date`](../../../common/internationalization/#supported-format-string-1) formats.
47
+ * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
48
+ * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
49
49
  *
50
50
  * @aspType string
51
51
  * @default null
@@ -44,8 +44,8 @@ export declare class AggregateColumn extends ChildProperty<AggregateColumn> {
44
44
  /**
45
45
  * Format is applied to a calculated value before it is displayed.
46
46
  * Gets the format from the user, which can be standard or custom
47
- * [`number`](../../../common/internationalization/#supported-format-string)
48
- * and [`date`](../../../common/internationalization/#supported-format-string-1) formats.
47
+ * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
48
+ * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
49
49
  *
50
50
  * @aspType string
51
51
  * @default null
@@ -40,6 +40,8 @@ var Render = /** @class */ (function () {
40
40
  !getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
41
41
  if (collapsed) {
42
42
  args.row.style.display = 'none';
43
+ var rowsObj = this.parent.grid.getRowsObject();
44
+ rowsObj.filter(function (e) { return e.uid === args.row.getAttribute('data-uid'); })[0].visible = false;
43
45
  }
44
46
  }
45
47
  if (isRemoteData(this.parent) && !isOffline(this.parent)) {
@@ -68,6 +70,15 @@ var Render = /** @class */ (function () {
68
70
  args.row.style.display = 'none';
69
71
  }
70
72
  }
73
+ var draggedRecord = 'draggedRecord';
74
+ if (!isNullOrUndefined(this.parent.rowDragAndDropModule) && !isNullOrUndefined(this.parent.rowDragAndDropModule["" + draggedRecord])
75
+ && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
76
+ var lastRowBorder = 'lastRowBorder';
77
+ var lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
78
+ if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {
79
+ this.parent["" + lastRowBorder](args.row, true);
80
+ }
81
+ }
71
82
  this.parent.trigger(events.rowDataBound, args);
72
83
  };
73
84
  /**