@syncfusion/ej2-vue-gantt 20.4.54 → 21.1.36

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 (61) hide show
  1. package/CHANGELOG.md +186 -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 +63 -56
  25. package/styles/bootstrap.css +63 -58
  26. package/styles/bootstrap4.css +60 -55
  27. package/styles/bootstrap5-dark.css +60 -55
  28. package/styles/bootstrap5.css +60 -55
  29. package/styles/fabric-dark.css +58 -53
  30. package/styles/fabric.css +58 -53
  31. package/styles/fluent-dark.css +84 -76
  32. package/styles/fluent.css +84 -76
  33. package/styles/gantt/bootstrap-dark.css +63 -56
  34. package/styles/gantt/bootstrap.css +63 -58
  35. package/styles/gantt/bootstrap4.css +60 -55
  36. package/styles/gantt/bootstrap5-dark.css +60 -55
  37. package/styles/gantt/bootstrap5.css +60 -55
  38. package/styles/gantt/fabric-dark.css +58 -53
  39. package/styles/gantt/fabric.css +58 -53
  40. package/styles/gantt/fluent-dark.css +84 -76
  41. package/styles/gantt/fluent.css +84 -76
  42. package/styles/gantt/highcontrast-light.css +58 -55
  43. package/styles/gantt/highcontrast.css +58 -53
  44. package/styles/gantt/material-dark.css +61 -60
  45. package/styles/gantt/material.css +58 -53
  46. package/styles/gantt/material3-dark.css +2193 -0
  47. package/styles/gantt/material3-dark.scss +2 -0
  48. package/styles/gantt/material3.css +2249 -0
  49. package/styles/gantt/material3.scss +2 -0
  50. package/styles/gantt/tailwind-dark.css +58 -53
  51. package/styles/gantt/tailwind.css +58 -53
  52. package/styles/highcontrast-light.css +58 -55
  53. package/styles/highcontrast.css +58 -53
  54. package/styles/material-dark.css +61 -60
  55. package/styles/material.css +58 -53
  56. package/styles/material3-dark.css +2193 -0
  57. package/styles/material3-dark.scss +2 -0
  58. package/styles/material3.css +2249 -0
  59. package/styles/material3.scss +2 -0
  60. package/styles/tailwind-dark.css +58 -53
  61. package/styles/tailwind.css +58 -53
@@ -1,25 +1,6 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
3
+ import { isUndefined } from '@syncfusion/ej2-base';
23
4
  import { Gantt } from '@syncfusion/ej2-gantt';
24
5
  import { ColumnsDirective, ColumnDirective, ColumnsPlugin, ColumnPlugin } from './columns.directive';
25
6
  import { AddDialogFieldsDirective, AddDialogFieldDirective, AddDialogFieldsPlugin, AddDialogFieldPlugin } from './adddialogfields.directive';
