@syncfusion/ej2-vue-treegrid 20.4.49 → 21.1.35
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 +0 -38
- package/dist/ej2-vue-treegrid.umd.min.js +2 -2
- package/dist/ej2-vue-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-treegrid.es2015.js +465 -589
- package/dist/es6/ej2-vue-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-treegrid.es5.js +495 -660
- package/dist/es6/ej2-vue-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-vue-treegrid.min.js +2 -2
- package/package.json +9 -9
- package/src/treegrid/aggregate-columns.directive.d.ts +2 -12
- package/src/treegrid/aggregate-columns.directive.js +22 -71
- package/src/treegrid/aggregates.directive.d.ts +2 -12
- package/src/treegrid/aggregates.directive.js +22 -71
- package/src/treegrid/columns.directive.d.ts +2 -12
- package/src/treegrid/columns.directive.js +22 -71
- package/src/treegrid/treegrid.component.d.ts +3 -123
- package/src/treegrid/treegrid.component.js +414 -445
- package/styles/bootstrap-dark.css +2 -8
- package/styles/highcontrast-light.css +2 -8
- package/styles/treegrid/bootstrap-dark.css +2 -8
- package/styles/treegrid/highcontrast-light.css +2 -8
|
@@ -1,36 +1,14 @@
|
|
|
1
|
-
|
|
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 { isUndefined } from '@syncfusion/ej2-base';
|
|
21
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
22
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
3
|
+
import { isUndefined } from '@syncfusion/ej2-base';
|
|
23
4
|
import { TreeGrid } from '@syncfusion/ej2-treegrid';
|
|
24
5
|
import { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';
|
|
25
6
|
import { AggregateColumnsDirective, AggregateColumnDirective, AggregateColumnsPlugin, AggregateColumnPlugin } from './aggregate-columns.directive';
|
|
26
7
|
import { AggregatesDirective, AggregateDirective, AggregatesPlugin, AggregatePlugin } from './aggregates.directive';
|
|
27
|
-
|
|
28
|
-
export var properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'autoCheckHierarchy', 'childMapping', 'clipMode', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'copyHierarchyMode', 'dataSource', 'detailTemplate', 'editSettings', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableCollapseAll', 'enableColumnVirtualization', 'enableHover', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableVirtualMaskRow', 'enableVirtualization', 'expandStateMapping', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'hasChildMapping', 'height', 'idMapping', 'infiniteScrollSettings', 'loadChildOnDemand', 'loadingIndicator', 'locale', 'pageSettings', 'parentIdMapping', 'printMode', 'query', 'rowDropSettings', 'rowHeight', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'sortSettings', 'textWrapSettings', 'toolbar', 'treeColumnIndex', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkboxChange', 'collapsed', 'collapsing', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'detailDataBound', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'expanded', 'expanding', 'headerCellInfo', 'load', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
|
|
8
|
+
export var properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'autoCheckHierarchy', 'childMapping', 'clipMode', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'copyHierarchyMode', 'dataSource', 'detailTemplate', 'editSettings', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableCollapseAll', 'enableColumnVirtualization', 'enableHover', 'enableHtmlSanitizer', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableVirtualMaskRow', 'enableVirtualization', 'expandStateMapping', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'hasChildMapping', 'height', 'idMapping', 'infiniteScrollSettings', 'loadChildOnDemand', 'loadingIndicator', 'locale', 'pageSettings', 'parentIdMapping', 'printMode', 'query', 'rowDropSettings', 'rowHeight', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'sortSettings', 'textWrapSettings', 'toolbar', 'treeColumnIndex', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkboxChange', 'collapsed', 'collapsing', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'detailDataBound', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'expanded', 'expanding', 'headerCellInfo', 'load', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
|
|
29
9
|
export var modelProps = ['dataSource'];
|
|
30
10
|
export var testProp = getProps({ props: properties });
|
|
31
|
-
export var props = testProp[0];
|
|
32
|
-
export var watch = testProp[1];
|
|
33
|
-
export var emitProbs = Object.keys(watch);
|
|
11
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
34
12
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
35
13
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
36
14
|
var props_1 = modelProps_1[_i];
|
|
@@ -42,440 +20,431 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
42
20
|
* <ejs-treegrid :dataSource='data' allowPaging='true' allowSorting='true'></ejs-treegrid>
|
|
43
21
|
* ```
|
|
44
22
|
*/
|
|
45
|
-
var TreeGridComponent =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
23
|
+
export var TreeGridComponent = vueDefineComponent({
|
|
24
|
+
name: 'TreeGridComponent',
|
|
25
|
+
mixins: [ComponentBase],
|
|
26
|
+
props: props,
|
|
27
|
+
watch: watch,
|
|
28
|
+
emits: emitProbs,
|
|
29
|
+
model: { event: 'modelchanged' },
|
|
30
|
+
provide: function () { return { custom: this.custom }; },
|
|
31
|
+
data: function () {
|
|
32
|
+
return {
|
|
33
|
+
ej2Instances: new TreeGrid({}),
|
|
34
|
+
propKeys: properties,
|
|
35
|
+
models: modelProps,
|
|
36
|
+
hasChildDirective: true,
|
|
37
|
+
hasInjectedModules: true,
|
|
38
|
+
tagMapper: { "e-columns": "e-column", "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } },
|
|
39
|
+
tagNameMapper: {},
|
|
40
|
+
isVue3: !isExecute,
|
|
41
|
+
templateCollection: {},
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
created: function () {
|
|
45
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
46
|
+
this.ej2Instances.trigger = this.trigger;
|
|
47
|
+
this.bindProperties();
|
|
48
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
49
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
50
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
51
|
+
this.updated = this.updated;
|
|
52
|
+
},
|
|
53
|
+
render: function (createElement) {
|
|
54
|
+
var h = !isExecute ? gh : createElement;
|
|
55
|
+
var slots = null;
|
|
56
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
57
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
69
58
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
59
|
+
return h('div', slots);
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
clearTemplate: function (templateNames) {
|
|
63
|
+
if (!templateNames) {
|
|
64
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
65
|
+
}
|
|
66
|
+
if (templateNames.length && this.templateCollection) {
|
|
67
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
68
|
+
var tempName = templateNames_1[_i];
|
|
69
|
+
var elementCollection = this.templateCollection[tempName];
|
|
70
|
+
if (elementCollection && elementCollection.length) {
|
|
71
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
72
|
+
var ele = elementCollection_1[_a];
|
|
73
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
74
|
+
if (destroy) {
|
|
75
|
+
ele.__vue__.$destroy();
|
|
76
|
+
}
|
|
77
|
+
if (ele.innerHTML) {
|
|
78
|
+
ele.innerHTML = '';
|
|
79
|
+
}
|
|
83
80
|
}
|
|
81
|
+
delete this.templateCollection[tempName];
|
|
84
82
|
}
|
|
85
|
-
delete this.templateCollection[tempName];
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
85
|
+
},
|
|
86
|
+
setProperties: function (prop, muteOnChange) {
|
|
87
|
+
var _this = this;
|
|
88
|
+
if (this.isVue3) {
|
|
89
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
90
|
+
}
|
|
91
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
92
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
93
|
+
}
|
|
94
|
+
if (prop && this.models && this.models.length) {
|
|
95
|
+
Object.keys(prop).map(function (key) {
|
|
96
|
+
_this.models.map(function (model) {
|
|
97
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
98
|
+
if (_this.isVue3) {
|
|
99
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
_this.$emit('update:' + key, prop[key]);
|
|
103
|
+
_this.$emit('modelchanged', prop[key]);
|
|
104
|
+
}
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
111
|
+
if (!isExecute) {
|
|
112
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
113
|
+
}
|
|
114
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
115
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
116
|
+
var propKey = key[0];
|
|
117
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
118
|
+
if (!isExecute) {
|
|
119
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
120
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
121
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
125
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
126
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
108
127
|
}
|
|
109
128
|
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
TreeGridComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
115
|
-
if (!isExecute) {
|
|
116
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
117
|
-
}
|
|
118
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
119
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
120
|
-
var propKey = key[0];
|
|
121
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
122
|
-
if (!isExecute) {
|
|
123
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
124
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
125
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
126
129
|
}
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
}
|
|
131
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
132
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
133
|
+
var propKey = key[0];
|
|
134
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
135
|
+
if (!isExecute) {
|
|
136
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
137
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
129
140
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
130
141
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
131
142
|
}
|
|
132
143
|
}
|
|
133
144
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
137
|
-
var propKey = key[0];
|
|
138
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
139
|
-
if (!isExecute) {
|
|
140
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
141
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
145
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
146
|
-
}
|
|
145
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
146
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
147
147
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
this.
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
};
|
|
449
|
-
TreeGridComponent.prototype.updateCell = function (rowIndex, field, value) {
|
|
450
|
-
return this.ej2Instances.updateCell(rowIndex, field, value);
|
|
451
|
-
};
|
|
452
|
-
TreeGridComponent.prototype.updateExternalMessage = function (message) {
|
|
453
|
-
return this.ej2Instances.updateExternalMessage(message);
|
|
454
|
-
};
|
|
455
|
-
TreeGridComponent.prototype.updateRow = function (index, data) {
|
|
456
|
-
return this.ej2Instances.updateRow(index, data);
|
|
457
|
-
};
|
|
458
|
-
TreeGridComponent = __decorate([
|
|
459
|
-
EJComponentDecorator({
|
|
460
|
-
props: properties,
|
|
461
|
-
model: {
|
|
462
|
-
event: 'modelchanged'
|
|
463
|
-
}
|
|
464
|
-
}, isExecute)
|
|
465
|
-
,Options({
|
|
466
|
-
props: props,
|
|
467
|
-
watch: watch,
|
|
468
|
-
emits: emitProbs,
|
|
469
|
-
provide: function provide() {
|
|
470
|
-
return {
|
|
471
|
-
custom: this.custom
|
|
472
|
-
};
|
|
473
|
-
}
|
|
474
|
-
})
|
|
475
|
-
], TreeGridComponent);
|
|
476
|
-
return TreeGridComponent;
|
|
477
|
-
}(ComponentBase));
|
|
478
|
-
export { TreeGridComponent };
|
|
148
|
+
},
|
|
149
|
+
custom: function () {
|
|
150
|
+
this.updated();
|
|
151
|
+
},
|
|
152
|
+
addRecord: function (data, index, position) {
|
|
153
|
+
return this.ej2Instances.addRecord(data, index, position);
|
|
154
|
+
},
|
|
155
|
+
autoFitColumns: function (fieldNames) {
|
|
156
|
+
return this.ej2Instances.autoFitColumns(fieldNames);
|
|
157
|
+
},
|
|
158
|
+
clearFiltering: function () {
|
|
159
|
+
return this.ej2Instances.clearFiltering();
|
|
160
|
+
},
|
|
161
|
+
clearSelection: function () {
|
|
162
|
+
return this.ej2Instances.clearSelection();
|
|
163
|
+
},
|
|
164
|
+
clearSorting: function () {
|
|
165
|
+
return this.ej2Instances.clearSorting();
|
|
166
|
+
},
|
|
167
|
+
closeEdit: function () {
|
|
168
|
+
return this.ej2Instances.closeEdit();
|
|
169
|
+
},
|
|
170
|
+
collapseAll: function () {
|
|
171
|
+
return this.ej2Instances.collapseAll();
|
|
172
|
+
},
|
|
173
|
+
collapseAtLevel: function (level) {
|
|
174
|
+
return this.ej2Instances.collapseAtLevel(level);
|
|
175
|
+
},
|
|
176
|
+
collapseByKey: function (key) {
|
|
177
|
+
return this.ej2Instances.collapseByKey(key);
|
|
178
|
+
},
|
|
179
|
+
collapseRow: function (row, record, key) {
|
|
180
|
+
return this.ej2Instances.collapseRow(row, record, key);
|
|
181
|
+
},
|
|
182
|
+
copy: function (withHeader) {
|
|
183
|
+
return this.ej2Instances.copy(withHeader);
|
|
184
|
+
},
|
|
185
|
+
csvExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
186
|
+
return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
187
|
+
},
|
|
188
|
+
deleteRecord: function (fieldName, data) {
|
|
189
|
+
return this.ej2Instances.deleteRecord(fieldName, data);
|
|
190
|
+
},
|
|
191
|
+
deleteRow: function (tr) {
|
|
192
|
+
return this.ej2Instances.deleteRow(tr);
|
|
193
|
+
},
|
|
194
|
+
editCell: function (rowIndex, field) {
|
|
195
|
+
return this.ej2Instances.editCell(rowIndex, field);
|
|
196
|
+
},
|
|
197
|
+
enableToolbarItems: function (items, isEnable) {
|
|
198
|
+
return this.ej2Instances.enableToolbarItems(items, isEnable);
|
|
199
|
+
},
|
|
200
|
+
endEdit: function () {
|
|
201
|
+
return this.ej2Instances.endEdit();
|
|
202
|
+
},
|
|
203
|
+
excelExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
204
|
+
return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
205
|
+
},
|
|
206
|
+
expandAll: function () {
|
|
207
|
+
return this.ej2Instances.expandAll();
|
|
208
|
+
},
|
|
209
|
+
expandAtLevel: function (level) {
|
|
210
|
+
return this.ej2Instances.expandAtLevel(level);
|
|
211
|
+
},
|
|
212
|
+
expandByKey: function (key) {
|
|
213
|
+
return this.ej2Instances.expandByKey(key);
|
|
214
|
+
},
|
|
215
|
+
expandRow: function (row, record, key, level) {
|
|
216
|
+
return this.ej2Instances.expandRow(row, record, key, level);
|
|
217
|
+
},
|
|
218
|
+
extendRequiredModules: function (modules) {
|
|
219
|
+
return this.ej2Instances.extendRequiredModules(modules);
|
|
220
|
+
},
|
|
221
|
+
filterByColumn: function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
|
|
222
|
+
return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
|
|
223
|
+
},
|
|
224
|
+
getBatchChanges: function () {
|
|
225
|
+
return this.ej2Instances.getBatchChanges();
|
|
226
|
+
},
|
|
227
|
+
getCellFromIndex: function (rowIndex, columnIndex) {
|
|
228
|
+
return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
|
|
229
|
+
},
|
|
230
|
+
getCheckedRecords: function () {
|
|
231
|
+
return this.ej2Instances.getCheckedRecords();
|
|
232
|
+
},
|
|
233
|
+
getCheckedRowIndexes: function () {
|
|
234
|
+
return this.ej2Instances.getCheckedRowIndexes();
|
|
235
|
+
},
|
|
236
|
+
getColumnByField: function (field) {
|
|
237
|
+
return this.ej2Instances.getColumnByField(field);
|
|
238
|
+
},
|
|
239
|
+
getColumnByUid: function (uid) {
|
|
240
|
+
return this.ej2Instances.getColumnByUid(uid);
|
|
241
|
+
},
|
|
242
|
+
getColumnFieldNames: function () {
|
|
243
|
+
return this.ej2Instances.getColumnFieldNames();
|
|
244
|
+
},
|
|
245
|
+
getColumnHeaderByField: function (field) {
|
|
246
|
+
return this.ej2Instances.getColumnHeaderByField(field);
|
|
247
|
+
},
|
|
248
|
+
getColumnHeaderByIndex: function (index) {
|
|
249
|
+
return this.ej2Instances.getColumnHeaderByIndex(index);
|
|
250
|
+
},
|
|
251
|
+
getColumnHeaderByUid: function (uid) {
|
|
252
|
+
return this.ej2Instances.getColumnHeaderByUid(uid);
|
|
253
|
+
},
|
|
254
|
+
getColumnIndexByField: function (field) {
|
|
255
|
+
return this.ej2Instances.getColumnIndexByField(field);
|
|
256
|
+
},
|
|
257
|
+
getColumnIndexByUid: function (uid) {
|
|
258
|
+
return this.ej2Instances.getColumnIndexByUid(uid);
|
|
259
|
+
},
|
|
260
|
+
getColumns: function (isRefresh) {
|
|
261
|
+
return this.ej2Instances.getColumns(isRefresh);
|
|
262
|
+
},
|
|
263
|
+
getContent: function () {
|
|
264
|
+
return this.ej2Instances.getContent();
|
|
265
|
+
},
|
|
266
|
+
getContentTable: function () {
|
|
267
|
+
return this.ej2Instances.getContentTable();
|
|
268
|
+
},
|
|
269
|
+
getCurrentViewRecords: function () {
|
|
270
|
+
return this.ej2Instances.getCurrentViewRecords();
|
|
271
|
+
},
|
|
272
|
+
getDataModule: function () {
|
|
273
|
+
return this.ej2Instances.getDataModule();
|
|
274
|
+
},
|
|
275
|
+
getDataRows: function () {
|
|
276
|
+
return this.ej2Instances.getDataRows();
|
|
277
|
+
},
|
|
278
|
+
getFooterContent: function () {
|
|
279
|
+
return this.ej2Instances.getFooterContent();
|
|
280
|
+
},
|
|
281
|
+
getFooterContentTable: function () {
|
|
282
|
+
return this.ej2Instances.getFooterContentTable();
|
|
283
|
+
},
|
|
284
|
+
getFrozenLeftColumnHeaderByIndex: function (index) {
|
|
285
|
+
return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
|
|
286
|
+
},
|
|
287
|
+
getFrozenRightCellFromIndex: function (rowIndex, columnIndex) {
|
|
288
|
+
return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
|
|
289
|
+
},
|
|
290
|
+
getFrozenRightColumnHeaderByIndex: function (index) {
|
|
291
|
+
return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
|
|
292
|
+
},
|
|
293
|
+
getFrozenRightDataRows: function () {
|
|
294
|
+
return this.ej2Instances.getFrozenRightDataRows();
|
|
295
|
+
},
|
|
296
|
+
getFrozenRightRowByIndex: function (index) {
|
|
297
|
+
return this.ej2Instances.getFrozenRightRowByIndex(index);
|
|
298
|
+
},
|
|
299
|
+
getFrozenRightRows: function () {
|
|
300
|
+
return this.ej2Instances.getFrozenRightRows();
|
|
301
|
+
},
|
|
302
|
+
getHeaderContent: function () {
|
|
303
|
+
return this.ej2Instances.getHeaderContent();
|
|
304
|
+
},
|
|
305
|
+
getHeaderTable: function () {
|
|
306
|
+
return this.ej2Instances.getHeaderTable();
|
|
307
|
+
},
|
|
308
|
+
getMovableCellFromIndex: function (rowIndex, columnIndex) {
|
|
309
|
+
return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
|
|
310
|
+
},
|
|
311
|
+
getMovableColumnHeaderByIndex: function (index) {
|
|
312
|
+
return this.ej2Instances.getMovableColumnHeaderByIndex(index);
|
|
313
|
+
},
|
|
314
|
+
getMovableDataRows: function () {
|
|
315
|
+
return this.ej2Instances.getMovableDataRows();
|
|
316
|
+
},
|
|
317
|
+
getMovableRowByIndex: function (index) {
|
|
318
|
+
return this.ej2Instances.getMovableRowByIndex(index);
|
|
319
|
+
},
|
|
320
|
+
getMovableRows: function () {
|
|
321
|
+
return this.ej2Instances.getMovableRows();
|
|
322
|
+
},
|
|
323
|
+
getPager: function () {
|
|
324
|
+
return this.ej2Instances.getPager();
|
|
325
|
+
},
|
|
326
|
+
getPrimaryKeyFieldNames: function () {
|
|
327
|
+
return this.ej2Instances.getPrimaryKeyFieldNames();
|
|
328
|
+
},
|
|
329
|
+
getRowByIndex: function (index) {
|
|
330
|
+
return this.ej2Instances.getRowByIndex(index);
|
|
331
|
+
},
|
|
332
|
+
getRowInfo: function (target) {
|
|
333
|
+
return this.ej2Instances.getRowInfo(target);
|
|
334
|
+
},
|
|
335
|
+
getRows: function () {
|
|
336
|
+
return this.ej2Instances.getRows();
|
|
337
|
+
},
|
|
338
|
+
getSelectedRecords: function () {
|
|
339
|
+
return this.ej2Instances.getSelectedRecords();
|
|
340
|
+
},
|
|
341
|
+
getSelectedRowCellIndexes: function () {
|
|
342
|
+
return this.ej2Instances.getSelectedRowCellIndexes();
|
|
343
|
+
},
|
|
344
|
+
getSelectedRowIndexes: function () {
|
|
345
|
+
return this.ej2Instances.getSelectedRowIndexes();
|
|
346
|
+
},
|
|
347
|
+
getSelectedRows: function () {
|
|
348
|
+
return this.ej2Instances.getSelectedRows();
|
|
349
|
+
},
|
|
350
|
+
getUidByColumnField: function (field) {
|
|
351
|
+
return this.ej2Instances.getUidByColumnField(field);
|
|
352
|
+
},
|
|
353
|
+
getVisibleColumns: function () {
|
|
354
|
+
return this.ej2Instances.getVisibleColumns();
|
|
355
|
+
},
|
|
356
|
+
getVisibleRecords: function () {
|
|
357
|
+
return this.ej2Instances.getVisibleRecords();
|
|
358
|
+
},
|
|
359
|
+
goToPage: function (pageNo) {
|
|
360
|
+
return this.ej2Instances.goToPage(pageNo);
|
|
361
|
+
},
|
|
362
|
+
hideColumns: function (keys, hideBy) {
|
|
363
|
+
return this.ej2Instances.hideColumns(keys, hideBy);
|
|
364
|
+
},
|
|
365
|
+
hideSpinner: function () {
|
|
366
|
+
return this.ej2Instances.hideSpinner();
|
|
367
|
+
},
|
|
368
|
+
indent: function (record) {
|
|
369
|
+
return this.ej2Instances.indent(record);
|
|
370
|
+
},
|
|
371
|
+
openColumnChooser: function (x, y) {
|
|
372
|
+
return this.ej2Instances.openColumnChooser(x, y);
|
|
373
|
+
},
|
|
374
|
+
outdent: function (record) {
|
|
375
|
+
return this.ej2Instances.outdent(record);
|
|
376
|
+
},
|
|
377
|
+
paste: function (data, rowIndex, colIndex) {
|
|
378
|
+
return this.ej2Instances.paste(data, rowIndex, colIndex);
|
|
379
|
+
},
|
|
380
|
+
pdfExport: function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
381
|
+
return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
382
|
+
},
|
|
383
|
+
print: function () {
|
|
384
|
+
return this.ej2Instances.print();
|
|
385
|
+
},
|
|
386
|
+
refresh: function () {
|
|
387
|
+
return this.ej2Instances.refresh();
|
|
388
|
+
},
|
|
389
|
+
refreshColumns: function (refreshUI) {
|
|
390
|
+
return this.ej2Instances.refreshColumns(refreshUI);
|
|
391
|
+
},
|
|
392
|
+
refreshHeader: function () {
|
|
393
|
+
return this.ej2Instances.refreshHeader();
|
|
394
|
+
},
|
|
395
|
+
reorderColumns: function (fromFName, toFName) {
|
|
396
|
+
return this.ej2Instances.reorderColumns(fromFName, toFName);
|
|
397
|
+
},
|
|
398
|
+
reorderRows: function (fromIndexes, toIndex, position) {
|
|
399
|
+
return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
|
|
400
|
+
},
|
|
401
|
+
saveCell: function () {
|
|
402
|
+
return this.ej2Instances.saveCell();
|
|
403
|
+
},
|
|
404
|
+
search: function (searchString) {
|
|
405
|
+
return this.ej2Instances.search(searchString);
|
|
406
|
+
},
|
|
407
|
+
selectCell: function (cellIndex, isToggle) {
|
|
408
|
+
return this.ej2Instances.selectCell(cellIndex, isToggle);
|
|
409
|
+
},
|
|
410
|
+
selectCheckboxes: function (indexes) {
|
|
411
|
+
return this.ej2Instances.selectCheckboxes(indexes);
|
|
412
|
+
},
|
|
413
|
+
selectRow: function (index, isToggle) {
|
|
414
|
+
return this.ej2Instances.selectRow(index, isToggle);
|
|
415
|
+
},
|
|
416
|
+
selectRows: function (rowIndexes) {
|
|
417
|
+
return this.ej2Instances.selectRows(rowIndexes);
|
|
418
|
+
},
|
|
419
|
+
setCellValue: function (key, field, value) {
|
|
420
|
+
return this.ej2Instances.setCellValue(key, field, value);
|
|
421
|
+
},
|
|
422
|
+
setRowData: function (key, rowData) {
|
|
423
|
+
return this.ej2Instances.setRowData(key, rowData);
|
|
424
|
+
},
|
|
425
|
+
showColumns: function (keys, showBy) {
|
|
426
|
+
return this.ej2Instances.showColumns(keys, showBy);
|
|
427
|
+
},
|
|
428
|
+
showSpinner: function () {
|
|
429
|
+
return this.ej2Instances.showSpinner();
|
|
430
|
+
},
|
|
431
|
+
sortByColumn: function (columnName, direction, isMultiSort) {
|
|
432
|
+
return this.ej2Instances.sortByColumn(columnName, direction, isMultiSort);
|
|
433
|
+
},
|
|
434
|
+
startEdit: function (row) {
|
|
435
|
+
return this.ej2Instances.startEdit(row);
|
|
436
|
+
},
|
|
437
|
+
updateCell: function (rowIndex, field, value) {
|
|
438
|
+
return this.ej2Instances.updateCell(rowIndex, field, value);
|
|
439
|
+
},
|
|
440
|
+
updateExternalMessage: function (message) {
|
|
441
|
+
return this.ej2Instances.updateExternalMessage(message);
|
|
442
|
+
},
|
|
443
|
+
updateRow: function (index, data) {
|
|
444
|
+
return this.ej2Instances.updateRow(index, data);
|
|
445
|
+
},
|
|
446
|
+
}
|
|
447
|
+
});
|
|
479
448
|
export var TreeGridPlugin = {
|
|
480
449
|
name: 'ejs-treegrid',
|
|
481
450
|
install: function (Vue) {
|