@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,35 +1,9 @@
1
1
  import { TreeGrid } from '@syncfusion/ej2-treegrid';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- 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;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- };
13
- // {{VueImport}}
14
- let vueImport;
15
- if (!isExecute || parseInt(allVue.version) < 3) {
16
- vueImport = Vue;
17
- }
18
- else {
19
- vueImport = Vue$1;
20
- }
21
- let ColumnsDirective =
22
- /* Start Options({
23
- inject: {
24
- custom: {
25
- default: null
26
- }
27
- }
28
- }) End */
29
- class ColumnsDirective extends vueImport {
30
- constructor() {
31
- super(arguments);
32
- }
5
+ let ColumnsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
33
7
  render(createElement) {
34
8
  if (!isExecute) {
35
9
  let h = !isExecute ? gh : createElement;
@@ -40,30 +14,22 @@ class ColumnsDirective extends vueImport {
40
14
  return h('div', { class: 'e-directive' }, slots);
41
15
  }
42
16
  return;
43
- }
17
+ },
44
18
  updated() {
45
19
  if (!isExecute && this.custom) {
46
20
  this.custom();
47
21
  }
48
- }
49
- getTag() {
50
- return 'e-columns';
51
- }
52
- };
53
- ColumnsDirective = __decorate([
54
- EJComponentDecorator({}, isExecute)
55
- /* Start Options({
56
- inject: {
57
- custom: {
58
- default: null
59
- }
22
+ },
23
+ methods: {
24
+ getTag() {
25
+ return 'e-columns';
60
26
  }
61
- }) End */
62
- ], ColumnsDirective);
27
+ }
28
+ });
63
29
  const ColumnsPlugin = {
64
30
  name: 'e-columns',
65
- install(Vue$$1) {
66
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
31
+ install(Vue) {
32
+ Vue.component(ColumnsPlugin.name, ColumnsDirective);
67
33
  }
68
34
  };
69
35
  /**
@@ -78,50 +44,25 @@ const ColumnsPlugin = {
78
44
  * </ejs-treegrid>
79
45
  * ```
80
46
  */
81
- let ColumnDirective = class ColumnDirective extends vueImport {
47
+ let ColumnDirective = vueDefineComponent({
82
48
  render() {
83
49
  return;
50
+ },
51
+ methods: {
52
+ getTag() {
53
+ return 'e-column';
54
+ }
84
55
  }
85
- getTag() {
86
- return 'e-column';
87
- }
88
- };
89
- ColumnDirective = __decorate([
90
- EJComponentDecorator({}, isExecute)
91
- ], ColumnDirective);
56
+ });
92
57
  const ColumnPlugin = {
93
58
  name: 'e-column',
94
- install(Vue$$1) {
95
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
59
+ install(Vue) {
60
+ Vue.component(ColumnPlugin.name, ColumnDirective);
96
61
  }
97
62
  };
98
63
 
99
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
100
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
101
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
102
- 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;
103
- return c > 3 && r && Object.defineProperty(target, key, r), r;
104
- };
105
- // {{VueImport}}
106
- let vueImport$1;
107
- if (!isExecute || parseInt(allVue.version) < 3) {
108
- vueImport$1 = Vue;
109
- }
110
- else {
111
- vueImport$1 = Vue$1;
112
- }
113
- let AggregateColumnsDirective =
114
- /* Start Options({
115
- inject: {
116
- custom: {
117
- default: null
118
- }
119
- }
120
- }) End */
121
- class AggregateColumnsDirective extends vueImport$1 {
122
- constructor() {
123
- super(arguments);
124
- }
64
+ let AggregateColumnsDirective = vueDefineComponent({
65
+ inject: { custom: { default: null } },
125
66
  render(createElement) {
126
67
  if (!isExecute) {
127
68
  let h = !isExecute ? gh : createElement;
@@ -132,30 +73,22 @@ class AggregateColumnsDirective extends vueImport$1 {
132
73
  return h('div', { class: 'e-directive' }, slots);
133
74
  }
134
75
  return;
135
- }
76
+ },
136
77
  updated() {
137
78
  if (!isExecute && this.custom) {
138
79
  this.custom();
139
80
  }
140
- }
141
- getTag() {
142
- return 'e-columns';
143
- }
144
- };
145
- AggregateColumnsDirective = __decorate$1([
146
- EJComponentDecorator({}, isExecute)
147
- /* Start Options({
148
- inject: {
149
- custom: {
150
- default: null
151
- }
81
+ },
82
+ methods: {
83
+ getTag() {
84
+ return 'e-columns';
152
85
  }
153
- }) End */
154
- ], AggregateColumnsDirective);
86
+ }
87
+ });
155
88
  const AggregateColumnsPlugin = {
156
89
  name: 'e-columns',
157
- install(Vue$$1) {
158
- Vue$$1.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
90
+ install(Vue) {
91
+ Vue.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
159
92
  }
160
93
  };
161
94
  /**
@@ -176,50 +109,25 @@ const AggregateColumnsPlugin = {
176
109
  * </ejs-treegrid>
177
110
  * ```
178
111
  */
179
- let AggregateColumnDirective = class AggregateColumnDirective extends vueImport$1 {
112
+ let AggregateColumnDirective = vueDefineComponent({
180
113
  render() {
181
114
  return;
115
+ },
116
+ methods: {
117
+ getTag() {
118
+ return 'e-column';
119
+ }
182
120
  }
183
- getTag() {
184
- return 'e-column';
185
- }
186
- };
187
- AggregateColumnDirective = __decorate$1([
188
- EJComponentDecorator({}, isExecute)
189
- ], AggregateColumnDirective);
121
+ });
190
122
  const AggregateColumnPlugin = {
191
123
  name: 'e-column',
192
- install(Vue$$1) {
193
- Vue$$1.component(AggregateColumnPlugin.name, AggregateColumnDirective);
124
+ install(Vue) {
125
+ Vue.component(AggregateColumnPlugin.name, AggregateColumnDirective);
194
126
  }
195
127
  };
196
128
 
197
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
198
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
199
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
200
- 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;
201
- return c > 3 && r && Object.defineProperty(target, key, r), r;
202
- };
203
- // {{VueImport}}
204
- let vueImport$2;
205
- if (!isExecute || parseInt(allVue.version) < 3) {
206
- vueImport$2 = Vue;
207
- }
208
- else {
209
- vueImport$2 = Vue$1;
210
- }
211
- let AggregatesDirective =
212
- /* Start Options({
213
- inject: {
214
- custom: {
215
- default: null
216
- }
217
- }
218
- }) End */
219
- class AggregatesDirective extends vueImport$2 {
220
- constructor() {
221
- super(arguments);
222
- }
129
+ let AggregatesDirective = vueDefineComponent({
130
+ inject: { custom: { default: null } },
223
131
  render(createElement) {
224
132
  if (!isExecute) {
225
133
  let h = !isExecute ? gh : createElement;
@@ -230,30 +138,22 @@ class AggregatesDirective extends vueImport$2 {
230
138
  return h('div', { class: 'e-directive' }, slots);
231
139
  }
232
140
  return;
233
- }
141
+ },
234
142
  updated() {
235
143
  if (!isExecute && this.custom) {
236
144
  this.custom();
237
145
  }
238
- }
239
- getTag() {
240
- return 'e-aggregates';
241
- }
242
- };
243
- AggregatesDirective = __decorate$2([
244
- EJComponentDecorator({}, isExecute)
245
- /* Start Options({
246
- inject: {
247
- custom: {
248
- default: null
249
- }
146
+ },
147
+ methods: {
148
+ getTag() {
149
+ return 'e-aggregates';
250
150
  }
251
- }) End */
252
- ], AggregatesDirective);
151
+ }
152
+ });
253
153
  const AggregatesPlugin = {
254
154
  name: 'e-aggregates',
255
- install(Vue$$1) {
256
- Vue$$1.component(AggregatesPlugin.name, AggregatesDirective);
155
+ install(Vue) {
156
+ Vue.component(AggregatesPlugin.name, AggregatesDirective);
257
157
  }
258
158
  };
259
159
  /**
@@ -275,32 +175,24 @@ const AggregatesPlugin = {
275
175
  * </ejs-treegrid>
276
176
  * ```
277
177
  */
278
- let AggregateDirective = class AggregateDirective extends vueImport$2 {
178
+ let AggregateDirective = vueDefineComponent({
279
179
  render() {
280
180
  return;
181
+ },
182
+ methods: {
183
+ getTag() {
184
+ return 'e-aggregate';
185
+ }
281
186
  }
282
- getTag() {
283
- return 'e-aggregate';
284
- }
285
- };
286
- AggregateDirective = __decorate$2([
287
- EJComponentDecorator({}, isExecute)
288
- ], AggregateDirective);
187
+ });
289
188
  const AggregatePlugin = {
290
189
  name: 'e-aggregate',
291
- install(Vue$$1) {
292
- Vue$$1.component(AggregatePlugin.name, AggregateDirective);
190
+ install(Vue) {
191
+ Vue.component(AggregatePlugin.name, AggregateDirective);
293
192
  }
294
193
  };
295
194
 
296
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
297
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
298
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
299
- 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;
300
- return c > 3 && r && Object.defineProperty(target, key, r), r;
301
- };
302
- // {{VueImport}}
303
- const 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'];
195
+ const 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'];
304
196
  const modelProps = ['dataSource'];
305
197
  const testProp = getProps({ props: properties });
306
198
  const props = testProp[0];
@@ -316,28 +208,28 @@ for (let props of modelProps) {
316
208
  * <ejs-treegrid :dataSource='data' allowPaging='true' allowSorting='true'></ejs-treegrid>
317
209
  * ```
318
210
  */
319
- let TreeGridComponent =
320
- /* Start Options({
211
+ let TreeGridComponent = vueDefineComponent({
212
+ name: 'TreeGridComponent',
213
+ mixins: [ComponentBase],
321
214
  props: props,
322
215
  watch: watch,
323
216
  emits: emitProbs,
324
- provide: function provide() {
217
+ model: { event: 'modelchanged' },
218
+ provide() { return { custom: this.custom }; },
219
+ data() {
325
220
  return {
326
- custom: this.custom
221
+ ej2Instances: new TreeGrid({}),
222
+ propKeys: properties,
223
+ models: modelProps,
224
+ hasChildDirective: true,
225
+ hasInjectedModules: true,
226
+ tagMapper: { "e-columns": "e-column", "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } },
227
+ tagNameMapper: {},
228
+ isVue3: !isExecute,
229
+ templateCollection: {},
327
230
  };
328
- }
329
- }) End */
330
- class TreeGridComponent extends ComponentBase {
331
- constructor() {
332
- super(arguments);
333
- this.propKeys = properties;
334
- this.models = modelProps;
335
- this.hasChildDirective = true;
336
- this.hasInjectedModules = true;
337
- this.tagMapper = { "e-columns": "e-column", "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } };
338
- this.tagNameMapper = {};
339
- this.isVue3 = !isExecute;
340
- this.ej2Instances = new TreeGrid({});
231
+ },
232
+ created() {
341
233
  this.ej2Instances._trigger = this.ej2Instances.trigger;
342
234
  this.ej2Instances.trigger = this.trigger;
343
235
  this.bindProperties();
@@ -345,425 +237,409 @@ class TreeGridComponent extends ComponentBase {
345
237
  this.ej2Instances.setProperties = this.setProperties;
346
238
  this.ej2Instances.clearTemplate = this.clearTemplate;
347
239
  this.updated = this.updated;
348
- }
349
- clearTemplate(templateNames) {
350
- if (!templateNames) {
351
- templateNames = Object.keys(this.templateCollection || {});
240
+ },
241
+ render(createElement) {
242
+ let h = !isExecute ? gh : createElement;
243
+ let slots = null;
244
+ if (!isNullOrUndefined(this.$slots.default)) {
245
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
352
246
  }
353
- if (templateNames.length && this.templateCollection) {
354
- for (let tempName of templateNames) {
355
- let elementCollection = this.templateCollection[tempName];
356
- if (elementCollection && elementCollection.length) {
357
- for (let ele of elementCollection) {
358
- let destroy = getValue('__vue__.$destroy', ele);
359
- if (destroy) {
360
- ele.__vue__.$destroy();
361
- }
362
- if (ele.innerHTML) {
363
- ele.innerHTML = '';
247
+ return h('div', slots);
248
+ },
249
+ methods: {
250
+ clearTemplate(templateNames) {
251
+ if (!templateNames) {
252
+ templateNames = Object.keys(this.templateCollection || {});
253
+ }
254
+ if (templateNames.length && this.templateCollection) {
255
+ for (let tempName of templateNames) {
256
+ let elementCollection = this.templateCollection[tempName];
257
+ if (elementCollection && elementCollection.length) {
258
+ for (let ele of elementCollection) {
259
+ let destroy = getValue('__vue__.$destroy', ele);
260
+ if (destroy) {
261
+ ele.__vue__.$destroy();
262
+ }
263
+ if (ele.innerHTML) {
264
+ ele.innerHTML = '';
265
+ }
364
266
  }
267
+ delete this.templateCollection[tempName];
365
268
  }
366
- delete this.templateCollection[tempName];
367
269
  }
368
270
  }
369
- }
370
- }
371
- setProperties(prop, muteOnChange) {
372
- if (this.isVue3) {
373
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
374
- }
375
- if (this.ej2Instances && this.ej2Instances._setProperties) {
376
- this.ej2Instances._setProperties(prop, muteOnChange);
377
- }
378
- if (prop && this.models && this.models.length) {
379
- Object.keys(prop).map((key) => {
380
- this.models.map((model) => {
381
- if ((key === model) && !(/datasource/i.test(key))) {
382
- if (this.isVue3) {
383
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
271
+ },
272
+ setProperties(prop, muteOnChange) {
273
+ if (this.isVue3) {
274
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
275
+ }
276
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
277
+ this.ej2Instances._setProperties(prop, muteOnChange);
278
+ }
279
+ if (prop && this.models && this.models.length) {
280
+ Object.keys(prop).map((key) => {
281
+ this.models.map((model) => {
282
+ if ((key === model) && !(/datasource/i.test(key))) {
283
+ if (this.isVue3) {
284
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
285
+ }
286
+ else {
287
+ this.$emit('update:' + key, prop[key]);
288
+ this.$emit('modelchanged', prop[key]);
289
+ }
384
290
  }
385
- else {
386
- this.$emit('update:' + key, prop[key]);
387
- this.$emit('modelchanged', prop[key]);
291
+ });
292
+ });
293
+ }
294
+ },
295
+ trigger(eventName, eventProp, successHandler) {
296
+ if (!isExecute) {
297
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
298
+ }
299
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
300
+ let key = this.models.toString().match(/checked|value/) || [];
301
+ let propKey = key[0];
302
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
303
+ if (!isExecute) {
304
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
305
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
306
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
307
+ }
308
+ else {
309
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
310
+ this.$emit('update:' + propKey, eventProp[propKey]);
311
+ this.$emit('modelchanged', eventProp[propKey]);
388
312
  }
389
313
  }
390
- });
391
- });
392
- }
393
- }
394
- trigger(eventName, eventProp, successHandler) {
395
- if (!isExecute) {
396
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
397
- }
398
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
399
- let key = this.models.toString().match(/checked|value/) || [];
400
- let propKey = key[0];
401
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
402
- if (!isExecute) {
403
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
404
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
405
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
406
314
  }
407
- else {
408
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
315
+ }
316
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
317
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
318
+ let propKey = key[0];
319
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
320
+ if (!isExecute) {
321
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
322
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
323
+ }
324
+ else {
409
325
  this.$emit('update:' + propKey, eventProp[propKey]);
410
326
  this.$emit('modelchanged', eventProp[propKey]);
411
327
  }
412
328
  }
413
329
  }
414
- }
415
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
416
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
417
- let propKey = key[0];
418
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
419
- if (!isExecute) {
420
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
421
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
422
- }
423
- else {
424
- this.$emit('update:' + propKey, eventProp[propKey]);
425
- this.$emit('modelchanged', eventProp[propKey]);
426
- }
330
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
331
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
427
332
  }
428
- }
429
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
430
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
431
- }
432
- }
433
- render(createElement) {
434
- let h = !isExecute ? gh : createElement;
435
- let slots = null;
436
- if (!isNullOrUndefined(this.$slots.default)) {
437
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
438
- }
439
- return h('div', slots);
440
- }
441
- custom() {
442
- this.updated();
443
- }
444
- addRecord(data, index, position) {
445
- return this.ej2Instances.addRecord(data, index, position);
446
- }
447
- autoFitColumns(fieldNames) {
448
- return this.ej2Instances.autoFitColumns(fieldNames);
449
- }
450
- clearFiltering() {
451
- return this.ej2Instances.clearFiltering();
452
- }
453
- clearSelection() {
454
- return this.ej2Instances.clearSelection();
455
- }
456
- clearSorting() {
457
- return this.ej2Instances.clearSorting();
458
- }
459
- closeEdit() {
460
- return this.ej2Instances.closeEdit();
461
- }
462
- collapseAll() {
463
- return this.ej2Instances.collapseAll();
464
- }
465
- collapseAtLevel(level) {
466
- return this.ej2Instances.collapseAtLevel(level);
467
- }
468
- collapseByKey(key) {
469
- return this.ej2Instances.collapseByKey(key);
470
- }
471
- collapseRow(row, record, key) {
472
- return this.ej2Instances.collapseRow(row, record, key);
473
- }
474
- copy(withHeader) {
475
- return this.ej2Instances.copy(withHeader);
476
- }
477
- csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
478
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
479
- }
480
- deleteRecord(fieldName, data) {
481
- return this.ej2Instances.deleteRecord(fieldName, data);
482
- }
483
- deleteRow(tr) {
484
- return this.ej2Instances.deleteRow(tr);
485
- }
486
- editCell(rowIndex, field) {
487
- return this.ej2Instances.editCell(rowIndex, field);
488
- }
489
- enableToolbarItems(items, isEnable) {
490
- return this.ej2Instances.enableToolbarItems(items, isEnable);
491
- }
492
- endEdit() {
493
- return this.ej2Instances.endEdit();
494
- }
495
- excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
496
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
497
- }
498
- expandAll() {
499
- return this.ej2Instances.expandAll();
500
- }
501
- expandAtLevel(level) {
502
- return this.ej2Instances.expandAtLevel(level);
503
- }
504
- expandByKey(key) {
505
- return this.ej2Instances.expandByKey(key);
506
- }
507
- expandRow(row, record, key, level) {
508
- return this.ej2Instances.expandRow(row, record, key, level);
509
- }
510
- extendRequiredModules(modules) {
511
- return this.ej2Instances.extendRequiredModules(modules);
512
- }
513
- filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
514
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
515
- }
516
- getBatchChanges() {
517
- return this.ej2Instances.getBatchChanges();
518
- }
519
- getCellFromIndex(rowIndex, columnIndex) {
520
- return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
521
- }
522
- getCheckedRecords() {
523
- return this.ej2Instances.getCheckedRecords();
524
- }
525
- getCheckedRowIndexes() {
526
- return this.ej2Instances.getCheckedRowIndexes();
527
- }
528
- getColumnByField(field) {
529
- return this.ej2Instances.getColumnByField(field);
530
- }
531
- getColumnByUid(uid) {
532
- return this.ej2Instances.getColumnByUid(uid);
533
- }
534
- getColumnFieldNames() {
535
- return this.ej2Instances.getColumnFieldNames();
536
- }
537
- getColumnHeaderByField(field) {
538
- return this.ej2Instances.getColumnHeaderByField(field);
539
- }
540
- getColumnHeaderByIndex(index) {
541
- return this.ej2Instances.getColumnHeaderByIndex(index);
542
- }
543
- getColumnHeaderByUid(uid) {
544
- return this.ej2Instances.getColumnHeaderByUid(uid);
545
- }
546
- getColumnIndexByField(field) {
547
- return this.ej2Instances.getColumnIndexByField(field);
548
- }
549
- getColumnIndexByUid(uid) {
550
- return this.ej2Instances.getColumnIndexByUid(uid);
551
- }
552
- getColumns(isRefresh) {
553
- return this.ej2Instances.getColumns(isRefresh);
554
- }
555
- getContent() {
556
- return this.ej2Instances.getContent();
557
- }
558
- getContentTable() {
559
- return this.ej2Instances.getContentTable();
560
- }
561
- getCurrentViewRecords() {
562
- return this.ej2Instances.getCurrentViewRecords();
563
- }
564
- getDataModule() {
565
- return this.ej2Instances.getDataModule();
566
- }
567
- getDataRows() {
568
- return this.ej2Instances.getDataRows();
569
- }
570
- getFooterContent() {
571
- return this.ej2Instances.getFooterContent();
572
- }
573
- getFooterContentTable() {
574
- return this.ej2Instances.getFooterContentTable();
575
- }
576
- getFrozenLeftColumnHeaderByIndex(index) {
577
- return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
578
- }
579
- getFrozenRightCellFromIndex(rowIndex, columnIndex) {
580
- return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
581
- }
582
- getFrozenRightColumnHeaderByIndex(index) {
583
- return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
584
- }
585
- getFrozenRightDataRows() {
586
- return this.ej2Instances.getFrozenRightDataRows();
587
- }
588
- getFrozenRightRowByIndex(index) {
589
- return this.ej2Instances.getFrozenRightRowByIndex(index);
590
- }
591
- getFrozenRightRows() {
592
- return this.ej2Instances.getFrozenRightRows();
593
- }
594
- getHeaderContent() {
595
- return this.ej2Instances.getHeaderContent();
596
- }
597
- getHeaderTable() {
598
- return this.ej2Instances.getHeaderTable();
599
- }
600
- getMovableCellFromIndex(rowIndex, columnIndex) {
601
- return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
602
- }
603
- getMovableColumnHeaderByIndex(index) {
604
- return this.ej2Instances.getMovableColumnHeaderByIndex(index);
605
- }
606
- getMovableDataRows() {
607
- return this.ej2Instances.getMovableDataRows();
608
- }
609
- getMovableRowByIndex(index) {
610
- return this.ej2Instances.getMovableRowByIndex(index);
611
- }
612
- getMovableRows() {
613
- return this.ej2Instances.getMovableRows();
614
- }
615
- getPager() {
616
- return this.ej2Instances.getPager();
617
- }
618
- getPrimaryKeyFieldNames() {
619
- return this.ej2Instances.getPrimaryKeyFieldNames();
620
- }
621
- getRowByIndex(index) {
622
- return this.ej2Instances.getRowByIndex(index);
623
- }
624
- getRowInfo(target) {
625
- return this.ej2Instances.getRowInfo(target);
626
- }
627
- getRows() {
628
- return this.ej2Instances.getRows();
629
- }
630
- getSelectedRecords() {
631
- return this.ej2Instances.getSelectedRecords();
632
- }
633
- getSelectedRowCellIndexes() {
634
- return this.ej2Instances.getSelectedRowCellIndexes();
635
- }
636
- getSelectedRowIndexes() {
637
- return this.ej2Instances.getSelectedRowIndexes();
638
- }
639
- getSelectedRows() {
640
- return this.ej2Instances.getSelectedRows();
641
- }
642
- getUidByColumnField(field) {
643
- return this.ej2Instances.getUidByColumnField(field);
644
- }
645
- getVisibleColumns() {
646
- return this.ej2Instances.getVisibleColumns();
647
- }
648
- getVisibleRecords() {
649
- return this.ej2Instances.getVisibleRecords();
650
- }
651
- goToPage(pageNo) {
652
- return this.ej2Instances.goToPage(pageNo);
653
- }
654
- hideColumns(keys, hideBy) {
655
- return this.ej2Instances.hideColumns(keys, hideBy);
656
- }
657
- hideSpinner() {
658
- return this.ej2Instances.hideSpinner();
659
- }
660
- indent(record) {
661
- return this.ej2Instances.indent(record);
662
- }
663
- openColumnChooser(x, y) {
664
- return this.ej2Instances.openColumnChooser(x, y);
665
- }
666
- outdent(record) {
667
- return this.ej2Instances.outdent(record);
668
- }
669
- paste(data, rowIndex, colIndex) {
670
- return this.ej2Instances.paste(data, rowIndex, colIndex);
671
- }
672
- pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
673
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
674
- }
675
- print() {
676
- return this.ej2Instances.print();
677
- }
678
- refresh() {
679
- return this.ej2Instances.refresh();
680
- }
681
- refreshColumns(refreshUI) {
682
- return this.ej2Instances.refreshColumns(refreshUI);
683
- }
684
- refreshHeader() {
685
- return this.ej2Instances.refreshHeader();
686
- }
687
- reorderColumns(fromFName, toFName) {
688
- return this.ej2Instances.reorderColumns(fromFName, toFName);
689
- }
690
- reorderRows(fromIndexes, toIndex, position) {
691
- return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
692
- }
693
- saveCell() {
694
- return this.ej2Instances.saveCell();
695
- }
696
- search(searchString) {
697
- return this.ej2Instances.search(searchString);
698
- }
699
- selectCell(cellIndex, isToggle) {
700
- return this.ej2Instances.selectCell(cellIndex, isToggle);
701
- }
702
- selectCheckboxes(indexes) {
703
- return this.ej2Instances.selectCheckboxes(indexes);
704
- }
705
- selectRow(index, isToggle) {
706
- return this.ej2Instances.selectRow(index, isToggle);
707
- }
708
- selectRows(rowIndexes) {
709
- return this.ej2Instances.selectRows(rowIndexes);
710
- }
711
- setCellValue(key, field, value) {
712
- return this.ej2Instances.setCellValue(key, field, value);
713
- }
714
- setRowData(key, rowData) {
715
- return this.ej2Instances.setRowData(key, rowData);
716
- }
717
- showColumns(keys, showBy) {
718
- return this.ej2Instances.showColumns(keys, showBy);
719
- }
720
- showSpinner() {
721
- return this.ej2Instances.showSpinner();
722
- }
723
- sortByColumn(columnName, direction, isMultiSort) {
724
- return this.ej2Instances.sortByColumn(columnName, direction, isMultiSort);
725
- }
726
- startEdit(row) {
727
- return this.ej2Instances.startEdit(row);
728
- }
729
- updateCell(rowIndex, field, value) {
730
- return this.ej2Instances.updateCell(rowIndex, field, value);
731
- }
732
- updateExternalMessage(message) {
733
- return this.ej2Instances.updateExternalMessage(message);
734
- }
735
- updateRow(index, data) {
736
- return this.ej2Instances.updateRow(index, data);
737
- }
738
- };
739
- TreeGridComponent = __decorate$3([
740
- EJComponentDecorator({
741
- props: properties,
742
- model: {
743
- event: 'modelchanged'
744
- }
745
- }, isExecute)
746
- /* Start Options({
747
- props: props,
748
- watch: watch,
749
- emits: emitProbs,
750
- provide: function provide() {
751
- return {
752
- custom: this.custom
753
- };
754
- }
755
- }) End */
756
- ], TreeGridComponent);
333
+ },
334
+ custom() {
335
+ this.updated();
336
+ },
337
+ addRecord(data, index, position) {
338
+ return this.ej2Instances.addRecord(data, index, position);
339
+ },
340
+ autoFitColumns(fieldNames) {
341
+ return this.ej2Instances.autoFitColumns(fieldNames);
342
+ },
343
+ clearFiltering() {
344
+ return this.ej2Instances.clearFiltering();
345
+ },
346
+ clearSelection() {
347
+ return this.ej2Instances.clearSelection();
348
+ },
349
+ clearSorting() {
350
+ return this.ej2Instances.clearSorting();
351
+ },
352
+ closeEdit() {
353
+ return this.ej2Instances.closeEdit();
354
+ },
355
+ collapseAll() {
356
+ return this.ej2Instances.collapseAll();
357
+ },
358
+ collapseAtLevel(level) {
359
+ return this.ej2Instances.collapseAtLevel(level);
360
+ },
361
+ collapseByKey(key) {
362
+ return this.ej2Instances.collapseByKey(key);
363
+ },
364
+ collapseRow(row, record, key) {
365
+ return this.ej2Instances.collapseRow(row, record, key);
366
+ },
367
+ copy(withHeader) {
368
+ return this.ej2Instances.copy(withHeader);
369
+ },
370
+ csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
371
+ return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
372
+ },
373
+ deleteRecord(fieldName, data) {
374
+ return this.ej2Instances.deleteRecord(fieldName, data);
375
+ },
376
+ deleteRow(tr) {
377
+ return this.ej2Instances.deleteRow(tr);
378
+ },
379
+ editCell(rowIndex, field) {
380
+ return this.ej2Instances.editCell(rowIndex, field);
381
+ },
382
+ enableToolbarItems(items, isEnable) {
383
+ return this.ej2Instances.enableToolbarItems(items, isEnable);
384
+ },
385
+ endEdit() {
386
+ return this.ej2Instances.endEdit();
387
+ },
388
+ excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
389
+ return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
390
+ },
391
+ expandAll() {
392
+ return this.ej2Instances.expandAll();
393
+ },
394
+ expandAtLevel(level) {
395
+ return this.ej2Instances.expandAtLevel(level);
396
+ },
397
+ expandByKey(key) {
398
+ return this.ej2Instances.expandByKey(key);
399
+ },
400
+ expandRow(row, record, key, level) {
401
+ return this.ej2Instances.expandRow(row, record, key, level);
402
+ },
403
+ extendRequiredModules(modules) {
404
+ return this.ej2Instances.extendRequiredModules(modules);
405
+ },
406
+ filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
407
+ return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
408
+ },
409
+ getBatchChanges() {
410
+ return this.ej2Instances.getBatchChanges();
411
+ },
412
+ getCellFromIndex(rowIndex, columnIndex) {
413
+ return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
414
+ },
415
+ getCheckedRecords() {
416
+ return this.ej2Instances.getCheckedRecords();
417
+ },
418
+ getCheckedRowIndexes() {
419
+ return this.ej2Instances.getCheckedRowIndexes();
420
+ },
421
+ getColumnByField(field) {
422
+ return this.ej2Instances.getColumnByField(field);
423
+ },
424
+ getColumnByUid(uid) {
425
+ return this.ej2Instances.getColumnByUid(uid);
426
+ },
427
+ getColumnFieldNames() {
428
+ return this.ej2Instances.getColumnFieldNames();
429
+ },
430
+ getColumnHeaderByField(field) {
431
+ return this.ej2Instances.getColumnHeaderByField(field);
432
+ },
433
+ getColumnHeaderByIndex(index) {
434
+ return this.ej2Instances.getColumnHeaderByIndex(index);
435
+ },
436
+ getColumnHeaderByUid(uid) {
437
+ return this.ej2Instances.getColumnHeaderByUid(uid);
438
+ },
439
+ getColumnIndexByField(field) {
440
+ return this.ej2Instances.getColumnIndexByField(field);
441
+ },
442
+ getColumnIndexByUid(uid) {
443
+ return this.ej2Instances.getColumnIndexByUid(uid);
444
+ },
445
+ getColumns(isRefresh) {
446
+ return this.ej2Instances.getColumns(isRefresh);
447
+ },
448
+ getContent() {
449
+ return this.ej2Instances.getContent();
450
+ },
451
+ getContentTable() {
452
+ return this.ej2Instances.getContentTable();
453
+ },
454
+ getCurrentViewRecords() {
455
+ return this.ej2Instances.getCurrentViewRecords();
456
+ },
457
+ getDataModule() {
458
+ return this.ej2Instances.getDataModule();
459
+ },
460
+ getDataRows() {
461
+ return this.ej2Instances.getDataRows();
462
+ },
463
+ getFooterContent() {
464
+ return this.ej2Instances.getFooterContent();
465
+ },
466
+ getFooterContentTable() {
467
+ return this.ej2Instances.getFooterContentTable();
468
+ },
469
+ getFrozenLeftColumnHeaderByIndex(index) {
470
+ return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
471
+ },
472
+ getFrozenRightCellFromIndex(rowIndex, columnIndex) {
473
+ return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
474
+ },
475
+ getFrozenRightColumnHeaderByIndex(index) {
476
+ return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
477
+ },
478
+ getFrozenRightDataRows() {
479
+ return this.ej2Instances.getFrozenRightDataRows();
480
+ },
481
+ getFrozenRightRowByIndex(index) {
482
+ return this.ej2Instances.getFrozenRightRowByIndex(index);
483
+ },
484
+ getFrozenRightRows() {
485
+ return this.ej2Instances.getFrozenRightRows();
486
+ },
487
+ getHeaderContent() {
488
+ return this.ej2Instances.getHeaderContent();
489
+ },
490
+ getHeaderTable() {
491
+ return this.ej2Instances.getHeaderTable();
492
+ },
493
+ getMovableCellFromIndex(rowIndex, columnIndex) {
494
+ return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
495
+ },
496
+ getMovableColumnHeaderByIndex(index) {
497
+ return this.ej2Instances.getMovableColumnHeaderByIndex(index);
498
+ },
499
+ getMovableDataRows() {
500
+ return this.ej2Instances.getMovableDataRows();
501
+ },
502
+ getMovableRowByIndex(index) {
503
+ return this.ej2Instances.getMovableRowByIndex(index);
504
+ },
505
+ getMovableRows() {
506
+ return this.ej2Instances.getMovableRows();
507
+ },
508
+ getPager() {
509
+ return this.ej2Instances.getPager();
510
+ },
511
+ getPrimaryKeyFieldNames() {
512
+ return this.ej2Instances.getPrimaryKeyFieldNames();
513
+ },
514
+ getRowByIndex(index) {
515
+ return this.ej2Instances.getRowByIndex(index);
516
+ },
517
+ getRowInfo(target) {
518
+ return this.ej2Instances.getRowInfo(target);
519
+ },
520
+ getRows() {
521
+ return this.ej2Instances.getRows();
522
+ },
523
+ getSelectedRecords() {
524
+ return this.ej2Instances.getSelectedRecords();
525
+ },
526
+ getSelectedRowCellIndexes() {
527
+ return this.ej2Instances.getSelectedRowCellIndexes();
528
+ },
529
+ getSelectedRowIndexes() {
530
+ return this.ej2Instances.getSelectedRowIndexes();
531
+ },
532
+ getSelectedRows() {
533
+ return this.ej2Instances.getSelectedRows();
534
+ },
535
+ getUidByColumnField(field) {
536
+ return this.ej2Instances.getUidByColumnField(field);
537
+ },
538
+ getVisibleColumns() {
539
+ return this.ej2Instances.getVisibleColumns();
540
+ },
541
+ getVisibleRecords() {
542
+ return this.ej2Instances.getVisibleRecords();
543
+ },
544
+ goToPage(pageNo) {
545
+ return this.ej2Instances.goToPage(pageNo);
546
+ },
547
+ hideColumns(keys, hideBy) {
548
+ return this.ej2Instances.hideColumns(keys, hideBy);
549
+ },
550
+ hideSpinner() {
551
+ return this.ej2Instances.hideSpinner();
552
+ },
553
+ indent(record) {
554
+ return this.ej2Instances.indent(record);
555
+ },
556
+ openColumnChooser(x, y) {
557
+ return this.ej2Instances.openColumnChooser(x, y);
558
+ },
559
+ outdent(record) {
560
+ return this.ej2Instances.outdent(record);
561
+ },
562
+ paste(data, rowIndex, colIndex) {
563
+ return this.ej2Instances.paste(data, rowIndex, colIndex);
564
+ },
565
+ pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
566
+ return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
567
+ },
568
+ print() {
569
+ return this.ej2Instances.print();
570
+ },
571
+ refresh() {
572
+ return this.ej2Instances.refresh();
573
+ },
574
+ refreshColumns(refreshUI) {
575
+ return this.ej2Instances.refreshColumns(refreshUI);
576
+ },
577
+ refreshHeader() {
578
+ return this.ej2Instances.refreshHeader();
579
+ },
580
+ reorderColumns(fromFName, toFName) {
581
+ return this.ej2Instances.reorderColumns(fromFName, toFName);
582
+ },
583
+ reorderRows(fromIndexes, toIndex, position) {
584
+ return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
585
+ },
586
+ saveCell() {
587
+ return this.ej2Instances.saveCell();
588
+ },
589
+ search(searchString) {
590
+ return this.ej2Instances.search(searchString);
591
+ },
592
+ selectCell(cellIndex, isToggle) {
593
+ return this.ej2Instances.selectCell(cellIndex, isToggle);
594
+ },
595
+ selectCheckboxes(indexes) {
596
+ return this.ej2Instances.selectCheckboxes(indexes);
597
+ },
598
+ selectRow(index, isToggle) {
599
+ return this.ej2Instances.selectRow(index, isToggle);
600
+ },
601
+ selectRows(rowIndexes) {
602
+ return this.ej2Instances.selectRows(rowIndexes);
603
+ },
604
+ setCellValue(key, field, value) {
605
+ return this.ej2Instances.setCellValue(key, field, value);
606
+ },
607
+ setRowData(key, rowData) {
608
+ return this.ej2Instances.setRowData(key, rowData);
609
+ },
610
+ showColumns(keys, showBy) {
611
+ return this.ej2Instances.showColumns(keys, showBy);
612
+ },
613
+ showSpinner() {
614
+ return this.ej2Instances.showSpinner();
615
+ },
616
+ sortByColumn(columnName, direction, isMultiSort) {
617
+ return this.ej2Instances.sortByColumn(columnName, direction, isMultiSort);
618
+ },
619
+ startEdit(row) {
620
+ return this.ej2Instances.startEdit(row);
621
+ },
622
+ updateCell(rowIndex, field, value) {
623
+ return this.ej2Instances.updateCell(rowIndex, field, value);
624
+ },
625
+ updateExternalMessage(message) {
626
+ return this.ej2Instances.updateExternalMessage(message);
627
+ },
628
+ updateRow(index, data) {
629
+ return this.ej2Instances.updateRow(index, data);
630
+ },
631
+ }
632
+ });
757
633
  const TreeGridPlugin = {
758
634
  name: 'ejs-treegrid',
759
- install(Vue$$1) {
760
- Vue$$1.component(TreeGridPlugin.name, TreeGridComponent);
761
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
762
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
763
- Vue$$1.component(AggregatePlugin.name, AggregateDirective);
764
- Vue$$1.component(AggregatesPlugin.name, AggregatesDirective);
765
- Vue$$1.component(AggregateColumnPlugin.name, AggregateColumnDirective);
766
- Vue$$1.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
635
+ install(Vue) {
636
+ Vue.component(TreeGridPlugin.name, TreeGridComponent);
637
+ Vue.component(ColumnPlugin.name, ColumnDirective);
638
+ Vue.component(ColumnsPlugin.name, ColumnsDirective);
639
+ Vue.component(AggregatePlugin.name, AggregateDirective);
640
+ Vue.component(AggregatesPlugin.name, AggregatesDirective);
641
+ Vue.component(AggregateColumnPlugin.name, AggregateColumnDirective);
642
+ Vue.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
767
643
  }
768
644
  };
769
645