@syncfusion/ej2-treegrid 25.1.38 → 25.1.39
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.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/ej2-treegrid.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +8 -11
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +8 -11
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +10 -1
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +70 -70
- package/src/treegrid/base/treegrid-model.d.ts +32 -32
- package/src/treegrid/base/treegrid.d.ts +43 -43
- package/src/treegrid/base/treegrid.js +13 -13
- package/src/treegrid/renderer/render.js +2 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +2 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -7
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/treegrid/material3-dark.scss +1 -1
- package/styles/treegrid/material3.scss +1 -1
|
@@ -646,9 +646,9 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
646
646
|
enableColumnVirtualization: boolean;
|
|
647
647
|
/**
|
|
648
648
|
* Specifies whether to display or remove the untrusted HTML values in the TreeGrid component.
|
|
649
|
-
*
|
|
649
|
+
* If `enableHtmlSanitizer` is set to true, then it will sanitize any suspected untrusted strings and scripts before rendering them.
|
|
650
650
|
*
|
|
651
|
-
* @default
|
|
651
|
+
* @default false
|
|
652
652
|
*/
|
|
653
653
|
enableHtmlSanitizer: boolean;
|
|
654
654
|
/**
|
|
@@ -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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
905
905
|
*/
|
|
906
906
|
cellDeselected: EmitType<CellDeselectEventArgs>;
|
|
907
907
|
/**
|
|
908
908
|
* Triggers when column resize starts.
|
|
909
909
|
*
|
|
910
910
|
* @event resizeStart
|
|
911
|
-
|
|
911
|
+
|
|
912
912
|
*/
|
|
913
913
|
resizeStart: EmitType<ResizeArgs>;
|
|
914
914
|
/**
|
|
915
915
|
* Triggers on column resizing.
|
|
916
916
|
*
|
|
917
917
|
* @event resizing
|
|
918
|
-
|
|
918
|
+
|
|
919
919
|
*/
|
|
920
920
|
resizing: EmitType<ResizeArgs>;
|
|
921
921
|
/**
|
|
922
922
|
* Triggers when column resize ends.
|
|
923
923
|
*
|
|
924
924
|
* @event resizeStop
|
|
925
|
-
|
|
925
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
1000
1000
|
*/
|
|
1001
1001
|
beforeCopy: EmitType<BeforeCopyEventArgs>;
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Triggers before TreeGrid paste action.
|
|
1004
1004
|
*
|
|
1005
1005
|
* @event beforePaste
|
|
1006
|
-
|
|
1006
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
2062
2062
|
*/
|
|
2063
2063
|
getMovableColumnHeaderByIndex(index: number): Element;
|
|
2064
2064
|
/**
|
|
@@ -3561,7 +3561,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3561
3561
|
}
|
|
3562
3562
|
};
|
|
3563
3563
|
TreeGrid.prototype.collapseRemoteChild = function (rowDetails, isChild) {
|
|
3564
|
-
if (!isChild) {
|
|
3564
|
+
if (!isNullOrUndefined(isChild) && !isChild && !this.loadChildOnDemand) {
|
|
3565
3565
|
rowDetails.record.expanded = false;
|
|
3566
3566
|
}
|
|
3567
3567
|
var rows = rowDetails.rows;
|
|
@@ -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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
3895
3895
|
*/
|
|
3896
3896
|
TreeGrid.prototype.getMovableColumnHeaderByIndex = function (index) {
|
|
3897
3897
|
return this.grid.getColumnHeaderByIndex(index);
|
|
@@ -4228,7 +4228,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4228
4228
|
Property(false)
|
|
4229
4229
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
4230
4230
|
__decorate([
|
|
4231
|
-
Property(
|
|
4231
|
+
Property(false)
|
|
4232
4232
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
4233
4233
|
__decorate([
|
|
4234
4234
|
Property(false)
|
|
@@ -353,7 +353,8 @@ var Render = /** @class */ (function () {
|
|
|
353
353
|
var cellIndex = _this.parent.grid.getNormalizedColumnIndex(columnUid);
|
|
354
354
|
if (rows.length !== 0) {
|
|
355
355
|
for (var j = 0; j < rowsObj.length; j++) {
|
|
356
|
-
if (rowsObj[parseInt(j.toString(), 10)].isDataRow
|
|
356
|
+
if (rowsObj[parseInt(j.toString(), 10)].isDataRow
|
|
357
|
+
&& !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
|
|
357
358
|
var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
|
|
358
359
|
var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
|
|
359
360
|
var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
|
|
@@ -70,7 +70,8 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
|
|
|
70
70
|
var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
|
|
71
71
|
if (!isNullOrUndefined((this.visualData))) {
|
|
72
72
|
for (var r = 0; r < rows.length; r++) {
|
|
73
|
-
rows[parseInt(r.toString(), 10)].index =
|
|
73
|
+
rows[parseInt(r.toString(), 10)].index =
|
|
74
|
+
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
return rows;
|
|
@@ -426,13 +426,8 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
426
426
|
firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
|
|
427
427
|
}
|
|
428
428
|
if (firsttdinx === 0) {
|
|
429
|
-
scrollArgs.offset.top
|
|
430
|
-
|
|
431
|
-
this.translateY = scrollArgs.offset.top - rowHeight * 2;
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
this.translateY = scrollArgs.offset.top;
|
|
435
|
-
}
|
|
429
|
+
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
430
|
+
scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + 10 : 0;
|
|
436
431
|
}
|
|
437
432
|
else {
|
|
438
433
|
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
package/styles/material3.scss
CHANGED