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