@syncfusion/ej2-vue-gantt 20.4.54 → 21.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/ej2-vue-gantt.umd.min.js +2 -2
- package/dist/ej2-vue-gantt.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-gantt.es2015.js +462 -685
- package/dist/es6/ej2-vue-gantt.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-gantt.es5.js +507 -807
- package/dist/es6/ej2-vue-gantt.es5.js.map +1 -1
- package/dist/global/ej2-vue-gantt.min.js +2 -2
- package/package.json +9 -9
- package/src/gantt/adddialogfields.directive.d.ts +2 -12
- package/src/gantt/adddialogfields.directive.js +22 -71
- package/src/gantt/columns.directive.d.ts +2 -12
- package/src/gantt/columns.directive.js +22 -71
- package/src/gantt/dayworkingtime.directive.d.ts +2 -12
- package/src/gantt/dayworkingtime.directive.js +22 -71
- package/src/gantt/editdialogfields.directive.d.ts +2 -12
- package/src/gantt/editdialogfields.directive.js +22 -71
- package/src/gantt/eventmarkers.directive.d.ts +2 -12
- package/src/gantt/eventmarkers.directive.js +22 -71
- package/src/gantt/gantt.component.d.ts +3 -100
- package/src/gantt/gantt.component.js +345 -376
- package/src/gantt/holidays.directive.d.ts +2 -12
- package/src/gantt/holidays.directive.js +22 -71
- package/styles/bootstrap-dark.css +33 -10
- package/styles/bootstrap.css +31 -10
- package/styles/bootstrap4.css +28 -7
- package/styles/bootstrap5-dark.css +30 -9
- package/styles/bootstrap5.css +30 -9
- package/styles/fabric-dark.css +28 -7
- package/styles/fabric.css +28 -7
- package/styles/fluent-dark.css +56 -29
- package/styles/fluent.css +56 -29
- package/styles/gantt/bootstrap-dark.css +33 -10
- package/styles/gantt/bootstrap.css +31 -10
- package/styles/gantt/bootstrap4.css +28 -7
- package/styles/gantt/bootstrap5-dark.css +30 -9
- package/styles/gantt/bootstrap5.css +30 -9
- package/styles/gantt/fabric-dark.css +28 -7
- package/styles/gantt/fabric.css +28 -7
- package/styles/gantt/fluent-dark.css +56 -29
- package/styles/gantt/fluent.css +56 -29
- package/styles/gantt/highcontrast-light.css +28 -9
- package/styles/gantt/highcontrast.css +28 -7
- package/styles/gantt/material-dark.css +31 -14
- package/styles/gantt/material.css +28 -7
- package/styles/gantt/tailwind-dark.css +28 -7
- package/styles/gantt/tailwind.css +28 -7
- package/styles/highcontrast-light.css +28 -9
- package/styles/highcontrast.css +28 -7
- package/styles/material-dark.css +31 -14
- package/styles/material.css +28 -7
- package/styles/tailwind-dark.css +28 -7
- package/styles/tailwind.css +28 -7
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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', '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 =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
+
ej2Instances: 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
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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
|
-
|
|
153
|
-
this.
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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) {
|