@progress/kendo-angular-gantt 21.1.1-develop.1 → 21.2.0-develop.1
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/esm2022/editing/task-fields.component.mjs +70 -55
- package/esm2022/gantt.component.mjs +560 -545
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/gantt-header-table-body.component.mjs +21 -10
- package/esm2022/rendering/gantt-milestone-task.component.mjs +43 -43
- package/esm2022/rendering/gantt-summary-task.component.mjs +79 -77
- package/esm2022/rendering/gantt-task.component.mjs +131 -127
- package/esm2022/rendering/gantt-tasks-table-body.component.mjs +86 -79
- package/esm2022/timeline/gantt-timeline.component.mjs +290 -270
- package/esm2022/toolbar/toolbar.component.mjs +35 -27
- package/esm2022/toolbar/view-selector.component.mjs +32 -25
- package/fesm2022/progress-kendo-angular-gantt.mjs +1351 -1257
- package/package.json +17 -17
- package/rendering/gantt-header-table-body.component.d.ts +1 -0
- package/schematics/ngAdd/index.js +11 -7
- package/timeline/gantt-timeline.component.d.ts +1 -0
|
@@ -7,7 +7,6 @@ import { ReactiveFormsModule } from '@angular/forms';
|
|
|
7
7
|
import { MappingService } from '../common/mapping.service';
|
|
8
8
|
import { GanttLocalizationService } from '../localization/gantt-localization.service';
|
|
9
9
|
import { EditService } from './edit.service';
|
|
10
|
-
import { NgIf } from '@angular/common';
|
|
11
10
|
import { FormFieldComponent, NumericTextBoxComponent, TextBoxDirective } from '@progress/kendo-angular-inputs';
|
|
12
11
|
import { LabelComponent } from '@progress/kendo-angular-label';
|
|
13
12
|
import { DateTimePickerComponent } from '@progress/kendo-angular-dateinputs';
|
|
@@ -39,37 +38,45 @@ export class TaskFieldsComponent {
|
|
|
39
38
|
return this.localizationService.get(token);
|
|
40
39
|
}
|
|
41
40
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskFieldsComponent, deps: [{ token: i1.MappingService }, { token: i2.EditService }, { token: i3.GanttLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
41
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TaskFieldsComponent, isStandalone: true, selector: "kendo-gantt-task-fields", ngImport: i0, template: `
|
|
43
42
|
<form class="k-form k-form-md" [formGroup]="formGroup">
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
@if (formGroup.get(mapper.taskFields.title)) {
|
|
44
|
+
<kendo-formfield>
|
|
45
|
+
<kendo-label [for]="title" [text]="getText('titleFieldInputLabel')"></kendo-label>
|
|
46
|
+
<input #title kendoTextBox [formControlName]="mapper.taskFields.title" />
|
|
47
47
|
</kendo-formfield>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
<kendo-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<kendo-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
48
|
+
}
|
|
49
|
+
<div class="k-hstack">
|
|
50
|
+
@if (formGroup.get(mapper.taskFields.start)) {
|
|
51
|
+
<kendo-formfield [style.width.%]="49">
|
|
52
|
+
<kendo-label [for]="start" [text]="getText('startFieldInputLabel')"></kendo-label>
|
|
53
|
+
<kendo-datetimepicker #start [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>
|
|
54
|
+
</kendo-formfield>
|
|
55
|
+
}
|
|
56
|
+
<kendo-treelist-spacer></kendo-treelist-spacer>
|
|
57
|
+
@if (formGroup.get(mapper.taskFields.end)) {
|
|
58
|
+
<kendo-formfield [style.width.%]="49">
|
|
59
|
+
<kendo-label [for]="end" [text]="getText('endFieldInputLabel')"></kendo-label>
|
|
60
|
+
<kendo-datetimepicker #end [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>
|
|
61
|
+
</kendo-formfield>
|
|
62
|
+
}
|
|
63
|
+
</div>
|
|
64
|
+
@if (formGroup.get(mapper.taskFields.completionRatio)) {
|
|
65
|
+
<kendo-formfield [style.width.%]="49">
|
|
66
|
+
<kendo-label [for]="completionRatio" [text]="getText('completionRatioFieldInputLabel')"></kendo-label>
|
|
67
|
+
<kendo-numerictextbox
|
|
68
|
+
#completionRatio
|
|
69
|
+
[formControlName]="mapper.taskFields.completionRatio"
|
|
70
|
+
[min]="0"
|
|
71
|
+
[max]="1"
|
|
72
|
+
[decimals]="2"
|
|
73
|
+
format="p2"
|
|
74
|
+
[step]="0.01"
|
|
75
|
+
></kendo-numerictextbox>
|
|
70
76
|
</kendo-formfield>
|
|
77
|
+
}
|
|
71
78
|
</form>
|
|
72
|
-
|
|
79
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors", "colSpan"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "directive", type: TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "component", type: DateTimePickerComponent, selector: "kendo-datetimepicker", inputs: ["focusableId", "weekDaysFormat", "showOtherMonthDays", "value", "format", "twoDigitYearMax", "tabindex", "disabledDates", "popupSettings", "adaptiveTitle", "adaptiveSubtitle", "disabled", "readonly", "readOnlyInput", "cancelButton", "formatPlaceholder", "placeholder", "steps", "focusedDate", "calendarType", "animateCalendarNavigation", "weekNumber", "min", "max", "rangeValidation", "disabledDatesValidation", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "clearButton", "autoFill", "adaptiveMode", "inputAttributes", "defaultTab", "size", "rounded", "fillMode", "headerTemplate", "footerTemplate", "footer"], outputs: ["valueChange", "open", "close", "focus", "blur", "escape"], exportAs: ["kendo-datetimepicker"] }, { kind: "component", type: TreeListSpacerComponent, selector: "kendo-treelist-spacer", inputs: ["width"] }, { kind: "component", type: NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode", "inputAttributes"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur"], exportAs: ["kendoNumericTextBox"] }] });
|
|
73
80
|
}
|
|
74
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TaskFieldsComponent, decorators: [{
|
|
75
82
|
type: Component,
|
|
@@ -77,36 +84,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
77
84
|
selector: 'kendo-gantt-task-fields',
|
|
78
85
|
template: `
|
|
79
86
|
<form class="k-form k-form-md" [formGroup]="formGroup">
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
@if (formGroup.get(mapper.taskFields.title)) {
|
|
88
|
+
<kendo-formfield>
|
|
89
|
+
<kendo-label [for]="title" [text]="getText('titleFieldInputLabel')"></kendo-label>
|
|
90
|
+
<input #title kendoTextBox [formControlName]="mapper.taskFields.title" />
|
|
83
91
|
</kendo-formfield>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<kendo-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<kendo-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
}
|
|
93
|
+
<div class="k-hstack">
|
|
94
|
+
@if (formGroup.get(mapper.taskFields.start)) {
|
|
95
|
+
<kendo-formfield [style.width.%]="49">
|
|
96
|
+
<kendo-label [for]="start" [text]="getText('startFieldInputLabel')"></kendo-label>
|
|
97
|
+
<kendo-datetimepicker #start [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>
|
|
98
|
+
</kendo-formfield>
|
|
99
|
+
}
|
|
100
|
+
<kendo-treelist-spacer></kendo-treelist-spacer>
|
|
101
|
+
@if (formGroup.get(mapper.taskFields.end)) {
|
|
102
|
+
<kendo-formfield [style.width.%]="49">
|
|
103
|
+
<kendo-label [for]="end" [text]="getText('endFieldInputLabel')"></kendo-label>
|
|
104
|
+
<kendo-datetimepicker #end [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>
|
|
105
|
+
</kendo-formfield>
|
|
106
|
+
}
|
|
107
|
+
</div>
|
|
108
|
+
@if (formGroup.get(mapper.taskFields.completionRatio)) {
|
|
109
|
+
<kendo-formfield [style.width.%]="49">
|
|
110
|
+
<kendo-label [for]="completionRatio" [text]="getText('completionRatioFieldInputLabel')"></kendo-label>
|
|
111
|
+
<kendo-numerictextbox
|
|
112
|
+
#completionRatio
|
|
113
|
+
[formControlName]="mapper.taskFields.completionRatio"
|
|
114
|
+
[min]="0"
|
|
115
|
+
[max]="1"
|
|
116
|
+
[decimals]="2"
|
|
117
|
+
format="p2"
|
|
118
|
+
[step]="0.01"
|
|
119
|
+
></kendo-numerictextbox>
|
|
106
120
|
</kendo-formfield>
|
|
121
|
+
}
|
|
107
122
|
</form>
|
|
108
|
-
|
|
123
|
+
`,
|
|
109
124
|
standalone: true,
|
|
110
|
-
imports: [ReactiveFormsModule,
|
|
125
|
+
imports: [ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxDirective, DateTimePickerComponent, TreeListSpacerComponent, NumericTextBoxComponent]
|
|
111
126
|
}]
|
|
112
127
|
}], ctorParameters: () => [{ type: i1.MappingService }, { type: i2.EditService }, { type: i3.GanttLocalizationService }] });
|