@syncfusion/ej2-treegrid 25.1.37 → 25.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.
@@ -656,14 +656,14 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
656
656
  * This helps to load large dataset in TreeGrid.
657
657
  *
658
658
  * @default false
659
-
659
+ * @deprecated
660
660
  */
661
661
  enableInfiniteScrolling: boolean;
662
662
  /**
663
663
  * Configures the infinite scroll settings.
664
664
  *
665
665
  * @default { enableCache: false, maxBlocks: 5, initialBlocks: 5 }
666
-
666
+ * @deprecated
667
667
  */
668
668
  infiniteScrollSettings: InfiniteScrollSettingsModel;
669
669
  /**
@@ -790,7 +790,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
790
790
  * Invoke the done method from the argument to start render after edit operation.
791
791
  *
792
792
  * @event dataSourceChanged
793
-
793
+ * @deprecated
794
794
  */
795
795
  dataSourceChanged: EmitType<DataSourceChangedEventArgs>;
796
796
  /**
@@ -798,7 +798,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
798
798
  * In this event,the current view data and total record count should be assigned to the `dataSource` based on the action performed.
799
799
  *
800
800
  * @event dataStateChange
801
-
801
+ * @deprecated
802
802
  */
803
803
  dataStateChange: EmitType<DataStateChangeEventArgs>;
804
804
  /**
@@ -850,7 +850,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
850
850
  * Triggers before deselecting the selected row.
851
851
  *
852
852
  * @event rowSelected
853
-
853
+ * @deprecated
854
854
  */
855
855
  rowDeselecting: EmitType<RowDeselectEventArgs>;
856
856
  /**
@@ -875,7 +875,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
875
875
  * Triggers before column menu opens.
876
876
  *
877
877
  * @event columnMenuOpen
878
-
878
+ * @deprecated
879
879
  */
880
880
  columnMenuOpen: EmitType<ColumnMenuOpenEventArgs>;
881
881
  /**
@@ -894,77 +894,77 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
894
894
  * Triggers before the selected cell is deselecting.
895
895
  *
896
896
  * @event cellDeselecting
897
-
897
+ * @deprecated
898
898
  */
899
899
  cellDeselecting: EmitType<CellDeselectEventArgs>;
900
900
  /**
901
901
  * Triggers when a particular selected cell is deselected.
902
902
  *
903
903
  * @event cellDeselected
904
-
904
+ * @deprecated
905
905
  */
906
906
  cellDeselected: EmitType<CellDeselectEventArgs>;
907
907
  /**
908
908
  * Triggers when column resize starts.
909
909
  *
910
910
  * @event resizeStart
911
-
911
+ * @deprecated
912
912
  */
913
913
  resizeStart: EmitType<ResizeArgs>;
914
914
  /**
915
915
  * Triggers on column resizing.
916
916
  *
917
917
  * @event resizing
918
-
918
+ * @deprecated
919
919
  */
920
920
  resizing: EmitType<ResizeArgs>;
921
921
  /**
922
922
  * Triggers when column resize ends.
923
923
  *
924
924
  * @event resizeStop
925
-
925
+ * @deprecated
926
926
  */
927
927
  resizeStop: EmitType<ResizeArgs>;
928
928
  /**
929
929
  * Triggers when column header element drag (move) starts.
930
930
  *
931
931
  * @event columnDragStart
932
-
932
+ * @deprecated
933
933
  */
934
934
  columnDragStart: EmitType<ColumnDragEventArgs>;
935
935
  /**
936
936
  * Triggers when column header element is dragged (moved) continuously.
937
937
  *
938
938
  * @event columnDrag
939
-
939
+ * @deprecated
940
940
  */
941
941
  columnDrag: EmitType<ColumnDragEventArgs>;
942
942
  /**
943
943
  * Triggers when a column header element is dropped on the target column.
944
944
  *
945
945
  * @event columnDrop
946
-
946
+ * @deprecated
947
947
  */
948
948
  columnDrop: EmitType<ColumnDragEventArgs>;
