@progress/kendo-react-scheduler 7.2.4-develop.2 → 7.2.4-develop.4
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.js +8 -0
- package/Scheduler.mjs +389 -0
- package/components/BaseView.js +8 -0
- package/components/BaseView.mjs +61 -0
- package/components/CurrentTimeMarket.js +8 -0
- package/components/CurrentTimeMarket.mjs +110 -0
- package/components/DateHeaderCell.js +8 -0
- package/components/DateHeaderCell.mjs +43 -0
- package/components/SchedulerForm.js +8 -0
- package/components/SchedulerForm.mjs +119 -0
- package/components/SchedulerOccurrenceDialog.js +8 -0
- package/components/SchedulerOccurrenceDialog.mjs +48 -0
- package/components/SchedulerRemoveDialog.js +8 -0
- package/components/SchedulerRemoveDialog.mjs +50 -0
- package/components/ShowMoreItemsButton.js +8 -0
- package/components/ShowMoreItemsButton.mjs +49 -0
- package/components/TimeHeaderCell.js +8 -0
- package/components/TimeHeaderCell.mjs +43 -0
- package/components/footer/SchedulerFooter.js +8 -0
- package/components/footer/SchedulerFooter.mjs +35 -0
- package/components/footer/bussiness-hours/BussinessHours.js +8 -0
- package/components/footer/bussiness-hours/BussinessHours.mjs +31 -0
- package/components/header/SchedulerHeader.js +8 -0
- package/components/header/SchedulerHeader.mjs +35 -0
- package/components/header/navigation/NavigationDatePicker.js +8 -0
- package/components/header/navigation/NavigationDatePicker.mjs +113 -0
- package/components/header/navigation/SchedulerNavigation.js +8 -0
- package/components/header/navigation/SchedulerNavigation.mjs +32 -0
- package/components/header/view-selector/SchedulerViewSelector.js +8 -0
- package/components/header/view-selector/SchedulerViewSelector.mjs +32 -0
- package/components/header/view-selector/ViewSelectorItem.js +8 -0
- package/components/header/view-selector/ViewSelectorItem.mjs +39 -0
- package/components/header/view-selector/ViewSelectorList.js +8 -0
- package/components/header/view-selector/ViewSelectorList.mjs +65 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +28 -0
- package/context/SchedulerContext.js +8 -0
- package/context/SchedulerContext.mjs +78 -0
- package/context/SchedulerEditItemContext.js +8 -0
- package/context/SchedulerEditItemContext.mjs +51 -0
- package/context/SchedulerEditSlotContext.js +8 -0
- package/context/SchedulerEditSlotContext.mjs +25 -0
- package/context/SchedulerEditTaskContext.js +8 -0
- package/context/SchedulerEditTaskContext.mjs +16 -0
- package/context/SchedulerResourceIteratorContext.js +8 -0
- package/context/SchedulerResourceIteratorContext.mjs +16 -0
- package/context/SchedulerViewContext.js +8 -0
- package/context/SchedulerViewContext.mjs +60 -0
- package/dist/cdn/js/kendo-react-scheduler.js +8 -5
- package/editors/FilterableComboBox.js +8 -0
- package/editors/FilterableComboBox.mjs +37 -0
- package/editors/ResourceEditor.js +8 -0
- package/editors/ResourceEditor.mjs +71 -0
- package/editors/SchedulerFormEditor.js +8 -0
- package/editors/SchedulerFormEditor.mjs +368 -0
- package/editors/ZonedDateTime.js +8 -0
- package/editors/ZonedDateTime.mjs +44 -0
- package/hooks/use-items-focus.js +8 -0
- package/hooks/use-items-focus.mjs +42 -0
- package/hooks/use-items-selection.js +8 -0
- package/hooks/use-items-selection.mjs +67 -0
- package/hooks/use-slots-focus.js +8 -0
- package/hooks/use-slots-focus.mjs +49 -0
- package/hooks/use-slots-selection.js +8 -0
- package/hooks/use-slots-selection.mjs +37 -0
- package/hooks/useCellSync.js +8 -0
- package/hooks/useCellSync.mjs +29 -0
- package/hooks/useControlledState.js +8 -0
- package/hooks/useControlledState.mjs +21 -0
- package/hooks/useEditable.js +8 -0
- package/hooks/useEditable.mjs +24 -0
- package/hooks/useRowSync.js +8 -0
- package/hooks/useRowSync.mjs +32 -0
- package/hooks/useSchedulerItem.js +8 -0
- package/hooks/useSchedulerItem.mjs +31 -0
- package/hooks/useSchedulerSlot.js +8 -0
- package/hooks/useSchedulerSlot.mjs +31 -0
- package/hooks/useSlotExpand.js +8 -0
- package/hooks/useSlotExpand.mjs +67 -0
- package/index.d.mts +4220 -5
- package/index.d.ts +4220 -45
- package/index.js +8 -5
- package/index.mjs +145 -5878
- package/items/SchedulerEditItem.js +8 -0
- package/items/SchedulerEditItem.mjs +610 -0
- package/items/SchedulerItem.js +8 -0
- package/items/SchedulerItem.mjs +328 -0
- package/items/SchedulerItemContent.js +8 -0
- package/items/SchedulerItemContent.mjs +23 -0
- package/items/SchedulerProportionalViewItem.js +8 -0
- package/items/SchedulerProportionalViewItem.mjs +120 -0
- package/items/SchedulerViewItem.js +8 -0
- package/items/SchedulerViewItem.mjs +128 -0
- package/items/hooks/use-drag-item.js +8 -0
- package/items/hooks/use-drag-item.mjs +118 -0
- package/items/hooks/use-form-item.js +8 -0
- package/items/hooks/use-form-item.mjs +46 -0
- package/items/hooks/use-remove-item.js +8 -0
- package/items/hooks/use-remove-item.mjs +40 -0
- package/items/hooks/use-resize-item.js +8 -0
- package/items/hooks/use-resize-item.mjs +145 -0
- package/items/hooks/use-series.js +8 -0
- package/items/hooks/use-series.mjs +32 -0
- package/items/hooks/use-show-occurrence-dialog.js +8 -0
- package/items/hooks/use-show-occurrence-dialog.mjs +36 -0
- package/items/hooks/use-show-remove-item-dialog.js +8 -0
- package/items/hooks/use-show-remove-item-dialog.mjs +36 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +167 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +10 -10
- package/recurrence/RecurrenceEditor.js +8 -0
- package/recurrence/RecurrenceEditor.mjs +438 -0
- package/recurrence/RecurrenceFrequencyEditor.js +8 -0
- package/recurrence/RecurrenceFrequencyEditor.mjs +41 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.js +8 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +35 -0
- package/recurrence/common.js +8 -0
- package/recurrence/common.mjs +127 -0
- package/services/itemsService.js +8 -0
- package/services/itemsService.mjs +56 -0
- package/services/occurrenceService.js +8 -0
- package/services/occurrenceService.mjs +49 -0
- package/services/rangeService.js +8 -0
- package/services/rangeService.mjs +26 -0
- package/services/slotsService.js +8 -0
- package/services/slotsService.mjs +39 -0
- package/slots/SchedulerEditSlot.js +8 -0
- package/slots/SchedulerEditSlot.mjs +191 -0
- package/slots/SchedulerSlot.js +8 -0
- package/slots/SchedulerSlot.mjs +175 -0
- package/slots/SchedulerViewSlot.js +8 -0
- package/slots/SchedulerViewSlot.mjs +24 -0
- package/tasks/SchedulerEditTask.js +8 -0
- package/tasks/SchedulerEditTask.mjs +157 -0
- package/tasks/SchedulerTask.js +8 -0
- package/tasks/SchedulerTask.mjs +67 -0
- package/tasks/SchedulerViewTask.js +8 -0
- package/tasks/SchedulerViewTask.mjs +23 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +171 -0
- package/views/agenda/AgendaView.js +8 -0
- package/views/agenda/AgendaView.mjs +147 -0
- package/views/common/HorizontalResourceIterator.js +8 -0
- package/views/common/HorizontalResourceIterator.mjs +38 -0
- package/views/common/SchedulerDrag.js +8 -0
- package/views/common/SchedulerDrag.mjs +44 -0
- package/views/common/SchedulerResize.js +8 -0
- package/views/common/SchedulerResize.mjs +48 -0
- package/views/common/VerticalResourceIterator.js +8 -0
- package/views/common/VerticalResourceIterator.mjs +78 -0
- package/views/common/utils.js +8 -0
- package/views/common/utils.mjs +75 -0
- package/views/day/DayView.js +8 -0
- package/views/day/DayView.mjs +27 -0
- package/views/day/DayViewAllDayRowContent.js +8 -0
- package/views/day/DayViewAllDayRowContent.mjs +18 -0
- package/views/day/DayViewGroupRowContent.js +8 -0
- package/views/day/DayViewGroupRowContent.mjs +13 -0
- package/views/day/DayViewRowContent.js +8 -0
- package/views/day/DayViewRowContent.mjs +32 -0
- package/views/day/MultiDayView.js +8 -0
- package/views/day/MultiDayView.mjs +376 -0
- package/views/month/MonthView.js +8 -0
- package/views/month/MonthView.mjs +155 -0
- package/views/time/MultiDayTimelineView.js +8 -0
- package/views/time/MultiDayTimelineView.mjs +264 -0
- package/views/time/TimelineView.js +8 -0
- package/views/time/TimelineView.mjs +27 -0
- package/views/time/TimelineViewAllEventsRowContent.js +8 -0
- package/views/time/TimelineViewAllEventsRowContent.mjs +18 -0
- package/views/time/TimelineViewRowContent.js +8 -0
- package/views/time/TimelineViewRowContent.mjs +13 -0
- package/views/week/WeekView.js +8 -0
- package/views/week/WeekView.mjs +44 -0
- package/views/week/WorkWeekView.js +8 -0
- package/views/week/WorkWeekView.mjs +55 -0
- package/Scheduler.d.ts +0 -373
- package/components/BaseView.d.ts +0 -22
- package/components/CurrentTimeMarket.d.ts +0 -14
- package/components/DateHeaderCell.d.ts +0 -50
- package/components/SchedulerForm.d.ts +0 -75
- package/components/SchedulerOccurrenceDialog.d.ts +0 -46
- package/components/SchedulerRemoveDialog.d.ts +0 -42
- package/components/ShowMoreItemsButton.d.ts +0 -30
- package/components/TimeHeaderCell.d.ts +0 -50
- package/components/footer/SchedulerFooter.d.ts +0 -25
- package/components/footer/bussiness-hours/BussinessHours.d.ts +0 -17
- package/components/header/SchedulerHeader.d.ts +0 -22
- package/components/header/navigation/NavigationDatePicker.d.ts +0 -9
- package/components/header/navigation/SchedulerNavigation.d.ts +0 -28
- package/components/header/view-selector/SchedulerViewSelector.d.ts +0 -28
- package/components/header/view-selector/ViewSelectorItem.d.ts +0 -12
- package/components/header/view-selector/ViewSelectorList.d.ts +0 -7
- package/constants/index.d.ts +0 -58
- package/context/SchedulerContext.d.ts +0 -231
- package/context/SchedulerEditItemContext.d.ts +0 -172
- package/context/SchedulerEditSlotContext.d.ts +0 -51
- package/context/SchedulerEditTaskContext.d.ts +0 -33
- package/context/SchedulerResourceIteratorContext.d.ts +0 -20
- package/context/SchedulerViewContext.d.ts +0 -76
- package/context/index.d.ts +0 -9
- package/editors/FilterableComboBox.d.ts +0 -8
- package/editors/ResourceEditor.d.ts +0 -18
- package/editors/SchedulerFormEditor.d.ts +0 -498
- package/editors/ZonedDateTime.d.ts +0 -22
- package/hooks/index.d.ts +0 -14
- package/hooks/use-items-focus.d.ts +0 -27
- package/hooks/use-items-selection.d.ts +0 -35
- package/hooks/use-slots-focus.d.ts +0 -38
- package/hooks/use-slots-selection.d.ts +0 -28
- package/hooks/useAsyncMouseEnterLeave.d.ts +0 -15
- package/hooks/useCellSync.d.ts +0 -14
- package/hooks/useControlledState.d.ts +0 -17
- package/hooks/useEditable.d.ts +0 -7
- package/hooks/usePropOrState.d.ts +0 -6
- package/hooks/useRowSync.d.ts +0 -15
- package/hooks/useSchedulerItem.d.ts +0 -11
- package/hooks/useSchedulerSlot.d.ts +0 -11
- package/hooks/useSlotExpand.d.ts +0 -9
- package/hooks/useWorkHours.d.ts +0 -6
- package/items/SchedulerEditItem.d.ts +0 -417
- package/items/SchedulerItem.d.ts +0 -203
- package/items/SchedulerItemContent.d.ts +0 -15
- package/items/SchedulerProportionalViewItem.d.ts +0 -16
- package/items/SchedulerViewItem.d.ts +0 -37
- package/items/hooks/use-drag-item.d.ts +0 -46
- package/items/hooks/use-form-item.d.ts +0 -26
- package/items/hooks/use-remove-item.d.ts +0 -34
- package/items/hooks/use-resize-item.d.ts +0 -49
- package/items/hooks/use-series.d.ts +0 -27
- package/items/hooks/use-show-occurrence-dialog.d.ts +0 -31
- package/items/hooks/use-show-remove-item-dialog.d.ts +0 -31
- package/messages/index.d.ts +0 -240
- package/models/DataItem.d.ts +0 -12
- package/models/DateRange.d.ts +0 -22
- package/models/EditableProp.d.ts +0 -33
- package/models/Fields.d.ts +0 -21
- package/models/Group.d.ts +0 -12
- package/models/Item.d.ts +0 -68
- package/models/Occurrence.d.ts +0 -56
- package/models/Omit.d.ts +0 -8
- package/models/Orientation.d.ts +0 -6
- package/models/Range.d.ts +0 -14
- package/models/Rect.d.ts +0 -19
- package/models/Resource.d.ts +0 -12
- package/models/SchedulerGroup.d.ts +0 -17
- package/models/SchedulerHandle.d.ts +0 -12
- package/models/SchedulerModelFields.d.ts +0 -66
- package/models/SchedulerResource.d.ts +0 -37
- package/models/SchedulerView.d.ts +0 -80
- package/models/Slot.d.ts +0 -54
- package/models/events.d.ts +0 -87
- package/models/index.d.ts +0 -21
- package/package-metadata.d.ts +0 -9
- package/recurrence/RecurrenceEditor.d.ts +0 -16
- package/recurrence/RecurrenceFrequencyEditor.d.ts +0 -14
- package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +0 -17
- package/recurrence/common.d.ts +0 -61
- package/recurrence/types/EndRule.d.ts +0 -8
- package/recurrence/types/Frequency.d.ts +0 -8
- package/recurrence/types/FrequencyEntity.d.ts +0 -12
- package/recurrence/types/MonthEntity.d.ts +0 -11
- package/recurrence/types/OffsetPosition.d.ts +0 -8
- package/recurrence/types/OffsetPositionEntity.d.ts +0 -11
- package/recurrence/types/RepeatOnRule.d.ts +0 -8
- package/recurrence/types/WeekDayEntity.d.ts +0 -11
- package/recurrence/types/WeekDayRule.d.ts +0 -11
- package/reducers/editReducer.d.ts +0 -37
- package/reducers/index.d.ts +0 -5
- package/services/index.d.ts +0 -8
- package/services/itemsService.d.ts +0 -16
- package/services/occurrenceService.d.ts +0 -7
- package/services/rangeService.d.ts +0 -7
- package/services/slotsService.d.ts +0 -10
- package/slots/SchedulerEditSlot.d.ts +0 -56
- package/slots/SchedulerSlot.d.ts +0 -131
- package/slots/SchedulerViewSlot.d.ts +0 -50
- package/tasks/SchedulerEditTask.d.ts +0 -84
- package/tasks/SchedulerTask.d.ts +0 -61
- package/tasks/SchedulerViewTask.d.ts +0 -35
- package/utils/index.d.ts +0 -172
- package/views/agenda/AgendaView.d.ts +0 -96
- package/views/common/HorizontalResourceIterator.d.ts +0 -30
- package/views/common/SchedulerDrag.d.ts +0 -43
- package/views/common/SchedulerResize.d.ts +0 -45
- package/views/common/VerticalResourceIterator.d.ts +0 -25
- package/views/common/utils.d.ts +0 -38
- package/views/day/DayView.d.ts +0 -36
- package/views/day/DayViewAllDayRowContent.d.ts +0 -12
- package/views/day/DayViewGroupRowContent.d.ts +0 -12
- package/views/day/DayViewRowContent.d.ts +0 -17
- package/views/day/MultiDayView.d.ts +0 -175
- package/views/month/MonthView.d.ts +0 -98
- package/views/time/MultiDayTimelineView.d.ts +0 -179
- package/views/time/TimelineView.d.ts +0 -36
- package/views/time/TimelineViewAllEventsRowContent.d.ts +0 -11
- package/views/time/TimelineViewRowContent.d.ts +0 -11
- package/views/week/WeekView.d.ts +0 -106
- package/views/week/WorkWeekView.d.ts +0 -24
package/index.d.mts
CHANGED
|
@@ -1,5 +1,4220 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { CheckboxHandle } from '@progress/kendo-react-inputs';
|
|
10
|
+
import { CheckboxProps } from '@progress/kendo-react-inputs';
|
|
11
|
+
import { ComboBoxProps } from '@progress/kendo-react-dropdowns';
|
|
12
|
+
import { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
13
|
+
import { DatePickerCloseEvent } from '@progress/kendo-react-dateinputs';
|
|
14
|
+
import { DatePickerOpenEvent } from '@progress/kendo-react-dateinputs';
|
|
15
|
+
import { DatePickerProps } from '@progress/kendo-react-dateinputs';
|
|
16
|
+
import { DateTimePickerCloseEvent } from '@progress/kendo-react-dateinputs';
|
|
17
|
+
import { DateTimePickerOpenEvent } from '@progress/kendo-react-dateinputs';
|
|
18
|
+
import { DateTimePickerProps } from '@progress/kendo-react-dateinputs';
|
|
19
|
+
import { Day } from '@progress/kendo-date-math';
|
|
20
|
+
import { DialogProps } from '@progress/kendo-react-dialogs';
|
|
21
|
+
import { DropDownListProps } from '@progress/kendo-react-dropdowns';
|
|
22
|
+
import { ErrorProps } from '@progress/kendo-react-labels';
|
|
23
|
+
import { FieldProps } from '@progress/kendo-react-form';
|
|
24
|
+
import { FieldRenderProps } from '@progress/kendo-react-form';
|
|
25
|
+
import { FormElementHandle } from '@progress/kendo-react-form';
|
|
26
|
+
import { FormElementProps } from '@progress/kendo-react-form';
|
|
27
|
+
import { FormProps } from '@progress/kendo-react-form';
|
|
28
|
+
import { FormRenderProps } from '@progress/kendo-react-form';
|
|
29
|
+
import { InferProps } from 'prop-types';
|
|
30
|
+
import { InputProps } from '@progress/kendo-react-inputs';
|
|
31
|
+
import { IntlService } from '@progress/kendo-react-intl';
|
|
32
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
33
|
+
import { LabelProps } from '@progress/kendo-react-labels';
|
|
34
|
+
import { LocalizationService } from '@progress/kendo-react-intl';
|
|
35
|
+
import { MultiSelectProps } from '@progress/kendo-react-dropdowns';
|
|
36
|
+
import * as React_2 from 'react';
|
|
37
|
+
import { ReactNodeLike } from 'prop-types';
|
|
38
|
+
import { Requireable } from 'prop-types';
|
|
39
|
+
import { TextAreaHandle } from '@progress/kendo-react-inputs';
|
|
40
|
+
import { TextAreaProps } from '@progress/kendo-react-inputs';
|
|
41
|
+
import { ToolbarItemProps } from '@progress/kendo-react-buttons';
|
|
42
|
+
import { ToolbarProps } from '@progress/kendo-react-buttons';
|
|
43
|
+
import { ZonedDate } from '@progress/kendo-date-math';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Represents the KendoReact [AgendaView]({% slug agenda_view_scheduler %}) Component.
|
|
47
|
+
*/
|
|
48
|
+
export declare const AgendaView: React_2.FunctionComponent<AgendaViewProps>;
|
|
49
|
+
|
|
50
|
+
/** @hidden */
|
|
51
|
+
export declare const agendaViewDefaultProps: {
|
|
52
|
+
name: string;
|
|
53
|
+
title: (localization: LocalizationService) => string;
|
|
54
|
+
dateRange: ({ intl, date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
55
|
+
selectedDateFormat: string;
|
|
56
|
+
selectedShortDateFormat: string;
|
|
57
|
+
slotDuration: number;
|
|
58
|
+
slotDivision: number;
|
|
59
|
+
step: number;
|
|
60
|
+
numberOfDays: number;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Represents the properties of the KendoReact [AgendaView]({% slug api_scheduler_agendaview %}) Component.
|
|
65
|
+
*/
|
|
66
|
+
declare interface AgendaViewProps extends SchedulerViewProps {
|
|
67
|
+
/**
|
|
68
|
+
* The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
|
|
69
|
+
* The default value is 7 days.
|
|
70
|
+
*/
|
|
71
|
+
step?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies the number of days that the view will render.
|
|
74
|
+
* Defaults to `7`.
|
|
75
|
+
*/
|
|
76
|
+
numberOfDays?: number;
|
|
77
|
+
/**
|
|
78
|
+
* The long-date format for displaying the
|
|
79
|
+
* selected date in the Scheduler toolbar.
|
|
80
|
+
* Defaults to `{0:D} - {1:D}`
|
|
81
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
82
|
+
*/
|
|
83
|
+
selectedDateFormat?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The short-date format for displaying the
|
|
86
|
+
* selected date in the Scheduler toolbar.
|
|
87
|
+
* Defaults to `{0:d} - {1-d}`
|
|
88
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
89
|
+
*/
|
|
90
|
+
selectedShortDateFormat?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Sets a custom `className` to the wrapping element of the `AgendaView`.
|
|
93
|
+
*/
|
|
94
|
+
className?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Sets a custom `id` to the wrapping element of the `AgendaView`.
|
|
97
|
+
*/
|
|
98
|
+
id?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Sets a custom `style` property to the wrapping element of the `AgendaView`.
|
|
101
|
+
*/
|
|
102
|
+
style?: React_2.CSSProperties;
|
|
103
|
+
/**
|
|
104
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
105
|
+
*/
|
|
106
|
+
editable?: EditableProp;
|
|
107
|
+
/**
|
|
108
|
+
* Overrides the `task` prop of the Scheduler for the specified view only.
|
|
109
|
+
*/
|
|
110
|
+
task?: React_2.ComponentType<SchedulerTaskProps>;
|
|
111
|
+
/**
|
|
112
|
+
* Overrides the `viewTask` prop of the Scheduler for the specified view only.
|
|
113
|
+
*/
|
|
114
|
+
viewTask?: React_2.ComponentType<SchedulerTaskProps>;
|
|
115
|
+
/**
|
|
116
|
+
* Overrides the `editTask` prop of the Scheduler for the specified view only.
|
|
117
|
+
*/
|
|
118
|
+
editTask?: React_2.ComponentType<SchedulerTaskProps>;
|
|
119
|
+
/**
|
|
120
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
121
|
+
*/
|
|
122
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
123
|
+
/**
|
|
124
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
125
|
+
*/
|
|
126
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
127
|
+
/**
|
|
128
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
129
|
+
*/
|
|
130
|
+
editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
|
|
135
|
+
*/
|
|
136
|
+
export declare enum DATA_ACTION {
|
|
137
|
+
create = 0,
|
|
138
|
+
update = 1,
|
|
139
|
+
remove = 2
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the action which can be dispatched through the [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
|
|
144
|
+
*
|
|
145
|
+
* For more information refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
146
|
+
*/
|
|
147
|
+
export declare interface DataAction {
|
|
148
|
+
/**
|
|
149
|
+
* The `type` of the action. The available types are:
|
|
150
|
+
* - `create`
|
|
151
|
+
* - `update`
|
|
152
|
+
* - `remove`
|
|
153
|
+
*/
|
|
154
|
+
type: DATA_ACTION;
|
|
155
|
+
/**
|
|
156
|
+
* Specifies if the action should be applied to the whole series of a recurring item. If the item is not recurring, set `series` to `false`.
|
|
157
|
+
*/
|
|
158
|
+
series: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Specifies the `dataItem` being edited.
|
|
161
|
+
*/
|
|
162
|
+
dataItem: DataItem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Represents the items which the [`data`]({% slug api_scheduler_schedulerprops %}#toc-data) property accepts.
|
|
167
|
+
* The `data` has no strict type. However, to visualize it correctly,
|
|
168
|
+
* use it in combination with the [`modelFields`]({% slug api_scheduler_schedulerprops %}#toc-modelfields) property.
|
|
169
|
+
* For more information, refer to the article on
|
|
170
|
+
* [binding the Scheduler to data]({% slug data_binding_scheduler %}).
|
|
171
|
+
*/
|
|
172
|
+
export declare type DataItem = any;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Represents the DateHeaderCell component.
|
|
176
|
+
*/
|
|
177
|
+
export declare const DateHeaderCell: React_2.ForwardRefExoticComponent<DateHeaderCellProps & React_2.RefAttributes<DateHeaderCellHandle | null>>;
|
|
178
|
+
|
|
179
|
+
export declare const dateHeaderCellDefaultProps: {
|
|
180
|
+
as: React_2.ForwardRefExoticComponent<DateHeaderCellProps & React_2.RefAttributes<unknown>>;
|
|
181
|
+
format: string;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Represents the target(element and props).
|
|
186
|
+
*/
|
|
187
|
+
export declare interface DateHeaderCellHandle {
|
|
188
|
+
/**
|
|
189
|
+
* The current element or `null` if there is no one.
|
|
190
|
+
*/
|
|
191
|
+
element: HTMLElement | null;
|
|
192
|
+
/**
|
|
193
|
+
* The props values of the DateHeaderCell.
|
|
194
|
+
*/
|
|
195
|
+
props: DateHeaderCellProps;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Represents the properties of [DateHeaderCell]({% slug api_scheduler_dateheadercell %}) component.
|
|
200
|
+
*/
|
|
201
|
+
export declare interface DateHeaderCellProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
202
|
+
/** @hidden */
|
|
203
|
+
as?: React_2.ComponentType<DateHeaderCellProps>;
|
|
204
|
+
/**
|
|
205
|
+
* Represents the date format.
|
|
206
|
+
*/
|
|
207
|
+
format?: string | DateFormatOptions;
|
|
208
|
+
/**
|
|
209
|
+
* Represents the current date.
|
|
210
|
+
*/
|
|
211
|
+
date: Date;
|
|
212
|
+
/**
|
|
213
|
+
* Represents the start date.
|
|
214
|
+
*/
|
|
215
|
+
start: Date;
|
|
216
|
+
/**
|
|
217
|
+
* Represents the end date.
|
|
218
|
+
*/
|
|
219
|
+
end: Date;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** @hidden */
|
|
223
|
+
declare interface DateRange {
|
|
224
|
+
start: Date;
|
|
225
|
+
end: Date;
|
|
226
|
+
zonedStart: ZonedDate;
|
|
227
|
+
zonedEnd: ZonedDate;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Represents the KendoReact [DayView]({% slug day_view_scheduler %}) Component.
|
|
232
|
+
*/
|
|
233
|
+
export declare const DayView: React_2.FunctionComponent<DayViewProps>;
|
|
234
|
+
|
|
235
|
+
/** @hidden */
|
|
236
|
+
export declare const dayViewDefaultProps: {
|
|
237
|
+
name: string;
|
|
238
|
+
title: (localization: any) => any;
|
|
239
|
+
step: number;
|
|
240
|
+
numberOfDays: number;
|
|
241
|
+
slotDuration: number;
|
|
242
|
+
slotDivisions: number;
|
|
243
|
+
selectedDateFormat: string;
|
|
244
|
+
selectedShortDateFormat: string;
|
|
245
|
+
currentTimeMarker: boolean;
|
|
246
|
+
dateRange: ({ date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
247
|
+
startTime: string;
|
|
248
|
+
endTime: string;
|
|
249
|
+
isWorkDayStart: string;
|
|
250
|
+
isWorkDayEnd: string;
|
|
251
|
+
workWeekStart: Day;
|
|
252
|
+
workWeekEnd: Day;
|
|
253
|
+
showCurrentTime: boolean;
|
|
254
|
+
defaultShowWorkHours: boolean;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Represents the properties of the [DayView]({% slug api_scheduler_dayviewprops %}) Component.
|
|
259
|
+
*/
|
|
260
|
+
declare interface DayViewProps extends MultiDayViewProps {
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Represents the available `action` types for the `SchedulerItemDragItemAction` objects.
|
|
265
|
+
*
|
|
266
|
+
* The available types are:
|
|
267
|
+
* - `DRAG_ITEM_SET'`
|
|
268
|
+
* - `DRAG_ITEM_START'`
|
|
269
|
+
* - `DRAG_ITEM_DRAG'`
|
|
270
|
+
* - `DRAG_ITEM_COMPLETE'`
|
|
271
|
+
* - `DRAG_ITEM_COMPLETE_OCCURRENCE'`
|
|
272
|
+
* - `DRAG_ITEM_COMPLETE_SERIES'`
|
|
273
|
+
* - `DRAG_ITEM_RESET'`
|
|
274
|
+
* - `DRAG_ITEM_DRAG_SELECTED`
|
|
275
|
+
*/
|
|
276
|
+
export declare enum DRAG_ITEM_ACTION {
|
|
277
|
+
set = "DRAG_ITEM_SET",
|
|
278
|
+
start = "DRAG_ITEM_START",
|
|
279
|
+
drag = "DRAG_ITEM_DRAG",
|
|
280
|
+
complete = "DRAG_ITEM_COMPLETE",
|
|
281
|
+
completeOccurrence = "DRAG_ITEM_COMPLETE_OCCURRENCE",
|
|
282
|
+
completeSeries = "DRAG_ITEM_COMPLETE_SERIES",
|
|
283
|
+
reset = "DRAG_ITEM_RESET",
|
|
284
|
+
dragSelected = "DRAG_ITEM_DRAG_SELECTED"
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The editable settings of the Scheduler.
|
|
289
|
+
*/
|
|
290
|
+
declare interface EditableProp {
|
|
291
|
+
/**
|
|
292
|
+
* Specifies if the events can be removed by using a **Remove** icon.
|
|
293
|
+
*/
|
|
294
|
+
remove: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Specifies if the events can be dragged.
|
|
297
|
+
*/
|
|
298
|
+
drag: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Specifies if the events can be resized.
|
|
301
|
+
*/
|
|
302
|
+
resize: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Specifies if new events can be added on `slot double click`.
|
|
305
|
+
*/
|
|
306
|
+
add: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* Specifies if the events can be edited on `item double click`.
|
|
309
|
+
*/
|
|
310
|
+
edit: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Specifies if the events can be edited on `item double click`.
|
|
313
|
+
*/
|
|
314
|
+
select: boolean;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Represents the combined object of the default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc)
|
|
319
|
+
*/
|
|
320
|
+
declare interface Fields {
|
|
321
|
+
id: string;
|
|
322
|
+
start: string;
|
|
323
|
+
startTimezone: string;
|
|
324
|
+
originalStart: string;
|
|
325
|
+
end: string;
|
|
326
|
+
endTimezone: string;
|
|
327
|
+
isAllDay: string;
|
|
328
|
+
title: string;
|
|
329
|
+
description: string;
|
|
330
|
+
recurrenceRule: string;
|
|
331
|
+
recurrenceId: string;
|
|
332
|
+
recurrenceExceptions: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/** @hidden */
|
|
336
|
+
declare enum FORM_ITEM_ACTION {
|
|
337
|
+
set = "FORM_ITEM_SET",
|
|
338
|
+
setMaster = "FORM_ITEM_SET_MASTER",
|
|
339
|
+
reset = "FORM_ITEM_RESET",
|
|
340
|
+
complete = "FORM_ITEM_COMPLETE"
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Represents the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources)
|
|
345
|
+
*/
|
|
346
|
+
declare interface Group {
|
|
347
|
+
index: number;
|
|
348
|
+
resources: SchedulerResource[];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/** @hidden */
|
|
352
|
+
declare interface Item extends Occurrence {
|
|
353
|
+
/** @hidden */
|
|
354
|
+
_ref: React.RefObject<SchedulerItemHandle | SchedulerTaskHandle | null>;
|
|
355
|
+
/**
|
|
356
|
+
* Represents the `ref` of the actual `item`.
|
|
357
|
+
*/
|
|
358
|
+
itemRef: React.RefObject<SchedulerItemHandle | SchedulerTaskHandle | null>;
|
|
359
|
+
/**
|
|
360
|
+
* Represents if the `end` of the item is outside the current visual range.
|
|
361
|
+
*/
|
|
362
|
+
head: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Represents if the `start` of the item is outside the current visual range.
|
|
365
|
+
*/
|
|
366
|
+
tail: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Represents the order of the item among its siblings.
|
|
369
|
+
*/
|
|
370
|
+
order: number | null;
|
|
371
|
+
/**
|
|
372
|
+
* Represents the `start` Date in the provided timezone.
|
|
373
|
+
*
|
|
374
|
+
* For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
|
|
375
|
+
*/
|
|
376
|
+
zonedStart: ZonedDate;
|
|
377
|
+
/**
|
|
378
|
+
* Represents the `end` Date in the provided timezone.
|
|
379
|
+
*
|
|
380
|
+
* For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
|
|
381
|
+
*/
|
|
382
|
+
zonedEnd: ZonedDate;
|
|
383
|
+
/**
|
|
384
|
+
* A collection of all `slots` in which the current item fits.
|
|
385
|
+
*/
|
|
386
|
+
slots: Slot[];
|
|
387
|
+
/**
|
|
388
|
+
* Represents the current group in which the item is rendered.
|
|
389
|
+
*/
|
|
390
|
+
group: Group;
|
|
391
|
+
/**
|
|
392
|
+
* Represents the current range in which the item is rendered.
|
|
393
|
+
*/
|
|
394
|
+
range: Range_2;
|
|
395
|
+
/**
|
|
396
|
+
* Represents if the item is an exception to a recurrence rule.
|
|
397
|
+
*/
|
|
398
|
+
isException: boolean;
|
|
399
|
+
/**
|
|
400
|
+
* Represents if the item is a single occurrence of a recurring `DataItem`.
|
|
401
|
+
*/
|
|
402
|
+
isRecurring: boolean;
|
|
403
|
+
/**
|
|
404
|
+
* Represents if the item durations is through the whole day.
|
|
405
|
+
*/
|
|
406
|
+
isAllDay: boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @hidden
|
|
411
|
+
*/
|
|
412
|
+
declare interface ItemDragEvent {
|
|
413
|
+
pageX: number;
|
|
414
|
+
pageY: number;
|
|
415
|
+
clientX: number;
|
|
416
|
+
clientY: number;
|
|
417
|
+
offsetX: number;
|
|
418
|
+
offsetY: number;
|
|
419
|
+
type: string;
|
|
420
|
+
ctrlKey: boolean;
|
|
421
|
+
shiftKey: boolean;
|
|
422
|
+
altKey: boolean;
|
|
423
|
+
originalEvent: PointerEvent;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Represents the available `action` types for the `SchedulerItemsFocusAction` objects.
|
|
428
|
+
*
|
|
429
|
+
* The available types are:
|
|
430
|
+
* - `ITEMS_FOCUS_NEXT`
|
|
431
|
+
* - `ITEMS_FOCUS_PREV`
|
|
432
|
+
*/
|
|
433
|
+
export declare enum ITEMS_FOCUS_ACTION {
|
|
434
|
+
next = "ITEMS_FOCUS_NEXT",
|
|
435
|
+
prev = "ITEMS_FOCUS_PREV"
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Represents the available `action` types for the `SchedulerItemsSelectAction` objects.
|
|
440
|
+
*
|
|
441
|
+
* The available types are:
|
|
442
|
+
* - 'ITEMS_SELECT_SELECT`
|
|
443
|
+
* - 'ITEMS_SELECT_SELECT_NEXT`
|
|
444
|
+
* - 'ITEMS_SELECT_SELECT_PREV`
|
|
445
|
+
* - 'ITEMS_SELECT_RESET`
|
|
446
|
+
* - 'ITEMS_SELECT_ADD`
|
|
447
|
+
* - 'ITEMS_SELECT_REMOVE`
|
|
448
|
+
*/
|
|
449
|
+
export declare enum ITEMS_SELECT_ACTION {
|
|
450
|
+
select = "ITEMS_SELECT_SELECT",
|
|
451
|
+
selectNext = "ITEMS_SELECT_SELECT_NEXT",
|
|
452
|
+
selectPrev = "ITEMS_SELECT_SELECT_PREV",
|
|
453
|
+
reset = "ITEMS_SELECT_RESET",
|
|
454
|
+
add = "ITEMS_SELECT_ADD",
|
|
455
|
+
remove = "ITEMS_SELECT_REMOVE"
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Represents the KendoReact [MonthView]({% slug month_view_scheduler %}) Component.
|
|
460
|
+
*/
|
|
461
|
+
export declare const MonthView: React_2.FunctionComponent<MonthViewProps>;
|
|
462
|
+
|
|
463
|
+
/** @hidden */
|
|
464
|
+
export declare const monthViewDefaultProps: {
|
|
465
|
+
name: string;
|
|
466
|
+
dateRange: ({ intl, date, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
467
|
+
slotDuration: number;
|
|
468
|
+
slotDivision: number;
|
|
469
|
+
itemsPerSlot: number;
|
|
470
|
+
numberOfDays: number;
|
|
471
|
+
title: (localization: any) => any;
|
|
472
|
+
selectedDateFormat: string;
|
|
473
|
+
selectedShortDateFormat: string;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Represents the props of the KendoReact [MonthView]({% slug api_scheduler_monthview %}) Component.
|
|
478
|
+
*/
|
|
479
|
+
declare interface MonthViewProps extends SchedulerViewProps {
|
|
480
|
+
/**
|
|
481
|
+
* Sets the maximum number of `items` to be rendered in a single `slot`, before adding the `show-more` button.
|
|
482
|
+
*/
|
|
483
|
+
itemsPerSlot?: number;
|
|
484
|
+
/**
|
|
485
|
+
* The long-date format for displaying the
|
|
486
|
+
* selected date in the Scheduler toolbar.
|
|
487
|
+
* Defaults to `{0:Y}`
|
|
488
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
489
|
+
*/
|
|
490
|
+
selectedDateFormat?: string;
|
|
491
|
+
/**
|
|
492
|
+
* The short-date format for displaying the
|
|
493
|
+
* selected date in the Scheduler toolbar.
|
|
494
|
+
* Defaults to `{0:Y}`
|
|
495
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
496
|
+
*/
|
|
497
|
+
selectedShortDateFormat?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
500
|
+
*/
|
|
501
|
+
editable?: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* Sets a custom `className` to the wrapping element of the `DayView`.
|
|
504
|
+
*/
|
|
505
|
+
className?: string;
|
|
506
|
+
/**
|
|
507
|
+
* Sets a custom `id` to the wrapping element of the `DayView`.
|
|
508
|
+
*/
|
|
509
|
+
id?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Sets a custom `style` property to the wrapping element of the `DayView`.
|
|
512
|
+
*/
|
|
513
|
+
style?: React_2.CSSProperties;
|
|
514
|
+
/**
|
|
515
|
+
* Overrides the `item` prop of the Scheduler for the specified view only.
|
|
516
|
+
*/
|
|
517
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
518
|
+
/**
|
|
519
|
+
* Overrides the `viewItem` prop of the Scheduler for the specified view only.
|
|
520
|
+
*/
|
|
521
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
522
|
+
/**
|
|
523
|
+
* Overrides the `editableItem` prop of the Scheduler for the specified view only.
|
|
524
|
+
*/
|
|
525
|
+
editItem?: React_2.ComponentType<SchedulerEditItemProps>;
|
|
526
|
+
/**
|
|
527
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
528
|
+
*/
|
|
529
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
530
|
+
/**
|
|
531
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
532
|
+
*/
|
|
533
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
534
|
+
/**
|
|
535
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
536
|
+
*/
|
|
537
|
+
editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
|
|
538
|
+
/**
|
|
539
|
+
* Represents component based on the DateHeaderCellProps.
|
|
540
|
+
*/
|
|
541
|
+
dateHeaderCell?: React_2.ComponentType<DateHeaderCellProps>;
|
|
542
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @hidden
|
|
547
|
+
*/
|
|
548
|
+
declare interface MultiDayTimelineViewProps extends SchedulerViewProps {
|
|
549
|
+
/**
|
|
550
|
+
* The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
|
|
551
|
+
* The default value is 1 days.
|
|
552
|
+
*/
|
|
553
|
+
step?: number;
|
|
554
|
+
/**
|
|
555
|
+
* Specifies the number of days that the view will render.
|
|
556
|
+
* Defaults to `1`.
|
|
557
|
+
*/
|
|
558
|
+
numberOfDays?: number;
|
|
559
|
+
/**
|
|
560
|
+
* The long-date format for displaying the
|
|
561
|
+
* selected date in the Scheduler toolbar.
|
|
562
|
+
* Defaults to `{0:D} - {1:D}`
|
|
563
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
564
|
+
*/
|
|
565
|
+
selectedDateFormat?: string;
|
|
566
|
+
/**
|
|
567
|
+
* The short-date format for displaying the
|
|
568
|
+
* selected date in the Scheduler toolbar.
|
|
569
|
+
* Defaults to `{0:d} - {1-d}`
|
|
570
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
571
|
+
*/
|
|
572
|
+
selectedShortDateFormat?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
575
|
+
*/
|
|
576
|
+
editable?: boolean | EditableProp;
|
|
577
|
+
/**
|
|
578
|
+
* The start time of the view. The TimelineView displays events which are visible after the start time.
|
|
579
|
+
* Accepts string values in the `HH:mm` format.
|
|
580
|
+
*/
|
|
581
|
+
startTime?: string;
|
|
582
|
+
/**
|
|
583
|
+
* The end time of the view. The TimelineView displays events which are visible before the end time.
|
|
584
|
+
* Accepts string values in the `HH:mm` format.
|
|
585
|
+
*/
|
|
586
|
+
endTime?: string;
|
|
587
|
+
/**
|
|
588
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
589
|
+
* Accepts string values in the `HH:mm` format.
|
|
590
|
+
*/
|
|
591
|
+
workDayStart?: string;
|
|
592
|
+
/** @hidden */
|
|
593
|
+
isWorkDayStart?: string;
|
|
594
|
+
/**
|
|
595
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
596
|
+
* Accepts string values in the `HH:mm` format.
|
|
597
|
+
*/
|
|
598
|
+
workDayEnd?: string;
|
|
599
|
+
/** @hidden */
|
|
600
|
+
isWorkDayEnd?: string;
|
|
601
|
+
/**
|
|
602
|
+
* The start of the work week.
|
|
603
|
+
*/
|
|
604
|
+
workWeekStart?: Day;
|
|
605
|
+
/**
|
|
606
|
+
* The end of the work week.
|
|
607
|
+
*/
|
|
608
|
+
workWeekEnd?: Day;
|
|
609
|
+
/**
|
|
610
|
+
* The number of divisions of the time slots.
|
|
611
|
+
*/
|
|
612
|
+
slotDivisions?: number;
|
|
613
|
+
/**
|
|
614
|
+
* The duration (in minutes) of the time slots.
|
|
615
|
+
*/
|
|
616
|
+
slotDuration?: number;
|
|
617
|
+
/**
|
|
618
|
+
* The width of a single time slot in pixels. Default is 100px.
|
|
619
|
+
*/
|
|
620
|
+
columnWidth?: number;
|
|
621
|
+
/**
|
|
622
|
+
* If set to `true`, the view will be shown in the business-hours mode only.
|
|
623
|
+
*
|
|
624
|
+
* This will always override the internal `showWorkHours` state.
|
|
625
|
+
*/
|
|
626
|
+
showWorkHours?: boolean;
|
|
627
|
+
/**
|
|
628
|
+
* Sets the initial business-hour mode. Default `true`.
|
|
629
|
+
*
|
|
630
|
+
* This option applies only the initial `showWorkHours` state.
|
|
631
|
+
*/
|
|
632
|
+
defaultShowWorkHours?: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Sets a custom `className` to the wrapping element of the `TimelineView`.
|
|
635
|
+
*/
|
|
636
|
+
className?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Sets a custom `id` to the wrapping element of the `TimelineView`.
|
|
639
|
+
*/
|
|
640
|
+
id?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Sets a custom `style` property to the wrapping element of the `TimelineView`.
|
|
643
|
+
*/
|
|
644
|
+
style?: React_2.CSSProperties;
|
|
645
|
+
/**
|
|
646
|
+
* Overrides the `item` prop of the Scheduler for the specified view only.
|
|
647
|
+
*/
|
|
648
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
649
|
+
/**
|
|
650
|
+
* Overrides the `viewItem` prop of the Scheduler for the specified view only.
|
|
651
|
+
*/
|
|
652
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
653
|
+
/**
|
|
654
|
+
* Overrides the `editableItem` prop of the Scheduler for the specified view only.
|
|
655
|
+
*/
|
|
656
|
+
editItem?: React_2.ComponentType<SchedulerEditItemProps>;
|
|
657
|
+
/**
|
|
658
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
659
|
+
*/
|
|
660
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
661
|
+
/**
|
|
662
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
663
|
+
*/
|
|
664
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
665
|
+
/**
|
|
666
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
667
|
+
*/
|
|
668
|
+
editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
|
|
669
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
670
|
+
/**
|
|
671
|
+
* If set to `false` the "current time" marker of the scheduler would not be displayed.
|
|
672
|
+
*/
|
|
673
|
+
currentTimeMarker?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Represents component based on the DateHeaderCellProps.
|
|
676
|
+
*/
|
|
677
|
+
dateHeaderCell?: React_2.ComponentType<DateHeaderCellProps>;
|
|
678
|
+
/**
|
|
679
|
+
* Represents component based on the TimeHeaderCellProps.
|
|
680
|
+
*/
|
|
681
|
+
timeHeaderCell?: React_2.ComponentType<TimeHeaderCellProps>;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* @hidden
|
|
686
|
+
*/
|
|
687
|
+
declare interface MultiDayViewProps extends SchedulerViewProps {
|
|
688
|
+
/**
|
|
689
|
+
* The long-date format for displaying the
|
|
690
|
+
* selected date in the Scheduler toolbar.
|
|
691
|
+
* Defaults to `{0:D} - {1:D}`
|
|
692
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
693
|
+
*/
|
|
694
|
+
selectedDateFormat?: string;
|
|
695
|
+
/**
|
|
696
|
+
* The short-date format for displaying the
|
|
697
|
+
* selected date in the Scheduler toolbar.
|
|
698
|
+
* Defaults to `{0:d} - {1-d}`
|
|
699
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
700
|
+
*/
|
|
701
|
+
selectedShortDateFormat?: string;
|
|
702
|
+
/**
|
|
703
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
704
|
+
*/
|
|
705
|
+
editable?: boolean;
|
|
706
|
+
/**
|
|
707
|
+
* Specifies the number of days that the view will render.
|
|
708
|
+
* Defaults to `1`.
|
|
709
|
+
*/
|
|
710
|
+
numberOfDays?: number;
|
|
711
|
+
/**
|
|
712
|
+
* The start time of the view. The MultiDayView displays events which are visible after the start time.
|
|
713
|
+
* Accepts string values in the `HH:mm` format.
|
|
714
|
+
*/
|
|
715
|
+
startTime?: string;
|
|
716
|
+
/**
|
|
717
|
+
* The end time of the view. The MultiDayView displays events which are visible before the end time.
|
|
718
|
+
* Accepts string values in the `HH:mm` format.
|
|
719
|
+
*/
|
|
720
|
+
endTime?: string;
|
|
721
|
+
/**
|
|
722
|
+
* The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
|
|
723
|
+
* The default value is 1 days.
|
|
724
|
+
*/
|
|
725
|
+
step?: number;
|
|
726
|
+
/**
|
|
727
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
728
|
+
* Accepts string values in the `HH:mm` format.
|
|
729
|
+
*/
|
|
730
|
+
workDayStart?: string;
|
|
731
|
+
/** @hidden */
|
|
732
|
+
isWorkDayStart?: string;
|
|
733
|
+
/**
|
|
734
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
735
|
+
* Accepts string values in the `HH:mm` format.
|
|
736
|
+
*/
|
|
737
|
+
workDayEnd?: string;
|
|
738
|
+
/** @hidden */
|
|
739
|
+
isWorkDayEnd?: string;
|
|
740
|
+
/**
|
|
741
|
+
* The start of the work week.
|
|
742
|
+
*/
|
|
743
|
+
workWeekStart?: Day;
|
|
744
|
+
/**
|
|
745
|
+
* The end of the work week.
|
|
746
|
+
*/
|
|
747
|
+
workWeekEnd?: Day;
|
|
748
|
+
/**
|
|
749
|
+
* The number of divisions of the time slots.
|
|
750
|
+
*/
|
|
751
|
+
slotDivisions?: number;
|
|
752
|
+
/**
|
|
753
|
+
* The duration (in minutes) of the time slots.
|
|
754
|
+
*/
|
|
755
|
+
slotDuration?: number;
|
|
756
|
+
/**
|
|
757
|
+
* If set to `true`, the view will be shown in the business-hours mode only.
|
|
758
|
+
*
|
|
759
|
+
* This will always override the internal `showWorkHours` state.
|
|
760
|
+
*/
|
|
761
|
+
showWorkHours?: boolean;
|
|
762
|
+
/**
|
|
763
|
+
* Sets the initial business-hour mode. Default `true`.
|
|
764
|
+
*
|
|
765
|
+
* This option applies only the initial `showWorkHours` state.
|
|
766
|
+
*/
|
|
767
|
+
defaultShowWorkHours?: boolean;
|
|
768
|
+
/**
|
|
769
|
+
* Sets a custom `className` to the wrapping element of the `DayView`.
|
|
770
|
+
*/
|
|
771
|
+
className?: string;
|
|
772
|
+
/**
|
|
773
|
+
* Sets a custom `id` to the wrapping element of the `DayView`.
|
|
774
|
+
*/
|
|
775
|
+
id?: string;
|
|
776
|
+
/**
|
|
777
|
+
* Sets a custom `style` property to the wrapping element of the `DayView`.
|
|
778
|
+
*/
|
|
779
|
+
style?: React_2.CSSProperties;
|
|
780
|
+
/**
|
|
781
|
+
* Overrides the `item` prop of the Scheduler for the specified view only.
|
|
782
|
+
*/
|
|
783
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
784
|
+
/**
|
|
785
|
+
* Overrides the `viewItem` prop of the Scheduler for the specified view only.
|
|
786
|
+
*/
|
|
787
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
788
|
+
/**
|
|
789
|
+
* Overrides the `editableItem` prop of the Scheduler for the specified view only.
|
|
790
|
+
*/
|
|
791
|
+
editItem?: React_2.ComponentType<SchedulerEditItemProps>;
|
|
792
|
+
/**
|
|
793
|
+
* Overrides the `slot` prop of the Scheduler for the specified view only.
|
|
794
|
+
*/
|
|
795
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
796
|
+
/**
|
|
797
|
+
* Overrides the `viewSlot` prop of the Scheduler for the specified view only.
|
|
798
|
+
*/
|
|
799
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
800
|
+
/**
|
|
801
|
+
* Overrides the `editSlot` prop of the Scheduler for the specified view only.
|
|
802
|
+
*/
|
|
803
|
+
editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
|
|
804
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
805
|
+
/**
|
|
806
|
+
* If set to `false` the "current time" marker of the scheduler would not be displayed.
|
|
807
|
+
*/
|
|
808
|
+
currentTimeMarker?: boolean;
|
|
809
|
+
/**
|
|
810
|
+
* Represents component based on the DateHeaderCellProps.
|
|
811
|
+
*/
|
|
812
|
+
dateHeaderCell?: React_2.ComponentType<DateHeaderCellProps>;
|
|
813
|
+
/**
|
|
814
|
+
* Represents component based on the TimeHeaderCellProps.
|
|
815
|
+
*/
|
|
816
|
+
timeHeaderCell?: React_2.ComponentType<TimeHeaderCellProps>;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/** @hidden */
|
|
820
|
+
declare interface Occurrence {
|
|
821
|
+
/** @hidden */
|
|
822
|
+
uid: string | number;
|
|
823
|
+
/**
|
|
824
|
+
* The `start` date of the item.
|
|
825
|
+
*/
|
|
826
|
+
start: Date;
|
|
827
|
+
/**
|
|
828
|
+
* The `end` date of the item.
|
|
829
|
+
*/
|
|
830
|
+
end: Date;
|
|
831
|
+
/**
|
|
832
|
+
* Represents the original start of the item.
|
|
833
|
+
*
|
|
834
|
+
* This property is being used when only a single occurrence of a recurring item is being edited.
|
|
835
|
+
*/
|
|
836
|
+
originalStart: Date | null;
|
|
837
|
+
/**
|
|
838
|
+
* The timezone name for the `start` date.
|
|
839
|
+
*/
|
|
840
|
+
startTimezone: string | null;
|
|
841
|
+
/**
|
|
842
|
+
* The timezone name for the `end` date.
|
|
843
|
+
*/
|
|
844
|
+
endTimezone: string | null;
|
|
845
|
+
/** @hidden */
|
|
846
|
+
isAllDay: boolean | null;
|
|
847
|
+
/**
|
|
848
|
+
* The `title` of the item.
|
|
849
|
+
*/
|
|
850
|
+
title: string | null;
|
|
851
|
+
/**
|
|
852
|
+
* The `description` of the item.
|
|
853
|
+
*/
|
|
854
|
+
description: string | null;
|
|
855
|
+
/** @hidden */
|
|
856
|
+
occurrenceId: string | null;
|
|
857
|
+
/** @hidden */
|
|
858
|
+
recurrenceExceptions: Date[] | null;
|
|
859
|
+
/** @hidden */
|
|
860
|
+
recurrenceRule: string | null;
|
|
861
|
+
/** @hidden */
|
|
862
|
+
recurrenceId: string | number | null;
|
|
863
|
+
/**
|
|
864
|
+
* Represents the original `DataItem` from which the item was created.
|
|
865
|
+
*
|
|
866
|
+
* For more information about the `data` collection, refer to the [Scheduler Data Binding]({% slug data_binding_scheduler %}) article.
|
|
867
|
+
*/
|
|
868
|
+
dataItem: DataItem;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* @hidden
|
|
873
|
+
*/
|
|
874
|
+
declare type Omit_2<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
875
|
+
|
|
876
|
+
/** @hidden */
|
|
877
|
+
declare type Orientation = 'horizontal' | 'vertical' | null;
|
|
878
|
+
|
|
879
|
+
/** @hidden */
|
|
880
|
+
declare interface Range_2 {
|
|
881
|
+
index: number;
|
|
882
|
+
start: Date;
|
|
883
|
+
end: Date;
|
|
884
|
+
zonedStart: ZonedDate;
|
|
885
|
+
zonedEnd: ZonedDate;
|
|
886
|
+
isAllDay?: boolean;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
/** @hidden */
|
|
890
|
+
declare interface RecurrenceEditorProps {
|
|
891
|
+
value: string;
|
|
892
|
+
start: Date;
|
|
893
|
+
timezone: string;
|
|
894
|
+
onChange: ({ value }: {
|
|
895
|
+
value: string | null;
|
|
896
|
+
}) => void;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Represents the available `action` types for the `SchedulerItemRemoveItemAction` objects.
|
|
901
|
+
*
|
|
902
|
+
* The available types are:
|
|
903
|
+
* - `REMOVE_ITEM_SET`
|
|
904
|
+
* - `REMOVE_ITEM_RESET`
|
|
905
|
+
* - `REMOVE_ITEM_COMPLETE`
|
|
906
|
+
*/
|
|
907
|
+
export declare enum REMOVE_ITEM_ACTION {
|
|
908
|
+
set = "REMOVE_ITEM_SET",
|
|
909
|
+
reset = "REMOVE_ITEM_RESET",
|
|
910
|
+
complete = "REMOVE_ITEM_COMPLETE"
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Represents the available `action` types for the `SchedulerItemResizeItemAction` objects.
|
|
915
|
+
*
|
|
916
|
+
* The available types are:
|
|
917
|
+
* - `RESIZE_ITEM_SET`
|
|
918
|
+
* - `RESIZE_ITEM_START`
|
|
919
|
+
* - `RESIZE_ITEM_START_DRAG`
|
|
920
|
+
* - `RESIZE_ITEM_START_DRAG_SELECTED`
|
|
921
|
+
* - `RESIZE_ITEM_END_DRAG`
|
|
922
|
+
* - `RESIZE_ITEM_END_DRAG_SELECTED`
|
|
923
|
+
* - `RESIZE_ITEM_COMPLETE`
|
|
924
|
+
* - `RESIZE_ITEM_COMPLETE_OCCURRENCE`
|
|
925
|
+
* - `RESIZE_ITEM_COMPLETE_SERIES`
|
|
926
|
+
* - `RESIZE_ITEM_RESET`
|
|
927
|
+
*/
|
|
928
|
+
export declare enum RESIZE_ITEM_ACTION {
|
|
929
|
+
set = "RESIZE_ITEM_SET",
|
|
930
|
+
start = "RESIZE_ITEM_START",
|
|
931
|
+
startDrag = "RESIZE_ITEM_START_DRAG",
|
|
932
|
+
startDragSelected = "RESIZE_ITEM_START_DRAG_SELECTED",
|
|
933
|
+
endDrag = "RESIZE_ITEM_END_DRAG",
|
|
934
|
+
endDragSelected = "RESIZE_ITEM_END_DRAG_SELECTED",
|
|
935
|
+
complete = "RESIZE_ITEM_COMPLETE",
|
|
936
|
+
completeOccurrence = "RESIZE_ITEM_COMPLETE_OCCURRENCE",
|
|
937
|
+
completeSeries = "RESIZE_ITEM_COMPLETE_SERIES",
|
|
938
|
+
reset = "RESIZE_ITEM_RESET"
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
/** @hidden */
|
|
942
|
+
declare interface ResourceEditorProps extends FieldRenderProps {
|
|
943
|
+
resource: SchedulerResource;
|
|
944
|
+
data: any[];
|
|
945
|
+
textField: string;
|
|
946
|
+
valueField: string;
|
|
947
|
+
colorField?: string;
|
|
948
|
+
multiple?: boolean;
|
|
949
|
+
validationMessage: string;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Represents the [KendoReact Scheduler component]({% slug overview_scheduler %})
|
|
954
|
+
*
|
|
955
|
+
* @example
|
|
956
|
+
* ```jsx
|
|
957
|
+
* const currentYear = new Date().getFullYear();
|
|
958
|
+
* const parseAdjust = (eventDate) => {
|
|
959
|
+
* const date = new Date(eventDate);
|
|
960
|
+
* date.setFullYear(currentYear);
|
|
961
|
+
* return date;
|
|
962
|
+
* };
|
|
963
|
+
*
|
|
964
|
+
* const baseData = [
|
|
965
|
+
* {
|
|
966
|
+
* TaskID: 4,
|
|
967
|
+
* OwnerID: 2,
|
|
968
|
+
* Title: 'Bowling tournament',
|
|
969
|
+
* Description: '',
|
|
970
|
+
* StartTimezone: null,
|
|
971
|
+
* Start: '2013-06-09T21:00:00.000Z',
|
|
972
|
+
* End: '2013-06-10T00:00:00.000Z',
|
|
973
|
+
* EndTimezone: null,
|
|
974
|
+
* RecurrenceRule: null,
|
|
975
|
+
* RecurrenceID: null,
|
|
976
|
+
* RecurrenceException: null,
|
|
977
|
+
* isAllDay: false,
|
|
978
|
+
* },
|
|
979
|
+
* {
|
|
980
|
+
* TaskID: 5,
|
|
981
|
+
* OwnerID: 2,
|
|
982
|
+
* Title: 'Take the dog to the vet',
|
|
983
|
+
* Description: '',
|
|
984
|
+
* StartTimezone: null,
|
|
985
|
+
* Start: '2013-06-10T07:00:00.000Z',
|
|
986
|
+
* End: '2013-06-10T08:00:00.000Z',
|
|
987
|
+
* EndTimezone: null,
|
|
988
|
+
* RecurrenceRule: null,
|
|
989
|
+
* RecurrenceID: null,
|
|
990
|
+
* RecurrenceException: null,
|
|
991
|
+
* isAllDay: false,
|
|
992
|
+
* },
|
|
993
|
+
* ];
|
|
994
|
+
*
|
|
995
|
+
* const sampleData = baseData.map((dataItem) => ({
|
|
996
|
+
* id: dataItem.TaskID,
|
|
997
|
+
* start: parseAdjust(dataItem.Start),
|
|
998
|
+
* startTimezone: dataItem.startTimezone,
|
|
999
|
+
* end: parseAdjust(dataItem.End),
|
|
1000
|
+
* endTimezone: dataItem.endTimezone,
|
|
1001
|
+
* isAllDay: dataItem.isAllDay,
|
|
1002
|
+
* title: dataItem.Title,
|
|
1003
|
+
* description: dataItem.Description,
|
|
1004
|
+
* recurrenceRule: dataItem.RecurrenceRule,
|
|
1005
|
+
* recurrenceExceptions: dataItem.RecurrenceException,
|
|
1006
|
+
* roomId: dataItem.RoomID,
|
|
1007
|
+
* ownerID: dataItem.OwnerID,
|
|
1008
|
+
* personId: dataItem.OwnerID,
|
|
1009
|
+
* }));
|
|
1010
|
+
*
|
|
1011
|
+
* const App = () => {
|
|
1012
|
+
* return (
|
|
1013
|
+
* <Scheduler data={sampleData}>
|
|
1014
|
+
* <AgendaView />
|
|
1015
|
+
* <DayView />
|
|
1016
|
+
* <WeekView />
|
|
1017
|
+
* <MonthView />
|
|
1018
|
+
* </Scheduler>
|
|
1019
|
+
* );
|
|
1020
|
+
* };
|
|
1021
|
+
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
1022
|
+
* ```
|
|
1023
|
+
*/
|
|
1024
|
+
export declare const Scheduler: React_2.ForwardRefExoticComponent<SchedulerProps & React_2.RefAttributes<SchedulerHandle | null>>;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `activeView` state.
|
|
1028
|
+
*
|
|
1029
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
1030
|
+
*/
|
|
1031
|
+
export declare const SchedulerActiveViewContext: React_2.Context<SchedulerActiveViewContextType>;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Specifies the result of the [useSchedulerActiveViewContext]({% slug api_scheduler_usescheduleractiveviewcontext %}) and [SchedulerActiveViewContext]({% slug api_scheduler_scheduleractiveviewcontext %}).
|
|
1035
|
+
*/
|
|
1036
|
+
export declare type SchedulerActiveViewContextType = [string, (activeView: string, event?: any) => void];
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Called every time the user changes the provided `data`.
|
|
1040
|
+
*
|
|
1041
|
+
* For more information, refer to the [Scheduler Data Binding]({% slug data_binding_scheduler %}) article.
|
|
1042
|
+
*/
|
|
1043
|
+
export declare interface SchedulerDataChangeEvent {
|
|
1044
|
+
created: DataItem[];
|
|
1045
|
+
updated: DataItem[];
|
|
1046
|
+
deleted: DataItem[];
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `data` reducer.
|
|
1051
|
+
*
|
|
1052
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const SchedulerDataContext: React_2.Context<SchedulerDataContextType>;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Specifies the result of the [useSchedulerDataContext]({% slug api_scheduler_useschedulerdatacontext %}) and [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
|
|
1058
|
+
*/
|
|
1059
|
+
export declare type SchedulerDataContextType = [DataItem[], (action: DataAction, event?: any) => void];
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Called every time the user changes the selected `date`.
|
|
1063
|
+
* The value is a JavaScript `Date` object.
|
|
1064
|
+
* For more information, refer to the article on
|
|
1065
|
+
* [date selection]({% slug date_selection_scheduler %}).
|
|
1066
|
+
*/
|
|
1067
|
+
export declare interface SchedulerDateChangeEvent {
|
|
1068
|
+
value: Date;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler internal `date` state.
|
|
1073
|
+
*
|
|
1074
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
1075
|
+
*/
|
|
1076
|
+
export declare const SchedulerDateContext: React_2.Context<SchedulerDateContextType>;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Specifies the result of the [useSchedulerDateContext]({% slug api_scheduler_useschedulerdatecontext %}) and [SchedulerDateContext]({% slug api_scheduler_schedulerdatecontext %}).
|
|
1080
|
+
*/
|
|
1081
|
+
export declare type SchedulerDateContextType = [Date, (date: Date, event?: any) => void];
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the `dateRange` of the current view.
|
|
1085
|
+
*
|
|
1086
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare const SchedulerDateRangeContext: React_2.Context<DateRange>;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Specifies the result of the [useSchedulerDateRangeContext]({% slug api_scheduler_useschedulerdaterangecontext %}) and [SchedulerDateRangeContext]({% slug api_scheduler_schedulerdaterangecontext %}).
|
|
1092
|
+
*/
|
|
1093
|
+
export declare type SchedulerDateRangeContextType = DateRange;
|
|
1094
|
+
|
|
1095
|
+
export declare const schedulerDefaultProps: {
|
|
1096
|
+
data: never[];
|
|
1097
|
+
height: number;
|
|
1098
|
+
tabIndex: number;
|
|
1099
|
+
editable: boolean;
|
|
1100
|
+
defaultDate: Date;
|
|
1101
|
+
header: React_2.ForwardRefExoticComponent<SchedulerHeaderProps & React_2.RefAttributes<SchedulerHeaderHandle>>;
|
|
1102
|
+
footer: React_2.ForwardRefExoticComponent<SchedulerFooterProps & React_2.RefAttributes<SchedulerFooterHandle>>;
|
|
1103
|
+
navigation: React_2.ForwardRefExoticComponent<SchedulerNavigationProps & React_2.RefAttributes<SchedulerNavigationHandle>>;
|
|
1104
|
+
viewSelector: React_2.ForwardRefExoticComponent<SchedulerViewSelectorProps & React_2.RefAttributes<SchedulerViewSelectorHandle>>;
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* Represents the default `drag` component rendered by the [KendoReact SchedulerEditItem component].
|
|
1109
|
+
*/
|
|
1110
|
+
export declare const SchedulerDrag: React_2.FunctionComponent<SchedulerDragProps>;
|
|
1111
|
+
|
|
1112
|
+
export declare const schedulerDragDefaultProps: {
|
|
1113
|
+
viewItem: React_2.ForwardRefExoticComponent<SchedulerViewItemProps & React_2.RefAttributes<SchedulerViewItemHandle>>;
|
|
1114
|
+
item: React_2.ForwardRefExoticComponent<SchedulerItemProps & React_2.RefAttributes<SchedulerItemHandle>>;
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Represents the props of the KendoReact [SchedulerDrag] component.
|
|
1119
|
+
*/
|
|
1120
|
+
export declare interface SchedulerDragProps {
|
|
1121
|
+
/** @hidden */
|
|
1122
|
+
ignoreIsAllDay?: boolean;
|
|
1123
|
+
/**
|
|
1124
|
+
* Specifies the `DataItem` to be visualized as a Drag item.
|
|
1125
|
+
*/
|
|
1126
|
+
dataItem: DataItem;
|
|
1127
|
+
/**
|
|
1128
|
+
* Specifies the orientation of the SchedulerItem inside the Drag.
|
|
1129
|
+
*/
|
|
1130
|
+
vertical?: boolean;
|
|
1131
|
+
/**
|
|
1132
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
1133
|
+
*
|
|
1134
|
+
* The default Component is: [SchedulerItem].
|
|
1135
|
+
*/
|
|
1136
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Overrides the default component responsible for positioning the item inside the view.
|
|
1139
|
+
*
|
|
1140
|
+
* The default Component is: [SchedulerViewItem]().
|
|
1141
|
+
*/
|
|
1142
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Represents the default `editItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
1147
|
+
*
|
|
1148
|
+
* This is a composite component of the [`SchedulerViewItem`]({% slug api_scheduler_schedulerviewitem %}), extending it to provide editing through drag, resize and external form.
|
|
1149
|
+
*/
|
|
1150
|
+
export declare const SchedulerEditItem: React_2.ForwardRefExoticComponent<SchedulerEditItemProps & React_2.RefAttributes<SchedulerEditItemHandle>>;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Represents the available SchedulerEditItem` actions.
|
|
1154
|
+
*
|
|
1155
|
+
* Can be one of:
|
|
1156
|
+
* - [SchedulerItemDragItemAction]({% slug api_scheduler_scheduleritemdragitemaction %})
|
|
1157
|
+
* - [SchedulerItemResizeItemAction]({% slug api_scheduler_scheduleritemresizeitemaction %})
|
|
1158
|
+
* - [SchedulerItemRemoveItemAction]({% slug api_scheduler_scheduleritemremoveitemaction %})
|
|
1159
|
+
* - [SchedulerItemShowRemoveDialogAction]({% slug api_scheduler_scheduleritemshowremovedialogaction %})
|
|
1160
|
+
* - [SchedulerItemShowOccurrenceDialogAction]({% slug api_scheduler_scheduleritemshowoccurrencedialogaction %})
|
|
1161
|
+
* - [SchedulerItemSeriesAction]({% slug api_scheduler_scheduleritemseriesaction %})
|
|
1162
|
+
* - [SchedulerItemsFocusAction]({% slug api_scheduler_scheduleritemsfocusaction %})
|
|
1163
|
+
* - [SchedulerItemsSelectAction]({% slug api_scheduler_scheduleritemsselectaction %})
|
|
1164
|
+
* - [SchedulerSlotsFocusAction]({% slug api_scheduler_schedulerslotsfocusaction %})
|
|
1165
|
+
* - [SchedulerSlotsSelectAction]({% slug api_scheduler_schedulerslotsselectaction %})
|
|
1166
|
+
*
|
|
1167
|
+
* The following `falsy` values will be ignored:
|
|
1168
|
+
* - `null`
|
|
1169
|
+
* - `false`
|
|
1170
|
+
* - `undefined`
|
|
1171
|
+
*/
|
|
1172
|
+
export declare type SchedulerEditItemAction = SchedulerItemFormItemAction | SchedulerItemDragItemAction | SchedulerItemResizeItemAction | SchedulerItemRemoveItemAction | SchedulerItemShowRemoveDialogAction | SchedulerItemShowOccurrenceDialogAction | SchedulerItemSeriesAction | SchedulerItemsFocusAction | SchedulerItemsSelectAction | SchedulerSlotsFocusAction | SchedulerSlotsSelectAction | null | false | undefined;
|
|
1173
|
+
|
|
1174
|
+
export declare const schedulerEditItemDefaultProps: {
|
|
1175
|
+
viewItem: React_2.ForwardRefExoticComponent<SchedulerViewItemProps & React_2.RefAttributes<SchedulerViewItemHandle>>;
|
|
1176
|
+
drag: React_2.FunctionComponent<SchedulerDragProps>;
|
|
1177
|
+
resize: React_2.FunctionComponent<SchedulerResizeProps>;
|
|
1178
|
+
form: React_2.ForwardRefExoticComponent<SchedulerFormProps & React_2.RefAttributes<SchedulerFormHandle | null>>;
|
|
1179
|
+
occurrenceDialog: React_2.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React_2.RefAttributes<SchedulerOccurrenceDialogHandle | null>>;
|
|
1180
|
+
removeDialog: React_2.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React_2.RefAttributes<SchedulerRemoveDialogHandle | null>>;
|
|
1181
|
+
onClickAction: (event: SchedulerItemMouseEvent, _: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
1182
|
+
onDoubleClickAction: (_: any, props: SchedulerEditItemProps) => (false | {
|
|
1183
|
+
type: FORM_ITEM_ACTION;
|
|
1184
|
+
payload: any;
|
|
1185
|
+
} | {
|
|
1186
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
1187
|
+
payload?: undefined;
|
|
1188
|
+
})[];
|
|
1189
|
+
onRemoveClickAction: (_: any, props: SchedulerEditItemProps) => ({
|
|
1190
|
+
type: REMOVE_ITEM_ACTION;
|
|
1191
|
+
payload: any;
|
|
1192
|
+
} | {
|
|
1193
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
1194
|
+
payload?: undefined;
|
|
1195
|
+
} | {
|
|
1196
|
+
type: SHOW_REMOVE_DIALOG_ACTION;
|
|
1197
|
+
payload?: undefined;
|
|
1198
|
+
})[];
|
|
1199
|
+
onPressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
1200
|
+
type: DRAG_ITEM_ACTION;
|
|
1201
|
+
payload: {
|
|
1202
|
+
x: number;
|
|
1203
|
+
y: number;
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
onDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
1207
|
+
type: DRAG_ITEM_ACTION;
|
|
1208
|
+
payload: {
|
|
1209
|
+
x: number;
|
|
1210
|
+
y: number;
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
onReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
1214
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
1215
|
+
payload?: undefined;
|
|
1216
|
+
} | {
|
|
1217
|
+
type: DRAG_ITEM_ACTION;
|
|
1218
|
+
payload: {
|
|
1219
|
+
x: number;
|
|
1220
|
+
y: number;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
onResizePressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
1224
|
+
type: RESIZE_ITEM_ACTION;
|
|
1225
|
+
payload: {
|
|
1226
|
+
x: number;
|
|
1227
|
+
y: number;
|
|
1228
|
+
};
|
|
1229
|
+
};
|
|
1230
|
+
onResizeStartDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
1231
|
+
type: RESIZE_ITEM_ACTION;
|
|
1232
|
+
payload: {
|
|
1233
|
+
x: number;
|
|
1234
|
+
y: number;
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
onResizeEndDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
1238
|
+
type: RESIZE_ITEM_ACTION;
|
|
1239
|
+
payload: {
|
|
1240
|
+
x: number;
|
|
1241
|
+
y: number;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
onResizeReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
1245
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
1246
|
+
payload?: undefined;
|
|
1247
|
+
} | {
|
|
1248
|
+
type: RESIZE_ITEM_ACTION;
|
|
1249
|
+
payload: {
|
|
1250
|
+
x: number;
|
|
1251
|
+
y: number;
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
onOccurrenceClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
1255
|
+
onSeriesClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
1256
|
+
onKeyDownAction: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1257
|
+
onFormSubmitAction: (event: SchedulerFormStateChangeEvent<DataItem | null>) => SchedulerEditItemAction[];
|
|
1258
|
+
onRemoveConfirmAction: () => SchedulerEditItemAction[];
|
|
1259
|
+
onCancelAction: () => SchedulerEditItemAction[];
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
|
|
1264
|
+
*
|
|
1265
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1266
|
+
*/
|
|
1267
|
+
export declare const SchedulerEditItemDragItemContext: React_2.Context<SchedulerEditItemDragItemContextType>;
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
|
|
1271
|
+
*/
|
|
1272
|
+
export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1273
|
+
preventDefault: any;
|
|
1274
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1275
|
+
preventDefault: any;
|
|
1276
|
+
}) => void];
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
|
|
1280
|
+
*
|
|
1281
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1282
|
+
*/
|
|
1283
|
+
export declare const SchedulerEditItemFormItemContext: React_2.Context<SchedulerEditItemFormItemContextType>;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
|
|
1287
|
+
*/
|
|
1288
|
+
export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (newValue: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1289
|
+
preventDefault: any;
|
|
1290
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1291
|
+
preventDefault: any;
|
|
1292
|
+
}) => void];
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}).
|
|
1296
|
+
*
|
|
1297
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
1298
|
+
*/
|
|
1299
|
+
export declare interface SchedulerEditItemHandle {
|
|
1300
|
+
element: HTMLDivElement | null;
|
|
1301
|
+
props: SchedulerEditItemProps;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Represents the props of the KendoReact [SchedulerEditItem]() component.
|
|
1306
|
+
*/
|
|
1307
|
+
export declare interface SchedulerEditItemProps extends SchedulerViewItemProps {
|
|
1308
|
+
/**
|
|
1309
|
+
* Overrides the default component responsible for positioning the item inside the view.
|
|
1310
|
+
*
|
|
1311
|
+
* The default Component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
1312
|
+
*/
|
|
1313
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
1314
|
+
/**
|
|
1315
|
+
* Overrides the default component responsible for visualizing the `dragItem`.
|
|
1316
|
+
*
|
|
1317
|
+
* The default Component is: [SchedulerDrag]({% slug api_scheduler_schedulerdrag %}).
|
|
1318
|
+
*/
|
|
1319
|
+
drag?: React_2.ComponentType<SchedulerDragProps>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Overrides the default component responsible for visualizing the `resizeItem`.
|
|
1322
|
+
*
|
|
1323
|
+
* The default Component is: [SchedulerResize]({% slug api_scheduler_schedulerresize %}).
|
|
1324
|
+
*/
|
|
1325
|
+
resize?: React_2.ComponentType<SchedulerResizeProps>;
|
|
1326
|
+
/**
|
|
1327
|
+
* Overrides the default component responsible for visualizing the `formItem`.
|
|
1328
|
+
*
|
|
1329
|
+
* The default Component is: [SchedulerForm]({% slug api_scheduler_schedulerform %}).
|
|
1330
|
+
*/
|
|
1331
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
|
|
1334
|
+
*
|
|
1335
|
+
* The default Component is: [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}).
|
|
1336
|
+
*/
|
|
1337
|
+
removeDialog?: React_2.ComponentType<SchedulerRemoveDialogProps>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Overrides the default component responsible for the selection between `occurrence` and `series` edit.
|
|
1340
|
+
*
|
|
1341
|
+
* The default Component is: [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}).
|
|
1342
|
+
*/
|
|
1343
|
+
occurrenceDialog?: React_2.ComponentType<SchedulerOccurrenceDialogProps>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Called when the item has been removed or manipulated though dragging, resizing or an external form.
|
|
1346
|
+
*/
|
|
1347
|
+
onDataAction?: (action: DataAction, event?: any) => void;
|
|
1348
|
+
/**
|
|
1349
|
+
* Setting this property will force the `formItem` to be in controlled state, allowing further customization.
|
|
1350
|
+
*/
|
|
1351
|
+
formItem?: DataItem | null;
|
|
1352
|
+
/**
|
|
1353
|
+
* Called every time the `formItem` changes.
|
|
1354
|
+
*/
|
|
1355
|
+
onFormItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
1356
|
+
/**
|
|
1357
|
+
* Setting this property will force the `dragItem` to be in controlled state, allowing further customization.
|
|
1358
|
+
*/
|
|
1359
|
+
dragItem?: DataItem | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* Called every time the `dragItem` changes.
|
|
1362
|
+
*/
|
|
1363
|
+
onDragItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
1364
|
+
/**
|
|
1365
|
+
* Setting this property will force the `resizeItem` to be in controlled state, allowing further customization.
|
|
1366
|
+
*/
|
|
1367
|
+
resizeItem?: DataItem | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Called every time the `resize` changes.
|
|
1370
|
+
*/
|
|
1371
|
+
onResizeItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
1372
|
+
/**
|
|
1373
|
+
* Setting this property will force the `removeItem` to be in controlled state, allowing further customization.
|
|
1374
|
+
*
|
|
1375
|
+
* Specifies the DataItem which should be removed from the `data` set.
|
|
1376
|
+
* The `removeItem` is passed as property to the `removeDialog` and `occurrenceDialog` component;
|
|
1377
|
+
*/
|
|
1378
|
+
removeItem?: DataItem | null;
|
|
1379
|
+
/**
|
|
1380
|
+
* Called every time the `removeItem` changes.
|
|
1381
|
+
*/
|
|
1382
|
+
onRemoveItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
1383
|
+
/**
|
|
1384
|
+
* Setting this property will force the `showOccurrenceDialog` to be in controlled state, allowing further control over the display of the `occurrenceDialog` component.
|
|
1385
|
+
*/
|
|
1386
|
+
showOccurrenceDialog?: boolean;
|
|
1387
|
+
/**
|
|
1388
|
+
* Called every time the `showOccurrenceDialog` changes.
|
|
1389
|
+
*/
|
|
1390
|
+
onShowOccurrenceDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
|
|
1391
|
+
/**
|
|
1392
|
+
* Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
|
|
1393
|
+
*/
|
|
1394
|
+
showRemoveDialog?: boolean;
|
|
1395
|
+
/**
|
|
1396
|
+
* Called every time the `showRemoveDialog` changes.
|
|
1397
|
+
*/
|
|
1398
|
+
onShowRemoveDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
|
|
1399
|
+
/**
|
|
1400
|
+
* Indicates if the editing should be applied to the whole `series` or to a single `occurrence` when the item is recurring.
|
|
1401
|
+
*
|
|
1402
|
+
* By default, the `series` prop is set to `null` and additional selection is done through the `occurrence` dialog.
|
|
1403
|
+
* If set ot either `true` or `false`:
|
|
1404
|
+
* - `true` — indicates that the editing should always be applied to the whole `series`
|
|
1405
|
+
* - `false` — indicates that the editing should always be applied to a single `occurrence`.
|
|
1406
|
+
*/
|
|
1407
|
+
series?: boolean | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* Called every time the `series` changes.
|
|
1410
|
+
*/
|
|
1411
|
+
onSeriesChange?: (event: SchedulerEditItemStateChangeEvent<boolean | null>) => void;
|
|
1412
|
+
/**
|
|
1413
|
+
* Called whenever the `occurence` option is selected from the `OccurrenceDialog`.
|
|
1414
|
+
*/
|
|
1415
|
+
onOccurrenceClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
|
|
1416
|
+
/**
|
|
1417
|
+
* An action callback. Used to define the component behavior on occurrence click.
|
|
1418
|
+
*
|
|
1419
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1420
|
+
*/
|
|
1421
|
+
onOccurrenceClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1422
|
+
/**
|
|
1423
|
+
* Called whenever the `series` option is selected from the `OccurrenceDialog`.
|
|
1424
|
+
*/
|
|
1425
|
+
onSeriesClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
|
|
1426
|
+
/**
|
|
1427
|
+
* An action callback. Used to define the component behavior on series click.
|
|
1428
|
+
*
|
|
1429
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1430
|
+
*/
|
|
1431
|
+
onSeriesClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1432
|
+
/**
|
|
1433
|
+
* Called whenever the `confirm` option is selected from the `RemoveDialog`.
|
|
1434
|
+
*/
|
|
1435
|
+
onRemoveConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<any>) => void;
|
|
1436
|
+
/**
|
|
1437
|
+
* An action callback. Used to define the component behavior on remove confirm click.
|
|
1438
|
+
*
|
|
1439
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1440
|
+
*/
|
|
1441
|
+
onRemoveConfirmAction?: (event: SchedulerRemoveDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1442
|
+
/**
|
|
1443
|
+
* Called whenever the `form` is submitted.
|
|
1444
|
+
*/
|
|
1445
|
+
onFormSubmit?: (event: SchedulerFormStateChangeEvent<DataItem | null>) => void;
|
|
1446
|
+
/**
|
|
1447
|
+
* An action callback. Used to define the component behavior on form submit.
|
|
1448
|
+
*
|
|
1449
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1450
|
+
*/
|
|
1451
|
+
onFormSubmitAction?: (event: SchedulerFormStateChangeEvent<DataItem | null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1452
|
+
/**
|
|
1453
|
+
* Called whenever the current edit is canceled.
|
|
1454
|
+
*/
|
|
1455
|
+
onCancel?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>) => void;
|
|
1456
|
+
/**
|
|
1457
|
+
* An action callback. Used to define the component behavior on cancel.
|
|
1458
|
+
*
|
|
1459
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1460
|
+
*/
|
|
1461
|
+
onCancelAction?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1462
|
+
/**
|
|
1463
|
+
* An action callback. Used to define the component behavior on click.
|
|
1464
|
+
*
|
|
1465
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1466
|
+
*/
|
|
1467
|
+
onClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1468
|
+
/**
|
|
1469
|
+
* An action callback. Used to define the component behavior on mouse down.
|
|
1470
|
+
*
|
|
1471
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1472
|
+
*/
|
|
1473
|
+
onMouseDownAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1474
|
+
/**
|
|
1475
|
+
* An action callback. Used to define the component behavior on mouse up.
|
|
1476
|
+
*
|
|
1477
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1478
|
+
*/
|
|
1479
|
+
onMouseUpAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1480
|
+
/**
|
|
1481
|
+
* An action callback. Used to define the component behavior on double click.
|
|
1482
|
+
*
|
|
1483
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1484
|
+
*/
|
|
1485
|
+
onDoubleClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1486
|
+
/**
|
|
1487
|
+
* An action callback. Used to define the component behavior on remove click.
|
|
1488
|
+
*
|
|
1489
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1490
|
+
*/
|
|
1491
|
+
onRemoveClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1492
|
+
/**
|
|
1493
|
+
* An action callback. Used to define the component behavior on key down.
|
|
1494
|
+
*
|
|
1495
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1496
|
+
*/
|
|
1497
|
+
onKeyDownAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1498
|
+
/**
|
|
1499
|
+
* An action callback. Used to define the component behavior on key up.
|
|
1500
|
+
*
|
|
1501
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1502
|
+
*/
|
|
1503
|
+
onKeyUpAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1504
|
+
/**
|
|
1505
|
+
* An action callback. Used to define the component behavior on focus.
|
|
1506
|
+
*
|
|
1507
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1508
|
+
*/
|
|
1509
|
+
onFocusAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1510
|
+
/**
|
|
1511
|
+
* An action callback. Used to define the component behavior on blur.
|
|
1512
|
+
*
|
|
1513
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1514
|
+
*/
|
|
1515
|
+
onBlurAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1516
|
+
/**
|
|
1517
|
+
* An action callback. Used to define the component behavior on press.
|
|
1518
|
+
*
|
|
1519
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1520
|
+
*/
|
|
1521
|
+
onPressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1522
|
+
/**
|
|
1523
|
+
* An action callback. Used to define the component behavior on drag.
|
|
1524
|
+
*
|
|
1525
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1526
|
+
*/
|
|
1527
|
+
onDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1528
|
+
/**
|
|
1529
|
+
* An action callback. Used to define the component behavior on release.
|
|
1530
|
+
*
|
|
1531
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1532
|
+
*/
|
|
1533
|
+
onReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1534
|
+
/**
|
|
1535
|
+
* An action callback. Used to define the component behavior on resize press.
|
|
1536
|
+
*
|
|
1537
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1538
|
+
*/
|
|
1539
|
+
onResizePressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1540
|
+
/**
|
|
1541
|
+
* An action callback. Used to define the component behavior on resize start drag.
|
|
1542
|
+
*
|
|
1543
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1544
|
+
*/
|
|
1545
|
+
onResizeStartDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1546
|
+
/**
|
|
1547
|
+
* An action callback. Used to define the component behavior on resize end drag.
|
|
1548
|
+
*
|
|
1549
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1550
|
+
*/
|
|
1551
|
+
onResizeEndDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1552
|
+
/**
|
|
1553
|
+
* An action callback. Used to define the component behavior on resize release.
|
|
1554
|
+
*
|
|
1555
|
+
* Internal state change will be triggered depending on the specific action types.
|
|
1556
|
+
*/
|
|
1557
|
+
onResizeReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) `props`.
|
|
1562
|
+
*
|
|
1563
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1564
|
+
*/
|
|
1565
|
+
export declare const SchedulerEditItemPropsContext: React_2.Context<SchedulerEditItemProps>;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Specifies the result of the [useSchedulerEditItemPropsContext]({% slug api_scheduler_usescheduleredititempropscontext %}) and [SchedulerEditItemPropsContext]({% slug api_scheduler_scheduleredititempropscontext %}).
|
|
1569
|
+
*/
|
|
1570
|
+
export declare type SchedulerEditItemPropsContextType = SchedulerEditItemProps;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
|
|
1574
|
+
*
|
|
1575
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1576
|
+
*/
|
|
1577
|
+
export declare const SchedulerEditItemRemoveItemContext: React_2.Context<SchedulerEditItemRemoveItemContextType>;
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
|
|
1581
|
+
*/
|
|
1582
|
+
export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1583
|
+
preventDefault: any;
|
|
1584
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1585
|
+
preventDefault: any;
|
|
1586
|
+
}) => void];
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
|
|
1590
|
+
*
|
|
1591
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1592
|
+
*/
|
|
1593
|
+
export declare const SchedulerEditItemResizeItemContext: React_2.Context<SchedulerEditItemResizeItemContextType>;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
|
|
1597
|
+
*/
|
|
1598
|
+
export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1599
|
+
preventDefault: any;
|
|
1600
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1601
|
+
preventDefault: any;
|
|
1602
|
+
}) => void];
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
|
|
1606
|
+
*
|
|
1607
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1608
|
+
*/
|
|
1609
|
+
export declare const SchedulerEditItemShowOccurrenceDialogContext: React_2.Context<SchedulerEditItemShowOccurrenceDialogContextType>;
|
|
1610
|
+
|
|
1611
|
+
/**
|
|
1612
|
+
* Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
|
|
1613
|
+
*/
|
|
1614
|
+
export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1615
|
+
preventDefault: any;
|
|
1616
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1617
|
+
preventDefault: any;
|
|
1618
|
+
}) => void];
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
|
|
1622
|
+
*
|
|
1623
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1624
|
+
*/
|
|
1625
|
+
export declare const SchedulerEditItemShowRemoveDialogContext: React_2.Context<SchedulerEditItemShowRemoveDialogContextType>;
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
|
|
1629
|
+
*/
|
|
1630
|
+
export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1631
|
+
preventDefault: any;
|
|
1632
|
+
}) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
|
|
1633
|
+
preventDefault: any;
|
|
1634
|
+
}) => void];
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* Represents the internal `state` of the `SchedulerEditItem`.
|
|
1638
|
+
*/
|
|
1639
|
+
export declare interface SchedulerEditItemState {
|
|
1640
|
+
selected: boolean;
|
|
1641
|
+
series: boolean | null;
|
|
1642
|
+
formItem: DataItem | null;
|
|
1643
|
+
dragItem: DataItem | null;
|
|
1644
|
+
resizeItem: DataItem | null;
|
|
1645
|
+
removeItem: DataItem | null;
|
|
1646
|
+
showRemoveDialog: DataItem | null;
|
|
1647
|
+
showOccurrenceDialog: DataItem | null;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
declare interface SchedulerEditItemStateChangeEvent<T> {
|
|
1651
|
+
value: T;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* Represents the default `editSlot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
1656
|
+
*
|
|
1657
|
+
* This is a composite component of the [`SchedulerViewSlot`]({% slug api_scheduler_schedulerviewslot %}), extending it to allow creating an item inside the slot.
|
|
1658
|
+
*/
|
|
1659
|
+
export declare const SchedulerEditSlot: React_2.ForwardRefExoticComponent<SchedulerEditSlotProps & React_2.RefAttributes<SchedulerEditSlotHandle>>;
|
|
1660
|
+
|
|
1661
|
+
export declare const schedulerEditSlotDefaultProps: {
|
|
1662
|
+
viewSlot: React_2.ForwardRefExoticComponent<SchedulerViewSlotProps & React_2.RefAttributes<SchedulerViewSlotHandle>>;
|
|
1663
|
+
form: React_2.ForwardRefExoticComponent<SchedulerFormProps & React_2.RefAttributes<SchedulerFormHandle | null>>;
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
|
|
1668
|
+
*
|
|
1669
|
+
* For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
|
|
1670
|
+
*/
|
|
1671
|
+
export declare const SchedulerEditSlotFormItemContext: React_2.Context<SchedulerEditSlotFormItemContextType>;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Specifies the result of the [useSchedulerEditSlotFormItemContext]({% slug api_scheduler_useschedulereditslotformitemcontext %}) and [SchedulerEditSlotFormItemContext]({% slug api_scheduler_schedulereditslotformitemcontext %}).
|
|
1675
|
+
*/
|
|
1676
|
+
export declare type SchedulerEditSlotFormItemContextType = [DataItem | null, (event?: any) => void];
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}).
|
|
1680
|
+
*
|
|
1681
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
1682
|
+
*/
|
|
1683
|
+
export declare interface SchedulerEditSlotHandle {
|
|
1684
|
+
props: SchedulerEditSlotProps;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Represents the props of the KendoReact [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) component.
|
|
1689
|
+
*/
|
|
1690
|
+
export declare interface SchedulerEditSlotProps extends SchedulerViewSlotProps {
|
|
1691
|
+
/**
|
|
1692
|
+
* Overrides the default component responsible for view-specific functionality.
|
|
1693
|
+
*
|
|
1694
|
+
* The default Component is: [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %}).
|
|
1695
|
+
*/
|
|
1696
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
1697
|
+
/**
|
|
1698
|
+
* Overrides the default component responsible for visualizing the `formItem`.
|
|
1699
|
+
*
|
|
1700
|
+
* The default Component is: [SchedulerForm]({% slug api_scheduler_schedulerform %}).
|
|
1701
|
+
*/
|
|
1702
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
1703
|
+
/**
|
|
1704
|
+
* Setting this property will force the `formItem` to be in controlled state, allowing further customization.
|
|
1705
|
+
*/
|
|
1706
|
+
formItem?: DataItem | null;
|
|
1707
|
+
/**
|
|
1708
|
+
* Called every time the `formItem` changes.
|
|
1709
|
+
*/
|
|
1710
|
+
onFormItemChange?: (event: any) => void;
|
|
1711
|
+
/**
|
|
1712
|
+
* Called when new item has been created in the slot.
|
|
1713
|
+
*/
|
|
1714
|
+
onDataAction?: (action: DataAction, event: any) => void;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) `props`.
|
|
1719
|
+
*
|
|
1720
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
1721
|
+
*/
|
|
1722
|
+
export declare const SchedulerEditSlotPropsContext: React_2.Context<SchedulerEditSlotProps>;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* Specifies the result of the [useSchedulerEditSlotPropsContext]({% slug api_scheduler_useschedulereditslotpropscontext %}) and [SchedulerEditSlotPropsContext]({% slug api_scheduler_schedulereditslotpropscontext %}).
|
|
1726
|
+
*/
|
|
1727
|
+
export declare type SchedulerEditSlotPropsContextType = SchedulerEditSlotProps;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Represents the default `editTask` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
1731
|
+
*
|
|
1732
|
+
* This is a composite component of the [`SchedulerViewTask`]({% slug api_scheduler_schedulerviewtask %}), extending it to provide the `remove` editing functionality.
|
|
1733
|
+
*/
|
|
1734
|
+
export declare const SchedulerEditTask: React_2.ForwardRefExoticComponent<SchedulerEditTaskProps & React_2.RefAttributes<SchedulerEditTaskHandle>>;
|
|
1735
|
+
|
|
1736
|
+
export declare const schedulerEditTaskDefaultProps: {
|
|
1737
|
+
viewTask: React_2.ForwardRefExoticComponent<SchedulerViewTaskProps & React_2.RefAttributes<SchedulerViewTaskHandle>>;
|
|
1738
|
+
occurrenceDialog: React_2.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React_2.RefAttributes<SchedulerOccurrenceDialogHandle | null>>;
|
|
1739
|
+
removeDialog: React_2.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React_2.RefAttributes<SchedulerRemoveDialogHandle | null>>;
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %}).
|
|
1744
|
+
*
|
|
1745
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
1746
|
+
*/
|
|
1747
|
+
export declare interface SchedulerEditTaskHandle {
|
|
1748
|
+
element: HTMLDivElement | null;
|
|
1749
|
+
props: SchedulerEditTaskProps;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Represents the props of the KendoReact [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %}) component.
|
|
1754
|
+
*/
|
|
1755
|
+
export declare interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
|
|
1756
|
+
/**
|
|
1757
|
+
* Overrides the default component responsible for positioning the task inside the view.
|
|
1758
|
+
*
|
|
1759
|
+
* The default Component is: [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}).
|
|
1760
|
+
*/
|
|
1761
|
+
viewTask?: React_2.ComponentType<SchedulerViewTaskProps>;
|
|
1762
|
+
/**
|
|
1763
|
+
* Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
|
|
1764
|
+
*
|
|
1765
|
+
* The default Component is: [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}).
|
|
1766
|
+
*/
|
|
1767
|
+
removeDialog?: React_2.ComponentType<SchedulerRemoveDialogProps>;
|
|
1768
|
+
/**
|
|
1769
|
+
* Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
|
|
1770
|
+
*/
|
|
1771
|
+
showRemoveDialog?: boolean;
|
|
1772
|
+
/**
|
|
1773
|
+
* Called every time the `showRemoveDialog` changes.
|
|
1774
|
+
*/
|
|
1775
|
+
onShowRemoveDialogChange?: (event: any) => void;
|
|
1776
|
+
/**
|
|
1777
|
+
* Setting this property will force the `removeItem` to be in controlled state, allowing further customization.
|
|
1778
|
+
*
|
|
1779
|
+
* Specifies the DataItem which should be removed from the `data` set.
|
|
1780
|
+
* The `removeItem` is passed as property to the `removeDialog` component;
|
|
1781
|
+
*/
|
|
1782
|
+
removeItem?: DataItem | null;
|
|
1783
|
+
/**
|
|
1784
|
+
* Called every time the `removeItem` changes.
|
|
1785
|
+
*/
|
|
1786
|
+
onRemoveItemChange?: (event: any) => void;
|
|
1787
|
+
/**
|
|
1788
|
+
* Overrides the default component responsible for the selection between `occurrence` and `series` delete.
|
|
1789
|
+
*
|
|
1790
|
+
* The default Component is: [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}).
|
|
1791
|
+
*/
|
|
1792
|
+
occurrenceDialog?: React_2.ComponentType<SchedulerOccurrenceDialogProps>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Setting this property will force the `showOccurrenceDialog` to be in controlled state, allowing further control over the display of the `occurrenceDialog` component.
|
|
1795
|
+
*/
|
|
1796
|
+
showOccurrenceDialog?: boolean;
|
|
1797
|
+
/**
|
|
1798
|
+
* Called every time the `showOccurrenceDialog` changes.
|
|
1799
|
+
*/
|
|
1800
|
+
onShowOccurrenceDialogChange?: (event: any) => void;
|
|
1801
|
+
/**
|
|
1802
|
+
* Called when the item has been removed.
|
|
1803
|
+
*/
|
|
1804
|
+
onDataAction?: (action: DataAction, event?: any) => void;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
1809
|
+
*
|
|
1810
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
1811
|
+
*/
|
|
1812
|
+
export declare const SchedulerFieldsContext: React_2.Context<Fields>;
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
|
|
1816
|
+
*/
|
|
1817
|
+
export declare type SchedulerFieldsContextType = Fields;
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Represents the default `footer` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
1821
|
+
*/
|
|
1822
|
+
export declare const SchedulerFooter: React_2.ForwardRefExoticComponent<SchedulerFooterProps & React_2.RefAttributes<SchedulerFooterHandle>>;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerFooter]({% slug api_scheduler_schedulerfooter %}).
|
|
1826
|
+
*
|
|
1827
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
1828
|
+
*/
|
|
1829
|
+
export declare interface SchedulerFooterHandle {
|
|
1830
|
+
element: HTMLDivElement | null;
|
|
1831
|
+
props: SchedulerFooterProps;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Represents the props of the KendoReact [SchedulerFooter]({% slug api_scheduler_schedulerfooter %}) component.
|
|
1836
|
+
*/
|
|
1837
|
+
export declare interface SchedulerFooterProps extends ToolbarProps {
|
|
1838
|
+
children?: React_2.ReactNode;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Represents the default `form` component rendered by the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}) and [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) components.
|
|
1843
|
+
*
|
|
1844
|
+
* Accepts [SchedulerFormProps]({ slug api_scheduler_schedulerformprops }) properties and provide [SchedulerFormHandle]({% slug api_scheduler_schedulerformhandle %}) `ref` callback.
|
|
1845
|
+
*/
|
|
1846
|
+
export declare const SchedulerForm: React_2.ForwardRefExoticComponent<SchedulerFormProps & React_2.RefAttributes<SchedulerFormHandle | null>>;
|
|
1847
|
+
|
|
1848
|
+
export declare const schedulerFormDefaultProps: {
|
|
1849
|
+
dialog: React_2.ForwardRefExoticComponent<DialogProps & React_2.RefAttributes<any>>;
|
|
1850
|
+
validator: () => {};
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* The default `editor` used inside the [`SchedulerForm`]({% slug api_scheduler_schedulerform %}) component.
|
|
1855
|
+
*
|
|
1856
|
+
* For the full list of the props available for this component, please refer to the [SchedulerFormEditorProps]({% slug api_scheduler_schedulerformeditorprops %}).
|
|
1857
|
+
*/
|
|
1858
|
+
export declare const SchedulerFormEditor: React_2.ForwardRefExoticComponent<globalThis.Omit<SchedulerFormEditorProps, "ref"> & React_2.RefAttributes<SchedulerFormEditorHandle | null>>;
|
|
1859
|
+
|
|
1860
|
+
export declare const schedulerFormEditorDefaultProps: {
|
|
1861
|
+
as: React_2.ForwardRefExoticComponent<globalThis.Omit<FormElementProps, "ref"> & React_2.RefAttributes<FormElementHandle>>;
|
|
1862
|
+
titleLabel: {
|
|
1863
|
+
(props: LabelProps): JSX_2.Element;
|
|
1864
|
+
propTypes: {
|
|
1865
|
+
id: Requireable<string>;
|
|
1866
|
+
editorId: Requireable<string>;
|
|
1867
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
1868
|
+
current: Requireable<any>;
|
|
1869
|
+
}> | null | undefined>>;
|
|
1870
|
+
editorValid: Requireable<boolean>;
|
|
1871
|
+
editorDisabled: Requireable<boolean>;
|
|
1872
|
+
style: Requireable<object>;
|
|
1873
|
+
className: Requireable<string>;
|
|
1874
|
+
optional: Requireable<boolean>;
|
|
1875
|
+
};
|
|
1876
|
+
displayName: string;
|
|
1877
|
+
};
|
|
1878
|
+
titleError: {
|
|
1879
|
+
(props: ErrorProps): JSX_2.Element;
|
|
1880
|
+
propTypes: {
|
|
1881
|
+
id: Requireable<string>;
|
|
1882
|
+
direction: Requireable<string>;
|
|
1883
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
1884
|
+
style: Requireable<object>;
|
|
1885
|
+
className: Requireable<string>; /**
|
|
1886
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
1887
|
+
*/
|
|
1888
|
+
};
|
|
1889
|
+
displayName: string;
|
|
1890
|
+
};
|
|
1891
|
+
titleEditor: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<any>>;
|
|
1892
|
+
startLabel: {
|
|
1893
|
+
(props: LabelProps): JSX_2.Element;
|
|
1894
|
+
propTypes: {
|
|
1895
|
+
id: Requireable<string>;
|
|
1896
|
+
editorId: Requireable<string>;
|
|
1897
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
1898
|
+
current: Requireable<any>;
|
|
1899
|
+
}> | null | undefined>>;
|
|
1900
|
+
editorValid: Requireable<boolean>;
|
|
1901
|
+
editorDisabled: Requireable<boolean>;
|
|
1902
|
+
style: Requireable<object>;
|
|
1903
|
+
className: Requireable<string>;
|
|
1904
|
+
optional: Requireable<boolean>;
|
|
1905
|
+
};
|
|
1906
|
+
displayName: string;
|
|
1907
|
+
};
|
|
1908
|
+
startError: {
|
|
1909
|
+
(props: ErrorProps): JSX_2.Element;
|
|
1910
|
+
propTypes: {
|
|
1911
|
+
id: Requireable<string>;
|
|
1912
|
+
direction: Requireable<string>;
|
|
1913
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
1914
|
+
style: Requireable<object>;
|
|
1915
|
+
className: Requireable<string>; /**
|
|
1916
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
1917
|
+
*/
|
|
1918
|
+
};
|
|
1919
|
+
displayName: string;
|
|
1920
|
+
};
|
|
1921
|
+
startEditor: (props: ZonedDateTimeProps) => JSX_2.Element;
|
|
1922
|
+
startTimezoneLabel: {
|
|
1923
|
+
(props: LabelProps): JSX_2.Element;
|
|
1924
|
+
propTypes: {
|
|
1925
|
+
id: Requireable<string>;
|
|
1926
|
+
editorId: Requireable<string>;
|
|
1927
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
1928
|
+
current: Requireable<any>;
|
|
1929
|
+
}> | null | undefined>>;
|
|
1930
|
+
editorValid: Requireable<boolean>;
|
|
1931
|
+
editorDisabled: Requireable<boolean>;
|
|
1932
|
+
style: Requireable<object>;
|
|
1933
|
+
className: Requireable<string>;
|
|
1934
|
+
optional: Requireable<boolean>;
|
|
1935
|
+
};
|
|
1936
|
+
displayName: string;
|
|
1937
|
+
};
|
|
1938
|
+
startTimezoneError: {
|
|
1939
|
+
(props: ErrorProps): JSX_2.Element;
|
|
1940
|
+
propTypes: {
|
|
1941
|
+
id: Requireable<string>;
|
|
1942
|
+
direction: Requireable<string>;
|
|
1943
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
1944
|
+
style: Requireable<object>;
|
|
1945
|
+
className: Requireable<string>; /**
|
|
1946
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
1947
|
+
*/
|
|
1948
|
+
};
|
|
1949
|
+
displayName: string;
|
|
1950
|
+
};
|
|
1951
|
+
startTimezoneEditor: (props: FieldRenderProps & ComboBoxProps) => JSX_2.Element;
|
|
1952
|
+
startTimezoneCheckedLabel: {
|
|
1953
|
+
(props: LabelProps): JSX_2.Element;
|
|
1954
|
+
propTypes: {
|
|
1955
|
+
id: Requireable<string>;
|
|
1956
|
+
editorId: Requireable<string>;
|
|
1957
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
1958
|
+
current: Requireable<any>;
|
|
1959
|
+
}> | null | undefined>>;
|
|
1960
|
+
editorValid: Requireable<boolean>;
|
|
1961
|
+
editorDisabled: Requireable<boolean>;
|
|
1962
|
+
style: Requireable<object>;
|
|
1963
|
+
className: Requireable<string>;
|
|
1964
|
+
optional: Requireable<boolean>;
|
|
1965
|
+
};
|
|
1966
|
+
displayName: string;
|
|
1967
|
+
};
|
|
1968
|
+
startTimezoneCheckedEditor: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<CheckboxHandle | null>>;
|
|
1969
|
+
endLabel: {
|
|
1970
|
+
(props: LabelProps): JSX_2.Element;
|
|
1971
|
+
propTypes: {
|
|
1972
|
+
id: Requireable<string>;
|
|
1973
|
+
editorId: Requireable<string>;
|
|
1974
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
1975
|
+
current: Requireable<any>;
|
|
1976
|
+
}> | null | undefined>>;
|
|
1977
|
+
editorValid: Requireable<boolean>;
|
|
1978
|
+
editorDisabled: Requireable<boolean>;
|
|
1979
|
+
style: Requireable<object>;
|
|
1980
|
+
className: Requireable<string>;
|
|
1981
|
+
optional: Requireable<boolean>;
|
|
1982
|
+
};
|
|
1983
|
+
displayName: string;
|
|
1984
|
+
};
|
|
1985
|
+
endError: {
|
|
1986
|
+
(props: ErrorProps): JSX_2.Element;
|
|
1987
|
+
propTypes: {
|
|
1988
|
+
id: Requireable<string>;
|
|
1989
|
+
direction: Requireable<string>;
|
|
1990
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
1991
|
+
style: Requireable<object>;
|
|
1992
|
+
className: Requireable<string>; /**
|
|
1993
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
1994
|
+
*/
|
|
1995
|
+
};
|
|
1996
|
+
displayName: string;
|
|
1997
|
+
};
|
|
1998
|
+
endEditor: (props: ZonedDateTimeProps) => JSX_2.Element;
|
|
1999
|
+
endTimezoneLabel: {
|
|
2000
|
+
(props: LabelProps): JSX_2.Element;
|
|
2001
|
+
propTypes: {
|
|
2002
|
+
id: Requireable<string>;
|
|
2003
|
+
editorId: Requireable<string>;
|
|
2004
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
2005
|
+
current: Requireable<any>;
|
|
2006
|
+
}> | null | undefined>>;
|
|
2007
|
+
editorValid: Requireable<boolean>;
|
|
2008
|
+
editorDisabled: Requireable<boolean>;
|
|
2009
|
+
style: Requireable<object>;
|
|
2010
|
+
className: Requireable<string>;
|
|
2011
|
+
optional: Requireable<boolean>;
|
|
2012
|
+
};
|
|
2013
|
+
displayName: string;
|
|
2014
|
+
};
|
|
2015
|
+
endTimezoneError: {
|
|
2016
|
+
(props: ErrorProps): JSX_2.Element;
|
|
2017
|
+
propTypes: {
|
|
2018
|
+
id: Requireable<string>;
|
|
2019
|
+
direction: Requireable<string>;
|
|
2020
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
2021
|
+
style: Requireable<object>;
|
|
2022
|
+
className: Requireable<string>; /**
|
|
2023
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
2024
|
+
*/
|
|
2025
|
+
};
|
|
2026
|
+
displayName: string;
|
|
2027
|
+
};
|
|
2028
|
+
endTimezoneEditor: (props: FieldRenderProps & ComboBoxProps) => JSX_2.Element;
|
|
2029
|
+
endTimezoneCheckedLabel: {
|
|
2030
|
+
(props: LabelProps): JSX_2.Element;
|
|
2031
|
+
propTypes: {
|
|
2032
|
+
id: Requireable<string>;
|
|
2033
|
+
editorId: Requireable<string>;
|
|
2034
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
2035
|
+
current: Requireable<any>;
|
|
2036
|
+
}> | null | undefined>>;
|
|
2037
|
+
editorValid: Requireable<boolean>;
|
|
2038
|
+
editorDisabled: Requireable<boolean>;
|
|
2039
|
+
style: Requireable<object>;
|
|
2040
|
+
className: Requireable<string>;
|
|
2041
|
+
optional: Requireable<boolean>;
|
|
2042
|
+
};
|
|
2043
|
+
displayName: string;
|
|
2044
|
+
};
|
|
2045
|
+
endTimezoneCheckedEditor: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<CheckboxHandle | null>>;
|
|
2046
|
+
allDayLabel: {
|
|
2047
|
+
(props: LabelProps): JSX_2.Element;
|
|
2048
|
+
propTypes: {
|
|
2049
|
+
id: Requireable<string>;
|
|
2050
|
+
editorId: Requireable<string>;
|
|
2051
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
2052
|
+
current: Requireable<any>;
|
|
2053
|
+
}> | null | undefined>>;
|
|
2054
|
+
editorValid: Requireable<boolean>;
|
|
2055
|
+
editorDisabled: Requireable<boolean>;
|
|
2056
|
+
style: Requireable<object>;
|
|
2057
|
+
className: Requireable<string>;
|
|
2058
|
+
optional: Requireable<boolean>;
|
|
2059
|
+
};
|
|
2060
|
+
displayName: string;
|
|
2061
|
+
};
|
|
2062
|
+
allDayEditor: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<CheckboxHandle | null>>;
|
|
2063
|
+
recurrenceEditor: React_2.FunctionComponent<RecurrenceEditorProps>;
|
|
2064
|
+
descriptionLabel: {
|
|
2065
|
+
(props: LabelProps): JSX_2.Element;
|
|
2066
|
+
propTypes: {
|
|
2067
|
+
id: Requireable<string>;
|
|
2068
|
+
editorId: Requireable<string>;
|
|
2069
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
2070
|
+
current: Requireable<any>;
|
|
2071
|
+
}> | null | undefined>>;
|
|
2072
|
+
editorValid: Requireable<boolean>;
|
|
2073
|
+
editorDisabled: Requireable<boolean>;
|
|
2074
|
+
style: Requireable<object>;
|
|
2075
|
+
className: Requireable<string>;
|
|
2076
|
+
optional: Requireable<boolean>;
|
|
2077
|
+
};
|
|
2078
|
+
displayName: string;
|
|
2079
|
+
};
|
|
2080
|
+
descriptionEditor: React_2.ForwardRefExoticComponent<TextAreaProps & React_2.RefAttributes<TextAreaHandle | null>>;
|
|
2081
|
+
descriptionError: {
|
|
2082
|
+
(props: ErrorProps): JSX_2.Element;
|
|
2083
|
+
propTypes: {
|
|
2084
|
+
id: Requireable<string>;
|
|
2085
|
+
direction: Requireable<string>;
|
|
2086
|
+
children: Requireable<NonNullable<ReactNodeLike>>;
|
|
2087
|
+
style: Requireable<object>;
|
|
2088
|
+
className: Requireable<string>; /**
|
|
2089
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
2090
|
+
*/
|
|
2091
|
+
};
|
|
2092
|
+
displayName: string;
|
|
2093
|
+
};
|
|
2094
|
+
resourceLabel: {
|
|
2095
|
+
(props: LabelProps): JSX_2.Element;
|
|
2096
|
+
propTypes: {
|
|
2097
|
+
id: Requireable<string>;
|
|
2098
|
+
editorId: Requireable<string>;
|
|
2099
|
+
editorRef: Requireable<NonNullable<((...args: any[]) => any) | InferProps<{
|
|
2100
|
+
current: Requireable<any>;
|
|
2101
|
+
}> | null | undefined>>;
|
|
2102
|
+
editorValid: Requireable<boolean>;
|
|
2103
|
+
editorDisabled: Requireable<boolean>;
|
|
2104
|
+
style: Requireable<object>;
|
|
2105
|
+
className: Requireable<string>;
|
|
2106
|
+
optional: Requireable<boolean>;
|
|
2107
|
+
};
|
|
2108
|
+
displayName: string;
|
|
2109
|
+
};
|
|
2110
|
+
resourceEditor: (props: ResourceEditorProps) => JSX_2.Element;
|
|
2111
|
+
};
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* Represents the `ref` of the SchedulerFormEditor component.
|
|
2115
|
+
*/
|
|
2116
|
+
export declare interface SchedulerFormEditorHandle {
|
|
2117
|
+
element: any;
|
|
2118
|
+
props: SchedulerFormEditorProps;
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
/**
|
|
2122
|
+
* Represents the props of the KendoReact `SchedulerFormEditor` component.
|
|
2123
|
+
*/
|
|
2124
|
+
export declare interface SchedulerFormEditorProps extends Omit_2<FormElementProps, 'children'>, FormRenderProps {
|
|
2125
|
+
/** @hidden */
|
|
2126
|
+
as?: React_2.ComponentType<SchedulerFormEditorProps>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Specifies the `id` attribute of the root element.
|
|
2129
|
+
*/
|
|
2130
|
+
id?: string;
|
|
2131
|
+
/**
|
|
2132
|
+
* Specifies the `tabIndex` attribute of the root element.
|
|
2133
|
+
*/
|
|
2134
|
+
tabIndex?: number;
|
|
2135
|
+
/**
|
|
2136
|
+
* Overrides the component used for visualizing the `title` field label.
|
|
2137
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2138
|
+
*
|
|
2139
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2140
|
+
*/
|
|
2141
|
+
titleLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2142
|
+
/**
|
|
2143
|
+
* Overrides the component used for visualizing the `title` field error.
|
|
2144
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2145
|
+
*
|
|
2146
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2147
|
+
*/
|
|
2148
|
+
titleError?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Overrides the component used for visualizing the `title` field editor.
|
|
2151
|
+
* The [KendoReact Input]({% slug overview_textbox %}) component is used, by default.
|
|
2152
|
+
*
|
|
2153
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2154
|
+
*/
|
|
2155
|
+
titleEditor?: React_2.ComponentType<TargetlessChangeEvent<InputProps & FieldProps, string>>;
|
|
2156
|
+
/**
|
|
2157
|
+
* Overrides the component used for visualizing the `start` field label.
|
|
2158
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2159
|
+
*
|
|
2160
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2161
|
+
*/
|
|
2162
|
+
startLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2163
|
+
/**
|
|
2164
|
+
* Overrides the component used for visualizing the `start` field error.
|
|
2165
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2166
|
+
*
|
|
2167
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2168
|
+
*/
|
|
2169
|
+
startError?: React_2.ComponentType<ErrorProps & FieldProps>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Overrides the component used for visualizing the `start` field editor.
|
|
2172
|
+
* The [KendoReact DatePicker]({% slug overview_datepicker %}) or [KendoReact DateTimePicker]({% slug overview_datetimepicker %}) component is used by default depending on the `allDay` field value.
|
|
2173
|
+
*
|
|
2174
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2175
|
+
*/
|
|
2176
|
+
startEditor?: React_2.ComponentType<TargetlessChangeEvent<ZonedDateTimeProps & FieldProps, Date>>;
|
|
2177
|
+
/**
|
|
2178
|
+
* Overrides the component used for visualizing the `start timezone` field label.
|
|
2179
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2180
|
+
*
|
|
2181
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2182
|
+
*/
|
|
2183
|
+
startTimezoneLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2184
|
+
/**
|
|
2185
|
+
* Overrides the component used for visualizing the `start timezone` field error.
|
|
2186
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2187
|
+
*
|
|
2188
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2189
|
+
*/
|
|
2190
|
+
startTimezoneError?: React_2.ComponentType<ErrorProps & FieldProps>;
|
|
2191
|
+
/**
|
|
2192
|
+
* Overrides the component used for visualizing the `start timezone` field editor.
|
|
2193
|
+
* An extended [KendoReact ComboBox]({% slug overview_combobox %}) component is used, by default.
|
|
2194
|
+
*
|
|
2195
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2196
|
+
*/
|
|
2197
|
+
startTimezoneEditor?: React_2.ComponentType<TargetlessChangeEvent<ComboBoxProps & FieldProps, string>>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Overrides the component used for visualizing the `start timezone checked` label.
|
|
2200
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2201
|
+
*
|
|
2202
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2203
|
+
*/
|
|
2204
|
+
startTimezoneCheckedLabel?: React_2.ComponentType<LabelProps>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Overrides the component used for visualizing the `start timezone checked` editor.
|
|
2207
|
+
* The [KendoReact Checkbox]({% slug overview_checkbox %}) component is used, by default.
|
|
2208
|
+
*
|
|
2209
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2210
|
+
*/
|
|
2211
|
+
startTimezoneCheckedEditor?: React_2.ComponentType<TargetlessChangeEvent<CheckboxProps, boolean>>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Overrides the component used for visualizing the `end` field label.
|
|
2214
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2215
|
+
*
|
|
2216
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2217
|
+
*/
|
|
2218
|
+
endLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2219
|
+
/**
|
|
2220
|
+
* Overrides the component used for visualizing the `end` field error.
|
|
2221
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2222
|
+
*
|
|
2223
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2224
|
+
*/
|
|
2225
|
+
endError?: React_2.ComponentType<ErrorProps & FieldProps>;
|
|
2226
|
+
/**
|
|
2227
|
+
* Overrides the component used for visualizing the `end` field editor.
|
|
2228
|
+
* The [KendoReact DatePicker]({% slug overview_datepicker %}) or [KendoReact DateTimePicker]({% slug overview_datetimepicker %}) component is used by default depending on the `allDay` field value.
|
|
2229
|
+
*
|
|
2230
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2231
|
+
*/
|
|
2232
|
+
endEditor?: React_2.ComponentType<TargetlessChangeEvent<ZonedDateTimeProps & FieldProps, Date>>;
|
|
2233
|
+
/**
|
|
2234
|
+
* Overrides the component used for visualizing the `end timezone` field label.
|
|
2235
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2236
|
+
*
|
|
2237
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2238
|
+
*/
|
|
2239
|
+
endTimezoneLabel?: React_2.ComponentType<LabelProps>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Overrides the component used for visualizing the `end timezone` field error.
|
|
2242
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2243
|
+
*
|
|
2244
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2245
|
+
*/
|
|
2246
|
+
endTimezoneError?: React_2.ComponentType<ErrorProps>;
|
|
2247
|
+
/**
|
|
2248
|
+
* Overrides the component used for visualizing the `end timezone` field editor.
|
|
2249
|
+
* An extended [KendoReact ComboBox]({% slug overview_combobox %}) component is used, by default.
|
|
2250
|
+
*
|
|
2251
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2252
|
+
*/
|
|
2253
|
+
endTimezoneEditor?: React_2.ComponentType<TargetlessChangeEvent<ComboBoxProps, string>>;
|
|
2254
|
+
/**
|
|
2255
|
+
* Overrides the component used for visualizing the `start timezone checked` label.
|
|
2256
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2257
|
+
*
|
|
2258
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2259
|
+
*/
|
|
2260
|
+
endTimezoneCheckedLabel?: React_2.ComponentType<LabelProps>;
|
|
2261
|
+
/**
|
|
2262
|
+
* Overrides the component used for visualizing the `end timezone checked` editor.
|
|
2263
|
+
* The [KendoReact Checkbox]({% slug overview_checkbox %}) component is used, by default.
|
|
2264
|
+
*
|
|
2265
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2266
|
+
*/
|
|
2267
|
+
endTimezoneCheckedEditor?: React_2.ComponentType<TargetlessChangeEvent<CheckboxProps, boolean>>;
|
|
2268
|
+
/**
|
|
2269
|
+
* Overrides the component used for visualizing the `allDay` field label.
|
|
2270
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2271
|
+
*
|
|
2272
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2273
|
+
*/
|
|
2274
|
+
allDayLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2275
|
+
/**
|
|
2276
|
+
* Overrides the component used for visualizing the `allDay` field editor.
|
|
2277
|
+
* The [KendoReact Checkbox]({% slug overview_checkbox %}) component is used, by default.
|
|
2278
|
+
*
|
|
2279
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2280
|
+
*/
|
|
2281
|
+
allDayEditor?: React_2.ComponentType<TargetlessChangeEvent<CheckboxProps & FieldProps, boolean>>;
|
|
2282
|
+
/**
|
|
2283
|
+
* Overrides the component used for visualizing the `recurrenceRule` field editor.
|
|
2284
|
+
* A custom made RecurrenceEditor component is used, by default.
|
|
2285
|
+
*
|
|
2286
|
+
* > We're planing on releasing the `RecurrenceEditor` as a standalone component in the future.
|
|
2287
|
+
*
|
|
2288
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2289
|
+
*/
|
|
2290
|
+
recurrenceEditor?: React_2.ComponentType<TargetlessChangeEvent<any & FieldProps, string>>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Overrides the component used for visualizing the `description` field label.
|
|
2293
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2294
|
+
*
|
|
2295
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2296
|
+
*/
|
|
2297
|
+
descriptionLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2298
|
+
/**
|
|
2299
|
+
* Overrides the component used for visualizing the `description` field error.
|
|
2300
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2301
|
+
*
|
|
2302
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2303
|
+
*/
|
|
2304
|
+
descriptionError?: React_2.ComponentType<ErrorProps & FieldProps>;
|
|
2305
|
+
/**
|
|
2306
|
+
* Overrides the component used for visualizing the `description` field editor.
|
|
2307
|
+
* The [KendoReact TextArea]({% slug overview_textarea %}) component is used, by default.
|
|
2308
|
+
*
|
|
2309
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2310
|
+
*/
|
|
2311
|
+
descriptionEditor?: React_2.ComponentType<TargetlessChangeEvent<TextAreaProps & FieldProps, string>>;
|
|
2312
|
+
/**
|
|
2313
|
+
* Overrides the component used for visualizing the `start timezone checked` field label.
|
|
2314
|
+
* The [KendoReact Label]({% slug label_labels %}) component is used, by default.
|
|
2315
|
+
*
|
|
2316
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2317
|
+
*/
|
|
2318
|
+
resourceLabel?: React_2.ComponentType<LabelProps & FieldProps>;
|
|
2319
|
+
/**
|
|
2320
|
+
* Overrides the component used for visualizing each `resources` field error.
|
|
2321
|
+
* The [KendoReact Error]({% slug error_labels %}) component is used, by default.
|
|
2322
|
+
*
|
|
2323
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2324
|
+
*/
|
|
2325
|
+
resourcesError?: React_2.ComponentType<ErrorProps & FieldProps>;
|
|
2326
|
+
/**
|
|
2327
|
+
* Overrides the component used for visualizing each `resource` field editor.
|
|
2328
|
+
* An extended KendoReact [MultiSelect]({% slug overview_multiselect %}) or [DropDownList]({% slug overview_dropdownlist %}) component is used by default, depending on the `multiple` field of each individual `resource`.
|
|
2329
|
+
*
|
|
2330
|
+
* For more information, please refer to the [`Scheduler Form Editor Customization`]({% slug overview_customization_form_editor_scheduler %}) article.
|
|
2331
|
+
*/
|
|
2332
|
+
resourceEditor?: React_2.ComponentType<TargetlessChangeEvent<(MultiSelectProps | DropDownListProps) & FieldProps, any>>;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Represent the `ref` of the SchedulerForm component.
|
|
2337
|
+
*/
|
|
2338
|
+
export declare interface SchedulerFormHandle {
|
|
2339
|
+
/**
|
|
2340
|
+
* Represents the properties passed to the current instance of the `SchedulerForm`.
|
|
2341
|
+
*/
|
|
2342
|
+
props: SchedulerFormProps;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* Represents the props of the KendoReact [SchedulerForm]({% slug api_scheduler_schedulerform %}) component.
|
|
2347
|
+
*/
|
|
2348
|
+
export declare interface SchedulerFormProps extends Omit_2<FormProps, 'render' | 'onSubmit'> {
|
|
2349
|
+
/**
|
|
2350
|
+
* Specifies the `dataItem` to be visualized inside the form.
|
|
2351
|
+
*/
|
|
2352
|
+
dataItem: DataItem;
|
|
2353
|
+
/**
|
|
2354
|
+
* The Form content that will be rendered. The default rendering includes a `dialog` and `editor`.
|
|
2355
|
+
*
|
|
2356
|
+
* For more information about customizing some parts of the default rendering please refer to the [SchedulerForm Customization]({% slug overview_customization_form_scheduler %}) article.
|
|
2357
|
+
*/
|
|
2358
|
+
render?: (props: FormRenderProps) => any;
|
|
2359
|
+
/**
|
|
2360
|
+
* Called when the `cancel` button is clicked.
|
|
2361
|
+
*/
|
|
2362
|
+
onCancel?: (event: SchedulerFormStateChangeEvent<null>) => void;
|
|
2363
|
+
/**
|
|
2364
|
+
* Called when the `close` button is clicked.
|
|
2365
|
+
*/
|
|
2366
|
+
onClose?: (event: SchedulerFormStateChangeEvent<null>) => void;
|
|
2367
|
+
/**
|
|
2368
|
+
* Called when the `submit` button is clicked.
|
|
2369
|
+
*/
|
|
2370
|
+
onSubmit: (event: SchedulerFormStateChangeEvent<any>) => void;
|
|
2371
|
+
/**
|
|
2372
|
+
* Overrides the component used for visualizing the `editor`.
|
|
2373
|
+
* The [SchedulerFormEditor]({% slug api_scheduler_schedulerFormEditor %}) component is used, by default.
|
|
2374
|
+
*
|
|
2375
|
+
* For more information, please refer to the [`Scheduler Form Customization`]({% slug overview_customization_form_scheduler %}) article.
|
|
2376
|
+
*/
|
|
2377
|
+
editor?: React_2.ComponentType<SchedulerFormEditorProps>;
|
|
2378
|
+
/**
|
|
2379
|
+
* Overrides the component used for visualizing the `dialog`.
|
|
2380
|
+
* The [KendoReact Dialog]({% slug api_dialogs_dialog %}) component is used, by default.
|
|
2381
|
+
*
|
|
2382
|
+
* For more information, please refer to the [`Scheduler Form Customization`]({% slug overview_customization_form_scheduler %}) article.
|
|
2383
|
+
*/
|
|
2384
|
+
dialog?: React_2.ComponentType<DialogProps>;
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
declare interface SchedulerFormStateChangeEvent<T> {
|
|
2388
|
+
target: SchedulerFormHandle;
|
|
2389
|
+
value: T;
|
|
2390
|
+
syntheticEvent: React_2.SyntheticEvent;
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* An interface for the Scheduler groups.
|
|
2395
|
+
*/
|
|
2396
|
+
export declare interface SchedulerGroup {
|
|
2397
|
+
/**
|
|
2398
|
+
* An array of the resource names that will be grouped.
|
|
2399
|
+
*/
|
|
2400
|
+
resources: string[];
|
|
2401
|
+
/**
|
|
2402
|
+
* Specifies the orientation of the groups.
|
|
2403
|
+
*/
|
|
2404
|
+
orientation: 'horizontal' | 'vertical';
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources).
|
|
2409
|
+
*
|
|
2410
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
2411
|
+
*/
|
|
2412
|
+
export declare const SchedulerGroupsContext: React_2.Context<SchedulerGroupsContextType>;
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* Specifies the result of the [useSchedulerGroupsContext]({% slug api_scheduler_useschedulergroupscontext %}) and [SchedulerGroupsContext]({% slug api_scheduler_schedulergroupscontext %}).
|
|
2416
|
+
*/
|
|
2417
|
+
export declare type SchedulerGroupsContextType = Group[];
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the Scheduler component.
|
|
2421
|
+
*/
|
|
2422
|
+
declare interface SchedulerHandle {
|
|
2423
|
+
props: SchedulerProps;
|
|
2424
|
+
element: HTMLDivElement | null;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Represents the default `header` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
2429
|
+
*/
|
|
2430
|
+
export declare const SchedulerHeader: React_2.ForwardRefExoticComponent<SchedulerHeaderProps & React_2.RefAttributes<SchedulerHeaderHandle>>;
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerHeader]({% slug api_scheduler_schedulerheader %}).
|
|
2434
|
+
*
|
|
2435
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
2436
|
+
*/
|
|
2437
|
+
export declare interface SchedulerHeaderHandle {
|
|
2438
|
+
element: HTMLDivElement | null;
|
|
2439
|
+
props: SchedulerHeaderProps;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
export declare interface SchedulerHeaderProps extends ToolbarProps {
|
|
2443
|
+
children?: React_2.ReactNode;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Represents the default `item` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
2448
|
+
*/
|
|
2449
|
+
export declare const SchedulerItem: React_2.ForwardRefExoticComponent<SchedulerItemProps & React_2.RefAttributes<SchedulerItemHandle>>;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* A component which applies the necessary `className` for correct styling of child elements inside the [SchedulerItem]({% slug api_scheduler_scheduleritem %})
|
|
2453
|
+
*/
|
|
2454
|
+
export declare const SchedulerItemContent: React_2.ForwardRefExoticComponent<SchedulerItemContentProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* Represents the props of the [SchedulerItemContent]({% slug api_scheduler_scheduleritemcontent %}) component.
|
|
2458
|
+
* Extends the [native `div` props`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement).
|
|
2459
|
+
*/
|
|
2460
|
+
export declare interface SchedulerItemContentProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* @hidden
|
|
2465
|
+
*/
|
|
2466
|
+
declare interface SchedulerItemDragEvent {
|
|
2467
|
+
target: SchedulerItemHandle;
|
|
2468
|
+
dragEvent: ItemDragEvent;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
/**
|
|
2472
|
+
* Represents the object passed to the `drag-item` reducer.
|
|
2473
|
+
*/
|
|
2474
|
+
export declare interface SchedulerItemDragItemAction {
|
|
2475
|
+
type: DRAG_ITEM_ACTION;
|
|
2476
|
+
payload?: DataItem;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
/**
|
|
2480
|
+
* @hidden
|
|
2481
|
+
*/
|
|
2482
|
+
export declare interface SchedulerItemFocusEvent {
|
|
2483
|
+
target: SchedulerItemHandle;
|
|
2484
|
+
syntheticEvent: React.FocusEvent;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
/** @hidden */
|
|
2488
|
+
declare type SchedulerItemFormItemAction = {
|
|
2489
|
+
type: FORM_ITEM_ACTION;
|
|
2490
|
+
payload?: DataItem;
|
|
2491
|
+
};
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerItem]({% slug api_scheduler_scheduleritem %}).
|
|
2495
|
+
*
|
|
2496
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
2497
|
+
*/
|
|
2498
|
+
export declare interface SchedulerItemHandle {
|
|
2499
|
+
element: HTMLDivElement | null;
|
|
2500
|
+
props: SchedulerItemProps;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* @hidden
|
|
2505
|
+
*/
|
|
2506
|
+
declare interface SchedulerItemKeyboardEvent {
|
|
2507
|
+
target: SchedulerItemHandle;
|
|
2508
|
+
syntheticEvent: React.KeyboardEvent;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
/**
|
|
2512
|
+
* @hidden
|
|
2513
|
+
*/
|
|
2514
|
+
export declare interface SchedulerItemMouseEvent {
|
|
2515
|
+
target: SchedulerItemHandle;
|
|
2516
|
+
syntheticEvent: React.MouseEvent;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Represents the props of the KendoReact [SchedulerItem]({% slug api_scheduler_scheduleritem %}) component.
|
|
2521
|
+
*/
|
|
2522
|
+
export declare interface SchedulerItemProps extends Item {
|
|
2523
|
+
/**
|
|
2524
|
+
* Specifies the `id` of the wrapping element of the SchedulerItem.
|
|
2525
|
+
*/
|
|
2526
|
+
id?: string;
|
|
2527
|
+
/**
|
|
2528
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the SchedulerItem.
|
|
2529
|
+
*
|
|
2530
|
+
* Providing `null` will not apply any `tabIndex` to the element.
|
|
2531
|
+
*/
|
|
2532
|
+
tabIndex?: number | null;
|
|
2533
|
+
/**
|
|
2534
|
+
* Specifies the `className` attribute of the wrapping element of the SchedulerItem.
|
|
2535
|
+
*
|
|
2536
|
+
* The SchedulerItem applies the following default className:
|
|
2537
|
+
* - `k-event`
|
|
2538
|
+
* - `k-selected` - if `props.selected` is set to `true`
|
|
2539
|
+
* - `k-event-drag-hint` - if `props.dragHint` is set to `true`
|
|
2540
|
+
* - `k-scheduler-marquee` - if `props.resizeHint` is set to `true`
|
|
2541
|
+
* - `k-marquee`: if `props.resizeHint` is set to `true`
|
|
2542
|
+
* - `k-first`: if `props.resizeHint` is set to `true` and `props.tail` is set to `false`
|
|
2543
|
+
* - `k-last`: if `props.resizeHint` is set to `true` and `props.head` is set to `false`
|
|
2544
|
+
*/
|
|
2545
|
+
className?: string;
|
|
2546
|
+
/**
|
|
2547
|
+
* Specifies the `style` object of the wrapping element of the SchedulerItem.
|
|
2548
|
+
*
|
|
2549
|
+
* The SchedulerItem applies the following default styles:
|
|
2550
|
+
* - `cursor`: `pointer`
|
|
2551
|
+
* - `userSelect`: `none`
|
|
2552
|
+
* - `borderColor`: `props.color`
|
|
2553
|
+
* - `borderColor`: `props.color`
|
|
2554
|
+
* - `pointerEvents`: `none` - if `props.dragHint` or `props.resizeHint` is set to `true`
|
|
2555
|
+
*/
|
|
2556
|
+
style?: React_2.CSSProperties;
|
|
2557
|
+
/**
|
|
2558
|
+
* Specifies the `children` of the SchedulerItem.
|
|
2559
|
+
*
|
|
2560
|
+
* Setting this property will override the default elements rendered by the SchedulerItem.
|
|
2561
|
+
*/
|
|
2562
|
+
children?: React_2.ReactNode;
|
|
2563
|
+
/**
|
|
2564
|
+
* Overrides the `editable` prop of the `Scheduler` and the active view.
|
|
2565
|
+
*/
|
|
2566
|
+
editable?: EditableProp | boolean;
|
|
2567
|
+
/**
|
|
2568
|
+
* Sets the selected state of the SchedulerSlot. By default the `k-selected` className is added if `props.selected` is `true`.
|
|
2569
|
+
*/
|
|
2570
|
+
selected?: boolean;
|
|
2571
|
+
/**
|
|
2572
|
+
* Specifies the orientation of the SchedulerItem.
|
|
2573
|
+
*/
|
|
2574
|
+
vertical?: boolean;
|
|
2575
|
+
/**
|
|
2576
|
+
* Returns true if it is the last item rendered in the current view.
|
|
2577
|
+
*/
|
|
2578
|
+
isLast?: boolean;
|
|
2579
|
+
/**
|
|
2580
|
+
* Specifies if the current SchedulerItem is used as a DragHint.
|
|
2581
|
+
*/
|
|
2582
|
+
dragHint?: boolean;
|
|
2583
|
+
/**
|
|
2584
|
+
* Specifies if the current SchedulerItem is used as a ResizeHint.
|
|
2585
|
+
*/
|
|
2586
|
+
resizeHint?: boolean;
|
|
2587
|
+
/**
|
|
2588
|
+
* Specifies the `format` in which the `zonedStart` and `zonedEnd` properties are displayed.
|
|
2589
|
+
*
|
|
2590
|
+
* For more information, refer to the [formatDate]({% slug api_intl_intlservice %}#toc-formatdate) method of the [IntlService]({% slug overview_globalization %}).
|
|
2591
|
+
*/
|
|
2592
|
+
format?: string;
|
|
2593
|
+
/**
|
|
2594
|
+
* Called each time the element, or any of its child elements, receive focus.
|
|
2595
|
+
*/
|
|
2596
|
+
onFocus?: (event: SchedulerItemFocusEvent) => void;
|
|
2597
|
+
/**
|
|
2598
|
+
* Called each time the element, or any of its child elements, lose focus.
|
|
2599
|
+
*/
|
|
2600
|
+
onBlur?: (event: SchedulerItemFocusEvent) => void;
|
|
2601
|
+
/**
|
|
2602
|
+
* Called each time the element, or any of its child elements resceives `mousedown` event.
|
|
2603
|
+
*/
|
|
2604
|
+
onMouseDown?: (event: SchedulerItemMouseEvent) => void;
|
|
2605
|
+
/**
|
|
2606
|
+
* Called each time the element, or any of its child elements resceives `mouseup` event.
|
|
2607
|
+
*/
|
|
2608
|
+
onMouseUp?: (event: SchedulerItemMouseEvent) => void;
|
|
2609
|
+
/**
|
|
2610
|
+
* Called each time the element, or any of its child elements, is clicked.
|
|
2611
|
+
*/
|
|
2612
|
+
onClick?: (event: SchedulerItemMouseEvent) => void;
|
|
2613
|
+
/**
|
|
2614
|
+
* Called each time the element, or any of its child elements receives `mouseenter` event.
|
|
2615
|
+
*/
|
|
2616
|
+
onMouseEnter?: (event: SchedulerItemMouseEvent) => void;
|
|
2617
|
+
/**
|
|
2618
|
+
* Called each time the element, or any of its child elements receives `mouseleave` event.
|
|
2619
|
+
*/
|
|
2620
|
+
onMouseLeave?: (event: SchedulerItemMouseEvent) => void;
|
|
2621
|
+
/**
|
|
2622
|
+
* Called each time the element, or any of its child elements receives `mouseover` event.
|
|
2623
|
+
*/
|
|
2624
|
+
onMouseOver?: (event: SchedulerItemMouseEvent) => void;
|
|
2625
|
+
/**
|
|
2626
|
+
* Called each time the element, or any of its child elements receives `mouseout` event.
|
|
2627
|
+
*/
|
|
2628
|
+
onMouseOut?: (event: SchedulerItemMouseEvent) => void;
|
|
2629
|
+
/**
|
|
2630
|
+
* Called each time the element, or any of its child elements, is double-clicked.
|
|
2631
|
+
*/
|
|
2632
|
+
onDoubleClick?: (event: SchedulerItemMouseEvent) => void;
|
|
2633
|
+
/**
|
|
2634
|
+
* Called when the `delete` icon is clicked.
|
|
2635
|
+
*
|
|
2636
|
+
* The `delete` icon is rendered only when `props.editable` or `props.editable.remove` is `true`
|
|
2637
|
+
*/
|
|
2638
|
+
onRemoveClick?: (event: SchedulerItemMouseEvent) => void;
|
|
2639
|
+
/**
|
|
2640
|
+
* Called each time a `keydown` event propagates to the wrapping element.
|
|
2641
|
+
*/
|
|
2642
|
+
onKeyDown?: (event: SchedulerItemKeyboardEvent) => void;
|
|
2643
|
+
/**
|
|
2644
|
+
* Called each time a `keypress` event propagates to the wrapping element.
|
|
2645
|
+
*/
|
|
2646
|
+
onKeyPress?: (event: SchedulerItemKeyboardEvent) => void;
|
|
2647
|
+
/**
|
|
2648
|
+
* Called each time a `keyup` event propagates to the wrapping element.
|
|
2649
|
+
*/
|
|
2650
|
+
onKeyUp?: (event: SchedulerItemKeyboardEvent) => void;
|
|
2651
|
+
/**
|
|
2652
|
+
* Called each time the element receives a `press` event.
|
|
2653
|
+
*
|
|
2654
|
+
* This event is used by the [`Drag & Drop`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2655
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDragStart` callback.
|
|
2656
|
+
*/
|
|
2657
|
+
onPress?: (event: SchedulerItemDragEvent) => void;
|
|
2658
|
+
/**
|
|
2659
|
+
* Called each time the element is dragged.
|
|
2660
|
+
*
|
|
2661
|
+
* This event is used by the [`Drag & Drop`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2662
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDrag` callback.
|
|
2663
|
+
*/
|
|
2664
|
+
onDrag?: (event: SchedulerItemDragEvent) => void;
|
|
2665
|
+
/**
|
|
2666
|
+
* Called when the dragged element is being `released`.
|
|
2667
|
+
*
|
|
2668
|
+
* This event is used by the [`Drag & Drop`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2669
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDragEnd` callback.
|
|
2670
|
+
*/
|
|
2671
|
+
onRelease?: (event: SchedulerItemDragEvent) => void;
|
|
2672
|
+
/**
|
|
2673
|
+
* Called each time the any of the resize handlers receives a `press` event.
|
|
2674
|
+
*
|
|
2675
|
+
* This event is used by the [`Resize`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2676
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDragStart` callback.
|
|
2677
|
+
*/
|
|
2678
|
+
onResizePress?: (event: SchedulerItemDragEvent) => void;
|
|
2679
|
+
/**
|
|
2680
|
+
* Called each time the the resize handler responsible for the item `start` is being dragged.
|
|
2681
|
+
*
|
|
2682
|
+
* This event is used by the [`Resize`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2683
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDrag` callback.
|
|
2684
|
+
*/
|
|
2685
|
+
onResizeStartDrag?: (event: SchedulerItemDragEvent) => void;
|
|
2686
|
+
/**
|
|
2687
|
+
* Called each time the the resize handler responsible for the item `end` is being dragged.
|
|
2688
|
+
*
|
|
2689
|
+
* This event is used by the [`Resize`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2690
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDrag` callback.
|
|
2691
|
+
*/
|
|
2692
|
+
onResizeEndDrag?: (event: SchedulerItemDragEvent) => void;
|
|
2693
|
+
/**
|
|
2694
|
+
* Called when the dragged resize handler is being `released`
|
|
2695
|
+
*
|
|
2696
|
+
* This event is used by the [`Resize`]({% slug editing_scheduler %}) functionality of the SchedulerItem.
|
|
2697
|
+
* The SchedulerItem is using the [KendoReactDraggable]({% slug draggable_common %}) instead of the `onDragEnd` callback.
|
|
2698
|
+
*/
|
|
2699
|
+
onResizeRelease?: (event: SchedulerItemDragEvent) => void;
|
|
2700
|
+
/** @hidden */
|
|
2701
|
+
_maxSiblingsPerSlot?: number;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Represents the object passed to the `remove-item` reducer.
|
|
2706
|
+
*/
|
|
2707
|
+
export declare type SchedulerItemRemoveItemAction = {
|
|
2708
|
+
type: REMOVE_ITEM_ACTION;
|
|
2709
|
+
payload?: DataItem;
|
|
2710
|
+
};
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* Represents the object passed to the `resize-item` reducer.
|
|
2714
|
+
*/
|
|
2715
|
+
export declare interface SchedulerItemResizeItemAction {
|
|
2716
|
+
type: RESIZE_ITEM_ACTION;
|
|
2717
|
+
payload?: DataItem;
|
|
2718
|
+
event?: any;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* Represents the object passed to the `series` reducer.
|
|
2723
|
+
*/
|
|
2724
|
+
export declare type SchedulerItemSeriesAction = {
|
|
2725
|
+
type: SERIES_ACTION;
|
|
2726
|
+
payload?: boolean;
|
|
2727
|
+
};
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Represents the object passed to the `items-focus` reducer.
|
|
2731
|
+
*/
|
|
2732
|
+
export declare interface SchedulerItemsFocusAction {
|
|
2733
|
+
type: ITEMS_FOCUS_ACTION;
|
|
2734
|
+
item?: React_2.RefObject<SchedulerItemHandle>;
|
|
2735
|
+
ignoreIsAllDay?: boolean;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* Represents the object passed to the `show-occurrence-dialog` reducer.
|
|
2740
|
+
*/
|
|
2741
|
+
export declare type SchedulerItemShowOccurrenceDialogAction = {
|
|
2742
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
2743
|
+
payload?: boolean;
|
|
2744
|
+
};
|
|
2745
|
+
|
|
2746
|
+
/**
|
|
2747
|
+
* Represents the object passed to the `show-remove-dialog` reducer.
|
|
2748
|
+
*/
|
|
2749
|
+
export declare type SchedulerItemShowRemoveDialogAction = {
|
|
2750
|
+
type: SHOW_REMOVE_DIALOG_ACTION;
|
|
2751
|
+
payload?: boolean;
|
|
2752
|
+
};
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Represents the object passed to the `items-select` reducer.
|
|
2756
|
+
*/
|
|
2757
|
+
export declare interface SchedulerItemsSelectAction {
|
|
2758
|
+
type: ITEMS_SELECT_ACTION;
|
|
2759
|
+
item?: React_2.RefObject<SchedulerItemHandle>;
|
|
2760
|
+
ignoreIsAllDay?: boolean;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
/**
|
|
2764
|
+
* Defines the model fields that will be used for creating `SchedulerEvent` instances.
|
|
2765
|
+
*/
|
|
2766
|
+
export declare interface SchedulerModelFields {
|
|
2767
|
+
/**
|
|
2768
|
+
* The name of the `ID` model field.
|
|
2769
|
+
* Defaults to `"id"`.
|
|
2770
|
+
*/
|
|
2771
|
+
id?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* The name of the start date model field.
|
|
2774
|
+
* Defaults to `"start"`.
|
|
2775
|
+
*/
|
|
2776
|
+
start?: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* The name of the start timezone model field.
|
|
2779
|
+
* Defaults to `"startTimezone"`.
|
|
2780
|
+
*/
|
|
2781
|
+
startTimezone?: string;
|
|
2782
|
+
/** @hidden */
|
|
2783
|
+
originalStart?: string;
|
|
2784
|
+
/**
|
|
2785
|
+
* The name of the end date model field.
|
|
2786
|
+
* Defaults to `"end"`.
|
|
2787
|
+
*/
|
|
2788
|
+
end?: string;
|
|
2789
|
+
/**
|
|
2790
|
+
* The name of the end timezone model field.
|
|
2791
|
+
* Defaults to `"endTimezone"`.
|
|
2792
|
+
*/
|
|
2793
|
+
endTimezone?: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* The name of the all-day flag model field.
|
|
2796
|
+
* Defaults to `"isAllDay"`.
|
|
2797
|
+
*/
|
|
2798
|
+
isAllDay?: string;
|
|
2799
|
+
/**
|
|
2800
|
+
* The name of the title model field.
|
|
2801
|
+
* Defaults to `"title"`.
|
|
2802
|
+
*/
|
|
2803
|
+
title?: string;
|
|
2804
|
+
/**
|
|
2805
|
+
* The name of the description model field.
|
|
2806
|
+
* Defaults to `"title"`.
|
|
2807
|
+
*/
|
|
2808
|
+
description?: string;
|
|
2809
|
+
/**
|
|
2810
|
+
* The name of the recurrence model field.
|
|
2811
|
+
* Defaults to `"recurrenceRule"`.
|
|
2812
|
+
*/
|
|
2813
|
+
recurrenceRule?: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* The name of the recurrence ID model field.
|
|
2816
|
+
* Defaults to `"recurrenceId"`.
|
|
2817
|
+
*/
|
|
2818
|
+
recurrenceId?: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* The name of the recurrence exceptions model field.
|
|
2821
|
+
* Defaults to `"recurrenceExceptions"`.
|
|
2822
|
+
*/
|
|
2823
|
+
recurrenceExceptions?: string;
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerNavigation]({% slug api_scheduler_schedulernavigation %}).
|
|
2828
|
+
*
|
|
2829
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
2830
|
+
*/
|
|
2831
|
+
/** @hidden */
|
|
2832
|
+
declare interface SchedulerNavigationHandle {
|
|
2833
|
+
props: SchedulerNavigationProps;
|
|
2834
|
+
element: HTMLSpanElement | null;
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
* Represents the props of the KendoReact [SchedulerNavigation]({% slug api_scheduler_schedulernavigation %}) component.
|
|
2839
|
+
*/
|
|
2840
|
+
/** @hidden */
|
|
2841
|
+
declare interface SchedulerNavigationProps extends ToolbarItemProps {
|
|
2842
|
+
children?: React_2.ReactNode;
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
/**
|
|
2846
|
+
* Represents the default `occurrenceDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
|
|
2847
|
+
*/
|
|
2848
|
+
export declare const SchedulerOccurrenceDialog: React_2.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React_2.RefAttributes<SchedulerOccurrenceDialogHandle | null>>;
|
|
2849
|
+
|
|
2850
|
+
/**
|
|
2851
|
+
* Represent the `ref` of the SchedulerOccurrenceDialog component.
|
|
2852
|
+
*/
|
|
2853
|
+
export declare type SchedulerOccurrenceDialogHandle = {
|
|
2854
|
+
props: SchedulerOccurrenceDialogProps;
|
|
2855
|
+
};
|
|
2856
|
+
|
|
2857
|
+
/**
|
|
2858
|
+
* Represents the props of the KendoReact [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}) component.
|
|
2859
|
+
*/
|
|
2860
|
+
export declare interface SchedulerOccurrenceDialogProps {
|
|
2861
|
+
/**
|
|
2862
|
+
* Specifies the `DataItem` currently being edited.
|
|
2863
|
+
*/
|
|
2864
|
+
dataItem: DataItem;
|
|
2865
|
+
/**
|
|
2866
|
+
* Specifies if the dialog is for `remove` or `edit` action.
|
|
2867
|
+
*/
|
|
2868
|
+
isRemove?: boolean;
|
|
2869
|
+
/**
|
|
2870
|
+
* Called when the `close` button is clicked.
|
|
2871
|
+
*/
|
|
2872
|
+
onClose: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
2873
|
+
/**
|
|
2874
|
+
* Called when the `series` button is clicked.
|
|
2875
|
+
*/
|
|
2876
|
+
onSeriesClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
2877
|
+
/**
|
|
2878
|
+
* Called when the `occurrence` button is clicked.
|
|
2879
|
+
*/
|
|
2880
|
+
onOccurrenceClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
declare interface SchedulerOccurrenceDialogStateChangeEvent<T> {
|
|
2884
|
+
target: SchedulerOccurrenceDialogHandle;
|
|
2885
|
+
value: T;
|
|
2886
|
+
syntheticEvent: React_2.SyntheticEvent;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the grouping orientation of the Scheduler.
|
|
2891
|
+
*
|
|
2892
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
2893
|
+
*/
|
|
2894
|
+
export declare const SchedulerOrientationContext: React_2.Context<Orientation>;
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Specifies the result of the [useSchedulerOrientationContext]({% slug api_scheduler_useschedulerorientationcontext %}) and [SchedulerOrientationContext]({% slug api_scheduler_schedulerorientationcontext %}).
|
|
2898
|
+
*/
|
|
2899
|
+
export declare type SchedulerOrientationContextType = Orientation;
|
|
2900
|
+
|
|
2901
|
+
/**
|
|
2902
|
+
* Represents a customized `viewItem` component which position itself proportionally to the duration of the item.
|
|
2903
|
+
*
|
|
2904
|
+
* This is a composite component of the [`SchedulerItem`]({% slug api_scheduler_scheduleritem %}), extending it to provide extended positioning inside a view.
|
|
2905
|
+
*/
|
|
2906
|
+
export declare const SchedulerProportionalViewItem: React_2.ForwardRefExoticComponent<SchedulerViewItemProps & React_2.RefAttributes<SchedulerViewItemHandle>>;
|
|
2907
|
+
|
|
2908
|
+
export declare const schedulerProportionalViewItemDefaultProps: {
|
|
2909
|
+
item: React_2.ForwardRefExoticComponent<SchedulerItemProps & React_2.RefAttributes<SchedulerItemHandle>>;
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* Represents the props of the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
2914
|
+
*/
|
|
2915
|
+
export declare interface SchedulerProps {
|
|
2916
|
+
/**
|
|
2917
|
+
* Specifies the `id` of the wrapping element of the Scheduler.
|
|
2918
|
+
*/
|
|
2919
|
+
id?: string;
|
|
2920
|
+
/**
|
|
2921
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the Scheduler.
|
|
2922
|
+
*/
|
|
2923
|
+
tabIndex?: number;
|
|
2924
|
+
/**
|
|
2925
|
+
* Specifies the `role` attribute of the Scheduler wrapping element.
|
|
2926
|
+
*
|
|
2927
|
+
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
2928
|
+
*/
|
|
2929
|
+
role?: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* The `aria-labelledby` attribute to be applied to the Scheduler component.
|
|
2932
|
+
*
|
|
2933
|
+
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
2934
|
+
*/
|
|
2935
|
+
ariaLabelledby?: string;
|
|
2936
|
+
/**
|
|
2937
|
+
* The `aria-label` attribute to be applied to the Scheduler component.
|
|
2938
|
+
*
|
|
2939
|
+
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
2940
|
+
*/
|
|
2941
|
+
ariaLabel?: string;
|
|
2942
|
+
/**
|
|
2943
|
+
* Specifies the `style` object of the wrapping element of the Scheduler.
|
|
2944
|
+
*/
|
|
2945
|
+
style?: React_2.CSSProperties;
|
|
2946
|
+
/**
|
|
2947
|
+
* Specifies the `className` attribute of the wrapping element of the Scheduler.
|
|
2948
|
+
*/
|
|
2949
|
+
className?: string;
|
|
2950
|
+
/**
|
|
2951
|
+
* Overrides the default item. Specifying the `item` property of a specific view will override this property.
|
|
2952
|
+
*
|
|
2953
|
+
* The default component is: [SchedulerItem]({% slug api_scheduler_scheduleritem %})
|
|
2954
|
+
*
|
|
2955
|
+
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
2956
|
+
*/
|
|
2957
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
2958
|
+
/**
|
|
2959
|
+
* Overrides the default viewItem. Specifying the `viewItem` property of a specific view will override this property.
|
|
2960
|
+
*
|
|
2961
|
+
* The default component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %})
|
|
2962
|
+
*
|
|
2963
|
+
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
2964
|
+
*/
|
|
2965
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
2966
|
+
/**
|
|
2967
|
+
* Overrides the default editItem. Specifying the `editItem` property of a specific view will override this property.
|
|
2968
|
+
*
|
|
2969
|
+
* The default component is: [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %})
|
|
2970
|
+
*
|
|
2971
|
+
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
2972
|
+
*/
|
|
2973
|
+
editItem?: React_2.ComponentType<SchedulerEditItemProps>;
|
|
2974
|
+
/**
|
|
2975
|
+
* Overrides the default task. Specifying the `task` property of a specific view will override this property.
|
|
2976
|
+
* Currently, the `task` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
2977
|
+
*
|
|
2978
|
+
* The default component is: [SchedulerTask]({% slug api_scheduler_schedulertask %})
|
|
2979
|
+
*
|
|
2980
|
+
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
2981
|
+
*/
|
|
2982
|
+
task?: React_2.ComponentType<SchedulerTaskProps>;
|
|
2983
|
+
/**
|
|
2984
|
+
* Overrides the default viewTask. Specifying the `viewTask` property of a specific view will override this property.
|
|
2985
|
+
* Currently, the `viewTask` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
2986
|
+
*
|
|
2987
|
+
* The default component is: [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %})
|
|
2988
|
+
*
|
|
2989
|
+
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
2990
|
+
*/
|
|
2991
|
+
viewTask?: React_2.ComponentType<SchedulerTaskProps>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Overrides the default editTask. Specifying the `editTask` property of a specific view will override this property.
|
|
2994
|
+
* Currently, the `viewTask` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
2995
|
+
*
|
|
2996
|
+
* The default component is: [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %})
|
|
2997
|
+
*
|
|
2998
|
+
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
2999
|
+
*/
|
|
3000
|
+
editTask?: React_2.ComponentType<SchedulerTaskProps>;
|
|
3001
|
+
/**
|
|
3002
|
+
* Overrides the default header component of the Scheduler.
|
|
3003
|
+
*
|
|
3004
|
+
* The default component is: [SchedulerHeader]({% slug api_scheduler_schedulerheader %})
|
|
3005
|
+
*
|
|
3006
|
+
* For more information on customizing the scheduler header, refer to the [Header Customization]({% slug overview_header_footer_scheduler %}) article.
|
|
3007
|
+
*/
|
|
3008
|
+
header?: React_2.ComponentType<SchedulerHeaderProps>;
|
|
3009
|
+
/**
|
|
3010
|
+
* Overrides the default footer component of the Scheduler.
|
|
3011
|
+
*
|
|
3012
|
+
* The default component is: [Scheduler]({% slug api_scheduler_schedulerfooter %})
|
|
3013
|
+
*
|
|
3014
|
+
* For more information on customizing the scheduler footer, refer to the [Footer Customization]({% slug overview_header_footer_scheduler %}) article.
|
|
3015
|
+
*/
|
|
3016
|
+
footer?: React_2.ComponentType<SchedulerFooterProps>;
|
|
3017
|
+
/**
|
|
3018
|
+
* Overrides the default slot component. Specifying the `slot` property of a specific view will override this property.
|
|
3019
|
+
*
|
|
3020
|
+
* The default component is: [SchedulerSlot]({% slug api_scheduler_schedulerslot %})
|
|
3021
|
+
*
|
|
3022
|
+
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
3023
|
+
*/
|
|
3024
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
3025
|
+
/**
|
|
3026
|
+
* Overrides the default viewSlot component. Specifying the `viewSlot` property of a specific view will override this property.
|
|
3027
|
+
*
|
|
3028
|
+
* The default component is: [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %})
|
|
3029
|
+
*
|
|
3030
|
+
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
3031
|
+
*/
|
|
3032
|
+
viewSlot?: React_2.ComponentType<SchedulerViewSlotProps>;
|
|
3033
|
+
/**
|
|
3034
|
+
* Overrides the default editSlot component. Specifying the `editSlot` property of a specific view will override this property.
|
|
3035
|
+
*
|
|
3036
|
+
* The default component is: [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %})
|
|
3037
|
+
*
|
|
3038
|
+
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
3039
|
+
*/
|
|
3040
|
+
editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
|
|
3041
|
+
/** @hidden */
|
|
3042
|
+
form?: React_2.ComponentType<SchedulerFormProps>;
|
|
3043
|
+
/**
|
|
3044
|
+
* Sets the currently selected view. The value is matched with the `name` property of the view.
|
|
3045
|
+
*/
|
|
3046
|
+
view?: string;
|
|
3047
|
+
/**
|
|
3048
|
+
* Sets the data of the Scheduler component. The data is then parsed and rendered as a visual Scheduler items.
|
|
3049
|
+
*/
|
|
3050
|
+
data?: DataItem[];
|
|
3051
|
+
/**
|
|
3052
|
+
* Sets if the Scheduler component is editable. The value can be either a `boolean` or an Object to specify different types of editing.
|
|
3053
|
+
*/
|
|
3054
|
+
editable?: EditableProp | boolean;
|
|
3055
|
+
/**
|
|
3056
|
+
* Sets the initially selected view.
|
|
3057
|
+
*
|
|
3058
|
+
* For more information refer to the [Scheduler Views]({% slug views_scheduler %}) article.
|
|
3059
|
+
*
|
|
3060
|
+
* Sets the initially selected view. The available values are:
|
|
3061
|
+
* * `day`
|
|
3062
|
+
* * `week`
|
|
3063
|
+
* * `month`
|
|
3064
|
+
* * `agenda`
|
|
3065
|
+
* * `timeline`
|
|
3066
|
+
*/
|
|
3067
|
+
defaultView?: string;
|
|
3068
|
+
/**
|
|
3069
|
+
* Sets the current selected `Date`. The current selected date is passed to the selected view and transformed in to a range.
|
|
3070
|
+
*/
|
|
3071
|
+
date?: Date;
|
|
3072
|
+
/**
|
|
3073
|
+
* Sets a default selected `Date`. The `defaultDate` property is used to specify the initial rendered date, while still remaining in an uncontrolled mode.
|
|
3074
|
+
*/
|
|
3075
|
+
defaultDate?: Date;
|
|
3076
|
+
/**
|
|
3077
|
+
* Force a `rtl` mode. For more information refer to [RTL Support]({% slug globalization_scheduler %}#toc-right-to-left-support)
|
|
3078
|
+
*/
|
|
3079
|
+
rtl?: boolean;
|
|
3080
|
+
/**
|
|
3081
|
+
* Sets the `height` of the Scheduler.
|
|
3082
|
+
*/
|
|
3083
|
+
height?: number | string;
|
|
3084
|
+
/**
|
|
3085
|
+
* Specify the available `view` components as `children` and the Scheduler will match the currently selected view and render it.
|
|
3086
|
+
*/
|
|
3087
|
+
children?: SchedulerView[] | SchedulerView;
|
|
3088
|
+
/**
|
|
3089
|
+
* Specifies the id of the timezone that will be displayed in the Scheduler.
|
|
3090
|
+
* For example, `Europe/Sofia`.
|
|
3091
|
+
*
|
|
3092
|
+
* Defaults to `Etc/UTC`.
|
|
3093
|
+
*/
|
|
3094
|
+
timezone?: string;
|
|
3095
|
+
/**
|
|
3096
|
+
* Specifies the groups of the Scheduler.
|
|
3097
|
+
*/
|
|
3098
|
+
group?: SchedulerGroup;
|
|
3099
|
+
/**
|
|
3100
|
+
* Specifies the resources of the Scheduler.
|
|
3101
|
+
*/
|
|
3102
|
+
resources?: SchedulerResource[];
|
|
3103
|
+
/**
|
|
3104
|
+
* The names of the model fields from which the Scheduler will read its data
|
|
3105
|
+
* ([see example]({% slug data_binding_scheduler %})).
|
|
3106
|
+
*/
|
|
3107
|
+
modelFields?: SchedulerModelFields;
|
|
3108
|
+
/**
|
|
3109
|
+
* Called when new `date` is selected.
|
|
3110
|
+
*/
|
|
3111
|
+
onDateChange?: (args: SchedulerDateChangeEvent) => void;
|
|
3112
|
+
/**
|
|
3113
|
+
* Called when new `view` is selected. [(see example)]({% slug views_scheduler %}#toc-controlling-the-selected-view)
|
|
3114
|
+
*/
|
|
3115
|
+
onViewChange?: (args: SchedulerViewChangeEvent) => void;
|
|
3116
|
+
/**
|
|
3117
|
+
* Called each time when editing occurs.
|
|
3118
|
+
* To enable editing set the `editable` property to `true` or an [`EditableProp`]({% slug api_scheduler_editableprop %})
|
|
3119
|
+
*
|
|
3120
|
+
* For more information refer to the [Scheduler Editing]({% slug editing_scheduler %}) article.
|
|
3121
|
+
*/
|
|
3122
|
+
onDataChange?: (event: SchedulerDataChangeEvent) => void;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
/**
|
|
3126
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the [Scheduler]({% slug api_scheduler_scheduler %}) props.
|
|
3127
|
+
*
|
|
3128
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3129
|
+
*/
|
|
3130
|
+
export declare const SchedulerPropsContext: React_2.Context<SchedulerProps>;
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* Specifies the result of the [useSchedulerPropsContext]({% slug api_scheduler_useschedulerpropscontext %}) and [SchedulerPropsContext]({% slug api_scheduler_schedulerpropscontext %}).
|
|
3134
|
+
*/
|
|
3135
|
+
export declare type SchedulerPropsContextType = SchedulerProps;
|
|
3136
|
+
|
|
3137
|
+
/**
|
|
3138
|
+
* Represents the default `removeDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
|
|
3139
|
+
*/
|
|
3140
|
+
export declare const SchedulerRemoveDialog: React_2.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React_2.RefAttributes<SchedulerRemoveDialogHandle | null>>;
|
|
3141
|
+
|
|
3142
|
+
/**
|
|
3143
|
+
* Represent the `ref` of the SchedulerOccurrenceDialog component.
|
|
3144
|
+
*/
|
|
3145
|
+
export declare type SchedulerRemoveDialogHandle = {
|
|
3146
|
+
props: SchedulerRemoveDialogProps;
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3149
|
+
/**
|
|
3150
|
+
* Represents the props of the KendoReact [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}) component.
|
|
3151
|
+
*/
|
|
3152
|
+
export declare interface SchedulerRemoveDialogProps {
|
|
3153
|
+
/**
|
|
3154
|
+
* Specifies the `DataItem` currently being deleted.
|
|
3155
|
+
*/
|
|
3156
|
+
dataItem: DataItem;
|
|
3157
|
+
/**
|
|
3158
|
+
* Called when the `close` button is clicked.
|
|
3159
|
+
*/
|
|
3160
|
+
onClose?: (event: SchedulerRemoveDialogStateChangeEvent<null>) => void;
|
|
3161
|
+
/**
|
|
3162
|
+
* Called when the `cancel` button is clicked.
|
|
3163
|
+
*/
|
|
3164
|
+
onCancel?: (event: SchedulerRemoveDialogStateChangeEvent<null>) => void;
|
|
3165
|
+
/**
|
|
3166
|
+
* Called when the `confirm` button is clicked.
|
|
3167
|
+
*/
|
|
3168
|
+
onConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void;
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
declare interface SchedulerRemoveDialogStateChangeEvent<T> {
|
|
3172
|
+
target: SchedulerRemoveDialogHandle;
|
|
3173
|
+
value: T;
|
|
3174
|
+
syntheticEvent: React_2.SyntheticEvent;
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
/**
|
|
3178
|
+
* Represents the default `resize` component rendered by the [KendoReact SchedulerEditItem component]().
|
|
3179
|
+
*/
|
|
3180
|
+
export declare const SchedulerResize: React_2.FunctionComponent<SchedulerResizeProps>;
|
|
3181
|
+
|
|
3182
|
+
export declare const schedulerResizeDefaultProps: {
|
|
3183
|
+
viewItem: React_2.ForwardRefExoticComponent<SchedulerViewItemProps & React_2.RefAttributes<SchedulerViewItemHandle>>;
|
|
3184
|
+
item: React_2.ForwardRefExoticComponent<SchedulerItemProps & React_2.RefAttributes<SchedulerItemHandle>>;
|
|
3185
|
+
};
|
|
3186
|
+
|
|
3187
|
+
/**
|
|
3188
|
+
* Represents the props of the KendoReact [SchedulerResize]() component.
|
|
3189
|
+
*/
|
|
3190
|
+
export declare interface SchedulerResizeProps {
|
|
3191
|
+
/** @hidden */
|
|
3192
|
+
format?: string;
|
|
3193
|
+
/** @hidden */
|
|
3194
|
+
ignoreIsAllDay?: boolean;
|
|
3195
|
+
/**
|
|
3196
|
+
* Specifies the `DataItem` to be visualized as a Resize item.
|
|
3197
|
+
*/
|
|
3198
|
+
dataItem: DataItem;
|
|
3199
|
+
/**
|
|
3200
|
+
* Specifies the orientation of the SchedulerItem inside the Drag.
|
|
3201
|
+
*/
|
|
3202
|
+
vertical?: boolean;
|
|
3203
|
+
/**
|
|
3204
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
3205
|
+
*
|
|
3206
|
+
* The default Component is: [SchedulerItem].
|
|
3207
|
+
*/
|
|
3208
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
3209
|
+
/**
|
|
3210
|
+
* Overrides the default component responsible for positioning the item inside the view.
|
|
3211
|
+
*
|
|
3212
|
+
* The default Component is: [SchedulerViewItem]().
|
|
3213
|
+
*/
|
|
3214
|
+
viewItem?: React_2.ComponentType<SchedulerViewItemProps>;
|
|
3215
|
+
}
|
|
3216
|
+
|
|
3217
|
+
/**
|
|
3218
|
+
* An interface for the resources of the Scheduler.
|
|
3219
|
+
*/
|
|
3220
|
+
export declare interface SchedulerResource {
|
|
3221
|
+
/**
|
|
3222
|
+
* The resource name. If not set, the value of the `field` option is used.
|
|
3223
|
+
*/
|
|
3224
|
+
name?: string;
|
|
3225
|
+
/**
|
|
3226
|
+
* The field name of the event that contains the resource value.
|
|
3227
|
+
*/
|
|
3228
|
+
field: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* The resource data.
|
|
3231
|
+
*/
|
|
3232
|
+
data: any[];
|
|
3233
|
+
/**
|
|
3234
|
+
* The field name from the data that contains the resource value.
|
|
3235
|
+
*/
|
|
3236
|
+
valueField: string;
|
|
3237
|
+
/**
|
|
3238
|
+
* The field name from the data that contains the resource text.
|
|
3239
|
+
*/
|
|
3240
|
+
textField: string;
|
|
3241
|
+
/**
|
|
3242
|
+
* The field name from the data that contains the resource color.
|
|
3243
|
+
*/
|
|
3244
|
+
colorField?: string;
|
|
3245
|
+
/**
|
|
3246
|
+
* Specifies if the events have multiple resource values.
|
|
3247
|
+
*/
|
|
3248
|
+
multiple?: boolean;
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
/**
|
|
3252
|
+
* Represents the default `slot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
3253
|
+
*/
|
|
3254
|
+
export declare const SchedulerSlot: React_2.ForwardRefExoticComponent<SchedulerSlotProps & React_2.RefAttributes<SchedulerSlotHandle>>;
|
|
3255
|
+
|
|
3256
|
+
export declare const schedulerSlotDefaultProps: {
|
|
3257
|
+
isWorkHour: boolean;
|
|
3258
|
+
isWorkDay: boolean;
|
|
3259
|
+
};
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Represents the extended `expandable` configuration of a `SchedulerSlot`.
|
|
3263
|
+
*
|
|
3264
|
+
* Settings `offsetTop` or `offsetBottom` would provide an extra space in addition to the space taken by the `items` inside the `slot`.
|
|
3265
|
+
*/
|
|
3266
|
+
export declare type SchedulerSlotExpandableConfig = {
|
|
3267
|
+
offsetTop?: number;
|
|
3268
|
+
offsetBottom?: number;
|
|
3269
|
+
};
|
|
3270
|
+
|
|
3271
|
+
/**
|
|
3272
|
+
* @hidden
|
|
3273
|
+
*/
|
|
3274
|
+
declare interface SchedulerSlotFocusEvent {
|
|
3275
|
+
target: SchedulerSlotHandle;
|
|
3276
|
+
syntheticEvent: React.FocusEvent;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerSlot]({% slug api_scheduler_schedulerslot %}).
|
|
3281
|
+
*
|
|
3282
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
3283
|
+
*/
|
|
3284
|
+
export declare interface SchedulerSlotHandle {
|
|
3285
|
+
element: HTMLDivElement | null;
|
|
3286
|
+
props: SchedulerSlotProps;
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
/** @hidden */
|
|
3290
|
+
declare interface SchedulerSlotKeyboardEvent {
|
|
3291
|
+
target: SchedulerSlotHandle;
|
|
3292
|
+
syntheticEvent: React.KeyboardEvent;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3295
|
+
/**
|
|
3296
|
+
* @hidden
|
|
3297
|
+
*/
|
|
3298
|
+
export declare interface SchedulerSlotMouseEvent {
|
|
3299
|
+
target: SchedulerSlotHandle;
|
|
3300
|
+
syntheticEvent: React.MouseEvent;
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* Represents the props of the KendoReact [SchedulerSlot]({% slug api_scheduler_schedulerslot %}) component.
|
|
3305
|
+
*/
|
|
3306
|
+
export declare interface SchedulerSlotProps extends Slot {
|
|
3307
|
+
/** @hidden */
|
|
3308
|
+
_ref: React_2.RefObject<SchedulerSlotHandle | null>;
|
|
3309
|
+
/**
|
|
3310
|
+
* Specifies the `id` of the wrapping element of the SchedulerSlot.
|
|
3311
|
+
*/
|
|
3312
|
+
id?: string;
|
|
3313
|
+
/**
|
|
3314
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the SchedulerSlot.
|
|
3315
|
+
*
|
|
3316
|
+
* Providing `null` will not apply any `tabIndex` to the element.
|
|
3317
|
+
*/
|
|
3318
|
+
tabIndex?: number;
|
|
3319
|
+
/**
|
|
3320
|
+
* Specifies the `className` attribute of the wrapping element of the SchedulerSlot.
|
|
3321
|
+
*
|
|
3322
|
+
* The SchedulerSlot applies the following default className:
|
|
3323
|
+
* - `k-scheduler-cell`
|
|
3324
|
+
* - `k-slot-cell`
|
|
3325
|
+
* - `k-nonwork-hour` - if either `props.isWorkHour` or `props.isWorkDay` is `false`
|
|
3326
|
+
* - `k-selected` - if `props.selected` is set to `true`
|
|
3327
|
+
*/
|
|
3328
|
+
className?: string;
|
|
3329
|
+
/**
|
|
3330
|
+
* Specifies the `style` object of the wrapping element of the SchedulerSlot.
|
|
3331
|
+
*
|
|
3332
|
+
* The SchedulerSlot applies the following default styles:
|
|
3333
|
+
* - `userSelect`: `none`
|
|
3334
|
+
*/
|
|
3335
|
+
style?: React_2.CSSProperties;
|
|
3336
|
+
/**
|
|
3337
|
+
* Specifies the `children` of the SchedulerSlot. By default, no child elements are rendered.
|
|
3338
|
+
*/
|
|
3339
|
+
children?: React_2.ReactNode;
|
|
3340
|
+
/**
|
|
3341
|
+
* Overrides the `editable` prop of the `Scheduler` and the active view.
|
|
3342
|
+
*/
|
|
3343
|
+
editable?: EditableProp | boolean;
|
|
3344
|
+
/**
|
|
3345
|
+
* Specifies if the `day` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
3346
|
+
*/
|
|
3347
|
+
isWorkDay?: boolean;
|
|
3348
|
+
/**
|
|
3349
|
+
* Specifies if the `time` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
3350
|
+
*/
|
|
3351
|
+
isWorkHour?: boolean;
|
|
3352
|
+
/**
|
|
3353
|
+
* Sets the selected state of the SchedulerSlot. By default the `k-selected` className is added if `props.selected` is `true`.
|
|
3354
|
+
*/
|
|
3355
|
+
selected?: boolean;
|
|
3356
|
+
/**
|
|
3357
|
+
* Sets the `row` in the context of the current active view.
|
|
3358
|
+
* This property is being used to provide keyboard navigation between the SchedulerSlot components.
|
|
3359
|
+
*/
|
|
3360
|
+
row: number;
|
|
3361
|
+
/**
|
|
3362
|
+
* Sets the `col` in the context of the current active view.
|
|
3363
|
+
* This property is being used to provide keyboard navigation between the SchedulerSlot components.
|
|
3364
|
+
*/
|
|
3365
|
+
col: number;
|
|
3366
|
+
/**
|
|
3367
|
+
* Called each time the element, or any of its child elements, receive focus.
|
|
3368
|
+
*/
|
|
3369
|
+
onFocus?: (event: SchedulerSlotFocusEvent) => void;
|
|
3370
|
+
/**
|
|
3371
|
+
* Called each time the element, or any of its child elements, lose focus.
|
|
3372
|
+
*/
|
|
3373
|
+
onBlur?: (event: SchedulerSlotFocusEvent) => void;
|
|
3374
|
+
/**
|
|
3375
|
+
* Called each time the element, or any of its child elements, is clicked.
|
|
3376
|
+
*/
|
|
3377
|
+
onClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
3378
|
+
/**
|
|
3379
|
+
* Called each time the element, or any of its child elements receives `mouseenter` event.
|
|
3380
|
+
*/
|
|
3381
|
+
onMouseEnter?: (event: SchedulerSlotMouseEvent) => void;
|
|
3382
|
+
/**
|
|
3383
|
+
* Called each time the element, or any of its child elements receives `mouseleave` event.
|
|
3384
|
+
*/
|
|
3385
|
+
onMouseLeave?: (event: SchedulerSlotMouseEvent) => void;
|
|
3386
|
+
/**
|
|
3387
|
+
* Called each time the element, or any of its child elements receives `mouseover` event.
|
|
3388
|
+
*/
|
|
3389
|
+
onMouseOver?: (event: SchedulerSlotMouseEvent) => void;
|
|
3390
|
+
/**
|
|
3391
|
+
* Called each time the element, or any of its child elements receives `mouseout` event.
|
|
3392
|
+
*/
|
|
3393
|
+
onMouseOut?: (event: SchedulerSlotMouseEvent) => void;
|
|
3394
|
+
/**
|
|
3395
|
+
* Called each time the element, or any of its child elements, is double-clicked.
|
|
3396
|
+
*/
|
|
3397
|
+
onDoubleClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
3398
|
+
/**
|
|
3399
|
+
* Called each time a `keydown` event propagates to the wrapping element.
|
|
3400
|
+
*/
|
|
3401
|
+
onKeyDown?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
3402
|
+
/**
|
|
3403
|
+
* Called each time a `keypress` event propagates to the wrapping element.
|
|
3404
|
+
*/
|
|
3405
|
+
onKeyPress?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
3406
|
+
/**
|
|
3407
|
+
* Called each time a `keyup` event propagates to the wrapping element.
|
|
3408
|
+
*/
|
|
3409
|
+
onKeyUp?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* Represents the object passed to the `slots-focus` reducer.
|
|
3414
|
+
*/
|
|
3415
|
+
export declare interface SchedulerSlotsFocusAction {
|
|
3416
|
+
type: SLOTS_FOCUS_ACTION;
|
|
3417
|
+
slot: React_2.RefObject<SchedulerSlotHandle | null>;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
/**
|
|
3421
|
+
* Represents the object passed to the `slots-select` reducer.
|
|
3422
|
+
*/
|
|
3423
|
+
export declare interface SchedulerSlotsSelectAction {
|
|
3424
|
+
type: SLOTS_SELECT_ACTION;
|
|
3425
|
+
slot?: React_2.RefObject<SchedulerSlotHandle>;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* Represents the default `task` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
3430
|
+
*
|
|
3431
|
+
* The SchedulerTask is the default representation of an event inside the [`AgendaView`]({% slug agenda_view_scheduler %}).
|
|
3432
|
+
*/
|
|
3433
|
+
export declare const SchedulerTask: React_2.ForwardRefExoticComponent<SchedulerTaskProps & React_2.RefAttributes<SchedulerTaskHandle>>;
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Represents the props of the KendoReact [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
3437
|
+
*/
|
|
3438
|
+
export declare interface SchedulerTaskHandle {
|
|
3439
|
+
element: HTMLDivElement | null;
|
|
3440
|
+
props: SchedulerTaskProps;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
declare interface SchedulerTaskMouseEvent {
|
|
3444
|
+
target: SchedulerTaskHandle;
|
|
3445
|
+
syntheticEvent: React.MouseEvent;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
/**
|
|
3449
|
+
* Represents the props of the KendoReact [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
3450
|
+
*/
|
|
3451
|
+
export declare interface SchedulerTaskProps extends Item {
|
|
3452
|
+
/** @hidden */
|
|
3453
|
+
_ref: React_2.RefObject<SchedulerTaskHandle | null>;
|
|
3454
|
+
/**
|
|
3455
|
+
* Specifies the `id` of the wrapping element of the SchedulerTask.
|
|
3456
|
+
*/
|
|
3457
|
+
id?: string;
|
|
3458
|
+
/**
|
|
3459
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the SchedulerTask.
|
|
3460
|
+
*/
|
|
3461
|
+
tabIndex?: number | null;
|
|
3462
|
+
/**
|
|
3463
|
+
* Specifies the `className` attribute of the wrapping element of the SchedulerTask.
|
|
3464
|
+
*
|
|
3465
|
+
* The SchedulerSlot applies the following default className:
|
|
3466
|
+
* - `k-task`
|
|
3467
|
+
*/
|
|
3468
|
+
className?: string;
|
|
3469
|
+
/**
|
|
3470
|
+
* Specifies the `style` object of the wrapping element of the SchedulerTask.
|
|
3471
|
+
*/
|
|
3472
|
+
style?: React_2.CSSProperties;
|
|
3473
|
+
/**
|
|
3474
|
+
* Specifies the `children` of the SchedulerTask.
|
|
3475
|
+
*
|
|
3476
|
+
* Setting this property will override the default elements rendered by the SchedulerTask.
|
|
3477
|
+
*/
|
|
3478
|
+
children?: React_2.ReactNode;
|
|
3479
|
+
/**
|
|
3480
|
+
* Overrides the `editable` prop of the `Scheduler` and the active view.
|
|
3481
|
+
*/
|
|
3482
|
+
editable?: EditableProp | boolean;
|
|
3483
|
+
/**
|
|
3484
|
+
* Called when the `delete` icon is clicked.
|
|
3485
|
+
*
|
|
3486
|
+
* The `delete` icon is rendered only when `props.editable` or `props.editable.remove` is `true`
|
|
3487
|
+
*/
|
|
3488
|
+
onRemoveClick?: (event: SchedulerTaskMouseEvent) => void;
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
/**
|
|
3492
|
+
* Represents a single Scheduler view.
|
|
3493
|
+
*/
|
|
3494
|
+
declare type SchedulerView = React.ReactElement<SchedulerViewProps>;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* Called every time the user changes the active `view`.
|
|
3498
|
+
*
|
|
3499
|
+
* For more information, refer to the [Scheduler Views]({% slug views_scheduler %}) article.
|
|
3500
|
+
*/
|
|
3501
|
+
export declare interface SchedulerViewChangeEvent {
|
|
3502
|
+
value: string;
|
|
3503
|
+
}
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
* Represents the arguments which are passed to the [dateRange]({% slug api_scheduler_schedulerviewprops %}#toc-daterange) function.
|
|
3507
|
+
*/
|
|
3508
|
+
declare interface SchedulerViewDateRangeArgs {
|
|
3509
|
+
date: Date;
|
|
3510
|
+
intl: IntlService;
|
|
3511
|
+
timezone?: string;
|
|
3512
|
+
numberOfDays?: number;
|
|
3513
|
+
workWeekStart?: Day;
|
|
3514
|
+
workWeekEnd?: Day;
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
/**
|
|
3518
|
+
* Represents the default `viewItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
3519
|
+
*
|
|
3520
|
+
* This is a composite component of the [`SchedulerItem`]({% slug api_scheduler_scheduleritem %}), extending it to provide proper positioning inside a view.
|
|
3521
|
+
*/
|
|
3522
|
+
export declare const SchedulerViewItem: React_2.ForwardRefExoticComponent<SchedulerViewItemProps & React_2.RefAttributes<SchedulerViewItemHandle>>;
|
|
3523
|
+
|
|
3524
|
+
export declare const schedulerViewItemDefaultProps: {
|
|
3525
|
+
item: React_2.ForwardRefExoticComponent<SchedulerItemProps & React_2.RefAttributes<SchedulerItemHandle>>;
|
|
3526
|
+
};
|
|
3527
|
+
|
|
3528
|
+
/**
|
|
3529
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
3530
|
+
*
|
|
3531
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
3532
|
+
*/
|
|
3533
|
+
export declare interface SchedulerViewItemHandle {
|
|
3534
|
+
element: HTMLDivElement | null;
|
|
3535
|
+
props: SchedulerViewItemProps;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
/**
|
|
3539
|
+
* Represents the props of the KendoReact [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}) component.
|
|
3540
|
+
*/
|
|
3541
|
+
export declare interface SchedulerViewItemProps extends SchedulerItemProps {
|
|
3542
|
+
/** @hidden */
|
|
3543
|
+
ignoreIsAllDay?: boolean;
|
|
3544
|
+
/**
|
|
3545
|
+
* Overrides the default component responsible for visualizing a single item.
|
|
3546
|
+
*
|
|
3547
|
+
* The default Component is: [SchedulerItem]({% slug api_scheduler_scheduleritem %}).
|
|
3548
|
+
*/
|
|
3549
|
+
item?: React_2.ComponentType<SchedulerItemProps>;
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
/**
|
|
3553
|
+
* Represents the required props which every [SchedulerView]({% slug api_scheduler_schedulerview %}) must accept.
|
|
3554
|
+
*/
|
|
3555
|
+
declare interface SchedulerViewProps {
|
|
3556
|
+
/**
|
|
3557
|
+
* The name property is used by the Scheduler to match which view is selected. Every view has a default name.
|
|
3558
|
+
*/
|
|
3559
|
+
name?: string;
|
|
3560
|
+
/**
|
|
3561
|
+
* The title to be displayed in the view selection list in the Toolbar.
|
|
3562
|
+
* If a function is passed, it will receive a [LocalizationService]({ slug api_intl_localizationservice }) as an argument
|
|
3563
|
+
*/
|
|
3564
|
+
title?: string | ((localization: LocalizationService) => string);
|
|
3565
|
+
/**
|
|
3566
|
+
* Called every time any of the SchedulerView Slots or Items trigger a data action, through editing, deleting or creating new `DataItem`.
|
|
3567
|
+
*/
|
|
3568
|
+
onDataAction?: (action: DataAction) => void;
|
|
3569
|
+
/**
|
|
3570
|
+
* Specifies the number of days to be shown in the current view.
|
|
3571
|
+
*/
|
|
3572
|
+
numberOfDays?: number;
|
|
3573
|
+
/**
|
|
3574
|
+
* The long-date format for displaying the
|
|
3575
|
+
* selected date in the Scheduler toolbar.
|
|
3576
|
+
* Defaults to `{0:Y}`
|
|
3577
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
3578
|
+
*/
|
|
3579
|
+
selectedDateFormat?: string;
|
|
3580
|
+
/**
|
|
3581
|
+
* The short-date format for displaying the
|
|
3582
|
+
* selected date in the Scheduler toolbar.
|
|
3583
|
+
* Defaults to `{0:Y}`
|
|
3584
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
3585
|
+
*/
|
|
3586
|
+
selectedShortDateFormat?: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* Overrides the `dateRange` calculated by the `Scheduler` component.
|
|
3589
|
+
*
|
|
3590
|
+
* If a function is passed, an object of type [SchedulerViewDateRangeArgs]({% slug api_scheduler_schedulerviewdaterangeargs %}) will be passed.
|
|
3591
|
+
*/
|
|
3592
|
+
dateRange?: DateRange | ((args: SchedulerViewDateRangeArgs) => DateRange);
|
|
3593
|
+
/** @hidden */
|
|
3594
|
+
header?: React.ComponentType<SchedulerHeaderProps>;
|
|
3595
|
+
/** @hidden */
|
|
3596
|
+
footer?: React.ComponentType<SchedulerFooterProps>;
|
|
3597
|
+
/** @hidden */
|
|
3598
|
+
slotDivisions?: number;
|
|
3599
|
+
/** @hidden */
|
|
3600
|
+
slotDuration?: number;
|
|
3601
|
+
/** @hidden */
|
|
3602
|
+
workWeekStart?: Day;
|
|
3603
|
+
/** @hidden */
|
|
3604
|
+
workWeekEnd?: Day;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
/**
|
|
3608
|
+
* A [React Context](https://reactjs.org/docs/context.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
3609
|
+
*
|
|
3610
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3611
|
+
*/
|
|
3612
|
+
export declare const SchedulerViewsContext: React_2.Context<SchedulerViewsContextType>;
|
|
3613
|
+
|
|
3614
|
+
/**
|
|
3615
|
+
* Specifies the result of the [useSchedulerViewsContext]({% slug api_scheduler_useschedulerviewscontext %}) and [SchedulerViewsContext]({% slug api_scheduler_schedulerviewscontext %}).
|
|
3616
|
+
*/
|
|
3617
|
+
export declare type SchedulerViewsContextType = SchedulerView[];
|
|
3618
|
+
|
|
3619
|
+
/**
|
|
3620
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewSelector]({% slug api_scheduler_schedulerviewselector %}).
|
|
3621
|
+
*
|
|
3622
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
3623
|
+
*/
|
|
3624
|
+
/** @hidden */
|
|
3625
|
+
declare interface SchedulerViewSelectorHandle {
|
|
3626
|
+
element: HTMLSpanElement | null;
|
|
3627
|
+
props: SchedulerViewSelectorProps;
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* Represents the props of the KendoReact [SchedulerViewSelector]({% slug api_scheduler_schedulerviewselector %}) component.
|
|
3632
|
+
*/
|
|
3633
|
+
/** @hidden */
|
|
3634
|
+
declare interface SchedulerViewSelectorProps extends ToolbarItemProps {
|
|
3635
|
+
children?: React_2.ReactNode;
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Represents the default `viewSlot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
3640
|
+
*
|
|
3641
|
+
* This is a composite component of the [`SchedulerSlot`]({% slug api_scheduler_schedulerslot %}), extending it to provide additional functionality depending on the view.
|
|
3642
|
+
*/
|
|
3643
|
+
export declare const SchedulerViewSlot: React_2.ForwardRefExoticComponent<SchedulerViewSlotProps & React_2.RefAttributes<SchedulerViewSlotHandle>>;
|
|
3644
|
+
|
|
3645
|
+
export declare const schedulerViewSlotDefaultProps: {
|
|
3646
|
+
slot: React_2.ForwardRefExoticComponent<SchedulerSlotProps & React_2.RefAttributes<SchedulerSlotHandle>>;
|
|
3647
|
+
expandable: boolean;
|
|
3648
|
+
};
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
3652
|
+
*
|
|
3653
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
3654
|
+
*/
|
|
3655
|
+
export declare interface SchedulerViewSlotHandle {
|
|
3656
|
+
props: SchedulerViewSlotProps;
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* Represents the props of the KendoReact [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %}) component.
|
|
3661
|
+
*/
|
|
3662
|
+
export declare interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
3663
|
+
/**
|
|
3664
|
+
* Overrides the default component responsible for view-specific functionality.
|
|
3665
|
+
*
|
|
3666
|
+
* The default Component is: [SchedulerSlot]({% slug api_scheduler_schedulerslot %}).
|
|
3667
|
+
*/
|
|
3668
|
+
slot?: React_2.ComponentType<SchedulerSlotProps>;
|
|
3669
|
+
/**
|
|
3670
|
+
* Set to `false` will render the `slot` as is, without expanding depending on the `items` inside it.
|
|
3671
|
+
*
|
|
3672
|
+
* For more information, please refer to the [Adaptive Slot Height]({% slug recurring_events_scheduler %}) article.
|
|
3673
|
+
*/
|
|
3674
|
+
expandable?: boolean | SchedulerSlotExpandableConfig;
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
/**
|
|
3678
|
+
* Represents the default `viewTask` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
3679
|
+
*
|
|
3680
|
+
* This is a composite component of the [`SchedulerTask`]({% slug api_scheduler_schedulertask %}).
|
|
3681
|
+
*/
|
|
3682
|
+
export declare const SchedulerViewTask: React_2.ForwardRefExoticComponent<SchedulerViewTaskProps & React_2.RefAttributes<SchedulerViewTaskHandle>>;
|
|
3683
|
+
|
|
3684
|
+
export declare const schedulerViewTaskDefaultProps: {
|
|
3685
|
+
task: React_2.ForwardRefExoticComponent<SchedulerTaskProps & React_2.RefAttributes<SchedulerTaskHandle>>;
|
|
3686
|
+
};
|
|
3687
|
+
|
|
3688
|
+
/**
|
|
3689
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}).
|
|
3690
|
+
*
|
|
3691
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
3692
|
+
*/
|
|
3693
|
+
export declare interface SchedulerViewTaskHandle {
|
|
3694
|
+
element: HTMLDivElement | null;
|
|
3695
|
+
props: SchedulerViewTaskProps;
|
|
3696
|
+
}
|
|
3697
|
+
|
|
3698
|
+
/**
|
|
3699
|
+
* Represents the props of the KendoReact [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}) component.
|
|
3700
|
+
*/
|
|
3701
|
+
export declare interface SchedulerViewTaskProps extends SchedulerTaskProps {
|
|
3702
|
+
/**
|
|
3703
|
+
* Overrides the default component responsible for visualizing a single task.
|
|
3704
|
+
*
|
|
3705
|
+
* The default Component is: [SchedulerTask]({% slug api_scheduler_schedulertask %}).
|
|
3706
|
+
*/
|
|
3707
|
+
task?: React_2.ComponentType<SchedulerTaskProps>;
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* Represents the available `action` types for the `SchedulerItemSeriesAction` objects.
|
|
3712
|
+
*
|
|
3713
|
+
* The available actions are:
|
|
3714
|
+
* - `SERIES_RESET`
|
|
3715
|
+
* - `SERIES_SET`
|
|
3716
|
+
* - `SERIES_TOGGLE`
|
|
3717
|
+
*/
|
|
3718
|
+
export declare enum SERIES_ACTION {
|
|
3719
|
+
reset = "SERIES_RESET",
|
|
3720
|
+
set = "SERIES_SET",
|
|
3721
|
+
toggle = "SERIES_TOGGLE"
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
/**
|
|
3725
|
+
* Represents the available `action` types for the `SchedulerItemShowOccurrenceDialogAction` objects.
|
|
3726
|
+
*
|
|
3727
|
+
* The available actions are:
|
|
3728
|
+
* - `SHOW_OCCURRENCE_DIALOG_SET`
|
|
3729
|
+
* - `SHOW_OCCURRENCE_DIALOG_OPEN`
|
|
3730
|
+
* - `SHOW_OCCURRENCE_DIALOG_CLOSE`
|
|
3731
|
+
* - `SHOW_OCCURRENCE_DIALOG_RESET`
|
|
3732
|
+
* - `SHOW_OCCURRENCE_DIALOG_TOGGLE`
|
|
3733
|
+
*/
|
|
3734
|
+
export declare enum SHOW_OCCURRENCE_DIALOG_ACTION {
|
|
3735
|
+
set = "SHOW_OCCURRENCE_DIALOG_SET",
|
|
3736
|
+
open = "SHOW_OCCURRENCE_DIALOG_OPEN",
|
|
3737
|
+
close = "SHOW_OCCURRENCE_DIALOG_CLOSE",
|
|
3738
|
+
reset = "SHOW_OCCURRENCE_DIALOG_RESET",
|
|
3739
|
+
toggle = "SHOW_OCCURRENCE_DIALOG_TOGGLE"
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
/**
|
|
3743
|
+
* Represents the available `action` types for the `SchedulerItemShowRemoveDialogAction` objects.
|
|
3744
|
+
*
|
|
3745
|
+
* The available actions are:
|
|
3746
|
+
* - `SHOW_REMOVE_DIALOG_SET`
|
|
3747
|
+
* - `SHOW_REMOVE_DIALOG_OPEN`
|
|
3748
|
+
* - `SHOW_REMOVE_DIALOG_CLOSE`
|
|
3749
|
+
* - `SHOW_REMOVE_DIALOG_RESET`
|
|
3750
|
+
* - `SHOW_REMOVE_DIALOG_TOGGLE`
|
|
3751
|
+
*/
|
|
3752
|
+
export declare enum SHOW_REMOVE_DIALOG_ACTION {
|
|
3753
|
+
set = "SHOW_REMOVE_DIALOG_SET",
|
|
3754
|
+
open = "SHOW_REMOVE_DIALOG_OPEN",
|
|
3755
|
+
close = "SHOW_REMOVE_DIALOG_CLOSE",
|
|
3756
|
+
reset = "SHOW_REMOVE_DIALOG_RESET",
|
|
3757
|
+
toggle = "SHOW_REMOVE_DIALOG_TOGGLE"
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
/** @hidden */
|
|
3761
|
+
declare interface Slot {
|
|
3762
|
+
/** @hidden */
|
|
3763
|
+
_ref: React.RefObject<SchedulerSlotHandle | null>;
|
|
3764
|
+
/**
|
|
3765
|
+
* Represents the consecutive number of the slot in the current range.
|
|
3766
|
+
*/
|
|
3767
|
+
index: number;
|
|
3768
|
+
/**
|
|
3769
|
+
* The `end` date of the slot.
|
|
3770
|
+
*/
|
|
3771
|
+
start: Date;
|
|
3772
|
+
/**
|
|
3773
|
+
* The `end` date of the slot.
|
|
3774
|
+
*/
|
|
3775
|
+
end: Date;
|
|
3776
|
+
/**
|
|
3777
|
+
* Represents the `start` Date in the provided timezone.
|
|
3778
|
+
*
|
|
3779
|
+
* For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
|
|
3780
|
+
*/
|
|
3781
|
+
zonedStart: ZonedDate;
|
|
3782
|
+
/**
|
|
3783
|
+
* Represents the `end` Date in the provided timezone.
|
|
3784
|
+
*
|
|
3785
|
+
* For more information about timezones, refer to the [Scheduler TImezones]({% slug timezones_scheduler %}) article.
|
|
3786
|
+
*/
|
|
3787
|
+
zonedEnd: ZonedDate;
|
|
3788
|
+
/**
|
|
3789
|
+
* A collection of all `items` which fits in the current slot.
|
|
3790
|
+
*/
|
|
3791
|
+
items: Item[];
|
|
3792
|
+
/**
|
|
3793
|
+
* Represents the current group in which the slot is rendered.
|
|
3794
|
+
*/
|
|
3795
|
+
group: Group;
|
|
3796
|
+
/**
|
|
3797
|
+
* Represents the current range in which the slot is rendered.
|
|
3798
|
+
*/
|
|
3799
|
+
range: Range_2;
|
|
3800
|
+
/**
|
|
3801
|
+
* Represents if the slot is an `All-day` slot.
|
|
3802
|
+
*/
|
|
3803
|
+
isAllDay?: boolean;
|
|
3804
|
+
}
|
|
3805
|
+
|
|
3806
|
+
/**
|
|
3807
|
+
* Represents the available `action` types for the `SchedulerSlotsFocusAction` objects.
|
|
3808
|
+
*
|
|
3809
|
+
* The available actions are:
|
|
3810
|
+
* - `SLOT_FOCUS_UP`
|
|
3811
|
+
* - `SLOT_FOCUS_DOWN`
|
|
3812
|
+
* - `SLOT_FOCUS_LEFT`
|
|
3813
|
+
* - `SLOT_FOCUS_RIGHT`
|
|
3814
|
+
*/
|
|
3815
|
+
export declare enum SLOTS_FOCUS_ACTION {
|
|
3816
|
+
up = "SLOT_FOCUS_UP",
|
|
3817
|
+
down = "SLOT_FOCUS_DOWN",
|
|
3818
|
+
left = "SLOT_FOCUS_LEFT",
|
|
3819
|
+
right = "SLOT_FOCUS_RIGHT"
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
/**
|
|
3823
|
+
* Represents the available `action` types for the `SchedulerSlotsSelectAction` objects.
|
|
3824
|
+
*
|
|
3825
|
+
* The available actions are:
|
|
3826
|
+
* - `SLOTS_SELECT_SELECT`
|
|
3827
|
+
* - `SLOTS_SELECT_RESET`
|
|
3828
|
+
* - `SLOTS_SELECT_ADD`
|
|
3829
|
+
*/
|
|
3830
|
+
export declare enum SLOTS_SELECT_ACTION {
|
|
3831
|
+
select = "SLOTS_SELECT_SELECT",
|
|
3832
|
+
reset = "SLOTS_SELECT_RESET",
|
|
3833
|
+
add = "SLOTS_SELECT_ADD"
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
/** @hidden */
|
|
3837
|
+
declare type TargetlessChangeEvent<E extends {
|
|
3838
|
+
onChange?: any;
|
|
3839
|
+
}, T> = Omit_2<E, 'onChange'> & {
|
|
3840
|
+
onChange?: (args: {
|
|
3841
|
+
value: T;
|
|
3842
|
+
}) => void;
|
|
3843
|
+
};
|
|
3844
|
+
|
|
3845
|
+
/**
|
|
3846
|
+
* Represents the TimeHeaderCell component.
|
|
3847
|
+
*/
|
|
3848
|
+
export declare const TimeHeaderCell: React_2.ForwardRefExoticComponent<TimeHeaderCellProps & React_2.RefAttributes<TimeHeaderCellHandle | null>>;
|
|
3849
|
+
|
|
3850
|
+
export declare const timeHeaderCellDefaultProps: {
|
|
3851
|
+
as: React_2.ForwardRefExoticComponent<TimeHeaderCellProps & React_2.RefAttributes<unknown>>;
|
|
3852
|
+
format: string;
|
|
3853
|
+
};
|
|
3854
|
+
|
|
3855
|
+
/**
|
|
3856
|
+
* Represents the target(element and props).
|
|
3857
|
+
*/
|
|
3858
|
+
export declare interface TimeHeaderCellHandle {
|
|
3859
|
+
/**
|
|
3860
|
+
* The current element or `null` if there is no one.
|
|
3861
|
+
*/
|
|
3862
|
+
element: HTMLElement | null;
|
|
3863
|
+
/**
|
|
3864
|
+
* The props values of the TimeHeaderCell.
|
|
3865
|
+
*/
|
|
3866
|
+
props: TimeHeaderCellProps;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
/**
|
|
3870
|
+
* Represents the properties of [TimeHeaderCell]({% slug api_scheduler_timeheadercell %}) component.
|
|
3871
|
+
*/
|
|
3872
|
+
export declare interface TimeHeaderCellProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
3873
|
+
/** @hidden */
|
|
3874
|
+
as?: React_2.ComponentType<TimeHeaderCellProps>;
|
|
3875
|
+
/**
|
|
3876
|
+
* Represents the date format.
|
|
3877
|
+
*/
|
|
3878
|
+
format?: string | DateFormatOptions;
|
|
3879
|
+
/**
|
|
3880
|
+
* Represents the current date.
|
|
3881
|
+
*/
|
|
3882
|
+
date: Date;
|
|
3883
|
+
/**
|
|
3884
|
+
* Represents the start date.
|
|
3885
|
+
*/
|
|
3886
|
+
start: Date;
|
|
3887
|
+
/**
|
|
3888
|
+
* Represents the end date.
|
|
3889
|
+
*/
|
|
3890
|
+
end: Date;
|
|
3891
|
+
}
|
|
3892
|
+
|
|
3893
|
+
/**
|
|
3894
|
+
* Represents the KendoReact [TimelineView]({% slug timeline_view_scheduler %}) Component.
|
|
3895
|
+
*/
|
|
3896
|
+
export declare const TimelineView: React_2.FunctionComponent<TimelineViewProps>;
|
|
3897
|
+
|
|
3898
|
+
/** @hidden */
|
|
3899
|
+
export declare const timeLineViewDefaultProps: {
|
|
3900
|
+
name: string;
|
|
3901
|
+
title: (localization: any) => any;
|
|
3902
|
+
step: number;
|
|
3903
|
+
slotDuration: number;
|
|
3904
|
+
slotDivisions: number;
|
|
3905
|
+
numberOfDays: number;
|
|
3906
|
+
selectedDateFormat: string;
|
|
3907
|
+
selectedShortDateFormat: string;
|
|
3908
|
+
currentTimeMarker: boolean;
|
|
3909
|
+
dateRange: ({ date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
3910
|
+
startTime: string;
|
|
3911
|
+
endTime: string;
|
|
3912
|
+
isWorkDayStart: string;
|
|
3913
|
+
isWorkDayEnd: string;
|
|
3914
|
+
workWeekStart: Day;
|
|
3915
|
+
workWeekEnd: Day;
|
|
3916
|
+
defaultShowWorkHours: boolean;
|
|
3917
|
+
columnWidth: number;
|
|
3918
|
+
};
|
|
3919
|
+
|
|
3920
|
+
/**
|
|
3921
|
+
* Represents the properties of the KendoReact [TimelineView]({% slug api_scheduler_timelineview %}) Component.
|
|
3922
|
+
*/
|
|
3923
|
+
declare interface TimelineViewProps extends MultiDayTimelineViewProps {
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `activeView` state.
|
|
3928
|
+
*
|
|
3929
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3930
|
+
*
|
|
3931
|
+
* @returns
|
|
3932
|
+
*/
|
|
3933
|
+
export declare const useSchedulerActiveViewContext: () => SchedulerActiveViewContextType;
|
|
3934
|
+
|
|
3935
|
+
/**
|
|
3936
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `data` reducer.
|
|
3937
|
+
*
|
|
3938
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3939
|
+
*
|
|
3940
|
+
* @returns
|
|
3941
|
+
*/
|
|
3942
|
+
export declare const useSchedulerDataContext: () => SchedulerDataContextType;
|
|
3943
|
+
|
|
3944
|
+
/**
|
|
3945
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `date` state.
|
|
3946
|
+
*
|
|
3947
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3948
|
+
*
|
|
3949
|
+
* @returns
|
|
3950
|
+
*/
|
|
3951
|
+
export declare const useSchedulerDateContext: () => SchedulerDateContextType;
|
|
3952
|
+
|
|
3953
|
+
/**
|
|
3954
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the `dateRange` of the current view.
|
|
3955
|
+
*
|
|
3956
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
3957
|
+
*
|
|
3958
|
+
* @returns
|
|
3959
|
+
*/
|
|
3960
|
+
export declare const useSchedulerDateRangeContext: () => SchedulerDateRangeContextType;
|
|
3961
|
+
|
|
3962
|
+
/**
|
|
3963
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
|
|
3964
|
+
*
|
|
3965
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
3966
|
+
*
|
|
3967
|
+
* @returns
|
|
3968
|
+
*/
|
|
3969
|
+
export declare const useSchedulerEditItemDragItemContext: () => SchedulerEditItemDragItemContextType;
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
|
|
3973
|
+
*
|
|
3974
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
3975
|
+
*
|
|
3976
|
+
* @returns
|
|
3977
|
+
*/
|
|
3978
|
+
export declare const useSchedulerEditItemFormItemContext: () => SchedulerEditItemFormItemContextType;
|
|
3979
|
+
|
|
3980
|
+
/**
|
|
3981
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) `props`.
|
|
3982
|
+
*
|
|
3983
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
3984
|
+
*
|
|
3985
|
+
* @returns
|
|
3986
|
+
*/
|
|
3987
|
+
export declare const useSchedulerEditItemPropsContext: () => SchedulerEditItemPropsContextType;
|
|
3988
|
+
|
|
3989
|
+
/**
|
|
3990
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
|
|
3991
|
+
*
|
|
3992
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
3993
|
+
*
|
|
3994
|
+
* @returns
|
|
3995
|
+
*/
|
|
3996
|
+
export declare const useSchedulerEditItemRemoveItemContext: () => SchedulerEditItemRemoveItemContextType;
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
|
|
4000
|
+
*
|
|
4001
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
4002
|
+
*
|
|
4003
|
+
* @returns
|
|
4004
|
+
*/
|
|
4005
|
+
export declare const useSchedulerEditItemResizeItemContext: () => SchedulerEditItemResizeItemContextType;
|
|
4006
|
+
|
|
4007
|
+
/**
|
|
4008
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
|
|
4009
|
+
*
|
|
4010
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
4011
|
+
*
|
|
4012
|
+
* @returns
|
|
4013
|
+
*/
|
|
4014
|
+
export declare const useSchedulerEditItemShowOccurrenceDialogContext: () => SchedulerEditItemShowOccurrenceDialogContextType;
|
|
4015
|
+
|
|
4016
|
+
/**
|
|
4017
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
|
|
4018
|
+
*
|
|
4019
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
4020
|
+
*
|
|
4021
|
+
* @returns
|
|
4022
|
+
*/
|
|
4023
|
+
export declare const useSchedulerEditItemShowRemoveDialogContext: () => SchedulerEditItemShowRemoveDialogContextType;
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
|
|
4027
|
+
*
|
|
4028
|
+
* For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
|
|
4029
|
+
*
|
|
4030
|
+
* @returns
|
|
4031
|
+
*/
|
|
4032
|
+
export declare const useSchedulerEditSlotFormItemContext: () => SchedulerEditSlotFormItemContextType;
|
|
4033
|
+
|
|
4034
|
+
/**
|
|
4035
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) `props`.
|
|
4036
|
+
*
|
|
4037
|
+
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
4038
|
+
*
|
|
4039
|
+
* @returns
|
|
4040
|
+
*/
|
|
4041
|
+
export declare const useSchedulerEditSlotPropsContext: () => SchedulerEditSlotPropsContextType;
|
|
4042
|
+
|
|
4043
|
+
/**
|
|
4044
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the combined default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc-modelfields) of the Scheduler.
|
|
4045
|
+
*
|
|
4046
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
4047
|
+
*
|
|
4048
|
+
* @returns
|
|
4049
|
+
*/
|
|
4050
|
+
export declare const useSchedulerFieldsContext: () => SchedulerFieldsContextType;
|
|
4051
|
+
|
|
4052
|
+
/**
|
|
4053
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources).
|
|
4054
|
+
*
|
|
4055
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
4056
|
+
*
|
|
4057
|
+
* @returns
|
|
4058
|
+
*/
|
|
4059
|
+
export declare const useSchedulerGroupsContext: () => SchedulerGroupsContextType;
|
|
4060
|
+
|
|
4061
|
+
/**
|
|
4062
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the grouping orientation of the Scheduler.
|
|
4063
|
+
*
|
|
4064
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
4065
|
+
*
|
|
4066
|
+
* @returns
|
|
4067
|
+
*/
|
|
4068
|
+
export declare const useSchedulerOrientationContext: () => SchedulerOrientationContextType;
|
|
4069
|
+
|
|
4070
|
+
/**
|
|
4071
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [Scheduler]({% slug api_scheduler_scheduler %}) props.
|
|
4072
|
+
*
|
|
4073
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
4074
|
+
*
|
|
4075
|
+
* @returns
|
|
4076
|
+
*/
|
|
4077
|
+
export declare const useSchedulerPropsContext: () => SchedulerPropsContextType;
|
|
4078
|
+
|
|
4079
|
+
/**
|
|
4080
|
+
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
4081
|
+
*
|
|
4082
|
+
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
4083
|
+
*
|
|
4084
|
+
* @returns
|
|
4085
|
+
*/
|
|
4086
|
+
export declare const useSchedulerViewsContext: () => SchedulerViewsContextType;
|
|
4087
|
+
|
|
4088
|
+
/**
|
|
4089
|
+
* Represents the KendoReact [WeekView]({% slug week_views_scheduler %}) Component.
|
|
4090
|
+
*/
|
|
4091
|
+
export declare const WeekView: React_2.FunctionComponent<WeekViewProps>;
|
|
4092
|
+
|
|
4093
|
+
/** @hidden */
|
|
4094
|
+
export declare const weekViewDefaultProps: {
|
|
4095
|
+
name: string;
|
|
4096
|
+
slotDuration: number;
|
|
4097
|
+
slotDivisions: number;
|
|
4098
|
+
numberOfDays: number;
|
|
4099
|
+
dateRange: ({ intl, date, timezone }: SchedulerViewDateRangeArgs) => DateRange;
|
|
4100
|
+
title: (localization: any) => any;
|
|
4101
|
+
selectedDateFormat: string;
|
|
4102
|
+
selectedShortDateFormat: string;
|
|
4103
|
+
};
|
|
4104
|
+
|
|
4105
|
+
/**
|
|
4106
|
+
* Represents the properties of the KendoReact [WeekView]({% slug api_scheduler_weekview %}) Component.
|
|
4107
|
+
*/
|
|
4108
|
+
declare interface WeekViewProps extends MultiDayViewProps {
|
|
4109
|
+
/**
|
|
4110
|
+
* The long-date format for displaying the
|
|
4111
|
+
* selected date in the Scheduler toolbar.
|
|
4112
|
+
* Defaults to `{0:D} - {1:D}`
|
|
4113
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
4114
|
+
*/
|
|
4115
|
+
selectedDateFormat?: string;
|
|
4116
|
+
/**
|
|
4117
|
+
* The short-date format for displaying the
|
|
4118
|
+
* selected date in the Scheduler toolbar.
|
|
4119
|
+
* Defaults to `{0:d} - {1-d}`
|
|
4120
|
+
* ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
|
|
4121
|
+
*/
|
|
4122
|
+
selectedShortDateFormat?: string;
|
|
4123
|
+
/**
|
|
4124
|
+
* Overrides the general `editable` prop of the Scheduler for the specified view only.
|
|
4125
|
+
*/
|
|
4126
|
+
editable?: boolean;
|
|
4127
|
+
/**
|
|
4128
|
+
* The start time of the view. The WeekView displays events which are visible after the start time.
|
|
4129
|
+
* Accepts string values in the `HH:mm` format.
|
|
4130
|
+
*/
|
|
4131
|
+
startTime?: string;
|
|
4132
|
+
/**
|
|
4133
|
+
* The end time of the view. The WeekView displays events which are visible before the end time.
|
|
4134
|
+
* Accepts string values in the `HH:mm` format.
|
|
4135
|
+
*/
|
|
4136
|
+
endTime?: string;
|
|
4137
|
+
/**
|
|
4138
|
+
* The start time of the view when `showWorkHours` is set to `true`.
|
|
4139
|
+
* Accepts string values in the `HH:mm` format.
|
|
4140
|
+
*/
|
|
4141
|
+
workDayStart?: string;
|
|
4142
|
+
/**
|
|
4143
|
+
* The end time of the view when `showWorkHours` is set to `true`.
|
|
4144
|
+
* Accepts string values in the `HH:mm` format.
|
|
4145
|
+
*/
|
|
4146
|
+
workDayEnd?: string;
|
|
4147
|
+
/**
|
|
4148
|
+
* The start of the work week.
|
|
4149
|
+
*/
|
|
4150
|
+
workWeekStart?: Day;
|
|
4151
|
+
/**
|
|
4152
|
+
* The end of the work week.
|
|
4153
|
+
*/
|
|
4154
|
+
workWeekEnd?: Day;
|
|
4155
|
+
/**
|
|
4156
|
+
* The number of divisions of the time slots.
|
|
4157
|
+
*/
|
|
4158
|
+
slotDivisions?: number;
|
|
4159
|
+
/**
|
|
4160
|
+
* The duration (in minutes) of the time slots.
|
|
4161
|
+
*/
|
|
4162
|
+
slotDuration?: number;
|
|
4163
|
+
/**
|
|
4164
|
+
* If set to `true`, the view will be shown in the business-hours mode only.
|
|
4165
|
+
*
|
|
4166
|
+
* This will always override the internal `showWorkHours` state.
|
|
4167
|
+
*/
|
|
4168
|
+
showWorkHours?: boolean;
|
|
4169
|
+
/**
|
|
4170
|
+
* Sets the initial business-hour mode. Default `true`.
|
|
4171
|
+
*
|
|
4172
|
+
* This option applies only the initial `showWorkHours` state.
|
|
4173
|
+
*/
|
|
4174
|
+
defaultShowWorkHours?: boolean;
|
|
4175
|
+
/**
|
|
4176
|
+
* Sets a custom `className` to the wrapping element of the `DayView`.
|
|
4177
|
+
*/
|
|
4178
|
+
className?: string;
|
|
4179
|
+
/**
|
|
4180
|
+
* Sets a custom `id` to the wrapping element of the `DayView`.
|
|
4181
|
+
*/
|
|
4182
|
+
id?: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* Sets a custom `style` property to the wrapping element of the `DayView`.
|
|
4185
|
+
*/
|
|
4186
|
+
style?: React_2.CSSProperties;
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
/** @hidden */
|
|
4190
|
+
export declare const workWeekDefaultProps: {
|
|
4191
|
+
name: string;
|
|
4192
|
+
slotDuration: number;
|
|
4193
|
+
slotDivisions: number;
|
|
4194
|
+
numberOfDays: number;
|
|
4195
|
+
dateRange: ({ intl, date, timezone, ...other }: SchedulerViewDateRangeArgs) => DateRange;
|
|
4196
|
+
title: (localization: any) => any;
|
|
4197
|
+
workWeekStart: Day;
|
|
4198
|
+
workWeekEnd: Day;
|
|
4199
|
+
selectedDateFormat: string;
|
|
4200
|
+
selectedShortDateFormat: string;
|
|
4201
|
+
};
|
|
4202
|
+
|
|
4203
|
+
export declare const WorkWeekView: React_2.FunctionComponent<WorkWeekViewProps>;
|
|
4204
|
+
|
|
4205
|
+
declare interface WorkWeekViewProps extends WeekViewProps {
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
/**
|
|
4209
|
+
* @hidden
|
|
4210
|
+
*/
|
|
4211
|
+
declare type ZonedDateTimeProps = Omit_2<(DatePickerProps | DateTimePickerProps), 'onChange' | 'calendar'> & {
|
|
4212
|
+
as?: React_2.ComponentType<DatePickerProps | DateTimePickerProps>;
|
|
4213
|
+
onChange?: (args: {
|
|
4214
|
+
value: Date | null;
|
|
4215
|
+
}) => void;
|
|
4216
|
+
onOpen?: (args: DatePickerOpenEvent | DateTimePickerOpenEvent) => void;
|
|
4217
|
+
onClose?: (args: DatePickerCloseEvent | DateTimePickerCloseEvent) => void;
|
|
4218
|
+
};
|
|
4219
|
+
|
|
4220
|
+
export { }
|