@progress/kendo-react-scheduler 7.0.0-develop.1 → 7.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.
- package/Scheduler.d.ts +362 -0
- package/components/BaseView.d.ts +22 -0
- package/components/CurrentTimeMarket.d.ts +19 -0
- package/components/DateHeaderCell.d.ts +46 -0
- package/components/SchedulerForm.d.ts +71 -0
- package/components/SchedulerOccurrenceDialog.d.ts +46 -0
- package/components/SchedulerRemoveDialog.d.ts +42 -0
- package/components/ShowMoreItemsButton.d.ts +30 -0
- package/components/TimeHeaderCell.d.ts +46 -0
- package/components/footer/SchedulerFooter.d.ts +25 -0
- package/components/footer/bussiness-hours/BussinessHours.d.ts +17 -0
- package/components/header/SchedulerHeader.d.ts +22 -0
- package/components/header/navigation/NavigationDatePicker.d.ts +9 -0
- package/components/header/navigation/SchedulerNavigation.d.ts +28 -0
- package/components/header/view-selector/SchedulerViewSelector.d.ts +28 -0
- package/components/header/view-selector/ViewSelectorItem.d.ts +12 -0
- package/components/header/view-selector/ViewSelectorList.d.ts +7 -0
- package/constants/index.d.ts +58 -0
- package/context/SchedulerContext.d.ts +231 -0
- package/context/SchedulerEditItemContext.d.ts +172 -0
- package/context/SchedulerEditSlotContext.d.ts +51 -0
- package/context/SchedulerEditTaskContext.d.ts +33 -0
- package/context/SchedulerResourceIteratorContext.d.ts +20 -0
- package/context/SchedulerViewContext.d.ts +76 -0
- package/context/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-scheduler.js +5 -0
- package/editors/FilterableComboBox.d.ts +8 -0
- package/editors/ResourceEditor.d.ts +18 -0
- package/editors/SchedulerFormEditor.d.ts +246 -0
- package/editors/ZonedDateTime.d.ts +22 -0
- package/hooks/index.d.ts +14 -0
- package/hooks/use-items-focus.d.ts +27 -0
- package/hooks/use-items-selection.d.ts +35 -0
- package/hooks/use-slots-focus.d.ts +38 -0
- package/hooks/use-slots-selection.d.ts +28 -0
- package/hooks/useAsyncMouseEnterLeave.d.ts +15 -0
- package/hooks/useCellSync.d.ts +14 -0
- package/hooks/useControlledState.d.ts +17 -0
- package/hooks/useEditable.d.ts +7 -0
- package/hooks/usePropOrState.d.ts +6 -0
- package/hooks/useRowSync.d.ts +15 -0
- package/hooks/useSchedulerItem.d.ts +11 -0
- package/hooks/useSchedulerSlot.d.ts +11 -0
- package/hooks/useSlotExpand.d.ts +9 -0
- package/hooks/useWorkHours.d.ts +6 -0
- package/index.d.ts +45 -0
- package/index.js +5 -0
- package/index.mjs +5880 -0
- package/items/SchedulerEditItem.d.ts +330 -0
- package/items/SchedulerItem.d.ts +203 -0
- package/items/SchedulerItemContent.d.ts +15 -0
- package/items/SchedulerProportionalViewItem.d.ts +12 -0
- package/items/SchedulerViewItem.d.ts +34 -0
- package/items/hooks/use-drag-item.d.ts +46 -0
- package/items/hooks/use-form-item.d.ts +26 -0
- package/items/hooks/use-remove-item.d.ts +34 -0
- package/items/hooks/use-resize-item.d.ts +49 -0
- package/items/hooks/use-series.d.ts +27 -0
- package/items/hooks/use-show-occurrence-dialog.d.ts +31 -0
- package/items/hooks/use-show-remove-item-dialog.d.ts +31 -0
- package/messages/index.d.ts +240 -0
- package/models/DataItem.d.ts +12 -0
- package/models/DateRange.d.ts +22 -0
- package/models/EditableProp.d.ts +33 -0
- package/models/Fields.d.ts +21 -0
- package/models/Group.d.ts +12 -0
- package/models/Item.d.ts +68 -0
- package/models/Occurrence.d.ts +56 -0
- package/models/Omit.d.ts +8 -0
- package/models/Orientation.d.ts +6 -0
- package/models/Range.d.ts +14 -0
- package/models/Rect.d.ts +19 -0
- package/models/Resource.d.ts +12 -0
- package/models/SchedulerGroup.d.ts +17 -0
- package/models/SchedulerHandle.d.ts +12 -0
- package/models/SchedulerModelFields.d.ts +66 -0
- package/models/SchedulerResource.d.ts +37 -0
- package/models/SchedulerView.d.ts +80 -0
- package/models/Slot.d.ts +54 -0
- package/models/events.d.ts +87 -0
- package/models/index.d.ts +21 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +13 -17
- package/recurrence/RecurrenceEditor.d.ts +16 -0
- package/recurrence/RecurrenceFrequencyEditor.d.ts +14 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +17 -0
- package/recurrence/common.d.ts +61 -0
- package/recurrence/types/EndRule.d.ts +8 -0
- package/recurrence/types/Frequency.d.ts +8 -0
- package/recurrence/types/FrequencyEntity.d.ts +12 -0
- package/recurrence/types/MonthEntity.d.ts +11 -0
- package/recurrence/types/OffsetPosition.d.ts +8 -0
- package/recurrence/types/OffsetPositionEntity.d.ts +11 -0
- package/recurrence/types/RepeatOnRule.d.ts +8 -0
- package/recurrence/types/WeekDayEntity.d.ts +11 -0
- package/recurrence/types/WeekDayRule.d.ts +11 -0
- package/services/index.d.ts +8 -0
- package/services/itemsService.d.ts +16 -0
- package/services/occurrenceService.d.ts +7 -0
- package/services/rangeService.d.ts +7 -0
- package/services/slotsService.d.ts +10 -0
- package/slots/SchedulerEditSlot.d.ts +52 -0
- package/slots/SchedulerSlot.d.ts +127 -0
- package/slots/SchedulerViewSlot.d.ts +46 -0
- package/tasks/SchedulerEditTask.d.ts +79 -0
- package/tasks/SchedulerTask.d.ts +61 -0
- package/tasks/SchedulerViewTask.d.ts +32 -0
- package/utils/index.d.ts +172 -0
- package/views/agenda/AgendaView.d.ts +83 -0
- package/views/common/HorizontalResourceIterator.d.ts +30 -0
- package/views/common/SchedulerDrag.d.ts +39 -0
- package/views/common/SchedulerResize.d.ts +41 -0
- package/views/common/VerticalResourceIterator.d.ts +25 -0
- package/views/common/utils.d.ts +38 -0
- package/views/day/DayView.d.ts +15 -0
- package/views/day/DayViewAllDayRowContent.d.ts +12 -0
- package/views/day/DayViewGroupRowContent.d.ts +12 -0
- package/views/day/DayViewRowContent.d.ts +17 -0
- package/views/day/MultiDayView.d.ts +175 -0
- package/views/month/MonthView.d.ts +86 -0
- package/views/time/MultiDayTimelineView.d.ts +179 -0
- package/views/time/TimelineView.d.ts +27 -0
- package/views/time/TimelineViewAllEventsRowContent.d.ts +11 -0
- package/views/time/TimelineViewRowContent.d.ts +11 -0
- package/views/week/WeekView.d.ts +106 -0
- package/views/week/WorkWeekView.d.ts +9 -0
package/utils/index.d.ts
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerModelFields, DataItem, SchedulerGroup, Item, Slot, Occurrence } from '../models';
|
|
7
|
+
import { ZonedDate } from '@progress/kendo-date-math';
|
|
8
|
+
import { SchedulerResource } from '../models/SchedulerResource';
|
|
9
|
+
import { type SchedulerSlotHandle } from '../slots/SchedulerSlot';
|
|
10
|
+
import { type SchedulerItemHandle } from '../items/SchedulerItem';
|
|
11
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
12
|
+
import { Fields } from '../models/Fields';
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export declare const first: <T>(arr: T[]) => T;
|
|
15
|
+
/** @hidden */
|
|
16
|
+
export declare const last: <T>(arr: T[]) => T;
|
|
17
|
+
/** @hidden */
|
|
18
|
+
export declare const isMultiDay: (item: DataItem) => boolean;
|
|
19
|
+
/** @hidden */
|
|
20
|
+
export declare const isGroupped: (resources: any) => boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare function formatEventTime(intl: IntlService, start: Date, end: Date, isAllDay: boolean): string;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
* TODO Move to date-math
|
|
28
|
+
*/
|
|
29
|
+
export declare const addUTCDays: (date: Date, offset: number) => Date;
|
|
30
|
+
/** @hidden */
|
|
31
|
+
export declare function dateWithTime(target: Date, time: Date): Date;
|
|
32
|
+
/**
|
|
33
|
+
* @hidden
|
|
34
|
+
*/
|
|
35
|
+
export declare const getToday: () => Date;
|
|
36
|
+
/** @hidden */
|
|
37
|
+
export declare const slotDive: (x: number, y: number, maxDepth: number, level?: number) => HTMLElement | null;
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
export declare const getField: (obj: any, field: any) => any;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
export declare const setField: (obj: any, field: string | undefined, value: any) => any;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export declare function assignField(target: any, source: any, field: string): any;
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
export declare function assignFields(target: any, source: any, ...fields: string[]): any;
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
export declare const isPresent: (value: any) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
export declare const isRecurringMaster: (event: Item) => boolean | "" | null;
|
|
62
|
+
/** @hidden */
|
|
63
|
+
export declare function toUTCDate(localDate: Date): Date;
|
|
64
|
+
/** @hidden */
|
|
65
|
+
export declare function getUTCDate(utcDate: Date): Date;
|
|
66
|
+
/** @hidden */
|
|
67
|
+
export declare function toUTCDateTime(localDate: Date): Date;
|
|
68
|
+
/** @hidden */
|
|
69
|
+
export declare function toInvariantTime(date: Date): Date;
|
|
70
|
+
/** @hidden */
|
|
71
|
+
export declare function isRecurringException(event: Item): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
*/
|
|
75
|
+
export declare const isRecurring: (event: DataItem, fields: SchedulerModelFields) => boolean;
|
|
76
|
+
/**
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const groupResources: (group: SchedulerGroup | undefined, resources: any[]) => any[];
|
|
80
|
+
/**
|
|
81
|
+
* @hidden
|
|
82
|
+
*/
|
|
83
|
+
export declare const findMaster: (event: DataItem, fields: SchedulerModelFields, data: DataItem[]) => DataItem | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
export declare const isMaster: (event: Occurrence, fields: SchedulerModelFields) => boolean;
|
|
88
|
+
/**
|
|
89
|
+
* @hidden
|
|
90
|
+
*/
|
|
91
|
+
export declare const buildException: (event: DataItem, fields: SchedulerModelFields, data: DataItem[]) => DataItem;
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
*/
|
|
95
|
+
export declare const isException: (event: DataItem, fields: SchedulerModelFields) => boolean;
|
|
96
|
+
/** @hidden */
|
|
97
|
+
export declare const intersects: (startTime: Date, endTime: Date, periodStart: Date, periodEnd: Date, inclusive?: boolean) => boolean;
|
|
98
|
+
/** @hidden */
|
|
99
|
+
export declare const roundAllDayEnd: ({ start, end }: any) => ZonedDate;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
export declare const defaultModelFields: {
|
|
104
|
+
id: string;
|
|
105
|
+
start: string;
|
|
106
|
+
startTimezone: string;
|
|
107
|
+
originalStart: string;
|
|
108
|
+
end: string;
|
|
109
|
+
endTimezone: string;
|
|
110
|
+
isAllDay: string;
|
|
111
|
+
title: string;
|
|
112
|
+
description: string;
|
|
113
|
+
recurrenceRule: string;
|
|
114
|
+
recurrenceId: string;
|
|
115
|
+
recurrenceExceptions: string;
|
|
116
|
+
};
|
|
117
|
+
/** @hidden */
|
|
118
|
+
export declare const getModelFields: (modelFields: any) => {
|
|
119
|
+
fields: Fields;
|
|
120
|
+
};
|
|
121
|
+
/** @hidden */
|
|
122
|
+
export declare const isInTimeRange: (date: Date, min: Date, max: Date) => boolean;
|
|
123
|
+
/** @hidden */
|
|
124
|
+
export declare const isInDaysRange: (date: number, min: number, max: number) => boolean;
|
|
125
|
+
/** @hidden */
|
|
126
|
+
export declare const toSchedulerGroups: (group?: SchedulerGroup, resources?: any[]) => any[];
|
|
127
|
+
/** @hidden */
|
|
128
|
+
export declare const toSchedulerResources: (resources?: SchedulerResource[]) => SchedulerResource[];
|
|
129
|
+
/** @hidden */
|
|
130
|
+
export declare const generateResourceFields: (groups: any[], defaultFields: any) => Object;
|
|
131
|
+
/**
|
|
132
|
+
* @hidden
|
|
133
|
+
*
|
|
134
|
+
* TODO: Move to @progress/kendo-common
|
|
135
|
+
*/
|
|
136
|
+
export declare const isBlank: (value: any) => boolean;
|
|
137
|
+
/**
|
|
138
|
+
* @hidden
|
|
139
|
+
*
|
|
140
|
+
* TODO: Move to @progress/kendo-common
|
|
141
|
+
*/
|
|
142
|
+
export declare const isNullOrEmptyString: (value?: string) => boolean;
|
|
143
|
+
/**
|
|
144
|
+
* @hidden
|
|
145
|
+
*/
|
|
146
|
+
export declare const setTime: (origin: Date, candidate: Date) => Date;
|
|
147
|
+
/** @hidden */
|
|
148
|
+
export declare const extractGroups: (dataItem: DataItem, fields: SchedulerModelFields, group: SchedulerGroup, resources: SchedulerResource[]) => any;
|
|
149
|
+
/** @hidden */
|
|
150
|
+
export declare const extractResourceFields: (dataItem: DataItem, fields: SchedulerModelFields, resources?: SchedulerResource[]) => Object;
|
|
151
|
+
/** @hidden */
|
|
152
|
+
export declare const extractResources: (dataItem: DataItem, fields: SchedulerModelFields, resources?: SchedulerResource[]) => any[];
|
|
153
|
+
/** @hidden */
|
|
154
|
+
export declare const shallowCompare: (x: any, y: any) => boolean;
|
|
155
|
+
/** @hidden */
|
|
156
|
+
export declare const findMissing: (orderNumbers: number[]) => number;
|
|
157
|
+
/** @hidden */
|
|
158
|
+
export declare const calculateOrder: (current: SchedulerItemHandle, items: SchedulerItemHandle[], slots: React.RefObject<SchedulerSlotHandle>[], ignoreIsAllDay?: boolean) => any;
|
|
159
|
+
/** @hidden */
|
|
160
|
+
export declare const mapSlotsToItems: (items: Item[], slots: Slot[], ignoreIsAllDay?: boolean) => void;
|
|
161
|
+
/** @hidden */
|
|
162
|
+
export declare const mapItemsToSlots: (items: Item[], slots: Slot[], ignoreIsAllDay?: boolean) => void;
|
|
163
|
+
/** @hidden */
|
|
164
|
+
export declare const noop: (..._args: any) => void;
|
|
165
|
+
/** @hidden */
|
|
166
|
+
export declare const findFirstItem: (current: SchedulerSlotHandle) => SchedulerItemHandle | null;
|
|
167
|
+
/** @hidden */
|
|
168
|
+
export declare const findNextItem: (ref: React.RefObject<SchedulerItemHandle>, all: React.RefObject<SchedulerItemHandle>[], ignoreIsAllDay?: boolean | undefined, backwards?: boolean) => React.RefObject<SchedulerItemHandle> | null;
|
|
169
|
+
/**
|
|
170
|
+
* @hidden
|
|
171
|
+
*/
|
|
172
|
+
export declare const orderSort: (a: Item, b: Item) => number;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerViewProps, EditableProp } from '../../models';
|
|
7
|
+
import { SchedulerSlotProps } from '../../slots/SchedulerSlot';
|
|
8
|
+
import { SchedulerTaskProps } from '../../tasks/SchedulerTask';
|
|
9
|
+
import { SchedulerViewSlotProps } from '../../slots/SchedulerViewSlot';
|
|
10
|
+
import { SchedulerEditSlotProps } from '../../slots/SchedulerEditSlot';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the properties of the KendoReact [AgendaView]({% slug api_scheduler_agendaview %}) Component.
|
|
13
|
+
*/
|
|
14
|
+
export interface AgendaViewProps extends SchedulerViewProps {
|
|
15
|
+
/**
|
|
16
|
+
* The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
|
|
17
|
+
* The default value is 7 days.
|
|
18
|
+
*/
|
|
19
|
+
step?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the number of days that the view will render.
|
|
22
|
+
* Defaults to `7`.
|
|
23
|
+
*/
|
|
24
|
+
numberOfDays?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The long-date format for displaying the
|
|
27
|
+
* selected date in the Scheduler toolbar.
|
|
28
|
+
* Defaults to `{0:D} - {1:D}`
|
|
29
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
30
|
+
*/
|
|
31
|
+
selectedDateFormat?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The short-date format for displaying the
|
|
34
|
+
* selected date in the Scheduler toolbar.
|
|
35
|
+
* Defaults to `{0:d} - {1-d}`
|
|
36
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
37
|
+
*/
|
|
38
|
+
selectedShortDateFormat?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Sets a custom `className` to the wrapping element of the `AgendaView`.
|
|
41
|
+
*/
|
|
42
|
+
className?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Sets a custom `id` to the wrapping element of the `AgendaView`.
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Sets a custom `style` property to the wrapping element of the `AgendaView`.
|
|
49
|
+
*/
|
|
50
|
+
style?: React.CSSProperties;
|
|
51
|
+
/**
|
|
52
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
53
|
+
*/
|
|
54
|
+
editable?: EditableProp;
|
|
55
|
+
/**
|
|
56
|
+
* Overrides the `task` prop of the Scheduler for the specified view only.
|
|
57
|
+
*/
|
|
58
|
+
task?: React.ComponentType<SchedulerTaskProps>;
|
|
59
|
+
/**
|
|
60
|
+
* Overrides the `viewTask` prop of the Scheduler for the specified view only.
|
|
61
|
+
*/
|
|
62
|
+
viewTask?: React.ComponentType<SchedulerTaskProps>;
|
|
63
|
+
/**
|
|
64
|
+
* Overrides the `editTask` prop of the Scheduler for the specified view only.
|
|
65
|
+
*/
|
|
66
|
+
editTask?: React.ComponentType<SchedulerTaskProps>;
|
|
67
|
+
/**
|
|
68
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
69
|
+
*/
|
|
70
|
+
slot?: React.ComponentType<SchedulerSlotProps>;
|
|
71
|
+
/**
|
|
72
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
73
|
+
*/
|
|
74
|
+
viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
|
|
75
|
+
/**
|
|
76
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
77
|
+
*/
|
|
78
|
+
editSlot?: React.ComponentType<SchedulerEditSlotProps>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Represents the KendoReact [AgendaView]({% slug agenda_view_scheduler %}) Component.
|
|
82
|
+
*/
|
|
83
|
+
export declare const AgendaView: React.FunctionComponent<AgendaViewProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerResource, SchedulerGroup } from '../../models';
|
|
7
|
+
/** @hidden */
|
|
8
|
+
export interface HorizontalResourceIteratorProps {
|
|
9
|
+
group?: SchedulerGroup;
|
|
10
|
+
resources?: SchedulerResource[];
|
|
11
|
+
nested?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
rowContent?: React.ComponentType<any>;
|
|
14
|
+
childRowContent?: React.ComponentType<any>;
|
|
15
|
+
rowContentProps?: any;
|
|
16
|
+
}
|
|
17
|
+
/** @hidden */
|
|
18
|
+
export interface RenderResourcesArgs {
|
|
19
|
+
resources: any[];
|
|
20
|
+
nested: boolean;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
groupIndex: number;
|
|
23
|
+
rowContent: React.ComponentType<any>;
|
|
24
|
+
childRowContent: React.ComponentType<any>;
|
|
25
|
+
rowContentProps?: React.ComponentType<any>;
|
|
26
|
+
}
|
|
27
|
+
/** @hidden */
|
|
28
|
+
export declare const HorizontalResourceIterator: React.FunctionComponent<HorizontalResourceIteratorProps>;
|
|
29
|
+
/** @hidden */
|
|
30
|
+
export declare const DefaultRowContent: (props: any) => any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { DataItem } from '../../models';
|
|
7
|
+
import { SchedulerItemProps } from '../../items/SchedulerItem';
|
|
8
|
+
import { SchedulerViewItemProps } from '../../items/SchedulerViewItem';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the KendoReact [SchedulerDrag] component.
|
|
11
|
+
*/
|
|
12
|
+
export interface SchedulerDragProps {
|
|
13
|
+
/** @hidden */
|
|
14
|
+
ignoreIsAllDay?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the `DataItem` to be visualized as a Drag item.
|
|
17
|
+
*/
|
|
18
|
+
dataItem: DataItem;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the orientation of the SchedulerItem inside the Drag.
|
|
21
|
+
*/
|
|
22
|
+
vertical?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
25
|
+
*
|
|
26
|
+
* The default Component is: [SchedulerItem].
|
|
27
|
+
*/
|
|
28
|
+
item?: React.ComponentType<SchedulerItemProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Overrides the default component responsible for positioning the item inside the view.
|
|
31
|
+
*
|
|
32
|
+
* The default Component is: [SchedulerViewItem]().
|
|
33
|
+
*/
|
|
34
|
+
viewItem?: React.ComponentType<SchedulerViewItemProps>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents the default `drag` component rendered by the [KendoReact SchedulerEditItem component].
|
|
38
|
+
*/
|
|
39
|
+
export declare const SchedulerDrag: React.FunctionComponent<SchedulerDragProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { DataItem } from '../../models';
|
|
7
|
+
import { SchedulerItemProps } from '../../items/SchedulerItem';
|
|
8
|
+
import { SchedulerViewItemProps } from '../../items/SchedulerViewItem';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the KendoReact [SchedulerResize]() component.
|
|
11
|
+
*/
|
|
12
|
+
export interface SchedulerResizeProps {
|
|
13
|
+
/** @hidden */
|
|
14
|
+
format?: string;
|
|
15
|
+
/** @hidden */
|
|
16
|
+
ignoreIsAllDay?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the `DataItem` to be visualized as a Resize item.
|
|
19
|
+
*/
|
|
20
|
+
dataItem: DataItem;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the orientation of the SchedulerItem inside the Drag.
|
|
23
|
+
*/
|
|
24
|
+
vertical?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
27
|
+
*
|
|
28
|
+
* The default Component is: [SchedulerItem].
|
|
29
|
+
*/
|
|
30
|
+
item?: React.ComponentType<SchedulerItemProps>;
|
|
31
|
+
/**
|
|
32
|
+
* Overrides the default component responsible for positioning the item inside the view.
|
|
33
|
+
*
|
|
34
|
+
* The default Component is: [SchedulerViewItem]().
|
|
35
|
+
*/
|
|
36
|
+
viewItem?: React.ComponentType<SchedulerViewItemProps>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents the default `resize` component rendered by the [KendoReact SchedulerEditItem component]().
|
|
40
|
+
*/
|
|
41
|
+
export declare const SchedulerResize: React.FunctionComponent<SchedulerResizeProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerResource, SchedulerGroup } from '../../models';
|
|
7
|
+
/** @hidden */
|
|
8
|
+
export interface VerticalResourceIteratorProps {
|
|
9
|
+
group?: SchedulerGroup;
|
|
10
|
+
resources?: SchedulerResource[];
|
|
11
|
+
nested?: boolean;
|
|
12
|
+
wrapGroup?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
cellContent?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** @hidden */
|
|
17
|
+
export interface RenderResourcesArgs {
|
|
18
|
+
resources: any[];
|
|
19
|
+
children: React.ReactNode;
|
|
20
|
+
cellContent: React.ReactNode;
|
|
21
|
+
depth: number;
|
|
22
|
+
groupIndex: number;
|
|
23
|
+
}
|
|
24
|
+
/** @hidden */
|
|
25
|
+
export declare const VerticalResourceIterator: React.FunctionComponent<VerticalResourceIteratorProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Rect, SchedulerGroup, OptionalRect, Slot } from '../../models';
|
|
6
|
+
import { SchedulerResource } from '../../models/SchedulerResource';
|
|
7
|
+
/** @hidden */
|
|
8
|
+
export declare const last: (arr: any[]) => any;
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const toFlatGroupResources: (resources: SchedulerResource[], index?: number, depth?: number, parents?: any) => any[];
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const calculateEventRect: (slots: Slot[], vertical: any) => Rect | null;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function toGroupResources(group?: SchedulerGroup, resources?: SchedulerResource[]): any[];
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
* TODO Move to date-math
|
|
20
|
+
*/
|
|
21
|
+
export declare function addUTCDays(date: Date, offset: number): Date;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
* ResourceIterator:
|
|
25
|
+
*/
|
|
26
|
+
export declare const expandResources: (resources: any[], lastIndex?: number) => any[];
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare const resourcesByIndex: (index: number, taskResources: any[], spans: any[]) => any[];
|
|
31
|
+
/** @hidden */
|
|
32
|
+
export declare const getRect: (el: HTMLElement | null) => Rect;
|
|
33
|
+
/** @hidden */
|
|
34
|
+
export declare const getPadding: (el: HTMLElement, horizontal?: boolean) => number;
|
|
35
|
+
/** @hidden */
|
|
36
|
+
export declare const getBorders: (el: HTMLElement, horizontal?: boolean) => number;
|
|
37
|
+
/** @hidden */
|
|
38
|
+
export declare const setRect: (el: HTMLElement | null, rect: OptionalRect, minHeightInsteadOfHeight?: boolean) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { MultiDayViewProps } from '../day/MultiDayView';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the properties of the [DayView]({% slug api_scheduler_dayviewprops %}) Component.
|
|
9
|
+
*/
|
|
10
|
+
export interface DayViewProps extends MultiDayViewProps {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Represents the KendoReact [DayView]({% slug day_view_scheduler %}) Component.
|
|
14
|
+
*/
|
|
15
|
+
export declare const DayView: React.FunctionComponent<DayViewProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export interface DayViewAllDayRowContentProps {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
groupIndex?: number;
|
|
10
|
+
}
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const DayViewAllDayRowContent: (props: DayViewAllDayRowContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export interface DayViewGroupRowContentArgs {
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
rangeIndex: number;
|
|
10
|
+
}
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const DayViewGroupRowContent: React.FunctionComponent<DayViewGroupRowContentArgs>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { Slot } from '../../models';
|
|
7
|
+
import { TimeHeaderCellProps } from '../../components/TimeHeaderCell';
|
|
8
|
+
/** @hidden */
|
|
9
|
+
export interface DayViewRowContentArgs {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
slot: Slot;
|
|
12
|
+
isMaster?: boolean;
|
|
13
|
+
isLast?: boolean;
|
|
14
|
+
timeHeaderCell?: React.ComponentType<TimeHeaderCellProps>;
|
|
15
|
+
}
|
|
16
|
+
/** @hidden */
|
|
17
|
+
export declare const DayViewRowContent: (props: DayViewRowContentArgs) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { Day } from '@progress/kendo-date-math';
|
|
7
|
+
import { DateRange, SchedulerViewProps, SchedulerViewDateRangeArgs } from '../../models';
|
|
8
|
+
import { SchedulerItemProps } from '../../items/SchedulerItem';
|
|
9
|
+
import { SchedulerSlotProps } from '../../slots/SchedulerSlot';
|
|
10
|
+
import { SchedulerViewItemProps } from '../../items/SchedulerViewItem';
|
|
11
|
+
import { SchedulerViewSlotProps } from '../../slots/SchedulerViewSlot';
|
|
12
|
+
import { SchedulerEditSlotProps } from '../../slots/SchedulerEditSlot';
|
|
13
|
+
import { SchedulerEditItemProps } from '../../items/SchedulerEditItem';
|
|
14
|
+
import { DateHeaderCellProps } from '../../components/DateHeaderCell';
|
|
15
|
+
import { TimeHeaderCellProps } from '../../components/TimeHeaderCell';
|
|
16
|
+
import { SchedulerFormProps } from '../../components/SchedulerForm';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export interface MultiDayViewProps extends SchedulerViewProps {
|
|
21
|
+
/**
|
|
22
|
+
* The long-date format for displaying the
|
|
23
|
+
* selected date in the Scheduler toolbar.
|
|
24
|
+
* Defaults to `{0:D} - {1:D}`
|
|
25
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
26
|
+
*/
|
|
27
|
+
selectedDateFormat?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The short-date format for displaying the
|
|
30
|
+
* selected date in the Scheduler toolbar.
|
|
31
|
+
* Defaults to `{0:d} - {1-d}`
|
|
32
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
33
|
+
*/
|
|
34
|
+
selectedShortDateFormat?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
37
|
+
*/
|
|
38
|
+
editable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the number of days that the view will render.
|
|
41
|
+
* Defaults to `1`.
|
|
42
|
+
*/
|
|
43
|
+
numberOfDays?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The start time of the view. The MultiDayView displays events which are visible after the start time.
|
|
46
|
+
* Accepts string values in the `HH:mm` format.
|
|
47
|
+
*/
|
|
48
|
+
startTime?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The end time of the view. The MultiDayView displays events which are visible before the end time.
|
|
51
|
+
* Accepts string values in the `HH:mm` format.
|
|
52
|
+
*/
|
|
53
|
+
endTime?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
|
|
56
|
+
* The default value is 1 days.
|
|
57
|
+
*/
|
|
58
|
+
step?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
61
|
+
* Accepts string values in the `HH:mm` format.
|
|
62
|
+
*/
|
|
63
|
+
workDayStart?: string;
|
|
64
|
+
/** @hidden */
|
|
65
|
+
isWorkDayStart?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
68
|
+
* Accepts string values in the `HH:mm` format.
|
|
69
|
+
*/
|
|
70
|
+
workDayEnd?: string;
|
|
71
|
+
/** @hidden */
|
|
72
|
+
isWorkDayEnd?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The start of the work week.
|
|
75
|
+
*/
|
|
76
|
+
workWeekStart?: Day;
|
|
77
|
+
/**
|
|
78
|
+
* The end of the work week.
|
|
79
|
+
*/
|
|
80
|
+
workWeekEnd?: Day;
|
|
81
|
+
/**
|
|
82
|
+
* The number of divisions of the time slots.
|
|
83
|
+
*/
|
|
84
|
+
slotDivisions?: number;
|
|
85
|
+
/**
|
|
86
|
+
* The duration (in minutes) of the time slots.
|
|
87
|
+
*/
|
|
88
|
+
slotDuration?: number;
|
|
89
|
+
/**
|
|
90
|
+
* If set to `true`, the view will be shown in the business-hours mode only.
|
|
91
|
+
*
|
|
92
|
+
* This will always override the internal `showWorkHours` state.
|
|
93
|
+
*/
|
|
94
|
+
showWorkHours?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Sets the initial business-hour mode. Default `true`.
|
|
97
|
+
*
|
|
98
|
+
* This option applies only the initial `showWorkHours` state.
|
|
99
|
+
*/
|
|
100
|
+
defaultShowWorkHours?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Sets a custom `className` to the wrapping element of the `DayView`.
|
|
103
|
+
*/
|
|
104
|
+
className?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Sets a custom `id` to the wrapping element of the `DayView`.
|
|
107
|
+
*/
|
|
108
|
+
id?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Sets a custom `style` property to the wrapping element of the `DayView`.
|
|
111
|
+
*/
|
|
112
|
+
style?: React.CSSProperties;
|
|
113
|
+
/**
|
|
114
|
+
* Overrides the `item` prop of the Scheduler for the specified view only.
|
|
115
|
+
*/
|
|
116
|
+
item?: React.ComponentType<SchedulerItemProps>;
|
|
117
|
+
/**
|
|
118
|
+
* Overrides the `viewItem` prop of the Scheduler for the specified view only.
|
|
119
|
+
*/
|
|
120
|
+
viewItem?: React.ComponentType<SchedulerViewItemProps>;
|
|
121
|
+
/**
|
|
122
|
+
* Overrides the `editableItem` prop of the Scheduler for the specified view only.
|
|
123
|
+
*/
|
|
124
|
+
editItem?: React.ComponentType<SchedulerEditItemProps>;
|
|
125
|
+
/**
|
|
126
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
127
|
+
*/
|
|
128
|
+
slot?: React.ComponentType<SchedulerSlotProps>;
|
|
129
|
+
/**
|
|
130
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
131
|
+
*/
|
|
132
|
+
viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
|
|
133
|
+
/**
|
|
134
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
135
|
+
*/
|
|
136
|
+
editSlot?: React.ComponentType<SchedulerEditSlotProps>;
|
|
137
|
+
form?: React.ComponentType<SchedulerFormProps>;
|
|
138
|
+
/**
|
|
139
|
+
* If set to `false` the "current time" marker of the scheduler would not be displayed.
|
|
140
|
+
*/
|
|
141
|
+
currentTimeMarker?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Represents component based on the DateHeaderCellProps.
|
|
144
|
+
*/
|
|
145
|
+
dateHeaderCell?: React.ComponentType<DateHeaderCellProps>;
|
|
146
|
+
/**
|
|
147
|
+
* Represents component based on the TimeHeaderCellProps.
|
|
148
|
+
*/
|
|
149
|
+
timeHeaderCell?: React.ComponentType<TimeHeaderCellProps>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @hidden
|
|
153
|
+
*/
|
|
154
|
+
export declare const MultiDayView: React.FunctionComponent<MultiDayViewProps>;
|
|
155
|
+
/** @hidden */
|
|
156
|
+
export declare const defaultProps: {
|
|
157
|
+
name: string;
|
|
158
|
+
title: string;
|
|
159
|
+
currentTimeMarker: boolean;
|
|
160
|
+
dateRange: ({ date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
161
|
+
selectedDateFormat: string;
|
|
162
|
+
selectedShortDateFormat: string;
|
|
163
|
+
numberOfDays: number;
|
|
164
|
+
startTime: string;
|
|
165
|
+
endTime: string;
|
|
166
|
+
isWorkDayStart: string;
|
|
167
|
+
isWorkDayEnd: string;
|
|
168
|
+
workWeekStart: Day;
|
|
169
|
+
workWeekEnd: Day;
|
|
170
|
+
step: number;
|
|
171
|
+
slotDivisions: number;
|
|
172
|
+
slotDuration: number;
|
|
173
|
+
showCurrentTime: boolean;
|
|
174
|
+
defaultShowWorkHours: boolean;
|
|
175
|
+
};
|