@progress/kendo-angular-scheduler 23.0.0-develop.1 → 23.0.0-develop.11
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.
|
@@ -14,6 +14,7 @@ import { SingleResourceEditorComponent } from './resource-single-editor.componen
|
|
|
14
14
|
import { FocusService } from '../navigation';
|
|
15
15
|
import { Day } from '@progress/kendo-date-math';
|
|
16
16
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
17
|
+
import { CldrIntlService } from '@progress/kendo-angular-intl';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
/**
|
|
19
20
|
* @hidden
|
|
@@ -25,6 +26,7 @@ export declare class EditDialogComponent implements OnDestroy {
|
|
|
25
26
|
private changeDetector;
|
|
26
27
|
private element;
|
|
27
28
|
private focusService;
|
|
29
|
+
private intl;
|
|
28
30
|
multipleResourceEditors: QueryList<MultipleResourceEditorComponent>;
|
|
29
31
|
singleResourceEditors: QueryList<SingleResourceEditorComponent>;
|
|
30
32
|
resources: Array<Resource>;
|
|
@@ -48,7 +50,8 @@ export declare class EditDialogComponent implements OnDestroy {
|
|
|
48
50
|
saveIcon: SVGIcon;
|
|
49
51
|
cancelIcon: SVGIcon;
|
|
50
52
|
private subs;
|
|
51
|
-
|
|
53
|
+
private pendingNewEventData;
|
|
54
|
+
constructor(ngZone: NgZone, editService: EditService, localization: LocalizationService, changeDetector: ChangeDetectorRef, element: ElementRef, focusService: FocusService, intl: CldrIntlService);
|
|
52
55
|
onChange(): void;
|
|
53
56
|
ngOnDestroy(): void;
|
|
54
57
|
onCancel(e: any): void;
|
|
@@ -78,6 +81,7 @@ export declare class EditDialogComponent implements OnDestroy {
|
|
|
78
81
|
private applyTimezone;
|
|
79
82
|
private readDateWithTimezone;
|
|
80
83
|
private readDateAsLocal;
|
|
84
|
+
private focusNewEvent;
|
|
81
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditDialogComponent, never>;
|
|
82
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditDialogComponent, "kendo-scheduler-edit-dialog", never, { "resources": { "alias": "resources"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "weekStart": { "alias": "weekStart"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "editTemplate": { "alias": "editTemplate"; "required": false; }; }, {}, never, never, true, never>;
|
|
83
87
|
}
|
|
@@ -12,12 +12,12 @@ import { isEqualDate, ZonedDate, toLocalDate, getDate, timezoneNames, Day, MS_PE
|
|
|
12
12
|
import { auditTime, buffer, filter, map, debounceTime, take, distinctUntilChanged, switchMap, tap } from 'rxjs/operators';
|
|
13
13
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
14
14
|
import { Subject, BehaviorSubject, fromEvent, Subscription, combineLatest, merge } from 'rxjs';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i5 from '@angular/forms';
|
|
16
16
|
import { NG_VALUE_ACCESSOR, NgControl, ReactiveFormsModule, FormControl, FormGroup } from '@angular/forms';
|
|
17
17
|
import * as i1 from '@progress/kendo-angular-dialog';
|
|
18
18
|
import { DialogCloseResult, DialogComponent, DialogActionsComponent, DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
19
19
|
import * as i4 from '@progress/kendo-angular-intl';
|
|
20
|
-
import { formatDate, DatePipe, parseDate } from '@progress/kendo-angular-intl';
|
|
20
|
+
import { formatDate, CldrIntlService, DatePipe, parseDate } from '@progress/kendo-angular-intl';
|
|
21
21
|
import { MultiSelectComponent, ItemTemplateDirective, TagTemplateDirective, DropDownListComponent, ComboBoxComponent } from '@progress/kendo-angular-dropdowns';
|
|
22
22
|
import { NgStyle, NgTemplateOutlet, AsyncPipe, NgClass } from '@angular/common';
|
|
23
23
|
import { saveIcon, cancelOutlineIcon, calendarIcon, caretAltRightIcon, caretAltLeftIcon, filePdfIcon, arrowRotateCwIcon, arrowsNoRepeatIcon, xIcon, moreHorizontalIcon, clockIcon, caretAltUpIcon, caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
@@ -44,7 +44,7 @@ const packageMetadata = {
|
|
|
44
44
|
productCode: 'KENDOUIANGULAR',
|
|
45
45
|
productCodes: ['KENDOUIANGULAR'],
|
|
46
46
|
publishDate: 0,
|
|
47
|
-
version: '23.0.0-develop.
|
|
47
|
+
version: '23.0.0-develop.11',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -2883,6 +2883,13 @@ function formatEventTime(start, end, isAllDay, localeId) {
|
|
|
2883
2883
|
`${startFormat}` :
|
|
2884
2884
|
`${startFormat}-${endFormat}`;
|
|
2885
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* @hidden
|
|
2888
|
+
*/
|
|
2889
|
+
function getEventTitle(start, end, isAllDay, title, localeId) {
|
|
2890
|
+
const time = formatEventTime(start, end, isAllDay, localeId);
|
|
2891
|
+
return `${time}, ${title}`;
|
|
2892
|
+
}
|
|
2886
2893
|
/**
|
|
2887
2894
|
* @hidden
|
|
2888
2895
|
*/
|
|
@@ -5625,7 +5632,7 @@ class TimeZoneEditorComponent {
|
|
|
5625
5632
|
(valueChange)="onTimeZoneChange($event)">
|
|
5626
5633
|
</kendo-combobox>
|
|
5627
5634
|
}
|
|
5628
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type:
|
|
5635
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ComboBoxComponent, selector: "kendo-combobox", inputs: ["icon", "svgIcon", "inputAttributes", "showStickyHeader", "focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur", "inputFocus", "inputBlur", "escape"], exportAs: ["kendoComboBox"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
5629
5636
|
}
|
|
5630
5637
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TimeZoneEditorComponent, decorators: [{
|
|
5631
5638
|
type: Component,
|
|
@@ -5789,7 +5796,7 @@ class SchedulerDateTimePickerComponent {
|
|
|
5789
5796
|
</kendo-datetimepicker-messages>
|
|
5790
5797
|
</kendo-datetimepicker>
|
|
5791
5798
|
}
|
|
5792
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "clearButton", "inputAttributes", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "footer", "navigationItemTemplate", "weekDaysFormat", "showOtherMonthDays", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "adaptiveTitle", "adaptiveSubtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close", "escape"], exportAs: ["kendo-datepicker"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type:
|
|
5799
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DatePickerComponent, selector: "kendo-datepicker", inputs: ["focusableId", "cellTemplate", "clearButton", "inputAttributes", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "headerTemplate", "footerTemplate", "footer", "navigationItemTemplate", "weekDaysFormat", "showOtherMonthDays", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "autoCorrectParts", "autoSwitchParts", "autoSwitchKeys", "enableMouseWheel", "allowCaretMode", "autoFill", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "adaptiveTitle", "adaptiveSubtitle", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode", "adaptiveMode"], outputs: ["valueChange", "focus", "blur", "open", "close", "escape"], exportAs: ["kendo-datepicker"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DatePickerCustomMessagesComponent, selector: "kendo-datepicker-messages" }, { 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: DateTimePickerCustomMessagesComponent, selector: "kendo-datetimepicker-messages" }] });
|
|
5793
5800
|
}
|
|
5794
5801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SchedulerDateTimePickerComponent, decorators: [{
|
|
5795
5802
|
type: Component,
|
|
@@ -5867,6 +5874,7 @@ class EditDialogComponent {
|
|
|
5867
5874
|
changeDetector;
|
|
5868
5875
|
element;
|
|
5869
5876
|
focusService;
|
|
5877
|
+
intl;
|
|
5870
5878
|
multipleResourceEditors;
|
|
5871
5879
|
singleResourceEditors;
|
|
5872
5880
|
resources = [];
|
|
@@ -5901,13 +5909,15 @@ class EditDialogComponent {
|
|
|
5901
5909
|
saveIcon = saveIcon;
|
|
5902
5910
|
cancelIcon = cancelOutlineIcon;
|
|
5903
5911
|
subs;
|
|
5904
|
-
|
|
5912
|
+
pendingNewEventData;
|
|
5913
|
+
constructor(ngZone, editService, localization, changeDetector, element, focusService, intl) {
|
|
5905
5914
|
this.ngZone = ngZone;
|
|
5906
5915
|
this.editService = editService;
|
|
5907
5916
|
this.localization = localization;
|
|
5908
5917
|
this.changeDetector = changeDetector;
|
|
5909
5918
|
this.element = element;
|
|
5910
5919
|
this.focusService = focusService;
|
|
5920
|
+
this.intl = intl;
|
|
5911
5921
|
this.subs = this.editService.changed.subscribe(() => {
|
|
5912
5922
|
this.ngZone.run(() => { this.onChange(); });
|
|
5913
5923
|
});
|
|
@@ -5967,11 +5977,13 @@ class EditDialogComponent {
|
|
|
5967
5977
|
this.applyTimezone();
|
|
5968
5978
|
this.editService.save();
|
|
5969
5979
|
this.changeDetector.markForCheck();
|
|
5980
|
+
if (this.isNew && this.formGroup) {
|
|
5981
|
+
this.pendingNewEventData = this.formGroup.value;
|
|
5982
|
+
}
|
|
5970
5983
|
}
|
|
5971
5984
|
onClose() {
|
|
5972
5985
|
this.editService.endEdit();
|
|
5973
5986
|
this.changeDetector.markForCheck();
|
|
5974
|
-
this.focusService.focus();
|
|
5975
5987
|
}
|
|
5976
5988
|
get hasAllDay() {
|
|
5977
5989
|
return Boolean(this.formGroup.get(this.fields.isAllDay));
|
|
@@ -6011,7 +6023,12 @@ class EditDialogComponent {
|
|
|
6011
6023
|
this.setTimeZone = false;
|
|
6012
6024
|
this.setSeparateStartEndTimeZones = false;
|
|
6013
6025
|
this.removeTimeZoneCheckboxesFromFormGroup();
|
|
6014
|
-
this.
|
|
6026
|
+
if (this.pendingNewEventData) {
|
|
6027
|
+
this.focusNewEvent();
|
|
6028
|
+
}
|
|
6029
|
+
else {
|
|
6030
|
+
this.focusService.focus();
|
|
6031
|
+
}
|
|
6015
6032
|
}
|
|
6016
6033
|
addTimeZoneCheckboxesToFormGroup() {
|
|
6017
6034
|
if (isPresent(this.formGroup)) {
|
|
@@ -6078,8 +6095,20 @@ class EditDialogComponent {
|
|
|
6078
6095
|
const value = this.formGroup.get(field).value;
|
|
6079
6096
|
return toLocalDate(ZonedDate.fromLocalDate(value, timezone).toUTCDate());
|
|
6080
6097
|
}
|
|
6081
|
-
|
|
6082
|
-
|
|
6098
|
+
focusNewEvent() {
|
|
6099
|
+
this.ngZone.onStable.pipe(take(1)).subscribe(() => {
|
|
6100
|
+
const focusableItems = Array.from(this.focusService.focusableItems);
|
|
6101
|
+
const eventItems = focusableItems.filter(item => item.containerType === 'content');
|
|
6102
|
+
const newEventTitle = getEventTitle(this.pendingNewEventData.start, this.pendingNewEventData.end, this.pendingNewEventData.isAllDay, this.pendingNewEventData.title, this.intl.localeId);
|
|
6103
|
+
const newEventItem = eventItems.find(item => {
|
|
6104
|
+
return item.element.nativeElement.getAttribute('aria-label') === newEventTitle;
|
|
6105
|
+
});
|
|
6106
|
+
newEventItem?.focus();
|
|
6107
|
+
this.pendingNewEventData = null;
|
|
6108
|
+
});
|
|
6109
|
+
}
|
|
6110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditDialogComponent, deps: [{ token: i0.NgZone }, { token: EditService }, { token: i1$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: FocusService }, { token: i4.CldrIntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6111
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.18", type: EditDialogComponent, isStandalone: true, selector: "kendo-scheduler-edit-dialog", inputs: { resources: "resources", timezone: "timezone", weekStart: "weekStart", fields: "fields", editTemplate: "editTemplate" }, providers: [CldrIntlService], viewQueries: [{ propertyName: "multipleResourceEditors", predicate: MultipleResourceEditorComponent, descendants: true }, { propertyName: "singleResourceEditors", predicate: SingleResourceEditorComponent, descendants: true }], ngImport: i0, template: `
|
|
6083
6112
|
@if (isActive) {
|
|
6084
6113
|
<kendo-dialog (close)='onClose()' [minWidth]='400' title='{{ textFor("editorTitle") }}' class='k-scheduler-edit-dialog' [autoFocusedElement]="autoFocusedElement">
|
|
6085
6114
|
@if (!editTemplate) {
|
|
@@ -6277,7 +6306,7 @@ class EditDialogComponent {
|
|
|
6277
6306
|
</kendo-dialog-actions>
|
|
6278
6307
|
</kendo-dialog>
|
|
6279
6308
|
}
|
|
6280
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type:
|
|
6309
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogComponent, selector: "kendo-dialog", inputs: ["actions", "actionsLayout", "autoFocusedElement", "title", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "animation", "themeColor"], outputs: ["action", "close"], exportAs: ["kendoDialog"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.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: i5.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.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: SchedulerDateTimePickerComponent, selector: "kendo-scheduler-datetime-picker", inputs: ["isAllDay"], outputs: ["valueChange"] }, { kind: "directive", type: CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "component", type: TimeZoneEditorComponent, selector: "kendo-timezone-editor", inputs: ["width"], outputs: ["valueChange"] }, { kind: "component", type: RecurrenceEditorComponent, selector: "kendo-recurrence-editor", inputs: ["start", "timezone", "weekStart", "repeatEveryOptions", "endAfterOptions", "repeatOnOptions", "endOnOptions"], outputs: ["valueChange"], exportAs: ["kendoRecurrenceEditor"] }, { kind: "directive", type: TextAreaDirective, selector: "textarea[kendoTextArea]", inputs: ["autoSize", "value"], outputs: ["valueChange"] }, { kind: "component", type: MultipleResourceEditorComponent, selector: "kendo-multiple-resource-editor" }, { kind: "component", type: SingleResourceEditorComponent, selector: "kendo-single-resource-editor" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
6281
6310
|
}
|
|
6282
6311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: EditDialogComponent, decorators: [{
|
|
6283
6312
|
type: Component,
|
|
@@ -6483,9 +6512,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
6483
6512
|
}
|
|
6484
6513
|
`,
|
|
6485
6514
|
standalone: true,
|
|
6515
|
+
providers: [CldrIntlService],
|
|
6486
6516
|
imports: [DialogComponent, ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxDirective, SchedulerDateTimePickerComponent, CheckBoxDirective, LabelDirective, TimeZoneEditorComponent, RecurrenceEditorComponent, TextAreaDirective, MultipleResourceEditorComponent, SingleResourceEditorComponent, NgTemplateOutlet, DialogActionsComponent, ButtonComponent]
|
|
6487
6517
|
}]
|
|
6488
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: EditService }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: FocusService }], propDecorators: { multipleResourceEditors: [{
|
|
6518
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: EditService }, { type: i1$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: FocusService }, { type: i4.CldrIntlService }], propDecorators: { multipleResourceEditors: [{
|
|
6489
6519
|
type: ViewChildren,
|
|
6490
6520
|
args: [MultipleResourceEditorComponent]
|
|
6491
6521
|
}], singleResourceEditors: [{
|
|
@@ -10874,8 +10904,7 @@ class AgendaTaskItemComponent {
|
|
|
10874
10904
|
get eventTitle() {
|
|
10875
10905
|
const start = toLocalDate(this.item.start);
|
|
10876
10906
|
const end = toLocalDate(this.item.end);
|
|
10877
|
-
|
|
10878
|
-
return `${time}, ${this.item.event.title}`;
|
|
10907
|
+
return getEventTitle(start, end, this.item.isAllDay, this.item.event.title, this.intl.localeId);
|
|
10879
10908
|
}
|
|
10880
10909
|
get eventColor() {
|
|
10881
10910
|
return this.item.color;
|
|
@@ -13648,8 +13677,7 @@ class BaseViewItem {
|
|
|
13648
13677
|
get eventTitle() {
|
|
13649
13678
|
const startTime = toLocalDate(this.item.startTime);
|
|
13650
13679
|
const endTime = toLocalDate(this.item.endTime);
|
|
13651
|
-
|
|
13652
|
-
return `${time}, ${this.item.event.title}`;
|
|
13680
|
+
return getEventTitle(startTime, endTime, this.item.isAllDay, this.item.event.title, this.intl.localeId);
|
|
13653
13681
|
}
|
|
13654
13682
|
get deleteMessage() {
|
|
13655
13683
|
return this.localization.get('deleteTitle');
|
|
@@ -20202,8 +20230,7 @@ class YearViewInternalComponent extends BaseView {
|
|
|
20202
20230
|
eventTitle(event) {
|
|
20203
20231
|
const startTime = toLocalDate(event.startTime);
|
|
20204
20232
|
const endTime = toLocalDate(event.endTime);
|
|
20205
|
-
|
|
20206
|
-
return `${time}, ${event.event.title}`;
|
|
20233
|
+
return getEventTitle(startTime, endTime, event.isAllDay, event.event.title, this.intl.localeId);
|
|
20207
20234
|
}
|
|
20208
20235
|
onClick(event) {
|
|
20209
20236
|
if (event.target.tagName === 'SPAN') {
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "23.0.0-develop.
|
|
10
|
+
"publishDate": 1770728506,
|
|
11
|
+
"version": "23.0.0-develop.11",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "23.0.0-develop.
|
|
3
|
+
"version": "23.0.0-develop.11",
|
|
4
4
|
"description": "Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1770728506,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"@progress/kendo-data-query": "^1.7.3",
|
|
33
33
|
"@progress/kendo-drawing": "^1.24.0",
|
|
34
34
|
"@progress/kendo-licensing": "^1.10.0",
|
|
35
|
-
"@progress/kendo-angular-tooltip": "23.0.0-develop.
|
|
36
|
-
"@progress/kendo-angular-buttons": "23.0.0-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "23.0.0-develop.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "23.0.0-develop.
|
|
39
|
-
"@progress/kendo-angular-dialog": "23.0.0-develop.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "23.0.0-develop.
|
|
41
|
-
"@progress/kendo-angular-icons": "23.0.0-develop.
|
|
42
|
-
"@progress/kendo-angular-inputs": "23.0.0-develop.
|
|
43
|
-
"@progress/kendo-angular-intl": "23.0.0-develop.
|
|
44
|
-
"@progress/kendo-angular-l10n": "23.0.0-develop.
|
|
45
|
-
"@progress/kendo-angular-label": "23.0.0-develop.
|
|
46
|
-
"@progress/kendo-angular-popup": "23.0.0-develop.
|
|
35
|
+
"@progress/kendo-angular-tooltip": "23.0.0-develop.11",
|
|
36
|
+
"@progress/kendo-angular-buttons": "23.0.0-develop.11",
|
|
37
|
+
"@progress/kendo-angular-common": "23.0.0-develop.11",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "23.0.0-develop.11",
|
|
39
|
+
"@progress/kendo-angular-dialog": "23.0.0-develop.11",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "23.0.0-develop.11",
|
|
41
|
+
"@progress/kendo-angular-icons": "23.0.0-develop.11",
|
|
42
|
+
"@progress/kendo-angular-inputs": "23.0.0-develop.11",
|
|
43
|
+
"@progress/kendo-angular-intl": "23.0.0-develop.11",
|
|
44
|
+
"@progress/kendo-angular-l10n": "23.0.0-develop.11",
|
|
45
|
+
"@progress/kendo-angular-label": "23.0.0-develop.11",
|
|
46
|
+
"@progress/kendo-angular-popup": "23.0.0-develop.11",
|
|
47
47
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"tslib": "^2.3.1",
|
|
51
|
-
"@progress/kendo-angular-schematics": "23.0.0-develop.
|
|
51
|
+
"@progress/kendo-angular-schematics": "23.0.0-develop.11",
|
|
52
52
|
"@progress/kendo-date-math": "^1.3.2",
|
|
53
53
|
"@progress/kendo-draggable": "^3.0.2",
|
|
54
54
|
"@progress/kendo-file-saver": "^1.0.7",
|
|
@@ -9,10 +9,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
|
|
11
11
|
// peer deps of the dropdowns
|
|
12
|
-
'@progress/kendo-angular-treeview': '23.0.0-develop.
|
|
13
|
-
'@progress/kendo-angular-navigation': '23.0.0-develop.
|
|
12
|
+
'@progress/kendo-angular-treeview': '23.0.0-develop.11',
|
|
13
|
+
'@progress/kendo-angular-navigation': '23.0.0-develop.11',
|
|
14
14
|
// peer dependency of kendo-angular-inputs
|
|
15
|
-
'@progress/kendo-angular-dialog': '23.0.0-develop.
|
|
15
|
+
'@progress/kendo-angular-dialog': '23.0.0-develop.11',
|
|
16
16
|
// peer dependency of kendo-angular-icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
18
18
|
} });
|
package/views/utils.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ export declare const convertNgClassBindings: (bindingValues: any) => string[];
|
|
|
95
95
|
* @hidden
|
|
96
96
|
*/
|
|
97
97
|
export declare function formatEventTime(start: Date, end: Date, isAllDay: boolean, localeId?: string): string;
|
|
98
|
+
/**
|
|
99
|
+
* @hidden
|
|
100
|
+
*/
|
|
101
|
+
export declare function getEventTitle(start: Date, end: Date, isAllDay: boolean, title: string, localeId?: string): string;
|
|
98
102
|
/**
|
|
99
103
|
* @hidden
|
|
100
104
|
*/
|