@syncfusion/ej2-angular-gantt 30.1.37-ngcc → 30.1.38-ngcc
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/@syncfusion/ej2-angular-gantt.es5.js +913 -913
- package/@syncfusion/ej2-angular-gantt.es5.js.map +1 -1
- package/@syncfusion/ej2-angular-gantt.js +833 -833
- package/@syncfusion/ej2-angular-gantt.js.map +1 -1
- package/dist/ej2-angular-gantt.umd.js +904 -905
- package/dist/ej2-angular-gantt.umd.js.map +1 -1
- package/dist/ej2-angular-gantt.umd.min.js +2 -2
- package/dist/ej2-angular-gantt.umd.min.js.map +1 -1
- package/ej2-angular-gantt.d.ts +5 -5
- package/ej2-angular-gantt.metadata.json +1 -1
- package/{LICENSE → license} +10 -10
- package/package.json +45 -14
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.d.ts +2 -2
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +4 -4
- package/src/gantt/adddialogfields.directive.d.ts +53 -53
- package/src/gantt/columns.directive.d.ts +207 -207
- package/src/gantt/dayworkingtime.directive.d.ts +36 -36
- package/src/gantt/editdialogfields.directive.d.ts +53 -53
- package/src/gantt/eventmarkers.directive.d.ts +42 -42
- package/src/gantt/gantt-all.module.d.ts +22 -22
- package/src/gantt/gantt.component.d.ts +140 -141
- package/src/gantt/gantt.module.d.ts +5 -5
- package/src/gantt/holidays.directive.d.ts +46 -46
- package/src/gantt/weekworkingtime.directive.d.ts +38 -38
- package/src/index.d.ts +11 -11
|
@@ -1,914 +1,914 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = Object.setPrototypeOf ||
|
|
3
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5
|
-
return function (d, b) {
|
|
6
|
-
extendStatics(d, b);
|
|
7
|
-
function __() { this.constructor = d; }
|
|
8
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef } from '@angular/core';
|
|
12
|
-
import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
13
|
-
import { ColumnMenu, ContextMenu, CriticalPath, DayMarkers, Edit, ExcelExport, Filter, Gantt, PdfExport, Reorder, Resize, RowDD, Selection, Sort, Toolbar, UndoRedo, VirtualScroll } from '@syncfusion/ej2-gantt';
|
|
14
|
-
import { CommonModule } from '@angular/common';
|
|
15
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
-
else
|
|
20
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
-
if (d = decorators[i])
|
|
22
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
-
};
|
|
25
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
26
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
27
|
-
return Reflect.metadata(k, v);
|
|
28
|
-
};
|
|
29
|
-
var input = ['allowEditing', 'allowFiltering', 'allowReordering', 'allowResizing', 'allowSorting', 'clipMode', 'customAttributes', 'disableHtmlEncode', 'displayAsCheckBox', 'edit', 'editType', 'field', 'filter', 'format', 'formatter', 'headerTemplate', 'headerText', 'headerTextAlign', 'hideAtMedia', 'isPrimaryKey', 'maxWidth', 'minWidth', 'sortComparer', 'template', 'textAlign', 'type', 'validationRules', 'valueAccessor', 'visible', 'width'];
|
|
30
|
-
var outputs = [];
|
|
31
|
-
/**
|
|
32
|
-
* `e-column` directive represent a column of the Angular Gantt.
|
|
33
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
34
|
-
* ```html
|
|
35
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
36
|
-
* <e-columns>
|
|
37
|
-
* <e-column field='ID' width='150'></e-column>
|
|
38
|
-
* <e-column field='taskName' headerText='Task Name' width='200'></e-column>
|
|
39
|
-
* </e-columns>
|
|
40
|
-
* </ejs-gantt>
|
|
41
|
-
* ```
|
|
42
|
-
*/
|
|
43
|
-
var ColumnDirective = /** @class */ (function (_super) {
|
|
44
|
-
__extends(ColumnDirective, _super);
|
|
45
|
-
/**
|
|
46
|
-
* @param {?} viewContainerRef
|
|
47
|
-
*/
|
|
48
|
-
function ColumnDirective(viewContainerRef) {
|
|
49
|
-
var _this = _super.call(this) || this;
|
|
50
|
-
_this.viewContainerRef = viewContainerRef;
|
|
51
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
52
|
-
_this.registerEvents(outputs);
|
|
53
|
-
_this.directivePropList = input;
|
|
54
|
-
return _this;
|
|
55
|
-
}
|
|
56
|
-
return ColumnDirective;
|
|
57
|
-
}(ComplexBase));
|
|
58
|
-
ColumnDirective.decorators = [
|
|
59
|
-
{ type: Directive, args: [{
|
|
60
|
-
selector: 'ejs-gantt>e-columns>e-column',
|
|
61
|
-
inputs: input,
|
|
62
|
-
outputs: outputs,
|
|
63
|
-
queries: {}
|
|
64
|
-
},] },
|
|
65
|
-
];
|
|
66
|
-
/**
|
|
67
|
-
* @nocollapse
|
|
68
|
-
*/
|
|
69
|
-
ColumnDirective.ctorParameters = function () { return [
|
|
70
|
-
{ type: ViewContainerRef, },
|
|
71
|
-
]; };
|
|
72
|
-
ColumnDirective.propDecorators = {
|
|
73
|
-
'template': [{ type: ContentChild, args: ['template',] },],
|
|
74
|
-
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
75
|
-
'editTemplate': [{ type: ContentChild, args: ['editTemplate',] },],
|
|
76
|
-
};
|
|
77
|
-
__decorate([
|
|
78
|
-
Template(),
|
|
79
|
-
__metadata("design:type", Object)
|
|
80
|
-
], ColumnDirective.prototype, "template", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
Template(),
|
|
83
|
-
__metadata("design:type", Object)
|
|
84
|
-
], ColumnDirective.prototype, "headerTemplate", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
Template(),
|
|
87
|
-
__metadata("design:type", Object)
|
|
88
|
-
], ColumnDirective.prototype, "editTemplate", void 0);
|
|
89
|
-
/**
|
|
90
|
-
* Column Array Directive
|
|
91
|
-
*/
|
|
92
|
-
var ColumnsDirective = /** @class */ (function (_super) {
|
|
93
|
-
__extends(ColumnsDirective, _super);
|
|
94
|
-
function ColumnsDirective() {
|
|
95
|
-
return _super.call(this, 'columns') || this;
|
|
96
|
-
}
|
|
97
|
-
return ColumnsDirective;
|
|
98
|
-
}(ArrayBase));
|
|
99
|
-
ColumnsDirective.decorators = [
|
|
100
|
-
{ type: Directive, args: [{
|
|
101
|
-
selector: 'ejs-gantt>e-columns',
|
|
102
|
-
queries: {
|
|
103
|
-
children: new ContentChildren(ColumnDirective)
|
|
104
|
-
},
|
|
105
|
-
},] },
|
|
106
|
-
];
|
|
107
|
-
/**
|
|
108
|
-
* @nocollapse
|
|
109
|
-
*/
|
|
110
|
-
ColumnsDirective.ctorParameters = function () { return []; };
|
|
111
|
-
var input$1 = ['additionalParams', 'fields', 'headerText', 'type'];
|
|
112
|
-
var outputs$1 = [];
|
|
113
|
-
/**
|
|
114
|
-
* `e-add-dialog-field` directive represent a add dialog fields collection in Gantt task add dialog.
|
|
115
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
116
|
-
* ```html
|
|
117
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
118
|
-
* <e-add-dialog-fields>
|
|
119
|
-
* <e-add-dialog-field type='General' headerText='General'></e-add-dialog-field>
|
|
120
|
-
* <e-add-dialog-field type='Dependency' headerText='Dependency'></e-add-dialog-field>
|
|
121
|
-
* </e-add-dialog-fields>
|
|
122
|
-
* </ejs-gantt>
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
var AddDialogFieldDirective = /** @class */ (function (_super) {
|
|
126
|
-
__extends(AddDialogFieldDirective, _super);
|
|
127
|
-
/**
|
|
128
|
-
* @param {?} viewContainerRef
|
|
129
|
-
*/
|
|
130
|
-
function AddDialogFieldDirective(viewContainerRef) {
|
|
131
|
-
var _this = _super.call(this) || this;
|
|
132
|
-
_this.viewContainerRef = viewContainerRef;
|
|
133
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
134
|
-
_this.registerEvents(outputs$1);
|
|
135
|
-
_this.directivePropList = input$1;
|
|
136
|
-
return _this;
|
|
137
|
-
}
|
|
138
|
-
return AddDialogFieldDirective;
|
|
139
|
-
}(ComplexBase));
|
|
140
|
-
AddDialogFieldDirective.decorators = [
|
|
141
|
-
{ type: Directive, args: [{
|
|
142
|
-
selector: 'ejs-gantt>e-add-dialog-fields>e-add-dialog-field',
|
|
143
|
-
inputs: input$1,
|
|
144
|
-
outputs: outputs$1,
|
|
145
|
-
queries: {}
|
|
146
|
-
},] },
|
|
147
|
-
];
|
|
148
|
-
/**
|
|
149
|
-
* @nocollapse
|
|
150
|
-
*/
|
|
151
|
-
AddDialogFieldDirective.ctorParameters = function () { return [
|
|
152
|
-
{ type: ViewContainerRef, },
|
|
153
|
-
]; };
|
|
154
|
-
/**
|
|
155
|
-
* AddDialogField Array Directive
|
|
156
|
-
*/
|
|
157
|
-
var AddDialogFieldsDirective = /** @class */ (function (_super) {
|
|
158
|
-
__extends(AddDialogFieldsDirective, _super);
|
|
159
|
-
function AddDialogFieldsDirective() {
|
|
160
|
-
return _super.call(this, 'adddialogfields') || this;
|
|
161
|
-
}
|
|
162
|
-
return AddDialogFieldsDirective;
|
|
163
|
-
}(ArrayBase));
|
|
164
|
-
AddDialogFieldsDirective.decorators = [
|
|
165
|
-
{ type: Directive, args: [{
|
|
166
|
-
selector: 'ejs-gantt>e-add-dialog-fields',
|
|
167
|
-
queries: {
|
|
168
|
-
children: new ContentChildren(AddDialogFieldDirective)
|
|
169
|
-
},
|
|
170
|
-
},] },
|
|
171
|
-
];
|
|
172
|
-
/**
|
|
173
|
-
* @nocollapse
|
|
174
|
-
*/
|
|
175
|
-
AddDialogFieldsDirective.ctorParameters = function () { return []; };
|
|
176
|
-
var input$2 = ['additionalParams', 'fields', 'headerText', 'type'];
|
|
177
|
-
var outputs$2 = [];
|
|
178
|
-
/**
|
|
179
|
-
* `e-edit-dialog-field` directive represent a edit dialog fields collection in Gantt task add dialog.
|
|
180
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
181
|
-
* ```html
|
|
182
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
183
|
-
* <e-edit-dialog-fields>
|
|
184
|
-
* <e-edit-dialog-field type='General' headerText='General'></e-edit-dialog-field>
|
|
185
|
-
* <e-edit-dialog-field type='Dependency' headerText='Dependency'></e-edit-dialog-field>
|
|
186
|
-
* </e-edit-dialog-fields>
|
|
187
|
-
* </ejs-gantt>
|
|
188
|
-
* ```
|
|
189
|
-
*/
|
|
190
|
-
var EditDialogFieldDirective = /** @class */ (function (_super) {
|
|
191
|
-
__extends(EditDialogFieldDirective, _super);
|
|
192
|
-
/**
|
|
193
|
-
* @param {?} viewContainerRef
|
|
194
|
-
*/
|
|
195
|
-
function EditDialogFieldDirective(viewContainerRef) {
|
|
196
|
-
var _this = _super.call(this) || this;
|
|
197
|
-
_this.viewContainerRef = viewContainerRef;
|
|
198
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
199
|
-
_this.registerEvents(outputs$2);
|
|
200
|
-
_this.directivePropList = input$2;
|
|
201
|
-
return _this;
|
|
202
|
-
}
|
|
203
|
-
return EditDialogFieldDirective;
|
|
204
|
-
}(ComplexBase));
|
|
205
|
-
EditDialogFieldDirective.decorators = [
|
|
206
|
-
{ type: Directive, args: [{
|
|
207
|
-
selector: 'ejs-gantt>e-edit-dialog-fields>e-edit-dialog-field',
|
|
208
|
-
inputs: input$2,
|
|
209
|
-
outputs: outputs$2,
|
|
210
|
-
queries: {}
|
|
211
|
-
},] },
|
|
212
|
-
];
|
|
213
|
-
/**
|
|
214
|
-
* @nocollapse
|
|
215
|
-
*/
|
|
216
|
-
EditDialogFieldDirective.ctorParameters = function () { return [
|
|
217
|
-
{ type: ViewContainerRef, },
|
|
218
|
-
]; };
|
|
219
|
-
/**
|
|
220
|
-
* EditDialogField Array Directive
|
|
221
|
-
*/
|
|
222
|
-
var EditDialogFieldsDirective = /** @class */ (function (_super) {
|
|
223
|
-
__extends(EditDialogFieldsDirective, _super);
|
|
224
|
-
function EditDialogFieldsDirective() {
|
|
225
|
-
return _super.call(this, 'editdialogfields') || this;
|
|
226
|
-
}
|
|
227
|
-
return EditDialogFieldsDirective;
|
|
228
|
-
}(ArrayBase));
|
|
229
|
-
EditDialogFieldsDirective.decorators = [
|
|
230
|
-
{ type: Directive, args: [{
|
|
231
|
-
selector: 'ejs-gantt>e-edit-dialog-fields',
|
|
232
|
-
queries: {
|
|
233
|
-
children: new ContentChildren(EditDialogFieldDirective)
|
|
234
|
-
},
|
|
235
|
-
},] },
|
|
236
|
-
];
|
|
237
|
-
/**
|
|
238
|
-
* @nocollapse
|
|
239
|
-
*/
|
|
240
|
-
EditDialogFieldsDirective.ctorParameters = function () { return []; };
|
|
241
|
-
var input$3 = ['from', 'to'];
|
|
242
|
-
var outputs$3 = [];
|
|
243
|
-
/**
|
|
244
|
-
* `e-day-working-time-collection` directive represent a working time ranges in a day.
|
|
245
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
246
|
-
* ```html
|
|
247
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
248
|
-
* <e-day-working-time-collection>
|
|
249
|
-
* <e-day-working-time from='8' to='12'></e-day-working-time>
|
|
250
|
-
* <e-day-working-time from='13' to='17'></e-day-working-time>
|
|
251
|
-
* </e-day-working-time-collection>
|
|
252
|
-
* </ejs-gantt>
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
|
-
var DayWorkingTimeDirective = /** @class */ (function (_super) {
|
|
256
|
-
__extends(DayWorkingTimeDirective, _super);
|
|
257
|
-
/**
|
|
258
|
-
* @param {?} viewContainerRef
|
|
259
|
-
*/
|
|
260
|
-
function DayWorkingTimeDirective(viewContainerRef) {
|
|
261
|
-
var _this = _super.call(this) || this;
|
|
262
|
-
_this.viewContainerRef = viewContainerRef;
|
|
263
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
264
|
-
_this.registerEvents(outputs$3);
|
|
265
|
-
_this.directivePropList = input$3;
|
|
266
|
-
return _this;
|
|
267
|
-
}
|
|
268
|
-
return DayWorkingTimeDirective;
|
|
269
|
-
}(ComplexBase));
|
|
270
|
-
DayWorkingTimeDirective.decorators = [
|
|
271
|
-
{ type: Directive, args: [{
|
|
272
|
-
selector: 'ejs-gantt>e-day-working-time-collection>e-day-working-time',
|
|
273
|
-
inputs: input$3,
|
|
274
|
-
outputs: outputs$3,
|
|
275
|
-
queries: {}
|
|
276
|
-
},] },
|
|
277
|
-
];
|
|
278
|
-
/**
|
|
279
|
-
* @nocollapse
|
|
280
|
-
*/
|
|
281
|
-
DayWorkingTimeDirective.ctorParameters = function () { return [
|
|
282
|
-
{ type: ViewContainerRef, },
|
|
283
|
-
]; };
|
|
284
|
-
/**
|
|
285
|
-
* DayWorkingTime Array Directive
|
|
286
|
-
*/
|
|
287
|
-
var DayWorkingTimeCollectionDirective = /** @class */ (function (_super) {
|
|
288
|
-
__extends(DayWorkingTimeCollectionDirective, _super);
|
|
289
|
-
function DayWorkingTimeCollectionDirective() {
|
|
290
|
-
return _super.call(this, 'dayworkingtime') || this;
|
|
291
|
-
}
|
|
292
|
-
return DayWorkingTimeCollectionDirective;
|
|
293
|
-
}(ArrayBase));
|
|
294
|
-
DayWorkingTimeCollectionDirective.decorators = [
|
|
295
|
-
{ type: Directive, args: [{
|
|
296
|
-
selector: 'ejs-gantt>e-day-working-time-collection',
|
|
297
|
-
queries: {
|
|
298
|
-
children: new ContentChildren(DayWorkingTimeDirective)
|
|
299
|
-
},
|
|
300
|
-
},] },
|
|
301
|
-
];
|
|
302
|
-
/**
|
|
303
|
-
* @nocollapse
|
|
304
|
-
*/
|
|
305
|
-
DayWorkingTimeCollectionDirective.ctorParameters = function () { return []; };
|
|
306
|
-
var input$4 = ['dayOfWeek', 'timeRange'];
|
|
307
|
-
var outputs$4 = [];
|
|
308
|
-
/**
|
|
309
|
-
* `e-week-working-times` directive represent a working time ranges in a day.
|
|
310
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
311
|
-
* ```html
|
|
312
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
313
|
-
* <e-week-working-times>
|
|
314
|
-
* <e-week-working-time dayOfWeek='Monday'></e-week-working-time>
|
|
315
|
-
* <e-week-working-time dayOfWeek='Monday'></e-week-working-time>
|
|
316
|
-
* </e-week-working-times>
|
|
317
|
-
* </ejs-gantt>
|
|
318
|
-
* ```
|
|
319
|
-
*/
|
|
320
|
-
var WeekWorkingTimeDirective = /** @class */ (function (_super) {
|
|
321
|
-
__extends(WeekWorkingTimeDirective, _super);
|
|
322
|
-
/**
|
|
323
|
-
* @param {?} viewContainerRef
|
|
324
|
-
*/
|
|
325
|
-
function WeekWorkingTimeDirective(viewContainerRef) {
|
|
326
|
-
var _this = _super.call(this) || this;
|
|
327
|
-
_this.viewContainerRef = viewContainerRef;
|
|
328
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
329
|
-
_this.registerEvents(outputs$4);
|
|
330
|
-
_this.directivePropList = input$4;
|
|
331
|
-
return _this;
|
|
332
|
-
}
|
|
333
|
-
return WeekWorkingTimeDirective;
|
|
334
|
-
}(ComplexBase));
|
|
335
|
-
WeekWorkingTimeDirective.decorators = [
|
|
336
|
-
{ type: Directive, args: [{
|
|
337
|
-
selector: 'ejs-gantt>e-week-working-times>e-week-working-time',
|
|
338
|
-
inputs: input$4,
|
|
339
|
-
outputs: outputs$4,
|
|
340
|
-
queries: {}
|
|
341
|
-
},] },
|
|
342
|
-
];
|
|
343
|
-
/**
|
|
344
|
-
* @nocollapse
|
|
345
|
-
*/
|
|
346
|
-
WeekWorkingTimeDirective.ctorParameters = function () { return [
|
|
347
|
-
{ type: ViewContainerRef, },
|
|
348
|
-
]; };
|
|
349
|
-
/**
|
|
350
|
-
* WeekWorkingTime Array Directive
|
|
351
|
-
*/
|
|
352
|
-
var WeekWorkingTimesDirective = /** @class */ (function (_super) {
|
|
353
|
-
__extends(WeekWorkingTimesDirective, _super);
|
|
354
|
-
function WeekWorkingTimesDirective() {
|
|
355
|
-
return _super.call(this, 'weekworkingtime') || this;
|
|
356
|
-
}
|
|
357
|
-
return WeekWorkingTimesDirective;
|
|
358
|
-
}(ArrayBase));
|
|
359
|
-
WeekWorkingTimesDirective.decorators = [
|
|
360
|
-
{ type: Directive, args: [{
|
|
361
|
-
selector: 'ejs-gantt>e-week-working-times',
|
|
362
|
-
queries: {
|
|
363
|
-
children: new ContentChildren(WeekWorkingTimeDirective)
|
|
364
|
-
},
|
|
365
|
-
},] },
|
|
366
|
-
];
|
|
367
|
-
/**
|
|
368
|
-
* @nocollapse
|
|
369
|
-
*/
|
|
370
|
-
WeekWorkingTimesDirective.ctorParameters = function () { return []; };
|
|
371
|
-
var input$5 = ['cssClass', 'from', 'label', 'to'];
|
|
372
|
-
var outputs$5 = [];
|
|
373
|
-
/**
|
|
374
|
-
* `e-holidays` directive represent a holidays collection in Gantt.
|
|
375
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
376
|
-
* ```html
|
|
377
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
378
|
-
* <e-holidays>
|
|
379
|
-
* <e-holiday from='02/20/2018' label='Holiday 1'></e-holiday>
|
|
380
|
-
* <e-holiday from='05/15/2018' label='Holiday 2'></e-holiday>
|
|
381
|
-
* </e-holidays>
|
|
382
|
-
* </ejs-gantt>
|
|
383
|
-
* ```
|
|
384
|
-
*/
|
|
385
|
-
var HolidayDirective = /** @class */ (function (_super) {
|
|
386
|
-
__extends(HolidayDirective, _super);
|
|
387
|
-
/**
|
|
388
|
-
* @param {?} viewContainerRef
|
|
389
|
-
*/
|
|
390
|
-
function HolidayDirective(viewContainerRef) {
|
|
391
|
-
var _this = _super.call(this) || this;
|
|
392
|
-
_this.viewContainerRef = viewContainerRef;
|
|
393
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
394
|
-
_this.registerEvents(outputs$5);
|
|
395
|
-
_this.directivePropList = input$5;
|
|
396
|
-
return _this;
|
|
397
|
-
}
|
|
398
|
-
return HolidayDirective;
|
|
399
|
-
}(ComplexBase));
|
|
400
|
-
HolidayDirective.decorators = [
|
|
401
|
-
{ type: Directive, args: [{
|
|
402
|
-
selector: 'ejs-gantt>e-holidays>e-holidays',
|
|
403
|
-
inputs: input$5,
|
|
404
|
-
outputs: outputs$5,
|
|
405
|
-
queries: {}
|
|
406
|
-
},] },
|
|
407
|
-
];
|
|
408
|
-
/**
|
|
409
|
-
* @nocollapse
|
|
410
|
-
*/
|
|
411
|
-
HolidayDirective.ctorParameters = function () { return [
|
|
412
|
-
{ type: ViewContainerRef, },
|
|
413
|
-
]; };
|
|
414
|
-
/**
|
|
415
|
-
* Holiday Array Directive
|
|
416
|
-
*/
|
|
417
|
-
var HolidaysDirective = /** @class */ (function (_super) {
|
|
418
|
-
__extends(HolidaysDirective, _super);
|
|
419
|
-
function HolidaysDirective() {
|
|
420
|
-
return _super.call(this, 'holidays') || this;
|
|
421
|
-
}
|
|
422
|
-
return HolidaysDirective;
|
|
423
|
-
}(ArrayBase));
|
|
424
|
-
HolidaysDirective.decorators = [
|
|
425
|
-
{ type: Directive, args: [{
|
|
426
|
-
selector: 'ejs-gantt>e-holidays',
|
|
427
|
-
queries: {
|
|
428
|
-
children: new ContentChildren(HolidayDirective)
|
|
429
|
-
},
|
|
430
|
-
},] },
|
|
431
|
-
];
|
|
432
|
-
/**
|
|
433
|
-
* @nocollapse
|
|
434
|
-
*/
|
|
435
|
-
HolidaysDirective.ctorParameters = function () { return []; };
|
|
436
|
-
var input$6 = ['cssClass', 'day', 'label'];
|
|
437
|
-
var outputs$6 = [];
|
|
438
|
-
/**
|
|
439
|
-
* `e-event-markers` directive represent a event marker collection in Gantt.
|
|
440
|
-
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
441
|
-
* ```html
|
|
442
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
443
|
-
* <e-event-markers>
|
|
444
|
-
* <e-event-marker day='02/10/2018' label='Project Starts'></e-event-marker>
|
|
445
|
-
* </e-event-markers>
|
|
446
|
-
* </ejs-gantt>
|
|
447
|
-
* ```
|
|
448
|
-
*/
|
|
449
|
-
var EventMarkerDirective = /** @class */ (function (_super) {
|
|
450
|
-
__extends(EventMarkerDirective, _super);
|
|
451
|
-
/**
|
|
452
|
-
* @param {?} viewContainerRef
|
|
453
|
-
*/
|
|
454
|
-
function EventMarkerDirective(viewContainerRef) {
|
|
455
|
-
var _this = _super.call(this) || this;
|
|
456
|
-
_this.viewContainerRef = viewContainerRef;
|
|
457
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
458
|
-
_this.registerEvents(outputs$6);
|
|
459
|
-
_this.directivePropList = input$6;
|
|
460
|
-
return _this;
|
|
461
|
-
}
|
|
462
|
-
return EventMarkerDirective;
|
|
463
|
-
}(ComplexBase));
|
|
464
|
-
EventMarkerDirective.decorators = [
|
|
465
|
-
{ type: Directive, args: [{
|
|
466
|
-
selector: 'ejs-gantt>e-event-markers>e-event-marker',
|
|
467
|
-
inputs: input$6,
|
|
468
|
-
outputs: outputs$6,
|
|
469
|
-
queries: {}
|
|
470
|
-
},] },
|
|
471
|
-
];
|
|
472
|
-
/**
|
|
473
|
-
* @nocollapse
|
|
474
|
-
*/
|
|
475
|
-
EventMarkerDirective.ctorParameters = function () { return [
|
|
476
|
-
{ type: ViewContainerRef, },
|
|
477
|
-
]; };
|
|
478
|
-
/**
|
|
479
|
-
* EventMarker Array Directive
|
|
480
|
-
*/
|
|
481
|
-
var EventMarkersDirective = /** @class */ (function (_super) {
|
|
482
|
-
__extends(EventMarkersDirective, _super);
|
|
483
|
-
function EventMarkersDirective() {
|
|
484
|
-
return _super.call(this, 'eventmarkers') || this;
|
|
485
|
-
}
|
|
486
|
-
return EventMarkersDirective;
|
|
487
|
-
}(ArrayBase));
|
|
488
|
-
EventMarkersDirective.decorators = [
|
|
489
|
-
{ type: Directive, args: [{
|
|
490
|
-
selector: 'ejs-gantt>e-event-markers',
|
|
491
|
-
queries: {
|
|
492
|
-
children: new ContentChildren(EventMarkerDirective)
|
|
493
|
-
},
|
|
494
|
-
},] },
|
|
495
|
-
];
|
|
496
|
-
/**
|
|
497
|
-
* @nocollapse
|
|
498
|
-
*/
|
|
499
|
-
EventMarkersDirective.ctorParameters = function () { return []; };
|
|
500
|
-
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
501
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
502
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
503
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
504
|
-
else
|
|
505
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
506
|
-
if (d = decorators[i])
|
|
507
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
508
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
509
|
-
};
|
|
510
|
-
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
511
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
512
|
-
return Reflect.metadata(k, v);
|
|
513
|
-
};
|
|
514
|
-
var inputs = ['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', 'enableAdaptiveUI', '
|
|
515
|
-
var outputs$7 = ['actionBegin', 'actionComplete', 'actionFailure', '
|
|
516
|
-
var twoWays = ['dataSource'];
|
|
517
|
-
/**
|
|
518
|
-
* `ejs-gantt` represents the Angular Gantt Component.
|
|
519
|
-
* ```html
|
|
520
|
-
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'></ejs-gantt>
|
|
521
|
-
* ```
|
|
522
|
-
*/
|
|
523
|
-
var GanttComponent = /** @class */ (function (_super) {
|
|
524
|
-
__extends(GanttComponent, _super);
|
|
525
|
-
/**
|
|
526
|
-
* @param {?} ngEle
|
|
527
|
-
* @param {?} srenderer
|
|
528
|
-
* @param {?} viewContainerRef
|
|
529
|
-
* @param {?} injector
|
|
530
|
-
*/
|
|
531
|
-
function GanttComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
532
|
-
var _this = _super.call(this) || this;
|
|
533
|
-
_this.ngEle = ngEle;
|
|
534
|
-
_this.srenderer = srenderer;
|
|
535
|
-
_this.viewContainerRef = viewContainerRef;
|
|
536
|
-
_this.injector = injector;
|
|
537
|
-
_this.tags = ['columns', 'addDialogFields', 'editDialogFields', 'dayWorkingTime', 'weekWorkingTime', 'holidays', 'eventMarkers'];
|
|
538
|
-
_this.element = _this.ngEle.nativeElement;
|
|
539
|
-
_this.injectedModules = _this.injectedModules || [];
|
|
540
|
-
try {
|
|
541
|
-
var mod = _this.injector.get('GanttFilter');
|
|
542
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
543
|
-
_this.injectedModules.push(mod);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
catch (_a) { }
|
|
547
|
-
try {
|
|
548
|
-
var mod = _this.injector.get('GanttSelection');
|
|
549
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
550
|
-
_this.injectedModules.push(mod);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
catch (_b) { }
|
|
554
|
-
try {
|
|
555
|
-
var mod = _this.injector.get('GanttSort');
|
|
556
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
557
|
-
_this.injectedModules.push(mod);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
catch (_c) { }
|
|
561
|
-
try {
|
|
562
|
-
var mod = _this.injector.get('GanttReorder');
|
|
563
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
564
|
-
_this.injectedModules.push(mod);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
catch (_d) { }
|
|
568
|
-
try {
|
|
569
|
-
var mod = _this.injector.get('GanttResize');
|
|
570
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
571
|
-
_this.injectedModules.push(mod);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
catch (_e) { }
|
|
575
|
-
try {
|
|
576
|
-
var mod = _this.injector.get('GanttEdit');
|
|
577
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
578
|
-
_this.injectedModules.push(mod);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
catch (_f) { }
|
|
582
|
-
try {
|
|
583
|
-
var mod = _this.injector.get('GanttDayMarkers');
|
|
584
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
585
|
-
_this.injectedModules.push(mod);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
catch (_g) { }
|
|
589
|
-
try {
|
|
590
|
-
var mod = _this.injector.get('GanttToolbar');
|
|
591
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
592
|
-
_this.injectedModules.push(mod);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
catch (_h) { }
|
|
596
|
-
try {
|
|
597
|
-
var mod = _this.injector.get('GanttContextMenu');
|
|
598
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
599
|
-
_this.injectedModules.push(mod);
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
catch (_j) { }
|
|
603
|
-
try {
|
|
604
|
-
var mod = _this.injector.get('GanttExcelExport');
|
|
605
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
606
|
-
_this.injectedModules.push(mod);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
catch (_k) { }
|
|
610
|
-
try {
|
|
611
|
-
var mod = _this.injector.get('GanttRowDD');
|
|
612
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
613
|
-
_this.injectedModules.push(mod);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
catch (_l) { }
|
|
617
|
-
try {
|
|
618
|
-
var mod = _this.injector.get('GanttColumnMenu');
|
|
619
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
620
|
-
_this.injectedModules.push(mod);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
catch (_m) { }
|
|
624
|
-
try {
|
|
625
|
-
var mod = _this.injector.get('GanttPdfExport');
|
|
626
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
627
|
-
_this.injectedModules.push(mod);
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
catch (_o) { }
|
|
631
|
-
try {
|
|
632
|
-
var mod = _this.injector.get('GanttVirtualScroll');
|
|
633
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
634
|
-
_this.injectedModules.push(mod);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
catch (_p) { }
|
|
638
|
-
try {
|
|
639
|
-
var mod = _this.injector.get('GanttCriticalPath');
|
|
640
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
641
|
-
_this.injectedModules.push(mod);
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
catch (_q) { }
|
|
645
|
-
try {
|
|
646
|
-
var mod = _this.injector.get('GanttUndoRedo');
|
|
647
|
-
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
648
|
-
_this.injectedModules.push(mod);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
catch (_r) { }
|
|
652
|
-
_this.registerEvents(outputs$7);
|
|
653
|
-
_this.addTwoWay.call(_this, twoWays);
|
|
654
|
-
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
655
|
-
_this.context = new ComponentBase();
|
|
656
|
-
return _this;
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* @return {?}
|
|
660
|
-
*/
|
|
661
|
-
GanttComponent.prototype.ngOnInit = function () {
|
|
662
|
-
this.context.ngOnInit(this);
|
|
663
|
-
};
|
|
664
|
-
/**
|
|
665
|
-
* @return {?}
|
|
666
|
-
*/
|
|
667
|
-
GanttComponent.prototype.ngAfterViewInit = function () {
|
|
668
|
-
this.context.ngAfterViewInit(this);
|
|
669
|
-
};
|
|
670
|
-
/**
|
|
671
|
-
* @return {?}
|
|
672
|
-
*/
|
|
673
|
-
GanttComponent.prototype.ngOnDestroy = function () {
|
|
674
|
-
this.context.ngOnDestroy(this);
|
|
675
|
-
};
|
|
676
|
-
/**
|
|
677
|
-
* @return {?}
|
|
678
|
-
*/
|
|
679
|
-
GanttComponent.prototype.ngAfterContentChecked = function () {
|
|
680
|
-
this.tagObjects[0].instance = this.childColumns;
|
|
681
|
-
if (this.childAddDialogFields) {
|
|
682
|
-
this.tagObjects[1].instance = this.childAddDialogFields;
|
|
683
|
-
}
|
|
684
|
-
if (this.childEditDialogFields) {
|
|
685
|
-
this.tagObjects[2].instance = this.childEditDialogFields;
|
|
686
|
-
}
|
|
687
|
-
if (this.childDayWorkingTime) {
|
|
688
|
-
this.tagObjects[3].instance = this.childDayWorkingTime;
|
|
689
|
-
}
|
|
690
|
-
if (this.childWeekWorkingTime) {
|
|
691
|
-
this.tagObjects[4].instance = this.childWeekWorkingTime;
|
|
692
|
-
}
|
|
693
|
-
if (this.childHolidays) {
|
|
694
|
-
this.tagObjects[5].instance = this.childHolidays;
|
|
695
|
-
}
|
|
696
|
-
if (this.childEventMarkers) {
|
|
697
|
-
this.tagObjects[6].instance = this.childEventMarkers;
|
|
698
|
-
}
|
|
699
|
-
this.context.ngAfterContentChecked(this);
|
|
700
|
-
};
|
|
701
|
-
return GanttComponent;
|
|
702
|
-
}(Gantt));
|
|
703
|
-
GanttComponent.decorators = [
|
|
704
|
-
{ type: Component, args: [{
|
|
705
|
-
selector: 'ejs-gantt',
|
|
706
|
-
inputs: inputs,
|
|
707
|
-
outputs: outputs$7,
|
|
708
|
-
template: '',
|
|
709
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
710
|
-
queries: {
|
|
711
|
-
childColumns: new ContentChild(ColumnsDirective),
|
|
712
|
-
childAddDialogFields: new ContentChild(AddDialogFieldsDirective),
|
|
713
|
-
childEditDialogFields: new ContentChild(EditDialogFieldsDirective),
|
|
714
|
-
childDayWorkingTime: new ContentChild(DayWorkingTimeCollectionDirective),
|
|
715
|
-
childWeekWorkingTime: new ContentChild(WeekWorkingTimesDirective),
|
|
716
|
-
childHolidays: new ContentChild(HolidaysDirective),
|
|
717
|
-
childEventMarkers: new ContentChild(EventMarkersDirective)
|
|
718
|
-
}
|
|
719
|
-
},] },
|
|
720
|
-
];
|
|
721
|
-
/**
|
|
722
|
-
* @nocollapse
|
|
723
|
-
*/
|
|
724
|
-
GanttComponent.ctorParameters = function () { return [
|
|
725
|
-
{ type: ElementRef, },
|
|
726
|
-
{ type: Renderer2, },
|
|
727
|
-
{ type: ViewContainerRef, },
|
|
728
|
-
{ type: Injector, },
|
|
729
|
-
]; };
|
|
730
|
-
GanttComponent.propDecorators = {
|
|
731
|
-
'parentTaskbarTemplate': [{ type: ContentChild, args: ['parentTaskbarTemplate',] },],
|
|
732
|
-
'timelineTemplate': [{ type: ContentChild, args: ['timelineTemplate',] },],
|
|
733
|
-
'milestoneTemplate': [{ type: ContentChild, args: ['milestoneTemplate',] },],
|
|
734
|
-
'taskbarTemplate': [{ type: ContentChild, args: ['taskbarTemplate',] },],
|
|
735
|
-
'editTemplate': [{ type: ContentChild, args: ['editTemplate',] },],
|
|
736
|
-
'labelSettings_rightLabel': [{ type: ContentChild, args: ['labelSettingsRightLabel',] },],
|
|
737
|
-
'labelSettings_leftLabel': [{ type: ContentChild, args: ['labelSettingsLeftLabel',] },],
|
|
738
|
-
'labelSettings_taskLabel': [{ type: ContentChild, args: ['labelSettingsTaskLabel',] },],
|
|
739
|
-
'tooltipSettings_taskbar': [{ type: ContentChild, args: ['tooltipSettingsTaskbar',] },],
|
|
740
|
-
'tooltipSettings_baseline': [{ type: ContentChild, args: ['tooltipSettingsBaseline',] },],
|
|
741
|
-
'tooltipSettings_connectorLine': [{ type: ContentChild, args: ['tooltipSettingsConnectorLine',] },],
|
|
742
|
-
'tooltipSettings_editing': [{ type: ContentChild, args: ['tooltipSettingsEditing',] },],
|
|
743
|
-
'tooltipSettings_timeline': [{ type: ContentChild, args: ['tooltipSettingsTimeline',] },],
|
|
744
|
-
};
|
|
745
|
-
__decorate$1([
|
|
746
|
-
Template(),
|
|
747
|
-
__metadata$1("design:type", Object)
|
|
748
|
-
], GanttComponent.prototype, "parentTaskbarTemplate", void 0);
|
|
749
|
-
__decorate$1([
|
|
750
|
-
Template(),
|
|
751
|
-
__metadata$1("design:type", Object)
|
|
752
|
-
], GanttComponent.prototype, "timelineTemplate", void 0);
|
|
753
|
-
__decorate$1([
|
|
754
|
-
Template(),
|
|
755
|
-
__metadata$1("design:type", Object)
|
|
756
|
-
], GanttComponent.prototype, "milestoneTemplate", void 0);
|
|
757
|
-
__decorate$1([
|
|
758
|
-
Template(),
|
|
759
|
-
__metadata$1("design:type", Object)
|
|
760
|
-
], GanttComponent.prototype, "taskbarTemplate", void 0);
|
|
761
|
-
__decorate$1([
|
|
762
|
-
Template(),
|
|
763
|
-
__metadata$1("design:type", Object)
|
|
764
|
-
], GanttComponent.prototype, "editTemplate", void 0);
|
|
765
|
-
__decorate$1([
|
|
766
|
-
Template(),
|
|
767
|
-
__metadata$1("design:type", Object)
|
|
768
|
-
], GanttComponent.prototype, "labelSettings_rightLabel", void 0);
|
|
769
|
-
__decorate$1([
|
|
770
|
-
Template(),
|
|
771
|
-
__metadata$1("design:type", Object)
|
|
772
|
-
], GanttComponent.prototype, "labelSettings_leftLabel", void 0);
|
|
773
|
-
__decorate$1([
|
|
774
|
-
Template(),
|
|
775
|
-
__metadata$1("design:type", Object)
|
|
776
|
-
], GanttComponent.prototype, "labelSettings_taskLabel", void 0);
|
|
777
|
-
__decorate$1([
|
|
778
|
-
Template(),
|
|
779
|
-
__metadata$1("design:type", Object)
|
|
780
|
-
], GanttComponent.prototype, "tooltipSettings_taskbar", void 0);
|
|
781
|
-
__decorate$1([
|
|
782
|
-
Template(),
|
|
783
|
-
__metadata$1("design:type", Object)
|
|
784
|
-
], GanttComponent.prototype, "tooltipSettings_baseline", void 0);
|
|
785
|
-
__decorate$1([
|
|
786
|
-
Template(),
|
|
787
|
-
__metadata$1("design:type", Object)
|
|
788
|
-
], GanttComponent.prototype, "tooltipSettings_connectorLine", void 0);
|
|
789
|
-
__decorate$1([
|
|
790
|
-
Template(),
|
|
791
|
-
__metadata$1("design:type", Object)
|
|
792
|
-
], GanttComponent.prototype, "tooltipSettings_editing", void 0);
|
|
793
|
-
__decorate$1([
|
|
794
|
-
Template(),
|
|
795
|
-
__metadata$1("design:type", Object)
|
|
796
|
-
], GanttComponent.prototype, "tooltipSettings_timeline", void 0);
|
|
797
|
-
GanttComponent = __decorate$1([
|
|
798
|
-
ComponentMixins([ComponentBase]),
|
|
799
|
-
__metadata$1("design:paramtypes", [ElementRef,
|
|
800
|
-
Renderer2,
|
|
801
|
-
ViewContainerRef,
|
|
802
|
-
Injector])
|
|
803
|
-
], GanttComponent);
|
|
804
|
-
/**
|
|
805
|
-
* NgModule definition for the Gantt component.
|
|
806
|
-
*/
|
|
807
|
-
var GanttModule = /** @class */ (function () {
|
|
808
|
-
function GanttModule() {
|
|
809
|
-
}
|
|
810
|
-
return GanttModule;
|
|
811
|
-
}());
|
|
812
|
-
GanttModule.decorators = [
|
|
813
|
-
{ type: NgModule, args: [{
|
|
814
|
-
imports: [CommonModule],
|
|
815
|
-
declarations: [
|
|
816
|
-
GanttComponent,
|
|
817
|
-
ColumnDirective,
|
|
818
|
-
ColumnsDirective,
|
|
819
|
-
AddDialogFieldDirective,
|
|
820
|
-
AddDialogFieldsDirective,
|
|
821
|
-
EditDialogFieldDirective,
|
|
822
|
-
EditDialogFieldsDirective,
|
|
823
|
-
DayWorkingTimeDirective,
|
|
824
|
-
DayWorkingTimeCollectionDirective,
|
|
825
|
-
WeekWorkingTimeDirective,
|
|
826
|
-
WeekWorkingTimesDirective,
|
|
827
|
-
HolidayDirective,
|
|
828
|
-
HolidaysDirective,
|
|
829
|
-
EventMarkerDirective,
|
|
830
|
-
EventMarkersDirective
|
|
831
|
-
],
|
|
832
|
-
exports: [
|
|
833
|
-
GanttComponent,
|
|
834
|
-
ColumnDirective,
|
|
835
|
-
ColumnsDirective,
|
|
836
|
-
AddDialogFieldDirective,
|
|
837
|
-
AddDialogFieldsDirective,
|
|
838
|
-
EditDialogFieldDirective,
|
|
839
|
-
EditDialogFieldsDirective,
|
|
840
|
-
DayWorkingTimeDirective,
|
|
841
|
-
DayWorkingTimeCollectionDirective,
|
|
842
|
-
WeekWorkingTimeDirective,
|
|
843
|
-
WeekWorkingTimesDirective,
|
|
844
|
-
HolidayDirective,
|
|
845
|
-
HolidaysDirective,
|
|
846
|
-
EventMarkerDirective,
|
|
847
|
-
EventMarkersDirective
|
|
848
|
-
]
|
|
849
|
-
},] },
|
|
850
|
-
];
|
|
851
|
-
/**
|
|
852
|
-
* @nocollapse
|
|
853
|
-
*/
|
|
854
|
-
GanttModule.ctorParameters = function () { return []; };
|
|
855
|
-
var FilterService = { provide: 'GanttFilter', useValue: Filter };
|
|
856
|
-
var SelectionService = { provide: 'GanttSelection', useValue: Selection };
|
|
857
|
-
var SortService = { provide: 'GanttSort', useValue: Sort };
|
|
858
|
-
var ReorderService = { provide: 'GanttReorder', useValue: Reorder };
|
|
859
|
-
var ResizeService = { provide: 'GanttResize', useValue: Resize };
|
|
860
|
-
var EditService = { provide: 'GanttEdit', useValue: Edit };
|
|
861
|
-
var DayMarkersService = { provide: 'GanttDayMarkers', useValue: DayMarkers };
|
|
862
|
-
var ToolbarService = { provide: 'GanttToolbar', useValue: Toolbar };
|
|
863
|
-
var ContextMenuService = { provide: 'GanttContextMenu', useValue: ContextMenu };
|
|
864
|
-
var ExcelExportService = { provide: 'GanttExcelExport', useValue: ExcelExport };
|
|
865
|
-
var RowDDService = { provide: 'GanttRowDD', useValue: RowDD };
|
|
866
|
-
var ColumnMenuService = { provide: 'GanttColumnMenu', useValue: ColumnMenu };
|
|
867
|
-
var PdfExportService = { provide: 'GanttPdfExport', useValue: PdfExport };
|
|
868
|
-
var VirtualScrollService = { provide: 'GanttVirtualScroll', useValue: VirtualScroll };
|
|
869
|
-
var CriticalPathService = { provide: 'GanttCriticalPath', useValue: CriticalPath };
|
|
870
|
-
var UndoRedoService = { provide: 'GanttUndoRedo', useValue: UndoRedo };
|
|
871
|
-
/**
|
|
872
|
-
* NgModule definition for the Gantt component with providers.
|
|
873
|
-
*/
|
|
874
|
-
var GanttAllModule = /** @class */ (function () {
|
|
875
|
-
function GanttAllModule() {
|
|
876
|
-
}
|
|
877
|
-
return GanttAllModule;
|
|
878
|
-
}());
|
|
879
|
-
GanttAllModule.decorators = [
|
|
880
|
-
{ type: NgModule, args: [{
|
|
881
|
-
imports: [CommonModule, GanttModule],
|
|
882
|
-
exports: [
|
|
883
|
-
GanttModule
|
|
884
|
-
],
|
|
885
|
-
providers: [
|
|
886
|
-
FilterService,
|
|
887
|
-
SelectionService,
|
|
888
|
-
SortService,
|
|
889
|
-
ReorderService,
|
|
890
|
-
ResizeService,
|
|
891
|
-
EditService,
|
|
892
|
-
DayMarkersService,
|
|
893
|
-
ToolbarService,
|
|
894
|
-
ContextMenuService,
|
|
895
|
-
ExcelExportService,
|
|
896
|
-
RowDDService,
|
|
897
|
-
ColumnMenuService,
|
|
898
|
-
PdfExportService,
|
|
899
|
-
VirtualScrollService,
|
|
900
|
-
CriticalPathService,
|
|
901
|
-
UndoRedoService
|
|
902
|
-
]
|
|
903
|
-
},] },
|
|
904
|
-
];
|
|
905
|
-
/**
|
|
906
|
-
* @nocollapse
|
|
907
|
-
*/
|
|
908
|
-
GanttAllModule.ctorParameters = function () { return []; };
|
|
909
|
-
/**
|
|
910
|
-
* Generated bundle index. Do not edit.
|
|
911
|
-
*/
|
|
912
|
-
export { ColumnDirective, ColumnsDirective, AddDialogFieldDirective, AddDialogFieldsDirective, EditDialogFieldDirective, EditDialogFieldsDirective, DayWorkingTimeDirective, DayWorkingTimeCollectionDirective, WeekWorkingTimeDirective, WeekWorkingTimesDirective, HolidayDirective, HolidaysDirective, EventMarkerDirective, EventMarkersDirective, GanttComponent, GanttModule, GanttAllModule, FilterService, SelectionService, SortService, ReorderService, ResizeService, EditService, DayMarkersService, ToolbarService, ContextMenuService, ExcelExportService, RowDDService, ColumnMenuService, PdfExportService, VirtualScrollService, CriticalPathService, UndoRedoService, inputs as ɵa, outputs$7 as ɵb };
|
|
913
|
-
export { Gantt, PdfHorizontalOverflowType, parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isEmptyObject, getUniversalTime, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid,
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
3
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5
|
+
return function (d, b) {
|
|
6
|
+
extendStatics(d, b);
|
|
7
|
+
function __() { this.constructor = d; }
|
|
8
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef } from '@angular/core';
|
|
12
|
+
import { ArrayBase, ComplexBase, ComponentBase, ComponentMixins, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
13
|
+
import { ColumnMenu, ContextMenu, CriticalPath, DayMarkers, Edit, ExcelExport, Filter, Gantt, PdfExport, Reorder, Resize, RowDD, Selection, Sort, Toolbar, UndoRedo, VirtualScroll } from '@syncfusion/ej2-gantt';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
16
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
17
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
18
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else
|
|
20
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
21
|
+
if (d = decorators[i])
|
|
22
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
23
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24
|
+
};
|
|
25
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
26
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
27
|
+
return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
var input = ['allowEditing', 'allowFiltering', 'allowReordering', 'allowResizing', 'allowSorting', 'clipMode', 'customAttributes', 'disableHtmlEncode', 'displayAsCheckBox', 'edit', 'editType', 'field', 'filter', 'format', 'formatter', 'headerTemplate', 'headerText', 'headerTextAlign', 'hideAtMedia', 'isPrimaryKey', 'maxWidth', 'minWidth', 'sortComparer', 'template', 'textAlign', 'type', 'validationRules', 'valueAccessor', 'visible', 'width'];
|
|
30
|
+
var outputs = [];
|
|
31
|
+
/**
|
|
32
|
+
* `e-column` directive represent a column of the Angular Gantt.
|
|
33
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
34
|
+
* ```html
|
|
35
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
36
|
+
* <e-columns>
|
|
37
|
+
* <e-column field='ID' width='150'></e-column>
|
|
38
|
+
* <e-column field='taskName' headerText='Task Name' width='200'></e-column>
|
|
39
|
+
* </e-columns>
|
|
40
|
+
* </ejs-gantt>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
var ColumnDirective = /** @class */ (function (_super) {
|
|
44
|
+
__extends(ColumnDirective, _super);
|
|
45
|
+
/**
|
|
46
|
+
* @param {?} viewContainerRef
|
|
47
|
+
*/
|
|
48
|
+
function ColumnDirective(viewContainerRef) {
|
|
49
|
+
var _this = _super.call(this) || this;
|
|
50
|
+
_this.viewContainerRef = viewContainerRef;
|
|
51
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
52
|
+
_this.registerEvents(outputs);
|
|
53
|
+
_this.directivePropList = input;
|
|
54
|
+
return _this;
|
|
55
|
+
}
|
|
56
|
+
return ColumnDirective;
|
|
57
|
+
}(ComplexBase));
|
|
58
|
+
ColumnDirective.decorators = [
|
|
59
|
+
{ type: Directive, args: [{
|
|
60
|
+
selector: 'ejs-gantt>e-columns>e-column',
|
|
61
|
+
inputs: input,
|
|
62
|
+
outputs: outputs,
|
|
63
|
+
queries: {}
|
|
64
|
+
},] },
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* @nocollapse
|
|
68
|
+
*/
|
|
69
|
+
ColumnDirective.ctorParameters = function () { return [
|
|
70
|
+
{ type: ViewContainerRef, },
|
|
71
|
+
]; };
|
|
72
|
+
ColumnDirective.propDecorators = {
|
|
73
|
+
'template': [{ type: ContentChild, args: ['template',] },],
|
|
74
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
75
|
+
'editTemplate': [{ type: ContentChild, args: ['editTemplate',] },],
|
|
76
|
+
};
|
|
77
|
+
__decorate([
|
|
78
|
+
Template(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], ColumnDirective.prototype, "template", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
Template(),
|
|
83
|
+
__metadata("design:type", Object)
|
|
84
|
+
], ColumnDirective.prototype, "headerTemplate", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
Template(),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], ColumnDirective.prototype, "editTemplate", void 0);
|
|
89
|
+
/**
|
|
90
|
+
* Column Array Directive
|
|
91
|
+
*/
|
|
92
|
+
var ColumnsDirective = /** @class */ (function (_super) {
|
|
93
|
+
__extends(ColumnsDirective, _super);
|
|
94
|
+
function ColumnsDirective() {
|
|
95
|
+
return _super.call(this, 'columns') || this;
|
|
96
|
+
}
|
|
97
|
+
return ColumnsDirective;
|
|
98
|
+
}(ArrayBase));
|
|
99
|
+
ColumnsDirective.decorators = [
|
|
100
|
+
{ type: Directive, args: [{
|
|
101
|
+
selector: 'ejs-gantt>e-columns',
|
|
102
|
+
queries: {
|
|
103
|
+
children: new ContentChildren(ColumnDirective)
|
|
104
|
+
},
|
|
105
|
+
},] },
|
|
106
|
+
];
|
|
107
|
+
/**
|
|
108
|
+
* @nocollapse
|
|
109
|
+
*/
|
|
110
|
+
ColumnsDirective.ctorParameters = function () { return []; };
|
|
111
|
+
var input$1 = ['additionalParams', 'fields', 'headerText', 'type'];
|
|
112
|
+
var outputs$1 = [];
|
|
113
|
+
/**
|
|
114
|
+
* `e-add-dialog-field` directive represent a add dialog fields collection in Gantt task add dialog.
|
|
115
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
116
|
+
* ```html
|
|
117
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
118
|
+
* <e-add-dialog-fields>
|
|
119
|
+
* <e-add-dialog-field type='General' headerText='General'></e-add-dialog-field>
|
|
120
|
+
* <e-add-dialog-field type='Dependency' headerText='Dependency'></e-add-dialog-field>
|
|
121
|
+
* </e-add-dialog-fields>
|
|
122
|
+
* </ejs-gantt>
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
var AddDialogFieldDirective = /** @class */ (function (_super) {
|
|
126
|
+
__extends(AddDialogFieldDirective, _super);
|
|
127
|
+
/**
|
|
128
|
+
* @param {?} viewContainerRef
|
|
129
|
+
*/
|
|
130
|
+
function AddDialogFieldDirective(viewContainerRef) {
|
|
131
|
+
var _this = _super.call(this) || this;
|
|
132
|
+
_this.viewContainerRef = viewContainerRef;
|
|
133
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
134
|
+
_this.registerEvents(outputs$1);
|
|
135
|
+
_this.directivePropList = input$1;
|
|
136
|
+
return _this;
|
|
137
|
+
}
|
|
138
|
+
return AddDialogFieldDirective;
|
|
139
|
+
}(ComplexBase));
|
|
140
|
+
AddDialogFieldDirective.decorators = [
|
|
141
|
+
{ type: Directive, args: [{
|
|
142
|
+
selector: 'ejs-gantt>e-add-dialog-fields>e-add-dialog-field',
|
|
143
|
+
inputs: input$1,
|
|
144
|
+
outputs: outputs$1,
|
|
145
|
+
queries: {}
|
|
146
|
+
},] },
|
|
147
|
+
];
|
|
148
|
+
/**
|
|
149
|
+
* @nocollapse
|
|
150
|
+
*/
|
|
151
|
+
AddDialogFieldDirective.ctorParameters = function () { return [
|
|
152
|
+
{ type: ViewContainerRef, },
|
|
153
|
+
]; };
|
|
154
|
+
/**
|
|
155
|
+
* AddDialogField Array Directive
|
|
156
|
+
*/
|
|
157
|
+
var AddDialogFieldsDirective = /** @class */ (function (_super) {
|
|
158
|
+
__extends(AddDialogFieldsDirective, _super);
|
|
159
|
+
function AddDialogFieldsDirective() {
|
|
160
|
+
return _super.call(this, 'adddialogfields') || this;
|
|
161
|
+
}
|
|
162
|
+
return AddDialogFieldsDirective;
|
|
163
|
+
}(ArrayBase));
|
|
164
|
+
AddDialogFieldsDirective.decorators = [
|
|
165
|
+
{ type: Directive, args: [{
|
|
166
|
+
selector: 'ejs-gantt>e-add-dialog-fields',
|
|
167
|
+
queries: {
|
|
168
|
+
children: new ContentChildren(AddDialogFieldDirective)
|
|
169
|
+
},
|
|
170
|
+
},] },
|
|
171
|
+
];
|
|
172
|
+
/**
|
|
173
|
+
* @nocollapse
|
|
174
|
+
*/
|
|
175
|
+
AddDialogFieldsDirective.ctorParameters = function () { return []; };
|
|
176
|
+
var input$2 = ['additionalParams', 'fields', 'headerText', 'type'];
|
|
177
|
+
var outputs$2 = [];
|
|
178
|
+
/**
|
|
179
|
+
* `e-edit-dialog-field` directive represent a edit dialog fields collection in Gantt task add dialog.
|
|
180
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
181
|
+
* ```html
|
|
182
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
183
|
+
* <e-edit-dialog-fields>
|
|
184
|
+
* <e-edit-dialog-field type='General' headerText='General'></e-edit-dialog-field>
|
|
185
|
+
* <e-edit-dialog-field type='Dependency' headerText='Dependency'></e-edit-dialog-field>
|
|
186
|
+
* </e-edit-dialog-fields>
|
|
187
|
+
* </ejs-gantt>
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
var EditDialogFieldDirective = /** @class */ (function (_super) {
|
|
191
|
+
__extends(EditDialogFieldDirective, _super);
|
|
192
|
+
/**
|
|
193
|
+
* @param {?} viewContainerRef
|
|
194
|
+
*/
|
|
195
|
+
function EditDialogFieldDirective(viewContainerRef) {
|
|
196
|
+
var _this = _super.call(this) || this;
|
|
197
|
+
_this.viewContainerRef = viewContainerRef;
|
|
198
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
199
|
+
_this.registerEvents(outputs$2);
|
|
200
|
+
_this.directivePropList = input$2;
|
|
201
|
+
return _this;
|
|
202
|
+
}
|
|
203
|
+
return EditDialogFieldDirective;
|
|
204
|
+
}(ComplexBase));
|
|
205
|
+
EditDialogFieldDirective.decorators = [
|
|
206
|
+
{ type: Directive, args: [{
|
|
207
|
+
selector: 'ejs-gantt>e-edit-dialog-fields>e-edit-dialog-field',
|
|
208
|
+
inputs: input$2,
|
|
209
|
+
outputs: outputs$2,
|
|
210
|
+
queries: {}
|
|
211
|
+
},] },
|
|
212
|
+
];
|
|
213
|
+
/**
|
|
214
|
+
* @nocollapse
|
|
215
|
+
*/
|
|
216
|
+
EditDialogFieldDirective.ctorParameters = function () { return [
|
|
217
|
+
{ type: ViewContainerRef, },
|
|
218
|
+
]; };
|
|
219
|
+
/**
|
|
220
|
+
* EditDialogField Array Directive
|
|
221
|
+
*/
|
|
222
|
+
var EditDialogFieldsDirective = /** @class */ (function (_super) {
|
|
223
|
+
__extends(EditDialogFieldsDirective, _super);
|
|
224
|
+
function EditDialogFieldsDirective() {
|
|
225
|
+
return _super.call(this, 'editdialogfields') || this;
|
|
226
|
+
}
|
|
227
|
+
return EditDialogFieldsDirective;
|
|
228
|
+
}(ArrayBase));
|
|
229
|
+
EditDialogFieldsDirective.decorators = [
|
|
230
|
+
{ type: Directive, args: [{
|
|
231
|
+
selector: 'ejs-gantt>e-edit-dialog-fields',
|
|
232
|
+
queries: {
|
|
233
|
+
children: new ContentChildren(EditDialogFieldDirective)
|
|
234
|
+
},
|
|
235
|
+
},] },
|
|
236
|
+
];
|
|
237
|
+
/**
|
|
238
|
+
* @nocollapse
|
|
239
|
+
*/
|
|
240
|
+
EditDialogFieldsDirective.ctorParameters = function () { return []; };
|
|
241
|
+
var input$3 = ['from', 'to'];
|
|
242
|
+
var outputs$3 = [];
|
|
243
|
+
/**
|
|
244
|
+
* `e-day-working-time-collection` directive represent a working time ranges in a day.
|
|
245
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
246
|
+
* ```html
|
|
247
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
248
|
+
* <e-day-working-time-collection>
|
|
249
|
+
* <e-day-working-time from='8' to='12'></e-day-working-time>
|
|
250
|
+
* <e-day-working-time from='13' to='17'></e-day-working-time>
|
|
251
|
+
* </e-day-working-time-collection>
|
|
252
|
+
* </ejs-gantt>
|
|
253
|
+
* ```
|
|
254
|
+
*/
|
|
255
|
+
var DayWorkingTimeDirective = /** @class */ (function (_super) {
|
|
256
|
+
__extends(DayWorkingTimeDirective, _super);
|
|
257
|
+
/**
|
|
258
|
+
* @param {?} viewContainerRef
|
|
259
|
+
*/
|
|
260
|
+
function DayWorkingTimeDirective(viewContainerRef) {
|
|
261
|
+
var _this = _super.call(this) || this;
|
|
262
|
+
_this.viewContainerRef = viewContainerRef;
|
|
263
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
264
|
+
_this.registerEvents(outputs$3);
|
|
265
|
+
_this.directivePropList = input$3;
|
|
266
|
+
return _this;
|
|
267
|
+
}
|
|
268
|
+
return DayWorkingTimeDirective;
|
|
269
|
+
}(ComplexBase));
|
|
270
|
+
DayWorkingTimeDirective.decorators = [
|
|
271
|
+
{ type: Directive, args: [{
|
|
272
|
+
selector: 'ejs-gantt>e-day-working-time-collection>e-day-working-time',
|
|
273
|
+
inputs: input$3,
|
|
274
|
+
outputs: outputs$3,
|
|
275
|
+
queries: {}
|
|
276
|
+
},] },
|
|
277
|
+
];
|
|
278
|
+
/**
|
|
279
|
+
* @nocollapse
|
|
280
|
+
*/
|
|
281
|
+
DayWorkingTimeDirective.ctorParameters = function () { return [
|
|
282
|
+
{ type: ViewContainerRef, },
|
|
283
|
+
]; };
|
|
284
|
+
/**
|
|
285
|
+
* DayWorkingTime Array Directive
|
|
286
|
+
*/
|
|
287
|
+
var DayWorkingTimeCollectionDirective = /** @class */ (function (_super) {
|
|
288
|
+
__extends(DayWorkingTimeCollectionDirective, _super);
|
|
289
|
+
function DayWorkingTimeCollectionDirective() {
|
|
290
|
+
return _super.call(this, 'dayworkingtime') || this;
|
|
291
|
+
}
|
|
292
|
+
return DayWorkingTimeCollectionDirective;
|
|
293
|
+
}(ArrayBase));
|
|
294
|
+
DayWorkingTimeCollectionDirective.decorators = [
|
|
295
|
+
{ type: Directive, args: [{
|
|
296
|
+
selector: 'ejs-gantt>e-day-working-time-collection',
|
|
297
|
+
queries: {
|
|
298
|
+
children: new ContentChildren(DayWorkingTimeDirective)
|
|
299
|
+
},
|
|
300
|
+
},] },
|
|
301
|
+
];
|
|
302
|
+
/**
|
|
303
|
+
* @nocollapse
|
|
304
|
+
*/
|
|
305
|
+
DayWorkingTimeCollectionDirective.ctorParameters = function () { return []; };
|
|
306
|
+
var input$4 = ['dayOfWeek', 'timeRange'];
|
|
307
|
+
var outputs$4 = [];
|
|
308
|
+
/**
|
|
309
|
+
* `e-week-working-times` directive represent a working time ranges in a day.
|
|
310
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
311
|
+
* ```html
|
|
312
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
313
|
+
* <e-week-working-times>
|
|
314
|
+
* <e-week-working-time dayOfWeek='Monday'></e-week-working-time>
|
|
315
|
+
* <e-week-working-time dayOfWeek='Monday'></e-week-working-time>
|
|
316
|
+
* </e-week-working-times>
|
|
317
|
+
* </ejs-gantt>
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
var WeekWorkingTimeDirective = /** @class */ (function (_super) {
|
|
321
|
+
__extends(WeekWorkingTimeDirective, _super);
|
|
322
|
+
/**
|
|
323
|
+
* @param {?} viewContainerRef
|
|
324
|
+
*/
|
|
325
|
+
function WeekWorkingTimeDirective(viewContainerRef) {
|
|
326
|
+
var _this = _super.call(this) || this;
|
|
327
|
+
_this.viewContainerRef = viewContainerRef;
|
|
328
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
329
|
+
_this.registerEvents(outputs$4);
|
|
330
|
+
_this.directivePropList = input$4;
|
|
331
|
+
return _this;
|
|
332
|
+
}
|
|
333
|
+
return WeekWorkingTimeDirective;
|
|
334
|
+
}(ComplexBase));
|
|
335
|
+
WeekWorkingTimeDirective.decorators = [
|
|
336
|
+
{ type: Directive, args: [{
|
|
337
|
+
selector: 'ejs-gantt>e-week-working-times>e-week-working-time',
|
|
338
|
+
inputs: input$4,
|
|
339
|
+
outputs: outputs$4,
|
|
340
|
+
queries: {}
|
|
341
|
+
},] },
|
|
342
|
+
];
|
|
343
|
+
/**
|
|
344
|
+
* @nocollapse
|
|
345
|
+
*/
|
|
346
|
+
WeekWorkingTimeDirective.ctorParameters = function () { return [
|
|
347
|
+
{ type: ViewContainerRef, },
|
|
348
|
+
]; };
|
|
349
|
+
/**
|
|
350
|
+
* WeekWorkingTime Array Directive
|
|
351
|
+
*/
|
|
352
|
+
var WeekWorkingTimesDirective = /** @class */ (function (_super) {
|
|
353
|
+
__extends(WeekWorkingTimesDirective, _super);
|
|
354
|
+
function WeekWorkingTimesDirective() {
|
|
355
|
+
return _super.call(this, 'weekworkingtime') || this;
|
|
356
|
+
}
|
|
357
|
+
return WeekWorkingTimesDirective;
|
|
358
|
+
}(ArrayBase));
|
|
359
|
+
WeekWorkingTimesDirective.decorators = [
|
|
360
|
+
{ type: Directive, args: [{
|
|
361
|
+
selector: 'ejs-gantt>e-week-working-times',
|
|
362
|
+
queries: {
|
|
363
|
+
children: new ContentChildren(WeekWorkingTimeDirective)
|
|
364
|
+
},
|
|
365
|
+
},] },
|
|
366
|
+
];
|
|
367
|
+
/**
|
|
368
|
+
* @nocollapse
|
|
369
|
+
*/
|
|
370
|
+
WeekWorkingTimesDirective.ctorParameters = function () { return []; };
|
|
371
|
+
var input$5 = ['cssClass', 'from', 'label', 'to'];
|
|
372
|
+
var outputs$5 = [];
|
|
373
|
+
/**
|
|
374
|
+
* `e-holidays` directive represent a holidays collection in Gantt.
|
|
375
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
376
|
+
* ```html
|
|
377
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
378
|
+
* <e-holidays>
|
|
379
|
+
* <e-holiday from='02/20/2018' label='Holiday 1'></e-holiday>
|
|
380
|
+
* <e-holiday from='05/15/2018' label='Holiday 2'></e-holiday>
|
|
381
|
+
* </e-holidays>
|
|
382
|
+
* </ejs-gantt>
|
|
383
|
+
* ```
|
|
384
|
+
*/
|
|
385
|
+
var HolidayDirective = /** @class */ (function (_super) {
|
|
386
|
+
__extends(HolidayDirective, _super);
|
|
387
|
+
/**
|
|
388
|
+
* @param {?} viewContainerRef
|
|
389
|
+
*/
|
|
390
|
+
function HolidayDirective(viewContainerRef) {
|
|
391
|
+
var _this = _super.call(this) || this;
|
|
392
|
+
_this.viewContainerRef = viewContainerRef;
|
|
393
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
394
|
+
_this.registerEvents(outputs$5);
|
|
395
|
+
_this.directivePropList = input$5;
|
|
396
|
+
return _this;
|
|
397
|
+
}
|
|
398
|
+
return HolidayDirective;
|
|
399
|
+
}(ComplexBase));
|
|
400
|
+
HolidayDirective.decorators = [
|
|
401
|
+
{ type: Directive, args: [{
|
|
402
|
+
selector: 'ejs-gantt>e-holidays>e-holidays',
|
|
403
|
+
inputs: input$5,
|
|
404
|
+
outputs: outputs$5,
|
|
405
|
+
queries: {}
|
|
406
|
+
},] },
|
|
407
|
+
];
|
|
408
|
+
/**
|
|
409
|
+
* @nocollapse
|
|
410
|
+
*/
|
|
411
|
+
HolidayDirective.ctorParameters = function () { return [
|
|
412
|
+
{ type: ViewContainerRef, },
|
|
413
|
+
]; };
|
|
414
|
+
/**
|
|
415
|
+
* Holiday Array Directive
|
|
416
|
+
*/
|
|
417
|
+
var HolidaysDirective = /** @class */ (function (_super) {
|
|
418
|
+
__extends(HolidaysDirective, _super);
|
|
419
|
+
function HolidaysDirective() {
|
|
420
|
+
return _super.call(this, 'holidays') || this;
|
|
421
|
+
}
|
|
422
|
+
return HolidaysDirective;
|
|
423
|
+
}(ArrayBase));
|
|
424
|
+
HolidaysDirective.decorators = [
|
|
425
|
+
{ type: Directive, args: [{
|
|
426
|
+
selector: 'ejs-gantt>e-holidays',
|
|
427
|
+
queries: {
|
|
428
|
+
children: new ContentChildren(HolidayDirective)
|
|
429
|
+
},
|
|
430
|
+
},] },
|
|
431
|
+
];
|
|
432
|
+
/**
|
|
433
|
+
* @nocollapse
|
|
434
|
+
*/
|
|
435
|
+
HolidaysDirective.ctorParameters = function () { return []; };
|
|
436
|
+
var input$6 = ['cssClass', 'day', 'label'];
|
|
437
|
+
var outputs$6 = [];
|
|
438
|
+
/**
|
|
439
|
+
* `e-event-markers` directive represent a event marker collection in Gantt.
|
|
440
|
+
* It must be contained in a Gantt component(`ejs-gantt`).
|
|
441
|
+
* ```html
|
|
442
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'>
|
|
443
|
+
* <e-event-markers>
|
|
444
|
+
* <e-event-marker day='02/10/2018' label='Project Starts'></e-event-marker>
|
|
445
|
+
* </e-event-markers>
|
|
446
|
+
* </ejs-gantt>
|
|
447
|
+
* ```
|
|
448
|
+
*/
|
|
449
|
+
var EventMarkerDirective = /** @class */ (function (_super) {
|
|
450
|
+
__extends(EventMarkerDirective, _super);
|
|
451
|
+
/**
|
|
452
|
+
* @param {?} viewContainerRef
|
|
453
|
+
*/
|
|
454
|
+
function EventMarkerDirective(viewContainerRef) {
|
|
455
|
+
var _this = _super.call(this) || this;
|
|
456
|
+
_this.viewContainerRef = viewContainerRef;
|
|
457
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
458
|
+
_this.registerEvents(outputs$6);
|
|
459
|
+
_this.directivePropList = input$6;
|
|
460
|
+
return _this;
|
|
461
|
+
}
|
|
462
|
+
return EventMarkerDirective;
|
|
463
|
+
}(ComplexBase));
|
|
464
|
+
EventMarkerDirective.decorators = [
|
|
465
|
+
{ type: Directive, args: [{
|
|
466
|
+
selector: 'ejs-gantt>e-event-markers>e-event-marker',
|
|
467
|
+
inputs: input$6,
|
|
468
|
+
outputs: outputs$6,
|
|
469
|
+
queries: {}
|
|
470
|
+
},] },
|
|
471
|
+
];
|
|
472
|
+
/**
|
|
473
|
+
* @nocollapse
|
|
474
|
+
*/
|
|
475
|
+
EventMarkerDirective.ctorParameters = function () { return [
|
|
476
|
+
{ type: ViewContainerRef, },
|
|
477
|
+
]; };
|
|
478
|
+
/**
|
|
479
|
+
* EventMarker Array Directive
|
|
480
|
+
*/
|
|
481
|
+
var EventMarkersDirective = /** @class */ (function (_super) {
|
|
482
|
+
__extends(EventMarkersDirective, _super);
|
|
483
|
+
function EventMarkersDirective() {
|
|
484
|
+
return _super.call(this, 'eventmarkers') || this;
|
|
485
|
+
}
|
|
486
|
+
return EventMarkersDirective;
|
|
487
|
+
}(ArrayBase));
|
|
488
|
+
EventMarkersDirective.decorators = [
|
|
489
|
+
{ type: Directive, args: [{
|
|
490
|
+
selector: 'ejs-gantt>e-event-markers',
|
|
491
|
+
queries: {
|
|
492
|
+
children: new ContentChildren(EventMarkerDirective)
|
|
493
|
+
},
|
|
494
|
+
},] },
|
|
495
|
+
];
|
|
496
|
+
/**
|
|
497
|
+
* @nocollapse
|
|
498
|
+
*/
|
|
499
|
+
EventMarkersDirective.ctorParameters = function () { return []; };
|
|
500
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
501
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
502
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
503
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
504
|
+
else
|
|
505
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
506
|
+
if (d = decorators[i])
|
|
507
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
508
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
509
|
+
};
|
|
510
|
+
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
511
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
512
|
+
return Reflect.metadata(k, v);
|
|
513
|
+
};
|
|
514
|
+
var inputs = ['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', 'enableAdaptiveUI', 'enableContextMenu', 'enableCriticalPath', 'enableHtmlSanitizer', 'enableImmutableMode', 'enableMultiTaskbar', 'enablePersistence', 'enablePredecessorValidation', 'enableRtl', 'enableTimelineVirtualization', 'enableUndoRedo', 'enableVirtualMaskRow', 'enableVirtualization', 'eventMarkers', 'filterSettings', 'gridLines', 'height', 'highlightWeekends', 'holidays', 'includeWeekend', 'labelSettings', 'loadChildOnDemand', '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', 'timelineTemplate', 'timezone', 'toolbar', 'tooltipSettings', 'treeColumnIndex', 'undoRedoActions', 'undoRedoStepsCount', 'updateOffsetOnTaskbarEdit', 'validateManualTasksOnLinking', 'viewType', 'weekWorkingTime', 'width', 'workUnit', 'workWeek', 'zoomingLevels'];
|
|
515
|
+
var outputs$7 = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeExcelExport', 'beforePdfExport', 'beforeTooltipRender', 'cellDeselected', 'cellDeselecting', 'cellEdit', 'cellSave', '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', 'dataSourceChange'];
|
|
516
|
+
var twoWays = ['dataSource'];
|
|
517
|
+
/**
|
|
518
|
+
* `ejs-gantt` represents the Angular Gantt Component.
|
|
519
|
+
* ```html
|
|
520
|
+
* <ejs-gantt [dataSource]='data' allowSelection='true' allowSorting='true'></ejs-gantt>
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
var GanttComponent = /** @class */ (function (_super) {
|
|
524
|
+
__extends(GanttComponent, _super);
|
|
525
|
+
/**
|
|
526
|
+
* @param {?} ngEle
|
|
527
|
+
* @param {?} srenderer
|
|
528
|
+
* @param {?} viewContainerRef
|
|
529
|
+
* @param {?} injector
|
|
530
|
+
*/
|
|
531
|
+
function GanttComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
532
|
+
var _this = _super.call(this) || this;
|
|
533
|
+
_this.ngEle = ngEle;
|
|
534
|
+
_this.srenderer = srenderer;
|
|
535
|
+
_this.viewContainerRef = viewContainerRef;
|
|
536
|
+
_this.injector = injector;
|
|
537
|
+
_this.tags = ['columns', 'addDialogFields', 'editDialogFields', 'dayWorkingTime', 'weekWorkingTime', 'holidays', 'eventMarkers'];
|
|
538
|
+
_this.element = _this.ngEle.nativeElement;
|
|
539
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
540
|
+
try {
|
|
541
|
+
var mod = _this.injector.get('GanttFilter');
|
|
542
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
543
|
+
_this.injectedModules.push(mod);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
catch (_a) { }
|
|
547
|
+
try {
|
|
548
|
+
var mod = _this.injector.get('GanttSelection');
|
|
549
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
550
|
+
_this.injectedModules.push(mod);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
catch (_b) { }
|
|
554
|
+
try {
|
|
555
|
+
var mod = _this.injector.get('GanttSort');
|
|
556
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
557
|
+
_this.injectedModules.push(mod);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
catch (_c) { }
|
|
561
|
+
try {
|
|
562
|
+
var mod = _this.injector.get('GanttReorder');
|
|
563
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
564
|
+
_this.injectedModules.push(mod);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
catch (_d) { }
|
|
568
|
+
try {
|
|
569
|
+
var mod = _this.injector.get('GanttResize');
|
|
570
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
571
|
+
_this.injectedModules.push(mod);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
catch (_e) { }
|
|
575
|
+
try {
|
|
576
|
+
var mod = _this.injector.get('GanttEdit');
|
|
577
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
578
|
+
_this.injectedModules.push(mod);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
catch (_f) { }
|
|
582
|
+
try {
|
|
583
|
+
var mod = _this.injector.get('GanttDayMarkers');
|
|
584
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
585
|
+
_this.injectedModules.push(mod);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
catch (_g) { }
|
|
589
|
+
try {
|
|
590
|
+
var mod = _this.injector.get('GanttToolbar');
|
|
591
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
592
|
+
_this.injectedModules.push(mod);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
catch (_h) { }
|
|
596
|
+
try {
|
|
597
|
+
var mod = _this.injector.get('GanttContextMenu');
|
|
598
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
599
|
+
_this.injectedModules.push(mod);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
catch (_j) { }
|
|
603
|
+
try {
|
|
604
|
+
var mod = _this.injector.get('GanttExcelExport');
|
|
605
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
606
|
+
_this.injectedModules.push(mod);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
catch (_k) { }
|
|
610
|
+
try {
|
|
611
|
+
var mod = _this.injector.get('GanttRowDD');
|
|
612
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
613
|
+
_this.injectedModules.push(mod);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
catch (_l) { }
|
|
617
|
+
try {
|
|
618
|
+
var mod = _this.injector.get('GanttColumnMenu');
|
|
619
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
620
|
+
_this.injectedModules.push(mod);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
catch (_m) { }
|
|
624
|
+
try {
|
|
625
|
+
var mod = _this.injector.get('GanttPdfExport');
|
|
626
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
627
|
+
_this.injectedModules.push(mod);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
catch (_o) { }
|
|
631
|
+
try {
|
|
632
|
+
var mod = _this.injector.get('GanttVirtualScroll');
|
|
633
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
634
|
+
_this.injectedModules.push(mod);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
catch (_p) { }
|
|
638
|
+
try {
|
|
639
|
+
var mod = _this.injector.get('GanttCriticalPath');
|
|
640
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
641
|
+
_this.injectedModules.push(mod);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
catch (_q) { }
|
|
645
|
+
try {
|
|
646
|
+
var mod = _this.injector.get('GanttUndoRedo');
|
|
647
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
648
|
+
_this.injectedModules.push(mod);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
catch (_r) { }
|
|
652
|
+
_this.registerEvents(outputs$7);
|
|
653
|
+
_this.addTwoWay.call(_this, twoWays);
|
|
654
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
655
|
+
_this.context = new ComponentBase();
|
|
656
|
+
return _this;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* @return {?}
|
|
660
|
+
*/
|
|
661
|
+
GanttComponent.prototype.ngOnInit = function () {
|
|
662
|
+
this.context.ngOnInit(this);
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* @return {?}
|
|
666
|
+
*/
|
|
667
|
+
GanttComponent.prototype.ngAfterViewInit = function () {
|
|
668
|
+
this.context.ngAfterViewInit(this);
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* @return {?}
|
|
672
|
+
*/
|
|
673
|
+
GanttComponent.prototype.ngOnDestroy = function () {
|
|
674
|
+
this.context.ngOnDestroy(this);
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* @return {?}
|
|
678
|
+
*/
|
|
679
|
+
GanttComponent.prototype.ngAfterContentChecked = function () {
|
|
680
|
+
this.tagObjects[0].instance = this.childColumns;
|
|
681
|
+
if (this.childAddDialogFields) {
|
|
682
|
+
this.tagObjects[1].instance = this.childAddDialogFields;
|
|
683
|
+
}
|
|
684
|
+
if (this.childEditDialogFields) {
|
|
685
|
+
this.tagObjects[2].instance = this.childEditDialogFields;
|
|
686
|
+
}
|
|
687
|
+
if (this.childDayWorkingTime) {
|
|
688
|
+
this.tagObjects[3].instance = this.childDayWorkingTime;
|
|
689
|
+
}
|
|
690
|
+
if (this.childWeekWorkingTime) {
|
|
691
|
+
this.tagObjects[4].instance = this.childWeekWorkingTime;
|
|
692
|
+
}
|
|
693
|
+
if (this.childHolidays) {
|
|
694
|
+
this.tagObjects[5].instance = this.childHolidays;
|
|
695
|
+
}
|
|
696
|
+
if (this.childEventMarkers) {
|
|
697
|
+
this.tagObjects[6].instance = this.childEventMarkers;
|
|
698
|
+
}
|
|
699
|
+
this.context.ngAfterContentChecked(this);
|
|
700
|
+
};
|
|
701
|
+
return GanttComponent;
|
|
702
|
+
}(Gantt));
|
|
703
|
+
GanttComponent.decorators = [
|
|
704
|
+
{ type: Component, args: [{
|
|
705
|
+
selector: 'ejs-gantt',
|
|
706
|
+
inputs: inputs,
|
|
707
|
+
outputs: outputs$7,
|
|
708
|
+
template: '',
|
|
709
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
710
|
+
queries: {
|
|
711
|
+
childColumns: new ContentChild(ColumnsDirective),
|
|
712
|
+
childAddDialogFields: new ContentChild(AddDialogFieldsDirective),
|
|
713
|
+
childEditDialogFields: new ContentChild(EditDialogFieldsDirective),
|
|
714
|
+
childDayWorkingTime: new ContentChild(DayWorkingTimeCollectionDirective),
|
|
715
|
+
childWeekWorkingTime: new ContentChild(WeekWorkingTimesDirective),
|
|
716
|
+
childHolidays: new ContentChild(HolidaysDirective),
|
|
717
|
+
childEventMarkers: new ContentChild(EventMarkersDirective)
|
|
718
|
+
}
|
|
719
|
+
},] },
|
|
720
|
+
];
|
|
721
|
+
/**
|
|
722
|
+
* @nocollapse
|
|
723
|
+
*/
|
|
724
|
+
GanttComponent.ctorParameters = function () { return [
|
|
725
|
+
{ type: ElementRef, },
|
|
726
|
+
{ type: Renderer2, },
|
|
727
|
+
{ type: ViewContainerRef, },
|
|
728
|
+
{ type: Injector, },
|
|
729
|
+
]; };
|
|
730
|
+
GanttComponent.propDecorators = {
|
|
731
|
+
'parentTaskbarTemplate': [{ type: ContentChild, args: ['parentTaskbarTemplate',] },],
|
|
732
|
+
'timelineTemplate': [{ type: ContentChild, args: ['timelineTemplate',] },],
|
|
733
|
+
'milestoneTemplate': [{ type: ContentChild, args: ['milestoneTemplate',] },],
|
|
734
|
+
'taskbarTemplate': [{ type: ContentChild, args: ['taskbarTemplate',] },],
|
|
735
|
+
'editTemplate': [{ type: ContentChild, args: ['editTemplate',] },],
|
|
736
|
+
'labelSettings_rightLabel': [{ type: ContentChild, args: ['labelSettingsRightLabel',] },],
|
|
737
|
+
'labelSettings_leftLabel': [{ type: ContentChild, args: ['labelSettingsLeftLabel',] },],
|
|
738
|
+
'labelSettings_taskLabel': [{ type: ContentChild, args: ['labelSettingsTaskLabel',] },],
|
|
739
|
+
'tooltipSettings_taskbar': [{ type: ContentChild, args: ['tooltipSettingsTaskbar',] },],
|
|
740
|
+
'tooltipSettings_baseline': [{ type: ContentChild, args: ['tooltipSettingsBaseline',] },],
|
|
741
|
+
'tooltipSettings_connectorLine': [{ type: ContentChild, args: ['tooltipSettingsConnectorLine',] },],
|
|
742
|
+
'tooltipSettings_editing': [{ type: ContentChild, args: ['tooltipSettingsEditing',] },],
|
|
743
|
+
'tooltipSettings_timeline': [{ type: ContentChild, args: ['tooltipSettingsTimeline',] },],
|
|
744
|
+
};
|
|
745
|
+
__decorate$1([
|
|
746
|
+
Template(),
|
|
747
|
+
__metadata$1("design:type", Object)
|
|
748
|
+
], GanttComponent.prototype, "parentTaskbarTemplate", void 0);
|
|
749
|
+
__decorate$1([
|
|
750
|
+
Template(),
|
|
751
|
+
__metadata$1("design:type", Object)
|
|
752
|
+
], GanttComponent.prototype, "timelineTemplate", void 0);
|
|
753
|
+
__decorate$1([
|
|
754
|
+
Template(),
|
|
755
|
+
__metadata$1("design:type", Object)
|
|
756
|
+
], GanttComponent.prototype, "milestoneTemplate", void 0);
|
|
757
|
+
__decorate$1([
|
|
758
|
+
Template(),
|
|
759
|
+
__metadata$1("design:type", Object)
|
|
760
|
+
], GanttComponent.prototype, "taskbarTemplate", void 0);
|
|
761
|
+
__decorate$1([
|
|
762
|
+
Template(),
|
|
763
|
+
__metadata$1("design:type", Object)
|
|
764
|
+
], GanttComponent.prototype, "editTemplate", void 0);
|
|
765
|
+
__decorate$1([
|
|
766
|
+
Template(),
|
|
767
|
+
__metadata$1("design:type", Object)
|
|
768
|
+
], GanttComponent.prototype, "labelSettings_rightLabel", void 0);
|
|
769
|
+
__decorate$1([
|
|
770
|
+
Template(),
|
|
771
|
+
__metadata$1("design:type", Object)
|
|
772
|
+
], GanttComponent.prototype, "labelSettings_leftLabel", void 0);
|
|
773
|
+
__decorate$1([
|
|
774
|
+
Template(),
|
|
775
|
+
__metadata$1("design:type", Object)
|
|
776
|
+
], GanttComponent.prototype, "labelSettings_taskLabel", void 0);
|
|
777
|
+
__decorate$1([
|
|
778
|
+
Template(),
|
|
779
|
+
__metadata$1("design:type", Object)
|
|
780
|
+
], GanttComponent.prototype, "tooltipSettings_taskbar", void 0);
|
|
781
|
+
__decorate$1([
|
|
782
|
+
Template(),
|
|
783
|
+
__metadata$1("design:type", Object)
|
|
784
|
+
], GanttComponent.prototype, "tooltipSettings_baseline", void 0);
|
|
785
|
+
__decorate$1([
|
|
786
|
+
Template(),
|
|
787
|
+
__metadata$1("design:type", Object)
|
|
788
|
+
], GanttComponent.prototype, "tooltipSettings_connectorLine", void 0);
|
|
789
|
+
__decorate$1([
|
|
790
|
+
Template(),
|
|
791
|
+
__metadata$1("design:type", Object)
|
|
792
|
+
], GanttComponent.prototype, "tooltipSettings_editing", void 0);
|
|
793
|
+
__decorate$1([
|
|
794
|
+
Template(),
|
|
795
|
+
__metadata$1("design:type", Object)
|
|
796
|
+
], GanttComponent.prototype, "tooltipSettings_timeline", void 0);
|
|
797
|
+
GanttComponent = __decorate$1([
|
|
798
|
+
ComponentMixins([ComponentBase]),
|
|
799
|
+
__metadata$1("design:paramtypes", [ElementRef,
|
|
800
|
+
Renderer2,
|
|
801
|
+
ViewContainerRef,
|
|
802
|
+
Injector])
|
|
803
|
+
], GanttComponent);
|
|
804
|
+
/**
|
|
805
|
+
* NgModule definition for the Gantt component.
|
|
806
|
+
*/
|
|
807
|
+
var GanttModule = /** @class */ (function () {
|
|
808
|
+
function GanttModule() {
|
|
809
|
+
}
|
|
810
|
+
return GanttModule;
|
|
811
|
+
}());
|
|
812
|
+
GanttModule.decorators = [
|
|
813
|
+
{ type: NgModule, args: [{
|
|
814
|
+
imports: [CommonModule],
|
|
815
|
+
declarations: [
|
|
816
|
+
GanttComponent,
|
|
817
|
+
ColumnDirective,
|
|
818
|
+
ColumnsDirective,
|
|
819
|
+
AddDialogFieldDirective,
|
|
820
|
+
AddDialogFieldsDirective,
|
|
821
|
+
EditDialogFieldDirective,
|
|
822
|
+
EditDialogFieldsDirective,
|
|
823
|
+
DayWorkingTimeDirective,
|
|
824
|
+
DayWorkingTimeCollectionDirective,
|
|
825
|
+
WeekWorkingTimeDirective,
|
|
826
|
+
WeekWorkingTimesDirective,
|
|
827
|
+
HolidayDirective,
|
|
828
|
+
HolidaysDirective,
|
|
829
|
+
EventMarkerDirective,
|
|
830
|
+
EventMarkersDirective
|
|
831
|
+
],
|
|
832
|
+
exports: [
|
|
833
|
+
GanttComponent,
|
|
834
|
+
ColumnDirective,
|
|
835
|
+
ColumnsDirective,
|
|
836
|
+
AddDialogFieldDirective,
|
|
837
|
+
AddDialogFieldsDirective,
|
|
838
|
+
EditDialogFieldDirective,
|
|
839
|
+
EditDialogFieldsDirective,
|
|
840
|
+
DayWorkingTimeDirective,
|
|
841
|
+
DayWorkingTimeCollectionDirective,
|
|
842
|
+
WeekWorkingTimeDirective,
|
|
843
|
+
WeekWorkingTimesDirective,
|
|
844
|
+
HolidayDirective,
|
|
845
|
+
HolidaysDirective,
|
|
846
|
+
EventMarkerDirective,
|
|
847
|
+
EventMarkersDirective
|
|
848
|
+
]
|
|
849
|
+
},] },
|
|
850
|
+
];
|
|
851
|
+
/**
|
|
852
|
+
* @nocollapse
|
|
853
|
+
*/
|
|
854
|
+
GanttModule.ctorParameters = function () { return []; };
|
|
855
|
+
var FilterService = { provide: 'GanttFilter', useValue: Filter };
|
|
856
|
+
var SelectionService = { provide: 'GanttSelection', useValue: Selection };
|
|
857
|
+
var SortService = { provide: 'GanttSort', useValue: Sort };
|
|
858
|
+
var ReorderService = { provide: 'GanttReorder', useValue: Reorder };
|
|
859
|
+
var ResizeService = { provide: 'GanttResize', useValue: Resize };
|
|
860
|
+
var EditService = { provide: 'GanttEdit', useValue: Edit };
|
|
861
|
+
var DayMarkersService = { provide: 'GanttDayMarkers', useValue: DayMarkers };
|
|
862
|
+
var ToolbarService = { provide: 'GanttToolbar', useValue: Toolbar };
|
|
863
|
+
var ContextMenuService = { provide: 'GanttContextMenu', useValue: ContextMenu };
|
|
864
|
+
var ExcelExportService = { provide: 'GanttExcelExport', useValue: ExcelExport };
|
|
865
|
+
var RowDDService = { provide: 'GanttRowDD', useValue: RowDD };
|
|
866
|
+
var ColumnMenuService = { provide: 'GanttColumnMenu', useValue: ColumnMenu };
|
|
867
|
+
var PdfExportService = { provide: 'GanttPdfExport', useValue: PdfExport };
|
|
868
|
+
var VirtualScrollService = { provide: 'GanttVirtualScroll', useValue: VirtualScroll };
|
|
869
|
+
var CriticalPathService = { provide: 'GanttCriticalPath', useValue: CriticalPath };
|
|
870
|
+
var UndoRedoService = { provide: 'GanttUndoRedo', useValue: UndoRedo };
|
|
871
|
+
/**
|
|
872
|
+
* NgModule definition for the Gantt component with providers.
|
|
873
|
+
*/
|
|
874
|
+
var GanttAllModule = /** @class */ (function () {
|
|
875
|
+
function GanttAllModule() {
|
|
876
|
+
}
|
|
877
|
+
return GanttAllModule;
|
|
878
|
+
}());
|
|
879
|
+
GanttAllModule.decorators = [
|
|
880
|
+
{ type: NgModule, args: [{
|
|
881
|
+
imports: [CommonModule, GanttModule],
|
|
882
|
+
exports: [
|
|
883
|
+
GanttModule
|
|
884
|
+
],
|
|
885
|
+
providers: [
|
|
886
|
+
FilterService,
|
|
887
|
+
SelectionService,
|
|
888
|
+
SortService,
|
|
889
|
+
ReorderService,
|
|
890
|
+
ResizeService,
|
|
891
|
+
EditService,
|
|
892
|
+
DayMarkersService,
|
|
893
|
+
ToolbarService,
|
|
894
|
+
ContextMenuService,
|
|
895
|
+
ExcelExportService,
|
|
896
|
+
RowDDService,
|
|
897
|
+
ColumnMenuService,
|
|
898
|
+
PdfExportService,
|
|
899
|
+
VirtualScrollService,
|
|
900
|
+
CriticalPathService,
|
|
901
|
+
UndoRedoService
|
|
902
|
+
]
|
|
903
|
+
},] },
|
|
904
|
+
];
|
|
905
|
+
/**
|
|
906
|
+
* @nocollapse
|
|
907
|
+
*/
|
|
908
|
+
GanttAllModule.ctorParameters = function () { return []; };
|
|
909
|
+
/**
|
|
910
|
+
* Generated bundle index. Do not edit.
|
|
911
|
+
*/
|
|
912
|
+
export { ColumnDirective, ColumnsDirective, AddDialogFieldDirective, AddDialogFieldsDirective, EditDialogFieldDirective, EditDialogFieldsDirective, DayWorkingTimeDirective, DayWorkingTimeCollectionDirective, WeekWorkingTimeDirective, WeekWorkingTimesDirective, HolidayDirective, HolidaysDirective, EventMarkerDirective, EventMarkersDirective, GanttComponent, GanttModule, GanttAllModule, FilterService, SelectionService, SortService, ReorderService, ResizeService, EditService, DayMarkersService, ToolbarService, ContextMenuService, ExcelExportService, RowDDService, ColumnMenuService, PdfExportService, VirtualScrollService, CriticalPathService, UndoRedoService, inputs as ɵa, outputs$7 as ɵb };
|
|
913
|
+
export { Gantt, PdfHorizontalOverflowType, parentsUntil, isScheduledTask, isCountRequired, getSwapKey, isEmptyObject, getUniversalTime, isRemoteData, getTaskData, updateDates, formatString, getIndex, pixelToPoint, pointToPixel, getUid, load, rowDataBound, queryCellInfo, toolbarClick, keyPressed, Edit, Reorder, Resize, Filter, Sort, Dependency, Selection, Toolbar, DayMarkers, CriticalPath, UndoRedo, ContextMenu, ExcelExport, ColumnMenu, RowDD, PdfExport, VirtualScroll, Column, DayWorkingTime, AddDialogFieldSettings, EditDialogFieldSettings, EditSettings, EventMarker, FilterSettings, SearchSettings, Holiday, LabelSettings, SelectionSettings, SplitterSettings, TaskFields, TimelineTierSettings, TimelineSettings, TooltipSettings, SortDescriptor, SortSettings, ResourceFields, LoadingIndicator, WeekWorkingTime, TemporaryDictionary, PdfBorders, PdfPaddings, PdfTreeGridStyleBase, PdfTreeGridStyle, PdfGanttTheme, PdfTreeGridLayouter, PdfTreeGridLayoutResult, PdfTreeGridLayoutFormat, PdfTreeGridCell, PdfTreeGridCellCollection, PdfTreeGridRow, PdfTreeGridRowCollection, PdfTreeGridHeaderCollection, PdfTreeGridColumn, PdfTreeGridColumnCollection } from '@syncfusion/ej2-gantt';
|
|
914
914
|
//# sourceMappingURL=ej2-angular-gantt.es5.js.map
|