@progress/kendo-angular-scheduler 14.4.0-develop.8 → 15.0.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/NOTICE.txt +146 -593
- package/editing/date-time-picker.component.d.ts +4 -0
- package/editing/recurrence/recurrence-end-rule-editor.component.d.ts +3 -3
- package/editing/recurrence/recurrence-interval-editor.component.d.ts +3 -3
- package/editing/recurrence/recurrence-monthly-yearly-editor.component.d.ts +3 -3
- package/esm2020/editing/date-time-picker.component.mjs +62 -8
- package/esm2020/editing/recurrence/recurrence-end-rule-editor.component.mjs +35 -9
- package/esm2020/editing/recurrence/recurrence-interval-editor.component.mjs +19 -7
- package/esm2020/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +19 -7
- package/esm2020/editing/resource-multiple-editor.component.mjs +1 -1
- package/esm2020/editing/timezone-editor.component.mjs +1 -1
- package/esm2020/index.mjs +1 -0
- package/esm2020/localization/messages.mjs +35 -1
- package/esm2020/navigation/shortcuts.directive.mjs +9 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/scheduler.component.mjs +200 -98
- package/esm2020/scheduler.module.mjs +8 -1
- package/esm2020/toolbar/navigation.component.mjs +9 -1
- package/esm2020/toolbar/toolbar.component.mjs +25 -3
- package/esm2020/views/timeline/timeline-month-view.component.mjs +13 -5
- package/esm2020/views/timeline/timeline-view.component.mjs +13 -5
- package/esm2020/views/timeline/timeline-week-view.component.mjs +12 -5
- package/esm2020/views/year/utils.mjs +60 -0
- package/esm2020/views/year/year-view-internal.component.mjs +418 -0
- package/esm2020/views/year/year-view.component.mjs +115 -0
- package/esm2020/views/year/year-view.module.mjs +47 -0
- package/fesm2015/progress-kendo-angular-scheduler.mjs +1043 -157
- package/fesm2020/progress-kendo-angular-scheduler.mjs +1037 -157
- package/index.d.ts +1 -0
- package/localization/messages.d.ts +118 -50
- package/package.json +13 -12
- package/scheduler.module.d.ts +15 -13
- package/schematics/ngAdd/index.js +2 -2
- package/toolbar/navigation.component.d.ts +10 -2
- package/toolbar/toolbar.component.d.ts +9 -0
- package/types/scheduler-slot.interface.d.ts +4 -0
- package/types/slot-class-args.interface.d.ts +4 -0
- package/views/timeline/timeline-month-view.component.d.ts +4 -1
- package/views/timeline/timeline-view.component.d.ts +4 -1
- package/views/timeline/timeline-week-view.component.d.ts +3 -1
- package/views/year/utils.d.ts +21 -0
- package/views/year/year-view-internal.component.d.ts +82 -0
- package/views/year/year-view.component.d.ts +56 -0
- package/views/year/year-view.module.d.ts +19 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, Renderer2 } from '@angular/core';
|
|
6
|
+
import { ScrollbarWidthService } from '@progress/kendo-angular-common';
|
|
7
|
+
import { ViewContextService } from '../view-context.service';
|
|
8
|
+
import { ViewStateService } from '../view-state.service';
|
|
9
|
+
import { IntlService } from '@progress/kendo-angular-intl';
|
|
10
|
+
import { PDFService } from '../../pdf/pdf.service';
|
|
11
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
|
+
import { DateRange, NavigationAction, ViewItem } from '../../types';
|
|
13
|
+
import { TooltipDirective } from '@progress/kendo-angular-tooltip';
|
|
14
|
+
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
15
|
+
import { FocusService } from '../../navigation';
|
|
16
|
+
import { BaseView } from '../common/base-view';
|
|
17
|
+
import { MonthSlotService } from '../month/month-slot.service';
|
|
18
|
+
import * as i0 from "@angular/core";
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare class YearViewInternalComponent extends BaseView implements AfterViewInit {
|
|
23
|
+
localization: LocalizationService;
|
|
24
|
+
focusService: FocusService;
|
|
25
|
+
intl: IntlService;
|
|
26
|
+
protected localeId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Calculates the next or previous range to be displayed
|
|
29
|
+
*/
|
|
30
|
+
newRange: (date: Date, direction?: 1 | -1) => Date;
|
|
31
|
+
/**
|
|
32
|
+
* Determines the displayed date range and formats the selected date
|
|
33
|
+
*/
|
|
34
|
+
dateRangeFn: (date: Date) => DateRange;
|
|
35
|
+
private calendar;
|
|
36
|
+
tooltip: TooltipDirective;
|
|
37
|
+
selectedDateFormat: string;
|
|
38
|
+
selectedShortDateFormat: string;
|
|
39
|
+
get arrowIcons(): string[];
|
|
40
|
+
get arrowSVGIcons(): SVGIcon[];
|
|
41
|
+
caretAltLeftIcon: SVGIcon;
|
|
42
|
+
caretAltRightIcon: SVGIcon;
|
|
43
|
+
selectedDate: Date;
|
|
44
|
+
eventsPerSelectedDay: any[];
|
|
45
|
+
days: Date[];
|
|
46
|
+
focusedDate: Date;
|
|
47
|
+
private currentTd;
|
|
48
|
+
private tds;
|
|
49
|
+
private isTooltipClicked;
|
|
50
|
+
constructor(localization: LocalizationService, focusService: FocusService, intl: IntlService, viewContext: ViewContextService, viewState: ViewStateService, zone: NgZone, renderer: Renderer2, pdfService: PDFService, element: ElementRef, slotService: MonthSlotService, scrollBarWidthService: ScrollbarWidthService, changeDetector: ChangeDetectorRef, localeId: string);
|
|
51
|
+
ngAfterViewInit(): void;
|
|
52
|
+
getSlotClass(date: any): string;
|
|
53
|
+
getEventClasses(item: any, resources: any, isAllDay?: boolean): any;
|
|
54
|
+
onBlur(): void;
|
|
55
|
+
getDate(element: ElementRef): Date;
|
|
56
|
+
eventTitle(event: any): string;
|
|
57
|
+
onClick(event: any): void;
|
|
58
|
+
onMouseDown(): void;
|
|
59
|
+
onKeydown(event: any): void;
|
|
60
|
+
navigateToDay(date: Date): void;
|
|
61
|
+
private eventsPerDay;
|
|
62
|
+
private tasksPerDay;
|
|
63
|
+
onValueChange(date: Date): void;
|
|
64
|
+
hasEvent(date: Date): boolean;
|
|
65
|
+
createPDFElement(): void;
|
|
66
|
+
protected onSelectDate(date: Date): void;
|
|
67
|
+
protected onAction(e: NavigationAction): void;
|
|
68
|
+
protected createTasks(items: ViewItem[], dateRange: DateRange): any[];
|
|
69
|
+
protected reflow(): void;
|
|
70
|
+
protected dateRange(date?: Date): DateRange;
|
|
71
|
+
protected onTasksChange(): void;
|
|
72
|
+
protected slotByIndex: (slotIndex: string, args: any) => void;
|
|
73
|
+
protected dragHintSize: (startSlot: any, endSlot: any) => void;
|
|
74
|
+
protected dragRanges: (slot: any) => void;
|
|
75
|
+
protected slotByPosition: (x: number, y: number, container?: any) => any;
|
|
76
|
+
private createDaySlots;
|
|
77
|
+
private getLastDayOfMonth;
|
|
78
|
+
cachedTds: any[];
|
|
79
|
+
private updateTds;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YearViewInternalComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YearViewInternalComponent, "year-view-internal", never, { "newRange": "newRange"; "dateRangeFn": "dateRangeFn"; "selectedDateFormat": "selectedDateFormat"; "selectedShortDateFormat": "selectedShortDateFormat"; }, {}, never, never>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
6
|
+
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
+
import { DateRange } from '../../types';
|
|
8
|
+
import { ViewContextService } from '../view-context.service';
|
|
9
|
+
import { ViewStateService } from '../view-state.service';
|
|
10
|
+
import { ConfigurationViewBase } from '../common/configuration-view-base';
|
|
11
|
+
import { IntlService } from '@progress/kendo-angular-intl';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
/**
|
|
14
|
+
* The component for rendering the **Year** view.
|
|
15
|
+
*/
|
|
16
|
+
export declare class YearViewComponent extends ConfigurationViewBase {
|
|
17
|
+
private intl;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
highlightOngoingEvents: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The long-date format for displaying the
|
|
24
|
+
* selected year in the Scheduler toolbar.
|
|
25
|
+
* For more information, see [Parsing and Formatting Dates and Numbers]({% slug parsingandformatting_intl %}#toc-date-formatting).
|
|
26
|
+
* @default '{0:yyy}'
|
|
27
|
+
*/
|
|
28
|
+
selectedDateFormat: string;
|
|
29
|
+
/**
|
|
30
|
+
* The short-date format for displaying the
|
|
31
|
+
* selected year in the Scheduler toolbar.
|
|
32
|
+
* For more information, see [Parsing and Formatting Dates and Numbers]({% slug parsingandformatting_intl %}#toc-date-formatting).
|
|
33
|
+
* @default '{0:yyy}'
|
|
34
|
+
*/
|
|
35
|
+
selectedShortDateFormat: string;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
get title(): string;
|
|
40
|
+
/**
|
|
41
|
+
* The invariant name for this view.
|
|
42
|
+
* @default 'year'
|
|
43
|
+
*/
|
|
44
|
+
readonly name: string;
|
|
45
|
+
constructor(localization: LocalizationService, changeDetector: ChangeDetectorRef, viewContext: ViewContextService, viewState: ViewStateService, intl: IntlService);
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
dateRange(date: Date): DateRange;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
newRange(date: Date, direction?: 1 | -1): Date;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YearViewComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YearViewComponent, "kendo-scheduler-year-view", never, { "selectedDateFormat": "selectedDateFormat"; "selectedShortDateFormat": "selectedShortDateFormat"; }, {}, never, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./year-view.component";
|
|
7
|
+
import * as i2 from "./year-view-internal.component";
|
|
8
|
+
import * as i3 from "../common/views-shared.module";
|
|
9
|
+
import * as i4 from "@progress/kendo-angular-dateinputs";
|
|
10
|
+
import * as i5 from "@progress/kendo-angular-tooltip";
|
|
11
|
+
import * as i6 from "@progress/kendo-angular-intl";
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare class YearViewModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YearViewModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YearViewModule, [typeof i1.YearViewComponent, typeof i2.YearViewInternalComponent], [typeof i3.ViewsSharedModule, typeof i4.CalendarsModule, typeof i5.TooltipsModule, typeof i6.IntlModule], [typeof i1.YearViewComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YearViewModule>;
|
|
19
|
+
}
|