@syncfusion/ej2-angular-gantt 28.2.5-ngcc → 28.2.5

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