@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.
@@ -1,36 +1,14 @@
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 { 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
- import { Options } from 'vue-class-component';
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 = /** @class */ (function (_super) {
46
- __extends(TreeGridComponent, _super);
47
- function TreeGridComponent() {
48
- var _this = _super.call(this, arguments) || this;
49
- _this.propKeys = properties;
50
- _this.models = modelProps;
51
- _this.hasChildDirective = true;
52
- _this.hasInjectedModules = true;
53
- _this.tagMapper = { "e-columns": "e-column", "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } };
54
- _this.tagNameMapper = {};
55
- _this.isVue3 = !isExecute;
56
- _this.ej2Instances = new TreeGrid({});
57
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
58
- _this.ej2Instances.trigger = _this.trigger;
59
- _this.bindProperties();
60
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
61
- _this.ej2Instances.setProperties = _this.setProperties;
62
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
63
- _this.updated = _this.updated;
64
- return _this;
65
- }
66
- TreeGridComponent.prototype.clearTemplate = function (templateNames) {
67
- if (!templateNames) {
68
- templateNames = Object.keys(this.templateCollection || {});
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
- if (templateNames.length && this.templateCollection) {
71
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
72
- var tempName = templateNames_1[_i];
73
- var elementCollection = this.templateCollection[tempName];
74
- if (elementCollection && elementCollection.length) {
75
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
76
- var ele = elementCollection_1[_a];
77
- var destroy = getValue('__vue__.$destroy', ele);
78
- if (destroy) {
79
- ele.__vue__.$destroy();
80
- }
81
- if (ele.innerHTML) {
82
- ele.innerHTML = '';
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
- TreeGridComponent.prototype.setProperties = function (prop, muteOnChange) {
91
- var _this = this;
92
- if (this.isVue3) {
93
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
94
- }
95
- if (this.ej2Instances && this.ej2Instances._setProperties) {
96
- this.ej2Instances._setProperties(prop, muteOnChange);
97
- }
98
- if (prop && this.models && this.models.length) {
99
- Object.keys(prop).map(function (key) {
100
- _this.models.map(function (model) {
101
- if ((key === model) && !(/datasource/i.test(key))) {
102
- if (_this.isVue3) {
103
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
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
- else {
106
- _this.$emit('update:' + key, prop[key]);
107
- _this.$emit('modelchanged', prop[key]);
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
- else {
128
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
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
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
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
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
150
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
151
- }
152
- };
153
- TreeGridComponent.prototype.render = function (createElement) {
154
- var h = !isExecute ? gh : createElement;
155
- var slots = null;
156
- if (!isNullOrUndefined(this.$slots.default)) {
157
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
158
- }
159
- return h('div', slots);
160
- };
161
- TreeGridComponent.prototype.custom = function () {
162
- this.updated();
163
- };
164
- TreeGridComponent.prototype.addRecord = function (data, index, position) {
165
- return this.ej2Instances.addRecord(data, index, position);
166
- };
167
- TreeGridComponent.prototype.autoFitColumns = function (fieldNames) {
168
- return this.ej2Instances.autoFitColumns(fieldNames);
169
- };
170
- TreeGridComponent.prototype.clearFiltering = function () {
171
- return this.ej2Instances.clearFiltering();
172
- };
173
- TreeGridComponent.prototype.clearSelection = function () {
174
- return this.ej2Instances.clearSelection();
175
- };
176
- TreeGridComponent.prototype.clearSorting = function () {
177
- return this.ej2Instances.clearSorting();
178
- };
179
- TreeGridComponent.prototype.closeEdit = function () {
180
- return this.ej2Instances.closeEdit();
181
- };
182
- TreeGridComponent.prototype.collapseAll = function () {
183
- return this.ej2Instances.collapseAll();
184
- };
185
- TreeGridComponent.prototype.collapseAtLevel = function (level) {
186
- return this.ej2Instances.collapseAtLevel(level);
187
- };
188
- TreeGridComponent.prototype.collapseByKey = function (key) {
189
- return this.ej2Instances.collapseByKey(key);
190
- };
191
- TreeGridComponent.prototype.collapseRow = function (row, record, key) {
192
- return this.ej2Instances.collapseRow(row, record, key);
193
- };
194
- TreeGridComponent.prototype.copy = function (withHeader) {
195
- return this.ej2Instances.copy(withHeader);
196
- };
197
- TreeGridComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
198
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
199
- };
200
- TreeGridComponent.prototype.deleteRecord = function (fieldName, data) {
201
- return this.ej2Instances.deleteRecord(fieldName, data);
202
- };
203
- TreeGridComponent.prototype.deleteRow = function (tr) {
204
- return this.ej2Instances.deleteRow(tr);
205
- };
206
- TreeGridComponent.prototype.editCell = function (rowIndex, field) {
207
- return this.ej2Instances.editCell(rowIndex, field);
208
- };
209
- TreeGridComponent.prototype.enableToolbarItems = function (items, isEnable) {
210
- return this.ej2Instances.enableToolbarItems(items, isEnable);
211
- };
212
- TreeGridComponent.prototype.endEdit = function () {
213
- return this.ej2Instances.endEdit();
214
- };
215
- TreeGridComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
216
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
217
- };
218
- TreeGridComponent.prototype.expandAll = function () {
219
- return this.ej2Instances.expandAll();
220
- };
221
- TreeGridComponent.prototype.expandAtLevel = function (level) {
222
- return this.ej2Instances.expandAtLevel(level);
223
- };
224
- TreeGridComponent.prototype.expandByKey = function (key) {
225
- return this.ej2Instances.expandByKey(key);
226
- };
227
- TreeGridComponent.prototype.expandRow = function (row, record, key, level) {
228
- return this.ej2Instances.expandRow(row, record, key, level);
229
- };
230
- TreeGridComponent.prototype.extendRequiredModules = function (modules) {
231
- return this.ej2Instances.extendRequiredModules(modules);
232
- };
233
- TreeGridComponent.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
234
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
235
- };
236
- TreeGridComponent.prototype.getBatchChanges = function () {
237
- return this.ej2Instances.getBatchChanges();
238
- };
239
- TreeGridComponent.prototype.getCellFromIndex = function (rowIndex, columnIndex) {
240
- return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
241
- };
242
- TreeGridComponent.prototype.getCheckedRecords = function () {
243
- return this.ej2Instances.getCheckedRecords();
244
- };
245
- TreeGridComponent.prototype.getCheckedRowIndexes = function () {
246
- return this.ej2Instances.getCheckedRowIndexes();
247
- };
248
- TreeGridComponent.prototype.getColumnByField = function (field) {
249
- return this.ej2Instances.getColumnByField(field);
250
- };
251
- TreeGridComponent.prototype.getColumnByUid = function (uid) {
252
- return this.ej2Instances.getColumnByUid(uid);
253
- };
254
- TreeGridComponent.prototype.getColumnFieldNames = function () {
255
- return this.ej2Instances.getColumnFieldNames();
256
- };
257
- TreeGridComponent.prototype.getColumnHeaderByField = function (field) {
258
- return this.ej2Instances.getColumnHeaderByField(field);
259
- };
260
- TreeGridComponent.prototype.getColumnHeaderByIndex = function (index) {
261
- return this.ej2Instances.getColumnHeaderByIndex(index);
262
- };
263
- TreeGridComponent.prototype.getColumnHeaderByUid = function (uid) {
264
- return this.ej2Instances.getColumnHeaderByUid(uid);
265
- };
266
- TreeGridComponent.prototype.getColumnIndexByField = function (field) {
267
- return this.ej2Instances.getColumnIndexByField(field);
268
- };
269
- TreeGridComponent.prototype.getColumnIndexByUid = function (uid) {
270
- return this.ej2Instances.getColumnIndexByUid(uid);
271
- };
272
- TreeGridComponent.prototype.getColumns = function (isRefresh) {
273
- return this.ej2Instances.getColumns(isRefresh);
274
- };
275
- TreeGridComponent.prototype.getContent = function () {
276
- return this.ej2Instances.getContent();
277
- };
278
- TreeGridComponent.prototype.getContentTable = function () {
279
- return this.ej2Instances.getContentTable();
280
- };
281
- TreeGridComponent.prototype.getCurrentViewRecords = function () {
282
- return this.ej2Instances.getCurrentViewRecords();
283
- };
284
- TreeGridComponent.prototype.getDataModule = function () {
285
- return this.ej2Instances.getDataModule();
286
- };
287
- TreeGridComponent.prototype.getDataRows = function () {
288
- return this.ej2Instances.getDataRows();
289
- };
290
- TreeGridComponent.prototype.getFooterContent = function () {
291
- return this.ej2Instances.getFooterContent();
292
- };
293
- TreeGridComponent.prototype.getFooterContentTable = function () {
294
- return this.ej2Instances.getFooterContentTable();
295
- };
296
- TreeGridComponent.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
297
- return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
298
- };
299
- TreeGridComponent.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
300
- return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
301
- };
302
- TreeGridComponent.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
303
- return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
304
- };
305
- TreeGridComponent.prototype.getFrozenRightDataRows = function () {
306
- return this.ej2Instances.getFrozenRightDataRows();
307
- };
308
- TreeGridComponent.prototype.getFrozenRightRowByIndex = function (index) {
309
- return this.ej2Instances.getFrozenRightRowByIndex(index);
310
- };
311
- TreeGridComponent.prototype.getFrozenRightRows = function () {
312
- return this.ej2Instances.getFrozenRightRows();
313
- };
314
- TreeGridComponent.prototype.getHeaderContent = function () {
315
- return this.ej2Instances.getHeaderContent();
316
- };
317
- TreeGridComponent.prototype.getHeaderTable = function () {
318
- return this.ej2Instances.getHeaderTable();
319
- };
320
- TreeGridComponent.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
321
- return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
322
- };
323
- TreeGridComponent.prototype.getMovableColumnHeaderByIndex = function (index) {
324
- return this.ej2Instances.getMovableColumnHeaderByIndex(index);
325
- };
326
- TreeGridComponent.prototype.getMovableDataRows = function () {
327
- return this.ej2Instances.getMovableDataRows();
328
- };
329
- TreeGridComponent.prototype.getMovableRowByIndex = function (index) {
330
- return this.ej2Instances.getMovableRowByIndex(index);
331
- };
332
- TreeGridComponent.prototype.getMovableRows = function () {
333
- return this.ej2Instances.getMovableRows();
334
- };
335
- TreeGridComponent.prototype.getPager = function () {
336
- return this.ej2Instances.getPager();
337
- };
338
- TreeGridComponent.prototype.getPrimaryKeyFieldNames = function () {
339
- return this.ej2Instances.getPrimaryKeyFieldNames();
340
- };
341
- TreeGridComponent.prototype.getRowByIndex = function (index) {
342
- return this.ej2Instances.getRowByIndex(index);
343
- };
344
- TreeGridComponent.prototype.getRowInfo = function (target) {
345
- return this.ej2Instances.getRowInfo(target);
346
- };
347
- TreeGridComponent.prototype.getRows = function () {
348
- return this.ej2Instances.getRows();
349
- };
350
- TreeGridComponent.prototype.getSelectedRecords = function () {
351
- return this.ej2Instances.getSelectedRecords();
352
- };
353
- TreeGridComponent.prototype.getSelectedRowCellIndexes = function () {
354
- return this.ej2Instances.getSelectedRowCellIndexes();
355
- };
356
- TreeGridComponent.prototype.getSelectedRowIndexes = function () {
357
- return this.ej2Instances.getSelectedRowIndexes();
358
- };
359
- TreeGridComponent.prototype.getSelectedRows = function () {
360
- return this.ej2Instances.getSelectedRows();
361
- };
362
- TreeGridComponent.prototype.getUidByColumnField = function (field) {
363
- return this.ej2Instances.getUidByColumnField(field);
364
- };
365
- TreeGridComponent.prototype.getVisibleColumns = function () {
366
- return this.ej2Instances.getVisibleColumns();
367
- };
368
- TreeGridComponent.prototype.getVisibleRecords = function () {
369
- return this.ej2Instances.getVisibleRecords();
370
- };
371
- TreeGridComponent.prototype.goToPage = function (pageNo) {
372
- return this.ej2Instances.goToPage(pageNo);
373
- };
374
- TreeGridComponent.prototype.hideColumns = function (keys, hideBy) {
375
- return this.ej2Instances.hideColumns(keys, hideBy);
376
- };
377
- TreeGridComponent.prototype.hideSpinner = function () {
378
- return this.ej2Instances.hideSpinner();
379
- };
380
- TreeGridComponent.prototype.indent = function (record) {
381
- return this.ej2Instances.indent(record);
382
- };
383
- TreeGridComponent.prototype.openColumnChooser = function (x, y) {
384
- return this.ej2Instances.openColumnChooser(x, y);
385
- };
386
- TreeGridComponent.prototype.outdent = function (record) {
387
- return this.ej2Instances.outdent(record);
388
- };
389
- TreeGridComponent.prototype.paste = function (data, rowIndex, colIndex) {
390
- return this.ej2Instances.paste(data, rowIndex, colIndex);
391
- };
392
- TreeGridComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
393
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
394
- };
395
- TreeGridComponent.prototype.print = function () {
396
- return this.ej2Instances.print();
397
- };
398
- TreeGridComponent.prototype.refresh = function () {
399
- return this.ej2Instances.refresh();
400
- };
401
- TreeGridComponent.prototype.refreshColumns = function (refreshUI) {
402
- return this.ej2Instances.refreshColumns(refreshUI);
403
- };
404
- TreeGridComponent.prototype.refreshHeader = function () {
405
- return this.ej2Instances.refreshHeader();
406
- };
407
- TreeGridComponent.prototype.reorderColumns = function (fromFName, toFName) {
408
- return this.ej2Instances.reorderColumns(fromFName, toFName);
409
- };
410
- TreeGridComponent.prototype.reorderRows = function (fromIndexes, toIndex, position) {
411
- return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
412
- };
413
- TreeGridComponent.prototype.saveCell = function () {
414
- return this.ej2Instances.saveCell();
415
- };
416
- TreeGridComponent.prototype.search = function (searchString) {
417
- return this.ej2Instances.search(searchString);
418
- };
419
- TreeGridComponent.prototype.selectCell = function (cellIndex, isToggle) {
420
- return this.ej2Instances.selectCell(cellIndex, isToggle);
421
- };
422
- TreeGridComponent.prototype.selectCheckboxes = function (indexes) {
423
- return this.ej2Instances.selectCheckboxes(indexes);
424
- };
425
- TreeGridComponent.prototype.selectRow = function (index, isToggle) {
426
- return this.ej2Instances.selectRow(index, isToggle);
427
- };
428
- TreeGridComponent.prototype.selectRows = function (rowIndexes) {
429
- return this.ej2Instances.selectRows(rowIndexes);
430
- };
431
- TreeGridComponent.prototype.setCellValue = function (key, field, value) {
432
- return this.ej2Instances.setCellValue(key, field, value);
433
- };
434
- TreeGridComponent.prototype.setRowData = function (key, rowData) {
435
- return this.ej2Instances.setRowData(key, rowData);
436
- };
437
- TreeGridComponent.prototype.showColumns = function (keys, showBy) {
438
- return this.ej2Instances.showColumns(keys, showBy);
439
- };
440
- TreeGridComponent.prototype.showSpinner = function () {
441
- return this.ej2Instances.showSpinner();
442
- };
443
- TreeGridComponent.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
444
- return this.ej2Instances.sortByColumn(columnName, direction, isMultiSort);
445
- };
446
- TreeGridComponent.prototype.startEdit = function (row) {
447
- return this.ej2Instances.startEdit(row);
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) {