@syncfusion/ej2-vue-grids 20.4.54 → 21.1.37

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +36 -147
  2. package/dist/ej2-vue-grids.umd.min.js +2 -2
  3. package/dist/ej2-vue-grids.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-grids.es2015.js +704 -881
  5. package/dist/es6/ej2-vue-grids.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-grids.es5.js +751 -986
  7. package/dist/es6/ej2-vue-grids.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-grids.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/grid/aggregate-columns.directive.d.ts +2 -12
  11. package/src/grid/aggregate-columns.directive.js +22 -71
  12. package/src/grid/aggregates.directive.d.ts +2 -12
  13. package/src/grid/aggregates.directive.js +22 -71
  14. package/src/grid/columns.directive.d.ts +2 -12
  15. package/src/grid/columns.directive.js +22 -71
  16. package/src/grid/grid.component.d.ts +3 -155
  17. package/src/grid/grid.component.js +513 -541
  18. package/src/grid/stacked-column.directive.d.ts +2 -12
  19. package/src/grid/stacked-column.directive.js +22 -71
  20. package/src/pager/pager.component.d.ts +3 -29
  21. package/src/pager/pager.component.js +131 -162
  22. package/styles/bootstrap-dark.css +33 -9
  23. package/styles/bootstrap.css +33 -9
  24. package/styles/bootstrap4.css +33 -9
  25. package/styles/bootstrap5-dark.css +34 -10
  26. package/styles/bootstrap5.css +34 -10
  27. package/styles/excel-filter/bootstrap-dark.css +9 -0
  28. package/styles/excel-filter/bootstrap.css +9 -0
  29. package/styles/excel-filter/bootstrap4.css +9 -0
  30. package/styles/excel-filter/bootstrap5-dark.css +9 -0
  31. package/styles/excel-filter/bootstrap5.css +9 -0
  32. package/styles/excel-filter/fabric-dark.css +9 -0
  33. package/styles/excel-filter/fabric.css +9 -0
  34. package/styles/excel-filter/fluent-dark.css +11 -2
  35. package/styles/excel-filter/fluent.css +11 -2
  36. package/styles/excel-filter/highcontrast-light.css +9 -0
  37. package/styles/excel-filter/highcontrast.css +9 -0
  38. package/styles/excel-filter/material-dark.css +9 -0
  39. package/styles/excel-filter/material.css +9 -0
  40. package/styles/excel-filter/tailwind-dark.css +9 -0
  41. package/styles/excel-filter/tailwind.css +9 -0
  42. package/styles/fabric-dark.css +33 -9
  43. package/styles/fabric.css +33 -9
  44. package/styles/fluent-dark.css +65 -18
  45. package/styles/fluent.css +65 -18
  46. package/styles/grid/bootstrap-dark.css +24 -9
  47. package/styles/grid/bootstrap.css +24 -9
  48. package/styles/grid/bootstrap4.css +24 -9
  49. package/styles/grid/bootstrap5-dark.css +25 -10
  50. package/styles/grid/bootstrap5.css +25 -10
  51. package/styles/grid/fabric-dark.css +24 -9
  52. package/styles/grid/fabric.css +24 -9
  53. package/styles/grid/fluent-dark.css +54 -16
  54. package/styles/grid/fluent.css +54 -16
  55. package/styles/grid/highcontrast-light.css +26 -11
  56. package/styles/grid/highcontrast.css +24 -9
  57. package/styles/grid/material-dark.css +24 -9
  58. package/styles/grid/material.css +24 -9
  59. package/styles/grid/tailwind-dark.css +24 -9
  60. package/styles/grid/tailwind.css +24 -9
  61. package/styles/highcontrast-light.css +35 -11
  62. package/styles/highcontrast.css +33 -9
  63. package/styles/material-dark.css +33 -9
  64. package/styles/material.css +33 -9
  65. package/styles/tailwind-dark.css +33 -9
  66. package/styles/tailwind.css +33 -9
