@syncfusion/ej2-vue-gantt 20.4.54 → 21.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/ej2-vue-gantt.umd.min.js +2 -2
  3. package/dist/ej2-vue-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-gantt.es2015.js +462 -685
  5. package/dist/es6/ej2-vue-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-gantt.es5.js +507 -807
  7. package/dist/es6/ej2-vue-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-gantt.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/gantt/adddialogfields.directive.d.ts +2 -12
  11. package/src/gantt/adddialogfields.directive.js +22 -71
  12. package/src/gantt/columns.directive.d.ts +2 -12
  13. package/src/gantt/columns.directive.js +22 -71
  14. package/src/gantt/dayworkingtime.directive.d.ts +2 -12
  15. package/src/gantt/dayworkingtime.directive.js +22 -71
  16. package/src/gantt/editdialogfields.directive.d.ts +2 -12
  17. package/src/gantt/editdialogfields.directive.js +22 -71
  18. package/src/gantt/eventmarkers.directive.d.ts +2 -12
  19. package/src/gantt/eventmarkers.directive.js +22 -71
  20. package/src/gantt/gantt.component.d.ts +3 -100
  21. package/src/gantt/gantt.component.js +345 -376
  22. package/src/gantt/holidays.directive.d.ts +2 -12
  23. package/src/gantt/holidays.directive.js +22 -71
  24. package/styles/bootstrap-dark.css +33 -10
  25. package/styles/bootstrap.css +31 -10
  26. package/styles/bootstrap4.css +28 -7
  27. package/styles/bootstrap5-dark.css +30 -9
  28. package/styles/bootstrap5.css +30 -9
  29. package/styles/fabric-dark.css +28 -7
  30. package/styles/fabric.css +28 -7
  31. package/styles/fluent-dark.css +56 -29
  32. package/styles/fluent.css +56 -29
  33. package/styles/gantt/bootstrap-dark.css +33 -10
  34. package/styles/gantt/bootstrap.css +31 -10
  35. package/styles/gantt/bootstrap4.css +28 -7
  36. package/styles/gantt/bootstrap5-dark.css +30 -9
  37. package/styles/gantt/bootstrap5.css +30 -9
  38. package/styles/gantt/fabric-dark.css +28 -7
  39. package/styles/gantt/fabric.css +28 -7
  40. package/styles/gantt/fluent-dark.css +56 -29
  41. package/styles/gantt/fluent.css +56 -29
  42. package/styles/gantt/highcontrast-light.css +28 -9
  43. package/styles/gantt/highcontrast.css +28 -7
  44. package/styles/gantt/material-dark.css +31 -14
  45. package/styles/gantt/material.css +28 -7
  46. package/styles/gantt/tailwind-dark.css +28 -7
  47. package/styles/gantt/tailwind.css +28 -7
  48. package/styles/highcontrast-light.css +28 -9
  49. package/styles/highcontrast.css +28 -7
  50. package/styles/material-dark.css +31 -14
  51. package/styles/material.css +28 -7
  52. package/styles/tailwind-dark.css +28 -7
  53. package/styles/tailwind.css +28 -7
@@ -1,35 +1,9 @@
1
1
  import { Gantt } from '@syncfusion/ej2-gantt';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- };
