@syncfusion/ej2-vue-gantt 20.2.49 → 20.3.47

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 (52) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/ej2-vue-gantt.umd.min.js +1 -1
  3. package/dist/es6/ej2-vue-gantt.es2015.js +47 -54
  4. package/dist/es6/ej2-vue-gantt.es2015.js.map +1 -1
  5. package/dist/es6/ej2-vue-gantt.es5.js +47 -54
  6. package/dist/es6/ej2-vue-gantt.es5.js.map +1 -1
  7. package/dist/global/ej2-vue-gantt.min.js +2 -2
  8. package/package.json +8 -8
  9. package/src/gantt/adddialogfields.directive.d.ts +0 -1
  10. package/src/gantt/adddialogfields.directive.js +5 -6
  11. package/src/gantt/columns.directive.d.ts +0 -1
  12. package/src/gantt/columns.directive.js +5 -6
  13. package/src/gantt/dayworkingtime.directive.d.ts +0 -1
  14. package/src/gantt/dayworkingtime.directive.js +5 -6
  15. package/src/gantt/editdialogfields.directive.d.ts +0 -1
  16. package/src/gantt/editdialogfields.directive.js +5 -6
  17. package/src/gantt/eventmarkers.directive.d.ts +0 -1
  18. package/src/gantt/eventmarkers.directive.js +5 -6
  19. package/src/gantt/gantt.component.d.ts +6 -7
  20. package/src/gantt/gantt.component.js +3 -4
  21. package/src/gantt/holidays.directive.d.ts +0 -1
  22. package/src/gantt/holidays.directive.js +5 -6
  23. package/styles/bootstrap-dark.css +115 -62
  24. package/styles/bootstrap.css +115 -62
  25. package/styles/bootstrap4.css +115 -62
  26. package/styles/bootstrap5-dark.css +119 -63
  27. package/styles/bootstrap5.css +119 -63
  28. package/styles/fabric-dark.css +115 -62
  29. package/styles/fabric.css +115 -62
  30. package/styles/fluent-dark.css +126 -66
  31. package/styles/fluent.css +124 -64
  32. package/styles/gantt/bootstrap-dark.css +115 -62
  33. package/styles/gantt/bootstrap.css +115 -62
  34. package/styles/gantt/bootstrap4.css +115 -62
  35. package/styles/gantt/bootstrap5-dark.css +119 -63
  36. package/styles/gantt/bootstrap5.css +119 -63
  37. package/styles/gantt/fabric-dark.css +115 -62
  38. package/styles/gantt/fabric.css +115 -62
  39. package/styles/gantt/fluent-dark.css +126 -66
  40. package/styles/gantt/fluent.css +124 -64
  41. package/styles/gantt/highcontrast-light.css +120 -62
  42. package/styles/gantt/highcontrast.css +120 -62
  43. package/styles/gantt/material-dark.css +120 -65
  44. package/styles/gantt/material.css +118 -65
  45. package/styles/gantt/tailwind-dark.css +117 -64
  46. package/styles/gantt/tailwind.css +117 -64
  47. package/styles/highcontrast-light.css +120 -62
  48. package/styles/highcontrast.css +120 -62
  49. package/styles/material-dark.css +120 -65
  50. package/styles/material.css +118 -65
  51. package/styles/tailwind-dark.css +117 -64
  52. package/styles/tailwind.css +117 -64
@@ -1,5 +1,5 @@
1
1
  import { Gantt } from '@syncfusion/ej2-gantt';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh } from '@syncfusion/ej2-vue-base';
2
+ import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
3
  import { Vue } from 'vue-class-component';
4
4
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
5
  import Vue$1 from 'vue';
@@ -24,7 +24,6 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
24
24
  return c > 3 && r && Object.defineProperty(target, key, r), r;
25
25
  };
26
26
  import { Options } from 'vue-class-component';
27
- var isExecute = gh ? false : true;
28
27
  var vueImport;
