@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/Scheduler.d.ts
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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, SchedulerView, EditableProp, SchedulerGroup, SchedulerResource, SchedulerModelFields } from './models';
|
|
7
|
-
import { SchedulerHandle } from './models/SchedulerHandle';
|
|
8
|
-
import { SchedulerHeaderProps } from './components/header/SchedulerHeader';
|
|
9
|
-
import { SchedulerTaskProps } from './tasks/SchedulerTask';
|
|
10
|
-
import { SchedulerSlotProps } from './slots/SchedulerSlot';
|
|
11
|
-
import { SchedulerItemProps } from './items/SchedulerItem';
|
|
12
|
-
import { SchedulerEditItemProps } from './items/SchedulerEditItem';
|
|
13
|
-
import { SchedulerViewItemProps } from './items/SchedulerViewItem';
|
|
14
|
-
import { SchedulerViewSlotProps } from './slots/SchedulerViewSlot';
|
|
15
|
-
import { SchedulerEditSlotProps } from './slots/SchedulerEditSlot';
|
|
16
|
-
import { SchedulerFooterProps } from './components/footer/SchedulerFooter';
|
|
17
|
-
import { SchedulerFormProps } from './components/SchedulerForm';
|
|
18
|
-
import { DATA_ACTION } from './constants';
|
|
19
|
-
/**
|
|
20
|
-
* Represents the props of the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
21
|
-
*/
|
|
22
|
-
export interface SchedulerProps {
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the `id` of the wrapping element of the Scheduler.
|
|
25
|
-
*/
|
|
26
|
-
id?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Specifies the `tabIndex` attribute of the wrapping element of the Scheduler.
|
|
29
|
-
*/
|
|
30
|
-
tabIndex?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies the `role` attribute of the Scheduler wrapping element.
|
|
33
|
-
*
|
|
34
|
-
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
35
|
-
*/
|
|
36
|
-
role?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The `aria-labelledby` attribute to be applied to the Scheduler component.
|
|
39
|
-
*
|
|
40
|
-
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
41
|
-
*/
|
|
42
|
-
ariaLabelledby?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The `aria-label` attribute to be applied to the Scheduler component.
|
|
45
|
-
*
|
|
46
|
-
* For more information, refer to the [Scheduler Accessibility Compliance]({% slug accessibility_scheduler %}) article
|
|
47
|
-
*/
|
|
48
|
-
ariaLabel?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Specifies the `style` object of the wrapping element of the Scheduler.
|
|
51
|
-
*/
|
|
52
|
-
style?: React.CSSProperties;
|
|
53
|
-
/**
|
|
54
|
-
* Specifies the `className` attribute of the wrapping element of the Scheduler.
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Overrides the default item. Specifying the `item` property of a specific view will override this property.
|
|
59
|
-
*
|
|
60
|
-
* The default component is: [SchedulerItem]({% slug api_scheduler_scheduleritem %})
|
|
61
|
-
*
|
|
62
|
-
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
63
|
-
*/
|
|
64
|
-
item?: React.ComponentType<SchedulerItemProps>;
|
|
65
|
-
/**
|
|
66
|
-
* Overrides the default viewItem. Specifying the `viewItem` property of a specific view will override this property.
|
|
67
|
-
*
|
|
68
|
-
* The default component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %})
|
|
69
|
-
*
|
|
70
|
-
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
71
|
-
*/
|
|
72
|
-
viewItem?: React.ComponentType<SchedulerViewItemProps>;
|
|
73
|
-
/**
|
|
74
|
-
* Overrides the default editItem. Specifying the `editItem` property of a specific view will override this property.
|
|
75
|
-
*
|
|
76
|
-
* The default component is: [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %})
|
|
77
|
-
*
|
|
78
|
-
* For more information on customizing the scheduler items, refer to the [Item Customization]({% slug overview_items_scheduler %}) article.
|
|
79
|
-
*/
|
|
80
|
-
editItem?: React.ComponentType<SchedulerEditItemProps>;
|
|
81
|
-
/**
|
|
82
|
-
* Overrides the default task. Specifying the `task` property of a specific view will override this property.
|
|
83
|
-
* Currently, the `task` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
84
|
-
*
|
|
85
|
-
* The default component is: [SchedulerTask]({% slug api_scheduler_schedulertask %})
|
|
86
|
-
*
|
|
87
|
-
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
88
|
-
*/
|
|
89
|
-
task?: React.ComponentType<SchedulerTaskProps>;
|
|
90
|
-
/**
|
|
91
|
-
* Overrides the default viewTask. Specifying the `viewTask` property of a specific view will override this property.
|
|
92
|
-
* Currently, the `viewTask` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
93
|
-
*
|
|
94
|
-
* The default component is: [SchedulerViewTask]({% slug api_scheduler_schedulerviewtask %})
|
|
95
|
-
*
|
|
96
|
-
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
97
|
-
*/
|
|
98
|
-
viewTask?: React.ComponentType<SchedulerTaskProps>;
|
|
99
|
-
/**
|
|
100
|
-
* Overrides the default editTask. Specifying the `editTask` property of a specific view will override this property.
|
|
101
|
-
* Currently, the `viewTask` is being used in the [AgendaView]({% slug agenda_view_scheduler %}) only.
|
|
102
|
-
*
|
|
103
|
-
* The default component is: [SchedulerEditTask]({% slug api_scheduler_scheduleredittask %})
|
|
104
|
-
*
|
|
105
|
-
* For more information on customizing the scheduler tasks, refer to the [Task Customization]({% slug overview_tasks_scheduler %}) article.
|
|
106
|
-
*/
|
|
107
|
-
editTask?: React.ComponentType<SchedulerTaskProps>;
|
|
108
|
-
/**
|
|
109
|
-
* Overrides the default header component of the Scheduler.
|
|
110
|
-
*
|
|
111
|
-
* The default component is: [SchedulerHeader]({% slug api_scheduler_schedulerheader %})
|
|
112
|
-
*
|
|
113
|
-
* For more information on customizing the scheduler header, refer to the [Header Customization]({% slug overview_header_footer_scheduler %}) article.
|
|
114
|
-
*/
|
|
115
|
-
header?: React.ComponentType<SchedulerHeaderProps>;
|
|
116
|
-
/**
|
|
117
|
-
* Overrides the default footer component of the Scheduler.
|
|
118
|
-
*
|
|
119
|
-
* The default component is: [Scheduler]({% slug api_scheduler_schedulerfooter %})
|
|
120
|
-
*
|
|
121
|
-
* For more information on customizing the scheduler footer, refer to the [Footer Customization]({% slug overview_header_footer_scheduler %}) article.
|
|
122
|
-
*/
|
|
123
|
-
footer?: React.ComponentType<SchedulerFooterProps>;
|
|
124
|
-
/**
|
|
125
|
-
* Overrides the default slot component. Specifying the `slot` property of a specific view will override this property.
|
|
126
|
-
*
|
|
127
|
-
* The default component is: [SchedulerSlot]({% slug api_scheduler_schedulerslot %})
|
|
128
|
-
*
|
|
129
|
-
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
130
|
-
*/
|
|
131
|
-
slot?: React.ComponentType<SchedulerSlotProps>;
|
|
132
|
-
/**
|
|
133
|
-
* Overrides the default viewSlot component. Specifying the `viewSlot` property of a specific view will override this property.
|
|
134
|
-
*
|
|
135
|
-
* The default component is: [SchedulerViewSlot]({% slug api_scheduler_schedulerviewslot %})
|
|
136
|
-
*
|
|
137
|
-
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
138
|
-
*/
|
|
139
|
-
viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
|
|
140
|
-
/**
|
|
141
|
-
* Overrides the default editSlot component. Specifying the `editSlot` property of a specific view will override this property.
|
|
142
|
-
*
|
|
143
|
-
* The default component is: [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %})
|
|
144
|
-
*
|
|
145
|
-
* For more information on customizing the scheduler slots, refer to the [Slot Customization]({% slug overview_slots_scheduler %}) article.
|
|
146
|
-
*/
|
|
147
|
-
editSlot?: React.ComponentType<SchedulerEditSlotProps>;
|
|
148
|
-
/** @hidden */
|
|
149
|
-
form?: React.ComponentType<SchedulerFormProps>;
|
|
150
|
-
/**
|
|
151
|
-
* Sets the currently selected view. The value is matched with the `name` property of the view.
|
|
152
|
-
*/
|
|
153
|
-
view?: string;
|
|
154
|
-
/**
|
|
155
|
-
* Sets the data of the Scheduler component. The data is then parsed and rendered as a visual Scheduler items.
|
|
156
|
-
*/
|
|
157
|
-
data?: DataItem[];
|
|
158
|
-
/**
|
|
159
|
-
* Sets if the Scheduler component is editable. The value can be either a `boolean` or an Object to specify different types of editing.
|
|
160
|
-
*/
|
|
161
|
-
editable?: EditableProp | boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Sets the initially selected view.
|
|
164
|
-
*
|
|
165
|
-
* For more information refer to the [Scheduler Views]({% slug views_scheduler %}) article.
|
|
166
|
-
*
|
|
167
|
-
* Sets the initially selected view. The available values are:
|
|
168
|
-
* * `day`
|
|
169
|
-
* * `week`
|
|
170
|
-
* * `month`
|
|
171
|
-
* * `agenda`
|
|
172
|
-
* * `timeline`
|
|
173
|
-
*/
|
|
174
|
-
defaultView?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Sets the current selected `Date`. The current selected date is passed to the selected view and transformed in to a range.
|
|
177
|
-
*/
|
|
178
|
-
date?: Date;
|
|
179
|
-
/**
|
|
180
|
-
* Sets a default selected `Date`. The `defaultDate` property is used to specify the initial rendered date, while still remaining in an uncontrolled mode.
|
|
181
|
-
*/
|
|
182
|
-
defaultDate?: Date;
|
|
183
|
-
/**
|
|
184
|
-
* Force a `rtl` mode. For more information refer to [RTL Support]({% slug globalization_scheduler %}#toc-right-to-left-support)
|
|
185
|
-
*/
|
|
186
|
-
rtl?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Sets the `height` of the Scheduler.
|
|
189
|
-
*/
|
|
190
|
-
height?: number | string;
|
|
191
|
-
/**
|
|
192
|
-
* Specify the available `view` components as `children` and the Scheduler will match the currently selected view and render it.
|
|
193
|
-
*/
|
|
194
|
-
children?: SchedulerView[] | SchedulerView;
|
|
195
|
-
/**
|
|
196
|
-
* Specifies the id of the timezone that will be displayed in the Scheduler.
|
|
197
|
-
* For example, `Europe/Sofia`.
|
|
198
|
-
*
|
|
199
|
-
* Defaults to `Etc/UTC`.
|
|
200
|
-
*/
|
|
201
|
-
timezone?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Specifies the groups of the Scheduler.
|
|
204
|
-
*/
|
|
205
|
-
group?: SchedulerGroup;
|
|
206
|
-
/**
|
|
207
|
-
* Specifies the resources of the Scheduler.
|
|
208
|
-
*/
|
|
209
|
-
resources?: SchedulerResource[];
|
|
210
|
-
/**
|
|
211
|
-
* The names of the model fields from which the Scheduler will read its data
|
|
212
|
-
* ([see example]({% slug data_binding_scheduler %})).
|
|
213
|
-
*/
|
|
214
|
-
modelFields?: SchedulerModelFields;
|
|
215
|
-
/**
|
|
216
|
-
* Called when new `date` is selected.
|
|
217
|
-
*/
|
|
218
|
-
onDateChange?: (args: SchedulerDateChangeEvent) => void;
|
|
219
|
-
/**
|
|
220
|
-
* Called when new `view` is selected. [(see example)]({% slug views_scheduler %}#toc-controlling-the-selected-view)
|
|
221
|
-
*/
|
|
222
|
-
onViewChange?: (args: SchedulerViewChangeEvent) => void;
|
|
223
|
-
/**
|
|
224
|
-
* Called each time when editing occurs.
|
|
225
|
-
* To enable editing set the `editable` property to `true` or an [`EditableProp`]({% slug api_scheduler_editableprop %})
|
|
226
|
-
*
|
|
227
|
-
* For more information refer to the [Scheduler Editing]({% slug editing_scheduler %}) article.
|
|
228
|
-
*/
|
|
229
|
-
onDataChange?: (event: SchedulerDataChangeEvent) => void;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Specifies the action which can be dispatched through the [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
|
|
233
|
-
*
|
|
234
|
-
* For more information refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
235
|
-
*/
|
|
236
|
-
export interface DataAction {
|
|
237
|
-
/**
|
|
238
|
-
* The `type` of the action. The available types are:
|
|
239
|
-
* - `create`
|
|
240
|
-
* - `update`
|
|
241
|
-
* - `remove`
|
|
242
|
-
*/
|
|
243
|
-
type: DATA_ACTION;
|
|
244
|
-
/**
|
|
245
|
-
* 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`.
|
|
246
|
-
*/
|
|
247
|
-
series: boolean;
|
|
248
|
-
/**
|
|
249
|
-
* Specifies the `dataItem` being edited.
|
|
250
|
-
*/
|
|
251
|
-
dataItem: DataItem;
|
|
252
|
-
}
|
|
253
|
-
/** @hidden */
|
|
254
|
-
export interface DateChangeEvent {
|
|
255
|
-
target: any;
|
|
256
|
-
syntheticEvent: React.SyntheticEvent;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Called every time the user changes the selected `date`.
|
|
260
|
-
* The value is a JavaScript `Date` object.
|
|
261
|
-
* For more information, refer to the article on
|
|
262
|
-
* [date selection]({% slug date_selection_scheduler %}).
|
|
263
|
-
*/
|
|
264
|
-
export interface SchedulerDateChangeEvent {
|
|
265
|
-
value: Date;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Called every time the user changes the provided `data`.
|
|
269
|
-
*
|
|
270
|
-
* For more information, refer to the [Scheduler Data Binding]({% slug data_binding_scheduler %}) article.
|
|
271
|
-
*/
|
|
272
|
-
export interface SchedulerDataChangeEvent {
|
|
273
|
-
created: DataItem[];
|
|
274
|
-
updated: DataItem[];
|
|
275
|
-
deleted: DataItem[];
|
|
276
|
-
}
|
|
277
|
-
/** @hidden */
|
|
278
|
-
export interface ActiveViewNameChangeEvent {
|
|
279
|
-
syntheticEvent: React.SyntheticEvent;
|
|
280
|
-
target: any;
|
|
281
|
-
}
|
|
282
|
-
/**
|
|
283
|
-
* Called every time the user changes the active `view`.
|
|
284
|
-
*
|
|
285
|
-
* For more information, refer to the [Scheduler Views]({% slug views_scheduler %}) article.
|
|
286
|
-
*/
|
|
287
|
-
export interface SchedulerViewChangeEvent {
|
|
288
|
-
value: string;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Represents the [KendoReact Scheduler component]({% slug overview_scheduler %})
|
|
292
|
-
*
|
|
293
|
-
* @example
|
|
294
|
-
* ```jsx
|
|
295
|
-
* const currentYear = new Date().getFullYear();
|
|
296
|
-
* const parseAdjust = (eventDate) => {
|
|
297
|
-
* const date = new Date(eventDate);
|
|
298
|
-
* date.setFullYear(currentYear);
|
|
299
|
-
* return date;
|
|
300
|
-
* };
|
|
301
|
-
*
|
|
302
|
-
* const baseData = [
|
|
303
|
-
* {
|
|
304
|
-
* TaskID: 4,
|
|
305
|
-
* OwnerID: 2,
|
|
306
|
-
* Title: 'Bowling tournament',
|
|
307
|
-
* Description: '',
|
|
308
|
-
* StartTimezone: null,
|
|
309
|
-
* Start: '2013-06-09T21:00:00.000Z',
|
|
310
|
-
* End: '2013-06-10T00:00:00.000Z',
|
|
311
|
-
* EndTimezone: null,
|
|
312
|
-
* RecurrenceRule: null,
|
|
313
|
-
* RecurrenceID: null,
|
|
314
|
-
* RecurrenceException: null,
|
|
315
|
-
* isAllDay: false,
|
|
316
|
-
* },
|
|
317
|
-
* {
|
|
318
|
-
* TaskID: 5,
|
|
319
|
-
* OwnerID: 2,
|
|
320
|
-
* Title: 'Take the dog to the vet',
|
|
321
|
-
* Description: '',
|
|
322
|
-
* StartTimezone: null,
|
|
323
|
-
* Start: '2013-06-10T07:00:00.000Z',
|
|
324
|
-
* End: '2013-06-10T08:00:00.000Z',
|
|
325
|
-
* EndTimezone: null,
|
|
326
|
-
* RecurrenceRule: null,
|
|
327
|
-
* RecurrenceID: null,
|
|
328
|
-
* RecurrenceException: null,
|
|
329
|
-
* isAllDay: false,
|
|
330
|
-
* },
|
|
331
|
-
* ];
|
|
332
|
-
*
|
|
333
|
-
* const sampleData = baseData.map((dataItem) => ({
|
|
334
|
-
* id: dataItem.TaskID,
|
|
335
|
-
* start: parseAdjust(dataItem.Start),
|
|
336
|
-
* startTimezone: dataItem.startTimezone,
|
|
337
|
-
* end: parseAdjust(dataItem.End),
|
|
338
|
-
* endTimezone: dataItem.endTimezone,
|
|
339
|
-
* isAllDay: dataItem.isAllDay,
|
|
340
|
-
* title: dataItem.Title,
|
|
341
|
-
* description: dataItem.Description,
|
|
342
|
-
* recurrenceRule: dataItem.RecurrenceRule,
|
|
343
|
-
* recurrenceExceptions: dataItem.RecurrenceException,
|
|
344
|
-
* roomId: dataItem.RoomID,
|
|
345
|
-
* ownerID: dataItem.OwnerID,
|
|
346
|
-
* personId: dataItem.OwnerID,
|
|
347
|
-
* }));
|
|
348
|
-
*
|
|
349
|
-
* const App = () => {
|
|
350
|
-
* return (
|
|
351
|
-
* <Scheduler data={sampleData}>
|
|
352
|
-
* <AgendaView />
|
|
353
|
-
* <DayView />
|
|
354
|
-
* <WeekView />
|
|
355
|
-
* <MonthView />
|
|
356
|
-
* </Scheduler>
|
|
357
|
-
* );
|
|
358
|
-
* };
|
|
359
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
360
|
-
* ```
|
|
361
|
-
*/
|
|
362
|
-
export declare const Scheduler: React.ForwardRefExoticComponent<SchedulerProps & React.RefAttributes<SchedulerHandle | null>>;
|
|
363
|
-
export declare const schedulerDefaultProps: {
|
|
364
|
-
data: never[];
|
|
365
|
-
height: number;
|
|
366
|
-
tabIndex: number;
|
|
367
|
-
editable: boolean;
|
|
368
|
-
defaultDate: Date;
|
|
369
|
-
header: React.ForwardRefExoticComponent<SchedulerHeaderProps & React.RefAttributes<import("./components/header/SchedulerHeader").SchedulerHeaderHandle>>;
|
|
370
|
-
footer: React.ForwardRefExoticComponent<SchedulerFooterProps & React.RefAttributes<import("./components/footer/SchedulerFooter").SchedulerFooterHandle>>;
|
|
371
|
-
navigation: React.ForwardRefExoticComponent<import("./components/header/navigation/SchedulerNavigation").SchedulerNavigationProps & React.RefAttributes<import("./components/header/navigation/SchedulerNavigation").SchedulerNavigationHandle>>;
|
|
372
|
-
viewSelector: React.ForwardRefExoticComponent<import("./components/header/view-selector/SchedulerViewSelector").SchedulerViewSelectorProps & React.RefAttributes<import("./components/header/view-selector/SchedulerViewSelector").SchedulerViewSelectorHandle>>;
|
|
373
|
-
};
|
package/components/BaseView.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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 { Range, SchedulerViewProps } from '../models';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface BaseViewProps {
|
|
11
|
-
props: SchedulerViewProps;
|
|
12
|
-
slots: any[];
|
|
13
|
-
ranges: Range[];
|
|
14
|
-
id?: string;
|
|
15
|
-
className?: string;
|
|
16
|
-
style?: React.CSSProperties;
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare const BaseView: React.ForwardRefExoticComponent<BaseViewProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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
|
-
type CurrentTimeMarkerProps = {
|
|
7
|
-
updateInterval?: number;
|
|
8
|
-
groupIndex?: number | null;
|
|
9
|
-
vertical?: boolean;
|
|
10
|
-
attachArrow?: React.RefObject<HTMLElement>;
|
|
11
|
-
};
|
|
12
|
-
/** @hidden */
|
|
13
|
-
export declare const CurrentTimeMarker: (props: CurrentTimeMarkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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 { DateFormatOptions } from '@progress/kendo-react-intl';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the properties of [DateHeaderCell]({% slug api_scheduler_dateheadercell %}) component.
|
|
9
|
-
*/
|
|
10
|
-
export interface DateHeaderCellProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
-
/** @hidden */
|
|
12
|
-
as?: React.ComponentType<DateHeaderCellProps>;
|
|
13
|
-
/**
|
|
14
|
-
* Represents the date format.
|
|
15
|
-
*/
|
|
16
|
-
format?: string | DateFormatOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Represents the current date.
|
|
19
|
-
*/
|
|
20
|
-
date: Date;
|
|
21
|
-
/**
|
|
22
|
-
* Represents the start date.
|
|
23
|
-
*/
|
|
24
|
-
start: Date;
|
|
25
|
-
/**
|
|
26
|
-
* Represents the end date.
|
|
27
|
-
*/
|
|
28
|
-
end: Date;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Represents the target(element and props).
|
|
32
|
-
*/
|
|
33
|
-
export interface DateHeaderCellHandle {
|
|
34
|
-
/**
|
|
35
|
-
* The current element or `null` if there is no one.
|
|
36
|
-
*/
|
|
37
|
-
element: HTMLElement | null;
|
|
38
|
-
/**
|
|
39
|
-
* The props values of the DateHeaderCell.
|
|
40
|
-
*/
|
|
41
|
-
props: DateHeaderCellProps;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Represents the DateHeaderCell component.
|
|
45
|
-
*/
|
|
46
|
-
export declare const DateHeaderCell: React.ForwardRefExoticComponent<DateHeaderCellProps & React.RefAttributes<DateHeaderCellHandle | null>>;
|
|
47
|
-
export declare const dateHeaderCellDefaultProps: {
|
|
48
|
-
as: React.ForwardRefExoticComponent<DateHeaderCellProps & React.RefAttributes<unknown>>;
|
|
49
|
-
format: string;
|
|
50
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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 { FormProps, FormRenderProps } from '@progress/kendo-react-form';
|
|
7
|
-
import { DialogProps } from '@progress/kendo-react-dialogs';
|
|
8
|
-
import { DataItem } from '../models';
|
|
9
|
-
import { SchedulerFormEditorProps } from '../editors/SchedulerFormEditor';
|
|
10
|
-
import { Omit } from '../models/Omit';
|
|
11
|
-
export interface SchedulerFormStateChangeEvent<T> {
|
|
12
|
-
target: SchedulerFormHandle;
|
|
13
|
-
value: T;
|
|
14
|
-
syntheticEvent: React.SyntheticEvent;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Represents the props of the KendoReact [SchedulerForm]({% slug api_scheduler_schedulerform %}) component.
|
|
18
|
-
*/
|
|
19
|
-
export interface SchedulerFormProps extends Omit<FormProps, 'render' | 'onSubmit'> {
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the `dataItem` to be visualized inside the form.
|
|
22
|
-
*/
|
|
23
|
-
dataItem: DataItem;
|
|
24
|
-
/**
|
|
25
|
-
* The Form content that will be rendered. The default rendering includes a `dialog` and `editor`.
|
|
26
|
-
*
|
|
27
|
-
* For more information about customizing some parts of the default rendering please refer to the [SchedulerForm Customization]({% slug overview_customization_form_scheduler %}) article.
|
|
28
|
-
*/
|
|
29
|
-
render?: (props: FormRenderProps) => any;
|
|
30
|
-
/**
|
|
31
|
-
* Called when the `cancel` button is clicked.
|
|
32
|
-
*/
|
|
33
|
-
onCancel?: (event: SchedulerFormStateChangeEvent<null>) => void;
|
|
34
|
-
/**
|
|
35
|
-
* Called when the `close` button is clicked.
|
|
36
|
-
*/
|
|
37
|
-
onClose?: (event: SchedulerFormStateChangeEvent<null>) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Called when the `submit` button is clicked.
|
|
40
|
-
*/
|
|
41
|
-
onSubmit: (event: SchedulerFormStateChangeEvent<any>) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Overrides the component used for visualizing the `editor`.
|
|
44
|
-
* The [SchedulerFormEditor]({% slug api_scheduler_schedulerFormEditor %}) component is used, by default.
|
|
45
|
-
*
|
|
46
|
-
* For more information, please refer to the [`Scheduler Form Customization`]({% slug overview_customization_form_scheduler %}) article.
|
|
47
|
-
*/
|
|
48
|
-
editor?: React.ComponentType<SchedulerFormEditorProps>;
|
|
49
|
-
/**
|
|
50
|
-
* Overrides the component used for visualizing the `dialog`.
|
|
51
|
-
* The [KendoReact Dialog]({% slug api_dialogs_dialog %}) component is used, by default.
|
|
52
|
-
*
|
|
53
|
-
* For more information, please refer to the [`Scheduler Form Customization`]({% slug overview_customization_form_scheduler %}) article.
|
|
54
|
-
*/
|
|
55
|
-
dialog?: React.ComponentType<DialogProps>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Represent the `ref` of the SchedulerForm component.
|
|
59
|
-
*/
|
|
60
|
-
export interface SchedulerFormHandle {
|
|
61
|
-
/**
|
|
62
|
-
* Represents the properties passed to the current instance of the `SchedulerForm`.
|
|
63
|
-
*/
|
|
64
|
-
props: SchedulerFormProps;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Represents the default `form` component rendered by the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}) and [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) components.
|
|
68
|
-
*
|
|
69
|
-
* Accepts [SchedulerFormProps]({ slug api_scheduler_schedulerformprops }) properties and provide [SchedulerFormHandle]({% slug api_scheduler_schedulerformhandle %}) `ref` callback.
|
|
70
|
-
*/
|
|
71
|
-
export declare const SchedulerForm: React.ForwardRefExoticComponent<SchedulerFormProps & React.RefAttributes<SchedulerFormHandle | null>>;
|
|
72
|
-
export declare const schedulerFormDefaultProps: {
|
|
73
|
-
dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<any>>;
|
|
74
|
-
validator: () => {};
|
|
75
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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
|
-
export interface SchedulerOccurrenceDialogStateChangeEvent<T> {
|
|
8
|
-
target: SchedulerOccurrenceDialogHandle;
|
|
9
|
-
value: T;
|
|
10
|
-
syntheticEvent: React.SyntheticEvent;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents the props of the KendoReact [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}) component.
|
|
14
|
-
*/
|
|
15
|
-
export interface SchedulerOccurrenceDialogProps {
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the `DataItem` currently being edited.
|
|
18
|
-
*/
|
|
19
|
-
dataItem: DataItem;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies if the dialog is for `remove` or `edit` action.
|
|
22
|
-
*/
|
|
23
|
-
isRemove?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Called when the `close` button is clicked.
|
|
26
|
-
*/
|
|
27
|
-
onClose: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Called when the `series` button is clicked.
|
|
30
|
-
*/
|
|
31
|
-
onSeriesClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Called when the `occurrence` button is clicked.
|
|
34
|
-
*/
|
|
35
|
-
onOccurrenceClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Represent the `ref` of the SchedulerOccurrenceDialog component.
|
|
39
|
-
*/
|
|
40
|
-
export type SchedulerOccurrenceDialogHandle = {
|
|
41
|
-
props: SchedulerOccurrenceDialogProps;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Represents the default `occurrenceDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
|
|
45
|
-
*/
|
|
46
|
-
export declare const SchedulerOccurrenceDialog: React.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React.RefAttributes<SchedulerOccurrenceDialogHandle | null>>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 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
|
-
export interface SchedulerRemoveDialogStateChangeEvent<T> {
|
|
8
|
-
target: SchedulerRemoveDialogHandle;
|
|
9
|
-
value: T;
|
|
10
|
-
syntheticEvent: React.SyntheticEvent;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Represents the props of the KendoReact [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}) component.
|
|
14
|
-
*/
|
|
15
|
-
export interface SchedulerRemoveDialogProps {
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the `DataItem` currently being deleted.
|
|
18
|
-
*/
|
|
19
|
-
dataItem: DataItem;
|
|
20
|
-
/**
|
|
21
|
-
* Called when the `close` button is clicked.
|
|
22
|
-
*/
|
|
23
|
-
onClose?: (event: SchedulerRemoveDialogStateChangeEvent<null>) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Called when the `cancel` button is clicked.
|
|
26
|
-
*/
|
|
27
|
-
onCancel?: (event: SchedulerRemoveDialogStateChangeEvent<null>) => void;
|
|
28
|
-
/**
|
|
29
|
-
* Called when the `confirm` button is clicked.
|
|
30
|
-
*/
|
|
31
|
-
onConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Represent the `ref` of the SchedulerOccurrenceDialog component.
|
|
35
|
-
*/
|
|
36
|
-
export type SchedulerRemoveDialogHandle = {
|
|
37
|
-
props: SchedulerRemoveDialogProps;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Represents the default `removeDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
|
|
41
|
-
*/
|
|
42
|
-
export declare const SchedulerRemoveDialog: React.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React.RefAttributes<SchedulerRemoveDialogHandle | null>>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { Slot } from '../models';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface ShowMoreItemsButtonMouseEvent {
|
|
11
|
-
syntheticEvent: React.MouseEvent;
|
|
12
|
-
target: ShowMoreItemsButtonHandle;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export interface ShowMoreItemsButtonProps {
|
|
18
|
-
slot?: Slot;
|
|
19
|
-
onClick?: (event: ShowMoreItemsButtonMouseEvent) => void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export interface ShowMoreItemsButtonHandle extends ShowMoreItemsButtonProps {
|
|
25
|
-
element: HTMLButtonElement | null;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export declare const ShowMoreItemsButton: React.ForwardRefExoticComponent<ShowMoreItemsButtonProps & React.RefAttributes<ShowMoreItemsButtonHandle>>;
|