@syncfusion/ej2-treegrid 26.1.35-469198 → 26.1.35-760834
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/dist/ej2-treegrid.min.js +1 -1
- package/dist/ej2-treegrid.umd.min.js +1 -1
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +156 -35
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +158 -35
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -1
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/ts/undefined +73 -602
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/package.json +1 -1
- package/src/index.d.ts +4 -0
- package/src/treegrid/actions/batch-edit.d.ts +73 -0
- package/src/treegrid/actions/clipboard.d.ts +36 -0
- package/src/treegrid/actions/column-chooser.d.ts +37 -0
- package/src/treegrid/actions/column-menu.d.ts +24 -0
- package/src/treegrid/actions/command-column.d.ts +24 -0
- package/src/treegrid/actions/context-menu.d.ts +42 -0
- package/src/treegrid/actions/crud-actions.d.ts +66 -0
- package/src/treegrid/actions/crud-actions.js +1 -1
- package/src/treegrid/actions/detail-row.d.ts +39 -0
- package/src/treegrid/actions/edit.d.ts +112 -0
- package/src/treegrid/actions/edit.js +3 -2
- package/src/treegrid/actions/excel-export.d.ts +59 -0
- package/src/treegrid/actions/excel-export.js +14 -3
- package/src/treegrid/actions/filter.d.ts +57 -0
- package/src/treegrid/actions/freeze-column.d.ts +28 -0
- package/src/treegrid/actions/index.d.ts +24 -0
- package/src/treegrid/actions/infinite-scroll.d.ts +96 -0
- package/src/treegrid/actions/logger.d.ts +25 -0
- package/src/treegrid/actions/page.d.ts +67 -0
- package/src/treegrid/actions/pdf-export.d.ts +55 -0
- package/src/treegrid/actions/print.d.ts +37 -0
- package/src/treegrid/actions/reorder.d.ts +36 -0
- package/src/treegrid/actions/resize.d.ts +36 -0
- package/src/treegrid/actions/rowdragdrop.d.ts +113 -0
- package/src/treegrid/actions/rowdragdrop.js +2 -2
- package/src/treegrid/actions/selection.d.ts +51 -0
- package/src/treegrid/actions/selection.js +9 -0
- package/src/treegrid/actions/sort.d.ts +63 -0
- package/src/treegrid/actions/summary.d.ts +47 -0
- package/src/treegrid/actions/toolbar.d.ts +52 -0
- package/src/treegrid/actions/virtual-scroll.d.ts +55 -0
- package/src/treegrid/actions/virtual-scroll.js +13 -1
- package/src/treegrid/base/constant.d.ts +162 -0
- package/src/treegrid/base/data.d.ts +90 -0
- package/src/treegrid/base/data.js +20 -3
- package/src/treegrid/base/index.d.ts +11 -0
- package/src/treegrid/base/interface.d.ts +182 -0
- package/src/treegrid/base/treegrid.d.ts +2190 -0
- package/src/treegrid/base/treegrid.js +86 -17
- package/src/treegrid/enum.d.ts +155 -0
- package/src/treegrid/index.d.ts +9 -0
- package/src/treegrid/models/column.d.ts +752 -0
- package/src/treegrid/models/edit-settings.d.ts +90 -0
- package/src/treegrid/models/filter-settings.d.ts +203 -0
- package/src/treegrid/models/index.d.ts +24 -0
- package/src/treegrid/models/infinite-scroll-settings.d.ts +25 -0
- package/src/treegrid/models/loading-indicator.d.ts +19 -0
- package/src/treegrid/models/page-settings.d.ts +60 -0
- package/src/treegrid/models/rowdrop-settings.d.ts +27 -0
- package/src/treegrid/models/search-settings.d.ts +71 -0
- package/src/treegrid/models/selection-settings.d.ts +79 -0
- package/src/treegrid/models/sort-settings.d.ts +40 -0
- package/src/treegrid/models/summary.d.ts +124 -0
- package/src/treegrid/models/textwrap-settings.d.ts +16 -0
- package/src/treegrid/renderer/index.d.ts +5 -0
- package/src/treegrid/renderer/render.d.ts +41 -0
- package/src/treegrid/renderer/virtual-row-model-generator.d.ts +16 -0
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +75 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +11 -6
- package/src/treegrid/utils.d.ts +70 -0
- package/styles/bootstrap5.3-lite.css +2 -1090
- package/styles/bootstrap5.3.css +3 -1091
- package/styles/fluent2-lite.css +8 -1129
- package/styles/fluent2.css +8 -1129
- package/styles/material3-dark-lite.css +10 -1098
- package/styles/material3-dark.css +10 -1098
- package/styles/material3-lite.css +10 -1098
- package/styles/material3.css +10 -1098
- package/styles/tailwind3-lite.css +77 -1213
- package/styles/tailwind3.css +84 -1220
- package/styles/treegrid/_bds-definition.scss +0 -25
- package/styles/treegrid/_bigger.scss +6 -6
- package/styles/treegrid/_bootstrap-dark-definition.scss +0 -25
- package/styles/treegrid/_bootstrap-definition.scss +0 -25
- package/styles/treegrid/_bootstrap4-definition.scss +0 -25
- package/styles/treegrid/_bootstrap5-definition.scss +0 -25
- package/styles/treegrid/_bootstrap5.3-definition.scss +0 -25
- package/styles/treegrid/_fabric-dark-definition.scss +0 -25
- package/styles/treegrid/_fabric-definition.scss +0 -25
- package/styles/treegrid/_fluent-definition.scss +0 -25
- package/styles/treegrid/_fluent2-definition.scss +0 -25
- package/styles/treegrid/_fusionnew-definition.scss +0 -25
- package/styles/treegrid/_highcontrast-definition.scss +0 -25
- package/styles/treegrid/_highcontrast-light-definition.scss +0 -25
- package/styles/treegrid/_layout.scss +29 -29
- package/styles/treegrid/_material-dark-definition.scss +0 -25
- package/styles/treegrid/_material-definition.scss +0 -25
- package/styles/treegrid/_material3-definition.scss +0 -25
- package/styles/treegrid/_tailwind-definition.scss +0 -25
- package/styles/treegrid/_tailwind3-definition.scss +17 -42
- package/styles/treegrid/bootstrap5.3.css +3 -1091
- package/styles/treegrid/fluent2.css +8 -1129
- package/styles/treegrid/material3-dark.css +10 -1098
- package/styles/treegrid/material3.css +10 -1098
- package/styles/treegrid/tailwind3.css +84 -1220
- package/treegrid.d.ts +4 -0
- package/treegrid.js +4 -0
|
@@ -449,8 +449,10 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
449
449
|
if (summaryElement !== null) {
|
|
450
450
|
var cellIndex_1 = target.cellIndex;
|
|
451
451
|
var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
if (!isNullOrUndefined(row_1) && !this.grid.isEdit) {
|
|
453
|
+
addClass([row_1], 'e-focused');
|
|
454
|
+
addClass([row_1], 'e-focus');
|
|
455
|
+
}
|
|
454
456
|
}
|
|
455
457
|
else {
|
|
456
458
|
this.clearSelection();
|
|
@@ -477,8 +479,10 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
477
479
|
var cellIndex_2 = target.cellIndex;
|
|
478
480
|
if (!isNullOrUndefined(cellIndex_2)) {
|
|
479
481
|
var row_2 = summaryElement.children[parseInt(cellIndex_2.toString(), 10)];
|
|
480
|
-
|
|
481
|
-
|
|
482
|
+
if (!isNullOrUndefined(row_2) && !this.grid.isEdit) {
|
|
483
|
+
addClass([row_2], 'e-focused');
|
|
484
|
+
addClass([row_2], 'e-focus');
|
|
485
|
+
}
|
|
482
486
|
}
|
|
483
487
|
}
|
|
484
488
|
else {
|
|
@@ -557,7 +561,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
557
561
|
TreeGrid.prototype.requiredModules = function () {
|
|
558
562
|
var modules = [];
|
|
559
563
|
var splitFrozenCount = 'splitFrozenCount';
|
|
560
|
-
this.
|
|
564
|
+
if (!this.isReact && isNullOrUndefined(this['changedProperties'].columns)) {
|
|
565
|
+
this.grid["" + splitFrozenCount](this.getColumns());
|
|
566
|
+
}
|
|
561
567
|
if (this.isDestroyed) {
|
|
562
568
|
return modules;
|
|
563
569
|
}
|
|
@@ -876,12 +882,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
876
882
|
if (this.treeColumnIndex >= this.columns.length) {
|
|
877
883
|
failureCases.push('TreeColumnIndex value should not exceed the total column count.');
|
|
878
884
|
}
|
|
879
|
-
if (this.enableVirtualization &&
|
|
880
|
-
|
|
881
|
-
|
|
885
|
+
if (this.enableVirtualization &&
|
|
886
|
+
(this.columnModel.some(function (col) { return /%$/.test(col.width); }) ||
|
|
887
|
+
/%$/.test(this.height.toString()))) {
|
|
882
888
|
failureCases.push('column width and height should be in pixels');
|
|
883
889
|
}
|
|
884
|
-
if (
|
|
890
|
+
if ((this.childMapping !== 'Children') && !isNullOrUndefined(this.idMapping)) {
|
|
885
891
|
failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
|
|
886
892
|
}
|
|
887
893
|
if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
|
|
@@ -1046,10 +1052,28 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1046
1052
|
var _this = this;
|
|
1047
1053
|
this.grid.rowSelecting = function (args) {
|
|
1048
1054
|
_this.IsExpandCollapseClicked(args);
|
|
1055
|
+
if (!isNullOrUndefined(args.data) && _this.selectionSettings.persistSelection
|
|
1056
|
+
&& _this.columnModel.filter(function (col) { return col.type === 'checkbox'; }).length > 0 && isRemoteData(_this)) {
|
|
1057
|
+
if (!isNullOrUndefined(args.data.parentItem) || args.isHeaderCheckboxClicked) {
|
|
1058
|
+
_this.parentQuery = _this.query.queries.filter(function (q) { return q.e.field === _this.parentIdMapping; });
|
|
1059
|
+
_this.query.queries = _this.query.queries.slice(0, 0);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
if (_this.pageSettings.pageSizeMode === 'Root') {
|
|
1063
|
+
_this.grid.selectionModule['totalRecordsCount'] = _this.grid.currentViewData.length;
|
|
1064
|
+
}
|
|
1065
|
+
if (_this.enableVirtualization && args.rowIndex === _this.selectedRowIndex) {
|
|
1066
|
+
args.cancel = true;
|
|
1067
|
+
}
|
|
1049
1068
|
_this.trigger(events.rowSelecting, args);
|
|
1050
1069
|
};
|
|
1051
1070
|
this.grid.rowDeselecting = function (args) {
|
|
1052
1071
|
_this.IsExpandCollapseClicked(args);
|
|
1072
|
+
if (!isNullOrUndefined(args.data) && _this.selectionSettings.persistSelection
|
|
1073
|
+
&& _this.columnModel.filter(function (col) { return col.type === 'checkbox'; }).length > 0 && isRemoteData(_this)) {
|
|
1074
|
+
_this.parentQuery = _this.query.queries.filter(function (q) { return q.e.field === _this.parentIdMapping; });
|
|
1075
|
+
_this.query.queries = _this.query.queries.slice(0, 0);
|
|
1076
|
+
}
|
|
1053
1077
|
_this.trigger(events.rowDeselecting, args);
|
|
1054
1078
|
};
|
|
1055
1079
|
this.grid.rowSelected = function (args) {
|
|
@@ -1190,6 +1214,16 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1190
1214
|
_this.grid.selectionModule["" + updateRowSelection](_this.getRows()[parseInt(index.toString(), 10)], index);
|
|
1191
1215
|
}
|
|
1192
1216
|
}
|
|
1217
|
+
if (_this.enableVirtualization && _this.selectionSettings.persistSelection
|
|
1218
|
+
&& !isNullOrUndefined(_this.virtualScrollModule.prevSelectedRecord)) {
|
|
1219
|
+
for (var i = 0; i < _this.virtualScrollModule.prevSelectedRecord.length; i++) {
|
|
1220
|
+
var updateRowSelection = 'updateRowSelection';
|
|
1221
|
+
var index =
|
|
1222
|
+
// eslint-disable-next-line max-len
|
|
1223
|
+
_this.getCurrentViewRecords().indexOf(_this.virtualScrollModule.prevSelectedRecord[parseInt(i.toString(), 10)]);
|
|
1224
|
+
_this.grid.selectionModule["" + updateRowSelection](_this.getRows()[parseInt(index.toString(), 10)], index);
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1193
1227
|
_this.trigger(events.dataBound, args);
|
|
1194
1228
|
_this.initialRender = false;
|
|
1195
1229
|
};
|
|
@@ -1802,6 +1836,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1802
1836
|
TreeGrid.prototype.onPropertyChanged = function (newProp) {
|
|
1803
1837
|
var properties = Object.keys(newProp);
|
|
1804
1838
|
var requireRefresh = false;
|
|
1839
|
+
if (properties.indexOf('columns') > -1 && !isNullOrUndefined(newProp.columns) && this.frozenColumns === 0
|
|
1840
|
+
&& this.frozenRows === 0 && !this.columnModel.some(function (col) { return col.isFrozen || col.freeze; })) {
|
|
1841
|
+
this.grid.columns = this.getGridColumns(newProp.columns);
|
|
1842
|
+
this.grid['updateColumnObject']();
|
|
1843
|
+
requireRefresh = true;
|
|
1844
|
+
}
|
|
1805
1845
|
for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
|
|
1806
1846
|
var prop = properties_1[_i];
|
|
1807
1847
|
switch (prop) {
|
|
@@ -2117,6 +2157,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2117
2157
|
}
|
|
2118
2158
|
};
|
|
2119
2159
|
TreeGrid.prototype.mouseClickHandler = function (e) {
|
|
2160
|
+
var _this = this;
|
|
2120
2161
|
if (!isNullOrUndefined(e.touches)) {
|
|
2121
2162
|
return;
|
|
2122
2163
|
}
|
|
@@ -2144,6 +2185,22 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2144
2185
|
}
|
|
2145
2186
|
}
|
|
2146
2187
|
}
|
|
2188
|
+
if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
|
|
2189
|
+
|| target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
|
|
2190
|
+
&& !isNullOrUndefined(this.filterModule) && this.isReact)) {
|
|
2191
|
+
if (!isNullOrUndefined(this.grid.filterModule['column'])) {
|
|
2192
|
+
if (this.grid.filterModule['column'].filterTemplate) {
|
|
2193
|
+
var elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
|
|
2194
|
+
this.grid.filterModule['fltrDlgDetails'].isOpen = false;
|
|
2195
|
+
if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
|
|
2196
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2197
|
+
this.clearTemplate(['filterTemplate'], undefined, function () {
|
|
2198
|
+
_this.grid.filterModule.filterModule['dlgObj'].destroy();
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2147
2204
|
};
|
|
2148
2205
|
/**
|
|
2149
2206
|
* Returns TreeGrid rows
|
|
@@ -2920,6 +2977,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2920
2977
|
*/
|
|
2921
2978
|
TreeGrid.prototype.expandRow = function (row, record, key, level) {
|
|
2922
2979
|
var _this = this;
|
|
2980
|
+
this.isCollapseAll = false;
|
|
2923
2981
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
2924
2982
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
2925
2983
|
this.trigger(events.actionFailure, { error: error });
|
|
@@ -2983,6 +3041,10 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2983
3041
|
expandArgs = { data: parentRec, row: row };
|
|
2984
3042
|
this.trigger(events.expanded, expandArgs);
|
|
2985
3043
|
}
|
|
3044
|
+
else if (!this.isExpandAll && this.enableVirtualization && this.selectionSettings.persistSelection
|
|
3045
|
+
&& !isNullOrUndefined(this.virtualScrollModule.prevSelectedRecord)) {
|
|
3046
|
+
this.virtualScrollModule.prevSelectedRecord = [];
|
|
3047
|
+
}
|
|
2986
3048
|
else if (!this.isExpandAll) {
|
|
2987
3049
|
this.trigger(events.expanded, expandArgs);
|
|
2988
3050
|
}
|
|
@@ -3008,13 +3070,13 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3008
3070
|
return e.hasChildRecords;
|
|
3009
3071
|
});
|
|
3010
3072
|
}
|
|
3011
|
-
else if (isNullOrUndefined(record)) {
|
|
3073
|
+
else if (isNullOrUndefined(record) && !isNullOrUndefined(row)) {
|
|
3012
3074
|
if (this.detailTemplate) {
|
|
3013
3075
|
record = this.grid.getCurrentViewRecords()[row.getAttribute('data-rowindex')];
|
|
3014
3076
|
}
|
|
3015
3077
|
else {
|
|
3016
|
-
if (this.enableVirtualization && this.isCollapseAll) {
|
|
3017
|
-
if (
|
|
3078
|
+
if (this.enableVirtualization && (this.isCollapseAll || this.isExpandAll)) {
|
|
3079
|
+
if (row.rowIndex === -1) {
|
|
3018
3080
|
record = this.grid.getCurrentViewRecords()[parseInt(row.getAttribute('data-rowindex'), 10)];
|
|
3019
3081
|
}
|
|
3020
3082
|
else {
|
|
@@ -3041,6 +3103,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3041
3103
|
*/
|
|
3042
3104
|
TreeGrid.prototype.collapseRow = function (row, record, key) {
|
|
3043
3105
|
var _this = this;
|
|
3106
|
+
this.isExpandAll = false;
|
|
3044
3107
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
3045
3108
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
3046
3109
|
this.trigger(events.actionFailure, { error: error });
|
|
@@ -3315,6 +3378,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3315
3378
|
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
3316
3379
|
});
|
|
3317
3380
|
}
|
|
3381
|
+
if (!rows.length && this.getRows().length) {
|
|
3382
|
+
rows.push(this.getRows()[0]);
|
|
3383
|
+
}
|
|
3318
3384
|
this.isExpandAll = true;
|
|
3319
3385
|
this.isCollapseAll = true;
|
|
3320
3386
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
|
|
@@ -3363,9 +3429,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3363
3429
|
TreeGrid.prototype.expandCollapse = function (action, row, record, isChild) {
|
|
3364
3430
|
var _this = this;
|
|
3365
3431
|
var expandingArgs = { row: row, data: record, childData: [], requestType: action };
|
|
3366
|
-
var childRecords
|
|
3367
|
-
|
|
3368
|
-
|
|
3432
|
+
var childRecords;
|
|
3433
|
+
if (!isNullOrUndefined(record)) {
|
|
3434
|
+
childRecords = this.grid.currentViewData.filter(function (e) {
|
|
3435
|
+
return e.parentUniqueID === record.uniqueID;
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3369
3438
|
var targetEle;
|
|
3370
3439
|
if ((!isRemoteData(this) && action === 'expand' && this.isSelfReference && isCountRequired(this) && !childRecords.length) || (action === 'collapse' || (this.isExpandAll && this.loadChildOnDemand) && !isRemoteData(this) && this.isSelfReference && isCountRequired(this))) {
|
|
3371
3440
|
this.updateChildOnDemand(expandingArgs);
|
|
@@ -3394,7 +3463,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3394
3463
|
var displayAction = void 0;
|
|
3395
3464
|
if (action === 'expand') {
|
|
3396
3465
|
displayAction = 'table-row';
|
|
3397
|
-
if (!isChild) {
|
|
3466
|
+
if (!isChild && !isNullOrUndefined(record)) {
|
|
3398
3467
|
record.expanded = true;
|
|
3399
3468
|
this.uniqueIDCollection[record.uniqueID].expanded = record.expanded;
|
|
3400
3469
|
}
|
|
@@ -3415,7 +3484,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3415
3484
|
}
|
|
3416
3485
|
else {
|
|
3417
3486
|
displayAction = 'none';
|
|
3418
|
-
if (!isChild || isCountRequired(this)) {
|
|
3487
|
+
if ((!isChild || isCountRequired(this)) && !isNullOrUndefined(row)) {
|
|
3419
3488
|
record.expanded = false;
|
|
3420
3489
|
this.uniqueIDCollection[record.uniqueID].expanded = record.expanded;
|
|
3421
3490
|
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines modes of Filter Hierarchy
|
|
3
|
+
* ```props
|
|
4
|
+
* * Parent :- Shows filtered records with its Parent records.
|
|
5
|
+
* * Child :- Shows filtered records with its Child records.
|
|
6
|
+
* * Both :- Shows filtered records with its Parent and Child records.
|
|
7
|
+
* * None :- Shows only the filetred records.
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare type FilterHierarchyMode = 'Parent' | 'Child' | 'Both' | 'None';
|
|
11
|
+
/**
|
|
12
|
+
* Defines Predefined toolbar items.
|
|
13
|
+
* ```props
|
|
14
|
+
* * Add :- Add new record.
|
|
15
|
+
* * Edit :- Edit the selected record.
|
|
16
|
+
* * Update :- Update the edited record.
|
|
17
|
+
* * Delete :- Delete the selected record.
|
|
18
|
+
* * Cancel :- Cancel the edited state.
|
|
19
|
+
* * Search :- Searches the TreeGrid records by given key.
|
|
20
|
+
* * ExpandAll :- Expands all the rows in TreeGrid.
|
|
21
|
+
* * CollapseAll :- Collapses all the rows in TreeGrid.
|
|
22
|
+
* * ExcelExport :- Export the TreeGrid to Excel.
|
|
23
|
+
* * PdfExport :- Export the TreeGrid to Pdf.
|
|
24
|
+
* * CsvExport :- Export the TreeGrid to Csv.
|
|
25
|
+
* * Print :- Print the TreeGrid.
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare type ToolbarItems = 'Add' | 'Delete' | 'Update' | 'Cancel' | 'Edit' | 'Search' | 'ExpandAll' | 'CollapseAll' | 'ExcelExport' | 'PdfExport' | 'CsvExport' | 'Print';
|
|
31
|
+
/**
|
|
32
|
+
* Defines Predefined toolbar items.
|
|
33
|
+
*
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
export declare enum ToolbarItem {
|
|
37
|
+
Add = 0,
|
|
38
|
+
Edit = 1,
|
|
39
|
+
Update = 2,
|
|
40
|
+
Delete = 3,
|
|
41
|
+
Cancel = 4,
|
|
42
|
+
Search = 5,
|
|
43
|
+
ExpandAll = 6,
|
|
44
|
+
CollapseAll = 7,
|
|
45
|
+
ExcelExport = 8,
|
|
46
|
+
PdfExport = 9,
|
|
47
|
+
CsvExport = 10,
|
|
48
|
+
Print = 11,
|
|
49
|
+
RowIndent = 12,
|
|
50
|
+
RowOutdent = 13
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Defines different PageSizeMode
|
|
54
|
+
* ```props
|
|
55
|
+
* * All :- Defines the pageSizeMode as All
|
|
56
|
+
* * Root :- Defines the pageSizeMode as Root
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare type PageSizeMode = 'All' | 'Root';
|
|
60
|
+
/**
|
|
61
|
+
* Defines predefined contextmenu items.
|
|
62
|
+
* ```props
|
|
63
|
+
* * AutoFitAll :- Auto fit the size of all columns.
|
|
64
|
+
* * AutoFit :- Auto fit the current column.
|
|
65
|
+
* * SortAscending :- Sort the current column in ascending order.
|
|
66
|
+
* * SortDescending :- Sort the current column in descending order.
|
|
67
|
+
* * Edit :- Edit the current record.
|
|
68
|
+
* * Delete :- Delete the current record.
|
|
69
|
+
* * Save :- Save the edited record.
|
|
70
|
+
* * Cancel :- Cancel the edited state.
|
|
71
|
+
* * PdfExport :- Export the TreeGrid as Pdf format.
|
|
72
|
+
* * ExcelExport :- Export the TreeGrid as Excel format.
|
|
73
|
+
* * CsvExport :- Export the TreeGrid as CSV format.
|
|
74
|
+
* * FirstPage :- Go to the first page.
|
|
75
|
+
* * PrevPage :- Go to the previous page.
|
|
76
|
+
* * LastPage :- Go to the last page.
|
|
77
|
+
* * NextPage :- Go to the next page.
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @hidden
|
|
81
|
+
*/
|
|
82
|
+
export declare type ContextMenuItem = 'AutoFitAll' | 'AutoFit' | 'SortAscending' | 'SortDescending' | 'Edit' | 'Delete' | 'Save' | 'Cancel' | 'PdfExport' | 'ExcelExport' | 'CsvExport' | 'FirstPage' | 'PrevPage' | 'LastPage' | 'NextPage' | 'AddRow' | 'Indent' | 'Outdent';
|
|
83
|
+
/**
|
|
84
|
+
* Defines predefined contextmenu items.
|
|
85
|
+
*
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
export declare enum ContextMenuItems {
|
|
89
|
+
AutoFit = 0,
|
|
90
|
+
AutoFitAll = 1,
|
|
91
|
+
SortAscending = 2,
|
|
92
|
+
SortDescending = 3,
|
|
93
|
+
Edit = 4,
|
|
94
|
+
Delete = 5,
|
|
95
|
+
Save = 6,
|
|
96
|
+
Cancel = 7,
|
|
97
|
+
PdfExport = 8,
|
|
98
|
+
ExcelExport = 9,
|
|
99
|
+
CsvExport = 10,
|
|
100
|
+
FirstPage = 11,
|
|
101
|
+
PrevPage = 12,
|
|
102
|
+
LastPage = 13,
|
|
103
|
+
NextPage = 14,
|
|
104
|
+
AddRow = 15,
|
|
105
|
+
RowIndent = 16,
|
|
106
|
+
RowOutdent = 17
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Defines modes of editing.
|
|
110
|
+
* ```props
|
|
111
|
+
* * Cell :- Defines the editing mode as Cell.
|
|
112
|
+
* * Row :- Defines the editing mode as Row.
|
|
113
|
+
* * Dialog :- Defines the editing mode as Dialog.
|
|
114
|
+
* * Batch :- Defines the editing mode as Batch.
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
export declare type EditMode = 'Cell' | 'Row' | 'Dialog' | 'Batch';
|
|
118
|
+
/**
|
|
119
|
+
* Defines the position where the new row has to be added.
|
|
120
|
+
* ```props
|
|
121
|
+
* * Top :- Defines new row position as top of all rows.
|
|
122
|
+
* * Bottom :- Defines new row position as bottom of all rows.
|
|
123
|
+
* * Above :- Defines new row position as above the selected row.
|
|
124
|
+
* * Below :- Defines new row position as below the selected row.
|
|
125
|
+
* * Child :- Defines new row position as child to the selected row.
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
export declare type RowPosition = 'Top' | 'Bottom' | 'Above' | 'Below' | 'Child';
|
|
129
|
+
/**
|
|
130
|
+
* Defines types of Filter
|
|
131
|
+
* ```props
|
|
132
|
+
* * Menu :- Defines the filter type as Menu.
|
|
133
|
+
* * Excel :- Defines the filter type as Excel.
|
|
134
|
+
* * FilterBar :- Defines the filter type as FilterBar.
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
export declare type FilterType = 'FilterBar' | 'Excel' | 'Menu';
|
|
138
|
+
/**
|
|
139
|
+
* Defines the wrap mode.
|
|
140
|
+
* ```props
|
|
141
|
+
* * Both :- Wraps both header and content.
|
|
142
|
+
* * Header :- Wraps header alone.
|
|
143
|
+
* * Content :- Wraps content alone.
|
|
144
|
+
*/
|
|
145
|
+
export declare type WrapMode = 'Both' | 'Header' | 'Content';
|
|
146
|
+
/**
|
|
147
|
+
* Defines types of CopyHierarchyMode. They are
|
|
148
|
+
* ```props
|
|
149
|
+
* * Parent :- Defines CopyHiearchyMode as Parent.
|
|
150
|
+
* * Child :- Defines CopyHiearchyMode as Child.
|
|
151
|
+
* * Both :- Defines CopyHiearchyMode as Both.
|
|
152
|
+
* * None :- Defines CopyHiearchyMode as None.
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
155
|
+
export declare type CopyHierarchyType = 'Parent' | 'Child' | 'Both' | 'None';
|