29
28
  if (!isExecute || parseInt(allVue.version) < 3) {
30
29
  vueImport = Vue;
@@ -38,18 +37,18 @@ var ColumnsDirective = /** @__PURE__ @class */ (function (_super) {
38
37
  return _super.call(this, arguments) || this;
39
38
  }
40
39
  ColumnsDirective.prototype.render = function (createElement) {
41
- if (gh) {
42
- var h = gh || createElement;
40
+ if (!isExecute) {
41
+ var h = !isExecute ? gh : createElement;
43
42
  var slots = null;
44
43
  if (!isNullOrUndefined(this.$slots.default)) {
45
- slots = gh ? this.$slots.default() : this.$slots.default;
44
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
46
45
  }
47
46
  return h('div', { class: 'e-directive' }, slots);
48
47
  }
49
48
  return;
50
49
  };
51
50
  ColumnsDirective.prototype.updated = function () {
52
- if (gh && this.custom) {
51
+ if (!isExecute && this.custom) {
53
52
  this.custom();
54
53
  }
55
54
  };
@@ -129,9 +128,8 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
129
128
  return c > 3 && r && Object.defineProperty(target, key, r), r;
130
129
  };
131
130
  // {{VueImport}}
132
- var isExecute$1 = gh ? false : true;
133
131
  var vueImport$1;
134
- if (!isExecute$1 || parseInt(allVue.version) < 3) {
132
+ if (!isExecute || parseInt(allVue.version) < 3) {
135
133
  vueImport$1 = Vue;
136
134
  }
137
135
  else {
@@ -143,18 +141,18 @@ var AddDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
143
141
  return _super.call(this, arguments) || this;
144
142
  }
145
143
  AddDialogFieldsDirective.prototype.render = function (createElement) {
146
- if (gh) {
147
- var h = gh || createElement;
144
+ if (!isExecute) {
145
+ var h = !isExecute ? gh : createElement;
148
146
  var slots = null;
149
147
  if (!isNullOrUndefined(this.$slots.default)) {
150
- slots = gh ? this.$slots.default() : this.$slots.default;
148
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
151
149
  }
152
150
  return h('div', { class: 'e-directive' }, slots);
153
151
  }
154
152
  return;
155
153
  };
156
154
  AddDialogFieldsDirective.prototype.updated = function () {
157
- if (gh && this.custom) {
155
+ if (!isExecute && this.custom) {
158
156
  this.custom();
159
157
  }
160
158
  };
@@ -162,7 +160,7 @@ var AddDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
162
160
  return 'e-add-dialog-fields';
163
161
  };
164
162
  AddDialogFieldsDirective = __decorate$1([
165
- EJComponentDecorator({}, isExecute$1)
163
+ EJComponentDecorator({}, isExecute)
166
164
  ,Options({
167
165
  inject: {
168
166
  custom: {
@@ -203,7 +201,7 @@ var AddDialogFieldDirective = /** @__PURE__ @class */ (function (_super) {
203
201
  return 'e-add-dialog-field';
204
202
  };
205
203
  AddDialogFieldDirective = __decorate$1([
206
- EJComponentDecorator({}, isExecute$1)
204
+ EJComponentDecorator({}, isExecute)
207
205
  ], AddDialogFieldDirective);
208
206
  return AddDialogFieldDirective;
209
207
  }(vueImport$1));
@@ -234,9 +232,8 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
234
232
  return c > 3 && r && Object.defineProperty(target, key, r), r;
235
233
  };
236
234
  // {{VueImport}}
237
- var isExecute$2 = gh ? false : true;
238
235
  var vueImport$2;
239
- if (!isExecute$2 || parseInt(allVue.version) < 3) {
236
+ if (!isExecute || parseInt(allVue.version) < 3) {
240
237
  vueImport$2 = Vue;
241
238
  }
242
239
  else {
@@ -248,18 +245,18 @@ var EditDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
248
245
  return _super.call(this, arguments) || this;
249
246
  }
250
247
  EditDialogFieldsDirective.prototype.render = function (createElement) {
251
- if (gh) {
252
- var h = gh || createElement;
248
+ if (!isExecute) {
249
+ var h = !isExecute ? gh : createElement;
253
250
  var slots = null;
254
251
  if (!isNullOrUndefined(this.$slots.default)) {
255
- slots = gh ? this.$slots.default() : this.$slots.default;
252
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
256
253
  }
257
254
  return h('div', { class: 'e-directive' }, slots);
258
255
  }
259
256
  return;
260
257
  };
261
258
  EditDialogFieldsDirective.prototype.updated = function () {
262
- if (gh && this.custom) {
259
+ if (!isExecute && this.custom) {
263
260
  this.custom();
264
261
  }
265
262
  };
@@ -267,7 +264,7 @@ var EditDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
267
264
  return 'e-edit-dialog-fields';
268
265
  };
269
266
  EditDialogFieldsDirective = __decorate$2([
270
- EJComponentDecorator({}, isExecute$2)
267
+ EJComponentDecorator({}, isExecute)
271
268
  ,Options({
272
269
  inject: {
273
270
  custom: {
@@ -308,7 +305,7 @@ var EditDialogFieldDirective = /** @__PURE__ @class */ (function (_super) {
308
305
  return 'e-edit-dialog-field';
309
306
  };
310
307
  EditDialogFieldDirective = __decorate$2([
311
- EJComponentDecorator({}, isExecute$2)
308
+ EJComponentDecorator({}, isExecute)
312
309
  ], EditDialogFieldDirective);
313
310
  return EditDialogFieldDirective;
314
311
  }(vueImport$2));
@@ -339,9 +336,8 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
339
336
  return c > 3 && r && Object.defineProperty(target, key, r), r;
340
337
  };
341
338
  // {{VueImport}}
342
- var isExecute$3 = gh ? false : true;
343
339
  var vueImport$3;
344
- if (!isExecute$3 || parseInt(allVue.version) < 3) {
340
+ if (!isExecute || parseInt(allVue.version) < 3) {
345
341
  vueImport$3 = Vue;
346
342
  }
347
343
  else {
@@ -353,18 +349,18 @@ var DayWorkingTimeCollectionDirective = /** @__PURE__ @class */ (function (_supe
353
349
  return _super.call(this, arguments) || this;
354
350
  }
355
351
  DayWorkingTimeCollectionDirective.prototype.render = function (createElement) {
356
- if (gh) {
357
- var h = gh || createElement;
352
+ if (!isExecute) {
353
+ var h = !isExecute ? gh : createElement;
358
354
  var slots = null;
359
355
  if (!isNullOrUndefined(this.$slots.default)) {
360
- slots = gh ? this.$slots.default() : this.$slots.default;
356
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
361
357
  }
362
358
  return h('div', { class: 'e-directive' }, slots);
363
359
  }
364
360
  return;
365
361
  };
366
362
  DayWorkingTimeCollectionDirective.prototype.updated = function () {
367
- if (gh && this.custom) {
363
+ if (!isExecute && this.custom) {
368
364
  this.custom();
369
365
  }
370
366
  };
@@ -372,7 +368,7 @@ var DayWorkingTimeCollectionDirective = /** @__PURE__ @class */ (function (_supe
372
368
  return 'e-day-working-time-collection';
373
369
  };
374
370
  DayWorkingTimeCollectionDirective = __decorate$3([
375
- EJComponentDecorator({}, isExecute$3)
371
+ EJComponentDecorator({}, isExecute)
376
372
  ,Options({
377
373
  inject: {
378
374
  custom: {
@@ -413,7 +409,7 @@ var DayWorkingTimeDirective = /** @__PURE__ @class */ (function (_super) {
413
409
  return 'e-day-working-time';
414
410
  };
415
411
  DayWorkingTimeDirective = __decorate$3([
416
- EJComponentDecorator({}, isExecute$3)
412
+ EJComponentDecorator({}, isExecute)
417
413
  ], DayWorkingTimeDirective);
418
414
  return DayWorkingTimeDirective;
419
415
  }(vueImport$3));
@@ -444,9 +440,8 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
444
440
  return c > 3 && r && Object.defineProperty(target, key, r), r;
445
441
  };
446
442
  // {{VueImport}}
447
- var isExecute$4 = gh ? false : true;
448
443
  var vueImport$4;
449
- if (!isExecute$4 || parseInt(allVue.version) < 3) {
444
+ if (!isExecute || parseInt(allVue.version) < 3) {
450
445
  vueImport$4 = Vue;
451
446
  }
452
447
  else {
@@ -458,18 +453,18 @@ var HolidaysDirective = /** @__PURE__ @class */ (function (_super) {
458
453
  return _super.call(this, arguments) || this;
459
454
  }
460
455
  HolidaysDirective.prototype.render = function (createElement) {
461
- if (gh) {
462
- var h = gh || createElement;
456
+ if (!isExecute) {
457
+ var h = !isExecute ? gh : createElement;
463
458
  var slots = null;
464
459
  if (!isNullOrUndefined(this.$slots.default)) {
465
- slots = gh ? this.$slots.default() : this.$slots.default;
460
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
466
461
  }
467
462
  return h('div', { class: 'e-directive' }, slots);
468
463
  }
469
464
  return;
470
465
  };
471
466
  HolidaysDirective.prototype.updated = function () {
472
- if (gh && this.custom) {
467
+ if (!isExecute && this.custom) {
473
468
  this.custom();
474
469
  }
475
470
  };
@@ -477,7 +472,7 @@ var HolidaysDirective = /** @__PURE__ @class */ (function (_super) {
477
472
  return 'e-holidays';
478
473
  };
479
474
  HolidaysDirective = __decorate$4([
480
- EJComponentDecorator({}, isExecute$4)
475
+ EJComponentDecorator({}, isExecute)
481
476
  ,Options({
482
477
  inject: {
483
478
  custom: {
@@ -518,7 +513,7 @@ var HolidayDirective = /** @__PURE__ @class */ (function (_super) {
518
513
  return 'e-holidays';
519
514
  };
520
515
  HolidayDirective = __decorate$4([
521
- EJComponentDecorator({}, isExecute$4)
516
+ EJComponentDecorator({}, isExecute)
522
517
  ], HolidayDirective);
523
518
  return HolidayDirective;
524
519
  }(vueImport$4));
@@ -549,9 +544,8 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
549
544
  return c > 3 && r && Object.defineProperty(target, key, r), r;
550
545
  };
551
546
  // {{VueImport}}
552
- var isExecute$5 = gh ? false : true;
553
547
  var vueImport$5;
554
- if (!isExecute$5 || parseInt(allVue.version) < 3) {
548
+ if (!isExecute || parseInt(allVue.version) < 3) {
555
549
  vueImport$5 = Vue;
556
550
  }
557
551
  else {
@@ -563,18 +557,18 @@ var EventMarkersDirective = /** @__PURE__ @class */ (function (_super) {
563
557
  return _super.call(this, arguments) || this;
564
558
  }
565
559
  EventMarkersDirective.prototype.render = function (createElement) {
566
- if (gh) {
567
- var h = gh || createElement;
560
+ if (!isExecute) {
561
+ var h = !isExecute ? gh : createElement;
568
562
  var slots = null;
569
563
  if (!isNullOrUndefined(this.$slots.default)) {
570
- slots = gh ? this.$slots.default() : this.$slots.default;
564
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
571
565
  }
572
566
  return h('div', { class: 'e-directive' }, slots);
573
567
  }
574
568
  return;
575
569
  };
576
570
  EventMarkersDirective.prototype.updated = function () {
577
- if (gh && this.custom) {
571
+ if (!isExecute && this.custom) {
578
572
  this.custom();
579
573
  }
580
574
  };
@@ -582,7 +576,7 @@ var EventMarkersDirective = /** @__PURE__ @class */ (function (_super) {
582
576
  return 'e-event-markers';
583
577
  };
584
578
  EventMarkersDirective = __decorate$5([
585
- EJComponentDecorator({}, isExecute$5)
579
+ EJComponentDecorator({}, isExecute)
586
580
  ,Options({
587
581
  inject: {
588
582
  custom: {
@@ -622,7 +616,7 @@ var EventMarkerDirective = /** @__PURE__ @class */ (function (_super) {
622
616
  return 'e-event-marker';
623
617
  };
624
618
  EventMarkerDirective = __decorate$5([
625
- EJComponentDecorator({}, isExecute$5)
619
+ EJComponentDecorator({}, isExecute)
626
620
  ], EventMarkerDirective);
627
621
  return EventMarkerDirective;
628
622
  }(vueImport$5));
@@ -664,7 +658,6 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
664
658
  var props_1 = modelProps_1[_i];
665
659
  emitProbs.push('update:' + props_1);
666
660
  }
667
- var isExecute$6 = gh ? false : true;
668
661
  /**
669
662
  * `ejs-gantt` represents the VueJS Gantt Component.
670
663
  * ```vue
@@ -681,7 +674,7 @@ var GanttComponent = /** @__PURE__ @class */ (function (_super) {
681
674
  _this.hasInjectedModules = true;
682
675
  _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" };
683
676
  _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" };
684
- _this.isVue3 = !isExecute$6;
677
+ _this.isVue3 = !isExecute;
685
678
  _this.ej2Instances = new Gantt({});
686
679
  _this.ej2Instances._trigger = _this.ej2Instances.trigger;
687
680
  _this.ej2Instances.trigger = _this.trigger;
@@ -741,14 +734,14 @@ var GanttComponent = /** @__PURE__ @class */ (function (_super) {
741
734
  }
742
735
  };
743
736
  GanttComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
744
- if (!isExecute$6) {
737
+ if (!isExecute) {
745
738
  this.models = !this.models ? this.ej2Instances.referModels : this.models;
746
739
  }
747
740
  if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
748
741
  var key = this.models.toString().match(/checked|value/) || [];
749
742
  var propKey = key[0];
750
743
  if (eventProp && key && !isUndefined(eventProp[propKey])) {
751
- if (!isExecute$6) {
744
+ if (!isExecute) {
752
745
  this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
753
746
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
754
747
  this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
@@ -765,7 +758,7 @@ var GanttComponent = /** @__PURE__ @class */ (function (_super) {
765
758
  var key = this.models.toString().match(/currentView|selectedDate/) || [];
766
759
  var propKey = key[0];
767
760
  if (eventProp && key && !isUndefined(eventProp[propKey])) {
768
- if (!isExecute$6) {
761
+ if (!isExecute) {
769
762
  this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
770
763
  this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
771
764
  }
@@ -780,10 +773,10 @@ var GanttComponent = /** @__PURE__ @class */ (function (_super) {
780
773
  }
781
774
  };
782
775
  GanttComponent.prototype.render = function (createElement) {
783
- var h = gh || createElement;
776
+ var h = !isExecute ? gh : createElement;
784
777
  var slots = null;
785
778
  if (!isNullOrUndefined(this.$slots.default)) {
786
- slots = gh ? this.$slots.default() : this.$slots.default;
779
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
787
780
  }
788
781
  return h('div', slots);
789
782
  };
@@ -1015,7 +1008,7 @@ var GanttComponent = /** @__PURE__ @class */ (function (_super) {
1015
1008
  model: {
1016
1009
  event: 'modelchanged'
1017
1010
  }
1018
- }, isExecute$6)
1011
+ }, isExecute)
1019
1012
  ,Options({
1020
1013
  props: props,
1021
1014
  watch: watch,