949
949
  /**
950
950
  * Triggers when the check box state change in checkbox column.
951
951
  *
952
952
  * @event checkboxChange
953
-
953
+ * @deprecated
954
954
  */
955
955
  checkboxChange: EmitType<CheckBoxChangeEventArgs>;
956
956
  /**
957
957
  * Triggers after print action is completed.
958
958
  *
959
959
  * @event printComplete
960
-
960
+ * @deprecated
961
961
  */
962
962
  printComplete: EmitType<PrintEventArgs>;
963
963
  /**
964
964
  * Triggers before the print action starts.
965
965
  *
966
966
  * @event beforePrint
967
-
967
+ * @deprecated
968
968
  */
969
969
  beforePrint: EmitType<PrintEventArgs>;
970
970
  /**
@@ -983,7 +983,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
983
983
  * Triggers before context menu opens.
984
984
  *
985
985
  * @event contextMenuOpen
986
-
986
+ * @deprecated
987
987
  */
988
988
  contextMenuOpen: EmitType<BeforeOpenCloseMenuEventArgs>;
989
989
  /**
@@ -996,42 +996,42 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
996
996
  * Triggers before TreeGrid copy action.
997
997
  *
998
998
  * @event beforeCopy
999
-
999
+ * @deprecated
1000
1000
  */
1001
1001
  beforeCopy: EmitType<BeforeCopyEventArgs>;
1002
1002
  /**
1003
1003
  * Triggers before TreeGrid paste action.
1004
1004
  *
1005
1005
  * @event beforePaste
1006
-
1006
+ * @deprecated
1007
1007
  */
1008
1008
  beforePaste: EmitType<BeforePasteEventArgs>;
1009
1009
  /**
1010
1010
  * Triggers when row elements are dragged (moved) continuously.
1011
1011
  *
1012
1012
  * @event rowDrag
1013
-
1013
+ * @deprecated
1014
1014
  */
1015
1015
  rowDrag: EmitType<RowDragEventArgs>;
1016
1016
  /**
1017
1017
  * Triggers when row element’s drag(move) starts.
1018
1018
  *
1019
1019
  * @event rowDragStart
1020
-
1020
+ * @deprecated
1021
1021
  */
1022
1022
  rowDragStart: EmitType<RowDragEventArgs>;
1023
1023
  /**
1024
1024
  * Triggers when row element’s before drag(move).
1025
1025
  *
1026
1026
  * @event rowDragStartHelper
1027
-
1027
+ * @deprecated
1028
1028
  */
1029
1029
  rowDragStartHelper: EmitType<RowDragEventArgs>;
1030
1030
  /**
1031
1031
  * Triggers when row elements are dropped on the target row.
1032
1032
  *
1033
1033
  * @event rowDrop
1034
-
1034
+ * @deprecated
1035
1035
  */
1036
1036
  rowDrop: EmitType<RowDragEventArgs>;
1037
1037
  /**
@@ -1068,7 +1068,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1068
1068
  * You can also customize the PDF cells.
1069
1069
  *
1070
1070
  * @event pdfQueryCellInfo
1071
-
1071
+ * @deprecated
1072
1072
  */
1073
1073
  pdfQueryCellInfo: EmitType<PdfQueryCellInfoEventArgs>;
1074
1074
  /**
@@ -1076,7 +1076,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1076
1076
  * You can also customize the PDF cells.
1077
1077
  *
1078
1078
  * @event pdfHeaderQueryCellInfo
1079
-
1079
+ * @deprecated
1080
1080
  */
1081
1081
  pdfHeaderQueryCellInfo: EmitType<PdfHeaderQueryCellInfoEventArgs>;
1082
1082
  /**
@@ -1084,7 +1084,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1084
1084
  * You can also customize the Excel cells.
1085
1085
  *
1086
1086
  * @event excelQueryCellInfo
1087
-
1087
+ * @deprecated
1088
1088
  */
1089
1089
  excelQueryCellInfo: EmitType<ExcelQueryCellInfoEventArgs>;
1090
1090
  /**
@@ -1092,7 +1092,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1092
1092
  * You can also customize the Excel cells.
1093
1093
  *
1094
1094
  * @event excelHeaderQueryCellInfo
1095
-
1095
+ * @deprecated
1096
1096
  */
