@syncfusion/ej2-treegrid 30.2.4 → 31.1.17
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 +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +263 -157
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +291 -167
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/dist/ts/index.d.ts +4 -0
- package/dist/ts/index.ts +4 -0
- package/dist/ts/treegrid/actions/batch-edit.d.ts +74 -0
- package/dist/ts/treegrid/actions/batch-edit.ts +627 -0
- package/dist/ts/treegrid/actions/clipboard.d.ts +36 -0
- package/dist/ts/treegrid/actions/clipboard.ts +174 -0
- package/dist/ts/treegrid/actions/column-chooser.d.ts +37 -0
- package/dist/ts/treegrid/actions/column-chooser.ts +55 -0
- package/dist/ts/treegrid/actions/column-menu.d.ts +24 -0
- package/dist/ts/treegrid/actions/column-menu.ts +39 -0
- package/dist/ts/treegrid/actions/command-column.d.ts +24 -0
- package/dist/ts/treegrid/actions/command-column.ts +32 -0
- package/dist/ts/treegrid/actions/context-menu.d.ts +42 -0
- package/dist/ts/treegrid/actions/context-menu.ts +149 -0
- package/dist/ts/treegrid/actions/crud-actions.d.ts +66 -0
- package/dist/ts/treegrid/actions/crud-actions.ts +388 -0
- package/dist/ts/treegrid/actions/detail-row.d.ts +39 -0
- package/dist/ts/treegrid/actions/detail-row.ts +124 -0
- package/dist/ts/treegrid/actions/edit.d.ts +121 -0
- package/dist/ts/treegrid/actions/edit.ts +1083 -0
- package/dist/ts/treegrid/actions/excel-export.d.ts +67 -0
- package/dist/ts/treegrid/actions/excel-export.ts +240 -0
- package/dist/ts/treegrid/actions/filter.d.ts +57 -0
- package/dist/ts/treegrid/actions/filter.ts +231 -0
- package/dist/ts/treegrid/actions/freeze-column.d.ts +28 -0
- package/dist/ts/treegrid/actions/freeze-column.ts +119 -0
- package/dist/ts/treegrid/actions/index.d.ts +24 -0
- package/dist/ts/treegrid/actions/index.ts +24 -0
- package/dist/ts/treegrid/actions/infinite-scroll.d.ts +96 -0
- package/dist/ts/treegrid/actions/infinite-scroll.ts +320 -0
- package/dist/ts/treegrid/actions/logger.d.ts +25 -0
- package/dist/ts/treegrid/actions/logger.ts +136 -0
- package/dist/ts/treegrid/actions/page.d.ts +67 -0
- package/dist/ts/treegrid/actions/page.ts +212 -0
- package/dist/ts/treegrid/actions/pdf-export.d.ts +63 -0
- package/dist/ts/treegrid/actions/pdf-export.ts +182 -0
- package/dist/ts/treegrid/actions/print.d.ts +37 -0
- package/dist/ts/treegrid/actions/print.ts +69 -0
- package/dist/ts/treegrid/actions/reorder.d.ts +36 -0
- package/dist/ts/treegrid/actions/reorder.ts +60 -0
- package/dist/ts/treegrid/actions/resize.d.ts +36 -0
- package/dist/ts/treegrid/actions/resize.ts +54 -0
- package/dist/ts/treegrid/actions/rowdragdrop.d.ts +405 -0
- package/dist/ts/treegrid/actions/rowdragdrop.ts +1896 -0
- package/dist/ts/treegrid/actions/selection.d.ts +51 -0
- package/dist/ts/treegrid/actions/selection.ts +530 -0
- package/dist/ts/treegrid/actions/sort.d.ts +63 -0
- package/dist/ts/treegrid/actions/sort.ts +149 -0
- package/dist/ts/treegrid/actions/summary.d.ts +47 -0
- package/dist/ts/treegrid/actions/summary.ts +231 -0
- package/dist/ts/treegrid/actions/toolbar.d.ts +52 -0
- package/dist/ts/treegrid/actions/toolbar.ts +154 -0
- package/dist/ts/treegrid/actions/virtual-scroll.d.ts +90 -0
- package/dist/ts/treegrid/actions/virtual-scroll.ts +306 -0
- package/dist/ts/treegrid/base/constant.d.ts +158 -0
- package/dist/ts/treegrid/base/constant.ts +158 -0
- package/dist/ts/treegrid/base/data.d.ts +90 -0
- package/dist/ts/treegrid/base/data.ts +904 -0
- package/dist/ts/treegrid/base/index.d.ts +11 -0
- package/dist/ts/treegrid/base/index.ts +11 -0
- package/dist/ts/treegrid/base/interface.d.ts +186 -0
- package/dist/ts/treegrid/base/interface.ts +191 -0
- package/dist/ts/treegrid/base/treegrid-model.d.ts +1100 -0
- package/dist/ts/treegrid/base/treegrid.d.ts +2422 -0
- package/dist/ts/treegrid/base/treegrid.ts +5962 -0
- package/dist/ts/treegrid/enum.d.ts +152 -0
- package/dist/ts/treegrid/enum.ts +217 -0
- package/dist/ts/treegrid/index.d.ts +9 -0
- package/dist/ts/treegrid/index.ts +9 -0
- package/dist/ts/treegrid/models/column-chooser-settings-model.d.ts +62 -0
- package/dist/ts/treegrid/models/column-chooser-settings.d.ts +53 -0
- package/dist/ts/treegrid/models/column-chooser-settings.ts +67 -0
- package/dist/ts/treegrid/models/column-model.d.ts +30 -0
- package/dist/ts/treegrid/models/column.d.ts +697 -0
- package/dist/ts/treegrid/models/column.ts +800 -0
- package/dist/ts/treegrid/models/edit-settings-model.d.ts +100 -0
- package/dist/ts/treegrid/models/edit-settings.d.ts +89 -0
- package/dist/ts/treegrid/models/edit-settings.ts +111 -0
- package/dist/ts/treegrid/models/filter-settings-model.d.ts +216 -0
- package/dist/ts/treegrid/models/filter-settings.d.ts +195 -0
- package/dist/ts/treegrid/models/filter-settings.ts +237 -0
- package/dist/ts/treegrid/models/index.d.ts +24 -0
- package/dist/ts/treegrid/models/index.ts +24 -0
- package/dist/ts/treegrid/models/infinite-scroll-settings-model.d.ts +29 -0
- package/dist/ts/treegrid/models/infinite-scroll-settings.d.ts +25 -0
- package/dist/ts/treegrid/models/infinite-scroll-settings.ts +31 -0
- package/dist/ts/treegrid/models/loading-indicator-model.d.ts +21 -0
- package/dist/ts/treegrid/models/loading-indicator.d.ts +19 -0
- package/dist/ts/treegrid/models/loading-indicator.ts +21 -0
- package/dist/ts/treegrid/models/page-settings-model.d.ts +66 -0
- package/dist/ts/treegrid/models/page-settings.d.ts +57 -0
- package/dist/ts/treegrid/models/page-settings.ts +73 -0
- package/dist/ts/treegrid/models/rowdrop-settings-model.d.ts +15 -0
- package/dist/ts/treegrid/models/rowdrop-settings.d.ts +34 -0
- package/dist/ts/treegrid/models/rowdrop-settings.ts +37 -0
- package/dist/ts/treegrid/models/search-settings-model.d.ts +79 -0
- package/dist/ts/treegrid/models/search-settings.d.ts +73 -0
- package/dist/ts/treegrid/models/search-settings.ts +83 -0
- package/dist/ts/treegrid/models/selection-settings-model.d.ts +76 -0
- package/dist/ts/treegrid/models/selection-settings.d.ts +68 -0
- package/dist/ts/treegrid/models/selection-settings.ts +82 -0
- package/dist/ts/treegrid/models/sort-settings-model.d.ts +49 -0
- package/dist/ts/treegrid/models/sort-settings.d.ts +43 -0
- package/dist/ts/treegrid/models/sort-settings.ts +51 -0
- package/dist/ts/treegrid/models/summary-model.d.ts +93 -0
- package/dist/ts/treegrid/models/summary.d.ts +126 -0
- package/dist/ts/treegrid/models/summary.ts +170 -0
- package/dist/ts/treegrid/models/textwrap-settings-model.d.ts +21 -0
- package/dist/ts/treegrid/models/textwrap-settings.d.ts +19 -0
- package/dist/ts/treegrid/models/textwrap-settings.ts +21 -0
- package/dist/ts/treegrid/renderer/index.d.ts +5 -0
- package/dist/ts/treegrid/renderer/index.ts +5 -0
- package/dist/ts/treegrid/renderer/render.d.ts +41 -0
- package/dist/ts/treegrid/renderer/render.ts +379 -0
- package/dist/ts/treegrid/renderer/virtual-row-model-generator.d.ts +16 -0
- package/dist/ts/treegrid/renderer/virtual-row-model-generator.ts +90 -0
- package/dist/ts/treegrid/renderer/virtual-tree-content-render.d.ts +353 -0
- package/dist/ts/treegrid/renderer/virtual-tree-content-render.ts +1125 -0
- package/dist/ts/treegrid/utils.d.ts +70 -0
- package/dist/ts/treegrid/utils.ts +217 -0
- package/package.json +51 -15
- package/src/treegrid/actions/context-menu.js +3 -1
- package/src/treegrid/actions/excel-export.d.ts +8 -0
- package/src/treegrid/actions/excel-export.js +12 -0
- package/src/treegrid/actions/freeze-column.js +1 -1
- package/src/treegrid/actions/pdf-export.d.ts +8 -0
- package/src/treegrid/actions/pdf-export.js +12 -0
- package/src/treegrid/actions/selection.js +1 -1
- package/src/treegrid/actions/virtual-scroll.js +2 -2
- package/src/treegrid/base/data.js +1 -1
- package/src/treegrid/base/treegrid-model.d.ts +32 -2
- package/src/treegrid/base/treegrid.d.ts +29 -2
- package/src/treegrid/base/treegrid.js +39 -2
- package/src/treegrid/models/column-chooser-settings-model.d.ts +62 -0
- package/src/treegrid/models/column-chooser-settings.d.ts +53 -0
- package/src/treegrid/models/column-chooser-settings.js +52 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +3 -8
- package/src/treegrid/utils.js +22 -6
|
@@ -31,7 +31,7 @@ import { SelectionSettingsModel } from '../models/selection-settings-model';
|
|
|
31
31
|
import { SortDirection, ColumnDragEventArgs } from '@syncfusion/ej2-grids';
|
|
32
32
|
import { PrintMode, Data, ContextMenuItemModel } from '@syncfusion/ej2-grids';
|
|
33
33
|
import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';
|
|
34
|
-
import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';
|
|
34
|
+
import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs, AggregateQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';
|
|
35
35
|
import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';
|
|
36
36
|
import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';
|
|
37
37
|
import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';
|
|
@@ -59,6 +59,7 @@ import { EditSettingsModel } from '../models/edit-settings-model';
|
|
|
59
59
|
import { Edit } from '../actions/edit';
|
|
60
60
|
import { SortSettingsModel } from '../models/sort-settings-model';
|
|
61
61
|
import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';
|
|
62
|
+
import { ColumnChooserSettingsModel } from '../models/column-chooser-settings-model';
|
|
62
63
|
/**
|
|
63
64
|
* Represents the TreeGrid component.
|
|
64
65
|
* ```html
|
|
@@ -380,7 +381,6 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
380
381
|
*/
|
|
381
382
|
private currencyCode;
|
|
382
383
|
/**
|
|
383
|
-
* @hidden
|
|
384
384
|
* It used to render pager template
|
|
385
385
|
* @default null
|
|
386
386
|
* @aspType string
|
|
@@ -400,6 +400,12 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
400
400
|
* @default false
|
|
401
401
|
*/
|
|
402
402
|
showColumnChooser: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Configures the column chooser in the Grid.
|
|
405
|
+
*
|
|
406
|
+
* @default { columnChooserOperator: 'startsWith' }
|
|
407
|
+
*/
|
|
408
|
+
columnChooserSettings: ColumnChooserSettingsModel;
|
|
403
409
|
/**
|
|
404
410
|
* If `allowSorting` is set to true, it allows sorting of treegrid records when column header is clicked.
|
|
405
411
|
*
|
|
@@ -621,6 +627,15 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
621
627
|
* @default false
|
|
622
628
|
*/
|
|
623
629
|
enableStickyHeader: boolean;
|
|
630
|
+
/**
|
|
631
|
+
* The empty record template that renders customized element or text or image instead of displaying the empty record message in the TreeGrid.
|
|
632
|
+
*
|
|
633
|
+
* > It accepts either the [template string](../../common/template-engine/) or the HTML element ID.
|
|
634
|
+
*
|
|
635
|
+
* @default null
|
|
636
|
+
* @aspType string
|
|
637
|
+
*/
|
|
638
|
+
emptyRecordTemplate: string | Function;
|
|
624
639
|
/**
|
|
625
640
|
* Defines the scrollable height of the TreeGrid content.
|
|
626
641
|
*
|
|
@@ -1091,6 +1106,18 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
|
|
|
1091
1106
|
* @event excelQueryCellInfo
|
|
1092
1107
|
*/
|
|
1093
1108
|
excelQueryCellInfo: EmitType<ExcelQueryCellInfoEventArgs>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Triggers before exporting aggregate cell to PDF document. You can also customize the PDF cells.
|
|
1111
|
+
*
|
|
1112
|
+
* @event pdfAggregateQueryCellInfo
|
|
1113
|
+
*/
|
|
1114
|
+
pdfAggregateQueryCellInfo: EmitType<AggregateQueryCellInfoEventArgs>;
|
|
1115
|
+
/**
|
|
1116
|
+
* Triggers before exporting aggregate cell to Excel document.
|
|
1117
|
+
*
|
|
1118
|
+
* @event excelAggregateQueryCellInfo
|
|
1119
|
+
*/
|
|
1120
|
+
excelAggregateQueryCellInfo: EmitType<AggregateQueryCellInfoEventArgs>;
|
|
1094
1121
|
/**
|
|
1095
1122
|
* Triggers before each header cell is exported to an Excel file, allowing customization of cells.
|
|
1096
1123
|
*
|
|
@@ -51,6 +51,7 @@ import { isHidden, getExpandStatus } from '../utils';
|
|
|
51
51
|
import { editAction } from '../actions/crud-actions';
|
|
52
52
|
import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';
|
|
53
53
|
import * as literals from '../base/constant';
|
|
54
|
+
import { ColumnChooserSettings } from '../models/column-chooser-settings';
|
|
54
55
|
/**
|
|
55
56
|
* Represents the TreeGrid component.
|
|
56
57
|
* ```html
|
|
@@ -915,7 +916,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
915
916
|
}
|
|
916
917
|
}
|
|
917
918
|
var alignColumn;
|
|
918
|
-
if (this.treeColumnIndex !== null && this.treeColumnIndex !== -1) {
|
|
919
|
+
if (this.treeColumnIndex !== null && this.treeColumnIndex !== -1 && this.treeColumnIndex < this.columns.length) {
|
|
919
920
|
alignColumn = this.columnModel.filter(function (col) { return col.textAlign === 'Right' && col.field === _this.columnModel[_this.treeColumnIndex].field; });
|
|
920
921
|
if (alignColumn.length !== 0) {
|
|
921
922
|
failureCases.push('TextAlign right for the tree column is not applicable.');
|
|
@@ -1028,6 +1029,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1028
1029
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
1029
1030
|
this.grid.toolbarTemplate = this.toolbarTemplate;
|
|
1030
1031
|
this.grid.showColumnChooser = this.showColumnChooser;
|
|
1032
|
+
this.grid.columnChooserSettings = this.columnChooserSettings;
|
|
1031
1033
|
this.grid.filterSettings = getActualProperties(this.filterSettings);
|
|
1032
1034
|
this.grid.selectionSettings = getActualProperties(this.selectionSettings);
|
|
1033
1035
|
this.grid.sortSettings = getActualProperties(this.sortSettings);
|
|
@@ -1055,6 +1057,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1055
1057
|
var enableHtmlSanitizer = 'enableHtmlSanitizer';
|
|
1056
1058
|
this.grid["" + enableHtmlSanitizer] = this.enableHtmlSanitizer;
|
|
1057
1059
|
this.grid.enableStickyHeader = this.enableStickyHeader;
|
|
1060
|
+
this.grid.emptyRecordTemplate = this.emptyRecordTemplate;
|
|
1058
1061
|
var isTreeGrid = 'isTreeGrid';
|
|
1059
1062
|
this.grid["" + isTreeGrid] = true;
|
|
1060
1063
|
};
|
|
@@ -1121,6 +1124,14 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1121
1124
|
_this.notify('excelCellInfo', args);
|
|
1122
1125
|
args = _this.dataResults;
|
|
1123
1126
|
};
|
|
1127
|
+
this.grid.excelAggregateQueryCellInfo = function (args) {
|
|
1128
|
+
_this.notify('excelAggregateCellInfo', args);
|
|
1129
|
+
args = _this.dataResults;
|
|
1130
|
+
};
|
|
1131
|
+
this.grid.pdfAggregateQueryCellInfo = function (args) {
|
|
1132
|
+
_this.notify('pdfAggregateCellInfo', args);
|
|
1133
|
+
args = _this.dataResults;
|
|
1134
|
+
};
|
|
1124
1135
|
this.grid.pdfQueryCellInfo = function (args) {
|
|
1125
1136
|
_this.notify('pdfCellInfo', args);
|
|
1126
1137
|
args = _this.dataResults;
|
|
@@ -2016,6 +2027,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2016
2027
|
case 'enableAutoFill':
|
|
2017
2028
|
this.grid.enableAutoFill = this.enableAutoFill;
|
|
2018
2029
|
break;
|
|
2030
|
+
case 'columnChooserSettings':
|
|
2031
|
+
this.grid.columnChooserSettings = getActualProperties(this.columnChooserSettings);
|
|
2032
|
+
break;
|
|
2019
2033
|
case 'enableAdaptiveUI':
|
|
2020
2034
|
this.grid.enableAdaptiveUI = this.enableAdaptiveUI;
|
|
2021
2035
|
break;
|
|
@@ -2063,6 +2077,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2063
2077
|
case 'enableStickyHeader':
|
|
2064
2078
|
this.grid.enableStickyHeader = this.enableStickyHeader;
|
|
2065
2079
|
break;
|
|
2080
|
+
case 'emptyRecordTemplate':
|
|
2081
|
+
this.grid.emptyRecordTemplate = this.emptyRecordTemplate;
|
|
2082
|
+
break;
|
|
2066
2083
|
case 'editSettings':
|
|
2067
2084
|
if (this.grid.isEdit && this.grid.editSettings.mode === 'Normal' && newProp["" + prop].mode &&
|
|
2068
2085
|
(newProp["" + prop].mode === 'Cell' || newProp["" + prop].mode === 'Row')) {
|
|
@@ -3786,9 +3803,17 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3786
3803
|
}
|
|
3787
3804
|
var deff = new Deferred();
|
|
3788
3805
|
var childDataBind = 'childDataBind';
|
|
3806
|
+
var state;
|
|
3807
|
+
if (this.query) {
|
|
3808
|
+
state = this.grid.getDataModule().getStateEventArgument(this.query);
|
|
3809
|
+
state.action = expandingArgs;
|
|
3810
|
+
}
|
|
3811
|
+
else {
|
|
3812
|
+
state = expandingArgs;
|
|
3813
|
+
}
|
|
3789
3814
|
expandingArgs["" + childDataBind] = deff.resolve;
|
|
3790
3815
|
var record = expandingArgs.data;
|
|
3791
|
-
this.trigger(events.dataStateChange,
|
|
3816
|
+
this.trigger(events.dataStateChange, state);
|
|
3792
3817
|
deff.promise.then(function () {
|
|
3793
3818
|
if (expandingArgs.childData.length) {
|
|
3794
3819
|
if (isCountRequired(_this)) {
|
|
@@ -4637,6 +4662,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4637
4662
|
__decorate([
|
|
4638
4663
|
Property(false)
|
|
4639
4664
|
], TreeGrid.prototype, "showColumnChooser", void 0);
|
|
4665
|
+
__decorate([
|
|
4666
|
+
Complex({}, ColumnChooserSettings)
|
|
4667
|
+
], TreeGrid.prototype, "columnChooserSettings", void 0);
|
|
4640
4668
|
__decorate([
|
|
4641
4669
|
Property(false)
|
|
4642
4670
|
], TreeGrid.prototype, "allowSorting", void 0);
|
|
@@ -4709,6 +4737,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4709
4737
|
__decorate([
|
|
4710
4738
|
Property(false)
|
|
4711
4739
|
], TreeGrid.prototype, "enableStickyHeader", void 0);
|
|
4740
|
+
__decorate([
|
|
4741
|
+
Property()
|
|
4742
|
+
], TreeGrid.prototype, "emptyRecordTemplate", void 0);
|
|
4712
4743
|
__decorate([
|
|
4713
4744
|
Property('auto')
|
|
4714
4745
|
], TreeGrid.prototype, "height", void 0);
|
|
@@ -4931,6 +4962,12 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
4931
4962
|
__decorate([
|
|
4932
4963
|
Event()
|
|
4933
4964
|
], TreeGrid.prototype, "excelQueryCellInfo", void 0);
|
|
4965
|
+
__decorate([
|
|
4966
|
+
Event()
|
|
4967
|
+
], TreeGrid.prototype, "pdfAggregateQueryCellInfo", void 0);
|
|
4968
|
+
__decorate([
|
|
4969
|
+
Event()
|
|
4970
|
+
], TreeGrid.prototype, "excelAggregateQueryCellInfo", void 0);
|
|
4934
4971
|
__decorate([
|
|
4935
4972
|
Event()
|
|
4936
4973
|
], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for a class ColumnChooserSettings
|
|
5
|
+
*/
|
|
6
|
+
export interface ColumnChooserSettingsModel {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Defines the search operator for column chooser.
|
|
10
|
+
*
|
|
11
|
+
* @default 'startsWith'
|
|
12
|
+
* @blazorType Syncfusion.Blazor.Operator
|
|
13
|
+
* @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
|
|
14
|
+
*/
|
|
15
|
+
operator?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* If ignoreAccent set to true, then ignores the diacritic characters or accents while searching in column chooser dialog.
|
|
19
|
+
*
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
ignoreAccent?: boolean;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Defines the custom header elements for the column chooser header template.
|
|
26
|
+
*
|
|
27
|
+
* @default null
|
|
28
|
+
* @aspType string
|
|
29
|
+
*/
|
|
30
|
+
headerTemplate?: string | Function;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Defines the custom content elements for the column chooser content template.
|
|
34
|
+
*
|
|
35
|
+
* @default null
|
|
36
|
+
* @aspType string
|
|
37
|
+
*/
|
|
38
|
+
template?: string | Function;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Defines the custom footer elements for the column chooser footer template.
|
|
42
|
+
*
|
|
43
|
+
* @default null
|
|
44
|
+
* @aspType string
|
|
45
|
+
*/
|
|
46
|
+
footerTemplate?: string | Function;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Enables or disables the search option in the column chooser.
|
|
50
|
+
*
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
enableSearching?: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Renders a custom component to replace or extend the default column chooser UI.
|
|
57
|
+
* @param target - The target HTML element where the custom component will be appended in the column chooser dialog.
|
|
58
|
+
* @aspType string
|
|
59
|
+
*/
|
|
60
|
+
renderCustomColumnChooser?: string | Function;
|
|
61
|
+
|
|
62
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChildProperty } from '@syncfusion/ej2-base';
|
|
2
|
+
/**
|
|
3
|
+
* Configures the column chooser behavior of the Grid.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ColumnChooserSettings extends ChildProperty<ColumnChooserSettings> {
|
|
6
|
+
/**
|
|
7
|
+
* Defines the search operator for column chooser.
|
|
8
|
+
*
|
|
9
|
+
* @default 'startsWith'
|
|
10
|
+
* @blazorType Syncfusion.Blazor.Operator
|
|
11
|
+
* @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
|
|
12
|
+
*/
|
|
13
|
+
operator: string;
|
|
14
|
+
/**
|
|
15
|
+
* If ignoreAccent set to true, then ignores the diacritic characters or accents while searching in column chooser dialog.
|
|
16
|
+
*
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
ignoreAccent: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the custom header elements for the column chooser header template.
|
|
22
|
+
*
|
|
23
|
+
* @default null
|
|
24
|
+
* @aspType string
|
|
25
|
+
*/
|
|
26
|
+
headerTemplate: string | Function;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the custom content elements for the column chooser content template.
|
|
29
|
+
*
|
|
30
|
+
* @default null
|
|
31
|
+
* @aspType string
|
|
32
|
+
*/
|
|
33
|
+
template: string | Function;
|
|
34
|
+
/**
|
|
35
|
+
* Defines the custom footer elements for the column chooser footer template.
|
|
36
|
+
*
|
|
37
|
+
* @default null
|
|
38
|
+
* @aspType string
|
|
39
|
+
*/
|
|
40
|
+
footerTemplate: string | Function;
|
|
41
|
+
/**
|
|
42
|
+
* Enables or disables the search option in the column chooser.
|
|
43
|
+
*
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
enableSearching: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Renders a custom component to replace or extend the default column chooser UI.
|
|
49
|
+
* @param target - The target HTML element where the custom component will be appended in the column chooser dialog.
|
|
50
|
+
* @aspType string
|
|
51
|
+
*/
|
|
52
|
+
renderCustomColumnChooser: string | Function;
|
|
53
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
21
|
+
/**
|
|
22
|
+
* Configures the column chooser behavior of the Grid.
|
|
23
|
+
*/
|
|
24
|
+
var ColumnChooserSettings = /** @class */ (function (_super) {
|
|
25
|
+
__extends(ColumnChooserSettings, _super);
|
|
26
|
+
function ColumnChooserSettings() {
|
|
27
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
Property('startsWith')
|
|
31
|
+
], ColumnChooserSettings.prototype, "operator", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Property(false)
|
|
34
|
+
], ColumnChooserSettings.prototype, "ignoreAccent", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Property(null)
|
|
37
|
+
], ColumnChooserSettings.prototype, "headerTemplate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Property(null)
|
|
40
|
+
], ColumnChooserSettings.prototype, "template", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Property(null)
|
|
43
|
+
], ColumnChooserSettings.prototype, "footerTemplate", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Property(true)
|
|
46
|
+
], ColumnChooserSettings.prototype, "enableSearching", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Property(null)
|
|
49
|
+
], ColumnChooserSettings.prototype, "renderCustomColumnChooser", void 0);
|
|
50
|
+
return ColumnChooserSettings;
|
|
51
|
+
}(ChildProperty));
|
|
52
|
+
export { ColumnChooserSettings };
|
|
@@ -768,11 +768,6 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
768
768
|
(this.parent.pageSettings.pageSize / 2) && (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
|
|
769
769
|
this.startIndex = lastIndex - (this.parent.pageSettings.pageSize / 2);
|
|
770
770
|
}
|
|
771
|
-
if (currentViewData.length && this.startIndex > currentViewData[0]["" + indexValue] &&
|
|
772
|
-
((this.startIndex - currentViewData[0]["" + indexValue]) < (this.parent.pageSettings.pageSize / 2)) &&
|
|
773
|
-
this.parent.selectionModule && this.parent.selectionModule.isRowSelected) {
|
|
774
|
-
this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
|
|
775
|
-
}
|
|
776
771
|
if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
|
|
777
772
|
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
778
773
|
}
|
|
@@ -822,9 +817,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
822
817
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
823
818
|
var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
824
819
|
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
825
|
-
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
826
|
-
|
|
827
|
-
}
|
|
820
|
+
// if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
821
|
+
// viewInfo.loadNext = false;
|
|
822
|
+
// }
|
|
828
823
|
this.requestType = 'virtualscroll';
|
|
829
824
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left' && !isRemoteData(this.parent.root)) {
|
|
830
825
|
viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
|
package/src/treegrid/utils.js
CHANGED
|
@@ -7,13 +7,29 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
|
7
7
|
* @returns {boolean} - Specifies whether remote data binding
|
|
8
8
|
*/
|
|
9
9
|
export function isRemoteData(parent) {
|
|
10
|
-
if (parent
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
if (parent['treeGrid'] && parent['treeGrid']['isGantt']) {
|
|
11
|
+
if (parent['taskFields'].hasChildMapping) {
|
|
12
|
+
if (parent.dataSource instanceof DataManager) {
|
|
13
|
+
var adaptor = parent.dataSource.adaptor;
|
|
14
|
+
return (adaptor instanceof ODataAdaptor ||
|
|
15
|
+
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
16
|
+
(adaptor instanceof CacheAdaptor) || adaptor instanceof UrlAdaptor);
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
if (parent.dataSource instanceof DataManager) {
|
|
26
|
+
var adaptor = parent.dataSource.adaptor;
|
|
27
|
+
return (adaptor instanceof ODataAdaptor ||
|
|
28
|
+
(adaptor instanceof WebApiAdaptor) || (adaptor instanceof WebMethodAdaptor) ||
|
|
29
|
+
(adaptor instanceof CacheAdaptor) || adaptor instanceof UrlAdaptor);
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
15
32
|
}
|
|
16
|
-
return false;
|
|
17
33
|
}
|
|
18
34
|
/**
|
|
19
35
|
* @param {TreeGrid | IGrid} parent - Tree Grid or Grid instance
|