13
- // {{VueImport}}
14
- let vueImport;
15
- if (!isExecute || parseInt(allVue.version) < 3) {
16
- vueImport = Vue;
17
- }
18
- else {
19
- vueImport = Vue$1;
20
- }
21
- let ColumnsDirective =
22
- /* Start Options({
23
- inject: {
24
- custom: {
25
- default: null
26
- }
27
- }
28
- }) End */
29
- class ColumnsDirective extends vueImport {
30
- constructor() {
31
- super(arguments);
32
- }
5
+ let ColumnsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
33
7
  render(createElement) {
34
8
  if (!isExecute) {
35
9
  let h = !isExecute ? gh : createElement;
@@ -40,30 +14,22 @@ class ColumnsDirective extends vueImport {
40
14
  return h('div', { class: 'e-directive' }, slots);
41
15
  }
42
16
  return;
43
- }
17
+ },
44
18
  updated() {
45
19
  if (!isExecute && this.custom) {
46
20
  this.custom();
47
21
  }
48
- }
49
- getTag() {
50
- return 'e-columns';
51
- }
52
- };
53
- ColumnsDirective = __decorate([
54
- EJComponentDecorator({}, isExecute)
55
- /* Start Options({
56
- inject: {
57
- custom: {
58
- default: null
59
- }
22
+ },
23
+ methods: {
24
+ getTag() {
25
+ return 'e-columns';
60
26
  }
61
- }) End */
62
- ], ColumnsDirective);
27
+ }
28
+ });
63
29
  const ColumnsPlugin = {
64
30
  name: 'e-columns',
65
- install(Vue$$1) {
66
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
31
+ install(Vue) {
32
+ Vue.component(ColumnsPlugin.name, ColumnsDirective);
67
33
  }
68
34
  };
69
35
  /**
@@ -78,50 +44,25 @@ const ColumnsPlugin = {
78
44
  * </ejs-gantt>
79
45
  * ```
80
46
  */
81
- let ColumnDirective = class ColumnDirective extends vueImport {
47
+ let ColumnDirective = vueDefineComponent({
82
48
  render() {
83
49
  return;
50
+ },
51
+ methods: {
52
+ getTag() {
53
+ return 'e-column';
54
+ }
84
55
  }
85
- getTag() {
86
- return 'e-column';
87
- }
88
- };
89
- ColumnDirective = __decorate([
90
- EJComponentDecorator({}, isExecute)
91
- ], ColumnDirective);
56
+ });
92
57
  const ColumnPlugin = {
93
58
  name: 'e-column',
94
- install(Vue$$1) {
95
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
59
+ install(Vue) {
60
+ Vue.component(ColumnPlugin.name, ColumnDirective);
96
61
  }
97
62
  };
98
63
 
99
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
100
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
101
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
102
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
103
- return c > 3 && r && Object.defineProperty(target, key, r), r;
104
- };
105
- // {{VueImport}}
106
- let vueImport$1;
107
- if (!isExecute || parseInt(allVue.version) < 3) {
108
- vueImport$1 = Vue;
109
- }
110
- else {
111
- vueImport$1 = Vue$1;
112
- }
113
- let 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
- getTag() {
142
- return 'e-add-dialog-fields';
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
- }) End */
154
- ], AddDialogFieldsDirective);
86
+ }
87
+ });
155
88
  const AddDialogFieldsPlugin = {
156
89
  name: 'e-add-dialog-fields',
157
- install(Vue$$1) {
158
- Vue$$1.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
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 = class AddDialogFieldDirective extends vueImport$1 {
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
- getTag() {
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$$1) {
187
- Vue$$1.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
118
+ install(Vue) {
119
+ Vue.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
188
120
  }
189
121
  };
190
122
 
191
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
192
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
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
- getTag() {
234
- return 'e-edit-dialog-fields';
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
- }) End */
246
- ], EditDialogFieldsDirective);
145
+ }
146
+ });
247
147
  const EditDialogFieldsPlugin = {
248
148
  name: 'e-edit-dialog-fields',
249
- install(Vue$$1) {
250
- Vue$$1.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
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 = class EditDialogFieldDirective extends vueImport$2 {
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
- getTag() {
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$$1) {
279
- Vue$$1.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
177
+ install(Vue) {
178
+ Vue.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
280
179
  }
281
180
  };
282
181
 
283
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
284
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
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
- getTag() {
326
- return 'e-day-working-time-collection';
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
- }) End */
338
- ], DayWorkingTimeCollectionDirective);
204
+ }
205
+ });
339
206
  const DayWorkingTimeCollectionPlugin = {
340
207
  name: 'e-day-working-time-collection',
341
- install(Vue$$1) {
342
- Vue$$1.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
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 = class DayWorkingTimeDirective extends vueImport$3 {
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
- getTag() {
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$$1) {
371
- Vue$$1.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
236
+ install(Vue) {
237
+ Vue.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
372
238
  }
373
239
  };
374
240
 
375
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
376
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
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
- getTag() {
418
- return 'e-holidays';
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
- }) End */
430
- ], HolidaysDirective);
263
+ }
264
+ });
431
265
  const HolidaysPlugin = {
432
266
  name: 'e-holidays',
433
- install(Vue$$1) {
434
- Vue$$1.component(HolidaysPlugin.name, HolidaysDirective);
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 = class HolidayDirective extends vueImport$4 {
283
+ let HolidayDirective = vueDefineComponent({
450
284
  render() {
451
285
  return;
286
+ },
287
+ methods: {
288
+ getTag() {
289
+ return 'e-holidays';
290
+ }
452
291
  }
453
- getTag() {
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$$1) {
463
- Vue$$1.component(HolidayPlugin.name, HolidayDirective);
295
+ install(Vue) {
296
+ Vue.component(HolidayPlugin.name, HolidayDirective);
464
297
  }
465
298
  };
466
299
 
467
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
468
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
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
- getTag() {
510
- return 'e-event-markers';
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
- }) End */
522
- ], EventMarkersDirective);
322
+ }
323
+ });
523
324
  const EventMarkersPlugin = {
524
325
  name: 'e-event-markers',
525
- install(Vue$$1) {
526
- Vue$$1.component(EventMarkersPlugin.name, EventMarkersDirective);
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 = class EventMarkerDirective extends vueImport$5 {
341
+ let EventMarkerDirective = vueDefineComponent({
541
342
  render() {
542
343
  return;
344
+ },
345
+ methods: {
346
+ getTag() {
347
+ return 'e-event-marker';
348
+ }
543
349
  }
544
- getTag() {
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$$1) {
554
- Vue$$1.component(EventMarkerPlugin.name, EventMarkerDirective);
353
+ install(Vue) {
354
+ Vue.component(EventMarkerPlugin.name, EventMarkerDirective);
555
355
  }
556
356
  };
557
357
 
558
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
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
- /* Start Options({
374
+ let GanttComponent = vueDefineComponent({
375
+ name: 'GanttComponent',
376
+ mixins: [ComponentBase],
583
377
  props: props,
584
378
  watch: watch,
585
379
  emits: emitProbs,
586
- provide: function provide() {
380
+ model: { event: 'modelchanged' },
381
+ provide() { return { custom: this.custom }; },
382
+ data() {
587
383
  return {
588
- custom: this.custom
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
- }) End */
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
- clearTemplate(templateNames) {
612
- if (!templateNames) {
613
- templateNames = Object.keys(this.templateCollection || {});
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
- if (templateNames.length && this.templateCollection) {
616
- for (let tempName of templateNames) {
617
- let elementCollection = this.templateCollection[tempName];
618
- if (elementCollection && elementCollection.length) {
619
- for (let ele of elementCollection) {
620
- let destroy = getValue('__vue__.$destroy', ele);
621
- if (destroy) {
622
- ele.__vue__.$destroy();
623
- }
624
- if (ele.innerHTML) {
625
- ele.innerHTML = '';
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
- setProperties(prop, muteOnChange) {
634
- if (this.isVue3) {
635
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
636
- }
637
- if (this.ej2Instances && this.ej2Instances._setProperties) {
638
- this.ej2Instances._setProperties(prop, muteOnChange);
639
- }
640
- if (prop && this.models && this.models.length) {
641
- Object.keys(prop).map((key) => {
642
- this.models.map((model) => {
643
- if ((key === model) && !(/datasource/i.test(key))) {
644
- if (this.isVue3) {
645
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
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
- else {
648
- this.$emit('update:' + key, prop[key]);
649
- this.$emit('modelchanged', prop[key]);
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
- else {
670
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
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
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
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
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
692
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
693
- }
694
- }
695
- render(createElement) {
696
- let h = !isExecute ? gh : createElement;
697
- let slots = null;
698
- if (!isNullOrUndefined(this.$slots.default)) {
699
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
700
- }
701
- return h('div', slots);
702
- }
703
- custom() {
704
- this.updated();
705
- }
706
- addPredecessor(id, predecessorString) {
707
- return this.ej2Instances.addPredecessor(id, predecessorString);
708
- }
709
- addRecord(data, rowPosition, rowIndex) {
710
- return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
711
- }
712
- cancelEdit() {
713
- return this.ej2Instances.cancelEdit();
714
- }
715
- changeTaskMode(data) {
716
- return this.ej2Instances.changeTaskMode(data);
717
- }
718
- clearFiltering(fields) {
719
- return this.ej2Instances.clearFiltering(fields);
720
- }
721
- clearSelection() {
722
- return this.ej2Instances.clearSelection();
723
- }
724
- clearSorting() {
725
- return this.ej2Instances.clearSorting();
726
- }
727
- collapseAll() {
728
- return this.ej2Instances.collapseAll();
729
- }
730
- collapseByID(id) {
731
- return this.ej2Instances.collapseByID(id);
732
- }
733
- collapseByIndex(index) {
734
- return this.ej2Instances.collapseByIndex(index);
735
- }
736
- convertToMilestone(id) {
737
- return this.ej2Instances.convertToMilestone(id);
738
- }
739
- csvExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
740
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
741
- }
742
- deleteRecord(taskDetail) {
743
- return this.ej2Instances.deleteRecord(taskDetail);
744
- }
745
- enableItems(items, isEnable) {
746
- return this.ej2Instances.enableItems(items, isEnable);
747
- }
748
- excelExport(excelExportProperties, isMultipleExport, workbook, isBlob) {
749
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
750
- }
751
- expandAll() {
752
- return this.ej2Instances.expandAll();
753
- }
754
- expandByID(id) {
755
- return this.ej2Instances.expandByID(id);
756
- }
757
- expandByIndex(index) {
758
- return this.ej2Instances.expandByIndex(index);
759
- }
760
- filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
761
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
762
- }
763
- fitToProject() {
764
- return this.ej2Instances.fitToProject();
765
- }
766
- getCriticalTasks() {
767
- return this.ej2Instances.getCriticalTasks();
768
- }
769
- getDurationString(duration, durationUnit) {
770
- return this.ej2Instances.getDurationString(duration, durationUnit);
771
- }
772
- getExpandedRecords(records) {
773
- return this.ej2Instances.getExpandedRecords(records);
774
- }
775
- getFormatedDate(date, format) {
776
- return this.ej2Instances.getFormatedDate(date, format);
777
- }
778
- getGanttColumns() {
779
- return this.ej2Instances.getGanttColumns();
780
- }
781
- getGridColumns() {
782
- return this.ej2Instances.getGridColumns();
783
- }
784
- getRecordByID(id) {
785
- return this.ej2Instances.getRecordByID(id);
786
- }
787
- getRowByID(id) {
788
- return this.ej2Instances.getRowByID(id);
789
- }
790
- getRowByIndex(index) {
791
- return this.ej2Instances.getRowByIndex(index);
792
- }
793
- getTaskByUniqueID(id) {
794
- return this.ej2Instances.getTaskByUniqueID(id);
795
- }
796
- getTaskbarHeight() {
797
- return this.ej2Instances.getTaskbarHeight();
798
- }
799
- getWorkString(work, workUnit) {
800
- return this.ej2Instances.getWorkString(work, workUnit);
801
- }
802
- hideColumn(keys, hideBy) {
803
- return this.ej2Instances.hideColumn(keys, hideBy);
804
- }
805
- hideMaskRow() {
806
- return this.ej2Instances.hideMaskRow();
807
- }
808
- hideSpinner() {
809
- return this.ej2Instances.hideSpinner();
810
- }
811
- indent() {
812
- return this.ej2Instances.indent();
813
- }
814
- keyActionHandler(e) {
815
- return this.ej2Instances.keyActionHandler(e);
816
- }
817
- mergeTask(taskId, segmentIndexes) {
818
- return this.ej2Instances.mergeTask(taskId, segmentIndexes);
819
- }
820
- nextTimeSpan(mode) {
821
- return this.ej2Instances.nextTimeSpan(mode);
822
- }
823
- openAddDialog() {
824
- return this.ej2Instances.openAddDialog();
825
- }
826
- openEditDialog(taskId) {
827
- return this.ej2Instances.openEditDialog(taskId);
828
- }
829
- outdent() {
830
- return this.ej2Instances.outdent();
831
- }
832
- pdfExport(pdfExportProperties, isMultipleExport, pdfDoc) {
833
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc);
834
- }
835
- previousTimeSpan(mode) {
836
- return this.ej2Instances.previousTimeSpan(mode);
837
- }
838
- removeCriticalPathStyles() {
839
- return this.ej2Instances.removeCriticalPathStyles();
840
- }
841
- removePredecessor(id) {
842
- return this.ej2Instances.removePredecessor(id);
843
- }
844
- removeSortColumn(columnName) {
845
- return this.ej2Instances.removeSortColumn(columnName);
846
- }
847
- renderTemplates() {
848
- return this.ej2Instances.renderTemplates();
849
- }
850
- reorderColumns(fromFName, toFName) {
851
- return this.ej2Instances.reorderColumns(fromFName, toFName);
852
- }
853
- reorderRows(fromIndexes, toIndex, position) {
854
- return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
855
- }
856
- resetTemplates() {
857
- return this.ej2Instances.resetTemplates();
858
- }
859
- scrollToDate(date) {
860
- return this.ej2Instances.scrollToDate(date);
861
- }
862
- scrollToTask(taskId) {
863
- return this.ej2Instances.scrollToTask(taskId);
864
- }
865
- search(keyVal) {
866
- return this.ej2Instances.search(keyVal);
867
- }
868
- selectCell(cellIndex, isToggle) {
869
- return this.ej2Instances.selectCell(cellIndex, isToggle);
870
- }
871
- selectCells(rowCellIndexes) {
872
- return this.ej2Instances.selectCells(rowCellIndexes);
873
- }
874
- selectRow(index, isToggle) {
875
- return this.ej2Instances.selectRow(index, isToggle);
876
- }
877
- selectRows(records) {
878
- return this.ej2Instances.selectRows(records);
879
- }
880
- setScrollTop(scrollTop) {
881
- return this.ej2Instances.setScrollTop(scrollTop);
882
- }
883
- setSplitterPosition(value, type) {
884
- return this.ej2Instances.setSplitterPosition(value, type);
885
- }
886
- showColumn(keys, showBy) {
887
- return this.ej2Instances.showColumn(keys, showBy);
888
- }
889
- showCriticalPath(isCritical) {
890
- return this.ej2Instances.showCriticalPath(isCritical);
891
- }
892
- showMaskRow() {
893
- return this.ej2Instances.showMaskRow();
894
- }
895
- showSpinner() {
896
- return this.ej2Instances.showSpinner();
897
- }
898
- sortColumn(columnName, direction, isMultiSort) {
899
- return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
900
- }
901
- splitTask(taskId, splitDate) {
902
- return this.ej2Instances.splitTask(taskId, splitDate);
903
- }
904
- updateChartScrollOffset(left, top) {
905
- return this.ej2Instances.updateChartScrollOffset(left, top);
906
- }
907
- updateDataSource(dataSource, args) {
908
- return this.ej2Instances.updateDataSource(dataSource, args);
909
- }
910
- updatePredecessor(id, predecessorString) {
911
- return this.ej2Instances.updatePredecessor(id, predecessorString);
912
- }
913
- updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom) {
914
- return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
915
- }
916
- updateRecordByID(data) {
917
- return this.ej2Instances.updateRecordByID(data);
918
- }
919
- updateRecordByIndex(index, data) {
920
- return this.ej2Instances.updateRecordByIndex(index, data);
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$$1) {
953
- Vue$$1.component(GanttPlugin.name, GanttComponent);
954
- Vue$$1.component(ColumnPlugin.name, ColumnDirective);
955
- Vue$$1.component(ColumnsPlugin.name, ColumnsDirective);
956
- Vue$$1.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
957
- Vue$$1.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
958
- Vue$$1.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
959
- Vue$$1.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
960
- Vue$$1.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
961
- Vue$$1.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
962
- Vue$$1.component(HolidayPlugin.name, HolidayDirective);
963
- Vue$$1.component(HolidaysPlugin.name, HolidaysDirective);
964
- Vue$$1.component(EventMarkerPlugin.name, EventMarkerDirective);
965
- Vue$$1.component(EventMarkersPlugin.name, EventMarkersDirective);
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