@progress/kendo-angular-gantt 2.0.0-next.202204010911 → 2.0.0-next.202204121022
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/binding-directives/flat-binding.directive.d.ts +24 -0
- package/binding-directives/hierarchy-binding.directive.d.ts +22 -0
- package/bundles/kendo-angular-gantt.umd.js +1 -1
- package/columns/cell-template.directive.d.ts +28 -0
- package/columns/column-base.d.ts +85 -0
- package/columns/column-group.component.d.ts +103 -0
- package/columns/column-menu-template.directive.d.ts +22 -0
- package/columns/column.component.d.ts +130 -0
- package/columns/columns.d.ts +15 -0
- package/columns/edit-template.directive.d.ts +26 -0
- package/columns/filter-cell-template.directive.d.ts +21 -0
- package/columns/filter-menu-template.directive.d.ts +20 -0
- package/columns/footer-template.directive.d.ts +24 -0
- package/columns/header-template.directive.d.ts +22 -0
- package/columns/span-column.component.d.ts +112 -0
- package/common/default-callbacks.d.ts +25 -0
- package/common/mapping.service.d.ts +38 -0
- package/common/option-changes.service.d.ts +17 -0
- package/common/touch-enabled.d.ts +9 -0
- package/dependencies/dependency-dom.service.d.ts +46 -0
- package/dependencies/dom-dependency-args.d.ts +24 -0
- package/dependencies/gantt-dependency.directive.d.ts +29 -0
- package/dependencies/utils.d.ts +53 -0
- package/dragging/dependency-drag-create.directive.d.ts +75 -0
- package/dragging/drag-validation-tooltip.component.d.ts +32 -0
- package/editing/add-task.component.d.ts +48 -0
- package/editing/dependencies-table.component.d.ts +42 -0
- package/editing/edit-dialog.component.d.ts +33 -0
- package/editing/edit.service.d.ts +44 -0
- package/editing/task-fields.component.d.ts +25 -0
- package/editing/utils.d.ts +10 -0
- package/esm2015/binding-directives/flat-binding.directive.js +34 -0
- package/esm2015/binding-directives/hierarchy-binding.directive.js +32 -0
- package/esm2015/columns/cell-template.directive.js +37 -0
- package/esm2015/columns/column-base.js +52 -0
- package/esm2015/columns/column-group.component.js +94 -0
- package/esm2015/columns/column-menu-template.directive.js +31 -0
- package/esm2015/columns/column.component.js +133 -0
- package/esm2015/columns/columns.js +15 -0
- package/esm2015/columns/edit-template.directive.js +35 -0
- package/esm2015/columns/filter-cell-template.directive.js +30 -0
- package/esm2015/columns/filter-menu-template.directive.js +29 -0
- package/esm2015/columns/footer-template.directive.js +33 -0
- package/esm2015/columns/header-template.directive.js +31 -0
- package/esm2015/columns/span-column.component.js +86 -0
- package/esm2015/common/default-callbacks.js +25 -0
- package/esm2015/common/mapping.service.js +64 -0
- package/esm2015/common/option-changes.service.js +26 -0
- package/esm2015/common/touch-enabled.js +9 -0
- package/esm2015/dependencies/dependency-dom.service.js +70 -0
- package/esm2015/dependencies/dom-dependency-args.js +5 -0
- package/esm2015/dependencies/gantt-dependency.directive.js +82 -0
- package/esm2015/dependencies/utils.js +195 -0
- package/esm2015/dragging/dependency-drag-create.directive.js +318 -0
- package/esm2015/dragging/drag-validation-tooltip.component.js +90 -0
- package/esm2015/editing/add-task.component.js +109 -0
- package/esm2015/editing/dependencies-table.component.js +196 -0
- package/esm2015/editing/edit-dialog.component.js +170 -0
- package/esm2015/editing/edit.service.js +111 -0
- package/esm2015/editing/task-fields.component.js +101 -0
- package/esm2015/editing/utils.js +15 -0
- package/esm2015/expanded-state/expand-event.js +9 -0
- package/esm2015/expanded-state/expandable.directive.js +23 -0
- package/esm2015/gantt.component.js +2226 -0
- package/esm2015/gantt.module.js +264 -0
- package/esm2015/kendo-angular-gantt.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/gantt-localization.service.js +25 -0
- package/esm2015/localization/localized-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +157 -0
- package/esm2015/main.js +37 -0
- package/esm2015/models/cell-content-type.interface.js +5 -0
- package/esm2015/models/class-callbacks.js +5 -0
- package/esm2015/models/column-menu-settings.interface.js +5 -0
- package/esm2015/models/column-reorder-config.js +5 -0
- package/esm2015/models/date-range.interface.js +5 -0
- package/esm2015/models/dependency-type.enum.js +20 -0
- package/esm2015/models/events/cell-click-event.interface.js +5 -0
- package/esm2015/models/events/cell-close-event.interface.js +14 -0
- package/esm2015/models/events/click-event.interface.js +5 -0
- package/esm2015/models/events/column-locked-change-event.interface.js +5 -0
- package/esm2015/models/events/column-reorder-event.interface.js +5 -0
- package/esm2015/models/events/column-resize-event.interface.js +5 -0
- package/esm2015/models/events/column-visibility-change-event.interface.js +5 -0
- package/esm2015/models/events/data-state-change-event.interface.js +5 -0
- package/esm2015/models/events/dependency-add-event.interface.js +5 -0
- package/esm2015/models/events/selected-view-change-event.interface.js +5 -0
- package/esm2015/models/events/task-add-event.interface.js +5 -0
- package/esm2015/models/events/task-click-event.interface.js +5 -0
- package/esm2015/models/events/task-delete-event.interface.js +5 -0
- package/esm2015/models/events/task-edit-event.interface.js +5 -0
- package/esm2015/models/events/task-move-end-event.interface.js +5 -0
- package/esm2015/models/events/task-move-event.interface.js +5 -0
- package/esm2015/models/events/task-move-start-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-end-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-event.interface.js +5 -0
- package/esm2015/models/events/task-resize-start-event.interface.js +5 -0
- package/esm2015/models/filterable-settings.js +5 -0
- package/esm2015/models/gantt-dependency-model-fields.interface.js +13 -0
- package/esm2015/models/gantt-dependency.interface.js +5 -0
- package/esm2015/models/gantt-task-model-fields.interface.js +15 -0
- package/esm2015/models/gantt-task.interface.js +5 -0
- package/esm2015/models/models.js +7 -0
- package/esm2015/models/slot.interface.js +5 -0
- package/esm2015/models/sort-settings.js +17 -0
- package/esm2015/models/splitter-pane-options.interface.js +20 -0
- package/esm2015/models/timeline-options.interface.js +5 -0
- package/esm2015/models/timeline-view.js +5 -0
- package/esm2015/models/toolbar-settings.js +5 -0
- package/esm2015/models/view-item.interface.js +5 -0
- package/esm2015/navigation/navigation-models.js +5 -0
- package/esm2015/navigation/navigation.service.js +265 -0
- package/esm2015/navigation/utils.js +69 -0
- package/esm2015/package-metadata.js +15 -0
- package/esm2015/rendering/gantt-header-table-body.component.js +42 -0
- package/esm2015/rendering/gantt-milestone-task.component.js +107 -0
- package/esm2015/rendering/gantt-summary-task.component.js +158 -0
- package/esm2015/rendering/gantt-task-base.js +148 -0
- package/esm2015/rendering/gantt-task.component.js +204 -0
- package/esm2015/rendering/gantt-tasks-table-body.component.js +160 -0
- package/esm2015/scrolling/drag-scroll-settings.js +20 -0
- package/esm2015/scrolling/scroll-sync.service.js +80 -0
- package/esm2015/scrolling/timeline-scroll.directive.js +75 -0
- package/esm2015/scrolling/timeline-scroll.service.js +39 -0
- package/esm2015/scrolling/utils.js +77 -0
- package/esm2015/selection/selectable.directive.js +112 -0
- package/esm2015/selection/selection-change-event.js +5 -0
- package/esm2015/template-directives/summary-task-template.directive.js +50 -0
- package/esm2015/template-directives/task-content-template.directive.js +45 -0
- package/esm2015/template-directives/task-template.directive.js +48 -0
- package/esm2015/timeline/gantt-timeline.component.js +334 -0
- package/esm2015/timeline/timeline-base-view.service.js +160 -0
- package/esm2015/timeline/timeline-day-view.component.js +38 -0
- package/esm2015/timeline/timeline-day-view.service.js +66 -0
- package/esm2015/timeline/timeline-month-view.component.js +38 -0
- package/esm2015/timeline/timeline-month-view.service.js +64 -0
- package/esm2015/timeline/timeline-view.service.js +35 -0
- package/esm2015/timeline/timeline-week-view.component.js +38 -0
- package/esm2015/timeline/timeline-week-view.service.js +60 -0
- package/esm2015/timeline/view-base.js +45 -0
- package/esm2015/toolbar/toolbar-template.directive.js +127 -0
- package/esm2015/toolbar/toolbar.component.js +94 -0
- package/esm2015/toolbar/view-selector.component.js +96 -0
- package/esm2015/utils.js +293 -0
- package/expanded-state/expand-event.d.ts +13 -0
- package/expanded-state/expandable.directive.d.ts +20 -0
- package/fesm2015/kendo-angular-gantt.js +7706 -0
- package/gantt.component.d.ts +750 -0
- package/gantt.module.d.ts +94 -0
- package/kendo-angular-gantt.d.ts +9 -0
- package/localization/custom-messages.component.d.ts +18 -0
- package/localization/gantt-localization.service.d.ts +18 -0
- package/localization/localized-messages.directive.d.ts +16 -0
- package/localization/messages.d.ts +293 -0
- package/main.d.ts +39 -0
- package/models/cell-content-type.interface.d.ts +10 -0
- package/models/class-callbacks.d.ts +43 -0
- package/models/column-menu-settings.interface.d.ts +26 -0
- package/models/column-reorder-config.d.ts +10 -0
- package/models/date-range.interface.d.ts +19 -0
- package/models/dependency-type.enum.d.ts +19 -0
- package/models/events/cell-click-event.interface.d.ts +43 -0
- package/models/events/cell-close-event.interface.d.ts +48 -0
- package/models/events/click-event.interface.d.ts +23 -0
- package/models/events/column-locked-change-event.interface.d.ts +16 -0
- package/models/events/column-reorder-event.interface.d.ts +10 -0
- package/models/events/column-resize-event.interface.d.ts +10 -0
- package/models/events/column-visibility-change-event.interface.d.ts +14 -0
- package/models/events/data-state-change-event.interface.d.ts +10 -0
- package/models/events/dependency-add-event.interface.d.ts +26 -0
- package/models/events/selected-view-change-event.interface.d.ts +19 -0
- package/models/events/task-add-event.interface.d.ts +31 -0
- package/models/events/task-click-event.interface.d.ts +30 -0
- package/models/events/task-delete-event.interface.d.ts +21 -0
- package/models/events/task-edit-event.interface.d.ts +76 -0
- package/models/events/task-move-end-event.interface.d.ts +12 -0
- package/models/events/task-move-event.interface.d.ts +23 -0
- package/models/events/task-move-start-event.interface.d.ts +15 -0
- package/models/events/task-resize-end-event.interface.d.ts +12 -0
- package/models/events/task-resize-event.interface.d.ts +23 -0
- package/models/events/task-resize-start-event.interface.d.ts +15 -0
- package/models/filterable-settings.d.ts +10 -0
- package/models/gantt-dependency-model-fields.interface.d.ts +35 -0
- package/models/gantt-dependency.interface.d.ts +26 -0
- package/models/gantt-task-model-fields.interface.d.ts +42 -0
- package/models/gantt-task.interface.d.ts +31 -0
- package/models/models.d.ts +42 -0
- package/models/slot.interface.d.ts +31 -0
- package/models/sort-settings.d.ts +42 -0
- package/models/splitter-pane-options.interface.d.ts +54 -0
- package/models/timeline-options.interface.d.ts +41 -0
- package/models/timeline-view.d.ts +8 -0
- package/models/toolbar-settings.d.ts +29 -0
- package/models/view-item.interface.d.ts +35 -0
- package/navigation/navigation-models.d.ts +38 -0
- package/navigation/navigation.service.d.ts +130 -0
- package/navigation/utils.d.ts +26 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +10 -14
- package/rendering/gantt-header-table-body.component.d.ts +14 -0
- package/rendering/gantt-milestone-task.component.d.ts +22 -0
- package/rendering/gantt-summary-task.component.d.ts +25 -0
- package/rendering/gantt-task-base.d.ts +59 -0
- package/rendering/gantt-task.component.d.ts +26 -0
- package/rendering/gantt-tasks-table-body.component.d.ts +33 -0
- package/scrolling/drag-scroll-settings.d.ts +47 -0
- package/scrolling/scroll-sync.service.d.ts +33 -0
- package/scrolling/timeline-scroll.directive.d.ts +27 -0
- package/scrolling/timeline-scroll.service.d.ts +23 -0
- package/scrolling/utils.d.ts +29 -0
- package/selection/selectable.directive.d.ts +45 -0
- package/selection/selection-change-event.d.ts +25 -0
- package/template-directives/summary-task-template.directive.d.ts +41 -0
- package/template-directives/task-content-template.directive.d.ts +36 -0
- package/template-directives/task-template.directive.d.ts +39 -0
- package/timeline/gantt-timeline.component.d.ts +67 -0
- package/timeline/timeline-base-view.service.d.ts +77 -0
- package/timeline/timeline-day-view.component.d.ts +18 -0
- package/timeline/timeline-day-view.service.d.ts +38 -0
- package/timeline/timeline-month-view.component.d.ts +18 -0
- package/timeline/timeline-month-view.service.d.ts +38 -0
- package/timeline/timeline-view.service.d.ts +19 -0
- package/timeline/timeline-week-view.component.d.ts +18 -0
- package/timeline/timeline-week-view.service.d.ts +38 -0
- package/timeline/view-base.d.ts +34 -0
- package/toolbar/toolbar-template.directive.d.ts +112 -0
- package/toolbar/toolbar.component.d.ts +29 -0
- package/toolbar/view-selector.component.d.ts +43 -0
- package/utils.d.ts +166 -0
|
@@ -0,0 +1,318 @@
|
|
|
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
|
+
import { Directive, Input } from '@angular/core';
|
|
6
|
+
import { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
7
|
+
import { DragValidationTooltipComponent } from './drag-validation-tooltip.component';
|
|
8
|
+
import { clientToOffsetCoords, getElementClientCenterCoords } from '../dependencies/utils';
|
|
9
|
+
import { isPresent, isDependencyDragClue, getClosestTaskWrapper, getDependencyTypeFromTargetTasks, getClosestTaskIndex, sameTaskClues, isTaskWrapper, fitToRange } from '../utils';
|
|
10
|
+
import { elementFromPoint } from '../utils';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "../gantt.component";
|
|
13
|
+
import * as i2 from "../common/mapping.service";
|
|
14
|
+
import * as i3 from "@progress/kendo-angular-popup";
|
|
15
|
+
import * as i4 from "../scrolling/timeline-scroll.service";
|
|
16
|
+
/**
|
|
17
|
+
* When added to the .k-task-dot, the element will be kept with hover styles.
|
|
18
|
+
* Used for the drag clue from which the dragging has started.
|
|
19
|
+
*/
|
|
20
|
+
const DRAG_CLUE_HOVER_CLASS = 'k-state-hover';
|
|
21
|
+
/**
|
|
22
|
+
* Add the selection disabling class to the enitre container.
|
|
23
|
+
* Otherwise existing selection on a given task text prevents dragging the clue even if the clue has `user-select: none` styles.
|
|
24
|
+
*/
|
|
25
|
+
const USER_SELECT_NONE_CLASS = 'k-user-select-none';
|
|
26
|
+
/**
|
|
27
|
+
* When added to the .k-task-wrap, the containing .k-task-dot elements will be kept visible even when not hovered.
|
|
28
|
+
* Used for the drag clue from which the dragging has started.
|
|
29
|
+
*/
|
|
30
|
+
const TASK_WRAPPER_DRAG_CLASS = 'k-origin';
|
|
31
|
+
/**
|
|
32
|
+
* Use 20px margin between the pointer and the popup.
|
|
33
|
+
* Could be made user-configurable if there's demand.
|
|
34
|
+
*/
|
|
35
|
+
const DEFAULT_POPUP_VERTICAL_MARGIN = 20;
|
|
36
|
+
/**
|
|
37
|
+
* A directive which enables the creation of new dependencies via dragging.
|
|
38
|
+
*/
|
|
39
|
+
export class DependencyDragCreateDirective {
|
|
40
|
+
constructor(gantt, zone, renderer, mapper, popupService, timelineScrollService) {
|
|
41
|
+
this.gantt = gantt;
|
|
42
|
+
this.zone = zone;
|
|
43
|
+
this.renderer = renderer;
|
|
44
|
+
this.mapper = mapper;
|
|
45
|
+
this.popupService = popupService;
|
|
46
|
+
this.timelineScrollService = timelineScrollService;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies whether the validation tooltip will be displayed during drag operations.
|
|
49
|
+
*
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
this.displayValidationTooltip = true;
|
|
53
|
+
this.gantt.renderDependencyDragClues = true;
|
|
54
|
+
}
|
|
55
|
+
get container() {
|
|
56
|
+
if (!isPresent(this.gantt.timeline) || !isPresent(this.gantt.timeline.timelineContent)) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return this.gantt.timeline.timelineContent.nativeElement;
|
|
60
|
+
}
|
|
61
|
+
get polyline() {
|
|
62
|
+
if (!isPresent(this.gantt.timeline) || !isPresent(this.gantt.timeline.dependencyDragCreatePolyline)) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return this.gantt.timeline.dependencyDragCreatePolyline.nativeElement;
|
|
66
|
+
}
|
|
67
|
+
get popupContainer() {
|
|
68
|
+
if (!isPresent(this.gantt.timeline) || !isPresent(this.gantt.timeline.dragPopupContainer)) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return this.gantt.timeline.dragPopupContainer;
|
|
72
|
+
}
|
|
73
|
+
ngAfterViewInit() {
|
|
74
|
+
this.subscribeDraggable();
|
|
75
|
+
this.addScrollListener();
|
|
76
|
+
}
|
|
77
|
+
ngOnDestroy() {
|
|
78
|
+
this.unsubscribeDraggable();
|
|
79
|
+
this.removeScrollListener();
|
|
80
|
+
this.fromTaskClue = null;
|
|
81
|
+
this.cancelScroll();
|
|
82
|
+
this.closeDragPopup();
|
|
83
|
+
}
|
|
84
|
+
subscribeDraggable() {
|
|
85
|
+
this.dragSubscriptions = this.gantt.timeline.timelineContainerPress
|
|
86
|
+
.subscribe(this.handlePress.bind(this));
|
|
87
|
+
this.dragSubscriptions.add(this.gantt.timeline.timelineContainerDrag
|
|
88
|
+
.subscribe(this.handleDrag.bind(this)));
|
|
89
|
+
this.dragSubscriptions.add(this.gantt.timeline.timelineContainerRelease
|
|
90
|
+
.subscribe(this.handleRelease.bind(this)));
|
|
91
|
+
}
|
|
92
|
+
unsubscribeDraggable() {
|
|
93
|
+
if (isPresent(this.dragSubscriptions)) {
|
|
94
|
+
this.dragSubscriptions.unsubscribe();
|
|
95
|
+
this.dragSubscriptions = null;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
handlePress({ clientX, clientY }) {
|
|
99
|
+
// using `originalEvent.target` is not reliable under mobile devices with the current implementation of the draggable, so use this instead
|
|
100
|
+
const target = elementFromPoint(clientX, clientY);
|
|
101
|
+
if (isDependencyDragClue(target)) {
|
|
102
|
+
this.fromTaskClue = target;
|
|
103
|
+
this.assignDragStartClasses(this.fromTaskClue);
|
|
104
|
+
// use the center of the target clue as polyline starting point
|
|
105
|
+
const dragClueCenterCoords = getElementClientCenterCoords(this.fromTaskClue);
|
|
106
|
+
// the polyline uses `position: aboslute`, so translate the client coordinates to offset coordinates (`left` and `top` relative to the timeline container)
|
|
107
|
+
this.polylineStartCoords = clientToOffsetCoords(dragClueCenterCoords.left, dragClueCenterCoords.top, this.container);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
handleDrag({ clientX, clientY }) {
|
|
111
|
+
if (isPresent(this.fromTaskClue)) {
|
|
112
|
+
// the polyline uses `position: aboslute`, so translate the client coordinates to offset coordinates (`left` and `top` relative to the timeline container)
|
|
113
|
+
const pointerOffsetCoords = clientToOffsetCoords(clientX, clientY, this.container);
|
|
114
|
+
// the start coords are calculated just once per drag session in handlePress
|
|
115
|
+
// use the current drag coords as polyline end coords
|
|
116
|
+
this.updatePolyline(this.polylineStartCoords, pointerOffsetCoords);
|
|
117
|
+
this.currentPointerClientCoords = { left: clientX, top: clientY };
|
|
118
|
+
if (this.gantt.dragScrollSettings.enabled) {
|
|
119
|
+
// use client coordinates for scroll trigger
|
|
120
|
+
this.scrollPointIntoView(this.currentPointerClientCoords);
|
|
121
|
+
}
|
|
122
|
+
if (this.displayValidationTooltip) {
|
|
123
|
+
this.updateDragPopup(pointerOffsetCoords);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
handleRelease({ clientX, clientY }) {
|
|
128
|
+
if (!isPresent(this.fromTaskClue)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
// using `originalEvent.target` is not reliable under mobile devices with the current implementation of the draggable, so use this instead
|
|
132
|
+
const target = elementFromPoint(clientX, clientY);
|
|
133
|
+
if (isDependencyDragClue(target) && !sameTaskClues(this.fromTaskClue, target, this.container)) {
|
|
134
|
+
this.zone.run(() => {
|
|
135
|
+
const fromTaskClue = this.fromTaskClue;
|
|
136
|
+
const toTaskClue = target;
|
|
137
|
+
const fromTask = this.gantt.renderedTreeListItems[getClosestTaskIndex(fromTaskClue, this.container)];
|
|
138
|
+
const toTask = this.gantt.renderedTreeListItems[getClosestTaskIndex(toTaskClue, this.container)];
|
|
139
|
+
const dependencyType = getDependencyTypeFromTargetTasks(fromTaskClue, toTaskClue);
|
|
140
|
+
const { fromId, toId, type } = this.mapper.dependencyFields;
|
|
141
|
+
this.gantt.dependencyAdd.emit({
|
|
142
|
+
fromTask: fromTask,
|
|
143
|
+
toTask: toTask,
|
|
144
|
+
type: dependencyType,
|
|
145
|
+
isValid: this.gantt.validateNewDependency({
|
|
146
|
+
[fromId]: this.mapper.extractFromTask(fromTask, 'id'),
|
|
147
|
+
[toId]: this.mapper.extractFromTask(toTask, 'id'),
|
|
148
|
+
[type]: dependencyType
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
this.clearPolyline();
|
|
154
|
+
this.removeDragStartClasses(this.fromTaskClue);
|
|
155
|
+
this.fromTaskClue = null;
|
|
156
|
+
this.cancelScroll();
|
|
157
|
+
this.closeDragPopup();
|
|
158
|
+
}
|
|
159
|
+
updatePolyline(start, end) {
|
|
160
|
+
const points = `${start.left},${start.top} ${end.left},${end.top}`;
|
|
161
|
+
this.renderer.setAttribute(this.polyline, 'points', points);
|
|
162
|
+
}
|
|
163
|
+
clearPolyline() {
|
|
164
|
+
this.renderer.removeAttribute(this.polyline, 'points');
|
|
165
|
+
}
|
|
166
|
+
assignDragStartClasses(dragClue) {
|
|
167
|
+
if (!isPresent(dragClue)) {
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
this.renderer.addClass(this.container, USER_SELECT_NONE_CLASS);
|
|
171
|
+
this.renderer.addClass(dragClue, DRAG_CLUE_HOVER_CLASS);
|
|
172
|
+
const taskWrapper = getClosestTaskWrapper(dragClue, this.container);
|
|
173
|
+
if (isPresent(taskWrapper)) {
|
|
174
|
+
this.renderer.addClass(taskWrapper, TASK_WRAPPER_DRAG_CLASS);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
removeDragStartClasses(dragClue) {
|
|
178
|
+
if (!isPresent(dragClue)) {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
this.renderer.removeClass(this.container, USER_SELECT_NONE_CLASS);
|
|
182
|
+
this.renderer.removeClass(dragClue, DRAG_CLUE_HOVER_CLASS);
|
|
183
|
+
const taskWrapper = getClosestTaskWrapper(dragClue, this.container);
|
|
184
|
+
if (isPresent(taskWrapper)) {
|
|
185
|
+
this.renderer.removeClass(taskWrapper, TASK_WRAPPER_DRAG_CLASS);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
scrollPointIntoView({ left, top }) {
|
|
189
|
+
this.timelineScrollService.requestScrollCancel();
|
|
190
|
+
this.timelineScrollService.requestHorizontalScroll(left);
|
|
191
|
+
this.timelineScrollService.requestVerticalScroll(top);
|
|
192
|
+
}
|
|
193
|
+
cancelScroll() {
|
|
194
|
+
this.timelineScrollService.requestScrollCancel();
|
|
195
|
+
}
|
|
196
|
+
addScrollListener() {
|
|
197
|
+
if (!isDocumentAvailable()) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
this.zone.runOutsideAngular(() => this.scrollListenerDisposer = this.renderer.listen(this.container, 'scroll', () => {
|
|
201
|
+
// update the polyline only if we're currently dragging
|
|
202
|
+
if (isPresent(this.fromTaskClue) && isPresent(this.currentPointerClientCoords)) {
|
|
203
|
+
const { left, top } = this.currentPointerClientCoords;
|
|
204
|
+
const pointerOffsetCoords = clientToOffsetCoords(left, top, this.container);
|
|
205
|
+
this.updatePolyline(this.polylineStartCoords, pointerOffsetCoords);
|
|
206
|
+
if (this.displayValidationTooltip) {
|
|
207
|
+
this.updateDragPopup(pointerOffsetCoords);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
removeScrollListener() {
|
|
213
|
+
if (isPresent(this.scrollListenerDisposer)) {
|
|
214
|
+
this.scrollListenerDisposer();
|
|
215
|
+
this.scrollListenerDisposer = null;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
openDragPopup() {
|
|
219
|
+
if (isPresent(this.dragPopup)) {
|
|
220
|
+
this.closeDragPopup();
|
|
221
|
+
}
|
|
222
|
+
this.dragPopup = this.popupService.open({
|
|
223
|
+
animate: false,
|
|
224
|
+
content: DragValidationTooltipComponent,
|
|
225
|
+
appendTo: this.popupContainer,
|
|
226
|
+
positionMode: 'absolute',
|
|
227
|
+
popupClass: 'k-popup-transparent'
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
updateDragPopup(pointerOffsetPosition) {
|
|
231
|
+
if (!isPresent(this.dragPopup)) {
|
|
232
|
+
this.openDragPopup();
|
|
233
|
+
}
|
|
234
|
+
const tooltip = this.dragPopup.content.instance;
|
|
235
|
+
const { fromTaskName, toTaskName, isValid, showValidityStatus } = this.getTooltipContext();
|
|
236
|
+
if (tooltip.fromTaskName !== fromTaskName ||
|
|
237
|
+
tooltip.toTaskName !== toTaskName ||
|
|
238
|
+
tooltip.isValid !== isValid ||
|
|
239
|
+
tooltip.showValidityStatus !== showValidityStatus) {
|
|
240
|
+
tooltip.fromTaskName = fromTaskName;
|
|
241
|
+
tooltip.toTaskName = toTaskName;
|
|
242
|
+
tooltip.isValid = isValid;
|
|
243
|
+
tooltip.showValidityStatus = showValidityStatus;
|
|
244
|
+
this.dragPopup.content.changeDetectorRef.detectChanges();
|
|
245
|
+
}
|
|
246
|
+
this.dragPopup.popup.instance.offset = this.normalizePopupPosition(pointerOffsetPosition);
|
|
247
|
+
this.dragPopup.popup.changeDetectorRef.detectChanges();
|
|
248
|
+
}
|
|
249
|
+
closeDragPopup() {
|
|
250
|
+
if (isPresent(this.dragPopup)) {
|
|
251
|
+
this.dragPopup.close();
|
|
252
|
+
this.dragPopup = null;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
extractTaskName(target) {
|
|
256
|
+
if (!isTaskWrapper(target, this.container)) {
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
const taskIndex = getClosestTaskIndex(target, this.container);
|
|
260
|
+
const task = this.gantt.renderedTreeListItems[taskIndex];
|
|
261
|
+
const taskName = this.mapper.extractFromTask(task, 'title');
|
|
262
|
+
return taskName;
|
|
263
|
+
}
|
|
264
|
+
getTooltipContext() {
|
|
265
|
+
const fromTaskName = this.extractTaskName(this.fromTaskClue);
|
|
266
|
+
const currentPointerTarget = elementFromPoint(this.currentPointerClientCoords.left, this.currentPointerClientCoords.top);
|
|
267
|
+
const toTaskName = isTaskWrapper(currentPointerTarget, this.container) && !sameTaskClues(this.fromTaskClue, currentPointerTarget, this.container) ?
|
|
268
|
+
this.extractTaskName(currentPointerTarget) :
|
|
269
|
+
'';
|
|
270
|
+
const showValidityStatus = isDependencyDragClue(currentPointerTarget) && !sameTaskClues(this.fromTaskClue, currentPointerTarget, this.container);
|
|
271
|
+
const { fromId, toId, type } = this.mapper.dependencyFields;
|
|
272
|
+
return {
|
|
273
|
+
fromTaskName,
|
|
274
|
+
toTaskName,
|
|
275
|
+
showValidityStatus,
|
|
276
|
+
isValid: showValidityStatus && this.gantt.validateNewDependency({
|
|
277
|
+
[fromId]: this.mapper.extractFromTask(this.gantt.renderedTreeListItems[getClosestTaskIndex(this.fromTaskClue, this.container)], 'id'),
|
|
278
|
+
[toId]: this.mapper.extractFromTask(this.gantt.renderedTreeListItems[getClosestTaskIndex(currentPointerTarget, this.container)], 'id'),
|
|
279
|
+
[type]: getDependencyTypeFromTargetTasks(this.fromTaskClue, currentPointerTarget)
|
|
280
|
+
})
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Restricts the popup position to not go below the scroll height or width of the container.
|
|
285
|
+
* Flips the position of the popup when there's not enough vertical space in the visible part of the container to render the popup.
|
|
286
|
+
*/
|
|
287
|
+
normalizePopupPosition(pointerOffsetPosition) {
|
|
288
|
+
let top = pointerOffsetPosition.top + DEFAULT_POPUP_VERTICAL_MARGIN;
|
|
289
|
+
const containerClientBottom = this.container.clientHeight + this.container.scrollTop;
|
|
290
|
+
const popupHeight = this.dragPopup.popupElement.querySelector('.k-tooltip').clientHeight;
|
|
291
|
+
const enoughSpaceToRender = top < containerClientBottom - popupHeight;
|
|
292
|
+
// flip the popup above the pointer if there's not enough space in the bottom of the container
|
|
293
|
+
if (!enoughSpaceToRender) {
|
|
294
|
+
// margin * 2 to account for the already applied margin
|
|
295
|
+
top -= popupHeight + (DEFAULT_POPUP_VERTICAL_MARGIN * 2);
|
|
296
|
+
}
|
|
297
|
+
// center the popup horizontally according to the pointer position
|
|
298
|
+
const popupWidth = this.dragPopup.popupElement.querySelector('.k-tooltip').clientWidth;
|
|
299
|
+
const left = pointerOffsetPosition.left - popupWidth / 2;
|
|
300
|
+
// don't allow the popup to be cut out of the viewport
|
|
301
|
+
const minLeftTop = 0;
|
|
302
|
+
// restrict the popup from being positioned beyond or before the available scrollable space
|
|
303
|
+
return {
|
|
304
|
+
left: fitToRange(left, minLeftTop, this.container.scrollWidth - popupWidth),
|
|
305
|
+
top: fitToRange(top, minLeftTop, this.container.scrollHeight - popupHeight)
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
DependencyDragCreateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DependencyDragCreateDirective, deps: [{ token: i1.GanttComponent }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i2.MappingService }, { token: i3.PopupService }, { token: i4.TimelineScrollService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
310
|
+
DependencyDragCreateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DependencyDragCreateDirective, selector: "[kendoGanttDependencyDragCreate]", inputs: { displayValidationTooltip: "displayValidationTooltip" }, ngImport: i0 });
|
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DependencyDragCreateDirective, decorators: [{
|
|
312
|
+
type: Directive,
|
|
313
|
+
args: [{
|
|
314
|
+
selector: '[kendoGanttDependencyDragCreate]'
|
|
315
|
+
}]
|
|
316
|
+
}], ctorParameters: function () { return [{ type: i1.GanttComponent }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i2.MappingService }, { type: i3.PopupService }, { type: i4.TimelineScrollService }]; }, propDecorators: { displayValidationTooltip: [{
|
|
317
|
+
type: Input
|
|
318
|
+
}] } });
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { Component } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export class DragValidationTooltipComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
/**
|
|
13
|
+
* Sets the status class of the attempted operation.
|
|
14
|
+
* Note that the status will be ignored and the `neutral` status class will be rendered,
|
|
15
|
+
* if the any of the fromTaskName or toTaskName are not populated.
|
|
16
|
+
*/
|
|
17
|
+
this.isValid = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
DragValidationTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragValidationTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
DragValidationTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DragValidationTooltipComponent, selector: "ng-component", ngImport: i0, template: `
|
|
22
|
+
<div
|
|
23
|
+
class="k-tooltip k-gantt-tooltip-validation"
|
|
24
|
+
[class.k-gantt-tooltip-valid]="showValidityStatus && isValid"
|
|
25
|
+
[class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"
|
|
26
|
+
>
|
|
27
|
+
<div class="k-gantt-tooltip-validation-row">
|
|
28
|
+
<span class="k-gantt-tooltip-validation-label">From:</span>
|
|
29
|
+
<span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="k-gantt-tooltip-validation-row">
|
|
32
|
+
<span class="k-gantt-tooltip-validation-label">To:</span>
|
|
33
|
+
<span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
`, isInline: true, styles: ["\n .k-gantt-tooltip-validation {\n max-width: 200px;\n display: block;\n }\n .k-gantt-tooltip-validation::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 4px;\n height: 100%;\n background: #656565;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {\n background: #37B400;\n }\n .k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {\n background: #F31700;\n }\n .k-gantt-tooltip-validation-row {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .k-gantt-tooltip-validation-label {\n display: inline-flex;\n width: 50px;\n }\n .k-gantt-tooltip-validation-value {\n font-weight: bold;\n }\n "] });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragValidationTooltipComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{
|
|
40
|
+
template: `
|
|
41
|
+
<div
|
|
42
|
+
class="k-tooltip k-gantt-tooltip-validation"
|
|
43
|
+
[class.k-gantt-tooltip-valid]="showValidityStatus && isValid"
|
|
44
|
+
[class.k-gantt-tooltip-invalid]="showValidityStatus && !isValid"
|
|
45
|
+
>
|
|
46
|
+
<div class="k-gantt-tooltip-validation-row">
|
|
47
|
+
<span class="k-gantt-tooltip-validation-label">From:</span>
|
|
48
|
+
<span class="k-gantt-tooltip-validation-value">{{ fromTaskName }}</span>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="k-gantt-tooltip-validation-row">
|
|
51
|
+
<span class="k-gantt-tooltip-validation-label">To:</span>
|
|
52
|
+
<span class="k-gantt-tooltip-validation-value">{{ toTaskName }}</span>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
`,
|
|
56
|
+
styles: [`
|
|
57
|
+
.k-gantt-tooltip-validation {
|
|
58
|
+
max-width: 200px;
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
.k-gantt-tooltip-validation::before {
|
|
62
|
+
content: '';
|
|
63
|
+
position: absolute;
|
|
64
|
+
left: 0;
|
|
65
|
+
top: 0;
|
|
66
|
+
width: 4px;
|
|
67
|
+
height: 100%;
|
|
68
|
+
background: #656565;
|
|
69
|
+
}
|
|
70
|
+
.k-gantt-tooltip-validation.k-gantt-tooltip-valid::before {
|
|
71
|
+
background: #37B400;
|
|
72
|
+
}
|
|
73
|
+
.k-gantt-tooltip-validation.k-gantt-tooltip-invalid::before {
|
|
74
|
+
background: #F31700;
|
|
75
|
+
}
|
|
76
|
+
.k-gantt-tooltip-validation-row {
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
}
|
|
81
|
+
.k-gantt-tooltip-validation-label {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
width: 50px;
|
|
84
|
+
}
|
|
85
|
+
.k-gantt-tooltip-validation-value {
|
|
86
|
+
font-weight: bold;
|
|
87
|
+
}
|
|
88
|
+
`]
|
|
89
|
+
}]
|
|
90
|
+
}] });
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
import { Component, Input } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@progress/kendo-angular-l10n";
|
|
8
|
+
import * as i2 from "./edit.service";
|
|
9
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
10
|
+
import * as i4 from "@progress/kendo-angular-common";
|
|
11
|
+
/**
|
|
12
|
+
* The UI for adding new items to the Gantt.
|
|
13
|
+
* Use it within a toolbar template to provide a custom icon or list of options.
|
|
14
|
+
*/
|
|
15
|
+
export class GanttAddTaskComponent {
|
|
16
|
+
constructor(localizationService, editService, ngZone) {
|
|
17
|
+
this.localizationService = localizationService;
|
|
18
|
+
this.editService = editService;
|
|
19
|
+
this.ngZone = ngZone;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the data of the DropDownButton.
|
|
22
|
+
* > The data has to be provided in an array-like list.
|
|
23
|
+
*/
|
|
24
|
+
this.data = [{
|
|
25
|
+
text: this.getText('addChildText'),
|
|
26
|
+
type: 'addChild'
|
|
27
|
+
}, {
|
|
28
|
+
text: this.getText('addAboveText'),
|
|
29
|
+
type: 'addAbove'
|
|
30
|
+
}, {
|
|
31
|
+
text: this.getText('addBelowText'),
|
|
32
|
+
type: 'addBelow'
|
|
33
|
+
}];
|
|
34
|
+
/**
|
|
35
|
+
* Defines the name of an existing icon in a Kendo UI theme.
|
|
36
|
+
* @default 'plus'
|
|
37
|
+
*/
|
|
38
|
+
this.icon = 'plus';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @hidden
|
|
42
|
+
*/
|
|
43
|
+
getText(message) {
|
|
44
|
+
return this.localizationService.get(message);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
handleOpen(e) {
|
|
50
|
+
if (!this.editService.getSelectedItem()) {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
handleMouseClick() {
|
|
58
|
+
if (!this.editService.getSelectedItem()) {
|
|
59
|
+
this.ngZone.run(() => {
|
|
60
|
+
this.editService.addEvent.next({
|
|
61
|
+
selectedItem: null,
|
|
62
|
+
actionType: 'addTask'
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
handleItemClick(e) {
|
|
71
|
+
this.editService.addEvent.next({
|
|
72
|
+
actionType: e.type,
|
|
73
|
+
selectedItem: null
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
GanttAddTaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttAddTaskComponent, deps: [{ token: i1.LocalizationService }, { token: i2.EditService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
GanttAddTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: GanttAddTaskComponent, selector: "kendo-gantt-add-task", inputs: { data: "data", icon: "icon" }, ngImport: i0, template: `
|
|
79
|
+
<kendo-dropdownbutton
|
|
80
|
+
[data]="data"
|
|
81
|
+
[icon]="icon"
|
|
82
|
+
[kendoEventsOutsideAngular]="{ click: handleMouseClick }"
|
|
83
|
+
[scope]="this"
|
|
84
|
+
(itemClick)="handleItemClick($event)"
|
|
85
|
+
(open)="handleOpen($event)">
|
|
86
|
+
{{ getText('addTaskText') }}
|
|
87
|
+
</kendo-dropdownbutton>
|
|
88
|
+
`, isInline: true, components: [{ type: i3.DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["icon", "iconClass", "imageUrl", "popupSettings", "textField", "disabled", "data", "size", "rounded", "fillMode", "themeColor", "buttonClass", "tabIndex"], outputs: ["itemClick", "open", "close", "focus", "blur"], exportAs: ["kendoDropDownButton"] }], directives: [{ type: i4.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: GanttAddTaskComponent, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{
|
|
92
|
+
selector: 'kendo-gantt-add-task',
|
|
93
|
+
template: `
|
|
94
|
+
<kendo-dropdownbutton
|
|
95
|
+
[data]="data"
|
|
96
|
+
[icon]="icon"
|
|
97
|
+
[kendoEventsOutsideAngular]="{ click: handleMouseClick }"
|
|
98
|
+
[scope]="this"
|
|
99
|
+
(itemClick)="handleItemClick($event)"
|
|
100
|
+
(open)="handleOpen($event)">
|
|
101
|
+
{{ getText('addTaskText') }}
|
|
102
|
+
</kendo-dropdownbutton>
|
|
103
|
+
`
|
|
104
|
+
}]
|
|
105
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.EditService }, { type: i0.NgZone }]; }, propDecorators: { data: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], icon: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}] } });
|