@progress/kendo-react-scheduler 5.4.0-dev.202205180853 → 5.4.0-dev.202205271059
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/dist/cdn/js/kendo-react-scheduler.js +2 -16
- package/dist/cdn/js/kendo-react-scheduler.js.LICENSE.txt +14 -0
- package/dist/es/Scheduler.js +12 -7
- package/dist/es/components/DateHeaderCell.js +4 -2
- package/dist/es/components/SchedulerForm.js +5 -3
- package/dist/es/components/TimeHeaderCell.js +4 -2
- package/dist/es/components/footer/SchedulerFooter.js +4 -2
- package/dist/es/components/footer/bussiness-hours/BussinessHours.js +4 -2
- package/dist/es/components/header/SchedulerHeader.js +4 -2
- package/dist/es/components/header/navigation/NavigationDatePicker.js +1 -1
- package/dist/es/components/header/navigation/SchedulerNavigation.js +4 -2
- package/dist/es/components/header/view-selector/SchedulerViewSelector.js +4 -2
- package/dist/es/components/header/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/es/components/header/view-selector/ViewSelectorList.js +1 -1
- package/dist/es/context/SchedulerContext.d.ts +17 -17
- package/dist/es/context/SchedulerEditItemContext.d.ts +13 -61
- package/dist/es/context/SchedulerEditSlotContext.d.ts +3 -3
- package/dist/es/context/SchedulerEditTaskContext.d.ts +6 -6
- package/dist/es/context/SchedulerViewContext.d.ts +14 -14
- package/dist/es/editors/FilterableComboBox.js +4 -2
- package/dist/es/editors/SchedulerFormEditor.js +4 -2
- package/dist/es/editors/ZonedDateTime.js +4 -2
- package/dist/es/hooks/use-items-focus.d.ts +1 -1
- package/dist/es/hooks/use-items-selection.d.ts +1 -1
- package/dist/es/hooks/use-items-selection.js +7 -2
- package/dist/es/hooks/use-slots-focus.d.ts +6 -6
- package/dist/es/hooks/use-slots-selection.js +6 -1
- package/dist/es/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- package/dist/es/hooks/useControlledState.d.ts +10 -12
- package/dist/es/hooks/useControlledState.js +1 -1
- package/dist/es/hooks/useEditable.d.ts +1 -1
- package/dist/es/hooks/usePropOrState.d.ts +1 -1
- package/dist/es/hooks/useSchedulerItem.d.ts +1 -1
- package/dist/es/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/es/hooks/useSlotExpand.js +1 -1
- package/dist/es/items/SchedulerEditItem.js +40 -40
- package/dist/es/items/SchedulerViewItem.js +4 -2
- package/dist/es/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/es/items/hooks/use-drag-item.js +6 -1
- package/dist/es/items/hooks/use-form-item.d.ts +5 -1
- package/dist/es/items/hooks/use-remove-item.d.ts +5 -1
- package/dist/es/items/hooks/use-resize-item.d.ts +6 -2
- package/dist/es/items/hooks/use-resize-item.js +7 -2
- package/dist/es/items/hooks/use-series.d.ts +2 -1
- package/dist/es/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
- package/dist/es/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
- package/dist/es/messages/index.d.ts +76 -76
- package/dist/es/models/DataItem.js +1 -0
- package/dist/es/models/DateRange.js +1 -0
- package/dist/es/models/EditableProp.js +1 -0
- package/dist/es/models/Fields.js +1 -0
- package/dist/es/models/Group.js +1 -0
- package/dist/es/models/Item.js +1 -0
- package/dist/es/models/NavigationAction.js +1 -0
- package/dist/es/models/Occurrence.js +1 -0
- package/dist/es/models/Omit.js +1 -0
- package/dist/es/models/Orientation.js +1 -0
- package/dist/es/models/Range.js +1 -0
- package/dist/es/models/Rect.js +1 -0
- package/dist/es/models/Resource.js +1 -0
- package/dist/es/models/SchedulerGroup.js +1 -0
- package/dist/es/models/SchedulerHandle.js +1 -0
- package/dist/es/models/SchedulerModelFields.js +1 -0
- package/dist/es/models/SchedulerResource.js +1 -0
- package/dist/es/models/SchedulerView.js +1 -0
- package/dist/es/models/Slot.js +1 -0
- package/dist/es/models/events.js +1 -0
- package/dist/es/models/index.js +17 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/recurrence/RecurrenceFrequencyEditor.js +4 -2
- package/dist/es/recurrence/RecurrenceRepeatOnWeekEditor.js +11 -4
- package/dist/es/recurrence/common.d.ts +5 -5
- package/dist/es/recurrence/common.js +2 -1
- package/dist/es/recurrence/types/EndRule.js +1 -0
- package/dist/es/recurrence/types/Frequency.js +1 -0
- package/dist/es/recurrence/types/FrequencyEntity.js +1 -0
- package/dist/es/recurrence/types/MonthEntity.js +1 -0
- package/dist/es/recurrence/types/OffsetPosition.js +1 -0
- package/dist/es/recurrence/types/OffsetPositionEntity.js +1 -0
- package/dist/es/recurrence/types/RepeatOnRule.js +1 -0
- package/dist/es/recurrence/types/WeekDayEntity.js +1 -0
- package/dist/es/recurrence/types/WeekDayRule.js +1 -0
- package/dist/es/reducers/editReducer.js +6 -6
- package/dist/es/services/itemsService.js +1 -7
- package/dist/es/services/occurrenceService.d.ts +2 -2
- package/dist/es/services/occurrenceService.js +7 -2
- package/dist/es/slots/SchedulerEditSlot.js +4 -2
- package/dist/es/slots/SchedulerViewSlot.js +4 -2
- package/dist/es/tasks/SchedulerEditTask.js +4 -2
- package/dist/es/tasks/SchedulerViewTask.js +4 -2
- package/dist/es/utils/index.d.ts +14 -14
- package/dist/es/utils/index.js +13 -8
- package/dist/es/views/common/utils.d.ts +2 -2
- package/dist/es/views/common/utils.js +7 -2
- package/dist/es/views/day/MultiDayView.js +8 -3
- package/dist/es/views/week/WorkWeekView.js +4 -2
- package/dist/npm/Scheduler.js +13 -7
- package/dist/npm/components/BaseView.js +1 -0
- package/dist/npm/components/CurrentTimeMarket.js +3 -1
- package/dist/npm/components/DateHeaderCell.js +5 -2
- package/dist/npm/components/SchedulerForm.js +6 -3
- package/dist/npm/components/SchedulerOccurrenceDialog.js +1 -0
- package/dist/npm/components/SchedulerRemoveDialog.js +1 -0
- package/dist/npm/components/ShowMoreItemsButton.js +1 -0
- package/dist/npm/components/TimeHeaderCell.js +5 -2
- package/dist/npm/components/footer/SchedulerFooter.js +5 -2
- package/dist/npm/components/footer/bussiness-hours/BussinessHours.js +5 -2
- package/dist/npm/components/header/SchedulerHeader.js +5 -2
- package/dist/npm/components/header/navigation/NavigationDatePicker.js +2 -1
- package/dist/npm/components/header/navigation/SchedulerNavigation.js +5 -2
- package/dist/npm/components/header/view-selector/SchedulerViewSelector.js +5 -2
- package/dist/npm/components/header/view-selector/ViewSelectorItem.js +3 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/npm/components/header/view-selector/ViewSelectorList.js +2 -1
- package/dist/npm/constants/index.js +2 -1
- package/dist/npm/context/SchedulerContext.d.ts +17 -17
- package/dist/npm/context/SchedulerContext.js +25 -12
- package/dist/npm/context/SchedulerEditItemContext.d.ts +13 -61
- package/dist/npm/context/SchedulerEditItemContext.js +17 -8
- package/dist/npm/context/SchedulerEditSlotContext.d.ts +3 -3
- package/dist/npm/context/SchedulerEditSlotContext.js +7 -3
- package/dist/npm/context/SchedulerEditTaskContext.d.ts +6 -6
- package/dist/npm/context/SchedulerEditTaskContext.js +9 -4
- package/dist/npm/context/SchedulerResourceIteratorContext.js +3 -1
- package/dist/npm/context/SchedulerViewContext.d.ts +14 -14
- package/dist/npm/context/SchedulerViewContext.js +19 -9
- package/dist/npm/context/index.js +15 -8
- package/dist/npm/editors/FilterableComboBox.js +7 -3
- package/dist/npm/editors/ResourceEditor.js +3 -1
- package/dist/npm/editors/SchedulerFormEditor.js +5 -2
- package/dist/npm/editors/ZonedDateTime.js +7 -3
- package/dist/npm/editors/common.js +5 -2
- package/dist/npm/hooks/index.js +20 -13
- package/dist/npm/hooks/use-items-focus.d.ts +1 -1
- package/dist/npm/hooks/use-items-focus.js +3 -1
- package/dist/npm/hooks/use-items-selection.d.ts +1 -1
- package/dist/npm/hooks/use-items-selection.js +10 -3
- package/dist/npm/hooks/use-slots-focus.d.ts +6 -6
- package/dist/npm/hooks/use-slots-focus.js +11 -5
- package/dist/npm/hooks/use-slots-selection.js +9 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.d.ts +2 -2
- package/dist/npm/hooks/useAsyncMouseEnterLeave.js +3 -1
- package/dist/npm/hooks/useCellSync.js +3 -1
- package/dist/npm/hooks/useControlledState.d.ts +10 -12
- package/dist/npm/hooks/useControlledState.js +4 -2
- package/dist/npm/hooks/useEditable.d.ts +1 -1
- package/dist/npm/hooks/useEditable.js +3 -1
- package/dist/npm/hooks/usePropOrState.d.ts +1 -1
- package/dist/npm/hooks/usePropOrState.js +3 -1
- package/dist/npm/hooks/useRowSync.js +3 -1
- package/dist/npm/hooks/useSchedulerItem.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerItem.js +3 -1
- package/dist/npm/hooks/useSchedulerSlot.d.ts +1 -1
- package/dist/npm/hooks/useSchedulerSlot.js +3 -1
- package/dist/npm/hooks/useSlotExpand.js +4 -2
- package/dist/npm/hooks/useWorkHours.js +3 -1
- package/dist/npm/items/SchedulerEditItem.js +41 -40
- package/dist/npm/items/SchedulerItem.js +1 -0
- package/dist/npm/items/SchedulerItemContent.js +1 -0
- package/dist/npm/items/SchedulerViewItem.js +5 -2
- package/dist/npm/items/hooks/use-drag-item.d.ts +6 -2
- package/dist/npm/items/hooks/use-drag-item.js +9 -2
- package/dist/npm/items/hooks/use-form-item.d.ts +5 -1
- package/dist/npm/items/hooks/use-form-item.js +3 -1
- package/dist/npm/items/hooks/use-remove-item.d.ts +5 -1
- package/dist/npm/items/hooks/use-remove-item.js +3 -1
- package/dist/npm/items/hooks/use-resize-item.d.ts +6 -2
- package/dist/npm/items/hooks/use-resize-item.js +10 -3
- package/dist/npm/items/hooks/use-series.d.ts +2 -1
- package/dist/npm/items/hooks/use-series.js +3 -1
- package/dist/npm/items/hooks/use-show-occurrence-dialog.d.ts +2 -1
- package/dist/npm/items/hooks/use-show-occurrence-dialog.js +3 -1
- package/dist/npm/items/hooks/use-show-remove-item-dialog.d.ts +2 -1
- package/dist/npm/items/hooks/use-show-remove-item-dialog.js +3 -1
- package/dist/npm/main.js +76 -74
- package/dist/npm/messages/index.d.ts +76 -76
- package/dist/npm/messages/index.js +3 -1
- package/dist/npm/models/index.js +27 -0
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/recurrence/RecurrenceEditor.js +3 -1
- package/dist/npm/recurrence/RecurrenceFrequencyEditor.js +7 -3
- package/dist/npm/recurrence/RecurrenceRepeatOnWeekEditor.js +14 -5
- package/dist/npm/recurrence/common.d.ts +5 -5
- package/dist/npm/recurrence/common.js +39 -19
- package/dist/npm/reducers/editReducer.js +9 -7
- package/dist/npm/reducers/index.js +11 -4
- package/dist/npm/services/index.js +14 -7
- package/dist/npm/services/itemsService.js +10 -11
- package/dist/npm/services/occurrenceService.d.ts +2 -2
- package/dist/npm/services/occurrenceService.js +10 -3
- package/dist/npm/services/rangeService.js +3 -1
- package/dist/npm/services/slotsService.js +3 -1
- package/dist/npm/slots/SchedulerEditSlot.js +5 -2
- package/dist/npm/slots/SchedulerSlot.js +1 -0
- package/dist/npm/slots/SchedulerViewSlot.js +5 -2
- package/dist/npm/tasks/SchedulerEditTask.js +5 -2
- package/dist/npm/tasks/SchedulerTask.js +1 -0
- package/dist/npm/tasks/SchedulerViewTask.js +5 -2
- package/dist/npm/utils/index.d.ts +14 -14
- package/dist/npm/utils/index.js +91 -46
- package/dist/npm/views/agenda/AgendaView.js +3 -1
- package/dist/npm/views/agenda/AgendaViewHeaderItem.js +3 -1
- package/dist/npm/views/common/HorizontalResourceIterator.js +5 -2
- package/dist/npm/views/common/SchedulerDrag.js +3 -1
- package/dist/npm/views/common/SchedulerResize.js +3 -1
- package/dist/npm/views/common/VerticalResourceIterator.js +3 -1
- package/dist/npm/views/common/utils.d.ts +2 -2
- package/dist/npm/views/common/utils.js +26 -11
- package/dist/npm/views/day/DayView.js +3 -1
- package/dist/npm/views/day/DayViewAllDayRowContent.js +3 -1
- package/dist/npm/views/day/DayViewGroupRowContent.js +3 -1
- package/dist/npm/views/day/DayViewRowContent.js +3 -1
- package/dist/npm/views/day/MultiDayView.js +11 -4
- package/dist/npm/views/month/MonthView.js +3 -1
- package/dist/npm/views/time/MultiDayTimelineView.js +3 -1
- package/dist/npm/views/time/TimelineView.js +3 -1
- package/dist/npm/views/time/TimelineViewAllEventsRowContent.js +3 -1
- package/dist/npm/views/time/TimelineViewRowContent.js +3 -1
- package/dist/npm/views/week/WeekView.js +3 -1
- package/dist/npm/views/week/WorkWeekView.js +7 -3
- package/dist/systemjs/kendo-react-scheduler.js +1 -1
- package/package.json +12 -12
|
@@ -28,44 +28,44 @@ export declare const useSchedulerViewPropsContext: () => SchedulerViewProps;
|
|
|
28
28
|
/** @hidden */
|
|
29
29
|
export declare type SchedulerViewRangesContextType = Range[];
|
|
30
30
|
/** @hidden */
|
|
31
|
-
export declare const SchedulerViewRangesContext: React.Context<
|
|
31
|
+
export declare const SchedulerViewRangesContext: React.Context<SchedulerViewRangesContextType>;
|
|
32
32
|
/** @hidden */
|
|
33
|
-
export declare const useSchedulerViewRangesContext: () =>
|
|
33
|
+
export declare const useSchedulerViewRangesContext: () => SchedulerViewRangesContextType;
|
|
34
34
|
/** @hidden */
|
|
35
35
|
export declare type SchedulerViewSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: CollectionAction<React.RefObject<SchedulerSlotHandle>>) => void];
|
|
36
36
|
/** @hidden */
|
|
37
|
-
export declare const SchedulerViewSlotsContext: React.Context<
|
|
37
|
+
export declare const SchedulerViewSlotsContext: React.Context<SchedulerViewSlotsContextType>;
|
|
38
38
|
/** @hidden */
|
|
39
|
-
export declare const useSchedulerViewSlotsContext: () =>
|
|
39
|
+
export declare const useSchedulerViewSlotsContext: () => SchedulerViewSlotsContextType;
|
|
40
40
|
/** @hidden */
|
|
41
41
|
export declare type SchedulerViewItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: CollectionAction<React.RefObject<SchedulerItemHandle>>) => void];
|
|
42
42
|
/** @hidden */
|
|
43
|
-
export declare const SchedulerViewItemsContext: React.Context<
|
|
43
|
+
export declare const SchedulerViewItemsContext: React.Context<SchedulerViewItemsContextType>;
|
|
44
44
|
/** @hidden */
|
|
45
|
-
export declare const useSchedulerViewItemsContext: () =>
|
|
45
|
+
export declare const useSchedulerViewItemsContext: () => SchedulerViewItemsContextType;
|
|
46
46
|
/** @hidden */
|
|
47
47
|
export declare type SchedulerViewSelectedSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsSelectAction, event: React.SyntheticEvent) => void];
|
|
48
48
|
/** @hidden */
|
|
49
|
-
export declare const SchedulerViewSelectedSlotsContext: React.Context<
|
|
49
|
+
export declare const SchedulerViewSelectedSlotsContext: React.Context<SchedulerViewSelectedSlotsContextType>;
|
|
50
50
|
/** @hidden */
|
|
51
|
-
export declare const useSchedulerViewSelectedSlotsContext: () =>
|
|
51
|
+
export declare const useSchedulerViewSelectedSlotsContext: () => SchedulerViewSelectedSlotsContextType;
|
|
52
52
|
/** @hidden */
|
|
53
53
|
export declare type SchedulerViewSelectedItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsSelectAction, event: React.SyntheticEvent) => void];
|
|
54
54
|
/** @hidden */
|
|
55
|
-
export declare const SchedulerViewSelectedItemsContext: React.Context<
|
|
55
|
+
export declare const SchedulerViewSelectedItemsContext: React.Context<SchedulerViewSelectedItemsContextType>;
|
|
56
56
|
/** @hidden */
|
|
57
|
-
export declare const useSchedulerViewSelectedItemsContext: () =>
|
|
57
|
+
export declare const useSchedulerViewSelectedItemsContext: () => SchedulerViewSelectedItemsContextType;
|
|
58
58
|
/** @hidden */
|
|
59
59
|
export declare type SchedulerViewFocusedItemsContextType = [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsFocusAction, event: React.SyntheticEvent) => void];
|
|
60
60
|
/** @hidden */
|
|
61
|
-
export declare const SchedulerViewFocusedItemsContext: React.Context<
|
|
61
|
+
export declare const SchedulerViewFocusedItemsContext: React.Context<SchedulerViewFocusedItemsContextType>;
|
|
62
62
|
/** @hidden */
|
|
63
|
-
export declare const useSchedulerViewFocusedItemsContext: () =>
|
|
63
|
+
export declare const useSchedulerViewFocusedItemsContext: () => SchedulerViewFocusedItemsContextType;
|
|
64
64
|
/** @hidden */
|
|
65
65
|
export declare type SchedulerViewFocusedSlotsContextType = [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsFocusAction, event: React.SyntheticEvent) => void];
|
|
66
66
|
/** @hidden */
|
|
67
|
-
export declare const SchedulerViewFocusedSlotsContext: React.Context<
|
|
67
|
+
export declare const SchedulerViewFocusedSlotsContext: React.Context<SchedulerViewFocusedSlotsContextType>;
|
|
68
68
|
/** @hidden */
|
|
69
|
-
export declare const useSchedulerViewFocusedSlotsContext: () =>
|
|
69
|
+
export declare const useSchedulerViewFocusedSlotsContext: () => SchedulerViewFocusedSlotsContextType;
|
|
70
70
|
/** @hidden */
|
|
71
71
|
export declare const SchedulerViewContext: ({ children, props, ranges, slots, items, selectedSlots, selectedItems, focusedItems, focusedSlots }: SchedulerViewContextProps) => JSX.Element;
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -20,4 +20,4 @@ export interface SchedulerItemsFocusAction {
|
|
|
20
20
|
ignoreIsAllDay?: boolean;
|
|
21
21
|
}
|
|
22
22
|
/** @hidden */
|
|
23
|
-
export declare const useItemsFocus: (items: React.RefObject<SchedulerItemHandle>[]) => [[], (action: SchedulerItemsFocusAction, event: React.SyntheticEvent
|
|
23
|
+
export declare const useItemsFocus: (items: React.RefObject<SchedulerItemHandle>[]) => [[], (action: SchedulerItemsFocusAction, event: React.SyntheticEvent) => void];
|
|
@@ -28,4 +28,4 @@ export interface SchedulerItemsSelectAction {
|
|
|
28
28
|
ignoreIsAllDay?: boolean;
|
|
29
29
|
}
|
|
30
30
|
/** @hidden */
|
|
31
|
-
export declare const useItemsSelection: (items: React.RefObject<SchedulerItemHandle>[]) => [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsSelectAction, event: React.SyntheticEvent
|
|
31
|
+
export declare const useItemsSelection: (items: React.RefObject<SchedulerItemHandle>[]) => [React.RefObject<SchedulerItemHandle>[], (action: SchedulerItemsSelectAction, event: React.SyntheticEvent) => void];
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import * as React from 'react';
|
|
2
7
|
import { findNextItem } from '../utils';
|
|
3
8
|
/**
|
|
@@ -61,14 +66,14 @@ export var useItemsSelection = function (items) {
|
|
|
61
66
|
return;
|
|
62
67
|
}
|
|
63
68
|
if (!selectedItems.some(function (si) { return si === action.item; })) {
|
|
64
|
-
setSelectedItems(
|
|
69
|
+
setSelectedItems(__spreadArray(__spreadArray([], selectedItems), [action.item]));
|
|
65
70
|
}
|
|
66
71
|
break;
|
|
67
72
|
case ITEMS_SELECT_ACTION.remove:
|
|
68
73
|
if (!action.item) {
|
|
69
74
|
return;
|
|
70
75
|
}
|
|
71
|
-
setSelectedItems(selectedItems.filter(function (si) { return si !== action.item; })
|
|
76
|
+
setSelectedItems(__spreadArray([], selectedItems.filter(function (si) { return si !== action.item; })));
|
|
72
77
|
break;
|
|
73
78
|
default:
|
|
74
79
|
break;
|
|
@@ -20,15 +20,15 @@ export declare enum SLOTS_FOCUS_ACTION {
|
|
|
20
20
|
*/
|
|
21
21
|
export interface SchedulerSlotsFocusAction {
|
|
22
22
|
type: SLOTS_FOCUS_ACTION;
|
|
23
|
-
slot: React.RefObject<SchedulerSlotHandle>;
|
|
23
|
+
slot: React.RefObject<SchedulerSlotHandle | null>;
|
|
24
24
|
}
|
|
25
25
|
/** @hidden */
|
|
26
|
-
export declare const useSlotsFocus: (slots: React.RefObject<SchedulerSlotHandle>[]) => [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsFocusAction, event: React.SyntheticEvent
|
|
26
|
+
export declare const useSlotsFocus: (slots: React.RefObject<SchedulerSlotHandle>[]) => [React.RefObject<SchedulerSlotHandle>[], (action: SchedulerSlotsFocusAction, event: React.SyntheticEvent) => void];
|
|
27
27
|
/** @hidden */
|
|
28
|
-
export declare const findUpSlot: (target: React.RefObject<SchedulerSlotHandle>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle
|
|
28
|
+
export declare const findUpSlot: (target: React.RefObject<SchedulerSlotHandle | null>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle> | undefined;
|
|
29
29
|
/** @hidden */
|
|
30
|
-
export declare const findLeftSlot: (target: React.RefObject<SchedulerSlotHandle>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle
|
|
30
|
+
export declare const findLeftSlot: (target: React.RefObject<SchedulerSlotHandle | null>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle> | undefined;
|
|
31
31
|
/** @hidden */
|
|
32
|
-
export declare const findRightSlot: (target: React.RefObject<SchedulerSlotHandle>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle
|
|
32
|
+
export declare const findRightSlot: (target: React.RefObject<SchedulerSlotHandle | null>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle> | undefined;
|
|
33
33
|
/** @hidden */
|
|
34
|
-
export declare const findDownSlot: (target: React.RefObject<SchedulerSlotHandle>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle
|
|
34
|
+
export declare const findDownSlot: (target: React.RefObject<SchedulerSlotHandle | null>, all: React.RefObject<SchedulerSlotHandle>[]) => React.RefObject<SchedulerSlotHandle> | undefined;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import * as React from 'react';
|
|
2
7
|
/**
|
|
3
8
|
* Represents the available `action` types for the `SchedulerSlotsSelectAction` objects.
|
|
@@ -32,7 +37,7 @@ export var useSlotsSelection = function (_slots) {
|
|
|
32
37
|
return;
|
|
33
38
|
}
|
|
34
39
|
if (!selectedSlots.some(function (ss) { return ss === action.slot; })) {
|
|
35
|
-
setSelectedSlots(
|
|
40
|
+
setSelectedSlots(__spreadArray(__spreadArray([], selectedSlots), [action.slot]));
|
|
36
41
|
}
|
|
37
42
|
break;
|
|
38
43
|
default:
|
|
@@ -6,6 +6,6 @@ export interface AsyncMouseEnterLeaveArgs {
|
|
|
6
6
|
}
|
|
7
7
|
/** @hidden */
|
|
8
8
|
export declare const useAsyncMouseEnterLeave: ({ handleMouseEnter, handleMouseLeave }: AsyncMouseEnterLeaveArgs) => {
|
|
9
|
-
onMouseEnter: (event: React.MouseEvent<any
|
|
10
|
-
onMouseLeave: (event: React.MouseEvent<any
|
|
9
|
+
onMouseEnter: (event: React.MouseEvent<any>) => void;
|
|
10
|
+
onMouseLeave: (event: React.MouseEvent<any>) => void;
|
|
11
11
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/** @hidden */
|
|
3
|
-
export declare type ControlledStateHook<T> = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
3
|
+
export declare type ControlledStateHook<T> = [
|
|
4
|
+
T,
|
|
5
|
+
(value: T, event?: React.SyntheticEvent | {
|
|
6
|
+
target: any;
|
|
7
|
+
syntheticEvent: React.SyntheticEvent;
|
|
8
|
+
} | {
|
|
9
|
+
preventDefault: any;
|
|
10
|
+
}) => void
|
|
11
|
+
];
|
|
9
12
|
/** @hidden */
|
|
10
|
-
export declare const useControlledState: <T extends
|
|
11
|
-
target: any;
|
|
12
|
-
syntheticEvent: React.SyntheticEvent<Element, Event>;
|
|
13
|
-
} | {
|
|
14
|
-
preventDefault: any;
|
|
15
|
-
}) => void];
|
|
13
|
+
export declare const useControlledState: <T extends unknown>(defaultProp: T, prop?: T, callback?: any) => ControlledStateHook<T>;
|
|
@@ -16,7 +16,7 @@ export var useControlledState = function (defaultProp, prop, callback) {
|
|
|
16
16
|
var handleSetEdit = React.useCallback(function (value, args) {
|
|
17
17
|
setState(value);
|
|
18
18
|
if (callback) {
|
|
19
|
-
callback.call(undefined, __assign({}, args, { value: value }));
|
|
19
|
+
callback.call(undefined, __assign(__assign({}, args), { value: value }));
|
|
20
20
|
}
|
|
21
21
|
}, [callback, setState]);
|
|
22
22
|
return [prop !== undefined ? prop : state, handleSetEdit];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
|
-
export declare const usePropOrState: <S extends
|
|
2
|
+
export declare const usePropOrState: <S extends unknown>(prop?: any, defaultValue?: any) => [S, any];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SchedulerItemProps, SchedulerItemHandle } from '../main';
|
|
3
3
|
/** @hidden */
|
|
4
|
-
export declare const useSchedulerItem: (props: SchedulerItemProps, ref?: React.Ref<SchedulerItemHandle>) => {
|
|
4
|
+
export declare const useSchedulerItem: (props: SchedulerItemProps, ref?: React.Ref<SchedulerItemHandle | null>) => {
|
|
5
5
|
item: React.RefObject<SchedulerItemHandle>;
|
|
6
6
|
element: React.RefObject<HTMLDivElement>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SchedulerSlotProps, SchedulerSlotHandle } from '../main';
|
|
3
3
|
/** @hidden */
|
|
4
|
-
export declare const useSchedulerSlot: (props: SchedulerSlotProps, ref: React.Ref<SchedulerSlotHandle>) => {
|
|
4
|
+
export declare const useSchedulerSlot: (props: SchedulerSlotProps, ref: React.Ref<SchedulerSlotHandle | null>) => {
|
|
5
5
|
slot: React.RefObject<SchedulerSlotHandle>;
|
|
6
6
|
element: React.RefObject<HTMLDivElement>;
|
|
7
7
|
};
|
|
@@ -144,8 +144,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
144
144
|
var actions = onFocusAction(event, props, state);
|
|
145
145
|
if (actions) {
|
|
146
146
|
Array.isArray(actions)
|
|
147
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
148
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
147
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
148
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
if (onFocus) {
|
|
@@ -157,8 +157,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
157
157
|
var actions = onMouseDownAction(event, props, state);
|
|
158
158
|
if (actions) {
|
|
159
159
|
Array.isArray(actions)
|
|
160
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
161
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
160
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
161
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
if (onMouseDown) {
|
|
@@ -170,8 +170,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
170
170
|
var actions = onMouseUpAction(event, props, state);
|
|
171
171
|
if (actions) {
|
|
172
172
|
Array.isArray(actions)
|
|
173
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
174
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
173
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
174
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
if (onMouseUp) {
|
|
@@ -183,8 +183,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
183
183
|
var actions = onClickAction(event, props, state);
|
|
184
184
|
if (actions) {
|
|
185
185
|
Array.isArray(actions)
|
|
186
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
187
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
186
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
187
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
if (onClick) {
|
|
@@ -196,8 +196,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
196
196
|
var actions = onDoubleClickAction(event, props, state);
|
|
197
197
|
if (actions) {
|
|
198
198
|
Array.isArray(actions)
|
|
199
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
200
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
199
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
200
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
if (onDoubleClick) {
|
|
@@ -209,8 +209,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
209
209
|
var actions = onRemoveClickAction(event, props, state);
|
|
210
210
|
if (actions) {
|
|
211
211
|
Array.isArray(actions)
|
|
212
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
213
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }));
|
|
212
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
213
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }));
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
if (onRemoveClick) {
|
|
@@ -222,8 +222,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
222
222
|
var actions = onPressAction(event, props, state);
|
|
223
223
|
if (actions) {
|
|
224
224
|
Array.isArray(actions)
|
|
225
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
226
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event);
|
|
225
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
226
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
if (onPress) {
|
|
@@ -235,8 +235,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
235
235
|
var actions = onDragAction(event, props, state);
|
|
236
236
|
if (actions) {
|
|
237
237
|
Array.isArray(actions)
|
|
238
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
239
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
238
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
239
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
if (onDrag) {
|
|
@@ -248,8 +248,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
248
248
|
var actions = onReleaseAction(event, props, state);
|
|
249
249
|
if (actions) {
|
|
250
250
|
Array.isArray(actions)
|
|
251
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
252
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
251
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
252
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
if (onRelease) {
|
|
@@ -261,8 +261,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
261
261
|
var actions = onResizePressAction(event, props, state);
|
|
262
262
|
if (actions) {
|
|
263
263
|
Array.isArray(actions)
|
|
264
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
265
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
264
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
265
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
if (onResizePress) {
|
|
@@ -274,8 +274,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
274
274
|
var actions = onResizeStartDragAction(event, props, state);
|
|
275
275
|
if (actions) {
|
|
276
276
|
Array.isArray(actions)
|
|
277
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
278
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
277
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
278
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
if (onResizeStartDrag) {
|
|
@@ -287,8 +287,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
287
287
|
var actions = onResizeEndDragAction(event, props, state);
|
|
288
288
|
if (actions) {
|
|
289
289
|
Array.isArray(actions)
|
|
290
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
291
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
290
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
291
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
if (onResizeEndDrag) {
|
|
@@ -300,8 +300,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
300
300
|
var actions = onResizeReleaseAction(event, props, state);
|
|
301
301
|
if (actions) {
|
|
302
302
|
Array.isArray(actions)
|
|
303
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.dragEvent.originalEvent); })
|
|
304
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.dragEvent.originalEvent);
|
|
303
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.dragEvent.originalEvent); })
|
|
304
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.dragEvent.originalEvent);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
if (onResizeRelease) {
|
|
@@ -313,8 +313,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
313
313
|
var actions = onFormSubmitAction(event, props, state);
|
|
314
314
|
if (actions) {
|
|
315
315
|
Array.isArray(actions)
|
|
316
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
317
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event);
|
|
316
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
317
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
if (onFormSubmit) {
|
|
@@ -326,8 +326,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
326
326
|
var actions = onCancelAction(event, props, state);
|
|
327
327
|
if (actions) {
|
|
328
328
|
Array.isArray(actions)
|
|
329
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
330
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event);
|
|
329
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
330
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event);
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
if (onCancel) {
|
|
@@ -339,8 +339,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
339
339
|
var actions = onOccurrenceClickAction(event, props, state);
|
|
340
340
|
if (actions) {
|
|
341
341
|
Array.isArray(actions)
|
|
342
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
343
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event);
|
|
342
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
343
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
if (onOccurrenceClick) {
|
|
@@ -352,8 +352,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
352
352
|
var actions = onSeriesClickAction(event, props, state);
|
|
353
353
|
if (actions) {
|
|
354
354
|
Array.isArray(actions)
|
|
355
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event); })
|
|
356
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event);
|
|
355
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event); })
|
|
356
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
if (onSeriesClick) {
|
|
@@ -365,8 +365,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
365
365
|
var actions = onKeyDownAction(event, props, state);
|
|
366
366
|
if (actions) {
|
|
367
367
|
Array.isArray(actions)
|
|
368
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.syntheticEvent); })
|
|
369
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.syntheticEvent);
|
|
368
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.syntheticEvent); })
|
|
369
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.syntheticEvent);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
if (onKeyDown) {
|
|
@@ -378,8 +378,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
378
378
|
var actions = onKeyUpAction(event, props, state);
|
|
379
379
|
if (actions) {
|
|
380
380
|
Array.isArray(actions)
|
|
381
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.syntheticEvent); })
|
|
382
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.syntheticEvent);
|
|
381
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.syntheticEvent); })
|
|
382
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.syntheticEvent);
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
if (onKeyUp) {
|
|
@@ -391,8 +391,8 @@ export var SchedulerEditItem = React.forwardRef(function (props, ref) {
|
|
|
391
391
|
var actions = onRemoveConfirmAction(event, props, state);
|
|
392
392
|
if (actions) {
|
|
393
393
|
Array.isArray(actions)
|
|
394
|
-
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign({}, action, { item: item }), event.syntheticEvent); })
|
|
395
|
-
: actionsReducerMap[actions.type](__assign({}, actions, { item: item }), event.syntheticEvent);
|
|
394
|
+
? actions.filter(Boolean).map(function (action) { return action && actionsReducerMap[action.type](__assign(__assign({}, action), { item: item }), event.syntheticEvent); })
|
|
395
|
+
: actionsReducerMap[actions.type](__assign(__assign({}, actions), { item: item }), event.syntheticEvent);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
if (onRemoveConfirm) {
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -31,8 +31,12 @@ export interface SchedulerItemDragItemAction {
|
|
|
31
31
|
}
|
|
32
32
|
/** @hidden */
|
|
33
33
|
export declare const useDragItem: (config: {
|
|
34
|
-
dataItem:
|
|
34
|
+
dataItem: DataItem;
|
|
35
35
|
ignoreIsAllDay?: boolean;
|
|
36
36
|
isAllDay?: boolean;
|
|
37
37
|
onDataAction?: any;
|
|
38
|
-
}, state: [
|
|
38
|
+
}, state: [
|
|
39
|
+
DataItem,
|
|
40
|
+
DataItem,
|
|
41
|
+
any
|
|
42
|
+
]) => any[];
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import { clone } from '@progress/kendo-react-common';
|
|
2
7
|
import * as React from 'react';
|
|
3
8
|
import { useSchedulerFieldsContext, useSchedulerGroupsContext, useSchedulerViewSelectedItemsContext } from '../../context';
|
|
@@ -81,7 +86,7 @@ export var useDragItem = function (config, state) {
|
|
|
81
86
|
return selectedDataItem;
|
|
82
87
|
}).filter(Boolean);
|
|
83
88
|
oldSlot.current = slot;
|
|
84
|
-
setDragItem(newDragItems
|
|
89
|
+
setDragItem(__spreadArray([], newDragItems));
|
|
85
90
|
break;
|
|
86
91
|
}
|
|
87
92
|
case DRAG_ITEM_ACTION.start: {
|
|
@@ -36,6 +36,10 @@ export interface SchedulerItemResizeItemAction {
|
|
|
36
36
|
}
|
|
37
37
|
/** @hidden */
|
|
38
38
|
export declare const useResizeItem: (config: {
|
|
39
|
-
dataItem:
|
|
39
|
+
dataItem: DataItem;
|
|
40
40
|
onDataAction: any;
|
|
41
|
-
}, state: [
|
|
41
|
+
}, state: [
|
|
42
|
+
DataItem,
|
|
43
|
+
DataItem,
|
|
44
|
+
any
|
|
45
|
+
]) => any[];
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import { clone } from '@progress/kendo-react-common';
|
|
2
7
|
import * as React from 'react';
|
|
3
8
|
import { useSchedulerFieldsContext, useSchedulerViewSelectedItemsContext } from '../../context';
|
|
@@ -103,7 +108,7 @@ export var useResizeItem = function (config, state) {
|
|
|
103
108
|
return selectedDataItem;
|
|
104
109
|
}).filter(Boolean);
|
|
105
110
|
if (!unreachable_1) {
|
|
106
|
-
newResizeItem = newResizeItems
|
|
111
|
+
newResizeItem = __spreadArray([], newResizeItems);
|
|
107
112
|
}
|
|
108
113
|
break;
|
|
109
114
|
}
|
|
@@ -181,7 +186,7 @@ export var useResizeItem = function (config, state) {
|
|
|
181
186
|
return selectedDataItem;
|
|
182
187
|
}).filter(Boolean);
|
|
183
188
|
if (!unreachable_2) {
|
|
184
|
-
newResizeItem = newResizeItems
|
|
189
|
+
newResizeItem = __spreadArray([], newResizeItems);
|
|
185
190
|
}
|
|
186
191
|
break;
|
|
187
192
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataItem } from '../../models';
|
|
1
2
|
/**
|
|
2
3
|
* Represents the available `action` types for the `SchedulerItemSeriesAction` objects.
|
|
3
4
|
*
|
|
@@ -19,4 +20,4 @@ export declare type SchedulerItemSeriesAction = {
|
|
|
19
20
|
payload?: boolean;
|
|
20
21
|
};
|
|
21
22
|
/** @hidden */
|
|
22
|
-
export declare const useSeries: (defaultProp:
|
|
23
|
+
export declare const useSeries: (defaultProp: DataItem, prop?: DataItem, callback?: any) => any[];
|