@@ -1,35 +1,9 @@
1
1
  import { Grid, Pager } from '@syncfusion/ej2-grids';
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 StackedColumnsDirective =
22
- /* Start Options({
23
- inject: {
24
- custom: {
25
- default: null
26
- }
27
- }
28
- }) End */
29
- class StackedColumnsDirective extends vueImport {
30
- constructor() {
31
- super(arguments);
32
- }
5
+ let StackedColumnsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
33
7
  render(createElement) {
34
8
  if (!isExecute) {
35
9
  let h = !isExecute ? gh : createElement;
@@ -40,76 +14,43 @@ class StackedColumnsDirective 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-stacked-columns';
51
- }
52
- };
53
- StackedColumnsDirective = __decorate([
54
- EJComponentDecorator({}, isExecute)
55
- /* Start Options({
56
- inject: {
57
- custom: {
58
- default: null
59
- }
22
+ },
23
+ methods: {
24
+ getTag() {
25
+ return 'e-stacked-columns';
60
26
  }
61
- }) End */
62
- ], StackedColumnsDirective);
27
+ }
28
+ });
63
29
  const StackedColumnsPlugin = {
64
30
  name: 'e-stacked-columns',
65
- install(Vue$$1) {
66
- Vue$$1.component(StackedColumnsPlugin.name, StackedColumnsDirective);
31
+ install(Vue) {
32
+ Vue.component(StackedColumnsPlugin.name, StackedColumnsDirective);
67
33
  }
68
34
  };
69
- let StackedColumnDirective = class StackedColumnDirective extends vueImport {
35
+ let StackedColumnDirective = vueDefineComponent({
70
36
  render() {
71
37
  return;
38
+ },
39
+ methods: {
40
+ getTag() {
41
+ return 'e-stacked-column';
42
+ }
72
43
  }
73
- getTag() {
74
- return 'e-stacked-column';
75
- }
76
- };
77
- StackedColumnDirective = __decorate([
78
- EJComponentDecorator({}, isExecute)
79
- ], StackedColumnDirective);
44
+ });
80
45
  const StackedColumnPlugin = {
81
46
  name: 'e-stacked-column',
82
- install(Vue$$1) {
83
- Vue$$1.component(StackedColumnPlugin.name, StackedColumnDirective);
47
+ install(Vue) {
48
+ Vue.component(StackedColumnPlugin.name, StackedColumnDirective);
84
49
  }
85
50
  };
86
51
 
87
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
88
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
90
- 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;
91
- return c > 3 && r && Object.defineProperty(target, key, r), r;
92
- };
93
- // {{VueImport}}
94
- let vueImport$1;
95
- if (!isExecute || parseInt(allVue.version) < 3) {
96
- vueImport$1 = Vue;
97
- }
98
- else {
99
- vueImport$1 = Vue$1;
100
- }
101
- let ColumnsDirective =
102
- /* Start Options({
103
- inject: {
104
- custom: {
105
- default: null
106
- }
107
- }
108
- }) End */
109
- class ColumnsDirective extends vueImport$1 {
110
- constructor() {
111
- super(arguments);
112
- }
52
+ let ColumnsDirective = vueDefineComponent({
53
+ inject: { custom: { default: null } },
113
54
  render(createElement) {
114
55
  if (!isExecute) {
115
56
  let h = !isExecute ? gh : createElement;
@@ -120,30 +61,22 @@ class ColumnsDirective extends vueImport$1 {
120
61
  return h('div', { class: 'e-directive' }, slots);
121
62
  }
122
63
  return;
123
- }
64
+ },
124
65
  updated() {
125
66
  if (!isExecute && this.custom) {
126
67
  this.custom();
127
68
  }
128
- }
129
- getTag() {
130
- return 'e-columns';
131
- }
132
- };
133
- ColumnsDirective = __decorate$1([
134
- EJComponentDecorator({}, isExecute)
135
- /* Start Options({
136
- inject: {
137
- custom: {
138
- default: null
139
- }
69
+ },
70
+ methods: {
71
+ getTag() {
72
+ return 'e-columns';
140
73
  }
141
- }) End */
142
- ], ColumnsDirective);
74
+ }
75
+ });
143
76
  const ColumnsPlugin = {
144
77
  name: 'e-columns',
145
- install(Vue$$1) {
146
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
78
+ install(Vue) {
79
+ Vue.component(ColumnsPlugin.name, ColumnsDirective);
147
80
  }
148
81
  };
149
82
  /**
@@ -158,50 +91,25 @@ const ColumnsPlugin = {
158
91
  * </ejs-grid>
159
92
  * ```
160
93
  */
161
- let ColumnDirective = class ColumnDirective extends vueImport$1 {
94
+ let ColumnDirective = vueDefineComponent({
162
95
  render() {
163
96
  return;
97
+ },
98
+ methods: {
99
+ getTag() {
100
+ return 'e-column';
101
+ }
164
102
  }
165
- getTag() {
166
- return 'e-column';
167
- }
168
- };
169
- ColumnDirective = __decorate$1([
170
- EJComponentDecorator({}, isExecute)
171
- ], ColumnDirective);
103
+ });
172
104
  const ColumnPlugin = {
173
105
  name: 'e-column',
174
- install(Vue$$1) {
175
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
106
+ install(Vue) {
107
+ Vue.component(ColumnPlugin.name, ColumnDirective);
176
108
  }
177
109
  };
178
110
 
179
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
180
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
181
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
182
- 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;
183
- return c > 3 && r && Object.defineProperty(target, key, r), r;
184
- };
185
- // {{VueImport}}
186
- let vueImport$2;
187
- if (!isExecute || parseInt(allVue.version) < 3) {
188
- vueImport$2 = Vue;
189
- }
190
- else {
191
- vueImport$2 = Vue$1;
192
- }
193
- let AggregateColumnsDirective =
194
- /* Start Options({
195
- inject: {
196
- custom: {
197
- default: null
198
- }
199
- }
200
- }) End */
201
- class AggregateColumnsDirective extends vueImport$2 {
202
- constructor() {
203
- super(arguments);
204
- }
111
+ let AggregateColumnsDirective = vueDefineComponent({
112
+ inject: { custom: { default: null } },
205
113
  render(createElement) {
206
114
  if (!isExecute) {
207
115
  let h = !isExecute ? gh : createElement;
@@ -212,30 +120,22 @@ class AggregateColumnsDirective extends vueImport$2 {
212
120
  return h('div', { class: 'e-directive' }, slots);
213
121
  }
214
122
  return;
215
- }
123
+ },
216
124
  updated() {
217
125
  if (!isExecute && this.custom) {
218
126
  this.custom();
219
127
  }
220
- }
221
- getTag() {
222
- return 'e-columns';
223
- }
224
- };
225
- AggregateColumnsDirective = __decorate$2([
226
- EJComponentDecorator({}, isExecute)
227
- /* Start Options({
228
- inject: {
229
- custom: {
230
- default: null
231
- }
128
+ },
129
+ methods: {
130
+ getTag() {
131
+ return 'e-columns';
232
132
  }
233
- }) End */
234
- ], AggregateColumnsDirective);
133
+ }
134
+ });
235
135
  const AggregateColumnsPlugin = {
236
136
  name: 'e-columns',
237
- install(Vue$$1) {
238
- Vue$$1.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
137
+ install(Vue) {
138
+ Vue.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
239
139
  }
240
140
  };
241
141
  /**
@@ -256,50 +156,25 @@ const AggregateColumnsPlugin = {
256
156
  * </ejs-grid>
257
157
  * ```
258
158
  */
259
- let AggregateColumnDirective = class AggregateColumnDirective extends vueImport$2 {
159
+ let AggregateColumnDirective = vueDefineComponent({
260
160
  render() {
261
161
  return;
162
+ },
163
+ methods: {
164
+ getTag() {
165
+ return 'e-column';
166
+ }
262
167
  }
263
- getTag() {
264
- return 'e-column';
265
- }
266
- };
267
- AggregateColumnDirective = __decorate$2([
268
- EJComponentDecorator({}, isExecute)
269
- ], AggregateColumnDirective);
168
+ });
270
169
  const AggregateColumnPlugin = {
271
170
  name: 'e-column',
272
- install(Vue$$1) {
273
- Vue$$1.component(AggregateColumnPlugin.name, AggregateColumnDirective);
171
+ install(Vue) {
172
+ Vue.component(AggregateColumnPlugin.name, AggregateColumnDirective);
274
173
  }
275
174
  };
276
175
 
277
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
278
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
279
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
280
- 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;
281
- return c > 3 && r && Object.defineProperty(target, key, r), r;
282
- };
283
- // {{VueImport}}
284
- let vueImport$3;
285
- if (!isExecute || parseInt(allVue.version) < 3) {
286
- vueImport$3 = Vue;
287
- }
288
- else {
289
- vueImport$3 = Vue$1;
290
- }
291
- let AggregatesDirective =
292
- /* Start Options({
293
- inject: {
294
- custom: {
295
- default: null
296
- }
297
- }
298
- }) End */
299
- class AggregatesDirective extends vueImport$3 {
300
- constructor() {
301
- super(arguments);
302
- }
176
+ let AggregatesDirective = vueDefineComponent({
177
+ inject: { custom: { default: null } },
303
178
  render(createElement) {
304
179
  if (!isExecute) {
305
180
  let h = !isExecute ? gh : createElement;
@@ -310,30 +185,22 @@ class AggregatesDirective extends vueImport$3 {
310
185
  return h('div', { class: 'e-directive' }, slots);
311
186
  }
312
187
  return;
313
- }
188
+ },
314
189
  updated() {
315
190
  if (!isExecute && this.custom) {
316
191
  this.custom();
317
192
  }
318
- }
319
- getTag() {
320
- return 'e-aggregates';
321
- }
322
- };
323
- AggregatesDirective = __decorate$3([
324
- EJComponentDecorator({}, isExecute)
325
- /* Start Options({
326
- inject: {
327
- custom: {
328
- default: null
329
- }
193
+ },
194
+ methods: {
195
+ getTag() {
196
+ return 'e-aggregates';
330
197
  }
331
- }) End */
332
- ], AggregatesDirective);
198
+ }
199
+ });
333
200
  const AggregatesPlugin = {
334
201
  name: 'e-aggregates',
335
- install(Vue$$1) {
336
- Vue$$1.component(AggregatesPlugin.name, AggregatesDirective);
202
+ install(Vue) {
203
+ Vue.component(AggregatesPlugin.name, AggregatesDirective);
337
204
  }
338
205
  };
339
206
  /**
@@ -355,32 +222,24 @@ const AggregatesPlugin = {
355
222
  * </ejs-grid>
356
223
  * ```
357
224
  */
358
- let AggregateDirective = class AggregateDirective extends vueImport$3 {
225
+ let AggregateDirective = vueDefineComponent({
359
226
  render() {
360
227
  return;
228
+ },
229
+ methods: {
230
+ getTag() {
231
+ return 'e-aggregate';
232
+ }
361
233
  }
362
- getTag() {
363
- return 'e-aggregate';
364
- }
365
- };
366
- AggregateDirective = __decorate$3([
367
- EJComponentDecorator({}, isExecute)
368
- ], AggregateDirective);
234
+ });
369
235
  const AggregatePlugin = {
370
236
  name: 'e-aggregate',
371
- install(Vue$$1) {
372
- Vue$$1.component(AggregatePlugin.name, AggregateDirective);
237
+ install(Vue) {
238
+ Vue.component(AggregatePlugin.name, AggregateDirective);
373
239
  }
374
240
  };
375
241
 
376
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
377
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
378
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
379
- 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;
380
- return c > 3 && r && Object.defineProperty(target, key, r), r;
381
- };
382
- // {{VueImport}}
383
- const properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowGrouping', 'allowKeyboard', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'childGrid', 'clipMode', 'columnChooserSettings', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'cssClass', 'currencyCode', 'currentAction', 'dataSource', 'detailTemplate', 'editSettings', 'ej2StatePersistenceVersion', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableColumnVirtualization', 'enableHeaderFocus', 'enableHover', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableStickyHeader', 'enableVirtualMaskRow', 'enableVirtualization', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'groupSettings', 'height', 'hierarchyPrintMode', 'infiniteScrollSettings', 'loadingIndicator', 'locale', 'pageSettings', 'pagerTemplate', 'parentDetails', 'printMode', 'query', 'queryString', 'resizeSettings', 'rowDropSettings', 'rowHeight', 'rowRenderingMode', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'sortSettings', 'textWrapSettings', 'toolbar', 'toolbarTemplate', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeAutoFill', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforeOpenAdaptiveDialog', 'beforeOpenColumnChooser', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkBoxChange', 'columnDataStateChange', 'columnDeselected', 'columnDeselecting', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'columnSelected', 'columnSelecting', 'commandClick', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'destroyed', 'detailDataBound', 'excelAggregateQueryCellInfo', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'exportDetailDataBound', 'exportGroupCaption', 'headerCellInfo', 'keyPressed', 'lazyLoadGroupCollapse', 'lazyLoadGroupExpand', 'load', 'pdfAggregateQueryCellInfo', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordClick', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
242
+ const properties = ['isLazyUpdate', 'plugins', 'aggregates', 'allowExcelExport', 'allowFiltering', 'allowGrouping', 'allowKeyboard', 'allowMultiSorting', 'allowPaging', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTextWrap', 'autoFit', 'childGrid', 'clipMode', 'columnChooserSettings', 'columnMenuItems', 'columnQueryMode', 'columns', 'contextMenuItems', 'cssClass', 'currencyCode', 'currentAction', 'currentViewData', 'dataSource', 'detailTemplate', 'editSettings', 'ej2StatePersistenceVersion', 'enableAdaptiveUI', 'enableAltRow', 'enableAutoFill', 'enableColumnVirtualization', 'enableHeaderFocus', 'enableHover', 'enableHtmlSanitizer', 'enableImmutableMode', 'enableInfiniteScrolling', 'enablePersistence', 'enableRtl', 'enableStickyHeader', 'enableVirtualMaskRow', 'enableVirtualization', 'filterSettings', 'frozenColumns', 'frozenRows', 'gridLines', 'groupSettings', 'height', 'hierarchyPrintMode', 'infiniteScrollSettings', 'loadingIndicator', 'locale', 'pageSettings', 'pagerTemplate', 'parentDetails', 'printMode', 'query', 'queryString', 'resizeSettings', 'rowDropSettings', 'rowHeight', 'rowRenderingMode', 'rowTemplate', 'searchSettings', 'selectedRowIndex', 'selectionSettings', 'showColumnChooser', 'showColumnMenu', 'showHider', 'sortSettings', 'textWrapSettings', 'toolbar', 'toolbarTemplate', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'batchAdd', 'batchCancel', 'batchDelete', 'beforeAutoFill', 'beforeBatchAdd', 'beforeBatchDelete', 'beforeBatchSave', 'beforeCopy', 'beforeDataBound', 'beforeExcelExport', 'beforeOpenAdaptiveDialog', 'beforeOpenColumnChooser', 'beforePaste', 'beforePdfExport', 'beforePrint', 'beginEdit', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', 'cellSaved', 'cellSelected', 'cellSelecting', 'checkBoxChange', 'columnDataStateChange', 'columnDeselected', 'columnDeselecting', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'columnSelected', 'columnSelecting', 'commandClick', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataSourceChanged', 'dataStateChange', 'destroyed', 'detailDataBound', 'excelAggregateQueryCellInfo', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'exportDetailDataBound', 'exportGroupCaption', 'headerCellInfo', 'keyPressed', 'lazyLoadGroupCollapse', 'lazyLoadGroupExpand', 'load', 'pdfAggregateQueryCellInfo', 'pdfExportComplete', 'pdfHeaderQueryCellInfo', 'pdfQueryCellInfo', 'printComplete', 'queryCellInfo', 'recordClick', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'toolbarClick'];
384
243
  const modelProps = ['dataSource'];
385
244
  const testProp = getProps({ props: properties });
386
245
  const props = testProp[0];
@@ -396,28 +255,28 @@ for (let props of modelProps) {
396
255
  * <ejs-grid :dataSource='data' allowPaging='true' allowSorting='true'></ejs-grid>
397
256
  * ```
398
257
  */
399
- let GridComponent =
400
- /* Start Options({
258
+ let GridComponent = vueDefineComponent({
259
+ name: 'GridComponent',
260
+ mixins: [ComponentBase],
401
261
  props: props,
402
262
  watch: watch,
403
263
  emits: emitProbs,
404
- provide: function provide() {
264
+ model: { event: 'modelchanged' },
265
+ provide() { return { custom: this.custom }; },
266
+ data() {
405
267
  return {
406
- custom: this.custom
268
+ ej2Instances: new Grid({}),
269
+ propKeys: properties,
270
+ models: modelProps,
271
+ hasChildDirective: true,
272
+ hasInjectedModules: true,
273
+ tagMapper: { "e-columns": { "e-column": { "e-stacked-columns": "e-stacked-column" } }, "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } },
274
+ tagNameMapper: { "e-stacked-columns": "e-columns" },
275
+ isVue3: !isExecute,
276
+ templateCollection: {},
407
277
  };
408
- }
409
- }) End */
410
- class GridComponent extends ComponentBase {
411
- constructor() {
412
- super(arguments);
413
- this.propKeys = properties;
414
- this.models = modelProps;
415
- this.hasChildDirective = true;
416
- this.hasInjectedModules = true;
417
- this.tagMapper = { "e-columns": { "e-column": { "e-stacked-columns": "e-stacked-column" } }, "e-aggregates": { "e-aggregate": { "e-columns": "e-column" } } };
418
- this.tagNameMapper = { "e-stacked-columns": "e-columns" };
419
- this.isVue3 = !isExecute;
420
- this.ej2Instances = new Grid({});
278
+ },
279
+ created() {
421
280
  this.ej2Instances._trigger = this.ej2Instances.trigger;
422
281
  this.ej2Instances.trigger = this.trigger;
423
282
  this.bindProperties();
@@ -425,533 +284,513 @@ class GridComponent extends ComponentBase {
425
284
  this.ej2Instances.setProperties = this.setProperties;
426
285
  this.ej2Instances.clearTemplate = this.clearTemplate;
427
286
  this.updated = this.updated;
428
- }
429
- clearTemplate(templateNames) {
430
- if (!templateNames) {
431
- templateNames = Object.keys(this.templateCollection || {});
287
+ },
288
+ render(createElement) {
289
+ let h = !isExecute ? gh : createElement;
290
+ let slots = null;
291
+ if (!isNullOrUndefined(this.$slots.default)) {
292
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
432
293
  }
433
- if (templateNames.length && this.templateCollection) {
434
- for (let tempName of templateNames) {
435
- let elementCollection = this.templateCollection[tempName];
436
- if (elementCollection && elementCollection.length) {
437
- for (let ele of elementCollection) {
438
- let destroy = getValue('__vue__.$destroy', ele);
439
- if (destroy) {
440
- ele.__vue__.$destroy();
441
- }
442
- if (ele.innerHTML) {
443
- ele.innerHTML = '';
294
+ return h('div', slots);
295
+ },
296
+ methods: {
297
+ clearTemplate(templateNames) {
298
+ if (!templateNames) {
299
+ templateNames = Object.keys(this.templateCollection || {});
300
+ }
301
+ if (templateNames.length && this.templateCollection) {
302
+ for (let tempName of templateNames) {
303
+ let elementCollection = this.templateCollection[tempName];
304
+ if (elementCollection && elementCollection.length) {
305
+ for (let ele of elementCollection) {
306
+ let destroy = getValue('__vue__.$destroy', ele);
307
+ if (destroy) {
308
+ ele.__vue__.$destroy();
309
+ }
310
+ if (ele.innerHTML) {
311
+ ele.innerHTML = '';
312
+ }
444
313
  }
314
+ delete this.templateCollection[tempName];
445
315
  }
446
- delete this.templateCollection[tempName];
447
316
  }
448
317
  }
449
- }
450
- }
451
- setProperties(prop, muteOnChange) {
452
- if (this.isVue3) {
453
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
454
- }
455
- if (this.ej2Instances && this.ej2Instances._setProperties) {
456
- this.ej2Instances._setProperties(prop, muteOnChange);
457
- }
458
- if (prop && this.models && this.models.length) {
459
- Object.keys(prop).map((key) => {
460
- this.models.map((model) => {
461
- if ((key === model) && !(/datasource/i.test(key))) {
462
- if (this.isVue3) {
463
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
318
+ },
319
+ setProperties(prop, muteOnChange) {
320
+ if (this.isVue3) {
321
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
322
+ }
323
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
324
+ this.ej2Instances._setProperties(prop, muteOnChange);
325
+ }
326
+ if (prop && this.models && this.models.length) {
327
+ Object.keys(prop).map((key) => {
328
+ this.models.map((model) => {
329
+ if ((key === model) && !(/datasource/i.test(key))) {
330
+ if (this.isVue3) {
331
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
332
+ }
333
+ else {
334
+ this.$emit('update:' + key, prop[key]);
335
+ this.$emit('modelchanged', prop[key]);
336
+ }
464
337
  }
465
- else {
466
- this.$emit('update:' + key, prop[key]);
467
- this.$emit('modelchanged', prop[key]);
338
+ });
339
+ });
340
+ }
341
+ },
342
+ trigger(eventName, eventProp, successHandler) {
343
+ if (!isExecute) {
344
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
345
+ }
346
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
347
+ let key = this.models.toString().match(/checked|value/) || [];
348
+ let propKey = key[0];
349
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
350
+ if (!isExecute) {
351
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
352
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
353
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
354
+ }
355
+ else {
356
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
357
+ this.$emit('update:' + propKey, eventProp[propKey]);
358
+ this.$emit('modelchanged', eventProp[propKey]);
468
359
  }
469
360
  }
470
- });
471
- });
472
- }
473
- }
474
- trigger(eventName, eventProp, successHandler) {
475
- if (!isExecute) {
476
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
477
- }
478
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
479
- let key = this.models.toString().match(/checked|value/) || [];
480
- let propKey = key[0];
481
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
482
- if (!isExecute) {
483
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
484
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
485
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
486
361
  }
487
- else {
488
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
362
+ }
363
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
364
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
365
+ let propKey = key[0];
366
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
367
+ if (!isExecute) {
368
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
369
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
370
+ }
371
+ else {
489
372
  this.$emit('update:' + propKey, eventProp[propKey]);
490
373
  this.$emit('modelchanged', eventProp[propKey]);
491
374
  }
492
375
  }
493
376
  }
494
- }
495
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
496
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
497
- let propKey = key[0];
498
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
499
- if (!isExecute) {
500
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
501
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
502
- }
503
- else {
504
- this.$emit('update:' + propKey, eventProp[propKey]);
505
- this.$emit('modelchanged', eventProp[propKey]);
506
- }
377
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
378
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
507
379
  }
508
- }
509
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
510
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
511
- }
512
- }
513
- render(createElement) {
514
- let h = !isExecute ? gh : createElement;
515
- let slots = null;
516
- if (!isNullOrUndefined(this.$slots.default)) {
517
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
518
- }
519
- return h('div', slots);
520
- }
521
- custom() {
522
- this.updated();
523
- }
524
- addRecord(data, index) {
525
- return this.ej2Instances.addRecord(data, index);
526
- }
527
- addShimmerEffect() {
528
- return this.ej2Instances.addShimmerEffect();
529
- }
530
- autoFitColumns(fieldNames) {
531
- return this.ej2Instances.autoFitColumns(fieldNames);
532
- }
533
- batchAsyncUpdate(changes) {
534
- return this.ej2Instances.batchAsyncUpdate(changes);
535
- }
536
- batchUpdate(changes) {
537
- return this.ej2Instances.batchUpdate(changes);
538
- }
539
- calculatePageSizeByParentHeight(containerHeight) {
540
- return this.ej2Instances.calculatePageSizeByParentHeight(containerHeight);
541
- }
542
- clearCellSelection() {
543
- return this.ej2Instances.clearCellSelection();
544
- }
545
- clearFiltering(fields) {
546
- return this.ej2Instances.clearFiltering(fields);
547
- }
548
- clearGrouping() {
549
- return this.ej2Instances.clearGrouping();
550
- }
551
- clearRowSelection() {
552
- return this.ej2Instances.clearRowSelection();
553
- }
554
- clearSelection() {
555
- return this.ej2Instances.clearSelection();
556
- }
557
- clearSorting() {
558
- return this.ej2Instances.clearSorting();
559
- }
560
- closeEdit() {
561
- return this.ej2Instances.closeEdit();
562
- }
563
- copy(withHeader) {
564
- return this.ej2Instances.copy(withHeader);
565
- }
566
- csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
567
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
568
- }
569
- dataReady() {
570
- return this.ej2Instances.dataReady();
571
- }
572
- deleteRecord(fieldname, data) {
573
- return this.ej2Instances.deleteRecord(fieldname, data);
574
- }
575
- deleteRow(tr) {
576
- return this.ej2Instances.deleteRow(tr);
577
- }
578
- destroyTemplate(propertyNames, index) {
579
- return this.ej2Instances.destroyTemplate(propertyNames, index);
580
- }
581
- detailCollapseAll() {
582
- return this.ej2Instances.detailCollapseAll();
583
- }
584
- detailExpandAll() {
585
- return this.ej2Instances.detailExpandAll();
586
- }
587
- editCell(index, field) {
588
- return this.ej2Instances.editCell(index, field);
589
- }
590
- enableToolbarItems(items, isEnable) {
591
- return this.ej2Instances.enableToolbarItems(items, isEnable);
592
- }
593
- endEdit() {
594
- return this.ej2Instances.endEdit();
595
- }
596
- excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
597
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
598
- }
599
- extendRequiredModules(modules) {
600
- return this.ej2Instances.extendRequiredModules(modules);
601
- }
602
- filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
603
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
604
- }
605
- getBatchChanges() {
606
- return this.ej2Instances.getBatchChanges();
607
- }
608
- getCellFromIndex(rowIndex, columnIndex) {
609
- return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
610
- }
611
- getColumnByField(field) {
612
- return this.ej2Instances.getColumnByField(field);
613
- }
614
- getColumnByUid(uid) {
615
- return this.ej2Instances.getColumnByUid(uid);
616
- }
617
- getColumnFieldNames() {
618
- return this.ej2Instances.getColumnFieldNames();
619
- }
620
- getColumnHeaderByField(field) {
621
- return this.ej2Instances.getColumnHeaderByField(field);
622
- }
623
- getColumnHeaderByIndex(index) {
624
- return this.ej2Instances.getColumnHeaderByIndex(index);
625
- }
626
- getColumnHeaderByUid(uid) {
627
- return this.ej2Instances.getColumnHeaderByUid(uid);
628
- }
629
- getColumnIndexByField(field) {
630
- return this.ej2Instances.getColumnIndexByField(field);
631
- }
632
- getColumnIndexByUid(uid) {
633
- return this.ej2Instances.getColumnIndexByUid(uid);
634
- }
635
- getColumns(isRefresh) {
636
- return this.ej2Instances.getColumns(isRefresh);
637
- }
638
- getContent() {
639
- return this.ej2Instances.getContent();
640
- }
641
- getContentTable() {
642
- return this.ej2Instances.getContentTable();
643
- }
644
- getCurrentViewRecords() {
645
- return this.ej2Instances.getCurrentViewRecords();
646
- }
647
- getDataModule() {
648
- return this.ej2Instances.getDataModule();
649
- }
650
- getDataRows() {
651
- return this.ej2Instances.getDataRows();
652
- }
653
- getFilterUIInfo() {
654
- return this.ej2Instances.getFilterUIInfo();
655
- }
656
- getFilteredRecords() {
657
- return this.ej2Instances.getFilteredRecords();
658
- }
659
- getFooterContent() {
660
- return this.ej2Instances.getFooterContent();
661
- }
662
- getFooterContentTable() {
663
- return this.ej2Instances.getFooterContentTable();
664
- }
665
- getForeignKeyColumns() {
666
- return this.ej2Instances.getForeignKeyColumns();
667
- }
668
- getFrozenDataRows() {
669
- return this.ej2Instances.getFrozenDataRows();
670
- }
671
- getFrozenLeftColumnHeaderByIndex(index) {
672
- return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
673
- }
674
- getFrozenLeftCount() {
675
- return this.ej2Instances.getFrozenLeftCount();
676
- }
677
- getFrozenMode() {
678
- return this.ej2Instances.getFrozenMode();
679
- }
680
- getFrozenRightCellFromIndex(rowIndex, columnIndex) {
681
- return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
682
- }
683
- getFrozenRightColumnHeaderByIndex(index) {
684
- return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
685
- }
686
- getFrozenRightDataRows() {
687
- return this.ej2Instances.getFrozenRightDataRows();
688
- }
689
- getFrozenRightRowByIndex(index) {
690
- return this.ej2Instances.getFrozenRightRowByIndex(index);
691
- }
692
- getFrozenRightRows() {
693
- return this.ej2Instances.getFrozenRightRows();
694
- }
695
- getFrozenRowByIndex(index) {
696
- return this.ej2Instances.getFrozenRowByIndex(index);
697
- }
698
- getHeaderContent() {
699
- return this.ej2Instances.getHeaderContent();
700
- }
701
- getHeaderTable() {
702
- return this.ej2Instances.getHeaderTable();
703
- }
704
- getHiddenColumns() {
705
- return this.ej2Instances.getHiddenColumns();
706
- }
707
- getMediaColumns() {
708
- return this.ej2Instances.getMediaColumns();
709
- }
710
- getMovableCellFromIndex(rowIndex, columnIndex) {
711
- return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
712
- }
713
- getMovableColumnHeaderByIndex(index) {
714
- return this.ej2Instances.getMovableColumnHeaderByIndex(index);
715
- }
716
- getMovableDataRows() {
717
- return this.ej2Instances.getMovableDataRows();
718
- }
719
- getMovableRowByIndex(index) {
720
- return this.ej2Instances.getMovableRowByIndex(index);
721
- }
722
- getMovableRows() {
723
- return this.ej2Instances.getMovableRows();
724
- }
725
- getPager() {
726
- return this.ej2Instances.getPager();
727
- }
728
- getPrimaryKeyFieldNames() {
729
- return this.ej2Instances.getPrimaryKeyFieldNames();
730
- }
731
- getRowByIndex(index) {
732
- return this.ej2Instances.getRowByIndex(index);
733
- }
734
- getRowIndexByPrimaryKey(value) {
735
- return this.ej2Instances.getRowIndexByPrimaryKey(value);
736
- }
737
- getRowInfo(target) {
738
- return this.ej2Instances.getRowInfo(target);
739
- }
740
- getRows() {
741
- return this.ej2Instances.getRows();
742
- }
743
- getSelectedColumnsUid() {
744
- return this.ej2Instances.getSelectedColumnsUid();
745
- }
746
- getSelectedRecords() {
747
- return this.ej2Instances.getSelectedRecords();
748
- }
749
- getSelectedRowCellIndexes() {
750
- return this.ej2Instances.getSelectedRowCellIndexes();
751
- }
752
- getSelectedRowIndexes() {
753
- return this.ej2Instances.getSelectedRowIndexes();
754
- }
755
- getSelectedRows() {
756
- return this.ej2Instances.getSelectedRows();
757
- }
758
- getSummaryValues(summaryCol, summaryData) {
759
- return this.ej2Instances.getSummaryValues(summaryCol, summaryData);
760
- }
761
- getUidByColumnField(field) {
762
- return this.ej2Instances.getUidByColumnField(field);
763
- }
764
- getVisibleColumns() {
765
- return this.ej2Instances.getVisibleColumns();
766
- }
767
- goToPage(pageNo) {
768
- return this.ej2Instances.goToPage(pageNo);
769
- }
770
- groupCollapseAll() {
771
- return this.ej2Instances.groupCollapseAll();
772
- }
773
- groupColumn(columnName) {
774
- return this.ej2Instances.groupColumn(columnName);
775
- }
776
- groupExpandAll() {
777
- return this.ej2Instances.groupExpandAll();
778
- }
779
- hideColumns(keys, hideBy) {
780
- return this.ej2Instances.hideColumns(keys, hideBy);
781
- }
782
- hideScroll() {
783
- return this.ej2Instances.hideScroll();
784
- }
785
- hideSpinner() {
786
- return this.ej2Instances.hideSpinner();
787
- }
788
- isFrozenGrid() {
789
- return this.ej2Instances.isFrozenGrid();
790
- }
791
- openColumnChooser(x, y) {
792
- return this.ej2Instances.openColumnChooser(x, y);
793
- }
794
- pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
795
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
796
- }
797
- print() {
798
- return this.ej2Instances.print();
799
- }
800
- refresh() {
801
- return this.ej2Instances.refresh();
802
- }
803
- refreshColumns() {
804
- return this.ej2Instances.refreshColumns();
805
- }
806
- refreshHeader() {
807
- return this.ej2Instances.refreshHeader();
808
- }
809
- removeMaskRow() {
810
- return this.ej2Instances.removeMaskRow();
811
- }
812
- reorderColumnByIndex(fromIndex, toIndex) {
813
- return this.ej2Instances.reorderColumnByIndex(fromIndex, toIndex);
814
- }
815
- reorderColumnByTargetIndex(fieldName, toIndex) {
816
- return this.ej2Instances.reorderColumnByTargetIndex(fieldName, toIndex);
817
- }
818
- reorderColumns(fromFName, toFName) {
819
- return this.ej2Instances.reorderColumns(fromFName, toFName);
820
- }
821
- reorderRows(fromIndexes, toIndex) {
822
- return this.ej2Instances.reorderRows(fromIndexes, toIndex);
823
- }
824
- saveCell() {
825
- return this.ej2Instances.saveCell();
826
- }
827
- search(searchString) {
828
- return this.ej2Instances.search(searchString);
829
- }
830
- selectCell(cellIndex, isToggle) {
831
- return this.ej2Instances.selectCell(cellIndex, isToggle);
832
- }
833
- selectCells(rowCellIndexes) {
834
- return this.ej2Instances.selectCells(rowCellIndexes);
835
- }
836
- selectCellsByRange(startIndex, endIndex) {
837
- return this.ej2Instances.selectCellsByRange(startIndex, endIndex);
838
- }
839
- selectRow(index, isToggle) {
840
- return this.ej2Instances.selectRow(index, isToggle);
841
- }
842
- selectRows(rowIndexes) {
843
- return this.ej2Instances.selectRows(rowIndexes);
844
- }
845
- selectRowsByRange(startIndex, endIndex) {
846
- return this.ej2Instances.selectRowsByRange(startIndex, endIndex);
847
- }
848
- serverCsvExport(url) {
849
- return this.ej2Instances.serverCsvExport(url);
850
- }
851
- serverExcelExport(url) {
852
- return this.ej2Instances.serverExcelExport(url);
853
- }
854
- serverPdfExport(url) {
855
- return this.ej2Instances.serverPdfExport(url);
856
- }
857
- setCellValue(key, field, value) {
858
- return this.ej2Instances.setCellValue(key, field, value);
859
- }
860
- setGridContent(element) {
861
- return this.ej2Instances.setGridContent(element);
862
- }
863
- setGridContentTable(element) {
864
- return this.ej2Instances.setGridContentTable(element);
865
- }
866
- setGridHeaderContent(element) {
867
- return this.ej2Instances.setGridHeaderContent(element);
868
- }
869
- setGridHeaderTable(element) {
870
- return this.ej2Instances.setGridHeaderTable(element);
871
- }
872
- setGridPager(element) {
873
- return this.ej2Instances.setGridPager(element);
874
- }
875
- setRowData(key, rowData) {
876
- return this.ej2Instances.setRowData(key, rowData);
877
- }
878
- showAdaptiveFilterDialog() {
879
- return this.ej2Instances.showAdaptiveFilterDialog();
880
- }
881
- showAdaptiveSortDialog() {
882
- return this.ej2Instances.showAdaptiveSortDialog();
883
- }
884
- showColumns(keys, showBy) {
885
- return this.ej2Instances.showColumns(keys, showBy);
886
- }
887
- showMaskRow(axisDirection, dialogElement) {
888
- return this.ej2Instances.showMaskRow(axisDirection, dialogElement);
889
- }
890
- showSpinner() {
891
- return this.ej2Instances.showSpinner();
892
- }
893
- sortColumn(columnName, direction, isMultiSort) {
894
- return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
895
- }
896
- startEdit() {
897
- return this.ej2Instances.startEdit();
898
- }
899
- ungroupColumn(columnName) {
900
- return this.ej2Instances.ungroupColumn(columnName);
901
- }
902
- updateCell(rowIndex, field, value) {
903
- return this.ej2Instances.updateCell(rowIndex, field, value);
904
- }
905
- updateExternalMessage(message) {
906
- return this.ej2Instances.updateExternalMessage(message);
907
- }
908
- updateRow(index, data) {
909
- return this.ej2Instances.updateRow(index, data);
910
- }
911
- updateRowValue(key, rowData) {
912
- return this.ej2Instances.updateRowValue(key, rowData);
913
- }
914
- };
915
- GridComponent = __decorate$4([
916
- EJComponentDecorator({
917
- props: properties,
918
- model: {
919
- event: 'modelchanged'
920
- }
921
- }, isExecute)
922
- /* Start Options({
923
- props: props,
924
- watch: watch,
925
- emits: emitProbs,
926
- provide: function provide() {
927
- return {
928
- custom: this.custom
929
- };
930
- }
931
- }) End */
932
- ], GridComponent);
380
+ },
381
+ custom() {
382
+ this.updated();
383
+ },
384
+ addRecord(data, index) {
385
+ return this.ej2Instances.addRecord(data, index);
386
+ },
387
+ addShimmerEffect() {
388
+ return this.ej2Instances.addShimmerEffect();
389
+ },
390
+ autoFitColumns(fieldNames) {
391
+ return this.ej2Instances.autoFitColumns(fieldNames);
392
+ },
393
+ batchAsyncUpdate(changes) {
394
+ return this.ej2Instances.batchAsyncUpdate(changes);
395
+ },
396
+ batchUpdate(changes) {
397
+ return this.ej2Instances.batchUpdate(changes);
398
+ },
399
+ calculatePageSizeByParentHeight(containerHeight) {
400
+ return this.ej2Instances.calculatePageSizeByParentHeight(containerHeight);
401
+ },
402
+ changeDataSource(dataSource, columns) {
403
+ return this.ej2Instances.changeDataSource(dataSource, columns);
404
+ },
405
+ clearCellSelection() {
406
+ return this.ej2Instances.clearCellSelection();
407
+ },
408
+ clearFiltering(fields) {
409
+ return this.ej2Instances.clearFiltering(fields);
410
+ },
411
+ clearGrouping() {
412
+ return this.ej2Instances.clearGrouping();
413
+ },
414
+ clearRowSelection() {
415
+ return this.ej2Instances.clearRowSelection();
416
+ },
417
+ clearSelection() {
418
+ return this.ej2Instances.clearSelection();
419
+ },
420
+ clearSorting() {
421
+ return this.ej2Instances.clearSorting();
422
+ },
423
+ closeEdit() {
424
+ return this.ej2Instances.closeEdit();
425
+ },
426
+ copy(withHeader) {
427
+ return this.ej2Instances.copy(withHeader);
428
+ },
429
+ csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
430
+ return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
431
+ },
432
+ dataReady() {
433
+ return this.ej2Instances.dataReady();
434
+ },
435
+ deleteRecord(fieldname, data) {
436
+ return this.ej2Instances.deleteRecord(fieldname, data);
437
+ },
438
+ deleteRow(tr) {
439
+ return this.ej2Instances.deleteRow(tr);
440
+ },
441
+ destroyTemplate(propertyNames, index) {
442
+ return this.ej2Instances.destroyTemplate(propertyNames, index);
443
+ },
444
+ detailCollapseAll() {
445
+ return this.ej2Instances.detailCollapseAll();
446
+ },
447
+ detailExpandAll() {
448
+ return this.ej2Instances.detailExpandAll();
449
+ },
450
+ editCell(index, field) {
451
+ return this.ej2Instances.editCell(index, field);
452
+ },
453
+ enableToolbarItems(items, isEnable) {
454
+ return this.ej2Instances.enableToolbarItems(items, isEnable);
455
+ },
456
+ endEdit() {
457
+ return this.ej2Instances.endEdit();
458
+ },
459
+ excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
460
+ return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
461
+ },
462
+ extendRequiredModules(modules) {
463
+ return this.ej2Instances.extendRequiredModules(modules);
464
+ },
465
+ filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
466
+ return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
467
+ },
468
+ getBatchChanges() {
469
+ return this.ej2Instances.getBatchChanges();
470
+ },
471
+ getCellFromIndex(rowIndex, columnIndex) {
472
+ return this.ej2Instances.getCellFromIndex(rowIndex, columnIndex);
473
+ },
474
+ getColumnByField(field) {
475
+ return this.ej2Instances.getColumnByField(field);
476
+ },
477
+ getColumnByUid(uid) {
478
+ return this.ej2Instances.getColumnByUid(uid);
479
+ },
480
+ getColumnFieldNames() {
481
+ return this.ej2Instances.getColumnFieldNames();
482
+ },
483
+ getColumnHeaderByField(field) {
484
+ return this.ej2Instances.getColumnHeaderByField(field);
485
+ },
486
+ getColumnHeaderByIndex(index) {
487
+ return this.ej2Instances.getColumnHeaderByIndex(index);
488
+ },
489
+ getColumnHeaderByUid(uid) {
490
+ return this.ej2Instances.getColumnHeaderByUid(uid);
491
+ },
492
+ getColumnIndexByField(field) {
493
+ return this.ej2Instances.getColumnIndexByField(field);
494
+ },
495
+ getColumnIndexByUid(uid) {
496
+ return this.ej2Instances.getColumnIndexByUid(uid);
497
+ },
498
+ getColumns(isRefresh) {
499
+ return this.ej2Instances.getColumns(isRefresh);
500
+ },
501
+ getContent() {
502
+ return this.ej2Instances.getContent();
503
+ },
504
+ getContentTable() {
505
+ return this.ej2Instances.getContentTable();
506
+ },
507
+ getCurrentViewRecords() {
508
+ return this.ej2Instances.getCurrentViewRecords();
509
+ },
510
+ getDataModule() {
511
+ return this.ej2Instances.getDataModule();
512
+ },
513
+ getDataRows() {
514
+ return this.ej2Instances.getDataRows();
515
+ },
516
+ getFilterUIInfo() {
517
+ return this.ej2Instances.getFilterUIInfo();
518
+ },
519
+ getFilteredRecords() {
520
+ return this.ej2Instances.getFilteredRecords();
521
+ },
522
+ getFooterContent() {
523
+ return this.ej2Instances.getFooterContent();
524
+ },
525
+ getFooterContentTable() {
526
+ return this.ej2Instances.getFooterContentTable();
527
+ },
528
+ getForeignKeyColumns() {
529
+ return this.ej2Instances.getForeignKeyColumns();
530
+ },
531
+ getFrozenDataRows() {
532
+ return this.ej2Instances.getFrozenDataRows();
533
+ },
534
+ getFrozenLeftColumnHeaderByIndex(index) {
535
+ return this.ej2Instances.getFrozenLeftColumnHeaderByIndex(index);
536
+ },
537
+ getFrozenLeftCount() {
538
+ return this.ej2Instances.getFrozenLeftCount();
539
+ },
540
+ getFrozenMode() {
541
+ return this.ej2Instances.getFrozenMode();
542
+ },
543
+ getFrozenRightCellFromIndex(rowIndex, columnIndex) {
544
+ return this.ej2Instances.getFrozenRightCellFromIndex(rowIndex, columnIndex);
545
+ },
546
+ getFrozenRightColumnHeaderByIndex(index) {
547
+ return this.ej2Instances.getFrozenRightColumnHeaderByIndex(index);
548
+ },
549
+ getFrozenRightDataRows() {
550
+ return this.ej2Instances.getFrozenRightDataRows();
551
+ },
552
+ getFrozenRightRowByIndex(index) {
553
+ return this.ej2Instances.getFrozenRightRowByIndex(index);
554
+ },
555
+ getFrozenRightRows() {
556
+ return this.ej2Instances.getFrozenRightRows();
557
+ },
558
+ getFrozenRowByIndex(index) {
559
+ return this.ej2Instances.getFrozenRowByIndex(index);
560
+ },
561
+ getHeaderContent() {
562
+ return this.ej2Instances.getHeaderContent();
563
+ },
564
+ getHeaderTable() {
565
+ return this.ej2Instances.getHeaderTable();
566
+ },
567
+ getHiddenColumns() {
568
+ return this.ej2Instances.getHiddenColumns();
569
+ },
570
+ getMediaColumns() {
571
+ return this.ej2Instances.getMediaColumns();
572
+ },
573
+ getMovableCellFromIndex(rowIndex, columnIndex) {
574
+ return this.ej2Instances.getMovableCellFromIndex(rowIndex, columnIndex);
575
+ },
576
+ getMovableColumnHeaderByIndex(index) {
577
+ return this.ej2Instances.getMovableColumnHeaderByIndex(index);
578
+ },
579
+ getMovableDataRows() {
580
+ return this.ej2Instances.getMovableDataRows();
581
+ },
582
+ getMovableRowByIndex(index) {
583
+ return this.ej2Instances.getMovableRowByIndex(index);
584
+ },
585
+ getMovableRows() {
586
+ return this.ej2Instances.getMovableRows();
587
+ },
588
+ getPager() {
589
+ return this.ej2Instances.getPager();
590
+ },
591
+ getPrimaryKeyFieldNames() {
592
+ return this.ej2Instances.getPrimaryKeyFieldNames();
593
+ },
594
+ getRowByIndex(index) {
595
+ return this.ej2Instances.getRowByIndex(index);
596
+ },
597
+ getRowIndexByPrimaryKey(value) {
598
+ return this.ej2Instances.getRowIndexByPrimaryKey(value);
599
+ },
600
+ getRowInfo(target) {
601
+ return this.ej2Instances.getRowInfo(target);
602
+ },
603
+ getRows() {
604
+ return this.ej2Instances.getRows();
605
+ },
606
+ getSelectedColumnsUid() {
607
+ return this.ej2Instances.getSelectedColumnsUid();
608
+ },
609
+ getSelectedRecords() {
610
+ return this.ej2Instances.getSelectedRecords();
611
+ },
612
+ getSelectedRowCellIndexes() {
613
+ return this.ej2Instances.getSelectedRowCellIndexes();
614
+ },
615
+ getSelectedRowIndexes() {
616
+ return this.ej2Instances.getSelectedRowIndexes();
617
+ },
618
+ getSelectedRows() {
619
+ return this.ej2Instances.getSelectedRows();
620
+ },
621
+ getSummaryValues(summaryCol, summaryData) {
622
+ return this.ej2Instances.getSummaryValues(summaryCol, summaryData);
623
+ },
624
+ getUidByColumnField(field) {
625
+ return this.ej2Instances.getUidByColumnField(field);
626
+ },
627
+ getVisibleColumns() {
628
+ return this.ej2Instances.getVisibleColumns();
629
+ },
630
+ goToPage(pageNo) {
631
+ return this.ej2Instances.goToPage(pageNo);
632
+ },
633
+ groupCollapseAll() {
634
+ return this.ej2Instances.groupCollapseAll();
635
+ },
636
+ groupColumn(columnName) {
637
+ return this.ej2Instances.groupColumn(columnName);
638
+ },
639
+ groupExpandAll() {
640
+ return this.ej2Instances.groupExpandAll();
641
+ },
642
+ hideColumns(keys, hideBy) {
643
+ return this.ej2Instances.hideColumns(keys, hideBy);
644
+ },
645
+ hideScroll() {
646
+ return this.ej2Instances.hideScroll();
647
+ },
648
+ hideSpinner() {
649
+ return this.ej2Instances.hideSpinner();
650
+ },
651
+ isFrozenGrid() {
652
+ return this.ej2Instances.isFrozenGrid();
653
+ },
654
+ openColumnChooser(x, y) {
655
+ return this.ej2Instances.openColumnChooser(x, y);
656
+ },
657
+ pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
658
+ return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
659
+ },
660
+ print() {
661
+ return this.ej2Instances.print();
662
+ },
663
+ refresh() {
664
+ return this.ej2Instances.refresh();
665
+ },
666
+ refreshColumns() {
667
+ return this.ej2Instances.refreshColumns();
668
+ },
669
+ refreshHeader() {
670
+ return this.ej2Instances.refreshHeader();
671
+ },
672
+ removeMaskRow() {
673
+ return this.ej2Instances.removeMaskRow();
674
+ },
675
+ reorderColumnByIndex(fromIndex, toIndex) {
676
+ return this.ej2Instances.reorderColumnByIndex(fromIndex, toIndex);
677
+ },
678
+ reorderColumnByTargetIndex(fieldName, toIndex) {
679
+ return this.ej2Instances.reorderColumnByTargetIndex(fieldName, toIndex);
680
+ },
681
+ reorderColumns(fromFName, toFName) {
682
+ return this.ej2Instances.reorderColumns(fromFName, toFName);
683
+ },
684
+ reorderRows(fromIndexes, toIndex) {
685
+ return this.ej2Instances.reorderRows(fromIndexes, toIndex);
686
+ },
687
+ saveCell() {
688
+ return this.ej2Instances.saveCell();
689
+ },
690
+ search(searchString) {
691
+ return this.ej2Instances.search(searchString);
692
+ },
693
+ selectCell(cellIndex, isToggle) {
694
+ return this.ej2Instances.selectCell(cellIndex, isToggle);
695
+ },
696
+ selectCells(rowCellIndexes) {
697
+ return this.ej2Instances.selectCells(rowCellIndexes);
698
+ },
699
+ selectCellsByRange(startIndex, endIndex) {
700
+ return this.ej2Instances.selectCellsByRange(startIndex, endIndex);
701
+ },
702
+ selectRow(index, isToggle) {
703
+ return this.ej2Instances.selectRow(index, isToggle);
704
+ },
705
+ selectRows(rowIndexes) {
706
+ return this.ej2Instances.selectRows(rowIndexes);
707
+ },
708
+ selectRowsByRange(startIndex, endIndex) {
709
+ return this.ej2Instances.selectRowsByRange(startIndex, endIndex);
710
+ },
711
+ serverCsvExport(url) {
712
+ return this.ej2Instances.serverCsvExport(url);
713
+ },
714
+ serverExcelExport(url) {
715
+ return this.ej2Instances.serverExcelExport(url);
716
+ },
717
+ serverPdfExport(url) {
718
+ return this.ej2Instances.serverPdfExport(url);
719
+ },
720
+ setCellValue(key, field, value) {
721
+ return this.ej2Instances.setCellValue(key, field, value);
722
+ },
723
+ setGridContent(element) {
724
+ return this.ej2Instances.setGridContent(element);
725
+ },
726
+ setGridContentTable(element) {
727
+ return this.ej2Instances.setGridContentTable(element);
728
+ },
729
+ setGridHeaderContent(element) {
730
+ return this.ej2Instances.setGridHeaderContent(element);
731
+ },
732
+ setGridHeaderTable(element) {
733
+ return this.ej2Instances.setGridHeaderTable(element);
734
+ },
735
+ setGridPager(element) {
736
+ return this.ej2Instances.setGridPager(element);
737
+ },
738
+ setRowData(key, rowData) {
739
+ return this.ej2Instances.setRowData(key, rowData);
740
+ },
741
+ showAdaptiveFilterDialog() {
742
+ return this.ej2Instances.showAdaptiveFilterDialog();
743
+ },
744
+ showAdaptiveSortDialog() {
745
+ return this.ej2Instances.showAdaptiveSortDialog();
746
+ },
747
+ showColumns(keys, showBy) {
748
+ return this.ej2Instances.showColumns(keys, showBy);
749
+ },
750
+ showMaskRow(axisDirection, dialogElement) {
751
+ return this.ej2Instances.showMaskRow(axisDirection, dialogElement);
752
+ },
753
+ showSpinner() {
754
+ return this.ej2Instances.showSpinner();
755
+ },
756
+ sortColumn(columnName, direction, isMultiSort) {
757
+ return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
758
+ },
759
+ startEdit() {
760
+ return this.ej2Instances.startEdit();
761
+ },
762
+ ungroupColumn(columnName) {
763
+ return this.ej2Instances.ungroupColumn(columnName);
764
+ },
765
+ updateCell(rowIndex, field, value) {
766
+ return this.ej2Instances.updateCell(rowIndex, field, value);
767
+ },
768
+ updateExternalMessage(message) {
769
+ return this.ej2Instances.updateExternalMessage(message);
770
+ },
771
+ updateRow(index, data) {
772
+ return this.ej2Instances.updateRow(index, data);
773
+ },
774
+ updateRowValue(key, rowData) {
775
+ return this.ej2Instances.updateRowValue(key, rowData);
776
+ },
777
+ }
778
+ });
933
779
  const GridPlugin = {
934
780
  name: 'ejs-grid',
935
- install(Vue$$1) {
936
- Vue$$1.component(GridPlugin.name, GridComponent);
937
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
938
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
939
- Vue$$1.component(StackedColumnPlugin.name, StackedColumnDirective);
940
- Vue$$1.component(StackedColumnsPlugin.name, StackedColumnsDirective);
941
- Vue$$1.component(AggregatePlugin.name, AggregateDirective);
942
- Vue$$1.component(AggregatesPlugin.name, AggregatesDirective);
943
- Vue$$1.component(AggregateColumnPlugin.name, AggregateColumnDirective);
944
- Vue$$1.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
781
+ install(Vue) {
782
+ Vue.component(GridPlugin.name, GridComponent);
783
+ Vue.component(ColumnPlugin.name, ColumnDirective);
784
+ Vue.component(ColumnsPlugin.name, ColumnsDirective);
785
+ Vue.component(StackedColumnPlugin.name, StackedColumnDirective);
786
+ Vue.component(StackedColumnsPlugin.name, StackedColumnsDirective);
787
+ Vue.component(AggregatePlugin.name, AggregateDirective);
788
+ Vue.component(AggregatesPlugin.name, AggregatesDirective);
789
+ Vue.component(AggregateColumnPlugin.name, AggregateColumnDirective);
790
+ Vue.component(AggregateColumnsPlugin.name, AggregateColumnsDirective);
945
791
  }
946
792
  };
947
793
 
948
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
949
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
950
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
951
- 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;
952
- return c > 3 && r && Object.defineProperty(target, key, r), r;
953
- };
954
- // {{VueImport}}
955
794
  const properties$1 = ['isLazyUpdate', 'plugins', 'cssClass', 'currentPage', 'customText', 'enableExternalMessage', 'enablePagerMessage', 'enablePersistence', 'enableQueryString', 'enableRtl', 'externalMessage', 'locale', 'pageCount', 'pageSize', 'pageSizes', 'template', 'totalRecordsCount', 'click', 'created', 'dropDownChanged'];
956
795
  const modelProps$1 = ['currentPage', 'pageSize', 'pageCount', 'pageSizes'];
957
796
  const testProp$1 = getProps({ props: properties$1 });
@@ -968,28 +807,28 @@ for (let props of modelProps$1) {
968
807
  * <ejs-pager></ejs-pager>
969
808
  * ```
970
809
  */
971
- let PagerComponent =
972
- /* Start Options({
973
- props: props,
974
- watch: watch,
975
- emits: emitProbs,
976
- provide: function provide() {
810
+ let PagerComponent = vueDefineComponent({
811
+ name: 'PagerComponent',
812
+ mixins: [ComponentBase],
813
+ props: props$1,
814
+ watch: watch$1,
815
+ emits: emitProbs$1,
816
+ model: { event: 'modelchanged' },
817
+ provide() { return { custom: this.custom }; },
818
+ data() {
977
819
  return {
978
- custom: this.custom
820
+ ej2Instances: new Pager({}),
821
+ propKeys: properties$1,
822
+ models: modelProps$1,
823
+ hasChildDirective: false,
824
+ hasInjectedModules: false,
825
+ tagMapper: {},
826
+ tagNameMapper: {},
827
+ isVue3: !isExecute,
828
+ templateCollection: {},
979
829
  };
980
- }
981
- }) End */
982
- class PagerComponent extends ComponentBase {
983
- constructor() {
984
- super(arguments);
985
- this.propKeys = properties$1;
986
- this.models = modelProps$1;
987
- this.hasChildDirective = false;
988
- this.hasInjectedModules = false;
989
- this.tagMapper = {};
990
- this.tagNameMapper = {};
991
- this.isVue3 = !isExecute;
992
- this.ej2Instances = new Pager({});
830
+ },
831
+ created() {
993
832
  this.ej2Instances._trigger = this.ej2Instances.trigger;
994
833
  this.ej2Instances.trigger = this.trigger;
995
834
  this.bindProperties();
@@ -997,137 +836,121 @@ class PagerComponent extends ComponentBase {
997
836
  this.ej2Instances.setProperties = this.setProperties;
998
837
  this.ej2Instances.clearTemplate = this.clearTemplate;
999
838
  this.updated = this.updated;
1000
- }
1001
- clearTemplate(templateNames) {
1002
- if (!templateNames) {
1003
- templateNames = Object.keys(this.templateCollection || {});
839
+ },
840
+ render(createElement) {
841
+ let h = !isExecute ? gh : createElement;
842
+ let slots = null;
843
+ if (!isNullOrUndefined(this.$slots.default)) {
844
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1004
845
  }
1005
- if (templateNames.length && this.templateCollection) {
1006
- for (let tempName of templateNames) {
1007
- let elementCollection = this.templateCollection[tempName];
1008
- if (elementCollection && elementCollection.length) {
1009
- for (let ele of elementCollection) {
1010
- let destroy = getValue('__vue__.$destroy', ele);
1011
- if (destroy) {
1012
- ele.__vue__.$destroy();
1013
- }
1014
- if (ele.innerHTML) {
1015
- ele.innerHTML = '';
846
+ return h('div', slots);
847
+ },
848
+ methods: {
849
+ clearTemplate(templateNames) {
850
+ if (!templateNames) {
851
+ templateNames = Object.keys(this.templateCollection || {});
852
+ }
853
+ if (templateNames.length && this.templateCollection) {
854
+ for (let tempName of templateNames) {
855
+ let elementCollection = this.templateCollection[tempName];
856
+ if (elementCollection && elementCollection.length) {
857
+ for (let ele of elementCollection) {
858
+ let destroy = getValue('__vue__.$destroy', ele);
859
+ if (destroy) {
860
+ ele.__vue__.$destroy();
861
+ }
862
+ if (ele.innerHTML) {
863
+ ele.innerHTML = '';
864
+ }
1016
865
  }
866
+ delete this.templateCollection[tempName];
1017
867
  }
1018
- delete this.templateCollection[tempName];
1019
868
  }
1020
869
  }
1021
- }
1022
- }
1023
- setProperties(prop, muteOnChange) {
1024
- if (this.isVue3) {
1025
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1026
- }
1027
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1028
- this.ej2Instances._setProperties(prop, muteOnChange);
1029
- }
1030
- if (prop && this.models && this.models.length) {
1031
- Object.keys(prop).map((key) => {
1032
- this.models.map((model) => {
1033
- if ((key === model) && !(/datasource/i.test(key))) {
1034
- if (this.isVue3) {
1035
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
870
+ },
871
+ setProperties(prop, muteOnChange) {
872
+ if (this.isVue3) {
873
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
874
+ }
875
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
876
+ this.ej2Instances._setProperties(prop, muteOnChange);
877
+ }
878
+ if (prop && this.models && this.models.length) {
879
+ Object.keys(prop).map((key) => {
880
+ this.models.map((model) => {
881
+ if ((key === model) && !(/datasource/i.test(key))) {
882
+ if (this.isVue3) {
883
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
884
+ }
885
+ else {
886
+ this.$emit('update:' + key, prop[key]);
887
+ this.$emit('modelchanged', prop[key]);
888
+ }
1036
889
  }
1037
- else {
1038
- this.$emit('update:' + key, prop[key]);
1039
- this.$emit('modelchanged', prop[key]);
890
+ });
891
+ });
892
+ }
893
+ },
894
+ trigger(eventName, eventProp, successHandler) {
895
+ if (!isExecute) {
896
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
897
+ }
898
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
899
+ let key = this.models.toString().match(/checked|value/) || [];
900
+ let propKey = key[0];
901
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
902
+ if (!isExecute) {
903
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
904
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
905
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
906
+ }
907
+ else {
908
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
909
+ this.$emit('update:' + propKey, eventProp[propKey]);
910
+ this.$emit('modelchanged', eventProp[propKey]);
1040
911
  }
1041
912
  }
1042
- });
1043
- });
1044
- }
1045
- }
1046
- trigger(eventName, eventProp, successHandler) {
1047
- if (!isExecute) {
1048
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1049
- }
1050
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1051
- let key = this.models.toString().match(/checked|value/) || [];
1052
- let propKey = key[0];
1053
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1054
- if (!isExecute) {
1055
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1056
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1057
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1058
913
  }
1059
- else {
1060
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
914
+ }
915
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
916
+ let key = this.models.toString().match(/currentView|selectedDate/) || [];
917
+ let propKey = key[0];
918
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
919
+ if (!isExecute) {
920
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
921
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
922
+ }
923
+ else {
1061
924
  this.$emit('update:' + propKey, eventProp[propKey]);
1062
925
  this.$emit('modelchanged', eventProp[propKey]);
1063
926
  }
1064
927
  }
1065
928
  }
1066
- }
1067
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1068
- let key = this.models.toString().match(/currentView|selectedDate/) || [];
1069
- let propKey = key[0];
1070
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1071
- if (!isExecute) {
1072
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1073
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1074
- }
1075
- else {
1076
- this.$emit('update:' + propKey, eventProp[propKey]);
1077
- this.$emit('modelchanged', eventProp[propKey]);
1078
- }
929
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
930
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1079
931
  }
1080
- }
1081
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1082
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1083
- }
1084
- }
1085
- render(createElement) {
1086
- let h = !isExecute ? gh : createElement;
1087
- let slots = null;
1088
- if (!isNullOrUndefined(this.$slots.default)) {
1089
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1090
- }
1091
- return h('div', slots);
1092
- }
1093
- custom() {
1094
- this.updated();
1095
- }
1096
- destroyTemplate(propertyNames, index) {
1097
- return this.ej2Instances.destroyTemplate(propertyNames, index);
1098
- }
1099
- getLocalizedLabel(key) {
1100
- return this.ej2Instances.getLocalizedLabel(key);
1101
- }
1102
- goToPage(pageNo) {
1103
- return this.ej2Instances.goToPage(pageNo);
1104
- }
1105
- refresh() {
1106
- return this.ej2Instances.refresh();
1107
- }
1108
- };
1109
- PagerComponent = __decorate$5([
1110
- EJComponentDecorator({
1111
- props: properties$1,
1112
- model: {
1113
- event: 'modelchanged'
1114
- }
1115
- }, isExecute)
1116
- /* Start Options({
1117
- props: props,
1118
- watch: watch,
1119
- emits: emitProbs,
1120
- provide: function provide() {
1121
- return {
1122
- custom: this.custom
1123
- };
1124
- }
1125
- }) End */
1126
- ], PagerComponent);
932
+ },
933
+ custom() {
934
+ this.updated();
935
+ },
936
+ destroyTemplate(propertyNames, index) {
937
+ return this.ej2Instances.destroyTemplate(propertyNames, index);
938
+ },
939
+ getLocalizedLabel(key) {
940
+ return this.ej2Instances.getLocalizedLabel(key);
941
+ },
942
+ goToPage(pageNo) {
943
+ return this.ej2Instances.goToPage(pageNo);
944
+ },
945
+ refresh() {
946
+ return this.ej2Instances.refresh();
947
+ },
948
+ }
949
+ });
1127
950
  const PagerPlugin = {
1128
951
  name: 'ejs-pager',
1129
- install(Vue$$1) {
1130
- Vue$$1.component(PagerPlugin.name, PagerComponent);
952
+ install(Vue) {
953
+ Vue.component(PagerPlugin.name, PagerComponent);
1131
954
  }
1132
955
  };
1133
956