@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
|
@@ -1,28 +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 { SchedulerSlotHandle } from '../slots/SchedulerSlot';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the available `action` types for the `SchedulerSlotsSelectAction` objects.
|
|
9
|
-
*
|
|
10
|
-
* The available actions are:
|
|
11
|
-
* - `SLOTS_SELECT_SELECT`
|
|
12
|
-
* - `SLOTS_SELECT_RESET`
|
|
13
|
-
* - `SLOTS_SELECT_ADD`
|
|
14
|
-
*/
|
|
15
|
-
export declare enum SLOTS_SELECT_ACTION {
|
|
16
|
-
select = "SLOTS_SELECT_SELECT",
|
|
17
|
-
reset = "SLOTS_SELECT_RESET",
|
|
18
|
-
add = "SLOTS_SELECT_ADD"
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the object passed to the `slots-select` reducer.
|
|
22
|
-
*/
|
|
23
|
-
export interface SchedulerSlotsSelectAction {
|
|
24
|
-
type: SLOTS_SELECT_ACTION;
|
|
25
|
-
slot?: React.RefObject<SchedulerSlotHandle>;
|
|
26
|
-
}
|
|
27
|
-
/** @hidden */
|
|
28
|
-
export declare const useSlotsSelection: (_slots: React.RefObject<SchedulerSlotHandle>[]) => [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsSelectAction) => void];
|
|
@@ -1,15 +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
|
-
/** @hidden */
|
|
7
|
-
export interface AsyncMouseEnterLeaveArgs {
|
|
8
|
-
handleMouseEnter: (event: React.MouseEvent<any>) => void;
|
|
9
|
-
handleMouseLeave: (event: React.MouseEvent<any>) => void;
|
|
10
|
-
}
|
|
11
|
-
/** @hidden */
|
|
12
|
-
export declare const useAsyncMouseEnterLeave: ({ handleMouseEnter, handleMouseLeave }: AsyncMouseEnterLeaveArgs) => {
|
|
13
|
-
onMouseEnter: (event: React.MouseEvent<any>) => void;
|
|
14
|
-
onMouseLeave: (event: React.MouseEvent<any>) => void;
|
|
15
|
-
};
|
package/hooks/useCellSync.d.ts
DELETED
|
@@ -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
|
-
/** @hidden */
|
|
7
|
-
export interface CellSyncArgs {
|
|
8
|
-
element: React.RefObject<any>;
|
|
9
|
-
selector: string;
|
|
10
|
-
attribute?: string;
|
|
11
|
-
explicitDepth: boolean;
|
|
12
|
-
}
|
|
13
|
-
/** @hidden */
|
|
14
|
-
export declare const useCellSync: (args: CellSyncArgs, inputs?: any[]) => void;
|
|
@@ -1,17 +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
|
-
/** @hidden */
|
|
7
|
-
export type ControlledStateHook<T> = [
|
|
8
|
-
T,
|
|
9
|
-
(value: T, event?: React.SyntheticEvent | {
|
|
10
|
-
target: any;
|
|
11
|
-
syntheticEvent: React.SyntheticEvent;
|
|
12
|
-
} | {
|
|
13
|
-
preventDefault: any;
|
|
14
|
-
}) => void
|
|
15
|
-
];
|
|
16
|
-
/** @hidden */
|
|
17
|
-
export declare const useControlledState: <T extends unknown>(defaultProp: T, prop?: T | undefined, callback?: any) => ControlledStateHook<T>;
|
package/hooks/useEditable.d.ts
DELETED
|
@@ -1,7 +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 { EditableProp } from '../models';
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export declare const useEditable: (editable?: EditableProp | boolean) => EditableProp;
|
|
@@ -1,6 +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
|
-
/** @hidden */
|
|
6
|
-
export declare const usePropOrState: <S extends unknown>(prop?: any, defaultValue?: any) => [S, any];
|
package/hooks/useRowSync.d.ts
DELETED
|
@@ -1,15 +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
|
-
/** @hidden */
|
|
6
|
-
export interface RowSyncArgs {
|
|
7
|
-
element: HTMLElement;
|
|
8
|
-
selector: string;
|
|
9
|
-
horizontalAttribute: string;
|
|
10
|
-
verticalAttribute: string;
|
|
11
|
-
applyTo: string;
|
|
12
|
-
syncHeight?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/** @hidden */
|
|
15
|
-
export declare const useRowSync: (args: RowSyncArgs, inputs?: any[]) => void;
|
|
@@ -1,11 +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 { SchedulerItemHandle, SchedulerItemProps } from '../items/SchedulerItem';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export declare const useSchedulerItem: (props: SchedulerItemProps, ref?: React.Ref<SchedulerItemHandle | null>) => {
|
|
9
|
-
item: React.RefObject<SchedulerItemHandle>;
|
|
10
|
-
element: React.RefObject<HTMLDivElement>;
|
|
11
|
-
};
|
|
@@ -1,11 +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 { SchedulerSlotHandle, SchedulerSlotProps } from '../slots/SchedulerSlot';
|
|
7
|
-
/** @hidden */
|
|
8
|
-
export declare const useSchedulerSlot: (props: SchedulerSlotProps, ref: React.Ref<SchedulerSlotHandle | null>) => {
|
|
9
|
-
slot: React.RefObject<SchedulerSlotHandle>;
|
|
10
|
-
element: React.RefObject<HTMLDivElement>;
|
|
11
|
-
};
|
package/hooks/useSlotExpand.d.ts
DELETED
|
@@ -1,9 +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 { SchedulerSlotHandle } from '../slots/SchedulerSlot';
|
|
7
|
-
import { SchedulerSlotExpandableConfig } from '../slots/SchedulerViewSlot';
|
|
8
|
-
/** @hidden */
|
|
9
|
-
export declare const useSlotExpand: (slot: React.RefObject<SchedulerSlotHandle>, config?: boolean | SchedulerSlotExpandableConfig) => void;
|
package/hooks/useWorkHours.d.ts
DELETED
|
@@ -1,6 +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
|
-
/** @hidden */
|
|
6
|
-
export declare const useWorkHours: (showWorkHours?: boolean, defaultShowWorkHours?: boolean) => any[];
|
|
@@ -1,417 +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, SchedulerItemDragEvent, SchedulerItemMouseEvent, SchedulerItemKeyboardEvent, SchedulerItemFocusEvent } from '../models';
|
|
7
|
-
import { SchedulerOccurrenceDialogProps, SchedulerOccurrenceDialogStateChangeEvent } from '../components/SchedulerOccurrenceDialog';
|
|
8
|
-
import { SchedulerFormProps, SchedulerFormStateChangeEvent } from '../components/SchedulerForm';
|
|
9
|
-
import { SchedulerRemoveDialogProps, SchedulerRemoveDialogStateChangeEvent } from '../components/SchedulerRemoveDialog';
|
|
10
|
-
import { DataAction } from '../Scheduler';
|
|
11
|
-
import { SchedulerDragProps } from '../views/common/SchedulerDrag';
|
|
12
|
-
import { SchedulerResizeProps } from '../views/common/SchedulerResize';
|
|
13
|
-
import { SchedulerViewItemProps } from './SchedulerViewItem';
|
|
14
|
-
import { SchedulerItemsFocusAction, SchedulerSlotsFocusAction } from '../hooks';
|
|
15
|
-
import { FORM_ITEM_ACTION, SchedulerItemFormItemAction } from './hooks/use-form-item';
|
|
16
|
-
import { SchedulerItemShowOccurrenceDialogAction, SHOW_OCCURRENCE_DIALOG_ACTION } from './hooks/use-show-occurrence-dialog';
|
|
17
|
-
import { REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction } from './hooks/use-remove-item';
|
|
18
|
-
import { SchedulerItemShowRemoveDialogAction, SHOW_REMOVE_DIALOG_ACTION } from './hooks/use-show-remove-item-dialog';
|
|
19
|
-
import { DRAG_ITEM_ACTION, SchedulerItemDragItemAction } from './hooks/use-drag-item';
|
|
20
|
-
import { RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction } from './hooks/use-resize-item';
|
|
21
|
-
import { SchedulerItemSeriesAction } from './hooks/use-series';
|
|
22
|
-
import { SchedulerItemsSelectAction } from '../hooks/use-items-selection';
|
|
23
|
-
import { SchedulerSlotsSelectAction } from '../hooks/use-slots-selection';
|
|
24
|
-
export interface SchedulerEditItemStateChangeEvent<T> {
|
|
25
|
-
value: T;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Represents the available SchedulerEditItem` actions.
|
|
29
|
-
*
|
|
30
|
-
* Can be one of:
|
|
31
|
-
* - [SchedulerItemDragItemAction]({% slug api_scheduler_scheduleritemdragitemaction %})
|
|
32
|
-
* - [SchedulerItemResizeItemAction]({% slug api_scheduler_scheduleritemresizeitemaction %})
|
|
33
|
-
* - [SchedulerItemRemoveItemAction]({% slug api_scheduler_scheduleritemremoveitemaction %})
|
|
34
|
-
* - [SchedulerItemShowRemoveDialogAction]({% slug api_scheduler_scheduleritemshowremovedialogaction %})
|
|
35
|
-
* - [SchedulerItemShowOccurrenceDialogAction]({% slug api_scheduler_scheduleritemshowoccurrencedialogaction %})
|
|
36
|
-
* - [SchedulerItemSeriesAction]({% slug api_scheduler_scheduleritemseriesaction %})
|
|
37
|
-
* - [SchedulerItemsFocusAction]({% slug api_scheduler_scheduleritemsfocusaction %})
|
|
38
|
-
* - [SchedulerItemsSelectAction]({% slug api_scheduler_scheduleritemsselectaction %})
|
|
39
|
-
* - [SchedulerSlotsFocusAction]({% slug api_scheduler_schedulerslotsfocusaction %})
|
|
40
|
-
* - [SchedulerSlotsSelectAction]({% slug api_scheduler_schedulerslotsselectaction %})
|
|
41
|
-
*
|
|
42
|
-
* The following `falsy` values will be ignored:
|
|
43
|
-
* - `null`
|
|
44
|
-
* - `false`
|
|
45
|
-
* - `undefined`
|
|
46
|
-
*/
|
|
47
|
-
export type SchedulerEditItemAction = SchedulerItemFormItemAction | SchedulerItemDragItemAction | SchedulerItemResizeItemAction | SchedulerItemRemoveItemAction | SchedulerItemShowRemoveDialogAction | SchedulerItemShowOccurrenceDialogAction | SchedulerItemSeriesAction | SchedulerItemsFocusAction | SchedulerItemsSelectAction | SchedulerSlotsFocusAction | SchedulerSlotsSelectAction | null | false | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Represents the props of the KendoReact [SchedulerEditItem]() component.
|
|
50
|
-
*/
|
|
51
|
-
export interface SchedulerEditItemProps extends SchedulerViewItemProps {
|
|
52
|
-
/**
|
|
53
|
-
* Overrides the default component responsible for positioning the item inside the view.
|
|
54
|
-
*
|
|
55
|
-
* The default Component is: [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}).
|
|
56
|
-
*/
|
|
57
|
-
viewItem?: React.ComponentType<SchedulerViewItemProps>;
|
|
58
|
-
/**
|
|
59
|
-
* Overrides the default component responsible for visualizing the `dragItem`.
|
|
60
|
-
*
|
|
61
|
-
* The default Component is: [SchedulerDrag]({% slug api_scheduler_schedulerdrag %}).
|
|
62
|
-
*/
|
|
63
|
-
drag?: React.ComponentType<SchedulerDragProps>;
|
|
64
|
-
/**
|
|
65
|
-
* Overrides the default component responsible for visualizing the `resizeItem`.
|
|
66
|
-
*
|
|
67
|
-
* The default Component is: [SchedulerResize]({% slug api_scheduler_schedulerresize %}).
|
|
68
|
-
*/
|
|
69
|
-
resize?: React.ComponentType<SchedulerResizeProps>;
|
|
70
|
-
/**
|
|
71
|
-
* Overrides the default component responsible for visualizing the `formItem`.
|
|
72
|
-
*
|
|
73
|
-
* The default Component is: [SchedulerForm]({% slug api_scheduler_schedulerform %}).
|
|
74
|
-
*/
|
|
75
|
-
form?: React.ComponentType<SchedulerFormProps>;
|
|
76
|
-
/**
|
|
77
|
-
* Overrides the default component responsible for visualizing the `removeItem` and confirming the `remove` action.
|
|
78
|
-
*
|
|
79
|
-
* The default Component is: [SchedulerRemoveDialog]({% slug api_scheduler_schedulerremovedialog %}).
|
|
80
|
-
*/
|
|
81
|
-
removeDialog?: React.ComponentType<SchedulerRemoveDialogProps>;
|
|
82
|
-
/**
|
|
83
|
-
* Overrides the default component responsible for the selection between `occurrence` and `series` edit.
|
|
84
|
-
*
|
|
85
|
-
* The default Component is: [SchedulerOccurrenceDialog]({% slug api_scheduler_scheduleroccurrencedialog %}).
|
|
86
|
-
*/
|
|
87
|
-
occurrenceDialog?: React.ComponentType<SchedulerOccurrenceDialogProps>;
|
|
88
|
-
/**
|
|
89
|
-
* Called when the item has been removed or manipulated though dragging, resizing or an external form.
|
|
90
|
-
*/
|
|
91
|
-
onDataAction?: (action: DataAction, event?: any) => void;
|
|
92
|
-
/**
|
|
93
|
-
* Setting this property will force the `formItem` to be in controlled state, allowing further customization.
|
|
94
|
-
*/
|
|
95
|
-
formItem?: DataItem | null;
|
|
96
|
-
/**
|
|
97
|
-
* Called every time the `formItem` changes.
|
|
98
|
-
*/
|
|
99
|
-
onFormItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
100
|
-
/**
|
|
101
|
-
* Setting this property will force the `dragItem` to be in controlled state, allowing further customization.
|
|
102
|
-
*/
|
|
103
|
-
dragItem?: DataItem | null;
|
|
104
|
-
/**
|
|
105
|
-
* Called every time the `dragItem` changes.
|
|
106
|
-
*/
|
|
107
|
-
onDragItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
108
|
-
/**
|
|
109
|
-
* Setting this property will force the `resizeItem` to be in controlled state, allowing further customization.
|
|
110
|
-
*/
|
|
111
|
-
resizeItem?: DataItem | null;
|
|
112
|
-
/**
|
|
113
|
-
* Called every time the `resize` changes.
|
|
114
|
-
*/
|
|
115
|
-
onResizeItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
116
|
-
/**
|
|
117
|
-
* Setting this property will force the `removeItem` to be in controlled state, allowing further customization.
|
|
118
|
-
*
|
|
119
|
-
* Specifies the DataItem which should be removed from the `data` set.
|
|
120
|
-
* The `removeItem` is passed as property to the `removeDialog` and `occurrenceDialog` component;
|
|
121
|
-
*/
|
|
122
|
-
removeItem?: DataItem | null;
|
|
123
|
-
/**
|
|
124
|
-
* Called every time the `removeItem` changes.
|
|
125
|
-
*/
|
|
126
|
-
onRemoveItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
127
|
-
/**
|
|
128
|
-
* Setting this property will force the `showOccurrenceDialog` to be in controlled state, allowing further control over the display of the `occurrenceDialog` component.
|
|
129
|
-
*/
|
|
130
|
-
showOccurrenceDialog?: boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Called every time the `showOccurrenceDialog` changes.
|
|
133
|
-
*/
|
|
134
|
-
onShowOccurrenceDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
|
|
135
|
-
/**
|
|
136
|
-
* Setting this property will force the `showRemoveDialog` to be in controlled state, allowing further control over the display of the `removeDialog` component.
|
|
137
|
-
*/
|
|
138
|
-
showRemoveDialog?: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Called every time the `showRemoveDialog` changes.
|
|
141
|
-
*/
|
|
142
|
-
onShowRemoveDialogChange?: (event: SchedulerEditItemStateChangeEvent<boolean>) => void;
|
|
143
|
-
/**
|
|
144
|
-
* Indicates if the editing should be applied to the whole `series` or to a single `occurrence` when the item is recurring.
|
|
145
|
-
*
|
|
146
|
-
* By default, the `series` prop is set to `null` and additional selection is done through the `occurrence` dialog.
|
|
147
|
-
* If set ot either `true` or `false`:
|
|
148
|
-
* - `true` — indicates that the editing should always be applied to the whole `series`
|
|
149
|
-
* - `false` — indicates that the editing should always be applied to a single `occurrence`.
|
|
150
|
-
*/
|
|
151
|
-
series?: boolean | null;
|
|
152
|
-
/**
|
|
153
|
-
* Called every time the `series` changes.
|
|
154
|
-
*/
|
|
155
|
-
onSeriesChange?: (event: SchedulerEditItemStateChangeEvent<boolean | null>) => void;
|
|
156
|
-
/**
|
|
157
|
-
* Called whenever the `occurence` option is selected from the `OccurrenceDialog`.
|
|
158
|
-
*/
|
|
159
|
-
onOccurrenceClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
|
|
160
|
-
/**
|
|
161
|
-
* An action callback. Used to define the component behavior on occurrence click.
|
|
162
|
-
*
|
|
163
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
164
|
-
*/
|
|
165
|
-
onOccurrenceClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
166
|
-
/**
|
|
167
|
-
* Called whenever the `series` option is selected from the `OccurrenceDialog`.
|
|
168
|
-
*/
|
|
169
|
-
onSeriesClick?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>) => void;
|
|
170
|
-
/**
|
|
171
|
-
* An action callback. Used to define the component behavior on series click.
|
|
172
|
-
*
|
|
173
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
174
|
-
*/
|
|
175
|
-
onSeriesClickAction?: (event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
176
|
-
/**
|
|
177
|
-
* Called whenever the `confirm` option is selected from the `RemoveDialog`.
|
|
178
|
-
*/
|
|
179
|
-
onRemoveConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<any>) => void;
|
|
180
|
-
/**
|
|
181
|
-
* An action callback. Used to define the component behavior on remove confirm click.
|
|
182
|
-
*
|
|
183
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
184
|
-
*/
|
|
185
|
-
onRemoveConfirmAction?: (event: SchedulerRemoveDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
186
|
-
/**
|
|
187
|
-
* Called whenever the `form` is submitted.
|
|
188
|
-
*/
|
|
189
|
-
onFormSubmit?: (event: SchedulerFormStateChangeEvent<DataItem | null>) => void;
|
|
190
|
-
/**
|
|
191
|
-
* An action callback. Used to define the component behavior on form submit.
|
|
192
|
-
*
|
|
193
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
194
|
-
*/
|
|
195
|
-
onFormSubmitAction?: (event: SchedulerFormStateChangeEvent<DataItem | null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
196
|
-
/**
|
|
197
|
-
* Called whenever the current edit is canceled.
|
|
198
|
-
*/
|
|
199
|
-
onCancel?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>) => void;
|
|
200
|
-
/**
|
|
201
|
-
* An action callback. Used to define the component behavior on cancel.
|
|
202
|
-
*
|
|
203
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
204
|
-
*/
|
|
205
|
-
onCancelAction?: (event: SchedulerFormStateChangeEvent<null> | SchedulerOccurrenceDialogStateChangeEvent<null>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
206
|
-
/**
|
|
207
|
-
* An action callback. Used to define the component behavior on click.
|
|
208
|
-
*
|
|
209
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
210
|
-
*/
|
|
211
|
-
onClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
212
|
-
/**
|
|
213
|
-
* An action callback. Used to define the component behavior on mouse down.
|
|
214
|
-
*
|
|
215
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
216
|
-
*/
|
|
217
|
-
onMouseDownAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
218
|
-
/**
|
|
219
|
-
* An action callback. Used to define the component behavior on mouse up.
|
|
220
|
-
*
|
|
221
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
222
|
-
*/
|
|
223
|
-
onMouseUpAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
224
|
-
/**
|
|
225
|
-
* An action callback. Used to define the component behavior on double click.
|
|
226
|
-
*
|
|
227
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
228
|
-
*/
|
|
229
|
-
onDoubleClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
230
|
-
/**
|
|
231
|
-
* An action callback. Used to define the component behavior on remove click.
|
|
232
|
-
*
|
|
233
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
234
|
-
*/
|
|
235
|
-
onRemoveClickAction?: (event: SchedulerItemMouseEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
236
|
-
/**
|
|
237
|
-
* An action callback. Used to define the component behavior on key down.
|
|
238
|
-
*
|
|
239
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
240
|
-
*/
|
|
241
|
-
onKeyDownAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
242
|
-
/**
|
|
243
|
-
* An action callback. Used to define the component behavior on key up.
|
|
244
|
-
*
|
|
245
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
246
|
-
*/
|
|
247
|
-
onKeyUpAction?: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
248
|
-
/**
|
|
249
|
-
* An action callback. Used to define the component behavior on focus.
|
|
250
|
-
*
|
|
251
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
252
|
-
*/
|
|
253
|
-
onFocusAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
254
|
-
/**
|
|
255
|
-
* An action callback. Used to define the component behavior on blur.
|
|
256
|
-
*
|
|
257
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
258
|
-
*/
|
|
259
|
-
onBlurAction?: (event: SchedulerItemFocusEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
260
|
-
/**
|
|
261
|
-
* An action callback. Used to define the component behavior on press.
|
|
262
|
-
*
|
|
263
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
264
|
-
*/
|
|
265
|
-
onPressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
266
|
-
/**
|
|
267
|
-
* An action callback. Used to define the component behavior on drag.
|
|
268
|
-
*
|
|
269
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
270
|
-
*/
|
|
271
|
-
onDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
272
|
-
/**
|
|
273
|
-
* An action callback. Used to define the component behavior on release.
|
|
274
|
-
*
|
|
275
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
276
|
-
*/
|
|
277
|
-
onReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
278
|
-
/**
|
|
279
|
-
* An action callback. Used to define the component behavior on resize press.
|
|
280
|
-
*
|
|
281
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
282
|
-
*/
|
|
283
|
-
onResizePressAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
284
|
-
/**
|
|
285
|
-
* An action callback. Used to define the component behavior on resize start drag.
|
|
286
|
-
*
|
|
287
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
288
|
-
*/
|
|
289
|
-
onResizeStartDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
290
|
-
/**
|
|
291
|
-
* An action callback. Used to define the component behavior on resize end drag.
|
|
292
|
-
*
|
|
293
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
294
|
-
*/
|
|
295
|
-
onResizeEndDragAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
296
|
-
/**
|
|
297
|
-
* An action callback. Used to define the component behavior on resize release.
|
|
298
|
-
*
|
|
299
|
-
* Internal state change will be triggered depending on the specific action types.
|
|
300
|
-
*/
|
|
301
|
-
onResizeReleaseAction?: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Represents the internal `state` of the `SchedulerEditItem`.
|
|
305
|
-
*/
|
|
306
|
-
export interface SchedulerEditItemState {
|
|
307
|
-
selected: boolean;
|
|
308
|
-
series: boolean | null;
|
|
309
|
-
formItem: DataItem | null;
|
|
310
|
-
dragItem: DataItem | null;
|
|
311
|
-
resizeItem: DataItem | null;
|
|
312
|
-
removeItem: DataItem | null;
|
|
313
|
-
showRemoveDialog: DataItem | null;
|
|
314
|
-
showOccurrenceDialog: DataItem | null;
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Represents the object which is returned from the `ref` callback of the [SchedulerEditItem]({% slug api_scheduler_scheduleredititem %}).
|
|
318
|
-
*
|
|
319
|
-
* For more information about Refs, refer to the [React Refs & Dom](https://reactjs.org/docs/refs-and-the-dom.html) article.
|
|
320
|
-
*/
|
|
321
|
-
export interface SchedulerEditItemHandle {
|
|
322
|
-
element: HTMLDivElement | null;
|
|
323
|
-
props: SchedulerEditItemProps;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Represents the default `editItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
327
|
-
*
|
|
328
|
-
* This is a composite component of the [`SchedulerViewItem`]({% slug api_scheduler_schedulerviewitem %}), extending it to provide editing through drag, resize and external form.
|
|
329
|
-
*/
|
|
330
|
-
export declare const SchedulerEditItem: React.ForwardRefExoticComponent<SchedulerEditItemProps & React.RefAttributes<SchedulerEditItemHandle>>;
|
|
331
|
-
export declare const schedulerEditItemDefaultProps: {
|
|
332
|
-
viewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<import("./SchedulerViewItem").SchedulerViewItemHandle>>;
|
|
333
|
-
drag: React.FunctionComponent<SchedulerDragProps>;
|
|
334
|
-
resize: React.FunctionComponent<SchedulerResizeProps>;
|
|
335
|
-
form: React.ForwardRefExoticComponent<SchedulerFormProps & React.RefAttributes<import("../components/SchedulerForm").SchedulerFormHandle | null>>;
|
|
336
|
-
occurrenceDialog: React.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React.RefAttributes<import("../components/SchedulerOccurrenceDialog").SchedulerOccurrenceDialogHandle | null>>;
|
|
337
|
-
removeDialog: React.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React.RefAttributes<import("../components/SchedulerRemoveDialog").SchedulerRemoveDialogHandle | null>>;
|
|
338
|
-
onClickAction: (event: SchedulerItemMouseEvent, _: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
339
|
-
onDoubleClickAction: (_: any, props: SchedulerEditItemProps) => (false | {
|
|
340
|
-
type: FORM_ITEM_ACTION;
|
|
341
|
-
payload: any;
|
|
342
|
-
} | {
|
|
343
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
344
|
-
payload?: undefined;
|
|
345
|
-
})[];
|
|
346
|
-
onRemoveClickAction: (_: any, props: SchedulerEditItemProps) => ({
|
|
347
|
-
type: REMOVE_ITEM_ACTION;
|
|
348
|
-
payload: any;
|
|
349
|
-
} | {
|
|
350
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
351
|
-
payload?: undefined;
|
|
352
|
-
} | {
|
|
353
|
-
type: SHOW_REMOVE_DIALOG_ACTION;
|
|
354
|
-
payload?: undefined;
|
|
355
|
-
})[];
|
|
356
|
-
onPressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
357
|
-
type: DRAG_ITEM_ACTION;
|
|
358
|
-
payload: {
|
|
359
|
-
x: number;
|
|
360
|
-
y: number;
|
|
361
|
-
};
|
|
362
|
-
};
|
|
363
|
-
onDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
364
|
-
type: DRAG_ITEM_ACTION;
|
|
365
|
-
payload: {
|
|
366
|
-
x: number;
|
|
367
|
-
y: number;
|
|
368
|
-
};
|
|
369
|
-
};
|
|
370
|
-
onReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
371
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
372
|
-
payload?: undefined;
|
|
373
|
-
} | {
|
|
374
|
-
type: DRAG_ITEM_ACTION;
|
|
375
|
-
payload: {
|
|
376
|
-
x: number;
|
|
377
|
-
y: number;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
onResizePressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
381
|
-
type: RESIZE_ITEM_ACTION;
|
|
382
|
-
payload: {
|
|
383
|
-
x: number;
|
|
384
|
-
y: number;
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
onResizeStartDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
388
|
-
type: RESIZE_ITEM_ACTION;
|
|
389
|
-
payload: {
|
|
390
|
-
x: number;
|
|
391
|
-
y: number;
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
onResizeEndDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
395
|
-
type: RESIZE_ITEM_ACTION;
|
|
396
|
-
payload: {
|
|
397
|
-
x: number;
|
|
398
|
-
y: number;
|
|
399
|
-
};
|
|
400
|
-
};
|
|
401
|
-
onResizeReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
402
|
-
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
403
|
-
payload?: undefined;
|
|
404
|
-
} | {
|
|
405
|
-
type: RESIZE_ITEM_ACTION;
|
|
406
|
-
payload: {
|
|
407
|
-
x: number;
|
|
408
|
-
y: number;
|
|
409
|
-
};
|
|
410
|
-
};
|
|
411
|
-
onOccurrenceClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
412
|
-
onSeriesClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
413
|
-
onKeyDownAction: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
414
|
-
onFormSubmitAction: (event: SchedulerFormStateChangeEvent<DataItem | null>) => SchedulerEditItemAction[];
|
|
415
|
-
onRemoveConfirmAction: () => SchedulerEditItemAction[];
|
|
416
|
-
onCancelAction: () => SchedulerEditItemAction[];
|
|
417
|
-
};
|