@progress/kendo-angular-gantt 0.3.0-dev.202201111723 → 0.3.0-dev.202201131518
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/dist/cdn/js/kendo-angular-gantt.js +2 -2
- package/dist/cdn/main.js +4 -10
- package/dist/es/common/touch-enabled.js +9 -0
- package/dist/es/dependencies/utils.js +34 -0
- package/dist/es/dragging/dependency-drag-create.directive.js +347 -0
- package/dist/es/dragging/drag-validation-tooltip.component.js +27 -0
- package/dist/es/editing/{util.js → utils.js} +0 -0
- package/dist/es/gantt.component.js +125 -7
- package/dist/es/gantt.module.js +23 -6
- package/dist/es/index.js +4 -0
- package/dist/es/main.js +1 -0
- package/dist/es/models/events/dependency-add-event.interface.js +4 -0
- package/dist/es/models/view-item.interface.js +4 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/rendering/gantt-milestone-task.component.js +7 -4
- package/dist/es/rendering/gantt-summary-task.component.js +7 -4
- package/dist/es/rendering/gantt-task-base.js +30 -19
- package/dist/es/rendering/gantt-task.component.js +8 -6
- package/dist/es/rendering/gantt-tasks-table-body.component.js +5 -1
- package/dist/es/scrolling/drag-scroll-settings.js +20 -0
- package/dist/es/scrolling/timeline-scroll.directive.js +89 -0
- package/dist/es/scrolling/timeline-scroll.service.js +39 -0
- package/dist/es/scrolling/utils.js +80 -0
- package/dist/es/timeline/gantt-timeline.component.js +45 -3
- package/dist/es/utils.js +143 -12
- package/dist/es2015/common/touch-enabled.d.ts +9 -0
- package/dist/es2015/common/touch-enabled.js +9 -0
- package/dist/es2015/dependencies/utils.d.ts +15 -0
- package/dist/es2015/dependencies/utils.js +34 -0
- package/dist/es2015/dragging/dependency-drag-create.directive.d.ts +72 -0
- package/dist/es2015/dragging/dependency-drag-create.directive.js +324 -0
- package/dist/es2015/dragging/drag-validation-tooltip.component.d.ts +29 -0
- package/dist/es2015/dragging/drag-validation-tooltip.component.js +76 -0
- package/dist/es2015/editing/{util.d.ts → utils.d.ts} +0 -0
- package/dist/es2015/editing/{util.js → utils.js} +0 -0
- package/dist/es2015/gantt.component.d.ts +39 -3
- package/dist/es2015/gantt.component.js +117 -6
- package/dist/es2015/gantt.module.js +23 -6
- package/dist/es2015/index.d.ts +4 -0
- package/dist/es2015/index.js +4 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/main.d.ts +1 -0
- package/dist/es2015/main.js +1 -0
- package/dist/es2015/models/events/dependency-add-event.interface.d.ts +26 -0
- package/dist/es2015/models/events/dependency-add-event.interface.js +4 -0
- package/dist/es2015/models/models.d.ts +2 -0
- package/dist/es2015/models/view-item.interface.d.ts +35 -0
- package/dist/es2015/models/view-item.interface.js +4 -0
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/rendering/gantt-milestone-task.component.d.ts +2 -1
- package/dist/es2015/rendering/gantt-milestone-task.component.js +18 -5
- package/dist/es2015/rendering/gantt-summary-task.component.d.ts +2 -1
- package/dist/es2015/rendering/gantt-summary-task.component.js +18 -5
- package/dist/es2015/rendering/gantt-task-base.d.ts +11 -5
- package/dist/es2015/rendering/gantt-task-base.js +30 -19
- package/dist/es2015/rendering/gantt-task.component.d.ts +2 -1
- package/dist/es2015/rendering/gantt-task.component.js +19 -7
- package/dist/es2015/rendering/gantt-tasks-table-body.component.d.ts +1 -0
- package/dist/es2015/rendering/gantt-tasks-table-body.component.js +10 -3
- package/dist/es2015/scrolling/drag-scroll-settings.d.ts +47 -0
- package/dist/es2015/scrolling/drag-scroll-settings.js +20 -0
- package/dist/es2015/scrolling/timeline-scroll.directive.d.ts +24 -0
- package/dist/es2015/scrolling/timeline-scroll.directive.js +78 -0
- package/dist/es2015/scrolling/timeline-scroll.service.d.ts +20 -0
- package/dist/es2015/scrolling/timeline-scroll.service.js +44 -0
- package/dist/es2015/scrolling/utils.d.ts +29 -0
- package/dist/es2015/scrolling/utils.js +80 -0
- package/dist/es2015/timeline/gantt-timeline.component.d.ts +25 -2
- package/dist/es2015/timeline/gantt-timeline.component.js +56 -3
- package/dist/es2015/utils.d.ts +70 -8
- package/dist/es2015/utils.js +143 -12
- package/dist/fesm2015/index.js +1337 -372
- package/dist/fesm5/index.js +1206 -298
- package/dist/npm/common/touch-enabled.js +11 -0
- package/dist/npm/dependencies/utils.js +34 -0
- package/dist/npm/dragging/dependency-drag-create.directive.js +349 -0
- package/dist/npm/dragging/drag-validation-tooltip.component.js +29 -0
- package/dist/npm/editing/{util.js → utils.js} +0 -0
- package/dist/npm/gantt.component.js +127 -9
- package/dist/npm/gantt.module.js +22 -5
- package/dist/npm/index.js +8 -0
- package/dist/npm/main.js +2 -0
- package/dist/npm/models/events/dependency-add-event.interface.js +6 -0
- package/dist/npm/models/view-item.interface.js +6 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/rendering/gantt-milestone-task.component.js +6 -3
- package/dist/npm/rendering/gantt-summary-task.component.js +6 -3
- package/dist/npm/rendering/gantt-task-base.js +30 -19
- package/dist/npm/rendering/gantt-task.component.js +7 -5
- package/dist/npm/rendering/gantt-tasks-table-body.component.js +5 -1
- package/dist/npm/scrolling/drag-scroll-settings.js +22 -0
- package/dist/npm/scrolling/timeline-scroll.directive.js +91 -0
- package/dist/npm/scrolling/timeline-scroll.service.js +41 -0
- package/dist/npm/scrolling/utils.js +83 -0
- package/dist/npm/timeline/gantt-timeline.component.js +44 -2
- package/dist/npm/utils.js +143 -12
- package/dist/systemjs/kendo-angular-gantt.js +1 -1
- package/package.json +5 -4
|
@@ -14,6 +14,8 @@ var package_metadata_1 = require("./package-metadata");
|
|
|
14
14
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
15
15
|
var columns_1 = require("./columns/columns");
|
|
16
16
|
var default_callbacks_1 = require("./common/default-callbacks");
|
|
17
|
+
var models_1 = require("./models/models");
|
|
18
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
17
19
|
var timeline_view_service_1 = require("./timeline/timeline-view.service");
|
|
18
20
|
var timeline_day_view_service_1 = require("./timeline/timeline-day-view.service");
|
|
19
21
|
var timeline_week_view_service_1 = require("./timeline/timeline-week-view.service");
|
|
@@ -23,18 +25,25 @@ var dependency_dom_service_1 = require("./dependencies/dependency-dom.service");
|
|
|
23
25
|
var mapping_service_1 = require("./common/mapping.service");
|
|
24
26
|
var option_changes_service_1 = require("./common/option-changes.service");
|
|
25
27
|
var edit_service_1 = require("./editing/edit.service");
|
|
26
|
-
var
|
|
28
|
+
var timeline_scroll_service_1 = require("./scrolling/timeline-scroll.service");
|
|
29
|
+
var gantt_localization_service_1 = require("./localization/gantt-localization.service");
|
|
27
30
|
var utils_1 = require("./utils");
|
|
28
31
|
var splitter_pane_options_interface_1 = require("./models/splitter-pane-options.interface");
|
|
29
32
|
var task_template_directive_1 = require("./template-directives/task-template.directive");
|
|
30
33
|
var summary_task_template_directive_1 = require("./template-directives/summary-task-template.directive");
|
|
31
34
|
var task_content_template_directive_1 = require("./template-directives/task-content-template.directive");
|
|
32
35
|
var toolbar_template_directive_1 = require("./toolbar/toolbar-template.directive");
|
|
36
|
+
var gantt_timeline_component_1 = require("./timeline/gantt-timeline.component");
|
|
33
37
|
var view_base_1 = require("./timeline/view-base");
|
|
34
|
-
var
|
|
35
|
-
var gantt_localization_service_1 = require("./localization/gantt-localization.service");
|
|
38
|
+
var utils_2 = require("./editing/utils");
|
|
36
39
|
var TREELIST_GROUP_COLUMNS_CLASS = 'k-gantt-treelist-nested-columns';
|
|
37
40
|
var DEFAULT_VIEW = 'week';
|
|
41
|
+
var DEFAULT_DRAG_SCROLL_SETTINGS = {
|
|
42
|
+
enabled: true,
|
|
43
|
+
step: 3,
|
|
44
|
+
interval: 1,
|
|
45
|
+
threshold: 10
|
|
46
|
+
};
|
|
38
47
|
/**
|
|
39
48
|
* Represents the Kendo UI Gantt component for Angular.
|
|
40
49
|
*
|
|
@@ -121,11 +130,22 @@ var GanttComponent = /** @class */ (function () {
|
|
|
121
130
|
this.zone = zone;
|
|
122
131
|
this.hostClasses = true;
|
|
123
132
|
/**
|
|
124
|
-
*
|
|
133
|
+
* Specifies a callback that determines if the given task is selected ([see example]({% slug selection_gantt %}#toc-custom-selection)).
|
|
125
134
|
*
|
|
126
135
|
* > The [`selectable`]({% slug api_gantt_ganttcomponent %}#toc-selectable) prop has to be set to `true` in order for this callback to be executed.
|
|
127
136
|
*/
|
|
128
137
|
this.isSelected = default_callbacks_1.isSelected;
|
|
138
|
+
/**
|
|
139
|
+
* Specifies a callback that determines if a new dependency is valid.
|
|
140
|
+
* Used when evaluating if an attempt to create a new dependency will result in a valid link between the two tasks
|
|
141
|
+
* [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-validation).
|
|
142
|
+
*
|
|
143
|
+
* By defalut, dependencies are deemed invalid when:
|
|
144
|
+
* - The two tasks are in a parent-child relationship.
|
|
145
|
+
* - The two tasks are already dependent on one another. Only one dependency is allowed per pair.
|
|
146
|
+
* - The start or end times of the two tasks are incompatible with the attempted dependency type.
|
|
147
|
+
*/
|
|
148
|
+
this.validateNewDependency = this.defaultValidateNewDependencyCallback.bind(this);
|
|
129
149
|
/**
|
|
130
150
|
* Fires when the Gantt selection is changed through user interaction.
|
|
131
151
|
*
|
|
@@ -246,6 +266,11 @@ var GanttComponent = /** @class */ (function () {
|
|
|
246
266
|
* Fires when the user adds a task.
|
|
247
267
|
*/
|
|
248
268
|
this.taskAdd = new core_1.EventEmitter();
|
|
269
|
+
/**
|
|
270
|
+
* Fires when the user adds a dependency via dragging
|
|
271
|
+
* [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-basic-concepts).
|
|
272
|
+
*/
|
|
273
|
+
this.dependencyAdd = new core_1.EventEmitter();
|
|
249
274
|
/**
|
|
250
275
|
* Fires when the sorting of the Gantt is changed.
|
|
251
276
|
* You have to handle the event yourself and sort the data.
|
|
@@ -302,6 +327,15 @@ var GanttComponent = /** @class */ (function () {
|
|
|
302
327
|
* Fires when a task is clicked.
|
|
303
328
|
*/
|
|
304
329
|
this.taskClick = new core_1.EventEmitter();
|
|
330
|
+
/**
|
|
331
|
+
* @hidden
|
|
332
|
+
*
|
|
333
|
+
* Specifies whether the dependency drag clues will be rendered.
|
|
334
|
+
* Set internally by the dependency-drag-create directive.
|
|
335
|
+
*
|
|
336
|
+
* @default false
|
|
337
|
+
*/
|
|
338
|
+
this.renderDependencyDragClues = false;
|
|
305
339
|
/**
|
|
306
340
|
* @hidden
|
|
307
341
|
*
|
|
@@ -318,6 +352,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
318
352
|
this.showConfirmationDialog = false;
|
|
319
353
|
this._columns = new core_1.QueryList();
|
|
320
354
|
this._data = [];
|
|
355
|
+
this._dragScrollSettings = tslib_1.__assign({}, DEFAULT_DRAG_SCROLL_SETTINGS);
|
|
321
356
|
this._timelinePaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TIMELINE_PANE_SETTINGS);
|
|
322
357
|
this._treeListPaneOptions = tslib_1.__assign({}, splitter_pane_options_interface_1.DEFAULT_TREELIST_PANE_SETTINGS);
|
|
323
358
|
this._rowClass = default_callbacks_1.rowClassCallback;
|
|
@@ -346,7 +381,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
346
381
|
this.editServiceSubscription.add(this.editService.editEvent.subscribe(function (args) {
|
|
347
382
|
_this[args.editResultType].emit({
|
|
348
383
|
taskFormGroup: args.taskFormGroup,
|
|
349
|
-
item:
|
|
384
|
+
item: utils_2.getEditItem(args.dataItem, _this.treeList.view.data, _this.mapper),
|
|
350
385
|
dependencies: args.dependencies,
|
|
351
386
|
sender: _this
|
|
352
387
|
});
|
|
@@ -358,7 +393,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
358
393
|
var selectedItem = _this.getFirstSelectedItem();
|
|
359
394
|
_this.taskAdd.emit({
|
|
360
395
|
actionType: args.actionType,
|
|
361
|
-
selectedItem: selectedItem ?
|
|
396
|
+
selectedItem: selectedItem ? utils_2.getEditItem(selectedItem, _this.treeList.view.data, _this.mapper) : null
|
|
362
397
|
});
|
|
363
398
|
_this.updateView();
|
|
364
399
|
}));
|
|
@@ -596,6 +631,21 @@ var GanttComponent = /** @class */ (function () {
|
|
|
596
631
|
enumerable: true,
|
|
597
632
|
configurable: true
|
|
598
633
|
});
|
|
634
|
+
Object.defineProperty(GanttComponent.prototype, "dragScrollSettings", {
|
|
635
|
+
get: function () {
|
|
636
|
+
return this._dragScrollSettings;
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* Specifies the settings for auto-scrolling during dragging
|
|
640
|
+
* when the pointer moves outside of the container bounderies
|
|
641
|
+
* [see example]({% slug editing_drag_create_dependencies_gantt %}#toc-auto-scrolling).
|
|
642
|
+
*/
|
|
643
|
+
set: function (settings) {
|
|
644
|
+
this._dragScrollSettings = tslib_1.__assign({}, DEFAULT_DRAG_SCROLL_SETTINGS, settings);
|
|
645
|
+
},
|
|
646
|
+
enumerable: true,
|
|
647
|
+
configurable: true
|
|
648
|
+
});
|
|
599
649
|
Object.defineProperty(GanttComponent.prototype, "renderedTreeListItems", {
|
|
600
650
|
/**
|
|
601
651
|
* @hidden
|
|
@@ -902,7 +952,7 @@ var GanttComponent = /** @class */ (function () {
|
|
|
902
952
|
if (!utils_1.isPresent(this.lastTreeListCellClick) || event.target !== this.lastTreeListCellClick.originalEvent.target) {
|
|
903
953
|
return;
|
|
904
954
|
}
|
|
905
|
-
this.editItem =
|
|
955
|
+
this.editItem = utils_2.getEditItem(this.lastTreeListCellClick.dataItem, this.treeList.view.data, this.mapper);
|
|
906
956
|
if (kendo_angular_common_1.hasObservers(this.cellDblClick)) {
|
|
907
957
|
this.zone.run(function () {
|
|
908
958
|
_this.cellDblClick.emit({
|
|
@@ -1054,11 +1104,65 @@ var GanttComponent = /** @class */ (function () {
|
|
|
1054
1104
|
var loadedItems = this.renderedTreeListItems || [];
|
|
1055
1105
|
return loadedItems.find(isSelectedCallback);
|
|
1056
1106
|
};
|
|
1107
|
+
GanttComponent.prototype.defaultValidateNewDependencyCallback = function (dependency) {
|
|
1108
|
+
var _this = this;
|
|
1109
|
+
var fromTaskId = this.mapper.extractFromDependency(dependency, 'fromId');
|
|
1110
|
+
var toTaskId = this.mapper.extractFromDependency(dependency, 'toId');
|
|
1111
|
+
var fromTask = this.treeList.view.data.find(function (task) {
|
|
1112
|
+
return _this.mapper.extractFromTask(task.data, 'id') === fromTaskId;
|
|
1113
|
+
});
|
|
1114
|
+
var toTask = this.treeList.view.data.find(function (task) {
|
|
1115
|
+
return _this.mapper.extractFromTask(task.data, 'id') === toTaskId;
|
|
1116
|
+
});
|
|
1117
|
+
// mark as invalid if the attempted dependency is lacking valid from- and to-tasks
|
|
1118
|
+
// or when the from- and to-tasks are actually the same task
|
|
1119
|
+
if (!utils_1.isPresent(fromTask) || !utils_1.isPresent(fromTask.data) ||
|
|
1120
|
+
!utils_1.isPresent(toTask) || !utils_1.isPresent(toTask.data) ||
|
|
1121
|
+
fromTask.data === toTask.data) {
|
|
1122
|
+
return false;
|
|
1123
|
+
}
|
|
1124
|
+
var tasksDependentOnOneAnother = this.dependencies.some(function (current) {
|
|
1125
|
+
var currentFromId = _this.mapper.extractFromDependency(current, 'fromId');
|
|
1126
|
+
var currentToId = _this.mapper.extractFromDependency(current, 'toId');
|
|
1127
|
+
return (fromTaskId === currentFromId && toTaskId === currentToId) ||
|
|
1128
|
+
(toTaskId === currentFromId && fromTaskId === currentToId);
|
|
1129
|
+
});
|
|
1130
|
+
// mark as invalid if the attempted dependency is trying to connect already dependent tasks
|
|
1131
|
+
// mark as invalid if the two tasks are in parent-child relationship
|
|
1132
|
+
if (tasksDependentOnOneAnother || utils_1.areParentChild(fromTask, toTask)) {
|
|
1133
|
+
return false;
|
|
1134
|
+
}
|
|
1135
|
+
var fromTaskStart = this.mapper.extractFromTask(fromTask.data, 'start');
|
|
1136
|
+
var fromTaskEnd = this.mapper.extractFromTask(fromTask.data, 'end');
|
|
1137
|
+
var toTaskStart = this.mapper.extractFromTask(toTask.data, 'start');
|
|
1138
|
+
var toTaskEnd = this.mapper.extractFromTask(toTask.data, 'end');
|
|
1139
|
+
// if the two tasks are available to be connected via a dependency,
|
|
1140
|
+
// check if their start and end time allow for the attempted dependency type
|
|
1141
|
+
switch (this.mapper.extractFromDependency(dependency, 'type')) {
|
|
1142
|
+
// finish to finish (FF) — the from-task ends before the to-task can end
|
|
1143
|
+
case models_1.DependencyType.FF:
|
|
1144
|
+
return fromTaskEnd <= toTaskEnd;
|
|
1145
|
+
// finish to start (FS) — the from-task ends before the to-task can begin
|
|
1146
|
+
case models_1.DependencyType.FS:
|
|
1147
|
+
return fromTaskEnd <= toTaskStart;
|
|
1148
|
+
// start to finish (SF) — the from-task begins before the to-task can end
|
|
1149
|
+
case models_1.DependencyType.SF:
|
|
1150
|
+
return fromTaskStart <= toTaskEnd;
|
|
1151
|
+
// start to start (SS) — the from-task begins before the to-task can begin
|
|
1152
|
+
case models_1.DependencyType.SS:
|
|
1153
|
+
return fromTaskStart <= toTaskStart;
|
|
1154
|
+
default: return false;
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1057
1157
|
var GanttComponent_1;
|
|
1058
1158
|
tslib_1.__decorate([
|
|
1059
1159
|
core_1.ViewChild(kendo_angular_treelist_1.TreeListComponent, { static: true }),
|
|
1060
1160
|
tslib_1.__metadata("design:type", kendo_angular_treelist_1.TreeListComponent)
|
|
1061
1161
|
], GanttComponent.prototype, "treeList", void 0);
|
|
1162
|
+
tslib_1.__decorate([
|
|
1163
|
+
core_1.ViewChild(gantt_timeline_component_1.GanttTimelineComponent, { static: false }),
|
|
1164
|
+
tslib_1.__metadata("design:type", gantt_timeline_component_1.GanttTimelineComponent)
|
|
1165
|
+
], GanttComponent.prototype, "timeline", void 0);
|
|
1062
1166
|
tslib_1.__decorate([
|
|
1063
1167
|
core_1.ContentChild(task_content_template_directive_1.GanttTaskContentTemplateDirective, { static: true }),
|
|
1064
1168
|
tslib_1.__metadata("design:type", task_content_template_directive_1.GanttTaskContentTemplateDirective)
|
|
@@ -1117,6 +1221,10 @@ var GanttComponent = /** @class */ (function () {
|
|
|
1117
1221
|
core_1.Input(),
|
|
1118
1222
|
tslib_1.__metadata("design:type", Function)
|
|
1119
1223
|
], GanttComponent.prototype, "isSelected", void 0);
|
|
1224
|
+
tslib_1.__decorate([
|
|
1225
|
+
core_1.Input(),
|
|
1226
|
+
tslib_1.__metadata("design:type", Function)
|
|
1227
|
+
], GanttComponent.prototype, "validateNewDependency", void 0);
|
|
1120
1228
|
tslib_1.__decorate([
|
|
1121
1229
|
core_1.Output(),
|
|
1122
1230
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1216,6 +1324,11 @@ var GanttComponent = /** @class */ (function () {
|
|
|
1216
1324
|
core_1.Input(),
|
|
1217
1325
|
tslib_1.__metadata("design:type", Boolean)
|
|
1218
1326
|
], GanttComponent.prototype, "columnsResizable", void 0);
|
|
1327
|
+
tslib_1.__decorate([
|
|
1328
|
+
core_1.Input(),
|
|
1329
|
+
tslib_1.__metadata("design:type", Object),
|
|
1330
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
1331
|
+
], GanttComponent.prototype, "dragScrollSettings", null);
|
|
1219
1332
|
tslib_1.__decorate([
|
|
1220
1333
|
core_1.Output(),
|
|
1221
1334
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1256,6 +1369,10 @@ var GanttComponent = /** @class */ (function () {
|
|
|
1256
1369
|
core_1.Output(),
|
|
1257
1370
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
1258
1371
|
], GanttComponent.prototype, "taskAdd", void 0);
|
|
1372
|
+
tslib_1.__decorate([
|
|
1373
|
+
core_1.Output(),
|
|
1374
|
+
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
1375
|
+
], GanttComponent.prototype, "dependencyAdd", void 0);
|
|
1259
1376
|
tslib_1.__decorate([
|
|
1260
1377
|
core_1.Output(),
|
|
1261
1378
|
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
@@ -1331,9 +1448,10 @@ var GanttComponent = /** @class */ (function () {
|
|
|
1331
1448
|
dependency_dom_service_1.DependencyDomService,
|
|
1332
1449
|
mapping_service_1.MappingService,
|
|
1333
1450
|
option_changes_service_1.OptionChangesService,
|
|
1334
|
-
edit_service_1.EditService
|
|
1451
|
+
edit_service_1.EditService,
|
|
1452
|
+
timeline_scroll_service_1.TimelineScrollService
|
|
1335
1453
|
],
|
|
1336
|
-
template: "\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle=\"kendo.gantt.taskEditingGeneralTabTitle|The title of the 'General' tab of the editing dialog TabStrip\"\n taskEditingGeneralTabTitle=\"General\"\n\n i18n-taskEditingPredecessorsTabTitle=\"kendo.gantt.taskEditingPredecessorsTabTitle|The title of the 'Predecessors' dependencies tab of the editing dialog TabStrip\"\n taskEditingPredecessorsTabTitle=\"Predecessors\"\n\n i18n-taskEditingSuccessorsTabTitle=\"kendo.gantt.taskEditingSuccessorsTabTitle|The title of the 'Successors' dependencies tab of the editing dialog TabStrip\"\n taskEditingSuccessorsTabTitle=\"Successors\"\n\n i18n-taskEditingDependenciesAddButtonText=\"kendo.gantt.taskEditingDependenciesAddButtonText|The text of the 'Add' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesAddButtonText=\"Add\"\n\n i18n-taskEditingDependenciesRemoveButtonText=\"kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the 'Remove' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesRemoveButtonText=\"Remove\"\n\n i18n-taskEditingDependenciesGridNameColumnTitle=\"kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the 'Task Title' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridNameColumnTitle=\"Task Title\"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle=\"kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the 'Type' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridTypeColumnTitle=\"Type\"\n\n i18n-taskDeleteLabel=\"kendo.gantt.taskDeleteLabel|The label of the task delete icon\"\n taskDeleteLabel=\"Delete\"\n\n i18n-taskEditingDialogTitle=\"kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog\"\n taskEditingDialogTitle=\"Editing Task\"\n\n i18n-taskEditingDialogCloseTitle=\"kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button\"\n taskEditingDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogCloseTitle=\"kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button\"\n confirmationDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogTitle=\"kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog\"\n confirmationDialogTitle=\"Delete Task\"\n\n i18n-confirmationDialogContent=\"kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog\"\n confirmationDialogContent=\"Are you sure you want to delete this task?\"\n\n i18n-deleteButtonText=\"kendo.gantt.deleteButtonText|The text of the task editing dialog 'Delete' button\"\n deleteButtonText=\"Delete\"\n\n i18n-cancelButtonText=\"kendo.gantt.cancelButtonText|The text of the task editing dialog 'Cancel' button\"\n cancelButtonText=\"Cancel\"\n\n i18n-saveButtonText=\"kendo.gantt.saveButtonText|The text of the task editing dialog 'Save' button\"\n saveButtonText=\"Save\"\n\n i18n-titleFieldInputLabel=\"kendo.gantt.titleFieldInputLabel|The label of the 'title' field input in editing mode\"\n titleFieldInputLabel=\"Title\"\n\n i18n-startFieldInputLabel=\"kendo.gantt.startFieldInputLabel|The label of the 'start' field input in editing mode\"\n startFieldInputLabel=\"Start\"\n\n i18n-endFieldInputLabel=\"kendo.gantt.endFieldInputLabel|The label of the 'end' field input in editing mode\"\n endFieldInputLabel=\"End\"\n\n i18n-completionRatioFieldInputLabel=\"kendo.gantt.completionRatioFieldInputLabel|The label of the 'completionRatio' field input in editing mode\"\n completionRatioFieldInputLabel=\"Progress\"\n\n i18n-dayViewText=\"kendo.gantt.dayViewText|The text of the day view in the ViewSelector component\"\n dayViewText=\"Day\"\n\n i18n-weekViewText=\"kendo.gantt.weekViewText|The text of the week view in the ViewSelector component\"\n weekViewText=\"Week\"\n\n i18n-monthViewText=\"kendo.gantt.monthViewText|The text of the month view in the ViewSelector component\"\n monthViewText=\"Month\"\n\n i18n-yearViewText-disabled=\"kendo.gantt.yearViewText|The text of the year view in the ViewSelector component\"\n yearViewText=\"Year\"\n\n i18n-addTaskText=\"kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component\"\n addTaskText=\"Add Task\"\n\n i18n-addChildText=\"kendo.gantt.addChildText|The text of the 'Add Child' option in the AddTask component\"\n addChildText=\"Add Child\"\n\n i18n-addAboveText=\"kendo.gantt.addAboveText|The text of the 'Add Above' option in the AddTask component\"\n addAboveText=\"Add Above\"\n\n i18n-addBelowText=\"kendo.gantt.addBelowText|The text of the 'Add Below' option in the AddTask component\"\n addBelowText=\"Add Below\"\n\n i18n-noRecords=\"kendo.gantt.noRecords|The label visible in the TreeList when there are no records\"\n noRecords=\"No records available.\"\n\n i18n-filter=\"kendo.gantt.filter|The label of the filter cell or icon\"\n filter=\"Filter\"\n\n i18n-filterEqOperator=\"kendo.gantt.filterEqOperator|The text of the equal filter operator\"\n filterEqOperator=\"Is equal to\"\n\n i18n-filterNotEqOperator=\"kendo.gantt.filterNotEqOperator|The text of the not equal filter operator\"\n filterNotEqOperator=\"Is not equal to\"\n\n i18n-filterIsNullOperator=\"kendo.gantt.filterIsNullOperator|The text of the is null filter operator\"\n filterIsNullOperator=\"Is null\"\n\n i18n-filterIsNotNullOperator=\"kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator\"\n filterIsNotNullOperator=\"Is not null\"\n\n i18n-filterIsEmptyOperator=\"kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator\"\n filterIsEmptyOperator=\"Is empty\"\n\n i18n-filterIsNotEmptyOperator=\"kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator\"\n filterIsNotEmptyOperator=\"Is not empty\"\n\n i18n-filterStartsWithOperator=\"kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator\"\n filterStartsWithOperator=\"Starts with\"\n\n i18n-filterContainsOperator=\"kendo.gantt.filterContainsOperator|The text of the contains filter operator\"\n filterContainsOperator=\"Contains\"\n\n i18n-filterNotContainsOperator=\"kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator\"\n filterNotContainsOperator=\"Does not contain\"\n\n i18n-filterEndsWithOperator=\"kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator\"\n filterEndsWithOperator=\"Ends with\"\n\n i18n-filterGteOperator=\"kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator\"\n filterGteOperator=\"Is greater than or equal to\"\n\n i18n-filterGtOperator=\"kendo.gantt.filterGtOperator|The text of the greater than filter operator\"\n filterGtOperator=\"Is greater than\"\n\n i18n-filterLteOperator=\"kendo.gantt.filterLteOperator|The text of the less than or equal filter operator\"\n filterLteOperator=\"Is less than or equal to\"\n\n i18n-filterLtOperator=\"kendo.gantt.filterLtOperator|The text of the less than filter operator\"\n filterLtOperator=\"Is less than\"\n\n i18n-filterIsTrue=\"kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option\"\n filterIsTrue=\"Is True\"\n\n i18n-filterIsFalse=\"kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option\"\n filterIsFalse=\"Is False\"\n\n i18n-filterBooleanAll=\"kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option\"\n filterBooleanAll=\"(All)\"\n\n i18n-filterAfterOrEqualOperator=\"kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator\"\n filterAfterOrEqualOperator=\"Is after or equal to\"\n\n i18n-filterAfterOperator=\"kendo.gantt.filterAfterOperator|The text of the after date filter operator\"\n filterAfterOperator=\"Is after\"\n\n i18n-filterBeforeOperator=\"kendo.gantt.filterBeforeOperator|The text of the before date filter operator\"\n filterBeforeOperator=\"Is before\"\n\n i18n-filterBeforeOrEqualOperator=\"kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator\"\n filterBeforeOrEqualOperator=\"Is before or equal to\"\n\n i18n-filterFilterButton=\"kendo.gantt.filterFilterButton|The text of the filter button\"\n filterFilterButton=\"Filter\"\n\n i18n-filterClearButton=\"kendo.gantt.filterClearButton|The text of the clear filter button\"\n filterClearButton=\"Clear\"\n\n i18n-filterAndLogic=\"kendo.gantt.filterAndLogic|The text of the And filter logic\"\n filterAndLogic=\"And\"\n\n i18n-filterOrLogic=\"kendo.gantt.filterOrLogic|The text of the Or filter logic\"\n filterOrLogic=\"Or\"\n\n i18n-loading=\"kendo.gantt.loading|The loading text\"\n loading=\"Loading\"\n\n i18n-columnMenu=\"kendo.gantt.columnMenu|The title of the column menu icon\"\n columnMenu=\"Column Menu\"\n\n i18n-columns=\"kendo.gantt.columns|The text shown in the column menu for the columns item\"\n columns=\"Columns\"\n\n i18n-lock-disabled=\"kendo.gantt.lock|The text shown in the column menu for the lock item\"\n lock-disabled=\"Lock\"\n\n i18n-unlock-disabled=\"kendo.gantt.unlock|The text shown in the column menu for the unlock item\"\n unlock-disabled=\"Unlock\"\n\n i18n-sortable=\"kendo.gantt.sortable|The label of the sort icon\"\n sortable=\"Sortable\"\n\n i18n-sortAscending=\"kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item\"\n sortAscending=\"Sort Ascending\"\n\n i18n-sortDescending=\"kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item\"\n sortDescending=\"Sort Descending\"\n\n i18n-sortedAscending=\"kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending\"\n sortedAscending=\"Sorted Ascending\"\n\n i18n-sortedDescending=\"kendo.gantt.sortedDescending|The status announcement when a column is sorted descending\"\n sortedDescending=\"Sorted Descending\"\n\n i18n-sortedDefault=\"kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted\"\n sortedDefault=\"Not Sorted\"\n\n i18n-columnsApply=\"kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button\"\n columnsApply=\"Apply\"\n\n i18n-columnsReset=\"kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button\"\n columnsReset=\"Reset\"></ng-container>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('top')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'top' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'top' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-header k-toolbar k-gantt-toolbar\"\n position=\"top\"></kendo-gantt-toolbar>\n <div class=\"k-gantt-content\">\n <kendo-splitter [style.border]=\"0\">\n <kendo-splitter-pane\n class=\"k-gantt-treelist k-gantt-treelist-scrollable\"\n [collapsible]=\"treeListPaneOptions?.collapsible\"\n [collapsed]=\"treeListPaneOptions?.collapsed\"\n (collapsedChange)=\"onTreeListCollapsedChange($event)\"\n [scrollable]=\"false\">\n <kendo-treelist\n [idField]=\"taskIdField\"\n [columns]=\"columns\"\n [data]=\"data\"\n [hasChildren]=\"hasChildren\"\n [fetchChildren]=\"fetchChildren\"\n [isExpanded]=\"isExpanded\"\n [autoSize]=\"columnsAutoSize\"\n [columnMenu]=\"columnMenu\"\n [reorderable]=\"columnsReorderable\"\n [resizable]=\"columnsResizable\"\n [rowClass]=\"rowClass\"\n [isSelected]=\"isSelected\"\n [selectable]=\"selectable\"\n [sortable]=\"sortable\"\n [sort]=\"sort\"\n [filterable]=\"filterMenu\"\n [filter]=\"filter\"\n (filterChange)=\"filterChange.emit($event)\"\n (sortChange)=\"sortChange.emit($event)\"\n (dataStateChange)=\"dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })\"\n (expandStateChange)=\"expandStateChange.emit($event)\"\n (expand)=\"rowExpand.emit({ dataItem: $event.dataItem })\"\n (collapse)=\"rowCollapse.emit({ dataItem: $event.dataItem })\"\n (columnReorder)=\"columnReorder.emit($event)\"\n (columnResize)=\"columnResize.emit($event)\"\n (columnVisibilityChange)=\"handleColumnVisibilityChange($event)\"\n (columnLockedChange)=\"columnLockedChange.emit($event)\"\n (selectionChange)=\"handleTreeListSelectionChange($event)\"\n (cellClick)=\"handleTreeListCellClick($event)\"\n (cellClose)=\"handleCellClose($event)\"\n [kendoEventsOutsideAngular]=\"{\n dblclick: handleTreeListDoubleClick\n }\"\n [scope]=\"this\"\n >\n <kendo-treelist-messages\n [noRecords]=\"getText('noRecords')\"\n [filter]=\"getText('filter')\"\n [filterEqOperator]=\"getText('filterEqOperator')\"\n [filterNotEqOperator]=\"getText('filterNotEqOperator')\"\n [filterIsNullOperator]=\"getText('filterIsNullOperator')\"\n [filterIsNotNullOperator]=\"getText('filterIsNotNullOperator')\"\n [filterIsEmptyOperator]=\"getText('filterIsEmptyOperator')\"\n [filterIsNotEmptyOperator]=\"getText('filterIsNotEmptyOperator')\"\n [filterStartsWithOperator]=\"getText('filterStartsWithOperator')\"\n [filterContainsOperator]=\"getText('filterContainsOperator')\"\n [filterNotContainsOperator]=\"getText('filterNotContainsOperator')\"\n [filterEndsWithOperator]=\"getText('filterEndsWithOperator')\"\n [filterGteOperator]=\"getText('filterGteOperator')\"\n [filterGtOperator]=\"getText('filterGtOperator')\"\n [filterLteOperator]=\"getText('filterLteOperator')\"\n [filterLtOperator]=\"getText('filterLtOperator')\"\n [filterIsTrue]=\"getText('filterIsTrue')\"\n [filterIsFalse]=\"getText('filterIsFalse')\"\n [filterBooleanAll]=\"getText('filterBooleanAll')\"\n [filterAfterOrEqualOperator]=\"getText('filterAfterOrEqualOperator')\"\n [filterAfterOperator]=\"getText('filterAfterOperator')\"\n [filterBeforeOperator]=\"getText('filterBeforeOperator')\"\n [filterBeforeOrEqualOperator]=\"getText('filterBeforeOrEqualOperator')\"\n [filterFilterButton]=\"getText('filterFilterButton')\"\n [filterClearButton]=\"getText('filterClearButton')\"\n [filterAndLogic]=\"getText('filterAndLogic')\"\n [filterOrLogic]=\"getText('filterOrLogic')\"\n [loading]=\"getText('loading')\"\n [columnMenu]=\"getText('columnMenu')\"\n [columns]=\"getText('columns')\"\n [sortable]=\"getText('sortable')\"\n [sortAscending]=\"getText('sortAscending')\"\n [sortDescending]=\"getText('sortDescending')\"\n [sortedAscending]=\"getText('sortedAscending')\"\n [sortedDescending]=\"getText('sortedDescending')\"\n [sortedDefault]=\"getText('sortedDefault')\"\n [columnsApply]=\"getText('columnsApply')\"\n [columnsReset]=\"getText('columnsReset')\"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]=\"timelinePaneOptions?.collapsible\"\n [resizable]=\"timelinePaneOptions?.resizable\"\n [collapsed]=\"timelinePaneOptions?.collapsed\"\n [min]=\"timelinePaneOptions?.min\"\n [max]=\"timelinePaneOptions?.max\"\n [size]=\"timelinePaneOptions?.size\"\n (collapsedChange)=\"onTimelineCollapsedChange($event)\"\n (sizeChange)=\"onTimelinePaneSizeChange($event)\"\n [scrollable]=\"false\">\n <kendo-gantt-timeline\n *ngIf=\"views && views.length\"\n [rows]=\"renderedTreeListItems\"\n [slots]=\"timelineSlots\"\n [groupSlots]=\"timelineGroupSlots\"\n [tableWidth]=\"tableWidth\"\n [activeView]=\"activeView\"\n [taskContentTemplate]=\"taskContentTemplate?.templateRef\"\n [taskTemplate]=\"taskTemplate?.templateRef\"\n [summaryTaskTemplate]=\"summaryTaskTemplate?.templateRef\"\n [taskClass]=\"taskClass\"\n [dependencies]=\"dependencies\"\n [hasChildren]=\"hasChildren\"\n [isTaskSelected]=\"isTaskSelected\"\n [kendoEventsOutsideAngular]=\"{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }\"\n [scope]=\"this\"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('bottom')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'bottom' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'bottom' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-footer k-toolbar k-gantt-toolbar\"\n position=\"bottom\"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf=\"showEditingDialog\"\n [data]=\"data\">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf=\"showConfirmationDialog\"\n [width]=\"575\"\n [height]=\"170\"\n [title]=\"getText('confirmationDialogTitle')\"\n (close)=\"showConfirmationDialog = false;\">\n <span>{{ getText('confirmationDialogContent') }}</span>\n <kendo-dialog-actions layout=\"normal\">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]=\"true\" (click)=\"handleDeleteConfirmation()\">{{ getText('deleteButtonText') }}</button>\n <button kendoButton (click)=\"showConfirmationDialog = false;\">{{ getText('cancelButtonText') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "
|
|
1454
|
+
template: "\n <ng-container kendoGanttLocalizedMessages\n i18n-taskEditingGeneralTabTitle=\"kendo.gantt.taskEditingGeneralTabTitle|The title of the 'General' tab of the editing dialog TabStrip\"\n taskEditingGeneralTabTitle=\"General\"\n\n i18n-taskEditingPredecessorsTabTitle=\"kendo.gantt.taskEditingPredecessorsTabTitle|The title of the 'Predecessors' dependencies tab of the editing dialog TabStrip\"\n taskEditingPredecessorsTabTitle=\"Predecessors\"\n\n i18n-taskEditingSuccessorsTabTitle=\"kendo.gantt.taskEditingSuccessorsTabTitle|The title of the 'Successors' dependencies tab of the editing dialog TabStrip\"\n taskEditingSuccessorsTabTitle=\"Successors\"\n\n i18n-taskEditingDependenciesAddButtonText=\"kendo.gantt.taskEditingDependenciesAddButtonText|The text of the 'Add' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesAddButtonText=\"Add\"\n\n i18n-taskEditingDependenciesRemoveButtonText=\"kendo.gantt.taskEditingDependenciesRemoveButtonText|The text of the 'Remove' button in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesRemoveButtonText=\"Remove\"\n\n i18n-taskEditingDependenciesGridNameColumnTitle=\"kendo.gantt.taskEditingDependenciesGridNameColumnTitle|The title of the 'Task Title' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridNameColumnTitle=\"Task Title\"\n\n i18n-taskEditingDependenciesGridTypeColumnTitle=\"kendo.gantt.taskEditingDependenciesGridTypeColumnTitle|The title of the 'Type' Grid column in the dependencies tabs of the editing dialog TabStrip\"\n taskEditingDependenciesGridTypeColumnTitle=\"Type\"\n\n i18n-taskDeleteLabel=\"kendo.gantt.taskDeleteLabel|The label of the task delete icon\"\n taskDeleteLabel=\"Delete\"\n\n i18n-taskEditingDialogTitle=\"kendo.gantt.taskEditingDialogTitle|The title of the task editing dialog\"\n taskEditingDialogTitle=\"Editing Task\"\n\n i18n-taskEditingDialogCloseTitle=\"kendo.gantt.taskEditingDialogCloseTitle|The title of the task editing dialog close button\"\n taskEditingDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogCloseTitle=\"kendo.gantt.confirmationDialogCloseTitle|The title of the confirmation dialog close button\"\n confirmationDialogCloseTitle=\"Close\"\n\n i18n-confirmationDialogTitle=\"kendo.gantt.confirmationDialogTitle|The title of the delete task confirmation dialog\"\n confirmationDialogTitle=\"Delete Task\"\n\n i18n-confirmationDialogContent=\"kendo.gantt.confirmationDialogContent|The content of the delete task confirmation dialog\"\n confirmationDialogContent=\"Are you sure you want to delete this task?\"\n\n i18n-deleteButtonText=\"kendo.gantt.deleteButtonText|The text of the task editing dialog 'Delete' button\"\n deleteButtonText=\"Delete\"\n\n i18n-cancelButtonText=\"kendo.gantt.cancelButtonText|The text of the task editing dialog 'Cancel' button\"\n cancelButtonText=\"Cancel\"\n\n i18n-saveButtonText=\"kendo.gantt.saveButtonText|The text of the task editing dialog 'Save' button\"\n saveButtonText=\"Save\"\n\n i18n-titleFieldInputLabel=\"kendo.gantt.titleFieldInputLabel|The label of the 'title' field input in editing mode\"\n titleFieldInputLabel=\"Title\"\n\n i18n-startFieldInputLabel=\"kendo.gantt.startFieldInputLabel|The label of the 'start' field input in editing mode\"\n startFieldInputLabel=\"Start\"\n\n i18n-endFieldInputLabel=\"kendo.gantt.endFieldInputLabel|The label of the 'end' field input in editing mode\"\n endFieldInputLabel=\"End\"\n\n i18n-completionRatioFieldInputLabel=\"kendo.gantt.completionRatioFieldInputLabel|The label of the 'completionRatio' field input in editing mode\"\n completionRatioFieldInputLabel=\"Progress\"\n\n i18n-dayViewText=\"kendo.gantt.dayViewText|The text of the day view in the ViewSelector component\"\n dayViewText=\"Day\"\n\n i18n-weekViewText=\"kendo.gantt.weekViewText|The text of the week view in the ViewSelector component\"\n weekViewText=\"Week\"\n\n i18n-monthViewText=\"kendo.gantt.monthViewText|The text of the month view in the ViewSelector component\"\n monthViewText=\"Month\"\n\n i18n-yearViewText-disabled=\"kendo.gantt.yearViewText|The text of the year view in the ViewSelector component\"\n yearViewText=\"Year\"\n\n i18n-addTaskText=\"kendo.gantt.addTaskText|The text of the DropDownButton in the AddTask component\"\n addTaskText=\"Add Task\"\n\n i18n-addChildText=\"kendo.gantt.addChildText|The text of the 'Add Child' option in the AddTask component\"\n addChildText=\"Add Child\"\n\n i18n-addAboveText=\"kendo.gantt.addAboveText|The text of the 'Add Above' option in the AddTask component\"\n addAboveText=\"Add Above\"\n\n i18n-addBelowText=\"kendo.gantt.addBelowText|The text of the 'Add Below' option in the AddTask component\"\n addBelowText=\"Add Below\"\n\n i18n-noRecords=\"kendo.gantt.noRecords|The label visible in the TreeList when there are no records\"\n noRecords=\"No records available.\"\n\n i18n-filter=\"kendo.gantt.filter|The label of the filter cell or icon\"\n filter=\"Filter\"\n\n i18n-filterEqOperator=\"kendo.gantt.filterEqOperator|The text of the equal filter operator\"\n filterEqOperator=\"Is equal to\"\n\n i18n-filterNotEqOperator=\"kendo.gantt.filterNotEqOperator|The text of the not equal filter operator\"\n filterNotEqOperator=\"Is not equal to\"\n\n i18n-filterIsNullOperator=\"kendo.gantt.filterIsNullOperator|The text of the is null filter operator\"\n filterIsNullOperator=\"Is null\"\n\n i18n-filterIsNotNullOperator=\"kendo.gantt.filterIsNotNullOperator|The text of the is not null filter operator\"\n filterIsNotNullOperator=\"Is not null\"\n\n i18n-filterIsEmptyOperator=\"kendo.gantt.filterIsEmptyOperator|The text of the is empty filter operator\"\n filterIsEmptyOperator=\"Is empty\"\n\n i18n-filterIsNotEmptyOperator=\"kendo.gantt.filterIsNotEmptyOperator|The text of the is not empty filter operator\"\n filterIsNotEmptyOperator=\"Is not empty\"\n\n i18n-filterStartsWithOperator=\"kendo.gantt.filterStartsWithOperator|The text of the starts with filter operator\"\n filterStartsWithOperator=\"Starts with\"\n\n i18n-filterContainsOperator=\"kendo.gantt.filterContainsOperator|The text of the contains filter operator\"\n filterContainsOperator=\"Contains\"\n\n i18n-filterNotContainsOperator=\"kendo.gantt.filterNotContainsOperator|The text of the does not contain filter operator\"\n filterNotContainsOperator=\"Does not contain\"\n\n i18n-filterEndsWithOperator=\"kendo.gantt.filterEndsWithOperator|The text of the ends with filter operator\"\n filterEndsWithOperator=\"Ends with\"\n\n i18n-filterGteOperator=\"kendo.gantt.filterGteOperator|The text of the greater than or equal filter operator\"\n filterGteOperator=\"Is greater than or equal to\"\n\n i18n-filterGtOperator=\"kendo.gantt.filterGtOperator|The text of the greater than filter operator\"\n filterGtOperator=\"Is greater than\"\n\n i18n-filterLteOperator=\"kendo.gantt.filterLteOperator|The text of the less than or equal filter operator\"\n filterLteOperator=\"Is less than or equal to\"\n\n i18n-filterLtOperator=\"kendo.gantt.filterLtOperator|The text of the less than filter operator\"\n filterLtOperator=\"Is less than\"\n\n i18n-filterIsTrue=\"kendo.gantt.filterIsTrue|The text of the IsTrue boolean filter option\"\n filterIsTrue=\"Is True\"\n\n i18n-filterIsFalse=\"kendo.gantt.filterIsFalse|The text of the IsFalse boolean filter option\"\n filterIsFalse=\"Is False\"\n\n i18n-filterBooleanAll=\"kendo.gantt.filterBooleanAll|The text of the (All) boolean filter option\"\n filterBooleanAll=\"(All)\"\n\n i18n-filterAfterOrEqualOperator=\"kendo.gantt.filterAfterOrEqualOperator|The text of the after or equal date filter operator\"\n filterAfterOrEqualOperator=\"Is after or equal to\"\n\n i18n-filterAfterOperator=\"kendo.gantt.filterAfterOperator|The text of the after date filter operator\"\n filterAfterOperator=\"Is after\"\n\n i18n-filterBeforeOperator=\"kendo.gantt.filterBeforeOperator|The text of the before date filter operator\"\n filterBeforeOperator=\"Is before\"\n\n i18n-filterBeforeOrEqualOperator=\"kendo.gantt.filterBeforeOrEqualOperator|The text of the before or equal date filter operator\"\n filterBeforeOrEqualOperator=\"Is before or equal to\"\n\n i18n-filterFilterButton=\"kendo.gantt.filterFilterButton|The text of the filter button\"\n filterFilterButton=\"Filter\"\n\n i18n-filterClearButton=\"kendo.gantt.filterClearButton|The text of the clear filter button\"\n filterClearButton=\"Clear\"\n\n i18n-filterAndLogic=\"kendo.gantt.filterAndLogic|The text of the And filter logic\"\n filterAndLogic=\"And\"\n\n i18n-filterOrLogic=\"kendo.gantt.filterOrLogic|The text of the Or filter logic\"\n filterOrLogic=\"Or\"\n\n i18n-loading=\"kendo.gantt.loading|The loading text\"\n loading=\"Loading\"\n\n i18n-columnMenu=\"kendo.gantt.columnMenu|The title of the column menu icon\"\n columnMenu=\"Column Menu\"\n\n i18n-columns=\"kendo.gantt.columns|The text shown in the column menu for the columns item\"\n columns=\"Columns\"\n\n i18n-lock-disabled=\"kendo.gantt.lock|The text shown in the column menu for the lock item\"\n lock-disabled=\"Lock\"\n\n i18n-unlock-disabled=\"kendo.gantt.unlock|The text shown in the column menu for the unlock item\"\n unlock-disabled=\"Unlock\"\n\n i18n-sortable=\"kendo.gantt.sortable|The label of the sort icon\"\n sortable=\"Sortable\"\n\n i18n-sortAscending=\"kendo.gantt.sortAscending|The text shown in the column menu for the sort ascending item\"\n sortAscending=\"Sort Ascending\"\n\n i18n-sortDescending=\"kendo.gantt.sortDescending|The text shown in the column menu for the sort descending item\"\n sortDescending=\"Sort Descending\"\n\n i18n-sortedAscending=\"kendo.gantt.sortedAscending|The status announcement when a column is sorted ascending\"\n sortedAscending=\"Sorted Ascending\"\n\n i18n-sortedDescending=\"kendo.gantt.sortedDescending|The status announcement when a column is sorted descending\"\n sortedDescending=\"Sorted Descending\"\n\n i18n-sortedDefault=\"kendo.gantt.sortedDefault|The status announcement when a column is no longer sorted\"\n sortedDefault=\"Not Sorted\"\n\n i18n-columnsApply=\"kendo.gantt.columnsApply|The text shown in the column menu or column chooser for the columns apply button\"\n columnsApply=\"Apply\"\n\n i18n-columnsReset=\"kendo.gantt.columnsReset|The text shown in the column menu or column chooser for the columns reset button\"\n columnsReset=\"Reset\"></ng-container>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('top')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'top' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'top' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-header k-toolbar k-gantt-toolbar\"\n position=\"top\"></kendo-gantt-toolbar>\n <div class=\"k-gantt-content\">\n <kendo-splitter [style.border]=\"0\">\n <kendo-splitter-pane\n class=\"k-gantt-treelist k-gantt-treelist-scrollable\"\n [collapsible]=\"treeListPaneOptions?.collapsible\"\n [collapsed]=\"treeListPaneOptions?.collapsed\"\n (collapsedChange)=\"onTreeListCollapsedChange($event)\"\n [scrollable]=\"false\">\n <kendo-treelist\n [idField]=\"taskIdField\"\n [columns]=\"columns\"\n [data]=\"data\"\n [hasChildren]=\"hasChildren\"\n [fetchChildren]=\"fetchChildren\"\n [isExpanded]=\"isExpanded\"\n [autoSize]=\"columnsAutoSize\"\n [columnMenu]=\"columnMenu\"\n [reorderable]=\"columnsReorderable\"\n [resizable]=\"columnsResizable\"\n [rowClass]=\"rowClass\"\n [isSelected]=\"isSelected\"\n [selectable]=\"selectable\"\n [sortable]=\"sortable\"\n [sort]=\"sort\"\n [filterable]=\"filterMenu\"\n [filter]=\"filter\"\n (filterChange)=\"filterChange.emit($event)\"\n (sortChange)=\"sortChange.emit($event)\"\n (dataStateChange)=\"dataStateChange.emit({\n filter: $event.filter,\n sort: $event.sort\n })\"\n (expandStateChange)=\"expandStateChange.emit($event)\"\n (expand)=\"rowExpand.emit({ dataItem: $event.dataItem })\"\n (collapse)=\"rowCollapse.emit({ dataItem: $event.dataItem })\"\n (columnReorder)=\"columnReorder.emit($event)\"\n (columnResize)=\"columnResize.emit($event)\"\n (columnVisibilityChange)=\"handleColumnVisibilityChange($event)\"\n (columnLockedChange)=\"columnLockedChange.emit($event)\"\n (selectionChange)=\"handleTreeListSelectionChange($event)\"\n (cellClick)=\"handleTreeListCellClick($event)\"\n (cellClose)=\"handleCellClose($event)\"\n [kendoEventsOutsideAngular]=\"{\n dblclick: handleTreeListDoubleClick\n }\"\n [scope]=\"this\"\n >\n <kendo-treelist-messages\n [noRecords]=\"getText('noRecords')\"\n [filter]=\"getText('filter')\"\n [filterEqOperator]=\"getText('filterEqOperator')\"\n [filterNotEqOperator]=\"getText('filterNotEqOperator')\"\n [filterIsNullOperator]=\"getText('filterIsNullOperator')\"\n [filterIsNotNullOperator]=\"getText('filterIsNotNullOperator')\"\n [filterIsEmptyOperator]=\"getText('filterIsEmptyOperator')\"\n [filterIsNotEmptyOperator]=\"getText('filterIsNotEmptyOperator')\"\n [filterStartsWithOperator]=\"getText('filterStartsWithOperator')\"\n [filterContainsOperator]=\"getText('filterContainsOperator')\"\n [filterNotContainsOperator]=\"getText('filterNotContainsOperator')\"\n [filterEndsWithOperator]=\"getText('filterEndsWithOperator')\"\n [filterGteOperator]=\"getText('filterGteOperator')\"\n [filterGtOperator]=\"getText('filterGtOperator')\"\n [filterLteOperator]=\"getText('filterLteOperator')\"\n [filterLtOperator]=\"getText('filterLtOperator')\"\n [filterIsTrue]=\"getText('filterIsTrue')\"\n [filterIsFalse]=\"getText('filterIsFalse')\"\n [filterBooleanAll]=\"getText('filterBooleanAll')\"\n [filterAfterOrEqualOperator]=\"getText('filterAfterOrEqualOperator')\"\n [filterAfterOperator]=\"getText('filterAfterOperator')\"\n [filterBeforeOperator]=\"getText('filterBeforeOperator')\"\n [filterBeforeOrEqualOperator]=\"getText('filterBeforeOrEqualOperator')\"\n [filterFilterButton]=\"getText('filterFilterButton')\"\n [filterClearButton]=\"getText('filterClearButton')\"\n [filterAndLogic]=\"getText('filterAndLogic')\"\n [filterOrLogic]=\"getText('filterOrLogic')\"\n [loading]=\"getText('loading')\"\n [columnMenu]=\"getText('columnMenu')\"\n [columns]=\"getText('columns')\"\n [sortable]=\"getText('sortable')\"\n [sortAscending]=\"getText('sortAscending')\"\n [sortDescending]=\"getText('sortDescending')\"\n [sortedAscending]=\"getText('sortedAscending')\"\n [sortedDescending]=\"getText('sortedDescending')\"\n [sortedDefault]=\"getText('sortedDefault')\"\n [columnsApply]=\"getText('columnsApply')\"\n [columnsReset]=\"getText('columnsReset')\"\n >\n </kendo-treelist-messages>\n </kendo-treelist>\n </kendo-splitter-pane>\n <kendo-splitter-pane\n [collapsible]=\"timelinePaneOptions?.collapsible\"\n [resizable]=\"timelinePaneOptions?.resizable\"\n [collapsed]=\"timelinePaneOptions?.collapsed\"\n [min]=\"timelinePaneOptions?.min\"\n [max]=\"timelinePaneOptions?.max\"\n [size]=\"timelinePaneOptions?.size\"\n (collapsedChange)=\"onTimelineCollapsedChange($event)\"\n (sizeChange)=\"onTimelinePaneSizeChange($event)\"\n [scrollable]=\"false\">\n <kendo-gantt-timeline\n *ngIf=\"views && views.length\"\n [renderDependencyDragClues]=\"renderDependencyDragClues\"\n [dragScrollSettings]=\"dragScrollSettings\"\n [rows]=\"renderedTreeListItems\"\n [slots]=\"timelineSlots\"\n [groupSlots]=\"timelineGroupSlots\"\n [tableWidth]=\"tableWidth\"\n [activeView]=\"activeView\"\n [taskContentTemplate]=\"taskContentTemplate?.templateRef\"\n [taskTemplate]=\"taskTemplate?.templateRef\"\n [summaryTaskTemplate]=\"summaryTaskTemplate?.templateRef\"\n [taskClass]=\"taskClass\"\n [dependencies]=\"dependencies\"\n [hasChildren]=\"hasChildren\"\n [isTaskSelected]=\"isTaskSelected\"\n [kendoEventsOutsideAngular]=\"{\n click: handleTimelineClick,\n contextmenu: handleTimelineRightClick,\n dblclick: handleTimelineDblClick,\n mousedown: handleTimelineMouseDown\n }\"\n [scope]=\"this\"\n ></kendo-gantt-timeline>\n </kendo-splitter-pane>\n </kendo-splitter>\n </div>\n <kendo-gantt-toolbar\n *ngIf=\"showToolbar('bottom')\"\n [showAddTask]=\"toolbarSettings.addTaskTool === 'bottom' || toolbarSettings.addTaskTool === 'both'\"\n [showViewSelector]=\"toolbarSettings.viewSelectorTool === 'bottom' || toolbarSettings.viewSelectorTool === 'both'\"\n class=\"k-gantt-footer k-toolbar k-gantt-toolbar\"\n position=\"bottom\"></kendo-gantt-toolbar>\n <kendo-gantt-edit-dialog\n *ngIf=\"showEditingDialog\"\n [data]=\"data\">\n </kendo-gantt-edit-dialog>\n <kendo-dialog\n *ngIf=\"showConfirmationDialog\"\n [width]=\"575\"\n [height]=\"170\"\n [title]=\"getText('confirmationDialogTitle')\"\n (close)=\"showConfirmationDialog = false;\">\n <span>{{ getText('confirmationDialogContent') }}</span>\n <kendo-dialog-actions layout=\"normal\">\n <kendo-treelist-spacer></kendo-treelist-spacer>\n <button kendoButton [primary]=\"true\" (click)=\"handleDeleteConfirmation()\">{{ getText('deleteButtonText') }}</button>\n <button kendoButton (click)=\"showConfirmationDialog = false;\">{{ getText('cancelButtonText') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "
|
|
1337
1455
|
}),
|
|
1338
1456
|
tslib_1.__metadata("design:paramtypes", [timeline_view_service_1.TimelineViewService,
|
|
1339
1457
|
scroll_sync_service_1.ScrollSyncService,
|
package/dist/npm/gantt.module.js
CHANGED
|
@@ -7,11 +7,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
8
|
var core_1 = require("@angular/core");
|
|
9
9
|
var common_1 = require("@angular/common");
|
|
10
|
+
var forms_1 = require("@angular/forms");
|
|
10
11
|
var kendo_angular_layout_1 = require("@progress/kendo-angular-layout");
|
|
11
12
|
var kendo_angular_treelist_1 = require("@progress/kendo-angular-treelist");
|
|
12
13
|
var kendo_angular_buttons_1 = require("@progress/kendo-angular-buttons");
|
|
13
14
|
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
14
15
|
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
16
|
+
var kendo_angular_label_1 = require("@progress/kendo-angular-label");
|
|
17
|
+
var kendo_angular_inputs_1 = require("@progress/kendo-angular-inputs");
|
|
18
|
+
var kendo_angular_dateinputs_1 = require("@progress/kendo-angular-dateinputs");
|
|
19
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
20
|
+
var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
|
|
21
|
+
var kendo_common_1 = require("@progress/kendo-common");
|
|
22
|
+
var touch_enabled_1 = require("./common/touch-enabled");
|
|
15
23
|
var gantt_component_1 = require("./gantt.component");
|
|
16
24
|
var gantt_timeline_component_1 = require("./timeline/gantt-timeline.component");
|
|
17
25
|
var gantt_tasks_table_body_component_1 = require("./rendering/gantt-tasks-table-body.component");
|
|
@@ -30,17 +38,15 @@ var toolbar_component_1 = require("./toolbar/toolbar.component");
|
|
|
30
38
|
var toolbar_template_directive_1 = require("./toolbar/toolbar-template.directive");
|
|
31
39
|
var view_selector_component_1 = require("./toolbar/view-selector.component");
|
|
32
40
|
var gantt_dependency_directive_1 = require("./dependencies/gantt-dependency.directive");
|
|
41
|
+
var dependency_drag_create_directive_1 = require("./dragging/dependency-drag-create.directive");
|
|
42
|
+
var drag_validation_tooltip_component_1 = require("./dragging/drag-validation-tooltip.component");
|
|
43
|
+
var timeline_scroll_directive_1 = require("./scrolling/timeline-scroll.directive");
|
|
33
44
|
var columns_1 = require("./columns/columns");
|
|
34
45
|
var timeline_day_view_component_1 = require("./timeline/timeline-day-view.component");
|
|
35
46
|
var timeline_week_view_component_1 = require("./timeline/timeline-week-view.component");
|
|
36
47
|
var timeline_month_view_component_1 = require("./timeline/timeline-month-view.component");
|
|
37
48
|
var edit_dialog_component_1 = require("./editing/edit-dialog.component");
|
|
38
|
-
var forms_1 = require("@angular/forms");
|
|
39
|
-
var kendo_angular_label_1 = require("@progress/kendo-angular-label");
|
|
40
|
-
var kendo_angular_inputs_1 = require("@progress/kendo-angular-inputs");
|
|
41
|
-
var kendo_angular_dateinputs_1 = require("@progress/kendo-angular-dateinputs");
|
|
42
49
|
var custom_messages_component_1 = require("./localization/custom-messages.component");
|
|
43
|
-
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
44
50
|
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
|
|
45
51
|
var add_task_component_1 = require("./editing/add-task.component");
|
|
46
52
|
var kendo_angular_grid_1 = require("@progress/kendo-angular-grid");
|
|
@@ -59,6 +65,8 @@ var IMPORTED_MODULES = [
|
|
|
59
65
|
kendo_angular_buttons_1.ButtonsModule,
|
|
60
66
|
kendo_angular_dialog_1.DialogModule,
|
|
61
67
|
kendo_angular_common_1.EventsModule,
|
|
68
|
+
kendo_angular_popup_1.PopupModule,
|
|
69
|
+
kendo_angular_common_1.DraggableModule,
|
|
62
70
|
kendo_angular_layout_1.TabStripModule,
|
|
63
71
|
kendo_angular_grid_1.GridModule,
|
|
64
72
|
kendo_angular_dropdowns_1.DropDownsModule
|
|
@@ -91,6 +99,7 @@ var DECLARATIONS = [
|
|
|
91
99
|
columns_1.FooterTemplateDirective,
|
|
92
100
|
expandable_directive_1.GanttExpandableDirective,
|
|
93
101
|
gantt_dependency_directive_1.GanttDependencyDirective,
|
|
102
|
+
dependency_drag_create_directive_1.DependencyDragCreateDirective,
|
|
94
103
|
timeline_day_view_component_1.TimelineDayViewComponent,
|
|
95
104
|
timeline_week_view_component_1.TimelineWeekViewComponent,
|
|
96
105
|
timeline_month_view_component_1.TimelineMonthViewComponent,
|
|
@@ -99,9 +108,13 @@ var DECLARATIONS = [
|
|
|
99
108
|
custom_messages_component_1.CustomMessagesComponent,
|
|
100
109
|
localized_messages_directive_1.LocalizedMessagesDirective,
|
|
101
110
|
add_task_component_1.GanttAddTaskComponent,
|
|
111
|
+
drag_validation_tooltip_component_1.DragValidationTooltipComponent,
|
|
112
|
+
timeline_scroll_directive_1.TimelineScrollableDirective,
|
|
102
113
|
dependencies_table_component_1.DependenciesTableComponent,
|
|
103
114
|
task_fields_component_1.TaskFieldsComponent
|
|
104
115
|
];
|
|
116
|
+
var ɵ0 = kendo_common_1.touchEnabled;
|
|
117
|
+
exports.ɵ0 = ɵ0;
|
|
105
118
|
/**
|
|
106
119
|
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
107
120
|
* definition for the Gantt component.
|
|
@@ -141,9 +154,13 @@ var GanttModule = /** @class */ (function () {
|
|
|
141
154
|
imports: IMPORTED_MODULES.slice(),
|
|
142
155
|
declarations: DECLARATIONS.slice(),
|
|
143
156
|
exports: DECLARATIONS.slice(),
|
|
157
|
+
entryComponents: [drag_validation_tooltip_component_1.DragValidationTooltipComponent],
|
|
144
158
|
providers: [{
|
|
145
159
|
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
146
160
|
useValue: 'kendo.gantt'
|
|
161
|
+
}, {
|
|
162
|
+
provide: touch_enabled_1.TOUCH_ENABLED,
|
|
163
|
+
useValue: ɵ0
|
|
147
164
|
}]
|
|
148
165
|
})
|
|
149
166
|
], GanttModule);
|
package/dist/npm/index.js
CHANGED
|
@@ -13,10 +13,14 @@ var mapping_service_1 = require("./common/mapping.service");
|
|
|
13
13
|
exports.MappingService = mapping_service_1.MappingService
|
|
14
14
|
var option_changes_service_1 = require("./common/option-changes.service");
|
|
15
15
|
exports.OptionChangesService = option_changes_service_1.OptionChangesService
|
|
16
|
+
var touch_enabled_1 = require("./common/touch-enabled");
|
|
17
|
+
exports.TOUCH_ENABLED = touch_enabled_1.TOUCH_ENABLED
|
|
16
18
|
var dependency_dom_service_1 = require("./dependencies/dependency-dom.service");
|
|
17
19
|
exports.DependencyDomService = dependency_dom_service_1.DependencyDomService
|
|
18
20
|
var gantt_dependency_directive_1 = require("./dependencies/gantt-dependency.directive");
|
|
19
21
|
exports.GanttDependencyDirective = gantt_dependency_directive_1.GanttDependencyDirective
|
|
22
|
+
var drag_validation_tooltip_component_1 = require("./dragging/drag-validation-tooltip.component");
|
|
23
|
+
exports.DragValidationTooltipComponent = drag_validation_tooltip_component_1.DragValidationTooltipComponent
|
|
20
24
|
var add_task_component_1 = require("./editing/add-task.component");
|
|
21
25
|
exports.GanttAddTaskComponent = add_task_component_1.GanttAddTaskComponent
|
|
22
26
|
var dependencies_table_component_1 = require("./editing/dependencies-table.component");
|
|
@@ -51,6 +55,10 @@ var gantt_tasks_table_body_component_1 = require("./rendering/gantt-tasks-table-
|
|
|
51
55
|
exports.GanttTasksTableBodyComponent = gantt_tasks_table_body_component_1.GanttTasksTableBodyComponent
|
|
52
56
|
var scroll_sync_service_1 = require("./scrolling/scroll-sync.service");
|
|
53
57
|
exports.ScrollSyncService = scroll_sync_service_1.ScrollSyncService
|
|
58
|
+
var timeline_scroll_directive_1 = require("./scrolling/timeline-scroll.directive");
|
|
59
|
+
exports.TimelineScrollableDirective = timeline_scroll_directive_1.TimelineScrollableDirective
|
|
60
|
+
var timeline_scroll_service_1 = require("./scrolling/timeline-scroll.service");
|
|
61
|
+
exports.TimelineScrollService = timeline_scroll_service_1.TimelineScrollService
|
|
54
62
|
var gantt_timeline_component_1 = require("./timeline/gantt-timeline.component");
|
|
55
63
|
exports.GanttTimelineComponent = gantt_timeline_component_1.GanttTimelineComponent
|
|
56
64
|
var timeline_base_view_service_1 = require("./timeline/timeline-base-view.service");
|
package/dist/npm/main.js
CHANGED
|
@@ -15,6 +15,8 @@ var flat_binding_directive_1 = require("./binding-directives/flat-binding.direct
|
|
|
15
15
|
exports.GanttFlatBindingDirective = flat_binding_directive_1.GanttFlatBindingDirective;
|
|
16
16
|
var expandable_directive_1 = require("./expanded-state/expandable.directive");
|
|
17
17
|
exports.GanttExpandableDirective = expandable_directive_1.GanttExpandableDirective;
|
|
18
|
+
var dependency_drag_create_directive_1 = require("./dragging/dependency-drag-create.directive");
|
|
19
|
+
exports.DependencyDragCreateDirective = dependency_drag_create_directive_1.DependencyDragCreateDirective;
|
|
18
20
|
var task_template_directive_1 = require("./template-directives/task-template.directive");
|
|
19
21
|
exports.GanttTaskTemplateDirective = task_template_directive_1.GanttTaskTemplateDirective;
|
|
20
22
|
var task_content_template_directive_1 = require("./template-directives/task-content-template.directive");
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-gantt',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1642086647,
|
|
15
15
|
version: '',
|
|
16
16
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
17
17
|
};
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
8
|
var core_1 = require("@angular/core");
|
|
9
9
|
var mapping_service_1 = require("../common/mapping.service");
|
|
10
|
+
var touch_enabled_1 = require("../common/touch-enabled");
|
|
10
11
|
var dependency_dom_service_1 = require("../dependencies/dependency-dom.service");
|
|
11
12
|
var option_changes_service_1 = require("../common/option-changes.service");
|
|
12
13
|
var timeline_view_service_1 = require("./../timeline/timeline-view.service");
|
|
@@ -16,8 +17,9 @@ var gantt_task_base_1 = require("./gantt-task-base");
|
|
|
16
17
|
*/
|
|
17
18
|
var GanttMilestoneTaskComponent = /** @class */ (function (_super) {
|
|
18
19
|
tslib_1.__extends(GanttMilestoneTaskComponent, _super);
|
|
19
|
-
function GanttMilestoneTaskComponent(mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) {
|
|
20
|
+
function GanttMilestoneTaskComponent(touchEnabled, mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) {
|
|
20
21
|
var _this = _super.call(this, mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) || this;
|
|
22
|
+
_this.touchEnabled = touchEnabled;
|
|
21
23
|
_this.milestoneWrapperClass = true;
|
|
22
24
|
return _this;
|
|
23
25
|
}
|
|
@@ -36,9 +38,10 @@ var GanttMilestoneTaskComponent = /** @class */ (function (_super) {
|
|
|
36
38
|
useExisting: core_1.forwardRef(function () { return GanttMilestoneTaskComponent_1; })
|
|
37
39
|
}
|
|
38
40
|
],
|
|
39
|
-
template: "\n <div\n #task\n class=\"k-task k-task-milestone\"\n [ngClass]=\"taskClass(dataItem)\"\n [
|
|
41
|
+
template: "\n <div\n #task\n class=\"k-task k-task-milestone\"\n [ngClass]=\"taskClass(dataItem)\"\n [attr.title]=\"mapper.extractFromTask(dataItem, 'title')\"\n [class.k-state-selected]=\"isSelected(dataItem)\"\n >\n </div>\n <ng-container *ngIf=\"renderDependencyDragClues\">\n <div\n class=\"k-task-dot k-task-start k-touch-action-none\"\n [class.k-display-block]=\"touchEnabled\"\n >\n </div>\n <div\n class=\"k-task-dot k-task-end k-touch-action-none\"\n [class.k-display-block]=\"touchEnabled\"\n >\n </div>\n </ng-container>\n "
|
|
40
42
|
}),
|
|
41
|
-
tslib_1.
|
|
43
|
+
tslib_1.__param(0, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
|
|
44
|
+
tslib_1.__metadata("design:paramtypes", [Boolean, mapping_service_1.MappingService,
|
|
42
45
|
timeline_view_service_1.TimelineViewService,
|
|
43
46
|
dependency_dom_service_1.DependencyDomService,
|
|
44
47
|
option_changes_service_1.OptionChangesService,
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var tslib_1 = require("tslib");
|
|
8
8
|
var core_1 = require("@angular/core");
|
|
9
9
|
var mapping_service_1 = require("../common/mapping.service");
|
|
10
|
+
var touch_enabled_1 = require("../common/touch-enabled");
|
|
10
11
|
var dependency_dom_service_1 = require("../dependencies/dependency-dom.service");
|
|
11
12
|
var option_changes_service_1 = require("../common/option-changes.service");
|
|
12
13
|
var timeline_view_service_1 = require("./../timeline/timeline-view.service");
|
|
@@ -16,8 +17,9 @@ var gantt_task_base_1 = require("./gantt-task-base");
|
|
|
16
17
|
*/
|
|
17
18
|
var GanttSummaryTaskComponent = /** @class */ (function (_super) {
|
|
18
19
|
tslib_1.__extends(GanttSummaryTaskComponent, _super);
|
|
19
|
-
function GanttSummaryTaskComponent(mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) {
|
|
20
|
+
function GanttSummaryTaskComponent(touchEnabled, mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) {
|
|
20
21
|
var _this = _super.call(this, mapper, timelineViewService, dependencyDomService, optionChangesService, cdr) || this;
|
|
22
|
+
_this.touchEnabled = touchEnabled;
|
|
21
23
|
_this.summaryWrapperClass = true;
|
|
22
24
|
return _this;
|
|
23
25
|
}
|
|
@@ -40,9 +42,10 @@ var GanttSummaryTaskComponent = /** @class */ (function (_super) {
|
|
|
40
42
|
useExisting: core_1.forwardRef(function () { return GanttSummaryTaskComponent_1; })
|
|
41
43
|
}
|
|
42
44
|
],
|
|
43
|
-
template: "\n <div\n #task\n class=\"k-task k-task-summary\"\n [ngClass]=\"taskClass(dataItem)\"\n [style.width.px]=\"taskWidth\"\n [
|
|
45
|
+
template: "\n <div\n #task\n class=\"k-task k-task-summary\"\n [ngClass]=\"taskClass(dataItem)\"\n [style.width.px]=\"taskWidth\"\n [attr.title]=\"mapper.extractFromTask(dataItem, 'title')\"\n [class.k-state-selected]=\"isSelected(dataItem)\"\n >\n <div *ngIf=\"!template; else summaryTemplate\"\n class=\"k-task-summary-progress\"\n [style.width.px]=\"taskWidth\">\n <div\n class=\"k-task-summary-complete\"\n [style.width.px]=\"completionOverlayWidth\"\n >\n </div>\n </div>\n <ng-template\n #summaryTemplate\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{\n $implicit: dataItem,\n elementWidth: taskWidth\n }\"\n >\n </ng-template>\n </div>\n <ng-container *ngIf=\"renderDependencyDragClues\">\n <div\n class=\"k-task-dot k-task-start k-touch-action-none\"\n [class.k-display-block]=\"touchEnabled\"\n >\n </div>\n <div\n class=\"k-task-dot k-task-end k-touch-action-none\"\n [class.k-display-block]=\"touchEnabled\"\n >\n </div>\n </ng-container>\n "
|
|
44
46
|
}),
|
|
45
|
-
tslib_1.
|
|
47
|
+
tslib_1.__param(0, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
|
|
48
|
+
tslib_1.__metadata("design:paramtypes", [Boolean, mapping_service_1.MappingService,
|
|
46
49
|
timeline_view_service_1.TimelineViewService,
|
|
47
50
|
dependency_dom_service_1.DependencyDomService,
|
|
48
51
|
option_changes_service_1.OptionChangesService,
|