1097
1097
  excelHeaderQueryCellInfo: EmitType<ExcelHeaderQueryCellInfoEventArgs>;
1098
1098
  /**
@@ -1105,7 +1105,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1105
1105
  * Triggers after TreeGrid data is exported to Excel file.
1106
1106
  *
1107
1107
  * @event excelExportComplete
1108
-
1108
+ * @deprecated
1109
1109
  */
1110
1110
  excelExportComplete: EmitType<ExcelExportCompleteArgs>;
1111
1111
  /**
@@ -1118,7 +1118,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1118
1118
  * Triggers after TreeGrid data is exported to PDF document.
1119
1119
  *
1120
1120
  * @event pdfExportComplete
1121
-
1121
+ * @deprecated
1122
1122
  */
1123
1123
  pdfExportComplete: EmitType<PdfExportCompleteArgs>;
1124
1124
  /**
@@ -1972,7 +1972,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1972
1972
  * @param {number} columnIndex - Specifies the column index.
1973
1973
  * @returns {Element} - Returns movable cell element from the indexes passed
1974
1974
  *
1975
-
1975
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
1976
1976
  */
1977
1977
  getMovableCellFromIndex(rowIndex: number, columnIndex: number): Element;
1978
1978
  /**
@@ -1980,7 +1980,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1980
1980
  *
1981
1981
  * @returns {Element[]} - Returns element collection of movable rows
1982
1982
  *
1983
-
1983
+ * @deprecated This method is deprecated. Use getDataRows method instead.
1984
1984
  */
1985
1985
  getMovableDataRows(): Element[];
1986
1986
  /**
@@ -1989,14 +1989,14 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1989
1989
  * @param {number} index - Specifies the row index.
1990
1990
  * @returns {Element} - Returns movable row based on index passed
1991
1991
  *
1992
-
1992
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
1993
1993
  */
1994
1994
  getMovableRowByIndex(index: number): Element;
1995
1995
  /**
1996
1996
  * Gets the TreeGrid's movable content rows from frozen treegrid.
1997
1997
  *
1998
1998
  * @returns {Element[]}: Returns movable row element
1999
-
1999
+ * @deprecated This method is deprecated. Use getRows method instead.
2000
2000
  */
2001
2001
  getMovableRows(): Element[];
2002
2002
  /**
@@ -2005,7 +2005,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2005
2005
  * @param {number} index - Specifies the row index.
2006
2006
  * @returns {Element} returns the element
2007
2007
  *
2008
-
2008
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
2009
2009
  */
2010
2010
  getFrozenRightRowByIndex(index: number): Element;
2011
2011
  /**
@@ -2013,7 +2013,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2013
2013
  *
2014
2014
  * @returns {Element[]} returns the element
2015
2015
  *
2016
-
2016
+ * @deprecated This method is deprecated. Use getRows method instead.
2017
2017
  */
2018
2018
  getFrozenRightRows(): Element[];
2019
2019
  /**
@@ -2021,7 +2021,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2021
2021
  *
2022
2022
  * @returns {Element[]} Returns the Element
2023
2023
  *
2024
-
2024
+ * @deprecated This method is deprecated. Use getDataRows method instead.
2025
2025
  */
2026
2026
  getFrozenRightDataRows(): Element[];
2027
2027
  /**
@@ -2031,7 +2031,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2031
2031
  * @param {number} columnIndex - Specifies the column index.
2032
2032
  * @returns {Element} Returns the Element
2033
2033
  *
2034
-
2034
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
2035
2035
  */
2036
2036
  getFrozenRightCellFromIndex(rowIndex: number, columnIndex: number): Element;
2037
2037
  /**
@@ -2040,7 +2040,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2040
2040
  * @param {number} index - Specifies the column index.
2041
2041
  * @returns {Element} Returns the Element
2042
2042
  *
2043
-
2043
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2044
2044
  */
2045
2045
  getFrozenLeftColumnHeaderByIndex(index: number): Element;
