@progress/kendo-angular-scheduler 4.0.0-next.202204011528 → 4.0.0
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/bundles/kendo-angular-scheduler.umd.js +1 -1
- package/editing-directives/base-edit.service.d.ts +18 -0
- package/esm2015/editing/edit-dialog.component.js +1 -1
- package/esm2015/editing/recurrence/recurrence-frequency-editor.component.js +1 -1
- package/esm2015/editing/recurrence/recurrence-weekday-rule-editor.component.js +1 -1
- package/esm2015/editing-directives/base-edit.service.js +18 -0
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/scheduler.component.js +8 -1
- package/esm2015/toolbar/navigation.component.js +1 -1
- package/esm2015/toolbar/view-selector.component.js +1 -1
- package/esm2015/types/ongoing-events-settings.interface.js +5 -0
- package/esm2015/views/common/base-view.js +3 -0
- package/esm2015/views/common/configuration-view-base.js +9 -1
- package/esm2015/views/common/view-footer.component.js +1 -1
- package/esm2015/views/constants.js +6 -0
- package/esm2015/views/day-time/day-time-view-base.js +10 -1
- package/esm2015/views/day-time/day-time-view.component.js +32 -3
- package/esm2015/views/month/month-view-renderer.component.js +44 -7
- package/esm2015/views/month/month-view.component.js +3 -1
- package/esm2015/views/multi-day/day-view.component.js +2 -0
- package/esm2015/views/multi-day/multi-day-view.component.js +2 -0
- package/esm2015/views/multi-day/week-view.component.js +2 -0
- package/esm2015/views/multi-day/work-week-view.component.js +2 -0
- package/esm2015/views/timeline/timeline-month-view.component.js +2 -0
- package/esm2015/views/timeline/timeline-view.component.js +2 -0
- package/esm2015/views/timeline/timeline-week-view.component.js +2 -0
- package/esm2015/views/utils.js +5 -1
- package/fesm2015/kendo-angular-scheduler.js +257 -124
- package/package.json +16 -18
- package/scheduler.component.d.ts +6 -2
- package/schematics/ngAdd/index.js +1 -1
- package/types/ongoing-events-settings.interface.d.ts +23 -0
- package/types.d.ts +1 -0
- package/views/common/base-view.d.ts +6 -0
- package/views/common/configuration-view-base.d.ts +10 -2
- package/views/constants.d.ts +6 -0
- package/views/day-time/day-time-view-base.d.ts +10 -2
- package/views/day-time/day-time-view.component.d.ts +7 -1
- package/views/month/month-view-renderer.component.d.ts +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Kendo UI Scheduler Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"tslib": "^2.3.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@angular/animations": "
|
|
32
|
-
"@angular/common": "
|
|
33
|
-
"@angular/core": "
|
|
34
|
-
"@angular/forms": "
|
|
35
|
-
"@progress/kendo-angular-buttons": "
|
|
36
|
-
"@progress/kendo-angular-common": "
|
|
37
|
-
"@progress/kendo-angular-dateinputs": "
|
|
38
|
-
"@progress/kendo-angular-dialog": "
|
|
39
|
-
"@progress/kendo-angular-dropdowns": "
|
|
40
|
-
"@progress/kendo-angular-inputs": "
|
|
41
|
-
"@progress/kendo-angular-intl": "^
|
|
42
|
-
"@progress/kendo-angular-l10n": "
|
|
43
|
-
"@progress/kendo-angular-popup": "
|
|
31
|
+
"@angular/animations": "12 - 14",
|
|
32
|
+
"@angular/common": "12 - 14",
|
|
33
|
+
"@angular/core": "12 - 14",
|
|
34
|
+
"@angular/forms": "12 - 14",
|
|
35
|
+
"@progress/kendo-angular-buttons": "^8.0.0",
|
|
36
|
+
"@progress/kendo-angular-common": "^3.0.0",
|
|
37
|
+
"@progress/kendo-angular-dateinputs": "^7.0.0",
|
|
38
|
+
"@progress/kendo-angular-dialog": "^7.0.0",
|
|
39
|
+
"@progress/kendo-angular-dropdowns": "^7.0.0",
|
|
40
|
+
"@progress/kendo-angular-inputs": "^9.0.0",
|
|
41
|
+
"@progress/kendo-angular-intl": "^4.0.0",
|
|
42
|
+
"@progress/kendo-angular-l10n": "^4.0.0",
|
|
43
|
+
"@progress/kendo-angular-popup": "^5.0.0",
|
|
44
44
|
"@progress/kendo-data-query": "^1.0.0",
|
|
45
45
|
"@progress/kendo-date-math": "^1.3.2",
|
|
46
46
|
"@progress/kendo-drawing": "^1.5.8",
|
|
@@ -75,12 +75,10 @@
|
|
|
75
75
|
"release": {
|
|
76
76
|
"debug": false,
|
|
77
77
|
"branchTags": {
|
|
78
|
-
"develop": "dev"
|
|
79
|
-
"ng12-update": "next"
|
|
78
|
+
"develop": "dev"
|
|
80
79
|
},
|
|
81
80
|
"fallbackTags": {
|
|
82
|
-
"dev": "latest"
|
|
83
|
-
"next": "latest"
|
|
81
|
+
"dev": "latest"
|
|
84
82
|
},
|
|
85
83
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
86
84
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
package/scheduler.component.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Day } from '@progress/kendo-date-math';
|
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
10
|
import { DateChangeEvent, NavigateEvent, SlotClickEvent, EventClickEvent } from './events';
|
|
11
11
|
import { ToolbarTemplateDirective } from './toolbar/toolbar-template.directive';
|
|
12
|
-
import { DateRange, Group, NavigationAction, Resource, SchedulerModelFields, SchedulerView, EditMode, CrudOperation, EditableSettings, CurrentTimeSettings, SlotClassArgs, EventStyleArgs, SchedulerSlot } from './types';
|
|
12
|
+
import { DateRange, Group, NavigationAction, Resource, SchedulerModelFields, SchedulerView, EditMode, CrudOperation, EditableSettings, CurrentTimeSettings, OngoingEventsSettings, SlotClassArgs, EventStyleArgs, SchedulerSlot } from './types';
|
|
13
13
|
import { AgendaDateTemplateDirective } from './views/templates/agenda-date-template.directive';
|
|
14
14
|
import { AgendaTimeTemplateDirective } from './views/templates/agenda-time-template.directive';
|
|
15
15
|
import { AllDayEventTemplateDirective } from './views/templates/all-day-event-template.directive';
|
|
@@ -215,6 +215,10 @@ export declare class SchedulerComponent implements AfterContentInit, OnDestroy,
|
|
|
215
215
|
* Specifies the Scheduler current time marker settings.
|
|
216
216
|
*/
|
|
217
217
|
currentTimeMarker: boolean | CurrentTimeSettings;
|
|
218
|
+
/**
|
|
219
|
+
* Specifies the settings for the ongoing events highlight of the Scheduler.
|
|
220
|
+
*/
|
|
221
|
+
highlightOngoingEvents: boolean | OngoingEventsSettings;
|
|
218
222
|
/**
|
|
219
223
|
* Defines a function that is executed for every slot in the view.
|
|
220
224
|
* The function returns a value which is supported by [`ngClass`]({{ site.data.urls.angular['ngclassapi'] }}).
|
|
@@ -670,5 +674,5 @@ export declare class SchedulerComponent implements AfterContentInit, OnDestroy,
|
|
|
670
674
|
private intlChange;
|
|
671
675
|
private attachElementEventHandlers;
|
|
672
676
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchedulerComponent, never>;
|
|
673
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SchedulerComponent, "kendo-scheduler", never, { "selectedViewIndex": "selectedViewIndex"; "editable": "editable"; "selectable": "selectable"; "min": "min"; "max": "max"; "eventHeight": "eventHeight"; "columnWidth": "columnWidth"; "showWorkHours": "showWorkHours"; "startTime": "startTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "weekStart": "weekStart"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "slotFill": "slotFill"; "scrollTime": "scrollTime"; "group": "group"; "resources": "resources"; "loading": "loading"; "timezone": "timezone"; "events": "events"; "selectedDate": "selectedDate"; "modelFields": "modelFields"; "currentTimeMarker": "currentTimeMarker"; "slotClass": "slotClass"; "eventClass": "eventClass"; "eventStyles": "eventStyles"; "isSlotSelected": "isSlotSelected"; }, { "selectedViewIndexChange": "selectedViewIndexChange"; "navigate": "navigate"; "dateChange": "dateChange"; "slotClick": "slotClick"; "slotDblClick": "slotDblClick"; "create": "create"; "eventClick": "eventClick"; "eventDblClick": "eventDblClick"; "eventKeydown": "eventKeydown"; "cancel": "cancel"; "save": "save"; "remove": "remove"; "resizeStart": "resizeStart"; "resize": "resize"; "resizeEnd": "resizeEnd"; "dragStart": "dragStart"; "drag": "drag"; "dragEnd": "dragEnd"; "slotDragStart": "slotDragStart"; "slotDrag": "slotDrag"; "slotDragEnd": "slotDragEnd"; "pdfExport": "pdfExport"; }, ["editDialogTemplate", "toolbarTemplate", "views", "allDayEventTemplate", "eventTemplate", "timeSlotTemplate", "minorTimeHeaderTemplate", "majorTimeHeaderTemplate", "monthDaySlotTemplate", "dateHeaderTemplate", "allDaySlotTemplate", "groupHeaderTemplate", "agendaDateTemplate", "agendaTimeTemplate"], never>;
|
|
677
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SchedulerComponent, "kendo-scheduler", never, { "selectedViewIndex": "selectedViewIndex"; "editable": "editable"; "selectable": "selectable"; "min": "min"; "max": "max"; "eventHeight": "eventHeight"; "columnWidth": "columnWidth"; "showWorkHours": "showWorkHours"; "startTime": "startTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "weekStart": "weekStart"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "slotFill": "slotFill"; "scrollTime": "scrollTime"; "group": "group"; "resources": "resources"; "loading": "loading"; "timezone": "timezone"; "events": "events"; "selectedDate": "selectedDate"; "modelFields": "modelFields"; "currentTimeMarker": "currentTimeMarker"; "highlightOngoingEvents": "highlightOngoingEvents"; "slotClass": "slotClass"; "eventClass": "eventClass"; "eventStyles": "eventStyles"; "isSlotSelected": "isSlotSelected"; }, { "selectedViewIndexChange": "selectedViewIndexChange"; "navigate": "navigate"; "dateChange": "dateChange"; "slotClick": "slotClick"; "slotDblClick": "slotDblClick"; "create": "create"; "eventClick": "eventClick"; "eventDblClick": "eventDblClick"; "eventKeydown": "eventKeydown"; "cancel": "cancel"; "save": "save"; "remove": "remove"; "resizeStart": "resizeStart"; "resize": "resize"; "resizeEnd": "resizeEnd"; "dragStart": "dragStart"; "drag": "drag"; "dragEnd": "dragEnd"; "slotDragStart": "slotDragStart"; "slotDrag": "slotDrag"; "slotDragEnd": "slotDragEnd"; "pdfExport": "pdfExport"; }, ["editDialogTemplate", "toolbarTemplate", "views", "allDayEventTemplate", "eventTemplate", "timeSlotTemplate", "minorTimeHeaderTemplate", "majorTimeHeaderTemplate", "monthDaySlotTemplate", "dateHeaderTemplate", "allDaySlotTemplate", "groupHeaderTemplate", "agendaDateTemplate", "agendaTimeTemplate"], never>;
|
|
674
678
|
}
|
|
@@ -8,7 +8,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
8
8
|
function default_1(options) {
|
|
9
9
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
|
|
10
10
|
// peer dep of the dropdowns
|
|
11
|
-
'@progress/kendo-angular-treeview': '^
|
|
11
|
+
'@progress/kendo-angular-treeview': '^7.0.0'
|
|
12
12
|
} });
|
|
13
13
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
14
14
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* The settings for the ongoing events highlight.
|
|
7
|
+
*/
|
|
8
|
+
export interface OngoingEventsSettings {
|
|
9
|
+
/**
|
|
10
|
+
* The update interval (in milliseconds) of the ongoing events highlight.
|
|
11
|
+
* Defaults to `60000` (a minute).
|
|
12
|
+
*/
|
|
13
|
+
updateInterval?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies if the ongoing events will be highlighted.
|
|
16
|
+
* Defaults to `true`.
|
|
17
|
+
*/
|
|
18
|
+
enabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies a custom CSS class applied to ongoing events.
|
|
21
|
+
*/
|
|
22
|
+
cssClass?: string;
|
|
23
|
+
}
|
package/types.d.ts
CHANGED
|
@@ -22,3 +22,4 @@ export { NumericTextBoxOptions } from './types/numeric-options.interface';
|
|
|
22
22
|
export { DatePickerOptions } from './types/datepicker-options.interface';
|
|
23
23
|
export { SlotRange } from './types/slot-selection';
|
|
24
24
|
export { IsSlotSelectedArgs } from './types/slot-selection';
|
|
25
|
+
export { OngoingEventsSettings } from './types/ongoing-events-settings.interface';
|
|
@@ -48,6 +48,9 @@ export declare abstract class BaseView implements OnInit, OnChanges, AfterViewIn
|
|
|
48
48
|
hintContainer: HintContainerComponent;
|
|
49
49
|
get eventTemplateRef(): TemplateRef<any>;
|
|
50
50
|
get groupHeaderTemplateRef(): TemplateRef<any>;
|
|
51
|
+
/**
|
|
52
|
+
* The non-all-day events.
|
|
53
|
+
*/
|
|
51
54
|
items: Subject<any[]>;
|
|
52
55
|
horizontalResources: any[];
|
|
53
56
|
verticalResources: any[];
|
|
@@ -62,6 +65,9 @@ export declare abstract class BaseView implements OnInit, OnChanges, AfterViewIn
|
|
|
62
65
|
protected groupedResources: any[];
|
|
63
66
|
protected spans: any[];
|
|
64
67
|
protected contentHeight: any;
|
|
68
|
+
/**
|
|
69
|
+
* All events that the user provided.
|
|
70
|
+
*/
|
|
65
71
|
protected tasks: any[];
|
|
66
72
|
protected group: any;
|
|
67
73
|
protected resources: any[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { TemplateRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
6
|
-
import { SchedulerView } from '../../types';
|
|
6
|
+
import { OngoingEventsSettings, SchedulerView } from '../../types';
|
|
7
7
|
import { EventTemplateDirective, GroupHeaderTemplateDirective } from '../templates';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
@@ -37,6 +37,10 @@ export declare abstract class ConfigurationViewBase extends SchedulerView implem
|
|
|
37
37
|
* The function returns a value which is supported by [`ngStyle`]({{ site.data.urls.angular['ngstyleapi'] }}).
|
|
38
38
|
*/
|
|
39
39
|
eventStyles: (args: EventStyleArgs) => any;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the settings for the ongoing events highlight of the Scheduler.
|
|
42
|
+
*/
|
|
43
|
+
highlightOngoingEvents: boolean | OngoingEventsSettings;
|
|
40
44
|
/**
|
|
41
45
|
* @hidden
|
|
42
46
|
*/
|
|
@@ -61,6 +65,10 @@ export declare abstract class ConfigurationViewBase extends SchedulerView implem
|
|
|
61
65
|
* @hidden
|
|
62
66
|
*/
|
|
63
67
|
get viewEventStyles(): any;
|
|
68
|
+
/**
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
get viewHighlightOngoingEvents(): any;
|
|
64
72
|
/**
|
|
65
73
|
* @hidden
|
|
66
74
|
*/
|
|
@@ -72,5 +80,5 @@ export declare abstract class ConfigurationViewBase extends SchedulerView implem
|
|
|
72
80
|
ngOnDestroy(): void;
|
|
73
81
|
protected optionsChange(options: any): void;
|
|
74
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationViewBase, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfigurationViewBase, never, never, { "slotClass": "slotClass"; "eventClass": "eventClass"; "eventStyles": "eventStyles"; }, {}, ["eventTemplate", "groupHeaderTemplate"]>;
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfigurationViewBase, never, never, { "slotClass": "slotClass"; "eventClass": "eventClass"; "eventStyles": "eventStyles"; "highlightOngoingEvents": "highlightOngoingEvents"; }, {}, ["eventTemplate", "groupHeaderTemplate"]>;
|
|
76
84
|
}
|
package/views/constants.d.ts
CHANGED
|
@@ -20,3 +20,9 @@ export { MS_PER_DAY } from '@progress/kendo-date-math';
|
|
|
20
20
|
export declare const BORDER_WIDTH = 1;
|
|
21
21
|
/** @hidden */
|
|
22
22
|
export declare const DEFAULT_EVENT_HEIGHT = 25;
|
|
23
|
+
/** @hidden */
|
|
24
|
+
export declare const ONGOING_EVENT_CSS_CLASS = "k-event-ongoing";
|
|
25
|
+
/** @hidden */
|
|
26
|
+
export declare const DAYS_IN_WEEK_COUNT = 7;
|
|
27
|
+
/** @hidden */
|
|
28
|
+
export declare const WEEKS_COUNT = 6;
|
|
@@ -7,7 +7,7 @@ import { ConfigurationViewBase } from '../common/configuration-view-base';
|
|
|
7
7
|
import { TimeSlotTemplateDirective, DateHeaderTemplateDirective } from '../templates';
|
|
8
8
|
import { ViewContextService } from '../view-context.service';
|
|
9
9
|
import { ViewStateService } from '../view-state.service';
|
|
10
|
-
import { CurrentTimeSettings } from '../../types';
|
|
10
|
+
import { CurrentTimeSettings, OngoingEventsSettings } from '../../types';
|
|
11
11
|
import { Day } from '@progress/kendo-date-math';
|
|
12
12
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
@@ -77,6 +77,10 @@ export declare abstract class DayTimeViewBase extends ConfigurationViewBase impl
|
|
|
77
77
|
* Specifies the settings for the current time marker of the Scheduler.
|
|
78
78
|
*/
|
|
79
79
|
currentTimeMarker: boolean | CurrentTimeSettings;
|
|
80
|
+
/**
|
|
81
|
+
* Specifies the settings for the ongoing events highlight of the Scheduler.
|
|
82
|
+
*/
|
|
83
|
+
highlightOngoingEvents: boolean | OngoingEventsSettings;
|
|
80
84
|
/**
|
|
81
85
|
* @hidden
|
|
82
86
|
*/
|
|
@@ -121,6 +125,10 @@ export declare abstract class DayTimeViewBase extends ConfigurationViewBase impl
|
|
|
121
125
|
* @hidden
|
|
122
126
|
*/
|
|
123
127
|
get viewCurrentTimeMarker(): any;
|
|
128
|
+
/**
|
|
129
|
+
* @hidden
|
|
130
|
+
*/
|
|
131
|
+
get viewHighlightOngoingEvents(): any;
|
|
124
132
|
/**
|
|
125
133
|
* @hidden
|
|
126
134
|
*/
|
|
@@ -128,5 +136,5 @@ export declare abstract class DayTimeViewBase extends ConfigurationViewBase impl
|
|
|
128
136
|
constructor(localization: LocalizationService, changeDetector: ChangeDetectorRef, viewContext: ViewContextService, viewState: ViewStateService);
|
|
129
137
|
protected optionValue(name: string): any;
|
|
130
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<DayTimeViewBase, never>;
|
|
131
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DayTimeViewBase, never, never, { "showWorkHours": "showWorkHours"; "eventHeight": "eventHeight"; "startTime": "startTime"; "scrollTime": "scrollTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "currentTimeMarker": "currentTimeMarker"; }, {}, ["timeSlotTemplate", "dateHeaderTemplate"]>;
|
|
139
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DayTimeViewBase, never, never, { "showWorkHours": "showWorkHours"; "eventHeight": "eventHeight"; "startTime": "startTime"; "scrollTime": "scrollTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "currentTimeMarker": "currentTimeMarker"; "highlightOngoingEvents": "highlightOngoingEvents"; }, {}, ["timeSlotTemplate", "dateHeaderTemplate"]>;
|
|
132
140
|
}
|
|
@@ -12,6 +12,7 @@ import { IntlService } from '@progress/kendo-angular-intl';
|
|
|
12
12
|
import { PDFService } from '../../pdf/pdf.service';
|
|
13
13
|
import { BaseView } from '../common/base-view';
|
|
14
14
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
15
|
+
import { DayTimeViewItemComponent } from './day-time-view-item.component';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
/**
|
|
17
18
|
* @hidden
|
|
@@ -35,7 +36,9 @@ export declare abstract class DayTimeViewComponent extends BaseView implements O
|
|
|
35
36
|
getEndDate: any;
|
|
36
37
|
getNextDate: any;
|
|
37
38
|
currentTimeMarker: any;
|
|
39
|
+
highlightOngoingEvents: any;
|
|
38
40
|
currentTimeElements: QueryList<ElementRef>;
|
|
41
|
+
eventElements: QueryList<DayTimeViewItemComponent>;
|
|
39
42
|
currentTimeArrows: QueryList<ElementRef>;
|
|
40
43
|
name: string;
|
|
41
44
|
workDayStartTime: any;
|
|
@@ -50,6 +53,7 @@ export declare abstract class DayTimeViewComponent extends BaseView implements O
|
|
|
50
53
|
protected schedulerTimeSlotTemplate: any;
|
|
51
54
|
protected schedulerDateHeaderTemplate: any;
|
|
52
55
|
protected currentTimeTimeout: any;
|
|
56
|
+
protected ongoingEventsTimeout: any;
|
|
53
57
|
protected currentDate: ZonedDate;
|
|
54
58
|
protected verticalTime: boolean;
|
|
55
59
|
protected initialUpdate: boolean;
|
|
@@ -58,12 +62,14 @@ export declare abstract class DayTimeViewComponent extends BaseView implements O
|
|
|
58
62
|
ngOnDestroy(): void;
|
|
59
63
|
verticalItem(leafIndex: number, resourceIndex: number): any;
|
|
60
64
|
timeSlotClass(slot: any, date: any, resourceIndex: any): string;
|
|
65
|
+
protected toggleOngoingClass(): void;
|
|
61
66
|
protected scrollToTime(time?: string | Date): void;
|
|
62
67
|
protected optionsChange(options: any): void;
|
|
63
68
|
protected updateView(): void;
|
|
64
69
|
protected enableCurrentTime(): boolean;
|
|
65
70
|
protected currentTime(): Date;
|
|
66
71
|
protected updateCurrentTime(): void;
|
|
72
|
+
protected updateOngoingEvents(): void;
|
|
67
73
|
protected abstract currentTimeArrowOffset(): number;
|
|
68
74
|
protected positionCurrentTime(): void;
|
|
69
75
|
protected bindEvents(): void;
|
|
@@ -78,5 +84,5 @@ export declare abstract class DayTimeViewComponent extends BaseView implements O
|
|
|
78
84
|
protected slotByPosition(x: number, y: number, container?: any): any;
|
|
79
85
|
protected slotFields(slot: any): any;
|
|
80
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<DayTimeViewComponent, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DayTimeViewComponent, "kendo-day-time-view", never, { "timeSlotTemplate": "timeSlotTemplate"; "dateHeaderTemplate": "dateHeaderTemplate"; "numberOfDays": "numberOfDays"; "scrollTime": "scrollTime"; "startTime": "startTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "showWorkHours": "showWorkHours"; "getStartDate": "getStartDate"; "getEndDate": "getEndDate"; "getNextDate": "getNextDate"; "currentTimeMarker": "currentTimeMarker"; }, {}, never, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DayTimeViewComponent, "kendo-day-time-view", never, { "timeSlotTemplate": "timeSlotTemplate"; "dateHeaderTemplate": "dateHeaderTemplate"; "numberOfDays": "numberOfDays"; "scrollTime": "scrollTime"; "startTime": "startTime"; "endTime": "endTime"; "workDayStart": "workDayStart"; "workDayEnd": "workDayEnd"; "workWeekStart": "workWeekStart"; "workWeekEnd": "workWeekEnd"; "slotDuration": "slotDuration"; "slotDivisions": "slotDivisions"; "showWorkHours": "showWorkHours"; "getStartDate": "getStartDate"; "getEndDate": "getEndDate"; "getNextDate": "getNextDate"; "currentTimeMarker": "currentTimeMarker"; "highlightOngoingEvents": "highlightOngoingEvents"; }, {}, never, never>;
|
|
82
88
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { OnChanges, NgZone, ElementRef, Renderer2, TemplateRef, ChangeDetectorRef } from '@angular/core';
|
|
5
|
+
import { OnChanges, NgZone, ElementRef, Renderer2, TemplateRef, ChangeDetectorRef, QueryList } from '@angular/core';
|
|
6
6
|
import { IntlService } from '@progress/kendo-angular-intl';
|
|
7
7
|
import { DateRange, NavigationAction, ViewItem } from '../../types';
|
|
8
8
|
import { ViewContextService } from '../view-context.service';
|
|
@@ -11,18 +11,24 @@ import { MonthSlotService } from './month-slot.service';
|
|
|
11
11
|
import { BaseView } from '../common/base-view';
|
|
12
12
|
import { PDFService } from '../../pdf/pdf.service';
|
|
13
13
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
|
+
import { MonthViewItemComponent } from './month-view-item.component';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
16
|
/**
|
|
16
17
|
* @hidden
|
|
17
18
|
*/
|
|
18
19
|
export declare class MonthViewRendererComponent extends BaseView implements OnChanges {
|
|
19
20
|
monthDaySlotTemplate: TemplateRef<any>;
|
|
21
|
+
highlightOngoingEvents: any;
|
|
20
22
|
resizeHintFormat: any;
|
|
21
23
|
weeks: any[];
|
|
24
|
+
eventElements: QueryList<MonthViewItemComponent>;
|
|
22
25
|
get monthDaySlotTemplateRef(): TemplateRef<any>;
|
|
26
|
+
protected ongoingEventsTimeout: any;
|
|
23
27
|
private schedulerMonthDaySlotTemplate;
|
|
24
28
|
constructor(viewContext: ViewContextService, viewState: ViewStateService, intl: IntlService, slotService: MonthSlotService, zone: NgZone, element: ElementRef, renderer: Renderer2, pdfService: PDFService, localization: LocalizationService, changeDetector: ChangeDetectorRef);
|
|
25
29
|
ngOnChanges(changes: any): void;
|
|
30
|
+
ngAfterViewInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
26
32
|
horizontalColspan(resourceIndex: number): any;
|
|
27
33
|
verticalRowspan(resourceIndex: number): any;
|
|
28
34
|
verticalItem(leafIndex: number, resourceIndex: number): any;
|
|
@@ -41,7 +47,10 @@ export declare class MonthViewRendererComponent extends BaseView implements OnCh
|
|
|
41
47
|
protected dragRanges(slot: any): any;
|
|
42
48
|
protected dragHintSize(first: any, last: any): any;
|
|
43
49
|
protected slotByPosition(x: number, y: number): any;
|
|
50
|
+
protected updateOngoingEvents(): void;
|
|
51
|
+
protected currentTime(): Date;
|
|
52
|
+
protected toggleOngoingClass(): void;
|
|
44
53
|
private createDaySlots;
|
|
45
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonthViewRendererComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MonthViewRendererComponent, "month-view", never, { "monthDaySlotTemplate": "monthDaySlotTemplate"; }, {}, never, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonthViewRendererComponent, "month-view", never, { "monthDaySlotTemplate": "monthDaySlotTemplate"; "highlightOngoingEvents": "highlightOngoingEvents"; }, {}, never, never>;
|
|
47
56
|
}
|