@syncfusion/ej2-vue-grids 20.4.53 → 21.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -133
- package/dist/ej2-vue-grids.umd.min.js +2 -2
- package/dist/ej2-vue-grids.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-grids.es2015.js +704 -881
- package/dist/es6/ej2-vue-grids.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-grids.es5.js +751 -986
- package/dist/es6/ej2-vue-grids.es5.js.map +1 -1
- package/dist/global/ej2-vue-grids.min.js +2 -2
- package/package.json +9 -9
- package/src/grid/aggregate-columns.directive.d.ts +2 -12
- package/src/grid/aggregate-columns.directive.js +22 -71
- package/src/grid/aggregates.directive.d.ts +2 -12
- package/src/grid/aggregates.directive.js +22 -71
- package/src/grid/columns.directive.d.ts +2 -12
- package/src/grid/columns.directive.js +22 -71
- package/src/grid/grid.component.d.ts +3 -155
- package/src/grid/grid.component.js +513 -541
- package/src/grid/stacked-column.directive.d.ts +2 -12
- package/src/grid/stacked-column.directive.js +22 -71
- package/src/pager/pager.component.d.ts +3 -29
- package/src/pager/pager.component.js +131 -162
- package/styles/bootstrap-dark.css +57 -21
- package/styles/bootstrap.css +57 -21
- package/styles/bootstrap4.css +57 -21
- package/styles/bootstrap5-dark.css +59 -23
- package/styles/bootstrap5.css +59 -23
- package/styles/excel-filter/bootstrap-dark.css +9 -0
- package/styles/excel-filter/bootstrap.css +9 -0
- package/styles/excel-filter/bootstrap4.css +9 -0
- package/styles/excel-filter/bootstrap5-dark.css +9 -0
- package/styles/excel-filter/bootstrap5.css +9 -0
- package/styles/excel-filter/fabric-dark.css +9 -0
- package/styles/excel-filter/fabric.css +9 -0
- package/styles/excel-filter/fluent-dark.css +11 -2
- package/styles/excel-filter/fluent.css +11 -2
- package/styles/excel-filter/highcontrast-light.css +9 -0
- package/styles/excel-filter/highcontrast.css +9 -0
- package/styles/excel-filter/material-dark.css +9 -0
- package/styles/excel-filter/material.css +9 -0
- package/styles/excel-filter/tailwind-dark.css +9 -0
- package/styles/excel-filter/tailwind.css +9 -0
- package/styles/fabric-dark.css +55 -19
- package/styles/fabric.css +55 -19
- package/styles/fluent-dark.css +85 -33
- package/styles/fluent.css +85 -33
- package/styles/grid/bootstrap-dark.css +48 -21
- package/styles/grid/bootstrap.css +48 -21
- package/styles/grid/bootstrap4.css +48 -21
- package/styles/grid/bootstrap5-dark.css +50 -23
- package/styles/grid/bootstrap5.css +50 -23
- package/styles/grid/fabric-dark.css +46 -19
- package/styles/grid/fabric.css +46 -19
- package/styles/grid/fluent-dark.css +74 -31
- package/styles/grid/fluent.css +74 -31
- package/styles/grid/highcontrast-light.css +45 -18
- package/styles/grid/highcontrast.css +44 -17
- package/styles/grid/material-dark.css +50 -23
- package/styles/grid/material.css +50 -23
- package/styles/grid/tailwind-dark.css +49 -22
- package/styles/grid/tailwind.css +49 -22
- package/styles/highcontrast-light.css +54 -18
- package/styles/highcontrast.css +53 -17
- package/styles/material-dark.css +59 -23
- package/styles/material.css +59 -23
- package/styles/tailwind-dark.css +58 -22
- package/styles/tailwind.css +58 -22
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { Grid, Pager } from '@syncfusion/ej2-grids';
|
|
2
|
-
import { ComponentBase,
|
|
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
|
-
|
|
8
|
-
|
|
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
|
-
|
|
50
|
-
|
|
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
|
-
}
|
|
62
|
-
|
|
27
|
+
}
|
|
28
|
+
});
|
|
63
29
|
const StackedColumnsPlugin = {
|
|
64
30
|
name: 'e-stacked-columns',
|
|
65
|
-
install(Vue
|
|
66
|
-
Vue
|
|
31
|
+
install(Vue) {
|
|
32
|
+
Vue.component(StackedColumnsPlugin.name, StackedColumnsDirective);
|
|
67
33
|
}
|
|
68
34
|
};
|
|
69
|
-
let StackedColumnDirective =
|
|
35
|
+
let StackedColumnDirective = vueDefineComponent({
|
|
70
36
|
render() {
|
|
71
37
|
return;
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
getTag() {
|
|
41
|
+
return 'e-stacked-column';
|
|
42
|
+
}
|
|
72
43
|
}
|
|
73
|
-
|
|
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
|
|
83
|
-
Vue
|
|
47
|
+
install(Vue) {
|
|
48
|
+
Vue.component(StackedColumnPlugin.name, StackedColumnDirective);
|
|
84
49
|
}
|
|
85
50
|
};
|
|
86
51
|
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
130
|
-
|
|
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
|
-
}
|
|
142
|
-
|
|
74
|
+
}
|
|
75
|
+
});
|
|
143
76
|
const ColumnsPlugin = {
|
|
144
77
|
name: 'e-columns',
|
|
145
|
-
install(Vue
|
|
146
|
-
Vue
|
|
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 =
|
|
94
|
+
let ColumnDirective = vueDefineComponent({
|
|
162
95
|
render() {
|
|
163
96
|
return;
|
|
97
|
+
},
|
|
98
|
+
methods: {
|
|
99
|
+
getTag() {
|
|
100
|
+
return 'e-column';
|
|
101
|
+
}
|
|
164
102
|
}
|
|
165
|
-
|
|
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
|
|
175
|
-
Vue
|
|
106
|
+
install(Vue) {
|
|
107
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
176
108
|
}
|
|
177
109
|
};
|
|
178
110
|
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
|
|
222
|
-
|
|
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
|
-
}
|
|
234
|
-
|
|
133
|
+
}
|
|
134
|
+
});
|
|
235
135
|
const AggregateColumnsPlugin = {
|
|
236
136
|
name: 'e-columns',
|
|
237
|
-
install(Vue
|
|
238
|
-
Vue
|
|
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 =
|
|
159
|
+
let AggregateColumnDirective = vueDefineComponent({
|
|
260
160
|
render() {
|
|
261
161
|
return;
|
|
162
|
+
},
|
|
163
|
+
methods: {
|
|
164
|
+
getTag() {
|
|
165
|
+
return 'e-column';
|
|
166
|
+
}
|
|
262
167
|
}
|
|
263
|
-
|
|
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
|
|
273
|
-
Vue
|
|
171
|
+
install(Vue) {
|
|
172
|
+
Vue.component(AggregateColumnPlugin.name, AggregateColumnDirective);
|
|
274
173
|
}
|
|
275
174
|
};
|
|
276
175
|
|
|
277
|
-
|
|
278
|
-
|
|
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
|
-
|
|
320
|
-
|
|
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
|
-
}
|
|
332
|
-
|
|
198
|
+
}
|
|
199
|
+
});
|
|
333
200
|
const AggregatesPlugin = {
|
|
334
201
|
name: 'e-aggregates',
|
|
335
|
-
install(Vue
|
|
336
|
-
Vue
|
|
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 =
|
|
225
|
+
let AggregateDirective = vueDefineComponent({
|
|
359
226
|
render() {
|
|
360
227
|
return;
|
|
228
|
+
},
|
|
229
|
+
methods: {
|
|
230
|
+
getTag() {
|
|
231
|
+
return 'e-aggregate';
|
|
232
|
+
}
|
|
361
233
|
}
|
|
362
|
-
|
|
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
|
|
372
|
-
Vue
|
|
237
|
+
install(Vue) {
|
|
238
|
+
Vue.component(AggregatePlugin.name, AggregateDirective);
|
|
373
239
|
}
|
|
374
240
|
};
|
|
375
241
|
|
|
376
|
-
|
|
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
|
-
|
|
258
|
+
let GridComponent = vueDefineComponent({
|
|
259
|
+
name: 'GridComponent',
|
|
260
|
+
mixins: [ComponentBase],
|
|
401
261
|
props: props,
|
|
402
262
|
watch: watch,
|
|
403
263
|
emits: emitProbs,
|
|
404
|
-
|
|
264
|
+
model: { event: 'modelchanged' },
|
|
265
|
+
provide() { return { custom: this.custom }; },
|
|
266
|
+
data() {
|
|
405
267
|
return {
|
|
406
|
-
|
|
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
|
-
|
|
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
|
-
|
|
430
|
-
|
|
431
|
-
|
|
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
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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
|
-
|
|
466
|
-
|
|
467
|
-
|
|
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
|
-
|
|
488
|
-
|
|
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
|
-
|
|
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
|
-
|
|
510
|
-
this.
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
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
|
|
936
|
-
Vue
|
|
937
|
-
Vue
|
|
938
|
-
Vue
|
|
939
|
-
Vue
|
|
940
|
-
Vue
|
|
941
|
-
Vue
|
|
942
|
-
Vue
|
|
943
|
-
Vue
|
|
944
|
-
Vue
|
|
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
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
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
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
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
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
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
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
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
|
-
|
|
1060
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1082
|
-
this.
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
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
|
|
1130
|
-
Vue
|
|
952
|
+
install(Vue) {
|
|
953
|
+
Vue.component(PagerPlugin.name, PagerComponent);
|
|
1131
954
|
}
|
|
1132
955
|
};
|
|
1133
956
|
|