@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.
- package/CHANGELOG.md +186 -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 +11 -10
- 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 +63 -56
- package/styles/bootstrap.css +63 -58
- package/styles/bootstrap4.css +60 -55
- package/styles/bootstrap5-dark.css +60 -55
- package/styles/bootstrap5.css +60 -55
- package/styles/fabric-dark.css +58 -53
- package/styles/fabric.css +58 -53
- package/styles/fluent-dark.css +84 -76
- package/styles/fluent.css +84 -76
- package/styles/gantt/bootstrap-dark.css +63 -56
- package/styles/gantt/bootstrap.css +63 -58
- package/styles/gantt/bootstrap4.css +60 -55
- package/styles/gantt/bootstrap5-dark.css +60 -55
- package/styles/gantt/bootstrap5.css +60 -55
- package/styles/gantt/fabric-dark.css +58 -53
- package/styles/gantt/fabric.css +58 -53
- package/styles/gantt/fluent-dark.css +84 -76
- package/styles/gantt/fluent.css +84 -76
- package/styles/gantt/highcontrast-light.css +58 -55
- package/styles/gantt/highcontrast.css +58 -53
- package/styles/gantt/material-dark.css +61 -60
- package/styles/gantt/material.css +58 -53
- package/styles/gantt/material3-dark.css +2193 -0
- package/styles/gantt/material3-dark.scss +2 -0
- package/styles/gantt/material3.css +2249 -0
- package/styles/gantt/material3.scss +2 -0
- package/styles/gantt/tailwind-dark.css +58 -53
- package/styles/gantt/tailwind.css +58 -53
- package/styles/highcontrast-light.css +58 -55
- package/styles/highcontrast.css +58 -53
- package/styles/material-dark.css +61 -60
- package/styles/material.css +58 -53
- package/styles/material3-dark.css +2193 -0
- package/styles/material3-dark.scss +2 -0
- package/styles/material3.css +2249 -0
- package/styles/material3.scss +2 -0
- package/styles/tailwind-dark.css +58 -53
- package/styles/tailwind.css +58 -53
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import { Gantt } from '@syncfusion/ej2-gantt';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
-
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;
|
|
24
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
-
};
|
|
26
|
-
import { Options } from 'vue-class-component';
|
|
27
|
-
var vueImport;
|
|
28
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
29
|
-
vueImport = Vue;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
vueImport = Vue$1;
|
|
33
|
-
}
|
|
34
|
-
var ColumnsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
35
|
-
__extends(ColumnsDirective, _super);
|
|
36
|
-
function ColumnsDirective() {
|
|
37
|
-
return _super.call(this, arguments) || this;
|
|
38
|
-
}
|
|
39
|
-
ColumnsDirective.prototype.render = function (createElement) {
|
|
5
|
+
var ColumnsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
7
|
+
render: function (createElement) {
|
|
40
8
|
if (!isExecute) {
|
|
41
9
|
var h = !isExecute ? gh : createElement;
|
|
42
10
|
var slots = null;
|
|
@@ -46,31 +14,22 @@ var ColumnsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
46
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
47
15
|
}
|
|
48
16
|
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
17
|
+
},
|
|
18
|
+
updated: function () {
|
|
51
19
|
if (!isExecute && this.custom) {
|
|
52
20
|
this.custom();
|
|
53
21
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
inject: {
|
|
62
|
-
custom: {
|
|
63
|
-
default: null
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
], ColumnsDirective);
|
|
68
|
-
return ColumnsDirective;
|
|
69
|
-
}(vueImport));
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag: function () {
|
|
25
|
+
return 'e-columns';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
70
29
|
var ColumnsPlugin = {
|
|
71
30
|
name: 'e-columns',
|
|
72
|
-
install: function (Vue
|
|
73
|
-
Vue
|
|
31
|
+
install: function (Vue) {
|
|
32
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
74
33
|
}
|
|
75
34
|
};
|
|
76
35
|
/**
|
|
@@ -85,62 +44,26 @@ var ColumnsPlugin = {
|
|
|
85
44
|
* </ejs-gantt>
|
|
86
45
|
* ```
|
|
87
46
|
*/
|
|
88
|
-
var ColumnDirective =
|
|
89
|
-
|
|
90
|
-
function ColumnDirective() {
|
|
91
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
-
}
|
|
93
|
-
ColumnDirective.prototype.render = function () {
|
|
47
|
+
var ColumnDirective = vueDefineComponent({
|
|
48
|
+
render: function () {
|
|
94
49
|
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return ColumnDirective;
|
|
103
|
-
}(vueImport));
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getTag: function () {
|
|
53
|
+
return 'e-column';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
104
57
|
var ColumnPlugin = {
|
|
105
58
|
name: 'e-column',
|
|
106
|
-
install: function (Vue
|
|
107
|
-
Vue
|
|
59
|
+
install: function (Vue) {
|
|
60
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
108
61
|
}
|
|
109
62
|
};
|
|
110
63
|
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
115
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
116
|
-
return extendStatics(d, b);
|
|
117
|
-
};
|
|
118
|
-
return function (d, b) {
|
|
119
|
-
extendStatics(d, b);
|
|
120
|
-
function __() { this.constructor = d; }
|
|
121
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
122
|
-
};
|
|
123
|
-
})();
|
|
124
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
125
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
126
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
127
|
-
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;
|
|
128
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
129
|
-
};
|
|
130
|
-
// {{VueImport}}
|
|
131
|
-
var vueImport$1;
|
|
132
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
133
|
-
vueImport$1 = Vue;
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
vueImport$1 = Vue$1;
|
|
137
|
-
}
|
|
138
|
-
var AddDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
139
|
-
__extends$1(AddDialogFieldsDirective, _super);
|
|
140
|
-
function AddDialogFieldsDirective() {
|
|
141
|
-
return _super.call(this, arguments) || this;
|
|
142
|
-
}
|
|
143
|
-
AddDialogFieldsDirective.prototype.render = function (createElement) {
|
|
64
|
+
var AddDialogFieldsDirective = vueDefineComponent({
|
|
65
|
+
inject: { custom: { default: null } },
|
|
66
|
+
render: function (createElement) {
|
|
144
67
|
if (!isExecute) {
|
|
145
68
|
var h = !isExecute ? gh : createElement;
|
|
146
69
|
var slots = null;
|
|
@@ -150,31 +73,22 @@ var AddDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
150
73
|
return h('div', { class: 'e-directive' }, slots);
|
|
151
74
|
}
|
|
152
75
|
return;
|
|
153
|
-
}
|
|
154
|
-
|
|
76
|
+
},
|
|
77
|
+
updated: function () {
|
|
155
78
|
if (!isExecute && this.custom) {
|
|
156
79
|
this.custom();
|
|
157
80
|
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
inject: {
|
|
166
|
-
custom: {
|
|
167
|
-
default: null
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
})
|
|
171
|
-
], AddDialogFieldsDirective);
|
|
172
|
-
return AddDialogFieldsDirective;
|
|
173
|
-
}(vueImport$1));
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
getTag: function () {
|
|
84
|
+
return 'e-add-dialog-fields';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
174
88
|
var AddDialogFieldsPlugin = {
|
|
175
89
|
name: 'e-add-dialog-fields',
|
|
176
|
-
install: function (Vue
|
|
177
|
-
Vue
|
|
90
|
+
install: function (Vue) {
|
|
91
|
+
Vue.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
|
|
178
92
|
}
|
|
179
93
|
};
|
|
180
94
|
/**
|
|
@@ -189,62 +103,26 @@ var AddDialogFieldsPlugin = {
|
|
|
189
103
|
* </ejs-gantt>
|
|
190
104
|
* ```
|
|
191
105
|
*/
|
|
192
|
-
var AddDialogFieldDirective =
|
|
193
|
-
|
|
194
|
-
function AddDialogFieldDirective() {
|
|
195
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
196
|
-
}
|
|
197
|
-
AddDialogFieldDirective.prototype.render = function () {
|
|
106
|
+
var AddDialogFieldDirective = vueDefineComponent({
|
|
107
|
+
render: function () {
|
|
198
108
|
return;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return AddDialogFieldDirective;
|
|
207
|
-
}(vueImport$1));
|
|
109
|
+
},
|
|
110
|
+
methods: {
|
|
111
|
+
getTag: function () {
|
|
112
|
+
return 'e-add-dialog-field';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
208
116
|
var AddDialogFieldPlugin = {
|
|
209
117
|
name: 'e-add-dialog-field',
|
|
210
|
-
install: function (Vue
|
|
211
|
-
Vue
|
|
118
|
+
install: function (Vue) {
|
|
119
|
+
Vue.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
|
|
212
120
|
}
|
|
213
121
|
};
|
|
214
122
|
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
219
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
220
|
-
return extendStatics(d, b);
|
|
221
|
-
};
|
|
222
|
-
return function (d, b) {
|
|
223
|
-
extendStatics(d, b);
|
|
224
|
-
function __() { this.constructor = d; }
|
|
225
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
226
|
-
};
|
|
227
|
-
})();
|
|
228
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
229
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
230
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
231
|
-
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;
|
|
232
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
233
|
-
};
|
|
234
|
-
// {{VueImport}}
|
|
235
|
-
var vueImport$2;
|
|
236
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
237
|
-
vueImport$2 = Vue;
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
vueImport$2 = Vue$1;
|
|
241
|
-
}
|
|
242
|
-
var EditDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
243
|
-
__extends$2(EditDialogFieldsDirective, _super);
|
|
244
|
-
function EditDialogFieldsDirective() {
|
|
245
|
-
return _super.call(this, arguments) || this;
|
|
246
|
-
}
|
|
247
|
-
EditDialogFieldsDirective.prototype.render = function (createElement) {
|
|
123
|
+
var EditDialogFieldsDirective = vueDefineComponent({
|
|
124
|
+
inject: { custom: { default: null } },
|
|
125
|
+
render: function (createElement) {
|
|
248
126
|
if (!isExecute) {
|
|
249
127
|
var h = !isExecute ? gh : createElement;
|
|
250
128
|
var slots = null;
|
|
@@ -254,31 +132,22 @@ var EditDialogFieldsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
254
132
|
return h('div', { class: 'e-directive' }, slots);
|
|
255
133
|
}
|
|
256
134
|
return;
|
|
257
|
-
}
|
|
258
|
-
|
|
135
|
+
},
|
|
136
|
+
updated: function () {
|
|
259
137
|
if (!isExecute && this.custom) {
|
|
260
138
|
this.custom();
|
|
261
139
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
inject: {
|
|
270
|
-
custom: {
|
|
271
|
-
default: null
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
})
|
|
275
|
-
], EditDialogFieldsDirective);
|
|
276
|
-
return EditDialogFieldsDirective;
|
|
277
|
-
}(vueImport$2));
|
|
140
|
+
},
|
|
141
|
+
methods: {
|
|
142
|
+
getTag: function () {
|
|
143
|
+
return 'e-edit-dialog-fields';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
278
147
|
var EditDialogFieldsPlugin = {
|
|
279
148
|
name: 'e-edit-dialog-fields',
|
|
280
|
-
install: function (Vue
|
|
281
|
-
Vue
|
|
149
|
+
install: function (Vue) {
|
|
150
|
+
Vue.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
|
|
282
151
|
}
|
|
283
152
|
};
|
|
284
153
|
/**
|
|
@@ -293,62 +162,26 @@ var EditDialogFieldsPlugin = {
|
|
|
293
162
|
* </ejs-gantt>
|
|
294
163
|
* ```
|
|
295
164
|
*/
|
|
296
|
-
var EditDialogFieldDirective =
|
|
297
|
-
|
|
298
|
-
function EditDialogFieldDirective() {
|
|
299
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
300
|
-
}
|
|
301
|
-
EditDialogFieldDirective.prototype.render = function () {
|
|
165
|
+
var EditDialogFieldDirective = vueDefineComponent({
|
|
166
|
+
render: function () {
|
|
302
167
|
return;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
return EditDialogFieldDirective;
|
|
311
|
-
}(vueImport$2));
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
getTag: function () {
|
|
171
|
+
return 'e-edit-dialog-field';
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
312
175
|
var EditDialogFieldPlugin = {
|
|
313
176
|
name: 'e-edit-dialog-field',
|
|
314
|
-
install: function (Vue
|
|
315
|
-
Vue
|
|
177
|
+
install: function (Vue) {
|
|
178
|
+
Vue.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
|
|
316
179
|
}
|
|
317
180
|
};
|
|
318
181
|
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
323
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
324
|
-
return extendStatics(d, b);
|
|
325
|
-
};
|
|
326
|
-
return function (d, b) {
|
|
327
|
-
extendStatics(d, b);
|
|
328
|
-
function __() { this.constructor = d; }
|
|
329
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
330
|
-
};
|
|
331
|
-
})();
|
|
332
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
333
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
334
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
335
|
-
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;
|
|
336
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
337
|
-
};
|
|
338
|
-
// {{VueImport}}
|
|
339
|
-
var vueImport$3;
|
|
340
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
341
|
-
vueImport$3 = Vue;
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
vueImport$3 = Vue$1;
|
|
345
|
-
}
|
|
346
|
-
var DayWorkingTimeCollectionDirective = /** @__PURE__ @class */ (function (_super) {
|
|
347
|
-
__extends$3(DayWorkingTimeCollectionDirective, _super);
|
|
348
|
-
function DayWorkingTimeCollectionDirective() {
|
|
349
|
-
return _super.call(this, arguments) || this;
|
|
350
|
-
}
|
|
351
|
-
DayWorkingTimeCollectionDirective.prototype.render = function (createElement) {
|
|
182
|
+
var DayWorkingTimeCollectionDirective = vueDefineComponent({
|
|
183
|
+
inject: { custom: { default: null } },
|
|
184
|
+
render: function (createElement) {
|
|
352
185
|
if (!isExecute) {
|
|
353
186
|
var h = !isExecute ? gh : createElement;
|
|
354
187
|
var slots = null;
|
|
@@ -358,31 +191,22 @@ var DayWorkingTimeCollectionDirective = /** @__PURE__ @class */ (function (_supe
|
|
|
358
191
|
return h('div', { class: 'e-directive' }, slots);
|
|
359
192
|
}
|
|
360
193
|
return;
|
|
361
|
-
}
|
|
362
|
-
|
|
194
|
+
},
|
|
195
|
+
updated: function () {
|
|
363
196
|
if (!isExecute && this.custom) {
|
|
364
197
|
this.custom();
|
|
365
198
|
}
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
inject: {
|
|
374
|
-
custom: {
|
|
375
|
-
default: null
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
})
|
|
379
|
-
], DayWorkingTimeCollectionDirective);
|
|
380
|
-
return DayWorkingTimeCollectionDirective;
|
|
381
|
-
}(vueImport$3));
|
|
199
|
+
},
|
|
200
|
+
methods: {
|
|
201
|
+
getTag: function () {
|
|
202
|
+
return 'e-day-working-time-collection';
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
});
|
|
382
206
|
var DayWorkingTimeCollectionPlugin = {
|
|
383
207
|
name: 'e-day-working-time-collection',
|
|
384
|
-
install: function (Vue
|
|
385
|
-
Vue
|
|
208
|
+
install: function (Vue) {
|
|
209
|
+
Vue.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
|
|
386
210
|
}
|
|
387
211
|
};
|
|
388
212
|
/**
|
|
@@ -397,62 +221,26 @@ var DayWorkingTimeCollectionPlugin = {
|
|
|
397
221
|
* </ejs-gantt>
|
|
398
222
|
* ```
|
|
399
223
|
*/
|
|
400
|
-
var DayWorkingTimeDirective =
|
|
401
|
-
|
|
402
|
-
function DayWorkingTimeDirective() {
|
|
403
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
404
|
-
}
|
|
405
|
-
DayWorkingTimeDirective.prototype.render = function () {
|
|
224
|
+
var DayWorkingTimeDirective = vueDefineComponent({
|
|
225
|
+
render: function () {
|
|
406
226
|
return;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
return DayWorkingTimeDirective;
|
|
415
|
-
}(vueImport$3));
|
|
227
|
+
},
|
|
228
|
+
methods: {
|
|
229
|
+
getTag: function () {
|
|
230
|
+
return 'e-day-working-time';
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
});
|
|
416
234
|
var DayWorkingTimePlugin = {
|
|
417
235
|
name: 'e-day-working-time',
|
|
418
|
-
install: function (Vue
|
|
419
|
-
Vue
|
|
236
|
+
install: function (Vue) {
|
|
237
|
+
Vue.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
|
|
420
238
|
}
|
|
421
239
|
};
|
|
422
240
|
|
|
423
|
-
var
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
427
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
428
|
-
return extendStatics(d, b);
|
|
429
|
-
};
|
|
430
|
-
return function (d, b) {
|
|
431
|
-
extendStatics(d, b);
|
|
432
|
-
function __() { this.constructor = d; }
|
|
433
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
434
|
-
};
|
|
435
|
-
})();
|
|
436
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
437
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
438
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
439
|
-
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;
|
|
440
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
441
|
-
};
|
|
442
|
-
// {{VueImport}}
|
|
443
|
-
var vueImport$4;
|
|
444
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
445
|
-
vueImport$4 = Vue;
|
|
446
|
-
}
|
|
447
|
-
else {
|
|
448
|
-
vueImport$4 = Vue$1;
|
|
449
|
-
}
|
|
450
|
-
var HolidaysDirective = /** @__PURE__ @class */ (function (_super) {
|
|
451
|
-
__extends$4(HolidaysDirective, _super);
|
|
452
|
-
function HolidaysDirective() {
|
|
453
|
-
return _super.call(this, arguments) || this;
|
|
454
|
-
}
|
|
455
|
-
HolidaysDirective.prototype.render = function (createElement) {
|
|
241
|
+
var HolidaysDirective = vueDefineComponent({
|
|
242
|
+
inject: { custom: { default: null } },
|
|
243
|
+
render: function (createElement) {
|
|
456
244
|
if (!isExecute) {
|
|
457
245
|
var h = !isExecute ? gh : createElement;
|
|
458
246
|
var slots = null;
|
|
@@ -462,31 +250,22 @@ var HolidaysDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
462
250
|
return h('div', { class: 'e-directive' }, slots);
|
|
463
251
|
}
|
|
464
252
|
return;
|
|
465
|
-
}
|
|
466
|
-
|
|
253
|
+
},
|
|
254
|
+
updated: function () {
|
|
467
255
|
if (!isExecute && this.custom) {
|
|
468
256
|
this.custom();
|
|
469
257
|
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
inject: {
|
|
478
|
-
custom: {
|
|
479
|
-
default: null
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
})
|
|
483
|
-
], HolidaysDirective);
|
|
484
|
-
return HolidaysDirective;
|
|
485
|
-
}(vueImport$4));
|
|
258
|
+
},
|
|
259
|
+
methods: {
|
|
260
|
+
getTag: function () {
|
|
261
|
+
return 'e-holidays';
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
486
265
|
var HolidaysPlugin = {
|
|
487
266
|
name: 'e-holidays',
|
|
488
|
-
install: function (Vue
|
|
489
|
-
Vue
|
|
267
|
+
install: function (Vue) {
|
|
268
|
+
Vue.component(HolidaysPlugin.name, HolidaysDirective);
|
|
490
269
|
}
|
|
491
270
|
};
|
|
492
271
|
/**
|
|
@@ -501,62 +280,26 @@ var HolidaysPlugin = {
|
|
|
501
280
|
* </ejs-gantt>
|
|
502
281
|
* ```
|
|
503
282
|
*/
|
|
504
|
-
var HolidayDirective =
|
|
505
|
-
|
|
506
|
-
function HolidayDirective() {
|
|
507
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
508
|
-
}
|
|
509
|
-
HolidayDirective.prototype.render = function () {
|
|
283
|
+
var HolidayDirective = vueDefineComponent({
|
|
284
|
+
render: function () {
|
|
510
285
|
return;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
return HolidayDirective;
|
|
519
|
-
}(vueImport$4));
|
|
286
|
+
},
|
|
287
|
+
methods: {
|
|
288
|
+
getTag: function () {
|
|
289
|
+
return 'e-holidays';
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
});
|
|
520
293
|
var HolidayPlugin = {
|
|
521
294
|
name: 'e-holidays',
|
|
522
|
-
install: function (Vue
|
|
523
|
-
Vue
|
|
295
|
+
install: function (Vue) {
|
|
296
|
+
Vue.component(HolidayPlugin.name, HolidayDirective);
|
|
524
297
|
}
|
|
525
298
|
};
|
|
526
299
|
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
531
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
532
|
-
return extendStatics(d, b);
|
|
533
|
-
};
|
|
534
|
-
return function (d, b) {
|
|
535
|
-
extendStatics(d, b);
|
|
536
|
-
function __() { this.constructor = d; }
|
|
537
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
538
|
-
};
|
|
539
|
-
})();
|
|
540
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
541
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
542
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
543
|
-
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;
|
|
544
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
545
|
-
};
|
|
546
|
-
// {{VueImport}}
|
|
547
|
-
var vueImport$5;
|
|
548
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
549
|
-
vueImport$5 = Vue;
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
vueImport$5 = Vue$1;
|
|
553
|
-
}
|
|
554
|
-
var EventMarkersDirective = /** @__PURE__ @class */ (function (_super) {
|
|
555
|
-
__extends$5(EventMarkersDirective, _super);
|
|
556
|
-
function EventMarkersDirective() {
|
|
557
|
-
return _super.call(this, arguments) || this;
|
|
558
|
-
}
|
|
559
|
-
EventMarkersDirective.prototype.render = function (createElement) {
|
|
300
|
+
var EventMarkersDirective = vueDefineComponent({
|
|
301
|
+
inject: { custom: { default: null } },
|
|
302
|
+
render: function (createElement) {
|
|
560
303
|
if (!isExecute) {
|
|
561
304
|
var h = !isExecute ? gh : createElement;
|
|
562
305
|
var slots = null;
|
|
@@ -566,31 +309,22 @@ var EventMarkersDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
566
309
|
return h('div', { class: 'e-directive' }, slots);
|
|
567
310
|
}
|
|
568
311
|
return;
|
|
569
|
-
}
|
|
570
|
-
|
|
312
|
+
},
|
|
313
|
+
updated: function () {
|
|
571
314
|
if (!isExecute && this.custom) {
|
|
572
315
|
this.custom();
|
|
573
316
|
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
inject: {
|
|
582
|
-
custom: {
|
|
583
|
-
default: null
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
})
|
|
587
|
-
], EventMarkersDirective);
|
|
588
|
-
return EventMarkersDirective;
|
|
589
|
-
}(vueImport$5));
|
|
317
|
+
},
|
|
318
|
+
methods: {
|
|
319
|
+
getTag: function () {
|
|
320
|
+
return 'e-event-markers';
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
});
|
|
590
324
|
var EventMarkersPlugin = {
|
|
591
325
|
name: 'e-event-markers',
|
|
592
|
-
install: function (Vue
|
|
593
|
-
Vue
|
|
326
|
+
install: function (Vue) {
|
|
327
|
+
Vue.component(EventMarkersPlugin.name, EventMarkersDirective);
|
|
594
328
|
}
|
|
595
329
|
};
|
|
596
330
|
/**
|
|
@@ -604,50 +338,24 @@ var EventMarkersPlugin = {
|
|
|
604
338
|
* </ejs-gantt>
|
|
605
339
|
* ```
|
|
606
340
|
*/
|
|
607
|
-
var EventMarkerDirective =
|
|
608
|
-
|
|
609
|
-
function EventMarkerDirective() {
|
|
610
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
611
|
-
}
|
|
612
|
-
EventMarkerDirective.prototype.render = function () {
|
|
341
|
+
var EventMarkerDirective = vueDefineComponent({
|
|
342
|
+
render: function () {
|
|
613
343
|
return;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
return EventMarkerDirective;
|
|
622
|
-
}(vueImport$5));
|
|
344
|
+
},
|
|
345
|
+
methods: {
|
|
346
|
+
getTag: function () {
|
|
347
|
+
return 'e-event-marker';
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
});
|
|
623
351
|
var EventMarkerPlugin = {
|
|
624
352
|
name: 'e-event-marker',
|
|
625
|
-
install: function (Vue
|
|
626
|
-
Vue
|
|
353
|
+
install: function (Vue) {
|
|
354
|
+
Vue.component(EventMarkerPlugin.name, EventMarkerDirective);
|
|
627
355
|
}
|
|
628
356
|
};
|
|
629
357
|
|
|
630
|
-
var
|
|
631
|
-
var extendStatics = function (d, b) {
|
|
632
|
-
extendStatics = Object.setPrototypeOf ||
|
|
633
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
634
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
635
|
-
return extendStatics(d, b);
|
|
636
|
-
};
|
|
637
|
-
return function (d, b) {
|
|
638
|
-
extendStatics(d, b);
|
|
639
|
-
function __() { this.constructor = d; }
|
|
640
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
641
|
-
};
|
|
642
|
-
})();
|
|
643
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
644
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
645
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
646
|
-
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;
|
|
647
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
648
|
-
};
|
|
649
|
-
// {{VueImport}}
|
|
650
|
-
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'];
|
|
358
|
+
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'];
|
|
651
359
|
var modelProps = ['dataSource'];
|
|
652
360
|
var testProp = getProps({ props: properties });
|
|
653
361
|
var props = testProp[0];
|
|
@@ -664,386 +372,378 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
664
372
|
* <ejs-gantt :dataSource='data' allowSelection='true' allowSorting='true'></ejs-gantt>
|
|
665
373
|
* ```
|
|
666
374
|
*/
|
|
667
|
-
var GanttComponent =
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
375
|
+
var GanttComponent = vueDefineComponent({
|
|
376
|
+
name: 'GanttComponent',
|
|
377
|
+
mixins: [ComponentBase],
|
|
378
|
+
props: props,
|
|
379
|
+
watch: watch,
|
|
380
|
+
emits: emitProbs,
|
|
381
|
+
model: { event: 'modelchanged' },
|
|
382
|
+
provide: function () { return { custom: this.custom }; },
|
|
383
|
+
data: function () {
|
|
384
|
+
return {
|
|
385
|
+
ej2Instance: new Gantt({}),
|
|
386
|
+
propKeys: properties,
|
|
387
|
+
models: modelProps,
|
|
388
|
+
hasChildDirective: true,
|
|
389
|
+
hasInjectedModules: true,
|
|
390
|
+
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" },
|
|
391
|
+
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" },
|
|
392
|
+
isVue3: !isExecute,
|
|
393
|
+
templateCollection: {},
|
|
394
|
+
};
|
|
395
|
+
},
|
|
396
|
+
created: function () {
|
|
397
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
398
|
+
this.ej2Instances.trigger = this.trigger;
|
|
399
|
+
this.bindProperties();
|
|
400
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
401
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
402
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
403
|
+
this.updated = this.updated;
|
|
404
|
+
},
|
|
405
|
+
render: function (createElement) {
|
|
406
|
+
var h = !isExecute ? gh : createElement;
|
|
407
|
+
var slots = null;
|
|
408
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
409
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
691
410
|
}
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
411
|
+
return h('div', slots);
|
|
412
|
+
},
|
|
413
|
+
methods: {
|
|
414
|
+
clearTemplate: function (templateNames) {
|
|
415
|
+
if (!templateNames) {
|
|
416
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
417
|
+
}
|
|
418
|
+
if (templateNames.length && this.templateCollection) {
|
|
419
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
420
|
+
var tempName = templateNames_1[_i];
|
|
421
|
+
var elementCollection = this.templateCollection[tempName];
|
|
422
|
+
if (elementCollection && elementCollection.length) {
|
|
423
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
424
|
+
var ele = elementCollection_1[_a];
|
|
425
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
426
|
+
if (destroy) {
|
|
427
|
+
ele.__vue__.$destroy();
|
|
428
|
+
}
|
|
429
|
+
if (ele.innerHTML) {
|
|
430
|
+
ele.innerHTML = '';
|
|
431
|
+
}
|
|
705
432
|
}
|
|
433
|
+
delete this.templateCollection[tempName];
|
|
706
434
|
}
|
|
707
|
-
delete this.templateCollection[tempName];
|
|
708
435
|
}
|
|
709
436
|
}
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
437
|
+
},
|
|
438
|
+
setProperties: function (prop, muteOnChange) {
|
|
439
|
+
var _this = this;
|
|
440
|
+
if (this.isVue3) {
|
|
441
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
442
|
+
}
|
|
443
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
444
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
445
|
+
}
|
|
446
|
+
if (prop && this.models && this.models.length) {
|
|
447
|
+
Object.keys(prop).map(function (key) {
|
|
448
|
+
_this.models.map(function (model) {
|
|
449
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
450
|
+
if (_this.isVue3) {
|
|
451
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
_this.$emit('update:' + key, prop[key]);
|
|
455
|
+
_this.$emit('modelchanged', prop[key]);
|
|
456
|
+
}
|
|
726
457
|
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
463
|
+
if (!isExecute) {
|
|
464
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
465
|
+
}
|
|
466
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
467
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
468
|
+
var propKey = key[0];
|
|
469
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
470
|
+
if (!isExecute) {
|
|
471
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
472
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
473
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
477
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
478
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
730
479
|
}
|
|
731
480
|
}
|
|
732
|
-
});
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
GanttComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
737
|
-
if (!isExecute) {
|
|
738
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
739
|
-
}
|
|
740
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
741
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
742
|
-
var propKey = key[0];
|
|
743
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
744
|
-
if (!isExecute) {
|
|
745
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
746
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
747
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
748
481
|
}
|
|
749
|
-
|
|
750
|
-
|
|
482
|
+
}
|
|
483
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
484
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
485
|
+
var propKey = key[0];
|
|
486
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
487
|
+
if (!isExecute) {
|
|
488
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
489
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
751
492
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
752
493
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
753
494
|
}
|
|
754
495
|
}
|
|
755
496
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
759
|
-
var propKey = key[0];
|
|
760
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
761
|
-
if (!isExecute) {
|
|
762
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
763
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
764
|
-
}
|
|
765
|
-
else {
|
|
766
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
767
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
772
|
-
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
GanttComponent.prototype.render = function (createElement) {
|
|
776
|
-
var h = !isExecute ? gh : createElement;
|
|
777
|
-
var slots = null;
|
|
778
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
779
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
780
|
-
}
|
|
781
|
-
return h('div', slots);
|
|
782
|
-
};
|
|
783
|
-
GanttComponent.prototype.custom = function () {
|
|
784
|
-
this.updated();
|
|
785
|
-
};
|
|
786
|
-
GanttComponent.prototype.addPredecessor = function (id, predecessorString) {
|
|
787
|
-
return this.ej2Instances.addPredecessor(id, predecessorString);
|
|
788
|
-
};
|
|
789
|
-
GanttComponent.prototype.addRecord = function (data, rowPosition, rowIndex) {
|
|
790
|
-
return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
|
|
791
|
-
};
|
|
792
|
-
GanttComponent.prototype.cancelEdit = function () {
|
|
793
|
-
return this.ej2Instances.cancelEdit();
|
|
794
|
-
};
|
|
795
|
-
GanttComponent.prototype.changeTaskMode = function (data) {
|
|
796
|
-
return this.ej2Instances.changeTaskMode(data);
|
|
797
|
-
};
|
|
798
|
-
GanttComponent.prototype.clearFiltering = function (fields) {
|
|
799
|
-
return this.ej2Instances.clearFiltering(fields);
|
|
800
|
-
};
|
|
801
|
-
GanttComponent.prototype.clearSelection = function () {
|
|
802
|
-
return this.ej2Instances.clearSelection();
|
|
803
|
-
};
|
|
804
|
-
GanttComponent.prototype.clearSorting = function () {
|
|
805
|
-
return this.ej2Instances.clearSorting();
|
|
806
|
-
};
|
|
807
|
-
GanttComponent.prototype.collapseAll = function () {
|
|
808
|
-
return this.ej2Instances.collapseAll();
|
|
809
|
-
};
|
|
810
|
-
GanttComponent.prototype.collapseByID = function (id) {
|
|
811
|
-
return this.ej2Instances.collapseByID(id);
|
|
812
|
-
};
|
|
813
|
-
GanttComponent.prototype.collapseByIndex = function (index) {
|
|
814
|
-
return this.ej2Instances.collapseByIndex(index);
|
|
815
|
-
};
|
|
816
|
-
GanttComponent.prototype.convertToMilestone = function (id) {
|
|
817
|
-
return this.ej2Instances.convertToMilestone(id);
|
|
818
|
-
};
|
|
819
|
-
GanttComponent.prototype.csvExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
820
|
-
return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
821
|
-
};
|
|
822
|
-
GanttComponent.prototype.deleteRecord = function (taskDetail) {
|
|
823
|
-
return this.ej2Instances.deleteRecord(taskDetail);
|
|
824
|
-
};
|
|
825
|
-
GanttComponent.prototype.enableItems = function (items, isEnable) {
|
|
826
|
-
return this.ej2Instances.enableItems(items, isEnable);
|
|
827
|
-
};
|
|
828
|
-
GanttComponent.prototype.excelExport = function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
829
|
-
return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
830
|
-
};
|
|
831
|
-
GanttComponent.prototype.expandAll = function () {
|
|
832
|
-
return this.ej2Instances.expandAll();
|
|
833
|
-
};
|
|
834
|
-
GanttComponent.prototype.expandByID = function (id) {
|
|
835
|
-
return this.ej2Instances.expandByID(id);
|
|
836
|
-
};
|
|
837
|
-
GanttComponent.prototype.expandByIndex = function (index) {
|
|
838
|
-
return this.ej2Instances.expandByIndex(index);
|
|
839
|
-
};
|
|
840
|
-
GanttComponent.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
|
|
841
|
-
return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
|
|
842
|
-
};
|
|
843
|
-
GanttComponent.prototype.fitToProject = function () {
|
|
844
|
-
return this.ej2Instances.fitToProject();
|
|
845
|
-
};
|
|
846
|
-
GanttComponent.prototype.getCriticalTasks = function () {
|
|
847
|
-
return this.ej2Instances.getCriticalTasks();
|
|
848
|
-
};
|
|
849
|
-
GanttComponent.prototype.getDurationString = function (duration, durationUnit) {
|
|
850
|
-
return this.ej2Instances.getDurationString(duration, durationUnit);
|
|
851
|
-
};
|
|
852
|
-
GanttComponent.prototype.getExpandedRecords = function (records) {
|
|
853
|
-
return this.ej2Instances.getExpandedRecords(records);
|
|
854
|
-
};
|
|
855
|
-
GanttComponent.prototype.getFormatedDate = function (date, format) {
|
|
856
|
-
return this.ej2Instances.getFormatedDate(date, format);
|
|
857
|
-
};
|
|
858
|
-
GanttComponent.prototype.getGanttColumns = function () {
|
|
859
|
-
return this.ej2Instances.getGanttColumns();
|
|
860
|
-
};
|
|
861
|
-
GanttComponent.prototype.getGridColumns = function () {
|
|
862
|
-
return this.ej2Instances.getGridColumns();
|
|
863
|
-
};
|
|
864
|
-
GanttComponent.prototype.getRecordByID = function (id) {
|
|
865
|
-
return this.ej2Instances.getRecordByID(id);
|
|
866
|
-
};
|
|
867
|
-
GanttComponent.prototype.getRowByID = function (id) {
|
|
868
|
-
return this.ej2Instances.getRowByID(id);
|
|
869
|
-
};
|
|
870
|
-
GanttComponent.prototype.getRowByIndex = function (index) {
|
|
871
|
-
return this.ej2Instances.getRowByIndex(index);
|
|
872
|
-
};
|
|
873
|
-
GanttComponent.prototype.getTaskByUniqueID = function (id) {
|
|
874
|
-
return this.ej2Instances.getTaskByUniqueID(id);
|
|
875
|
-
};
|
|
876
|
-
GanttComponent.prototype.getTaskbarHeight = function () {
|
|
877
|
-
return this.ej2Instances.getTaskbarHeight();
|
|
878
|
-
};
|
|
879
|
-
GanttComponent.prototype.getWorkString = function (work, workUnit) {
|
|
880
|
-
return this.ej2Instances.getWorkString(work, workUnit);
|
|
881
|
-
};
|
|
882
|
-
GanttComponent.prototype.hideColumn = function (keys, hideBy) {
|
|
883
|
-
return this.ej2Instances.hideColumn(keys, hideBy);
|
|
884
|
-
};
|
|
885
|
-
GanttComponent.prototype.hideMaskRow = function () {
|
|
886
|
-
return this.ej2Instances.hideMaskRow();
|
|
887
|
-
};
|
|
888
|
-
GanttComponent.prototype.hideSpinner = function () {
|
|
889
|
-
return this.ej2Instances.hideSpinner();
|
|
890
|
-
};
|
|
891
|
-
GanttComponent.prototype.indent = function () {
|
|
892
|
-
return this.ej2Instances.indent();
|
|
893
|
-
};
|
|
894
|
-
GanttComponent.prototype.keyActionHandler = function (e) {
|
|
895
|
-
return this.ej2Instances.keyActionHandler(e);
|
|
896
|
-
};
|
|
897
|
-
GanttComponent.prototype.mergeTask = function (taskId, segmentIndexes) {
|
|
898
|
-
return this.ej2Instances.mergeTask(taskId, segmentIndexes);
|
|
899
|
-
};
|
|
900
|
-
GanttComponent.prototype.nextTimeSpan = function (mode) {
|
|
901
|
-
return this.ej2Instances.nextTimeSpan(mode);
|
|
902
|
-
};
|
|
903
|
-
GanttComponent.prototype.openAddDialog = function () {
|
|
904
|
-
return this.ej2Instances.openAddDialog();
|
|
905
|
-
};
|
|
906
|
-
GanttComponent.prototype.openEditDialog = function (taskId) {
|
|
907
|
-
return this.ej2Instances.openEditDialog(taskId);
|
|
908
|
-
};
|
|
909
|
-
GanttComponent.prototype.outdent = function () {
|
|
910
|
-
return this.ej2Instances.outdent();
|
|
911
|
-
};
|
|
912
|
-
GanttComponent.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc) {
|
|
913
|
-
return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc);
|
|
914
|
-
};
|
|
915
|
-
GanttComponent.prototype.previousTimeSpan = function (mode) {
|
|
916
|
-
return this.ej2Instances.previousTimeSpan(mode);
|
|
917
|
-
};
|
|
918
|
-
GanttComponent.prototype.removeCriticalPathStyles = function () {
|
|
919
|
-
return this.ej2Instances.removeCriticalPathStyles();
|
|
920
|
-
};
|
|
921
|
-
GanttComponent.prototype.removePredecessor = function (id) {
|
|
922
|
-
return this.ej2Instances.removePredecessor(id);
|
|
923
|
-
};
|
|
924
|
-
GanttComponent.prototype.removeSortColumn = function (columnName) {
|
|
925
|
-
return this.ej2Instances.removeSortColumn(columnName);
|
|
926
|
-
};
|
|
927
|
-
GanttComponent.prototype.renderTemplates = function () {
|
|
928
|
-
return this.ej2Instances.renderTemplates();
|
|
929
|
-
};
|
|
930
|
-
GanttComponent.prototype.reorderColumns = function (fromFName, toFName) {
|
|
931
|
-
return this.ej2Instances.reorderColumns(fromFName, toFName);
|
|
932
|
-
};
|
|
933
|
-
GanttComponent.prototype.reorderRows = function (fromIndexes, toIndex, position) {
|
|
934
|
-
return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
|
|
935
|
-
};
|
|
936
|
-
GanttComponent.prototype.resetTemplates = function () {
|
|
937
|
-
return this.ej2Instances.resetTemplates();
|
|
938
|
-
};
|
|
939
|
-
GanttComponent.prototype.scrollToDate = function (date) {
|
|
940
|
-
return this.ej2Instances.scrollToDate(date);
|
|
941
|
-
};
|
|
942
|
-
GanttComponent.prototype.scrollToTask = function (taskId) {
|
|
943
|
-
return this.ej2Instances.scrollToTask(taskId);
|
|
944
|
-
};
|
|
945
|
-
GanttComponent.prototype.search = function (keyVal) {
|
|
946
|
-
return this.ej2Instances.search(keyVal);
|
|
947
|
-
};
|
|
948
|
-
GanttComponent.prototype.selectCell = function (cellIndex, isToggle) {
|
|
949
|
-
return this.ej2Instances.selectCell(cellIndex, isToggle);
|
|
950
|
-
};
|
|
951
|
-
GanttComponent.prototype.selectCells = function (rowCellIndexes) {
|
|
952
|
-
return this.ej2Instances.selectCells(rowCellIndexes);
|
|
953
|
-
};
|
|
954
|
-
GanttComponent.prototype.selectRow = function (index, isToggle) {
|
|
955
|
-
return this.ej2Instances.selectRow(index, isToggle);
|
|
956
|
-
};
|
|
957
|
-
GanttComponent.prototype.selectRows = function (records) {
|
|
958
|
-
return this.ej2Instances.selectRows(records);
|
|
959
|
-
};
|
|
960
|
-
GanttComponent.prototype.setScrollTop = function (scrollTop) {
|
|
961
|
-
return this.ej2Instances.setScrollTop(scrollTop);
|
|
962
|
-
};
|
|
963
|
-
GanttComponent.prototype.setSplitterPosition = function (value, type) {
|
|
964
|
-
return this.ej2Instances.setSplitterPosition(value, type);
|
|
965
|
-
};
|
|
966
|
-
GanttComponent.prototype.showColumn = function (keys, showBy) {
|
|
967
|
-
return this.ej2Instances.showColumn(keys, showBy);
|
|
968
|
-
};
|
|
969
|
-
GanttComponent.prototype.showCriticalPath = function (isCritical) {
|
|
970
|
-
return this.ej2Instances.showCriticalPath(isCritical);
|
|
971
|
-
};
|
|
972
|
-
GanttComponent.prototype.showMaskRow = function () {
|
|
973
|
-
return this.ej2Instances.showMaskRow();
|
|
974
|
-
};
|
|
975
|
-
GanttComponent.prototype.showSpinner = function () {
|
|
976
|
-
return this.ej2Instances.showSpinner();
|
|
977
|
-
};
|
|
978
|
-
GanttComponent.prototype.sortColumn = function (columnName, direction, isMultiSort) {
|
|
979
|
-
return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
|
|
980
|
-
};
|
|
981
|
-
GanttComponent.prototype.splitTask = function (taskId, splitDate) {
|
|
982
|
-
return this.ej2Instances.splitTask(taskId, splitDate);
|
|
983
|
-
};
|
|
984
|
-
GanttComponent.prototype.updateChartScrollOffset = function (left, top) {
|
|
985
|
-
return this.ej2Instances.updateChartScrollOffset(left, top);
|
|
986
|
-
};
|
|
987
|
-
GanttComponent.prototype.updateDataSource = function (dataSource, args) {
|
|
988
|
-
return this.ej2Instances.updateDataSource(dataSource, args);
|
|
989
|
-
};
|
|
990
|
-
GanttComponent.prototype.updatePredecessor = function (id, predecessorString) {
|
|
991
|
-
return this.ej2Instances.updatePredecessor(id, predecessorString);
|
|
992
|
-
};
|
|
993
|
-
GanttComponent.prototype.updateProjectDates = function (startDate, endDate, isTimelineRoundOff, isFrom) {
|
|
994
|
-
return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
|
|
995
|
-
};
|
|
996
|
-
GanttComponent.prototype.updateRecordByID = function (data) {
|
|
997
|
-
return this.ej2Instances.updateRecordByID(data);
|
|
998
|
-
};
|
|
999
|
-
GanttComponent.prototype.updateRecordByIndex = function (index, data) {
|
|
1000
|
-
return this.ej2Instances.updateRecordByIndex(index, data);
|
|
1001
|
-
};
|
|
1002
|
-
GanttComponent.prototype.updateTaskId = function (currentId, newId) {
|
|
1003
|
-
return this.ej2Instances.updateTaskId(currentId, newId);
|
|
1004
|
-
};
|
|
1005
|
-
GanttComponent.prototype.zoomIn = function () {
|
|
1006
|
-
return this.ej2Instances.zoomIn();
|
|
1007
|
-
};
|
|
1008
|
-
GanttComponent.prototype.zoomOut = function () {
|
|
1009
|
-
return this.ej2Instances.zoomOut();
|
|
1010
|
-
};
|
|
1011
|
-
GanttComponent = __decorate$6([
|
|
1012
|
-
EJComponentDecorator({
|
|
1013
|
-
props: properties,
|
|
1014
|
-
model: {
|
|
1015
|
-
event: 'modelchanged'
|
|
1016
|
-
}
|
|
1017
|
-
}, isExecute)
|
|
1018
|
-
,Options({
|
|
1019
|
-
props: props,
|
|
1020
|
-
watch: watch,
|
|
1021
|
-
emits: emitProbs,
|
|
1022
|
-
provide: function provide() {
|
|
1023
|
-
return {
|
|
1024
|
-
custom: this.custom
|
|
1025
|
-
};
|
|
497
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
498
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1026
499
|
}
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
500
|
+
},
|
|
501
|
+
custom: function () {
|
|
502
|
+
this.updated();
|
|
503
|
+
},
|
|
504
|
+
addPredecessor: function (id, predecessorString) {
|
|
505
|
+
return this.ej2Instances.addPredecessor(id, predecessorString);
|
|
506
|
+
},
|
|
507
|
+
addRecord: function (data, rowPosition, rowIndex) {
|
|
508
|
+
return this.ej2Instances.addRecord(data, rowPosition, rowIndex);
|
|
509
|
+
},
|
|
510
|
+
cancelEdit: function () {
|
|
511
|
+
return this.ej2Instances.cancelEdit();
|
|
512
|
+
},
|
|
513
|
+
changeTaskMode: function (data) {
|
|
514
|
+
return this.ej2Instances.changeTaskMode(data);
|
|
515
|
+
},
|
|
516
|
+
clearFiltering: function (fields) {
|
|
517
|
+
return this.ej2Instances.clearFiltering(fields);
|
|
518
|
+
},
|
|
519
|
+
clearSelection: function () {
|
|
520
|
+
return this.ej2Instances.clearSelection();
|
|
521
|
+
},
|
|
522
|
+
clearSorting: function () {
|
|
523
|
+
return this.ej2Instances.clearSorting();
|
|
524
|
+
},
|
|
525
|
+
collapseAll: function () {
|
|
526
|
+
return this.ej2Instances.collapseAll();
|
|
527
|
+
},
|
|
528
|
+
collapseByID: function (id) {
|
|
529
|
+
return this.ej2Instances.collapseByID(id);
|
|
530
|
+
},
|
|
531
|
+
collapseByIndex: function (index) {
|
|
532
|
+
return this.ej2Instances.collapseByIndex(index);
|
|
533
|
+
},
|
|
534
|
+
convertToMilestone: function (id) {
|
|
535
|
+
return this.ej2Instances.convertToMilestone(id);
|
|
536
|
+
},
|
|
537
|
+
csvExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
538
|
+
return this.ej2Instances.csvExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
539
|
+
},
|
|
540
|
+
deleteRecord: function (taskDetail) {
|
|
541
|
+
return this.ej2Instances.deleteRecord(taskDetail);
|
|
542
|
+
},
|
|
543
|
+
enableItems: function (items, isEnable) {
|
|
544
|
+
return this.ej2Instances.enableItems(items, isEnable);
|
|
545
|
+
},
|
|
546
|
+
excelExport: function (excelExportProperties, isMultipleExport, workbook, isBlob) {
|
|
547
|
+
return this.ej2Instances.excelExport(excelExportProperties, isMultipleExport, workbook, isBlob);
|
|
548
|
+
},
|
|
549
|
+
expandAll: function () {
|
|
550
|
+
return this.ej2Instances.expandAll();
|
|
551
|
+
},
|
|
552
|
+
expandByID: function (id) {
|
|
553
|
+
return this.ej2Instances.expandByID(id);
|
|
554
|
+
},
|
|
555
|
+
expandByIndex: function (index) {
|
|
556
|
+
return this.ej2Instances.expandByIndex(index);
|
|
557
|
+
},
|
|
558
|
+
filterByColumn: function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent) {
|
|
559
|
+
return this.ej2Instances.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent);
|
|
560
|
+
},
|
|
561
|
+
fitToProject: function () {
|
|
562
|
+
return this.ej2Instances.fitToProject();
|
|
563
|
+
},
|
|
564
|
+
getCriticalTasks: function () {
|
|
565
|
+
return this.ej2Instances.getCriticalTasks();
|
|
566
|
+
},
|
|
567
|
+
getDurationString: function (duration, durationUnit) {
|
|
568
|
+
return this.ej2Instances.getDurationString(duration, durationUnit);
|
|
569
|
+
},
|
|
570
|
+
getExpandedRecords: function (records) {
|
|
571
|
+
return this.ej2Instances.getExpandedRecords(records);
|
|
572
|
+
},
|
|
573
|
+
getFormatedDate: function (date, format) {
|
|
574
|
+
return this.ej2Instances.getFormatedDate(date, format);
|
|
575
|
+
},
|
|
576
|
+
getGanttColumns: function () {
|
|
577
|
+
return this.ej2Instances.getGanttColumns();
|
|
578
|
+
},
|
|
579
|
+
getGridColumns: function () {
|
|
580
|
+
return this.ej2Instances.getGridColumns();
|
|
581
|
+
},
|
|
582
|
+
getRecordByID: function (id) {
|
|
583
|
+
return this.ej2Instances.getRecordByID(id);
|
|
584
|
+
},
|
|
585
|
+
getRowByID: function (id) {
|
|
586
|
+
return this.ej2Instances.getRowByID(id);
|
|
587
|
+
},
|
|
588
|
+
getRowByIndex: function (index) {
|
|
589
|
+
return this.ej2Instances.getRowByIndex(index);
|
|
590
|
+
},
|
|
591
|
+
getTaskByUniqueID: function (id) {
|
|
592
|
+
return this.ej2Instances.getTaskByUniqueID(id);
|
|
593
|
+
},
|
|
594
|
+
getTaskbarHeight: function () {
|
|
595
|
+
return this.ej2Instances.getTaskbarHeight();
|
|
596
|
+
},
|
|
597
|
+
getWorkString: function (work, workUnit) {
|
|
598
|
+
return this.ej2Instances.getWorkString(work, workUnit);
|
|
599
|
+
},
|
|
600
|
+
hideColumn: function (keys, hideBy) {
|
|
601
|
+
return this.ej2Instances.hideColumn(keys, hideBy);
|
|
602
|
+
},
|
|
603
|
+
hideMaskRow: function () {
|
|
604
|
+
return this.ej2Instances.hideMaskRow();
|
|
605
|
+
},
|
|
606
|
+
hideSpinner: function () {
|
|
607
|
+
return this.ej2Instances.hideSpinner();
|
|
608
|
+
},
|
|
609
|
+
indent: function () {
|
|
610
|
+
return this.ej2Instances.indent();
|
|
611
|
+
},
|
|
612
|
+
keyActionHandler: function (e) {
|
|
613
|
+
return this.ej2Instances.keyActionHandler(e);
|
|
614
|
+
},
|
|
615
|
+
mergeTask: function (taskId, segmentIndexes) {
|
|
616
|
+
return this.ej2Instances.mergeTask(taskId, segmentIndexes);
|
|
617
|
+
},
|
|
618
|
+
nextTimeSpan: function (mode) {
|
|
619
|
+
return this.ej2Instances.nextTimeSpan(mode);
|
|
620
|
+
},
|
|
621
|
+
openAddDialog: function () {
|
|
622
|
+
return this.ej2Instances.openAddDialog();
|
|
623
|
+
},
|
|
624
|
+
openEditDialog: function (taskId) {
|
|
625
|
+
return this.ej2Instances.openEditDialog(taskId);
|
|
626
|
+
},
|
|
627
|
+
outdent: function () {
|
|
628
|
+
return this.ej2Instances.outdent();
|
|
629
|
+
},
|
|
630
|
+
pdfExport: function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
|
|
631
|
+
return this.ej2Instances.pdfExport(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
|
|
632
|
+
},
|
|
633
|
+
previousTimeSpan: function (mode) {
|
|
634
|
+
return this.ej2Instances.previousTimeSpan(mode);
|
|
635
|
+
},
|
|
636
|
+
removeCriticalPathStyles: function () {
|
|
637
|
+
return this.ej2Instances.removeCriticalPathStyles();
|
|
638
|
+
},
|
|
639
|
+
removePredecessor: function (id) {
|
|
640
|
+
return this.ej2Instances.removePredecessor(id);
|
|
641
|
+
},
|
|
642
|
+
removeSortColumn: function (columnName) {
|
|
643
|
+
return this.ej2Instances.removeSortColumn(columnName);
|
|
644
|
+
},
|
|
645
|
+
renderTemplates: function () {
|
|
646
|
+
return this.ej2Instances.renderTemplates();
|
|
647
|
+
},
|
|
648
|
+
reorderColumns: function (fromFName, toFName) {
|
|
649
|
+
return this.ej2Instances.reorderColumns(fromFName, toFName);
|
|
650
|
+
},
|
|
651
|
+
reorderRows: function (fromIndexes, toIndex, position) {
|
|
652
|
+
return this.ej2Instances.reorderRows(fromIndexes, toIndex, position);
|
|
653
|
+
},
|
|
654
|
+
resetTemplates: function () {
|
|
655
|
+
return this.ej2Instances.resetTemplates();
|
|
656
|
+
},
|
|
657
|
+
scrollToDate: function (date) {
|
|
658
|
+
return this.ej2Instances.scrollToDate(date);
|
|
659
|
+
},
|
|
660
|
+
scrollToTask: function (taskId) {
|
|
661
|
+
return this.ej2Instances.scrollToTask(taskId);
|
|
662
|
+
},
|
|
663
|
+
search: function (keyVal) {
|
|
664
|
+
return this.ej2Instances.search(keyVal);
|
|
665
|
+
},
|
|
666
|
+
selectCell: function (cellIndex, isToggle) {
|
|
667
|
+
return this.ej2Instances.selectCell(cellIndex, isToggle);
|
|
668
|
+
},
|
|
669
|
+
selectCells: function (rowCellIndexes) {
|
|
670
|
+
return this.ej2Instances.selectCells(rowCellIndexes);
|
|
671
|
+
},
|
|
672
|
+
selectRow: function (index, isToggle) {
|
|
673
|
+
return this.ej2Instances.selectRow(index, isToggle);
|
|
674
|
+
},
|
|
675
|
+
selectRows: function (records) {
|
|
676
|
+
return this.ej2Instances.selectRows(records);
|
|
677
|
+
},
|
|
678
|
+
setScrollTop: function (scrollTop) {
|
|
679
|
+
return this.ej2Instances.setScrollTop(scrollTop);
|
|
680
|
+
},
|
|
681
|
+
setSplitterPosition: function (value, type) {
|
|
682
|
+
return this.ej2Instances.setSplitterPosition(value, type);
|
|
683
|
+
},
|
|
684
|
+
showColumn: function (keys, showBy) {
|
|
685
|
+
return this.ej2Instances.showColumn(keys, showBy);
|
|
686
|
+
},
|
|
687
|
+
showCriticalPath: function (isCritical) {
|
|
688
|
+
return this.ej2Instances.showCriticalPath(isCritical);
|
|
689
|
+
},
|
|
690
|
+
showMaskRow: function () {
|
|
691
|
+
return this.ej2Instances.showMaskRow();
|
|
692
|
+
},
|
|
693
|
+
showSpinner: function () {
|
|
694
|
+
return this.ej2Instances.showSpinner();
|
|
695
|
+
},
|
|
696
|
+
sortColumn: function (columnName, direction, isMultiSort) {
|
|
697
|
+
return this.ej2Instances.sortColumn(columnName, direction, isMultiSort);
|
|
698
|
+
},
|
|
699
|
+
splitTask: function (taskId, splitDate) {
|
|
700
|
+
return this.ej2Instances.splitTask(taskId, splitDate);
|
|
701
|
+
},
|
|
702
|
+
updateChartScrollOffset: function (left, top) {
|
|
703
|
+
return this.ej2Instances.updateChartScrollOffset(left, top);
|
|
704
|
+
},
|
|
705
|
+
updateDataSource: function (dataSource, args) {
|
|
706
|
+
return this.ej2Instances.updateDataSource(dataSource, args);
|
|
707
|
+
},
|
|
708
|
+
updatePredecessor: function (id, predecessorString) {
|
|
709
|
+
return this.ej2Instances.updatePredecessor(id, predecessorString);
|
|
710
|
+
},
|
|
711
|
+
updateProjectDates: function (startDate, endDate, isTimelineRoundOff, isFrom) {
|
|
712
|
+
return this.ej2Instances.updateProjectDates(startDate, endDate, isTimelineRoundOff, isFrom);
|
|
713
|
+
},
|
|
714
|
+
updateRecordByID: function (data) {
|
|
715
|
+
return this.ej2Instances.updateRecordByID(data);
|
|
716
|
+
},
|
|
717
|
+
updateRecordByIndex: function (index, data) {
|
|
718
|
+
return this.ej2Instances.updateRecordByIndex(index, data);
|
|
719
|
+
},
|
|
720
|
+
updateTaskId: function (currentId, newId) {
|
|
721
|
+
return this.ej2Instances.updateTaskId(currentId, newId);
|
|
722
|
+
},
|
|
723
|
+
zoomIn: function () {
|
|
724
|
+
return this.ej2Instances.zoomIn();
|
|
725
|
+
},
|
|
726
|
+
zoomOut: function () {
|
|
727
|
+
return this.ej2Instances.zoomOut();
|
|
728
|
+
},
|
|
729
|
+
}
|
|
730
|
+
});
|
|
1031
731
|
var GanttPlugin = {
|
|
1032
732
|
name: 'ejs-gantt',
|
|
1033
|
-
install: function (Vue
|
|
1034
|
-
Vue
|
|
1035
|
-
Vue
|
|
1036
|
-
Vue
|
|
1037
|
-
Vue
|
|
1038
|
-
Vue
|
|
1039
|
-
Vue
|
|
1040
|
-
Vue
|
|
1041
|
-
Vue
|
|
1042
|
-
Vue
|
|
1043
|
-
Vue
|
|
1044
|
-
Vue
|
|
1045
|
-
Vue
|
|
1046
|
-
Vue
|
|
733
|
+
install: function (Vue) {
|
|
734
|
+
Vue.component(GanttPlugin.name, GanttComponent);
|
|
735
|
+
Vue.component(ColumnPlugin.name, ColumnDirective);
|
|
736
|
+
Vue.component(ColumnsPlugin.name, ColumnsDirective);
|
|
737
|
+
Vue.component(AddDialogFieldPlugin.name, AddDialogFieldDirective);
|
|
738
|
+
Vue.component(AddDialogFieldsPlugin.name, AddDialogFieldsDirective);
|
|
739
|
+
Vue.component(EditDialogFieldPlugin.name, EditDialogFieldDirective);
|
|
740
|
+
Vue.component(EditDialogFieldsPlugin.name, EditDialogFieldsDirective);
|
|
741
|
+
Vue.component(DayWorkingTimePlugin.name, DayWorkingTimeDirective);
|
|
742
|
+
Vue.component(DayWorkingTimeCollectionPlugin.name, DayWorkingTimeCollectionDirective);
|
|
743
|
+
Vue.component(HolidayPlugin.name, HolidayDirective);
|
|
744
|
+
Vue.component(HolidaysPlugin.name, HolidaysDirective);
|
|
745
|
+
Vue.component(EventMarkerPlugin.name, EventMarkerDirective);
|
|
746
|
+
Vue.component(EventMarkersPlugin.name, EventMarkersDirective);
|
|
1047
747
|
}
|
|
1048
748
|
};
|
|
1049
749
|
|