@syncfusion/ej2-treegrid 30.2.4 → 31.1.20
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 +276 -161
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +304 -171
- 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/package.json +5 -5
- package/src/treegrid/actions/context-menu.js +3 -1
- package/src/treegrid/actions/edit.js +1 -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/rowdragdrop.js +12 -3
- 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
- package/styles/bootstrap4-lite.css +8 -0
- package/styles/bootstrap4.css +8 -0
- package/styles/treegrid/bootstrap4.css +8 -0
|
@@ -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
|
|
@@ -88,6 +88,14 @@
|
|
|
88
88
|
font-size: 12px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
.e-input-group.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
92
|
+
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
93
|
+
.e-float-input.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
94
|
+
.e-float-input.e-control-wrapper.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon {
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: #495057;
|
|
97
|
+
}
|
|
98
|
+
|
|
91
99
|
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
92
100
|
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
93
101
|
font-size: 10px;
|
package/styles/bootstrap4.css
CHANGED
|
@@ -88,6 +88,14 @@
|
|
|
88
88
|
font-size: 12px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
.e-input-group.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
92
|
+
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
93
|
+
.e-float-input.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
94
|
+
.e-float-input.e-control-wrapper.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon {
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: #495057;
|
|
97
|
+
}
|
|
98
|
+
|
|
91
99
|
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
92
100
|
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
93
101
|
font-size: 10px;
|
|
@@ -88,6 +88,14 @@
|
|
|
88
88
|
font-size: 12px;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
.e-input-group.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
92
|
+
.e-input-group.e-control-wrapper.e-ddl .e-input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
93
|
+
.e-float-input.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon,
|
|
94
|
+
.e-float-input.e-control-wrapper.e-ddl input[readonly] ~ span.e-input-group-icon.e-ddl-icon {
|
|
95
|
+
background: transparent;
|
|
96
|
+
color: #495057;
|
|
97
|
+
}
|
|
98
|
+
|
|
91
99
|
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
92
100
|
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
93
101
|
font-size: 10px;
|