@syncfusion/ej2-vue-gantt 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 +36 -0
- package/dist/ej2-vue-gantt.umd.min.js +2 -2
- package/dist/ej2-vue-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-gantt.es2015.js +462 -685
- package/dist/es6/ej2-vue-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-gantt.es5.js +507 -807
- package/dist/es6/ej2-vue-gantt.es5.js.map +1 -1
- package/dist/global/ej2-vue-gantt.min.js +2 -2
- package/package.json +9 -9
- package/src/gantt/adddialogfields.directive.d.ts +2 -12
- package/src/gantt/adddialogfields.directive.js +22 -71
- package/src/gantt/columns.directive.d.ts +2 -12
- package/src/gantt/columns.directive.js +22 -71
- package/src/gantt/dayworkingtime.directive.d.ts +2 -12
- package/src/gantt/dayworkingtime.directive.js +22 -71
- package/src/gantt/editdialogfields.directive.d.ts +2 -12
- package/src/gantt/editdialogfields.directive.js +22 -71
- package/src/gantt/eventmarkers.directive.d.ts +2 -12
- package/src/gantt/eventmarkers.directive.js +22 -71
- package/src/gantt/gantt.component.d.ts +3 -100
- package/src/gantt/gantt.component.js +345 -376
- package/src/gantt/holidays.directive.d.ts +2 -12
- package/src/gantt/holidays.directive.js +22 -71
- package/styles/bootstrap-dark.css +33 -10
- package/styles/bootstrap.css +31 -10
- package/styles/bootstrap4.css +28 -7
- package/styles/bootstrap5-dark.css +30 -9
- package/styles/bootstrap5.css +30 -9
- package/styles/fabric-dark.css +28 -7
- package/styles/fabric.css +28 -7
- package/styles/fluent-dark.css +56 -29
- package/styles/fluent.css +56 -29
- package/styles/gantt/bootstrap-dark.css +33 -10
- package/styles/gantt/bootstrap.css +31 -10
- package/styles/gantt/bootstrap4.css +28 -7
- package/styles/gantt/bootstrap5-dark.css +30 -9
- package/styles/gantt/bootstrap5.css +30 -9
- package/styles/gantt/fabric-dark.css +28 -7
- package/styles/gantt/fabric.css +28 -7
- package/styles/gantt/fluent-dark.css +56 -29
- package/styles/gantt/fluent.css +56 -29
- package/styles/gantt/highcontrast-light.css +28 -9
- package/styles/gantt/highcontrast.css +28 -7
- package/styles/gantt/material-dark.css +31 -14
- package/styles/gantt/material.css +28 -7
- package/styles/gantt/tailwind-dark.css +28 -7
- package/styles/gantt/tailwind.css +28 -7
- package/styles/highcontrast-light.css +28 -9
- package/styles/highcontrast.css +28 -7
- package/styles/material-dark.css +31 -14
- package/styles/material.css +28 -7
- package/styles/tailwind-dark.css +28 -7
- package/styles/tailwind.css +28 -7
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { Gantt } from '@syncfusion/ej2-gantt';
|
|
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 ColumnsDirective =
|
|
22
|
-
/* Start Options({
|
|
23
|
-
inject: {
|
|
24
|
-
custom: {
|
|
25
|
-
default: null
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}) End */
|
|
29
|
-
class ColumnsDirective extends vueImport {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(arguments);
|
|
32
|
-
}
|
|
5
|
+
let ColumnsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
33
7
|
render(createElement) {
|
|
34
8
|
if (!isExecute) {
|
|
35
9
|
let h = !isExecute ? gh : createElement;
|
|
@@ -40,30 +14,22 @@ class ColumnsDirective extends vueImport {
|
|
|
40
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
41
15
|
}
|
|
42
16
|
return;
|
|
43
|
-
}
|
|
17
|
+
},
|
|
44
18
|
updated() {
|
|
45
19
|
if (!isExecute && this.custom) {
|
|
46
20
|
this.custom();
|
|
47
21
|
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
ColumnsDirective = __decorate([
|
|
54
|
-
EJComponentDecorator({}, isExecute)
|
|
55
|
-
/* Start Options({
|
|
56
|
-
inject: {
|
|
57
|
-
custom: {
|
|
58
|
-
default: null
|
|
59
|
-
}
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag() {
|
|
25
|
+
return 'e-columns';
|
|
60
26
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
27
|
+
}
|
|
28
|
+
});
|
|
63
29
|
const ColumnsPlugin = {
|
|
64
30
|
name: 'e-columns',
|
|
65
|
-
install(Vue
|
|
66
|
-
Vue
|
|
31
|
+
install(Vue) {
|
|
32
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
67
33
|
}
|
|
68
34
|
};
|
|
69
35
|
/**
|
|
@@ -78,50 +44,25 @@ const ColumnsPlugin = {
|
|
|
78
44
|
* </ejs-gantt>
|
|
79
45
|
* ```
|
|
80
46
|
*/
|
|
81
|
-
let ColumnDirective =
|
|
47
|
+
let ColumnDirective = vueDefineComponent({
|
|
82
48
|
render() {
|
|
83
49
|
return;
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getTag() {
|
|
53
|
+
return 'e-column';
|
|
54
|
+
}
|
|
84
55
|
}
|
|
85
|
-
|
|
86
|
-
return 'e-column';
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
ColumnDirective = __decorate([
|
|
90
|
-
EJComponentDecorator({}, isExecute)
|
|
91
|
-
], ColumnDirective);
|
|
56
|
+
});
|
|
92
57
|
const ColumnPlugin = {
|
|
93
58
|
name: 'e-column',
|
|
94
|
-
install(Vue
|
|
95
|
-
Vue
|
|
59
|
+
install(Vue) {
|
|
60
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
96
61
|
}
|
|
97
62
|
};
|
|
98
63
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
102
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
103
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
104
|
-
};
|
|
105
|
-
// {{VueImport}}
|
|
106
|
-
let vueImport$1;
|
|
107
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
108
|
-
vueImport$1 = Vue;
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
vueImport$1 = Vue$1;
|
|
112
|
-
}
|
|
113
|
-
let AddDialogFieldsDirective =
|
|
114
|
-
/* Start Options({
|
|
115
|
-
inject: {
|
|
116
|
-
custom: {
|
|
117
|
-
default: null
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}) End */
|
|
121
|
-
class AddDialogFieldsDirective extends vueImport$1 {
|
|
122
|
-
constructor() {
|
|
123
|
-
super(arguments);
|
|
124
|
-
}
|
|
64
|
+
let AddDialogFieldsDirective = vueDefineComponent({
|
|
65
|
+
inject: { custom: { default: null } },
|
|
125
66
|
render(createElement) {
|
|
126
67
|
if (!isExecute) {
|
|
127
68
|
let h = !isExecute ? gh : createElement;
|
|
@@ -132,30 +73,22 @@ class AddDialogFieldsDirective extends vueImport$1 {
|
|
|
132
73
|
return h('div', { class: 'e-directive' }, slots);
|
|
133
74
|
}
|
|
134
75
|
return;
|
|
135
|
-
}
|
|
76
|
+
},
|
|
136
77
|
updated() {
|
|
137
78
|
if (!isExecute && this.custom) {
|
|
138
79
|
this.custom();
|
|
139
80
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
};
|
|
145
|
-
AddDialogFieldsDirective = __decorate$1([
|
|
146
|
-
EJComponentDecorator({}, isExecute)
|
|
147
|
-
/* Start Options({
|
|
148
|
-
inject: {
|
|
149
|
-
custom: {
|
|
150
|
-
default: null
|
|
151
|
-
}
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
getTag() {
|
|
84
|
+
return 'e-add-dialog-fields';
|
|
152
85
|
}
|
|
153
|
-
}
|
|
154
|
-
|
|
86
|
+
}
|
|
87
|
+
});
|
|
155
88
|
const AddDialogFieldsPlugin = {
|
|
156
89
|
name: 'e-add-dialog-fields',
|
|
157
|
-
install(Vue
|
|
158
|
-
Vue
|
|
90
|
+
install(Vue) {
|
|
91
|
+
Vue.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
|
|
159
92
|
}
|
|
160
93
|
};
|
|
161
94
|
/**
|
|
@@ -170,50 +103,25 @@ const AddDialogFieldsPlugin = {
|
|
|
170
103
|
* </ejs-gantt>
|
|
171
104
|
* ```
|
|
172
105
|
*/
|
|
173
|
-
let AddDialogFieldDirective =
|
|
106
|
+
let AddDialogFieldDirective = vueDefineComponent({
|
|
174
107
|
render() {
|
|
175
108
|
return;
|
|
109
|
+
},
|
|
110
|
+
methods: {
|
|
111
|
+
getTag() {
|
|
112
|
+
return 'e-add-dialog-field';
|
|
113
|
+
}
|
|
176
114
|
}
|
|
177
|
-
|
|
178
|
-
return 'e-add-dialog-field';
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
AddDialogFieldDirective = __decorate$1([
|
|
182
|
-
EJComponentDecorator({}, isExecute)
|
|
183
|
-
], AddDialogFieldDirective);
|
|
115
|
+
});
|
|
184
116
|
const AddDialogFieldPlugin = {
|
|
185
117
|
name: 'e-add-dialog-field',
|
|
186
|
-
install(Vue
|
|
187
|
-
Vue
|
|
118
|
+
install(Vue) {
|
|
119
|
+
Vue.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
|
|
188
120
|
}
|
|
189
121
|
};
|
|
190
122
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
194
|
-
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;
|
|
195
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
196
|
-
};
|
|
197
|
-
// {{VueImport}}
|
|
198
|
-
let vueImport$2;
|
|
199
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
200
|
-
vueImport$2 = Vue;
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
vueImport$2 = Vue$1;
|
|
204
|
-
}
|
|
205
|
-
let EditDialogFieldsDirective =
|
|
206
|
-
/* Start Options({
|
|
207
|
-
inject: {
|
|
208
|
-
custom: {
|
|
209
|
-
default: null
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}) End */
|
|
213
|
-
class EditDialogFieldsDirective extends vueImport$2 {
|
|
214
|
-
constructor() {
|
|
215
|
-
super(arguments);
|
|
216
|
-
}
|
|
123
|
+
let EditDialogFieldsDirective = vueDefineComponent({
|
|
124
|
+
inject: { custom: { default: null } },
|
|
217
125
|
render(createElement) {
|
|
218
126
|
if (!isExecute) {
|
|
219
127
|
let h = !isExecute ? gh : createElement;
|
|
@@ -224,30 +132,22 @@ class EditDialogFieldsDirective extends vueImport$2 {
|
|
|
224
132
|
return h('div', { class: 'e-directive' }, slots);
|
|
225
133
|
}
|
|
226
134
|
return;
|
|
227
|
-
}
|
|
135
|
+
},
|
|
228
136
|
updated() {
|
|
229
137
|
if (!isExecute && this.custom) {
|
|
230
138
|
this.custom();
|
|
231
139
|
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
};
|
|
237
|
-
EditDialogFieldsDirective = __decorate$2([
|
|
238
|
-
EJComponentDecorator({}, isExecute)
|
|
239
|
-
/* Start Options({
|
|
240
|
-
inject: {
|
|
241
|
-
custom: {
|
|
242
|
-
default: null
|
|
243
|
-
}
|
|
140
|
+
},
|
|
141
|
+
methods: {
|
|
142
|
+
getTag() {
|
|
143
|
+
return 'e-edit-dialog-fields';
|
|
244
144
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
145
|
+
}
|
|
146
|
+
});
|
|
247
147
|
const EditDialogFieldsPlugin = {
|
|
248
148
|
name: 'e-edit-dialog-fields',
|
|
249
|
-
install(Vue
|
|
250
|
-
Vue
|
|
149
|
+
install(Vue) {
|
|
150
|
+
Vue.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
|
|
251
151
|
}
|
|
252
152
|
};
|
|
253
153
|
/**
|
|
@@ -262,50 +162,25 @@ const EditDialogFieldsPlugin = {
|
|
|
262
162
|
* </ejs-gantt>
|
|
263
163
|
* ```
|
|
264
164
|
*/
|
|
265
|
-
let EditDialogFieldDirective =
|
|
165
|
+
let EditDialogFieldDirective = vueDefineComponent({
|
|
266
166
|
render() {
|
|
267
167
|
return;
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
getTag() {
|
|
171
|
+
return 'e-edit-dialog-field';
|
|
172
|
+
}
|
|
268
173
|
}
|
|
269
|
-
|
|
270
|
-
return 'e-edit-dialog-field';
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
EditDialogFieldDirective = __decorate$2([
|
|
274
|
-
EJComponentDecorator({}, isExecute)
|
|
275
|
-
], EditDialogFieldDirective);
|
|
174
|
+
});
|
|
276
175
|
const EditDialogFieldPlugin = {
|
|
277
176
|
name: 'e-edit-dialog-field',
|
|
278
|
-
install(Vue
|
|
279
|
-
Vue
|
|
177
|
+
install(Vue) {
|
|
178
|
+
Vue.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
|
|
280
179
|
}
|
|
281
180
|
};
|
|
282
181
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
286
|
-
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;
|
|
287
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
288
|
-
};
|
|
289
|
-
// {{VueImport}}
|
|
290
|
-
let vueImport$3;
|
|
291
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
292
|
-
vueImport$3 = Vue;
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
vueImport$3 = Vue$1;
|
|
296
|
-
}
|
|
297
|
-
let DayWorkingTimeCollectionDirective =
|
|
298
|
-
/* Start Options({
|
|
299
|
-
inject: {
|
|
300
|
-
custom: {
|
|
301
|
-
default: null
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}) End */
|
|
305
|
-
class DayWorkingTimeCollectionDirective extends vueImport$3 {
|
|
306
|
-
constructor() {
|
|
307
|
-
super(arguments);
|
|
308
|
-
}
|
|
182
|
+
let DayWorkingTimeCollectionDirective = vueDefineComponent({
|
|
183
|
+
inject: { custom: { default: null } },
|
|
309
184
|
render(createElement) {
|
|
310
185
|
if (!isExecute) {
|
|
311
186
|
let h = !isExecute ? gh : createElement;
|
|
@@ -316,30 +191,22 @@ class DayWorkingTimeCollectionDirective extends vueImport$3 {
|
|
|
316
191
|
return h('div', { class: 'e-directive' }, slots);
|
|
317
192
|
}
|
|
318
193
|
return;
|
|
319
|
-
}
|
|
194
|
+
},
|
|
320
195
|
updated() {
|
|
321
196
|
if (!isExecute && this.custom) {
|
|
322
197
|
this.custom();
|
|
323
198
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
};
|
|
329
|
-
DayWorkingTimeCollectionDirective = __decorate$3([
|
|
330
|
-
EJComponentDecorator({}, isExecute)
|
|
331
|
-
/* Start Options({
|
|
332
|
-
inject: {
|
|
333
|
-
custom: {
|
|
334
|
-
default: null
|
|
335
|
-
}
|
|
199
|
+
},
|
|
200
|
+
methods: {
|
|
201
|
+
getTag() {
|
|
202
|
+
return 'e-day-working-time-collection';
|
|
336
203
|
}
|
|
337
|
-
}
|
|
338
|
-
|
|
204
|
+
}
|
|
205
|
+
});
|
|
339
206
|
const DayWorkingTimeCollectionPlugin = {
|
|
340
207
|
name: 'e-day-working-time-collection',
|
|
341
|
-
install(Vue
|
|
342
|
-
Vue
|
|
208
|
+
install(Vue) {
|
|
209
|
+
Vue.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
|
|
343
210
|
}
|
|
344
211
|
};
|
|
345
212
|
/**
|
|
@@ -354,50 +221,25 @@ const DayWorkingTimeCollectionPlugin = {
|
|
|
354
221
|
* </ejs-gantt>
|
|
355
222
|
* ```
|
|
356
223
|
*/
|
|
357
|
-
let DayWorkingTimeDirective =
|
|
224
|
+
let DayWorkingTimeDirective = vueDefineComponent({
|
|
358
225
|
render() {
|
|
359
226
|
return;
|
|
227
|
+
},
|
|
228
|
+
methods: {
|
|
229
|
+
getTag() {
|
|
230
|
+
return 'e-day-working-time';
|
|
231
|
+
}
|
|
360
232
|
}
|
|
361
|
-
|
|
362
|
-
return 'e-day-working-time';
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
DayWorkingTimeDirective = __decorate$3([
|
|
366
|
-
EJComponentDecorator({}, isExecute)
|
|
367
|
-
], DayWorkingTimeDirective);
|
|
233
|
+
});
|
|
368
234
|
const DayWorkingTimePlugin = {
|
|
369
235
|
name: 'e-day-working-time',
|
|
370
|
-
install(Vue
|
|
371
|
-
Vue
|
|
236
|
+
install(Vue) {
|
|
237
|
+
Vue.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
|
|
372
238
|
}
|
|
373
239
|
};
|
|
374
240
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
378
|
-
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;
|
|
379
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
380
|
-
};
|
|
381
|
-
// {{VueImport}}
|
|
382
|
-
let vueImport$4;
|
|
383
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
384
|
-
vueImport$4 = Vue;
|
|
385
|
-
}
|
|
386
|
-
else {
|
|
387
|
-
vueImport$4 = Vue$1;
|
|
388
|
-
}
|
|
389
|
-
let HolidaysDirective =
|
|
390
|
-
/* Start Options({
|
|
391
|
-
inject: {
|
|
392
|
-
custom: {
|
|
393
|
-
default: null
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}) End */
|
|
397
|
-
class HolidaysDirective extends vueImport$4 {
|
|
398
|
-
constructor() {
|
|
399
|
-
super(arguments);
|
|
400
|
-
}
|
|
241
|
+
let HolidaysDirective = vueDefineComponent({
|
|
242
|
+
inject: { custom: { default: null } },
|
|
401
243
|
render(createElement) {
|
|
402
244
|
if (!isExecute) {
|
|
403
245
|
let h = !isExecute ? gh : createElement;
|
|
@@ -408,30 +250,22 @@ class HolidaysDirective extends vueImport$4 {
|
|
|
408
250
|
return h('div', { class: 'e-directive' }, slots);
|
|
409
251
|
}
|
|
410
252
|
return;
|
|
411
|
-
}
|
|
253
|
+
},
|
|
412
254
|
updated() {
|
|
413
255
|
if (!isExecute && this.custom) {
|
|
414
256
|
this.custom();
|
|
415
257
|
}
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
};
|
|
421
|
-
HolidaysDirective = __decorate$4([
|
|
422
|
-
EJComponentDecorator({}, isExecute)
|
|
423
|
-
/* Start Options({
|
|
424
|
-
inject: {
|
|
425
|
-
custom: {
|
|
426
|
-
default: null
|
|
427
|
-
}
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
getTag() {
|
|
261
|
+
return 'e-holidays';
|
|
428
262
|
}
|
|
429
|
-
}
|
|
430
|
-
|
|
263
|
+
}
|
|
264
|
+
});
|
|
431
265
|
const HolidaysPlugin = {
|
|
432
266
|
name: 'e-holidays',
|
|
433
|
-
install(Vue
|
|
434
|
-
Vue
|
|
267
|
+
install(Vue) {
|
|
268
|
+
Vue.component(HolidaysPlugin.name, HolidaysDirective);
|
|
435
269
|
}
|
|
436
270
|
};
|
|
437
271
|
/**
|
|
@@ -446,50 +280,25 @@ const HolidaysPlugin = {
|
|
|
446
280
|
* </ejs-gantt>
|
|
447
281
|
* ```
|
|
448
282
|
*/
|
|
449
|
-
let HolidayDirective =
|
|
283
|
+
let HolidayDirective = vueDefineComponent({
|
|
450
284
|
render() {
|
|
451
285
|
return;
|
|
286
|
+
},
|
|
287
|
+
methods: {
|
|
288
|
+
getTag() {
|
|
289
|
+
return 'e-holidays';
|
|
290
|
+
}
|
|
452
291
|
}
|
|
453
|
-
|
|
454
|
-
return 'e-holidays';
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
HolidayDirective = __decorate$4([
|
|
458
|
-
EJComponentDecorator({}, isExecute)
|
|
459
|
-
], HolidayDirective);
|
|
292
|
+
});
|
|
460
293
|
const HolidayPlugin = {
|
|
461
294
|
name: 'e-holidays',
|
|
462
|
-
install(Vue
|
|
463
|
-
Vue
|
|
295
|
+
install(Vue) {
|
|
296
|
+
Vue.component(HolidayPlugin.name, HolidayDirective);
|
|
464
297
|
}
|
|
465
298
|
};
|
|
466
299
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
470
|
-
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;
|
|
471
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
472
|
-
};
|
|
473
|
-
// {{VueImport}}
|
|
474
|
-
let vueImport$5;
|
|
475
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
476
|
-
vueImport$5 = Vue;
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
vueImport$5 = Vue$1;
|
|
480
|
-
}
|
|
481
|
-
let EventMarkersDirective =
|
|
482
|
-
/* Start Options({
|
|
483
|
-
inject: {
|
|
484
|
-
custom: {
|
|
485
|
-
default: null
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}) End */
|
|
489
|
-
class EventMarkersDirective extends vueImport$5 {
|
|
490
|
-
constructor() {
|
|
491
|
-
super(arguments);
|
|
492
|
-
}
|
|
300
|
+
let EventMarkersDirective = vueDefineComponent({
|
|
301
|
+
inject: { custom: { default: null } },
|
|
493
302
|
render(createElement) {
|
|
494
303
|
if (!isExecute) {
|
|
495
304
|
let h = !isExecute ? gh : createElement;
|
|
@@ -500,30 +309,22 @@ class EventMarkersDirective extends vueImport$5 {
|
|
|
500
309
|
return h('div', { class: 'e-directive' }, slots);
|
|
501
310
|
}
|
|
502
311
|
return;
|
|
503
|
-
}
|
|
312
|
+
},
|
|
504
313
|
updated() {
|
|
505
314
|
if (!isExecute && this.custom) {
|
|
506
315
|
this.custom();
|
|
507
316
|
}
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
};
|
|
513
|
-
EventMarkersDirective = __decorate$5([
|
|
514
|
-
EJComponentDecorator({}, isExecute)
|
|
515
|
-
/* Start Options({
|
|
516
|
-
inject: {
|
|
517
|
-
custom: {
|
|
518
|
-
default: null
|
|
519
|
-
}
|
|
317
|
+
},
|
|
318
|
+
methods: {
|
|
319
|
+
getTag() {
|
|
320
|
+
return 'e-event-markers';
|
|
520
321
|
}
|
|
521
|
-
}
|
|
522
|
-
|
|
322
|
+
}
|
|
323
|
+
});
|
|
523
324
|
const EventMarkersPlugin = {
|
|
524
325
|
name: 'e-event-markers',
|
|
525
|
-
install(Vue
|
|
526
|
-
Vue
|
|
326
|
+
install(Vue) {
|
|
327
|
+
Vue.component(EventMarkersPlugin.name, EventMarkersDirective);
|
|
527
328
|
}
|
|
528
329
|
};
|
|
529
330
|
/**
|
|
@@ -537,32 +338,24 @@ const EventMarkersPlugin = {
|
|
|
537
338
|
* </ejs-gantt>
|
|
538
339
|
* ```
|
|
539
340
|
*/
|
|
540
|
-
let EventMarkerDirective =
|
|
341
|
+
let EventMarkerDirective = vueDefineComponent({
|
|
541
342
|
render() {
|
|
542
343
|
return;
|
|
344
|
+
},
|
|
345
|
+
methods: {
|
|
346
|
+
getTag() {
|
|
347
|
+
return 'e-event-marker';
|
|
348
|
+
}
|
|
543
349
|
}
|
|
544
|
-
|
|
545
|
-
return 'e-event-marker';
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
EventMarkerDirective = __decorate$5([
|
|
549
|
-
EJComponentDecorator({}, isExecute)
|
|
550
|
-
], EventMarkerDirective);
|
|
350
|
+
});
|
|
551
351
|
const EventMarkerPlugin = {
|
|
552
352
|
name: 'e-event-marker',
|
|
553
|
-
install(Vue
|
|
554
|
-
Vue
|
|
353
|
+
install(Vue) {
|
|
354
|
+
Vue.component(EventMarkerPlugin.name, EventMarkerDirective);
|
|
555
355
|
}
|
|
556
356
|
};
|
|
557
357
|
|
|
558
|
-
|
|
559
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
560
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
561
|
-
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;
|
|
562
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
563
|
-
};
|
|
564
|
-
// {{VueImport}}
|
|
565
|
-
const properties = ['isLazyUpdate', 'plugins', 'addDialogFields', 'allowExcelExport', 'allowFiltering', 'allowKeyboard', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowUnscheduledTasks', 'autoFocusTasks', 'baselineColor', 'collapseAllParentTasks', 'columnMenuItems', 'columns', 'connectorLineBackground', 'connectorLineWidth', 'contextMenuItems', 'dataSource', 'dateFormat', 'dayWorkingTime', 'disableHtmlEncode', 'durationUnit', 'editDialogFields', 'editSettings', 'enableContextMenu', 'enableCriticalPath', 'enableImmutableMode', 'enableMultiTaskbar', 'enablePersistence', 'enablePredecessorValidation', 'enableRtl', 'enableVirtualMaskRow', 'enableVirtualization', 'eventMarkers', 'filterSettings', 'gridLines', 'height', 'highlightWeekends', 'holidays', 'includeWeekend', 'labelSettings', 'loadingIndicator', 'locale', 'milestoneTemplate', 'parentTaskbarTemplate', 'projectEndDate', 'projectStartDate', 'query', 'readOnly', 'renderBaseline', 'resourceFields', 'resourceIDMapping', 'resourceNameMapping', 'resources', 'rowHeight', 'searchSettings', 'segmentData', 'selectedRowIndex', 'selectionSettings', 'showColumnMenu', 'showInlineNotes', 'showOverAllocation', 'sortSettings', 'splitterSettings', 'taskFields', 'taskMode', 'taskType', 'taskbarHeight', 'taskbarTemplate', 'timelineSettings', 'timezone', 'toolbar', 'tooltipSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'width', 'workUnit', 'workWeek', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeExcelExport', 'beforePdfExport', 'beforeTooltipRender', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSelected', 'cellSelecting', 'collapsed', 'collapsing', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataStateChange', 'destroyed', 'endEdit', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'expanded', 'expanding', 'headerCellInfo', 'load', 'onMouseMove', 'onTaskbarClick', 'pdfColumnHeaderQueryCellInfo', 'pdfExportComplete', 'pdfQueryCellInfo', 'pdfQueryTaskbarInfo', 'pdfQueryTimelineCellInfo', 'queryCellInfo', 'queryTaskbarInfo', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'splitterResizeStart', 'splitterResized', 'splitterResizing', 'taskbarEdited', 'taskbarEditing', 'toolbarClick'];
|
|
358
|
+
const properties = ['isLazyUpdate', 'plugins', 'UpdateOffsetOnTaskbarEdit', 'addDialogFields', 'allowExcelExport', 'allowFiltering', 'allowKeyboard', 'allowParentDependency', 'allowPdfExport', 'allowReordering', 'allowResizing', 'allowRowDragAndDrop', 'allowSelection', 'allowSorting', 'allowTaskbarDragAndDrop', 'allowTaskbarOverlap', 'allowUnscheduledTasks', 'autoCalculateDateScheduling', 'autoFocusTasks', 'baselineColor', 'collapseAllParentTasks', 'columnMenuItems', 'columns', 'connectorLineBackground', 'connectorLineWidth', 'contextMenuItems', 'dataSource', 'dateFormat', 'dayWorkingTime', 'disableHtmlEncode', 'durationUnit', 'editDialogFields', 'editSettings', 'enableContextMenu', 'enableCriticalPath', 'enableHtmlSanitizer', 'enableImmutableMode', 'enableMultiTaskbar', 'enablePersistence', 'enablePredecessorValidation', 'enableRtl', 'enableVirtualMaskRow', 'enableVirtualization', 'eventMarkers', 'filterSettings', 'gridLines', 'height', 'highlightWeekends', 'holidays', 'includeWeekend', 'labelSettings', 'loadingIndicator', 'locale', 'milestoneTemplate', 'parentTaskbarTemplate', 'projectEndDate', 'projectStartDate', 'query', 'readOnly', 'renderBaseline', 'resourceFields', 'resourceIDMapping', 'resourceNameMapping', 'resources', 'rowHeight', 'searchSettings', 'segmentData', 'selectedRowIndex', 'selectionSettings', 'showColumnMenu', 'showInlineNotes', 'showOverAllocation', 'sortSettings', 'splitterSettings', 'taskFields', 'taskMode', 'taskType', 'taskbarHeight', 'taskbarTemplate', 'timelineSettings', 'timezone', 'toolbar', 'tooltipSettings', 'treeColumnIndex', 'validateManualTasksOnLinking', 'viewType', 'width', 'workUnit', 'workWeek', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeExcelExport', 'beforePdfExport', 'beforeTooltipRender', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSelected', 'cellSelecting', 'collapsed', 'collapsing', 'columnDrag', 'columnDragStart', 'columnDrop', 'columnMenuClick', 'columnMenuOpen', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataBound', 'dataStateChange', 'destroyed', 'endEdit', 'excelExportComplete', 'excelHeaderQueryCellInfo', 'excelQueryCellInfo', 'expanded', 'expanding', 'headerCellInfo', 'load', 'onMouseMove', 'onTaskbarClick', 'pdfColumnHeaderQueryCellInfo', 'pdfExportComplete', 'pdfQueryCellInfo', 'pdfQueryTaskbarInfo', 'pdfQueryTimelineCellInfo', 'queryCellInfo', 'queryTaskbarInfo', 'recordDoubleClick', 'resizeStart', 'resizeStop', 'resizing', 'rowDataBound', 'rowDeselected', 'rowDeselecting', 'rowDrag', 'rowDragStart', 'rowDragStartHelper', 'rowDrop', 'rowSelected', 'rowSelecting', 'splitterResizeStart', 'splitterResized', 'splitterResizing', 'taskbarEdited', 'taskbarEditing', 'toolbarClick'];
|
|
566
359
|
const modelProps = ['dataSource'];
|
|
567
360
|
const testProp = getProps({ props: properties });
|
|
568
361
|
const props = testProp[0];
|
|
@@ -578,28 +371,28 @@ for (let props of modelProps) {
|
|
|
578
371
|
* <ejs-gantt :dataSource='data' allowSelection='true' allowSorting='true'></ejs-gantt>
|
|
579
372
|
* ```
|
|
580
373
|
*/
|
|
581
|
-
let GanttComponent =
|
|
582
|
-
|
|
374
|
+
let GanttComponent = vueDefineComponent({
|
|
375
|
+
name: 'GanttComponent',
|
|
376
|
+
mixins: [ComponentBase],
|
|
583
377
|
props: props,
|
|
584
378
|
watch: watch,
|
|
585
379
|
emits: emitProbs,
|
|
586
|
-
|
|
380
|
+
model: { event: 'modelchanged' },
|
|
381
|
+
provide() { return { custom: this.custom }; },
|
|
382
|
+
data() {
|
|
587
383
|
return {
|
|
588
|
-
|
|
384
|
+
ej2Instances: new Gantt({}),
|
|
385
|
+
propKeys: properties,
|
|
386
|
+
models: modelProps,
|
|
387
|
+
hasChildDirective: true,
|
|
388
|
+
hasInjectedModules: true,
|
|
389
|
+
tagMapper: { "e-columns": "e-column", "e-add-dialog-fields": "e-add-dialog-field", "e-edit-dialog-fields": "e-edit-dialog-field", "e-day-working-time-collection": "e-day-working-time", "e-holidays": "e-holidays", "e-event-markers": "e-event-marker" },
|
|
390
|
+
tagNameMapper: { "e-add-dialog-fields": "e-addDialogFields", "e-edit-dialog-fields": "e-editDialogFields", "e-day-working-time-collection": "e-dayWorkingTime", "e-event-markers": "e-eventMarkers" },
|
|
391
|
+
isVue3: !isExecute,
|
|
392
|
+
templateCollection: {},
|
|
589
393
|
};
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
class GanttComponent extends ComponentBase {
|
|
593
|
-
constructor() {
|
|
594
|
-
super(arguments);
|
|
595
|
-
this.propKeys = properties;
|
|
596
|
-
this.models = modelProps;
|
|
597
|
-
this.hasChildDirective = true;
|
|
598
|
-
this.hasInjectedModules = true;
|
|
599
|
-
this.tagMapper = { "e-columns": "e-column", "e-add-dialog-fields": "e-add-dialog-field", "e-edit-dialog-fields": "e-edit-dialog-field", "e-day-working-time-collection": "e-day-working-time", "e-holidays": "e-holidays", "e-event-markers": "e-event-marker" };
|
|
600
|
-
this.tagNameMapper = { "e-add-dialog-fields": "e-addDialogFields", "e-edit-dialog-fields": "e-editDialogFields", "e-day-working-time-collection": "e-dayWorkingTime", "e-event-markers": "e-eventMarkers" };
|
|
601
|
-
this.isVue3 = !isExecute;
|
|
602
|
-
this.ej2Instances = new Gantt({});
|
|
394
|
+
},
|
|
395
|
+
created() {
|
|
603
396
|
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
604
397
|
this.ej2Instances.trigger = this.trigger;
|
|
605
398
|
this.bindProperties();
|
|
@@ -607,362 +400,346 @@ class GanttComponent extends ComponentBase {
|
|
|
607
400
|
this.ej2Instances.setProperties = this.setProperties;
|
|
608
401
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
609
402
|
this.updated = this.updated;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
403
|
+
},
|
|
404
|
+
render(createElement) {
|
|
405
|
+
let h = !isExecute ? gh : createElement;
|
|
406
|
+
let slots = null;
|
|
407
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
408
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
614
409
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
410
|
+
return h('div', slots);
|
|
411
|
+
},
|
|
412
|
+
methods: {
|
|
413
|
+
clearTemplate(templateNames) {
|
|
414
|
+
if (!templateNames) {
|
|
415
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
416
|
+
}
|
|
417
|
+
if (templateNames.length && this.templateCollection) {
|
|
418
|
+
for (let tempName of templateNames) {
|
|
419
|
+
let elementCollection = this.templateCollection[tempName];
|
|
420
|
+
if (elementCollection && elementCollection.length) {
|
|
421
|
+
for (let ele of elementCollection) {
|
|
422
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
423
|
+
if (destroy) {
|
|
424
|
+
ele.__vue__.$destroy();
|
|
425
|
+
}
|
|
426
|
+
if (ele.innerHTML) {
|
|
427
|
+
ele.innerHTML = '';
|
|
428
|
+
}
|
|
626
429
|
}
|
|
430
|
+
delete this.templateCollection[tempName];
|
|
627
431
|
}
|
|
628
|
-
delete this.templateCollection[tempName];
|
|
629
432
|
}
|
|
630
433
|
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
434
|
+
},
|
|
435
|
+
setProperties(prop, muteOnChange) {
|
|
436
|
+
if (this.isVue3) {
|
|
437
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
438
|
+
}
|
|
439
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
440
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
441
|
+
}
|
|
442
|
+
if (prop && this.models && this.models.length) {
|
|
443
|
+
Object.keys(prop).map((key) => {
|
|
444
|
+
this.models.map((model) => {
|
|
445
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
446
|
+
if (this.isVue3) {
|
|
447
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
this.$emit('update:' + key, prop[key]);
|
|
451
|
+
this.$emit('modelchanged', prop[key]);
|
|
452
|
+
}
|
|
646
453
|
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
trigger(eventName, eventProp, successHandler) {
|
|
459
|
+
if (!isExecute) {
|
|
460
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
461
|
+
}
|
|
462
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
463
|
+
let key = this.models.toString().match(/checked|value/) || [];
|
|
464
|
+
let propKey = key[0];
|
|
465
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
466
|
+
if (!isExecute) {
|
|
467
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
468
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
469
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
473
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
474
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
650
475
|
}
|
|
651
476
|
}
|
|
652
|
-
});
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
trigger(eventName, eventProp, successHandler) {
|
|
657
|
-
if (!isExecute) {
|
|
658
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
659
|
-
}
|
|
660
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
661
|
-
let key = this.models.toString().match(/checked|value/) || [];
|
|
662
|
-
let propKey = key[0];
|
|
663
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
664
|
-
if (!isExecute) {
|
|
665
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
666
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
667
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
668
477
|
}
|
|
669
|
-
|
|
670
|
-
|
|
478
|
+
}
|
|
479
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
480
|
+
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
481
|
+
let propKey = key[0];
|
|
482
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
483
|
+
if (!isExecute) {
|
|
484
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
485
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
671
488
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
672
489
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
673
490
|
}
|
|
674
491
|
}
|
|
675
492
|
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
let key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
679
|
-
let propKey = key[0];
|
|
680
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
681
|
-
if (!isExecute) {
|
|
682
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
683
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
684
|
-
}
|
|
685
|
-
else {
|
|
686
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
687
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
688
|
-
}
|
|
493
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
494
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
689
495
|
}
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
this.
|
|
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
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
}
|
|
922
|
-
updateTaskId(currentId, newId) {
|
|
923
|
-
return this.ej2Instances.updateTaskId(currentId, newId);
|
|
924
|
-
}
|
|
925
|
-
zoomIn() {
|
|
926
|
-
return this.ej2Instances.zoomIn();
|
|
927
|
-
}
|
|
928
|
-
zoomOut() {
|
|
929
|
-
return this.ej2Instances.zoomOut();
|
|
930
|
-
}
|
|
931
|
-
};
|
|
932
|
-
GanttComponent = __decorate$6([
|
|
933
|
-
EJComponentDecorator({
|
|
934
|
-
props: properties,
|
|
935
|
-
model: {
|
|
936
|
-
event: 'modelchanged'
|
|
937
|
-
}
|
|
938
|
-
}, isExecute)
|
|
939
|
-
/* Start Options({
|
|
940
|
-
props: props,
|
|
941
|
-
watch: watch,
|
|
942
|
-
emits: emitProbs,
|
|
943
|
-
provide: function provide() {
|
|
944
|
-
return {
|
|
945
|
-
custom: this.custom
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
}) End */
|
|
949
|
-
], GanttComponent);
|
|
496
|
+
},
|
|
497
|
+
custom() {
|
|
498
|
+
this.updated();
|
|
499
|
+
},
|
|
500
|
+
addPredecessor(id, predecessorString) {
|
|
501
|
+
return this.ej2Instances.addPredecessor(id, predecessorString);
|
|
502
|
+
},
|
|
503
|
+
addRecord(data, rowPosition, rowIndex) {
|
|
504
|
+
return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
|
|
505
|
+
},
|
|
506
|
+
cancelEdit() {
|
|
507
|
+
return this.ej2Instances.cancelEdit();
|
|
508
|
+
},
|
|
509
|
+
changeTaskMode(data) {
|
|
510
|
+
return this.ej2Instances.changeTaskMode(data);
|
|
511
|
+
},
|
|
512
|
+
clearFiltering(fields) {
|
|
513
|
+
return this.ej2Instances.clearFiltering(fields);
|
|
514
|
+
},
|
|
515
|
+
clearSelection() {
|
|
516
|
+
return this.ej2Instances.clearSelection();
|
|
517
|
+
},
|
|
518
|
+
clearSorting() {
|
|
519
|
+
return this.ej2Instances.clearSorting();
|
|
520
|
+
},
|
|
521
|
+
collapseAll() {
|
|
522
|
+
return this.ej2Instances.collapseAll();
|
|
523
|
+
},
|
|
524
|
+
collapseByID(id) {
|
|
525
|
+
return this.ej2Instances.collapseByID(id);
|
|
526
|
+
},
|
|
527
|
+
collapseByIndex(index) {
|
|
528
|
+
return this.ej2Instances.collapseByIndex(index);
|
|
529
|
+
},
|
|
530
|
+
convertToMilestone(id) {
|
|
531
|
+
return this.ej2Instances.convertToMilestone(id);
|
|
532
|
+
},
|
|
533
|
+
csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
534
|
+
return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
535
|
+
},
|
|
536
|
+
deleteRecord(taskDetail) {
|
|
537
|
+
return this.ej2Instances.deleteRecord(taskDetail);
|
|
538
|
+
},
|
|
539
|
+
enableItems(items, isEnable) {
|
|
540
|
+
return this.ej2Instances.enableItems(items, isEnable);
|
|
541
|
+
},
|
|
542
|
+
excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
543
|
+
return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
544
|
+
},
|
|
545
|
+
expandAll() {
|
|
546
|
+
return this.ej2Instances.expandAll();
|
|
547
|
+
},
|
|
548
|
+
expandByID(id) {
|
|
549
|
+
return this.ej2Instances.expandByID(id);
|
|
550
|
+
},
|
|
551
|
+
expandByIndex(index) {
|
|
552
|
+
return this.ej2Instances.expandByIndex(index);
|
|
553
|
+
},
|
|
554
|
+
filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
|
|
555
|
+
return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
|
|
556
|
+
},
|
|
557
|
+
fitToProject() {
|
|
558
|
+
return this.ej2Instances.fitToProject();
|
|
559
|
+
},
|
|
560
|
+
getCriticalTasks() {
|
|
561
|
+
return this.ej2Instances.getCriticalTasks();
|
|
562
|
+
},
|
|
563
|
+
getDurationString(duration, durationUnit) {
|
|
564
|
+
return this.ej2Instances.getDurationString(duration, durationUnit);
|
|
565
|
+
},
|
|
566
|
+
getExpandedRecords(records) {
|
|
567
|
+
return this.ej2Instances.getExpandedRecords(records);
|
|
568
|
+
},
|
|
569
|
+
getFormatedDate(date, format) {
|
|
570
|
+
return this.ej2Instances.getFormatedDate(date, format);
|
|
571
|
+
},
|
|
572
|
+
getGanttColumns() {
|
|
573
|
+
return this.ej2Instances.getGanttColumns();
|
|
574
|
+
},
|
|
575
|
+
getGridColumns() {
|
|
576
|
+
return this.ej2Instances.getGridColumns();
|
|
577
|
+
},
|
|
578
|
+
getRecordByID(id) {
|
|
579
|
+
return this.ej2Instances.getRecordByID(id);
|
|
580
|
+
},
|
|
581
|
+
getRowByID(id) {
|
|
582
|
+
return this.ej2Instances.getRowByID(id);
|
|
583
|
+
},
|
|
584
|
+
getRowByIndex(index) {
|
|
585
|
+
return this.ej2Instances.getRowByIndex(index);
|
|
586
|
+
},
|
|
587
|
+
getTaskByUniqueID(id) {
|
|
588
|
+
return this.ej2Instances.getTaskByUniqueID(id);
|
|
589
|
+
},
|
|
590
|
+
getTaskbarHeight() {
|
|
591
|
+
return this.ej2Instances.getTaskbarHeight();
|
|
592
|
+
},
|
|
593
|
+
getWorkString(work, workUnit) {
|
|
594
|
+
return this.ej2Instances.getWorkString(work, workUnit);
|
|
595
|
+
},
|
|
596
|
+
hideColumn(keys, hideBy) {
|
|
597
|
+
return this.ej2Instances.hideColumn(keys, hideBy);
|
|
598
|
+
},
|
|
599
|
+
hideMaskRow() {
|
|
600
|
+
return this.ej2Instances.hideMaskRow();
|
|
601
|
+
},
|
|
602
|
+
hideSpinner() {
|
|
603
|
+
return this.ej2Instances.hideSpinner();
|
|
604
|
+
},
|
|
605
|
+
indent() {
|
|
606
|
+
return this.ej2Instances.indent();
|
|
607
|
+
},
|
|
608
|
+
keyActionHandler(e) {
|
|
609
|
+
return this.ej2Instances.keyActionHandler(e);
|
|
610
|
+
},
|
|
611
|
+
mergeTask(taskId, segmentIndexes) {
|
|
612
|
+
return this.ej2Instances.mergeTask(taskId, segmentIndexes);
|
|
613
|
+
},
|
|
614
|
+
nextTimeSpan(mode) {
|
|
615
|
+
return this.ej2Instances.nextTimeSpan(mode);
|
|
616
|
+
},
|
|
617
|
+
openAddDialog() {
|
|
618
|
+
return this.ej2Instances.openAddDialog();
|
|
619
|
+
},
|
|
620
|
+
openEditDialog(taskId) {
|
|
621
|
+
return this.ej2Instances.openEditDialog(taskId);
|
|
622
|
+
},
|
|
623
|
+
outdent() {
|
|
624
|
+
return this.ej2Instances.outdent();
|
|
625
|
+
},
|
|
626
|
+
pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
627
|
+
return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
628
|
+
},
|
|
629
|
+
previousTimeSpan(mode) {
|
|
630
|
+
return this.ej2Instances.previousTimeSpan(mode);
|
|
631
|
+
},
|
|
632
|
+
removeCriticalPathStyles() {
|
|
633
|
+
return this.ej2Instances.removeCriticalPathStyles();
|
|
634
|
+
},
|
|
635
|
+
removePredecessor(id) {
|
|
636
|
+
return this.ej2Instances.removePredecessor(id);
|
|
637
|
+
},
|
|
638
|
+
removeSortColumn(columnName) {
|
|
639
|
+
return this.ej2Instances.removeSortColumn(columnName);
|
|
640
|
+
},
|
|
641
|
+
renderTemplates() {
|
|
642
|
+
return this.ej2Instances.renderTemplates();
|
|
643
|
+
},
|
|
644
|
+
reorderColumns(fromFName, toFName) {
|
|
645
|
+
return this.ej2Instances.reorderColumns(fromFName, toFName);
|
|
646
|
+
},
|
|
647
|
+
reorderRows(fromIndexes, toIndex, position) {
|
|
648
|
+
return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
|
|
649
|
+
},
|
|
650
|
+
resetTemplates() {
|
|
651
|
+
return this.ej2Instances.resetTemplates();
|
|
652
|
+
},
|
|
653
|
+
scrollToDate(date) {
|
|
654
|
+
return this.ej2Instances.scrollToDate(date);
|
|
655
|
+
},
|
|
656
|
+
scrollToTask(taskId) {
|
|
657
|
+
return this.ej2Instances.scrollToTask(taskId);
|
|
658
|
+
},
|
|
659
|
+
search(keyVal) {
|
|
660
|
+
return this.ej2Instances.search(keyVal);
|
|
661
|
+
},
|
|
662
|
+
selectCell(cellIndex, isToggle) {
|
|
663
|
+
return this.ej2Instances.selectCell(cellIndex, isToggle);
|
|
664
|
+
},
|
|
665
|
+
selectCells(rowCellIndexes) {
|
|
666
|
+
return this.ej2Instances.selectCells(rowCellIndexes);
|
|
667
|
+
},
|
|
668
|
+
selectRow(index, isToggle) {
|
|
669
|
+
return this.ej2Instances.selectRow(index, isToggle);
|
|
670
|
+
},
|
|
671
|
+
selectRows(records) {
|
|
672
|
+
return this.ej2Instances.selectRows(records);
|
|
673
|
+
},
|
|
674
|
+
setScrollTop(scrollTop) {
|
|
675
|
+
return this.ej2Instances.setScrollTop(scrollTop);
|
|
676
|
+
},
|
|
677
|
+
setSplitterPosition(value, type) {
|
|
678
|
+
return this.ej2Instances.setSplitterPosition(value, type);
|
|
679
|
+
},
|
|
680
|
+
showColumn(keys, showBy) {
|
|
681
|
+
return this.ej2Instances.showColumn(keys, showBy);
|
|
682
|
+
},
|
|
683
|
+
showCriticalPath(isCritical) {
|
|
684
|
+
return this.ej2Instances.showCriticalPath(isCritical);
|
|
685
|
+
},
|
|
686
|
+
showMaskRow() {
|
|
687
|
+
return this.ej2Instances.showMaskRow();
|
|
688
|
+
},
|
|
689
|
+
showSpinner() {
|
|
690
|
+
return this.ej2Instances.showSpinner();
|
|
691
|
+
},
|
|
692
|
+
sortColumn(columnName, direction, isMultiSort) {
|
|
693
|
+
return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
|
|
694
|
+
},
|
|
695
|
+
splitTask(taskId, splitDate) {
|
|
696
|
+
return this.ej2Instances.splitTask(taskId, splitDate);
|
|
697
|
+
},
|
|
698
|
+
updateChartScrollOffset(left, top) {
|
|
699
|
+
return this.ej2Instances.updateChartScrollOffset(left, top);
|
|
700
|
+
},
|
|
701
|
+
updateDataSource(dataSource, args) {
|
|
702
|
+
return this.ej2Instances.updateDataSource(dataSource, args);
|
|
703
|
+
},
|
|
704
|
+
updatePredecessor(id, predecessorString) {
|
|
705
|
+
return this.ej2Instances.updatePredecessor(id, predecessorString);
|
|
706
|
+
},
|
|
707
|
+
updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom) {
|
|
708
|
+
return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
|
|
709
|
+
},
|
|
710
|
+
updateRecordByID(data) {
|
|
711
|
+
return this.ej2Instances.updateRecordByID(data);
|
|
712
|
+
},
|
|
713
|
+
updateRecordByIndex(index, data) {
|
|
714
|
+
return this.ej2Instances.updateRecordByIndex(index, data);
|
|
715
|
+
},
|
|
716
|
+
updateTaskId(currentId, newId) {
|
|
717
|
+
return this.ej2Instances.updateTaskId(currentId, newId);
|
|
718
|
+
},
|
|
719
|
+
zoomIn() {
|
|
720
|
+
return this.ej2Instances.zoomIn();
|
|
721
|
+
},
|
|
722
|
+
zoomOut() {
|
|
723
|
+
return this.ej2Instances.zoomOut();
|
|
724
|
+
},
|
|
725
|
+
}
|
|
726
|
+
});
|
|
950
727
|
const GanttPlugin = {
|
|
951
728
|
name: 'ejs-gantt',
|
|
952
|
-
install(Vue
|
|
953
|
-
Vue
|
|
954
|
-
Vue
|
|
955
|
-
Vue
|
|
956
|
-
Vue
|
|
957
|
-
Vue
|
|
958
|
-
Vue
|
|
959
|
-
Vue
|
|
960
|
-
Vue
|
|
961
|
-
Vue
|
|
962
|
-
Vue
|
|
963
|
-
Vue
|
|
964
|
-
Vue
|
|
965
|
-
Vue
|
|
729
|
+
install(Vue) {
|
|
730
|
+
Vue.component(GanttPlugin.name, GanttComponent);
|
|
731
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
732
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
733
|
+
Vue.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
|
|
734
|
+
Vue.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
|
|
735
|
+
Vue.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
|
|
736
|
+
Vue.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
|
|
737
|
+
Vue.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
|
|
738
|
+
Vue.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
|
|
739
|
+
Vue.component(HolidayPlugin.name, HolidayDirective);
|
|
740
|
+
Vue.component(HolidaysPlugin.name, HolidaysDirective);
|
|
741
|
+
Vue.component(EventMarkerPlugin.name, EventMarkerDirective);
|
|
742
|
+
Vue.component(EventMarkersPlugin.name, EventMarkersDirective);
|
|
966
743
|
}
|
|
967
744
|
};
|
|
968
745
|
|