@@ -27,13 +8,10 @@ import { EditDialogFieldsDirective, EditDialogFieldDirective, EditDialogFieldsPl
27
8
  import { DayWorkingTimeCollectionDirective, DayWorkingTimeDirective, DayWorkingTimeCollectionPlugin, DayWorkingTimePlugin } from './dayworkingtime.directive';
28
9
  import { HolidaysDirective, HolidayDirective, HolidaysPlugin, HolidayPlugin } from './holidays.directive';
29
10
  import { EventMarkersDirective, EventMarkerDirective, EventMarkersPlugin, EventMarkerPlugin } from './eventmarkers.directive';
30
- import { Options } from 'vue-class-component';
31
- export var 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'];
11
+ export var 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', 'zoomingLevels', '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'];
32
12
  export var modelProps = ['dataSource'];
33
13
  export var testProp = getProps({ props: properties });
34
- export var props = testProp[0];
35
- export var watch = testProp[1];
36
- export var emitProbs = Object.keys(watch);
14
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
37
15
  emitProbs.push('modelchanged', 'update:modelValue');
38
16
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
39
17
  var props_1 = modelProps_1[_i];
@@ -45,371 +23,362 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
45
23
  * <ejs-gantt :dataSource='data' allowSelection='true' allowSorting='true'></ejs-gantt>
46
24
  * ```
47
25
  */
48
- var GanttComponent = /** @class */ (function (_super) {
49
- __extends(GanttComponent, _super);
50
- function GanttComponent() {
51
- var _this = _super.call(this, arguments) || this;
52
- _this.propKeys = properties;
53
- _this.models = modelProps;
54
- _this.hasChildDirective = true;
55
- _this.hasInjectedModules = true;
56
- _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" };
57
- _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" };
58
- _this.isVue3 = !isExecute;
59
- _this.ej2Instances = new Gantt({});
60
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
61
- _this.ej2Instances.trigger = _this.trigger;
62
- _this.bindProperties();
63
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
64
- _this.ej2Instances.setProperties = _this.setProperties;
65
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
66
- _this.updated = _this.updated;
67
- return _this;
68
- }
69
- GanttComponent.prototype.clearTemplate = function (templateNames) {
70
- if (!templateNames) {
71
- templateNames = Object.keys(this.templateCollection || {});
26
+ export var GanttComponent = vueDefineComponent({
27
+ name: 'GanttComponent',
28
+ mixins: [ComponentBase],
29
+ props: props,
30
+ watch: watch,
31
+ emits: emitProbs,
32
+ model: { event: 'modelchanged' },
33
+ provide: function () { return { custom: this.custom }; },
34
+ data: function () {
35
+ return {
36
+ ej2Instance: new Gantt({}),
37
+ propKeys: properties,
38
+ models: modelProps,
39
+ hasChildDirective: true,
40
+ hasInjectedModules: true,
41
+ 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" },
42
+ 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" },
43
+ isVue3: !isExecute,
44
+ templateCollection: {},
45
+ };
46
+ },
47
+ created: function () {
48
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
49
+ this.ej2Instances.trigger = this.trigger;
50
+ this.bindProperties();
51
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
52
+ this.ej2Instances.setProperties = this.setProperties;
53
+ this.ej2Instances.clearTemplate = this.clearTemplate;
54
+ this.updated = this.updated;
55
+ },
56
+ render: function (createElement) {
57
+ var h = !isExecute ? gh : createElement;
58
+ var slots = null;
59
+ if (!isNullOrUndefined(this.$slots.default)) {
60
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
72
61
  }
73
- if (templateNames.length && this.templateCollection) {
74
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
75
- var tempName = templateNames_1[_i];
76
- var elementCollection = this.templateCollection[tempName];
77
- if (elementCollection && elementCollection.length) {
78
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
79
- var ele = elementCollection_1[_a];
80
- var destroy = getValue('__vue__.$destroy', ele);
81
- if (destroy) {
82
- ele.__vue__.$destroy();
83
- }
84
- if (ele.innerHTML) {
85
- ele.innerHTML = '';
62
+ return h('div', slots);
63
+ },
64
+ methods: {
65
+ clearTemplate: function (templateNames) {
66
+ if (!templateNames) {
67
+ templateNames = Object.keys(this.templateCollection || {});
68
+ }
69
+ if (templateNames.length && this.templateCollection) {
70
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
71
+ var tempName = templateNames_1[_i];
72
+ var elementCollection = this.templateCollection[tempName];
73
+ if (elementCollection && elementCollection.length) {
74
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
75
+ var ele = elementCollection_1[_a];
76
+ var destroy = getValue('__vue__.$destroy', ele);
77
+ if (destroy) {
78
+ ele.__vue__.$destroy();
79
+ }
80
+ if (ele.innerHTML) {
81
+ ele.innerHTML = '';
82
+ }
86
83
  }
84
+ delete this.templateCollection[tempName];
87
85
  }
88
- delete this.templateCollection[tempName];
89
86
  }
90
87
  }
91
- }
92
- };
93
- GanttComponent.prototype.setProperties = function (prop, muteOnChange) {
94
- var _this = this;
95
- if (this.isVue3) {
96
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
97
- }
98
- if (this.ej2Instances && this.ej2Instances._setProperties) {
99
- this.ej2Instances._setProperties(prop, muteOnChange);
100
- }
101
- if (prop && this.models && this.models.length) {
102
- Object.keys(prop).map(function (key) {
103
- _this.models.map(function (model) {
104
- if ((key === model) && !(/datasource/i.test(key))) {
105
- if (_this.isVue3) {
106
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
88
+ },
89
+ setProperties: function (prop, muteOnChange) {
90
+ var _this = this;
91
+ if (this.isVue3) {
92
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
93
+ }
94
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
95
+ this.ej2Instances._setProperties(prop, muteOnChange);
96
+ }
97
+ if (prop && this.models && this.models.length) {
98
+ Object.keys(prop).map(function (key) {
99
+ _this.models.map(function (model) {
100
+ if ((key === model) && !(/datasource/i.test(key))) {
101
+ if (_this.isVue3) {
102
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
103
+ }
104
+ else {
105
+ _this.$emit('update:' + key, prop[key]);
106
+ _this.$emit('modelchanged', prop[key]);
107
+ }
107
108
  }
108
- else {
109
- _this.$emit('update:' + key, prop[key]);
110
- _this.$emit('modelchanged', prop[key]);
109
+ });
110
+ });
111
+ }
112
+ },
113
+ trigger: function (eventName, eventProp, successHandler) {
114
+ if (!isExecute) {
115
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
116
+ }
117
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
118
+ var key = this.models.toString().match(/checked|value/) || [];
119
+ var propKey = key[0];
120
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
121
+ if (!isExecute) {
122
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
123
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
124
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
125
+ }
126
+ else {
127
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
128
+ this.$emit('update:' + propKey, eventProp[propKey]);
129
+ this.$emit('modelchanged', eventProp[propKey]);
111
130
  }
112
131
  }
113
- });
114
- });
115
- }
116
- };
117
- GanttComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
118
- if (!isExecute) {
119
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
120
- }
121
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
122
- var key = this.models.toString().match(/checked|value/) || [];
123
- var propKey = key[0];
124
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
125
- if (!isExecute) {
126
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
127
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
128
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
129
132
  }
130
- else {
131
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
133
+ }
134
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
135
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
136
+ var propKey = key[0];
137
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
138
+ if (!isExecute) {
139
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
140
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
141
+ }
142
+ else {
132
143
  this.$emit('update:' + propKey, eventProp[propKey]);
133
144
  this.$emit('modelchanged', eventProp[propKey]);
134
145
  }
135
146
  }
136
147
  }
137
- }
138
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
139
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
140
- var propKey = key[0];
141
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
142
- if (!isExecute) {
143
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
144
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
145
- }
146
- else {
147
- this.$emit('update:' + propKey, eventProp[propKey]);
148
- this.$emit('modelchanged', eventProp[propKey]);
149
- }
148
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
149
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
150
150
  }
151
- }
152
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
153
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
154
- }
155
- };
156
- GanttComponent.prototype.render = function (createElement) {
157
- var h = !isExecute ? gh : createElement;
158
- var slots = null;
159
- if (!isNullOrUndefined(this.$slots.default)) {
160
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
161
- }
162
- return h('div', slots);
163
- };
164
- GanttComponent.prototype.custom = function () {
165
- this.updated();
166
- };
167
- GanttComponent.prototype.addPredecessor = function (id, predecessorString) {
168
- return this.ej2Instances.addPredecessor(id, predecessorString);
169
- };
170
- GanttComponent.prototype.addRecord = function (data, rowPosition, rowIndex) {
171
- return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
172
- };
173
- GanttComponent.prototype.cancelEdit = function () {
174
- return this.ej2Instances.cancelEdit();
175
- };
176
- GanttComponent.prototype.changeTaskMode = function (data) {
177
- return this.ej2Instances.changeTaskMode(data);
178
- };
179
- GanttComponent.prototype.clearFiltering = function (fields) {
180
- return this.ej2Instances.clearFiltering(fields);
181
- };
182
- GanttComponent.prototype.clearSelection = function () {
183
- return this.ej2Instances.clearSelection();
184
- };
185
- GanttComponent.prototype.clearSorting = function () {
186
- return this.ej2Instances.clearSorting();
187
- };
188
- GanttComponent.prototype.collapseAll = function () {
189
- return this.ej2Instances.collapseAll();
190
- };
191
- GanttComponent.prototype.collapseByID = function (id) {
192
- return this.ej2Instances.collapseByID(id);
193
- };
194
- GanttComponent.prototype.collapseByIndex = function (index) {
195
- return this.ej2Instances.collapseByIndex(index);
196
- };
197
- GanttComponent.prototype.convertToMilestone = function (id) {
198
- return this.ej2Instances.convertToMilestone(id);
199
- };
200
- GanttComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
201
- return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
202
- };
203
- GanttComponent.prototype.deleteRecord = function (taskDetail) {
204
- return this.ej2Instances.deleteRecord(taskDetail);
205
- };
206
- GanttComponent.prototype.enableItems = function (items, isEnable) {
207
- return this.ej2Instances.enableItems(items, isEnable);
208
- };
209
- GanttComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
210
- return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
211
- };
212
- GanttComponent.prototype.expandAll = function () {
213
- return this.ej2Instances.expandAll();
214
- };
215
- GanttComponent.prototype.expandByID = function (id) {
216
- return this.ej2Instances.expandByID(id);
217
- };
218
- GanttComponent.prototype.expandByIndex = function (index) {
219
- return this.ej2Instances.expandByIndex(index);
220
- };
221
- GanttComponent.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
222
- return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
223
- };
224
- GanttComponent.prototype.fitToProject = function () {
225
- return this.ej2Instances.fitToProject();
226
- };
227
- GanttComponent.prototype.getCriticalTasks = function () {
228
- return this.ej2Instances.getCriticalTasks();
229
- };
230
- GanttComponent.prototype.getDurationString = function (duration, durationUnit) {
231
- return this.ej2Instances.getDurationString(duration, durationUnit);
232
- };
233
- GanttComponent.prototype.getExpandedRecords = function (records) {
234
- return this.ej2Instances.getExpandedRecords(records);
235
- };
236
- GanttComponent.prototype.getFormatedDate = function (date, format) {
237
- return this.ej2Instances.getFormatedDate(date, format);
238
- };
239
- GanttComponent.prototype.getGanttColumns = function () {
240
- return this.ej2Instances.getGanttColumns();
241
- };
242
- GanttComponent.prototype.getGridColumns = function () {
243
- return this.ej2Instances.getGridColumns();
244
- };
245
- GanttComponent.prototype.getRecordByID = function (id) {
246
- return this.ej2Instances.getRecordByID(id);
247
- };
248
- GanttComponent.prototype.getRowByID = function (id) {
249
- return this.ej2Instances.getRowByID(id);
250
- };
251
- GanttComponent.prototype.getRowByIndex = function (index) {
252
- return this.ej2Instances.getRowByIndex(index);
253
- };
254
- GanttComponent.prototype.getTaskByUniqueID = function (id) {
255
- return this.ej2Instances.getTaskByUniqueID(id);
256
- };
257
- GanttComponent.prototype.getTaskbarHeight = function () {
258
- return this.ej2Instances.getTaskbarHeight();
259
- };
260
- GanttComponent.prototype.getWorkString = function (work, workUnit) {
261
- return this.ej2Instances.getWorkString(work, workUnit);
262
- };
263
- GanttComponent.prototype.hideColumn = function (keys, hideBy) {
264
- return this.ej2Instances.hideColumn(keys, hideBy);
265
- };
266
- GanttComponent.prototype.hideMaskRow = function () {
267
- return this.ej2Instances.hideMaskRow();
268
- };
269
- GanttComponent.prototype.hideSpinner = function () {
270
- return this.ej2Instances.hideSpinner();
271
- };
272
- GanttComponent.prototype.indent = function () {
273
- return this.ej2Instances.indent();
274
- };
275
- GanttComponent.prototype.keyActionHandler = function (e) {
276
- return this.ej2Instances.keyActionHandler(e);
277
- };
278
- GanttComponent.prototype.mergeTask = function (taskId, segmentIndexes) {
279
- return this.ej2Instances.mergeTask(taskId, segmentIndexes);
280
- };
281
- GanttComponent.prototype.nextTimeSpan = function (mode) {
282
- return this.ej2Instances.nextTimeSpan(mode);
283
- };
284
- GanttComponent.prototype.openAddDialog = function () {
285
- return this.ej2Instances.openAddDialog();
286
- };
287
- GanttComponent.prototype.openEditDialog = function (taskId) {
288
- return this.ej2Instances.openEditDialog(taskId);
289
- };
290
- GanttComponent.prototype.outdent = function () {
291
- return this.ej2Instances.outdent();
292
- };
293
- GanttComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc) {
294
- return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc);
295
- };
296
- GanttComponent.prototype.previousTimeSpan = function (mode) {
297
- return this.ej2Instances.previousTimeSpan(mode);
298
- };
299
- GanttComponent.prototype.removeCriticalPathStyles = function () {
300
- return this.ej2Instances.removeCriticalPathStyles();
301
- };
302
- GanttComponent.prototype.removePredecessor = function (id) {
303
- return this.ej2Instances.removePredecessor(id);
304
- };
305
- GanttComponent.prototype.removeSortColumn = function (columnName) {
306
- return this.ej2Instances.removeSortColumn(columnName);
307
- };
308
- GanttComponent.prototype.renderTemplates = function () {
309
- return this.ej2Instances.renderTemplates();
310
- };
311
- GanttComponent.prototype.reorderColumns = function (fromFName, toFName) {
312
- return this.ej2Instances.reorderColumns(fromFName, toFName);
313
- };
314
- GanttComponent.prototype.reorderRows = function (fromIndexes, toIndex, position) {
315
- return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
316
- };
317
- GanttComponent.prototype.resetTemplates = function () {
318
- return this.ej2Instances.resetTemplates();
319
- };
320
- GanttComponent.prototype.scrollToDate = function (date) {
321
- return this.ej2Instances.scrollToDate(date);
322
- };
323
- GanttComponent.prototype.scrollToTask = function (taskId) {
324
- return this.ej2Instances.scrollToTask(taskId);
325
- };
326
- GanttComponent.prototype.search = function (keyVal) {
327
- return this.ej2Instances.search(keyVal);
328
- };
329
- GanttComponent.prototype.selectCell = function (cellIndex, isToggle) {
330
- return this.ej2Instances.selectCell(cellIndex, isToggle);
331
- };
332
- GanttComponent.prototype.selectCells = function (rowCellIndexes) {
333
- return this.ej2Instances.selectCells(rowCellIndexes);
334
- };
335
- GanttComponent.prototype.selectRow = function (index, isToggle) {
336
- return this.ej2Instances.selectRow(index, isToggle);
337
- };
338
- GanttComponent.prototype.selectRows = function (records) {
339
- return this.ej2Instances.selectRows(records);
340
- };
341
- GanttComponent.prototype.setScrollTop = function (scrollTop) {
342
- return this.ej2Instances.setScrollTop(scrollTop);
343
- };
344
- GanttComponent.prototype.setSplitterPosition = function (value, type) {
345
- return this.ej2Instances.setSplitterPosition(value, type);
346
- };
347
- GanttComponent.prototype.showColumn = function (keys, showBy) {
348
- return this.ej2Instances.showColumn(keys, showBy);
349
- };
350
- GanttComponent.prototype.showCriticalPath = function (isCritical) {
351
- return this.ej2Instances.showCriticalPath(isCritical);
352
- };
353
- GanttComponent.prototype.showMaskRow = function () {
354
- return this.ej2Instances.showMaskRow();
355
- };
356
- GanttComponent.prototype.showSpinner = function () {
357
- return this.ej2Instances.showSpinner();
358
- };
359
- GanttComponent.prototype.sortColumn = function (columnName, direction, isMultiSort) {
360
- return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
361
- };
362
- GanttComponent.prototype.splitTask = function (taskId, splitDate) {
363
- return this.ej2Instances.splitTask(taskId, splitDate);
364
- };
365
- GanttComponent.prototype.updateChartScrollOffset = function (left, top) {
366
- return this.ej2Instances.updateChartScrollOffset(left, top);
367
- };
368
- GanttComponent.prototype.updateDataSource = function (dataSource, args) {
369
- return this.ej2Instances.updateDataSource(dataSource, args);
370
- };
371
- GanttComponent.prototype.updatePredecessor = function (id, predecessorString) {
372
- return this.ej2Instances.updatePredecessor(id, predecessorString);
373
- };
374
- GanttComponent.prototype.updateProjectDates = function (startDate, endDate, isTimelineRoundOff, isFrom) {
375
- return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
376
- };
377
- GanttComponent.prototype.updateRecordByID = function (data) {
378
- return this.ej2Instances.updateRecordByID(data);
379
- };
380
- GanttComponent.prototype.updateRecordByIndex = function (index, data) {
381
- return this.ej2Instances.updateRecordByIndex(index, data);
382
- };
383
- GanttComponent.prototype.updateTaskId = function (currentId, newId) {
384
- return this.ej2Instances.updateTaskId(currentId, newId);
385
- };
386
- GanttComponent.prototype.zoomIn = function () {
387
- return this.ej2Instances.zoomIn();
388
- };
389
- GanttComponent.prototype.zoomOut = function () {
390
- return this.ej2Instances.zoomOut();
391
- };
392
- GanttComponent = __decorate([
393
- EJComponentDecorator({
394
- props: properties,
395
- model: {
396
- event: 'modelchanged'
397
- }
398
- }, isExecute)
399
- ,Options({
400
- props: props,
401
- watch: watch,
402
- emits: emitProbs,
403
- provide: function provide() {
404
- return {
405
- custom: this.custom
406
- };
407
- }
408
- })
409
- ], GanttComponent);
410
- return GanttComponent;
411
- }(ComponentBase));
412
- export { GanttComponent };
151
+ },
152
+ custom: function () {
153
+ this.updated();
154
+ },
155
+ addPredecessor: function (id, predecessorString) {
156
+ return this.ej2Instances.addPredecessor(id, predecessorString);
157
+ },
158
+ addRecord: function (data, rowPosition, rowIndex) {
159
+ return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
160
+ },
161
+ cancelEdit: function () {
162
+ return this.ej2Instances.cancelEdit();
163
+ },
164
+ changeTaskMode: function (data) {
165
+ return this.ej2Instances.changeTaskMode(data);
166
+ },
167
+ clearFiltering: function (fields) {
168
+ return this.ej2Instances.clearFiltering(fields);
169
+ },
170
+ clearSelection: function () {
171
+ return this.ej2Instances.clearSelection();
172
+ },
173
+ clearSorting: function () {
174
+ return this.ej2Instances.clearSorting();
175
+ },
176
+ collapseAll: function () {
177
+ return this.ej2Instances.collapseAll();
178
+ },
179
+ collapseByID: function (id) {
180
+ return this.ej2Instances.collapseByID(id);
181
+ },
182
+ collapseByIndex: function (index) {
183
+ return this.ej2Instances.collapseByIndex(index);
184
+ },
185
+ convertToMilestone: function (id) {
186
+ return this.ej2Instances.convertToMilestone(id);
187
+ },
188
+ csvExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
189
+ return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
190
+ },
191
+ deleteRecord: function (taskDetail) {
192
+ return this.ej2Instances.deleteRecord(taskDetail);
193
+ },
194
+ enableItems: function (items, isEnable) {
195
+ return this.ej2Instances.enableItems(items, isEnable);
196
+ },
197
+ excelExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
198
+ return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
199
+ },
200
+ expandAll: function () {
201
+ return this.ej2Instances.expandAll();
202
+ },
203
+ expandByID: function (id) {
204
+ return this.ej2Instances.expandByID(id);
205
+ },
206
+ expandByIndex: function (index) {
207
+ return this.ej2Instances.expandByIndex(index);
208
+ },
209
+ filterByColumn: function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
210
+ return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
211
+ },
212
+ fitToProject: function () {
213
+ return this.ej2Instances.fitToProject();
214
+ },
215
+ getCriticalTasks: function () {
216
+ return this.ej2Instances.getCriticalTasks();
217
+ },
218
+ getDurationString: function (duration, durationUnit) {
219
+ return this.ej2Instances.getDurationString(duration, durationUnit);
220
+ },
221
+ getExpandedRecords: function (records) {
222
+ return this.ej2Instances.getExpandedRecords(records);
223
+ },
224
+ getFormatedDate: function (date, format) {
225
+ return this.ej2Instances.getFormatedDate(date, format);
226
+ },
227
+ getGanttColumns: function () {
228
+ return this.ej2Instances.getGanttColumns();
229
+ },
230
+ getGridColumns: function () {
231
+ return this.ej2Instances.getGridColumns();
232
+ },
233
+ getRecordByID: function (id) {
234
+ return this.ej2Instances.getRecordByID(id);
235
+ },
236
+ getRowByID: function (id) {
237
+ return this.ej2Instances.getRowByID(id);
238
+ },
239
+ getRowByIndex: function (index) {
240
+ return this.ej2Instances.getRowByIndex(index);
241
+ },
242
+ getTaskByUniqueID: function (id) {
243
+ return this.ej2Instances.getTaskByUniqueID(id);
244
+ },
245
+ getTaskbarHeight: function () {
246
+ return this.ej2Instances.getTaskbarHeight();
247
+ },
248
+ getWorkString: function (work, workUnit) {
249
+ return this.ej2Instances.getWorkString(work, workUnit);
250
+ },
251
+ hideColumn: function (keys, hideBy) {
252
+ return this.ej2Instances.hideColumn(keys, hideBy);
253
+ },
254
+ hideMaskRow: function () {
255
+ return this.ej2Instances.hideMaskRow();
256
+ },
257
+ hideSpinner: function () {
258
+ return this.ej2Instances.hideSpinner();
259
+ },
260
+ indent: function () {
261
+ return this.ej2Instances.indent();
262
+ },
263
+ keyActionHandler: function (e) {
264
+ return this.ej2Instances.keyActionHandler(e);
265
+ },
266
+ mergeTask: function (taskId, segmentIndexes) {
267
+ return this.ej2Instances.mergeTask(taskId, segmentIndexes);
268
+ },
269
+ nextTimeSpan: function (mode) {
270
+ return this.ej2Instances.nextTimeSpan(mode);
271
+ },
272
+ openAddDialog: function () {
273
+ return this.ej2Instances.openAddDialog();
274
+ },
275
+ openEditDialog: function (taskId) {
276
+ return this.ej2Instances.openEditDialog(taskId);
277
+ },
278
+ outdent: function () {
279
+ return this.ej2Instances.outdent();
280
+ },
281
+ pdfExport: function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
282
+ return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
283
+ },
284
+ previousTimeSpan: function (mode) {
285
+ return this.ej2Instances.previousTimeSpan(mode);
286
+ },
287
+ removeCriticalPathStyles: function () {
288
+ return this.ej2Instances.removeCriticalPathStyles();
289
+ },
290
+ removePredecessor: function (id) {
291
+ return this.ej2Instances.removePredecessor(id);
292
+ },
293
+ removeSortColumn: function (columnName) {
294
+ return this.ej2Instances.removeSortColumn(columnName);
295
+ },
296
+ renderTemplates: function () {
297
+ return this.ej2Instances.renderTemplates();
298
+ },
299
+ reorderColumns: function (fromFName, toFName) {
300
+ return this.ej2Instances.reorderColumns(fromFName, toFName);
301
+ },
302
+ reorderRows: function (fromIndexes, toIndex, position) {
303
+ return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
304
+ },
305
+ resetTemplates: function () {
306
+ return this.ej2Instances.resetTemplates();
307
+ },
308
+ scrollToDate: function (date) {
309
+ return this.ej2Instances.scrollToDate(date);
310
+ },
311
+ scrollToTask: function (taskId) {
312
+ return this.ej2Instances.scrollToTask(taskId);
313
+ },
314
+ search: function (keyVal) {
315
+ return this.ej2Instances.search(keyVal);
316
+ },
317
+ selectCell: function (cellIndex, isToggle) {
318
+ return this.ej2Instances.selectCell(cellIndex, isToggle);
319
+ },
320
+ selectCells: function (rowCellIndexes) {
321
+ return this.ej2Instances.selectCells(rowCellIndexes);
322
+ },
323
+ selectRow: function (index, isToggle) {
324
+ return this.ej2Instances.selectRow(index, isToggle);
325
+ },
326
+ selectRows: function (records) {
327
+ return this.ej2Instances.selectRows(records);
328
+ },
329
+ setScrollTop: function (scrollTop) {
330
+ return this.ej2Instances.setScrollTop(scrollTop);
331
+ },
332
+ setSplitterPosition: function (value, type) {
333
+ return this.ej2Instances.setSplitterPosition(value, type);
334
+ },
335
+ showColumn: function (keys, showBy) {
336
+ return this.ej2Instances.showColumn(keys, showBy);
337
+ },
338
+ showCriticalPath: function (isCritical) {
339
+ return this.ej2Instances.showCriticalPath(isCritical);
340
+ },
341
+ showMaskRow: function () {
342
+ return this.ej2Instances.showMaskRow();
343
+ },
344
+ showSpinner: function () {
345
+ return this.ej2Instances.showSpinner();
346
+ },
347
+ sortColumn: function (columnName, direction, isMultiSort) {
348
+ return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
349
+ },
350
+ splitTask: function (taskId, splitDate) {
351
+ return this.ej2Instances.splitTask(taskId, splitDate);
352
+ },
353
+ updateChartScrollOffset: function (left, top) {
354
+ return this.ej2Instances.updateChartScrollOffset(left, top);
355
+ },
356
+ updateDataSource: function (dataSource, args) {
357
+ return this.ej2Instances.updateDataSource(dataSource, args);
358
+ },
359
+ updatePredecessor: function (id, predecessorString) {
360
+ return this.ej2Instances.updatePredecessor(id, predecessorString);
361
+ },
362
+ updateProjectDates: function (startDate, endDate, isTimelineRoundOff, isFrom) {
363
+ return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
364
+ },
365
+ updateRecordByID: function (data) {
366
+ return this.ej2Instances.updateRecordByID(data);
367
+ },
368
+ updateRecordByIndex: function (index, data) {
369
+ return this.ej2Instances.updateRecordByIndex(index, data);
370
+ },
371
+ updateTaskId: function (currentId, newId) {
372
+ return this.ej2Instances.updateTaskId(currentId, newId);
373
+ },
374
+ zoomIn: function () {
375
+ return this.ej2Instances.zoomIn();
376
+ },
377
+ zoomOut: function () {
378
+ return this.ej2Instances.zoomOut();
379
+ },
380
+ }
381
+ });
413
382
  export var GanttPlugin = {
414
383
  name: 'ejs-gantt',
415
384
  install: function (Vue) {