@progress/kendo-angular-gantt 21.1.1-develop.2 → 21.2.0-develop.2

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.
@@ -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: "14.0.0", version: "18.2.14", type: TaskFieldsComponent, isStandalone: true, selector: "kendo-gantt-task-fields", ngImport: i0, template: `
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
- <kendo-formfield *ngIf="formGroup.get(mapper.taskFields.title)">
45
- <kendo-label [for]="title" [text]="getText('titleFieldInputLabel')"></kendo-label>
46
- <input #title kendoTextBox [formControlName]="mapper.taskFields.title" />
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
- <div class="k-hstack">
49
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.start)">
50
- <kendo-label [for]="start" [text]="getText('startFieldInputLabel')"></kendo-label>
51
- <kendo-datetimepicker #start [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>
52
- </kendo-formfield>
53
- <kendo-treelist-spacer></kendo-treelist-spacer>
54
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.end)">
55
- <kendo-label [for]="end" [text]="getText('endFieldInputLabel')"></kendo-label>
56
- <kendo-datetimepicker #end [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>
57
- </kendo-formfield>
58
- </div>
59
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.completionRatio)">
60
- <kendo-label [for]="completionRatio" [text]="getText('completionRatioFieldInputLabel')"></kendo-label>
61
- <kendo-numerictextbox
62
- #completionRatio
63
- [formControlName]="mapper.taskFields.completionRatio"
64
- [min]="0"
65
- [max]="1"
66
- [decimals]="2"
67
- format="p2"
68
- [step]="0.01"
69
- ></kendo-numerictextbox>
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
- `, 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: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
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
- <kendo-formfield *ngIf="formGroup.get(mapper.taskFields.title)">
81
- <kendo-label [for]="title" [text]="getText('titleFieldInputLabel')"></kendo-label>
82
- <input #title kendoTextBox [formControlName]="mapper.taskFields.title" />
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
- <div class="k-hstack">
85
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.start)">
86
- <kendo-label [for]="start" [text]="getText('startFieldInputLabel')"></kendo-label>
87
- <kendo-datetimepicker #start [formControlName]="mapper.taskFields.start"></kendo-datetimepicker>
88
- </kendo-formfield>
89
- <kendo-treelist-spacer></kendo-treelist-spacer>
90
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.end)">
91
- <kendo-label [for]="end" [text]="getText('endFieldInputLabel')"></kendo-label>
92
- <kendo-datetimepicker #end [formControlName]="mapper.taskFields.end"></kendo-datetimepicker>
93
- </kendo-formfield>
94
- </div>
95
- <kendo-formfield [style.width.%]="49" *ngIf="formGroup.get(mapper.taskFields.completionRatio)">
96
- <kendo-label [for]="completionRatio" [text]="getText('completionRatioFieldInputLabel')"></kendo-label>
97
- <kendo-numerictextbox
98
- #completionRatio
99
- [formControlName]="mapper.taskFields.completionRatio"
100
- [min]="0"
101
- [max]="1"
102
- [decimals]="2"
103
- format="p2"
104
- [step]="0.01"
105
- ></kendo-numerictextbox>
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, NgIf, FormFieldComponent, LabelComponent, TextBoxDirective, DateTimePickerComponent, TreeListSpacerComponent, NumericTextBoxComponent]
125
+ imports: [ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxDirective, DateTimePickerComponent, TreeListSpacerComponent, NumericTextBoxComponent]
111
126
  }]
112
127
  }], ctorParameters: () => [{ type: i1.MappingService }, { type: i2.EditService }, { type: i3.GanttLocalizationService }] });