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

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