@syncfusion/ej2-treegrid 32.1.22-1533505 → 32.1.22

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,3 +1,12 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 32.1.22
4
+ * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  import * as _treegrid from '@syncfusion/ej2-treegrid';
2
11
 
3
12
  export declare namespace ej {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-treegrid",
3
- "version": "32.1.22-1533505",
3
+ "version": "32.1.22",
4
4
  "description": "Essential JS 2 TreeGrid Component",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -121,7 +121,7 @@ export interface TreeGridModel extends ComponentModel{
121
121
  dataSource?: Object | DataManager;
122
122
 
123
123
  /**
124
- * Defines the external [Query](https://ej2.syncfusion.com/documentation/api/data/query)
124
+ * Defines the external [Query](https://ej2.syncfusion.com/documentation/data/api-query.html)
125
125
  * that will be executed along with data processing.
126
126
  *
127
127
  * @default null
@@ -299,7 +299,7 @@ export interface TreeGridModel extends ComponentModel{
299
299
  /**
300
300
  * The detail template allows you to show or hide additional information about a particular row.
301
301
  *
302
- * > It accepts either the [template string](../../common/template/)
302
+ * > It accepts either the [template string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
303
303
  * or the HTML element ID.
304
304
  *
305
305
  * @aspType string
@@ -403,7 +403,7 @@ export interface TreeGridModel extends ComponentModel{
403
403
  /**
404
404
  * The row template that renders customized rows from the given template.
405
405
  * By default, TreeGrid renders a table row for every data source item.
406
- * > * It accepts either [template string](../../common/template/)
406
+ * > * It accepts either [template string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
407
407
  * or HTML element ID.
408
408
  * > * The row template must be a table row.
409
409
  *
@@ -497,7 +497,7 @@ export interface TreeGridModel extends ComponentModel{
497
497
  /**
498
498
  * The empty record template that renders customized element or text or image instead of displaying the empty record message in the TreeGrid.
499
499
  *
500
- * > It accepts either the [template string](../../common/template/) or the HTML element ID.
500
+ * > It accepts either the [template string](../../common/template-engine/) or the HTML element ID.
501
501
  *
502
502
  * @default null
503
503
  * @aspType string
@@ -804,7 +804,7 @@ export interface TreeGridModel extends ComponentModel{
804
804
  * Invoke the done method from the argument to start rendering after an edit operation.
805
805
  *
806
806
  * @event dataSourceChanged
807
- * @deprecated
807
+
808
808
  */
809
809
  dataSourceChanged?: EmitType<DataSourceChangedEventArgs>;
810
810
 
@@ -813,7 +813,7 @@ export interface TreeGridModel extends ComponentModel{
813
813
  * The current view data and total record count should be assigned to the dataSource based on the action performed.
814
814
  *
815
815
  * @event dataStateChange
816
- * @deprecated
816
+
817
817
  */
818
818
  dataStateChange?: EmitType<DataStateChangeEventArgs>;
819
819
 
@@ -865,7 +865,7 @@ export interface TreeGridModel extends ComponentModel{
865
865
  * Triggers before the selected row is deselected.
866
866
  *
867
867
  * @event rowDeselecting
868
- * @deprecated
868
+
869
869
  */
870
870
  rowDeselecting?: EmitType<RowDeselectEventArgs>;
871
871
 
@@ -894,7 +894,7 @@ export interface TreeGridModel extends ComponentModel{
894
894
  * Triggers before the column menu opens.
895
895
  *
896
896
  * @event columnMenuOpen
897
- * @deprecated
897
+
898
898
  */
899
899
  columnMenuOpen?: EmitType<ColumnMenuOpenEventArgs>;
900
900
 
@@ -916,7 +916,7 @@ export interface TreeGridModel extends ComponentModel{
916
916
  * Triggers before a selected cell is deselected.
917
917
  *
918
918
  * @event cellDeselecting
919
- * @deprecated
919
+
920
920
  */
921
921
  cellDeselecting?: EmitType<CellDeselectEventArgs>;
922
922
 
@@ -924,7 +924,7 @@ export interface TreeGridModel extends ComponentModel{
924
924
  * Triggers when a selected cell is deselected.
925
925
  *
926
926
  * @event cellDeselected
927
- * @deprecated
927
+
928
928
  */
929
929
  cellDeselected?: EmitType<CellDeselectEventArgs>;
930
930
 
@@ -932,7 +932,7 @@ export interface TreeGridModel extends ComponentModel{
932
932
  * Triggers when column resizing starts.
933
933
  *
934
934
  * @event resizeStart
935
- * @deprecated
935
+
936
936
  */
937
937
  resizeStart?: EmitType<ResizeArgs>;
938
938
 
@@ -304,7 +304,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
304
304
  */
305
305
  dataSource: Object | DataManager;
306
306
  /**
307
- * Defines the external [Query](https://ej2.syncfusion.com/documentation/api/data/query)
307
+ * Defines the external [Query](https://ej2.syncfusion.com/documentation/data/api-query.html)
308
308
  * that will be executed along with data processing.
309
309
  *
310
310
  * @default null
@@ -459,7 +459,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
459
459
  /**
460
460
  * The detail template allows you to show or hide additional information about a particular row.
461
461
  *
462
- * > It accepts either the [template string](../../common/template/)
462
+ * > It accepts either the [template string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
463
463
  * or the HTML element ID.
464
464
  *
465
465
  * @aspType string
@@ -555,7 +555,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
555
555
  /**
556
556
  * The row template that renders customized rows from the given template.
557
557
  * By default, TreeGrid renders a table row for every data source item.
558
- * > * It accepts either [template string](../../common/template/)
558
+ * > * It accepts either [template string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals)
559
559
  * or HTML element ID.
560
560
  * > * The row template must be a table row.
561
561
  *
@@ -639,7 +639,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
639
639
  /**
640
640
  * The empty record template that renders customized element or text or image instead of displaying the empty record message in the TreeGrid.
641
641
  *
642
- * > It accepts either the [template string](../../common/template/) or the HTML element ID.
642
+ * > It accepts either the [template string](../../common/template-engine/) or the HTML element ID.
643
643
  *
644
644
  * @default null
645
645
  * @aspType string
@@ -907,7 +907,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
907
907
  * Invoke the done method from the argument to start rendering after an edit operation.
908
908
  *
909
909
  * @event dataSourceChanged
910
- * @deprecated
910
+
911
911
  */
912
912
  dataSourceChanged: EmitType<DataSourceChangedEventArgs>;
913
913
  /**
@@ -915,7 +915,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
915
915
  * The current view data and total record count should be assigned to the dataSource based on the action performed.
916
916
  *
917
917
  * @event dataStateChange
918
- * @deprecated
918
+
919
919
  */
920
920
  dataStateChange: EmitType<DataStateChangeEventArgs>;
921
921
  /**
@@ -960,7 +960,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
960
960
  * Triggers before the selected row is deselected.
961
961
  *
962
962
  * @event rowDeselecting
963
- * @deprecated
963
+
964
964
  */
965
965
  rowDeselecting: EmitType<RowDeselectEventArgs>;
966
966
  /**
@@ -985,7 +985,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
985
985
  * Triggers before the column menu opens.
986
986
  *
987
987
  * @event columnMenuOpen
988
- * @deprecated
988
+
989
989
  */
990
990
  columnMenuOpen: EmitType<ColumnMenuOpenEventArgs>;
991
991
  /**
@@ -1004,21 +1004,21 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1004
1004
  * Triggers before a selected cell is deselected.
1005
1005
  *
1006
1006
  * @event cellDeselecting
1007
- * @deprecated
1007
+
1008
1008
  */
1009
1009
  cellDeselecting: EmitType<CellDeselectEventArgs>;
1010
1010
  /**
1011
1011
  * Triggers when a selected cell is deselected.
1012
1012
  *
1013
1013
  * @event cellDeselected
1014
- * @deprecated
1014
+
1015
1015
  */
1016
1016
  cellDeselected: EmitType<CellDeselectEventArgs>;
1017
1017
  /**
1018
1018
  * Triggers when column resizing starts.
1019
1019
  *
1020
1020
  * @event resizeStart
1021
- * @deprecated
1021
+
1022
1022
  */
1023
1023
  resizeStart: EmitType<ResizeArgs>;
1024
1024
  /**
@@ -2247,7 +2247,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2247
2247
  * @param {number} columnIndex - Specifies the column index.
2248
2248
  * @returns {Element} - Returns movable cell element from the indexes passed
2249
2249
  *
2250
- * @deprecated This method is deprecated. Use getCellFromIndex method instead.
2250
+
2251
2251
  */
2252
2252
  getMovableCellFromIndex(rowIndex: number, columnIndex: number): Element;
2253
2253
  /**
@@ -2255,7 +2255,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2255
2255
  *
2256
2256
  * @returns {Element[]} - Returns element collection of movable rows
2257
2257
  *
2258
- * @deprecated This method is deprecated. Use getDataRows method instead.
2258
+
2259
2259
  */
2260
2260
  getMovableDataRows(): Element[];
2261
2261
  /**
@@ -2264,14 +2264,14 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2264
2264
  * @param {number} index - Specifies the row index.
2265
2265
  * @returns {Element} - Returns movable row based on index passed
2266
2266
  *
2267
- * @deprecated This method is deprecated. Use getRowByIndex method instead.
2267
+
2268
2268
  */
2269
2269
  getMovableRowByIndex(index: number): Element;
2270
2270
  /**
2271
2271
  * Gets the TreeGrid's movable content rows from frozen treegrid.
2272
2272
  *
2273
2273
  * @returns {Element[]}: Returns movable row element
2274
- * @deprecated This method is deprecated. Use getRows method instead.
2274
+
2275
2275
  */
2276
2276
  getMovableRows(): Element[];
2277
2277
  /**
@@ -2280,7 +2280,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2280
2280
  * @param {number} index - Specifies the row index.
2281
2281
  * @returns {Element} returns the element
2282
2282
  *
2283
- * @deprecated This method is deprecated. Use getRowByIndex method instead.
2283
+
2284
2284
  */
2285
2285
  getFrozenRightRowByIndex(index: number): Element;
2286
2286
  /**
@@ -2288,7 +2288,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2288
2288
  *
2289
2289
  * @returns {Element[]} returns the element
2290
2290
  *
2291
- * @deprecated This method is deprecated. Use getRows method instead.
2291
+
2292
2292
  */
2293
2293
  getFrozenRightRows(): Element[];
2294
2294
  /**
@@ -2296,7 +2296,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2296
2296
  *
2297
2297
  * @returns {Element[]} Returns the Element
2298
2298
  *
2299
- * @deprecated This method is deprecated. Use getDataRows method instead.
2299
+
2300
2300
  */
2301
2301
  getFrozenRightDataRows(): Element[];
2302
2302
  /**
@@ -2306,7 +2306,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2306
2306
  * @param {number} columnIndex - Specifies the column index.
2307
2307
  * @returns {Element} Returns the Element
2308
2308
  *
2309
- * @deprecated This method is deprecated. Use getCellFromIndex method instead.
2309
+
2310
2310
  */
2311
2311
  getFrozenRightCellFromIndex(rowIndex: number, columnIndex: number): Element;
2312
2312
  /**
@@ -2315,7 +2315,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2315
2315
  * @param {number} index - Specifies the column index.
2316
2316
  * @returns {Element} Returns the Element
2317
2317
  *
2318
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2318
+
2319
2319
  */
2320
2320
  getFrozenLeftColumnHeaderByIndex(index: number): Element;
2321
2321
  /**
@@ -2324,7 +2324,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2324
2324
  * @param {number} index - Specifies the column index.
2325
2325
  * @returns {Element} Returns the Element
2326
2326
  *
2327
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2327
+
2328
2328
  */
2329
2329
  getFrozenRightColumnHeaderByIndex(index: number): Element;
2330
2330
  /**
@@ -2333,7 +2333,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2333
2333
  * @param {number} index - Specifies the column index.
2334
2334
  * @returns {Element} Returns the Element
2335
2335
  *
2336
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2336
+
2337
2337
  */
2338
2338
  getMovableColumnHeaderByIndex(index: number): Element;
2339
2339
  /**
@@ -878,18 +878,12 @@ var TreeGrid = /** @class */ (function (_super) {
878
878
  this.renderComplete();
879
879
  var destroyTemplate = 'destroyTemplate';
880
880
  var destroyTemplateFn = this.grid["" + destroyTemplate];
881
- var isGantt = this['isFromGantt'] && this.isReact;
882
881
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
883
882
  this.grid["" + destroyTemplate] = function (args, index, callback) {
884
883
  destroyTemplateFn.apply(_this.grid);
885
884
  var portals = 'portals';
886
885
  if (!(_this.isReact && isNullOrUndefined(_this["" + portals]))) {
887
- if (isGantt) {
888
- _this['root'].clearTemplate(args, index, callback);
889
- }
890
- else {
891
- _this.clearTemplate(args, index, callback);
892
- }
886
+ _this.clearTemplate(args, index, callback);
893
887
  }
894
888
  else if (!isNullOrUndefined(callback)) {
895
889
  callback();
@@ -2596,7 +2590,6 @@ var TreeGrid = /** @class */ (function (_super) {
2596
2590
  var table = this.getContentTable();
2597
2591
  var sHeight = table.scrollHeight;
2598
2592
  var clientHeight = this.getContent().clientHeight;
2599
- removeClass(table.querySelectorAll('td.e-lastrowcell'), 'e-lastrowcell');
2600
2593
  this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
2601
2594
  }
2602
2595
  };
@@ -4392,7 +4385,7 @@ var TreeGrid = /** @class */ (function (_super) {
4392
4385
  * @param {number} columnIndex - Specifies the column index.
4393
4386
  * @returns {Element} - Returns movable cell element from the indexes passed
4394
4387
  *
4395
- * @deprecated This method is deprecated. Use getCellFromIndex method instead.
4388
+
4396
4389
  */
4397
4390
  TreeGrid.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
4398
4391
  return this.grid.getCellFromIndex(rowIndex, columnIndex);
@@ -4402,7 +4395,7 @@ var TreeGrid = /** @class */ (function (_super) {
4402
4395
  *
4403
4396
  * @returns {Element[]} - Returns element collection of movable rows
4404
4397
  *
4405
- * @deprecated This method is deprecated. Use getDataRows method instead.
4398
+
4406
4399
  */
4407
4400
  TreeGrid.prototype.getMovableDataRows = function () {
4408
4401
  return this.grid.getDataRows();
@@ -4413,7 +4406,7 @@ var TreeGrid = /** @class */ (function (_super) {
4413
4406
  * @param {number} index - Specifies the row index.
4414
4407
  * @returns {Element} - Returns movable row based on index passed
4415
4408
  *
4416
- * @deprecated This method is deprecated. Use getRowByIndex method instead.
4409
+
4417
4410
  */
4418
4411
  TreeGrid.prototype.getMovableRowByIndex = function (index) {
4419
4412
  return this.grid.getRowByIndex(index);
@@ -4422,7 +4415,7 @@ var TreeGrid = /** @class */ (function (_super) {
4422
4415
  * Gets the TreeGrid's movable content rows from frozen treegrid.
4423
4416
  *
4424
4417
  * @returns {Element[]}: Returns movable row element
4425
- * @deprecated This method is deprecated. Use getRows method instead.
4418
+
4426
4419
  */
4427
4420
  TreeGrid.prototype.getMovableRows = function () {
4428
4421
  return this.grid.getRows();
@@ -4433,7 +4426,7 @@ var TreeGrid = /** @class */ (function (_super) {
4433
4426
  * @param {number} index - Specifies the row index.
4434
4427
  * @returns {Element} returns the element
4435
4428
  *
4436
- * @deprecated This method is deprecated. Use getRowByIndex method instead.
4429
+
4437
4430
  */
4438
4431
  TreeGrid.prototype.getFrozenRightRowByIndex = function (index) {
4439
4432
  return this.grid.getRowByIndex(index);
@@ -4443,7 +4436,7 @@ var TreeGrid = /** @class */ (function (_super) {
4443
4436
  *
4444
4437
  * @returns {Element[]} returns the element
4445
4438
  *
4446
- * @deprecated This method is deprecated. Use getRows method instead.
4439
+
4447
4440
  */
4448
4441
  TreeGrid.prototype.getFrozenRightRows = function () {
4449
4442
  return this.grid.getRows();
@@ -4453,7 +4446,7 @@ var TreeGrid = /** @class */ (function (_super) {
4453
4446
  *
4454
4447
  * @returns {Element[]} Returns the Element
4455
4448
  *
4456
- * @deprecated This method is deprecated. Use getDataRows method instead.
4449
+
4457
4450
  */
4458
4451
  TreeGrid.prototype.getFrozenRightDataRows = function () {
4459
4452
  return this.grid.getDataRows();
@@ -4465,7 +4458,7 @@ var TreeGrid = /** @class */ (function (_super) {
4465
4458
  * @param {number} columnIndex - Specifies the column index.
4466
4459
  * @returns {Element} Returns the Element
4467
4460
  *
4468
- * @deprecated This method is deprecated. Use getCellFromIndex method instead.
4461
+
4469
4462
  */
4470
4463
  TreeGrid.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
4471
4464
  return this.grid.getCellFromIndex(rowIndex, columnIndex);
@@ -4476,7 +4469,7 @@ var TreeGrid = /** @class */ (function (_super) {
4476
4469
  * @param {number} index - Specifies the column index.
4477
4470
  * @returns {Element} Returns the Element
4478
4471
  *
4479
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
4472
+
4480
4473
  */
4481
4474
  TreeGrid.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
4482
4475
  return this.grid.getColumnHeaderByIndex(index);
@@ -4487,7 +4480,7 @@ var TreeGrid = /** @class */ (function (_super) {
4487
4480
  * @param {number} index - Specifies the column index.
4488
4481
  * @returns {Element} Returns the Element
4489
4482
  *
4490
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
4483
+
4491
4484
  */
4492
4485
  TreeGrid.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
4493
4486
  return this.grid.getColumnHeaderByIndex(index);
@@ -4498,7 +4491,7 @@ var TreeGrid = /** @class */ (function (_super) {
4498
4491
  * @param {number} index - Specifies the column index.
4499
4492
  * @returns {Element} Returns the Element
4500
4493
  *
4501
- * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
4494
+
4502
4495
  */
4503
4496
  TreeGrid.prototype.getMovableColumnHeaderByIndex = function (index) {
4504
4497
  return this.grid.getColumnHeaderByIndex(index);