2046
2046
  /**
@@ -2049,7 +2049,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2049
2049
  * @param {number} index - Specifies the column index.
2050
2050
  * @returns {Element} Returns the Element
2051
2051
  *
2052
-
2052
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2053
2053
  */
2054
2054
  getFrozenRightColumnHeaderByIndex(index: number): Element;
2055
2055
  /**
@@ -2058,7 +2058,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
2058
2058
  * @param {number} index - Specifies the column index.
2059
2059
  * @returns {Element} Returns the Element
2060
2060
  *
2061
-
2061
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
2062
2062
  */
2063
2063
  getMovableColumnHeaderByIndex(index: number): Element;
2064
2064
  /**
@@ -3785,7 +3785,7 @@ var TreeGrid = /** @class */ (function (_super) {
3785
3785
  * @param {number} columnIndex - Specifies the column index.
3786
3786
  * @returns {Element} - Returns movable cell element from the indexes passed
3787
3787
  *
3788
-
3788
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
3789
3789
  */
3790
3790
  TreeGrid.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
3791
3791
  return this.grid.getCellFromIndex(rowIndex, columnIndex);
@@ -3795,7 +3795,7 @@ var TreeGrid = /** @class */ (function (_super) {
3795
3795
  *
3796
3796
  * @returns {Element[]} - Returns element collection of movable rows
3797
3797
  *
3798
-
3798
+ * @deprecated This method is deprecated. Use getDataRows method instead.
3799
3799
  */
3800
3800
  TreeGrid.prototype.getMovableDataRows = function () {
3801
3801
  return this.grid.getDataRows();
@@ -3806,7 +3806,7 @@ var TreeGrid = /** @class */ (function (_super) {
3806
3806
  * @param {number} index - Specifies the row index.
3807
3807
  * @returns {Element} - Returns movable row based on index passed
3808
3808
  *
3809
-
3809
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
3810
3810
  */
3811
3811
  TreeGrid.prototype.getMovableRowByIndex = function (index) {
3812
3812
  return this.grid.getRowByIndex(index);
@@ -3815,7 +3815,7 @@ var TreeGrid = /** @class */ (function (_super) {
3815
3815
  * Gets the TreeGrid's movable content rows from frozen treegrid.
3816
3816
  *
3817
3817
  * @returns {Element[]}: Returns movable row element
3818
-
3818
+ * @deprecated This method is deprecated. Use getRows method instead.
3819
3819
  */
3820
3820
  TreeGrid.prototype.getMovableRows = function () {
3821
3821
  return this.grid.getRows();
@@ -3826,7 +3826,7 @@ var TreeGrid = /** @class */ (function (_super) {
3826
3826
  * @param {number} index - Specifies the row index.
3827
3827
  * @returns {Element} returns the element
3828
3828
  *
3829
-
3829
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
3830
3830
  */
3831
3831
  TreeGrid.prototype.getFrozenRightRowByIndex = function (index) {
3832
3832
  return this.grid.getRowByIndex(index);
@@ -3836,7 +3836,7 @@ var TreeGrid = /** @class */ (function (_super) {
3836
3836
  *
3837
3837
  * @returns {Element[]} returns the element
3838
3838
  *
3839
-
3839
+ * @deprecated This method is deprecated. Use getRows method instead.
3840
3840
  */
3841
3841
  TreeGrid.prototype.getFrozenRightRows = function () {
3842
3842
  return this.grid.getRows();
@@ -3846,7 +3846,7 @@ var TreeGrid = /** @class */ (function (_super) {
3846
3846
  *
3847
3847
  * @returns {Element[]} Returns the Element
3848
3848
  *
3849
-
3849
+ * @deprecated This method is deprecated. Use getDataRows method instead.
3850
3850
  */
3851
3851
  TreeGrid.prototype.getFrozenRightDataRows = function () {
3852
3852
  return this.grid.getDataRows();
@@ -3858,7 +3858,7 @@ var TreeGrid = /** @class */ (function (_super) {
3858
3858
  * @param {number} columnIndex - Specifies the column index.
3859
3859
  * @returns {Element} Returns the Element
3860
3860
  *
3861
-
3861
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
3862
3862
  */
3863
3863
  TreeGrid.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
3864
3864
  return this.grid.getCellFromIndex(rowIndex, columnIndex);
@@ -3869,7 +3869,7 @@ var TreeGrid = /** @class */ (function (_super) {
3869
3869
  * @param {number} index - Specifies the column index.
3870
3870
  * @returns {Element} Returns the Element
3871
3871
  *
3872
-
3872
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
3873
3873
  */
3874
3874
  TreeGrid.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
3875
3875
  return this.grid.getColumnHeaderByIndex(index);
@@ -3880,7 +3880,7 @@ var TreeGrid = /** @class */ (function (_super) {
3880
3880
  * @param {number} index - Specifies the column index.
3881
3881
  * @returns {Element} Returns the Element
3882
3882
  *
3883
-
3883
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
3884
3884
  */
3885
3885
  TreeGrid.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
3886
3886
  return this.grid.getColumnHeaderByIndex(index);
@@ -3891,7 +3891,7 @@ var TreeGrid = /** @class */ (function (_super) {
3891
3891
  * @param {number} index - Specifies the column index.
3892
3892
  * @returns {Element} Returns the Element
3893
3893
  *
3894
-
3894
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
3895
3895
  */
3896
3896
  TreeGrid.prototype.getMovableColumnHeaderByIndex = function (index) {
3897
3897
  return this.grid.getColumnHeaderByIndex(index);
@@ -348,17 +348,20 @@ var Render = /** @class */ (function () {
348
348
  var cells = 'cells';
349
349
  var rowIdx = 'index';
350
350
  var rowsObj = _this.parent.grid.getRowsObject();
351
+ var rows = _this.parent.getDataRows();
351
352
  var indent = _this.parent.grid.getIndentCount();
352
353
  var cellIndex = _this.parent.grid.getNormalizedColumnIndex(columnUid);
353
- for (var j = 0; j < rowsObj.length; j++) {
354
- if (rowsObj[parseInt(j.toString(), 10)].isDataRow && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
355
- var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
356
- var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
357
- var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
358
- cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)]["" + rowIdx] });
359
- var treecell = _this.parent.getRows()[parseInt(j.toString(), 10)]
360
- .cells[parseInt(cellIndex.toString(), 10)];
361
- _this.cellRender({ data: rowsObj[parseInt(j.toString(), 10)].data, cell: treecell, column: cell.column });
354
+ if (rows.length !== 0) {
355
+ for (var j = 0; j < rowsObj.length; j++) {
356
+ if (rowsObj[parseInt(j.toString(), 10)].isDataRow && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
357
+ var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
358
+ var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
359
+ var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
360
+ cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)]["" + rowIdx] });
361
+ var treecell = _this.parent.getRows()[parseInt(j.toString(), 10)]
362
+ .cells[parseInt(cellIndex.toString(), 10)];
363
+ _this.cellRender({ data: rowsObj[parseInt(j.toString(), 10)].data, cell: treecell, column: cell.column });
364
+ }
362
365
  }
363
366
  }
364
367
  });
@@ -1,3 +1,3 @@
1
1
 
2
-
2
+ @import 'ej2-base/styles/definition/material3-dark.scss';
3
3
  @import 'treegrid/material3-dark.scss';
@@ -1,3 +1,3 @@
1
1
 
2
-
2
+ @import 'ej2-base/styles/definition/material3.scss';
3
3
  @import 'treegrid/material3.scss';
@@ -1,4 +1,4 @@
1
-
1
+ @import 'ej2-base/styles/definition/material3-dark.scss';
2
2
 
3
3
  @import 'ej2-inputs/styles/input/material3-dark-definition.scss';
4
4
  @import 'ej2-inputs/styles/numerictextbox/material3-dark-definition.scss';
@@ -1,4 +1,4 @@
1
-
1
+ @import 'ej2-base/styles/definition/material3.scss';
2
2
 
3
3
  @import 'ej2-inputs/styles/input/material3-definition.scss';
4
4
  @import 'ej2-inputs/styles/numerictextbox/material3-definition.scss';