@progress/kendo-react-scheduler 7.0.0-develop.1 → 7.0.0-develop.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Scheduler.d.ts +362 -0
- package/components/BaseView.d.ts +22 -0
- package/components/CurrentTimeMarket.d.ts +19 -0
- package/components/DateHeaderCell.d.ts +46 -0
- package/components/SchedulerForm.d.ts +71 -0
- package/components/SchedulerOccurrenceDialog.d.ts +46 -0
- package/components/SchedulerRemoveDialog.d.ts +42 -0
- package/components/ShowMoreItemsButton.d.ts +30 -0
- package/components/TimeHeaderCell.d.ts +46 -0
- package/components/footer/SchedulerFooter.d.ts +25 -0
- package/components/footer/bussiness-hours/BussinessHours.d.ts +17 -0
- package/components/header/SchedulerHeader.d.ts +22 -0
- package/components/header/navigation/NavigationDatePicker.d.ts +9 -0
- package/components/header/navigation/SchedulerNavigation.d.ts +28 -0
- package/components/header/view-selector/SchedulerViewSelector.d.ts +28 -0
- package/components/header/view-selector/ViewSelectorItem.d.ts +12 -0
- package/components/header/view-selector/ViewSelectorList.d.ts +7 -0
- package/constants/index.d.ts +58 -0
- package/context/SchedulerContext.d.ts +231 -0
- package/context/SchedulerEditItemContext.d.ts +172 -0
- package/context/SchedulerEditSlotContext.d.ts +51 -0
- package/context/SchedulerEditTaskContext.d.ts +33 -0
- package/context/SchedulerResourceIteratorContext.d.ts +20 -0
- package/context/SchedulerViewContext.d.ts +76 -0
- package/context/index.d.ts +9 -0
- package/dist/cdn/js/kendo-react-scheduler.js +5 -0
- package/editors/FilterableComboBox.d.ts +8 -0
- package/editors/ResourceEditor.d.ts +18 -0
- package/editors/SchedulerFormEditor.d.ts +246 -0
- package/editors/ZonedDateTime.d.ts +22 -0
- package/hooks/index.d.ts +14 -0
- package/hooks/use-items-focus.d.ts +27 -0
- package/hooks/use-items-selection.d.ts +35 -0
- package/hooks/use-slots-focus.d.ts +38 -0
- package/hooks/use-slots-selection.d.ts +28 -0
- package/hooks/useAsyncMouseEnterLeave.d.ts +15 -0
- package/hooks/useCellSync.d.ts +14 -0
- package/hooks/useControlledState.d.ts +17 -0
- package/hooks/useEditable.d.ts +7 -0
- package/hooks/usePropOrState.d.ts +6 -0
- package/hooks/useRowSync.d.ts +15 -0
- package/hooks/useSchedulerItem.d.ts +11 -0
- package/hooks/useSchedulerSlot.d.ts +11 -0
- package/hooks/useSlotExpand.d.ts +9 -0
- package/hooks/useWorkHours.d.ts +6 -0
- package/index.d.ts +45 -0
- package/index.js +5 -0
- package/index.mjs +5880 -0
- package/items/SchedulerEditItem.d.ts +330 -0
- package/items/SchedulerItem.d.ts +203 -0
- package/items/SchedulerItemContent.d.ts +15 -0
- package/items/SchedulerProportionalViewItem.d.ts +12 -0
- package/items/SchedulerViewItem.d.ts +34 -0
- package/items/hooks/use-drag-item.d.ts +46 -0
- package/items/hooks/use-form-item.d.ts +26 -0
- package/items/hooks/use-remove-item.d.ts +34 -0
- package/items/hooks/use-resize-item.d.ts +49 -0
- package/items/hooks/use-series.d.ts +27 -0
- package/items/hooks/use-show-occurrence-dialog.d.ts +31 -0
- package/items/hooks/use-show-remove-item-dialog.d.ts +31 -0
- package/messages/index.d.ts +240 -0
- package/models/DataItem.d.ts +12 -0
- package/models/DateRange.d.ts +22 -0
- package/models/EditableProp.d.ts +33 -0
- package/models/Fields.d.ts +21 -0
- package/models/Group.d.ts +12 -0
- package/models/Item.d.ts +68 -0
- package/models/Occurrence.d.ts +56 -0
- package/models/Omit.d.ts +8 -0
- package/models/Orientation.d.ts +6 -0
- package/models/Range.d.ts +14 -0
- package/models/Rect.d.ts +19 -0
- package/models/Resource.d.ts +12 -0
- package/models/SchedulerGroup.d.ts +17 -0
- package/models/SchedulerHandle.d.ts +12 -0
- package/models/SchedulerModelFields.d.ts +66 -0
- package/models/SchedulerResource.d.ts +37 -0
- package/models/SchedulerView.d.ts +80 -0
- package/models/Slot.d.ts +54 -0
- package/models/events.d.ts +87 -0
- package/models/index.d.ts +21 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +13 -17
- package/recurrence/RecurrenceEditor.d.ts +16 -0
- package/recurrence/RecurrenceFrequencyEditor.d.ts +14 -0
- package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +17 -0
- package/recurrence/common.d.ts +61 -0
- package/recurrence/types/EndRule.d.ts +8 -0
- package/recurrence/types/Frequency.d.ts +8 -0
- package/recurrence/types/FrequencyEntity.d.ts +12 -0
- package/recurrence/types/MonthEntity.d.ts +11 -0
- package/recurrence/types/OffsetPosition.d.ts +8 -0
- package/recurrence/types/OffsetPositionEntity.d.ts +11 -0
- package/recurrence/types/RepeatOnRule.d.ts +8 -0
- package/recurrence/types/WeekDayEntity.d.ts +11 -0
- package/recurrence/types/WeekDayRule.d.ts +11 -0
- package/services/index.d.ts +8 -0
- package/services/itemsService.d.ts +16 -0
- package/services/occurrenceService.d.ts +7 -0
- package/services/rangeService.d.ts +7 -0
- package/services/slotsService.d.ts +10 -0
- package/slots/SchedulerEditSlot.d.ts +52 -0
- package/slots/SchedulerSlot.d.ts +127 -0
- package/slots/SchedulerViewSlot.d.ts +46 -0
- package/tasks/SchedulerEditTask.d.ts +79 -0
- package/tasks/SchedulerTask.d.ts +61 -0
- package/tasks/SchedulerViewTask.d.ts +32 -0
- package/utils/index.d.ts +172 -0
- package/views/agenda/AgendaView.d.ts +83 -0
- package/views/common/HorizontalResourceIterator.d.ts +30 -0
- package/views/common/SchedulerDrag.d.ts +39 -0
- package/views/common/SchedulerResize.d.ts +41 -0
- package/views/common/VerticalResourceIterator.d.ts +25 -0
- package/views/common/utils.d.ts +38 -0
- package/views/day/DayView.d.ts +15 -0
- package/views/day/DayViewAllDayRowContent.d.ts +12 -0
- package/views/day/DayViewGroupRowContent.d.ts +12 -0
- package/views/day/DayViewRowContent.d.ts +17 -0
- package/views/day/MultiDayView.d.ts +175 -0
- package/views/month/MonthView.d.ts +86 -0
- package/views/time/MultiDayTimelineView.d.ts +179 -0
- package/views/time/TimelineView.d.ts +27 -0
- package/views/time/TimelineViewAllEventsRowContent.d.ts +11 -0
- package/views/time/TimelineViewRowContent.d.ts +11 -0
- package/views/week/WeekView.d.ts +106 -0
- package/views/week/WorkWeekView.d.ts +9 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export interface OffsetPositionEntity {
|
|
9
|
+
text: string;
|
|
10
|
+
value: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export type RepeatOnRule = 'monthday' | 'weekday';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export interface WeekDayEntity {
|
|
9
|
+
text: string;
|
|
10
|
+
value: number | string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export interface WeekDayRule {
|
|
9
|
+
day: number;
|
|
10
|
+
offset: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export * from './itemsService';
|
|
6
|
+
export * from './slotsService';
|
|
7
|
+
export * from './occurrenceService';
|
|
8
|
+
export * from './rangeService';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Occurrence, Group, Range, Item, Slot } from '../models';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export declare const toItems: (occurrences: Occurrence[], { timezone }: any, { groups, ranges }: {
|
|
8
|
+
groups: Group[];
|
|
9
|
+
ranges: Range[];
|
|
10
|
+
}) => Item[];
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const inGroup: (occurrence: Occurrence, group: Group) => boolean;
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export declare const inSlot: (occurrence: Occurrence, slot: Slot) => boolean;
|
|
15
|
+
/** @hidden */
|
|
16
|
+
export declare const inRange: (occurrence: Occurrence, range: Range) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { DataItem, Occurrence } from '../models';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export declare const toOccurrences: (data: DataItem[], { dateRange, fields, timezone }: any) => Occurrence[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Range, DateRange } from '../models';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export declare const toRanges: (dateRange: DateRange, { step, timezone }: any) => Range[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { Group, Range, Slot, DateRange } from '../models';
|
|
6
|
+
/** @hidden */
|
|
7
|
+
export declare const toSlots: (_dateRange: DateRange, { step }: any, { groups, ranges }: {
|
|
8
|
+
groups: Group[];
|
|
9
|
+
ranges: Range[];
|
|
10
|
+
}) => Slot[];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { DataItem } from '../models';
|
|
7
|
+
import { DataAction } from '../Scheduler';
|
|
8
|
+
import { SchedulerFormProps } from '../components/SchedulerForm';
|
|
9
|
+
import { SchedulerViewSlotProps } from './SchedulerViewSlot';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the KendoReact [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) component.
|
|
12
|
+
*/
|
|
13
|
+
export interface SchedulerEditSlotProps extends SchedulerViewSlotProps {
|
|
14
|
+
/**
|
|
15
|
+
* Overrides the default component responsible for view-specific functionality.
|
|
16
|
+
*
|
|
17
|
+
* The default Component is: [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %}).
|
|
18
|
+
*/
|
|
19
|
+
viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
|
|
20
|
+
/**
|
|
21
|
+
* Overrides the default component responsible for visualizing the `formItem`.
|
|
22
|
+
*
|
|
23
|
+
* The default Component is: [SchedulerForm]({% slug api_scheduler_schedulerform %}).
|
|
24
|
+
*/
|
|
25
|
+
form?: React.ComponentType<SchedulerFormProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Setting this property will force the `formItem` to be in controlled state, allowing further customization.
|
|
28
|
+
*/
|
|
29
|
+
formItem?: DataItem | null;
|
|
30
|
+
/**
|
|
31
|
+
* Called every time the `formItem` changes.
|
|
32
|
+
*/
|
|
33
|
+
onFormItemChange?: (event: any) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Called when new item has been created in the slot.
|
|
36
|
+
*/
|
|
37
|
+
onDataAction?: (action: DataAction, event: any) => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}).
|
|
41
|
+
*
|
|
42
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
43
|
+
*/
|
|
44
|
+
export interface SchedulerEditSlotHandle {
|
|
45
|
+
props: SchedulerEditSlotProps;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Represents the default `editSlot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
49
|
+
*
|
|
50
|
+
* This is a composite component of the [`SchedulerViewSlot`]({% slug api_scheduler_schedulerviewslot %}), extending it to allow creating an item inside the slot.
|
|
51
|
+
*/
|
|
52
|
+
export declare const SchedulerEditSlot: React.ForwardRefExoticComponent<SchedulerEditSlotProps & React.RefAttributes<SchedulerEditSlotHandle>>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { Slot, SchedulerSlotMouseEvent, SchedulerSlotKeyboardEvent, SchedulerSlotFocusEvent, EditableProp } from '../models';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the props of the KendoReact [SchedulerSlot]({% slug api_scheduler_schedulerslot %}) component.
|
|
9
|
+
*/
|
|
10
|
+
export interface SchedulerSlotProps extends Slot {
|
|
11
|
+
/** @hidden */
|
|
12
|
+
_ref: React.RefObject<SchedulerSlotHandle | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the `id` of the wrapping element of the SchedulerSlot.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the SchedulerSlot.
|
|
19
|
+
*
|
|
20
|
+
* Providing `null` will not apply any `tabIndex` to the element.
|
|
21
|
+
*/
|
|
22
|
+
tabIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the `className` attribute of the wrapping element of the SchedulerSlot.
|
|
25
|
+
*
|
|
26
|
+
* The SchedulerSlot applies the following default className:
|
|
27
|
+
* - `k-scheduler-cell`
|
|
28
|
+
* - `k-slot-cell`
|
|
29
|
+
* - `k-nonwork-hour` - if either `props.isWorkHour` or `props.isWorkDay` is `false`
|
|
30
|
+
* - `k-selected` - if `props.selected` is set to `true`
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the `style` object of the wrapping element of the SchedulerSlot.
|
|
35
|
+
*
|
|
36
|
+
* The SchedulerSlot applies the following default styles:
|
|
37
|
+
* - `userSelect`: `none`
|
|
38
|
+
*/
|
|
39
|
+
style?: React.CSSProperties;
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the `children` of the SchedulerSlot. By default, no child elements are rendered.
|
|
42
|
+
*/
|
|
43
|
+
children?: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Overrides the `editable` prop of the `Scheduler` and the active view.
|
|
46
|
+
*/
|
|
47
|
+
editable?: EditableProp | boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies if the `day` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
50
|
+
*/
|
|
51
|
+
isWorkDay?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies if the `time` of the SchedulerSlot(in the current timezone) is between the `workDayStart` and `workDayEnd` of the active view.
|
|
54
|
+
*/
|
|
55
|
+
isWorkHour?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Sets the selected state of the SchedulerSlot. By default the `k-selected` className is added if `props.selected` is `true`.
|
|
58
|
+
*/
|
|
59
|
+
selected?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Sets the `row` in the context of the current active view.
|
|
62
|
+
* This property is being used to provide keyboard navigation between the SchedulerSlot components.
|
|
63
|
+
*/
|
|
64
|
+
row: number;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the `col` in the context of the current active view.
|
|
67
|
+
* This property is being used to provide keyboard navigation between the SchedulerSlot components.
|
|
68
|
+
*/
|
|
69
|
+
col: number;
|
|
70
|
+
/**
|
|
71
|
+
* Called each time the element, or any of its child elements, receive focus.
|
|
72
|
+
*/
|
|
73
|
+
onFocus?: (event: SchedulerSlotFocusEvent) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Called each time the element, or any of its child elements, lose focus.
|
|
76
|
+
*/
|
|
77
|
+
onBlur?: (event: SchedulerSlotFocusEvent) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Called each time the element, or any of its child elements, is clicked.
|
|
80
|
+
*/
|
|
81
|
+
onClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
82
|
+
/**
|
|
83
|
+
* Called each time the element, or any of its child elements receives `mouseenter` event.
|
|
84
|
+
*/
|
|
85
|
+
onMouseEnter?: (event: SchedulerSlotMouseEvent) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Called each time the element, or any of its child elements receives `mouseleave` event.
|
|
88
|
+
*/
|
|
89
|
+
onMouseLeave?: (event: SchedulerSlotMouseEvent) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Called each time the element, or any of its child elements receives `mouseover` event.
|
|
92
|
+
*/
|
|
93
|
+
onMouseOver?: (event: SchedulerSlotMouseEvent) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Called each time the element, or any of its child elements receives `mouseout` event.
|
|
96
|
+
*/
|
|
97
|
+
onMouseOut?: (event: SchedulerSlotMouseEvent) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Called each time the element, or any of its child elements, is double-clicked.
|
|
100
|
+
*/
|
|
101
|
+
onDoubleClick?: (event: SchedulerSlotMouseEvent) => void;
|
|
102
|
+
/**
|
|
103
|
+
* Called each time a `keydown` event propagates to the wrapping element.
|
|
104
|
+
*/
|
|
105
|
+
onKeyDown?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Called each time a `keypress` event propagates to the wrapping element.
|
|
108
|
+
*/
|
|
109
|
+
onKeyPress?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
110
|
+
/**
|
|
111
|
+
* Called each time a `keyup` event propagates to the wrapping element.
|
|
112
|
+
*/
|
|
113
|
+
onKeyUp?: (event: SchedulerSlotKeyboardEvent) => void;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerSlot]({% slug api_scheduler_schedulerslot %}).
|
|
117
|
+
*
|
|
118
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
119
|
+
*/
|
|
120
|
+
export interface SchedulerSlotHandle {
|
|
121
|
+
element: HTMLDivElement | null;
|
|
122
|
+
props: SchedulerSlotProps;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Represents the default `slot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
126
|
+
*/
|
|
127
|
+
export declare const SchedulerSlot: React.ForwardRefExoticComponent<SchedulerSlotProps & React.RefAttributes<SchedulerSlotHandle>>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerSlotProps } from './SchedulerSlot';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the extended `expandable` configuration of a `SchedulerSlot`.
|
|
9
|
+
*
|
|
10
|
+
* Settings `offsetTop` or `offsetBottom` would provide an extra space in addition to the space taken by the `items` inside the `slot`.
|
|
11
|
+
*/
|
|
12
|
+
export type SchedulerSlotExpandableConfig = {
|
|
13
|
+
offsetTop?: number;
|
|
14
|
+
offsetBottom?: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Represents the props of the KendoReact [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %}) component.
|
|
18
|
+
*/
|
|
19
|
+
export interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
20
|
+
/**
|
|
21
|
+
* Overrides the default component responsible for view-specific functionality.
|
|
22
|
+
*
|
|
23
|
+
* The default Component is: [SchedulerSlot]({% slug api_scheduler_schedulerslot %}).
|
|
24
|
+
*/
|
|
25
|
+
slot?: React.ComponentType<SchedulerSlotProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Set to `false` will render the `slot` as is, without expanding depending on the `items` inside it.
|
|
28
|
+
*
|
|
29
|
+
* For more information, please refer to the [Adaptive Slot Height]({% slug recurring_events_scheduler %}) article.
|
|
30
|
+
*/
|
|
31
|
+
expandable?: boolean | SchedulerSlotExpandableConfig;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
35
|
+
*
|
|
36
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
37
|
+
*/
|
|
38
|
+
export interface SchedulerViewSlotHandle {
|
|
39
|
+
props: SchedulerViewSlotProps;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents the default `viewSlot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
43
|
+
*
|
|
44
|
+
* This is a composite component of the [`SchedulerSlot`]({% slug api_scheduler_schedulerslot %}), extending it to provide additional functionality depending on the view.
|
|
45
|
+
*/
|
|
46
|
+
export declare const SchedulerViewSlot: React.ForwardRefExoticComponent<SchedulerViewSlotProps & React.RefAttributes<SchedulerViewSlotHandle>>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerViewTaskProps } from './SchedulerViewTask';
|
|
7
|
+
import { DataItem } from '../models';
|
|
8
|
+
import { DataAction } from '../Scheduler';
|
|
9
|
+
import { SchedulerRemoveDialogProps } from '../components/SchedulerRemoveDialog';
|
|
10
|
+
import { SchedulerOccurrenceDialogProps } from '../components/SchedulerOccurrenceDialog';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the KendoReact [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %}) component.
|
|
13
|
+
*/
|
|
14
|
+
export interface SchedulerEditTaskProps extends SchedulerViewTaskProps {
|
|
15
|
+
/**
|
|
16
|
+
* Overrides the default component responsible for positioning the task inside the view.
|
|
17
|
+
*
|
|
18
|
+
* The default Component is: [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}).
|
|
19
|
+
*/
|
|
20
|
+
viewTask?: React.ComponentType<SchedulerViewTaskProps>;
|
|
21
|
+
/**
|
|
22
|
+
* Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
|
|
23
|
+
*
|
|
24
|
+
* The default Component is: [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}).
|
|
25
|
+
*/
|
|
26
|
+
removeDialog?: React.ComponentType<SchedulerRemoveDialogProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
|
|
29
|
+
*/
|
|
30
|
+
showRemoveDialog?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Called every time the `showRemoveDialog` changes.
|
|
33
|
+
*/
|
|
34
|
+
onShowRemoveDialogChange?: (event: any) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Setting this property will force the `removeItem` to be in controlled state, allowing further customization.
|
|
37
|
+
*
|
|
38
|
+
* Specifies the DataItem which should be removed from the `data` set.
|
|
39
|
+
* The `removeItem` is passed as property to the `removeDialog` component;
|
|
40
|
+
*/
|
|
41
|
+
removeItem?: DataItem | null;
|
|
42
|
+
/**
|
|
43
|
+
* Called every time the `removeItem` changes.
|
|
44
|
+
*/
|
|
45
|
+
onRemoveItemChange?: (event: any) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Overrides the default component responsible for the selection between `occurrence` and `series` delete.
|
|
48
|
+
*
|
|
49
|
+
* The default Component is: [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}).
|
|
50
|
+
*/
|
|
51
|
+
occurrenceDialog?: React.ComponentType<SchedulerOccurrenceDialogProps>;
|
|
52
|
+
/**
|
|
53
|
+
* Setting this property will force the `showOccurrenceDialog` to be in controlled state, allowing further control over the display of the `occurrenceDialog` component.
|
|
54
|
+
*/
|
|
55
|
+
showOccurrenceDialog?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Called every time the `showOccurrenceDialog` changes.
|
|
58
|
+
*/
|
|
59
|
+
onShowOccurrenceDialogChange?: (event: any) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Called when the item has been removed.
|
|
62
|
+
*/
|
|
63
|
+
onDataAction?: (action: DataAction, event?: any) => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %}).
|
|
67
|
+
*
|
|
68
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
69
|
+
*/
|
|
70
|
+
export interface SchedulerEditTaskHandle {
|
|
71
|
+
element: HTMLDivElement | null;
|
|
72
|
+
props: SchedulerEditTaskProps;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Represents the default `editTask` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
76
|
+
*
|
|
77
|
+
* This is a composite component of the [`SchedulerViewTask`]({% slug api_scheduler_schedulerviewtask %}), extending it to provide the `remove` editing functionality.
|
|
78
|
+
*/
|
|
79
|
+
export declare const SchedulerEditTask: React.ForwardRefExoticComponent<SchedulerEditTaskProps & React.RefAttributes<SchedulerEditTaskHandle>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { Item, SchedulerTaskMouseEvent, EditableProp } from '../models';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the props of the KendoReact [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
9
|
+
*/
|
|
10
|
+
export interface SchedulerTaskProps extends Item {
|
|
11
|
+
/** @hidden */
|
|
12
|
+
_ref: React.RefObject<SchedulerTaskHandle | null>;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the `id` of the wrapping element of the SchedulerTask.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the `tabIndex` attribute of the wrapping element of the SchedulerTask.
|
|
19
|
+
*/
|
|
20
|
+
tabIndex?: number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the `className` attribute of the wrapping element of the SchedulerTask.
|
|
23
|
+
*
|
|
24
|
+
* The SchedulerSlot applies the following default className:
|
|
25
|
+
* - `k-task`
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the `style` object of the wrapping element of the SchedulerTask.
|
|
30
|
+
*/
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the `children` of the SchedulerTask.
|
|
34
|
+
*
|
|
35
|
+
* Setting this property will override the default elements rendered by the SchedulerTask.
|
|
36
|
+
*/
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Overrides the `editable` prop of the `Scheduler` and the active view.
|
|
40
|
+
*/
|
|
41
|
+
editable?: EditableProp | boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Called when the `delete` icon is clicked.
|
|
44
|
+
*
|
|
45
|
+
* The `delete` icon is rendered only when `props.editable` or `props.editable.remove` is `true`
|
|
46
|
+
*/
|
|
47
|
+
onRemoveClick?: (event: SchedulerTaskMouseEvent) => void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents the props of the KendoReact [SchedulerTask]({% slug api_scheduler_schedulertask %}) component.
|
|
51
|
+
*/
|
|
52
|
+
export interface SchedulerTaskHandle {
|
|
53
|
+
element: HTMLDivElement | null;
|
|
54
|
+
props: SchedulerTaskProps;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Represents the default `task` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
58
|
+
*
|
|
59
|
+
* The SchedulerTask is the default representation of an event inside the [`AgendaView`]({% slug agenda_view_scheduler %}).
|
|
60
|
+
*/
|
|
61
|
+
export declare const SchedulerTask: React.ForwardRefExoticComponent<SchedulerTaskProps & React.RefAttributes<SchedulerTaskHandle>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { SchedulerTaskProps } from './SchedulerTask';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the props of the KendoReact [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}) component.
|
|
9
|
+
*/
|
|
10
|
+
export interface SchedulerViewTaskProps extends SchedulerTaskProps {
|
|
11
|
+
/**
|
|
12
|
+
* Overrides the default component responsible for visualizing a single task.
|
|
13
|
+
*
|
|
14
|
+
* The default Component is: [SchedulerTask]({% slug api_scheduler_schedulertask %}).
|
|
15
|
+
*/
|
|
16
|
+
task?: React.ComponentType<SchedulerTaskProps>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents the object which is returned from the `ref` callback of the [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %}).
|
|
20
|
+
*
|
|
21
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
22
|
+
*/
|
|
23
|
+
export interface SchedulerViewTaskHandle {
|
|
24
|
+
element: HTMLDivElement | null;
|
|
25
|
+
props: SchedulerViewTaskProps;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the default `viewTask` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
29
|
+
*
|
|
30
|
+
* This is a composite component of the [`SchedulerTask`]({% slug api_scheduler_schedulertask %}).
|
|
31
|
+
*/
|
|
32
|
+
export declare const SchedulerViewTask: React.ForwardRefExoticComponent<SchedulerViewTaskProps & React.RefAttributes<SchedulerViewTaskHandle>>;
|