@progress/kendo-react-scheduler 5.4.0-dev.202205250548 → 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/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 +37 -18
- 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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
package/dist/es/Scheduler.js
CHANGED
|
@@ -9,6 +9,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
13
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
14
|
+
to[j] = from[i];
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
12
17
|
import * as React from 'react';
|
|
13
18
|
import * as PropTypes from 'prop-types';
|
|
14
19
|
import { getModelFields, getField, findMaster, setField, toSchedulerGroups, getToday } from './utils';
|
|
@@ -129,7 +134,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
129
134
|
var masterClone = clone(findMaster(dataItem, fields, data));
|
|
130
135
|
var exceptionDate = getField(dataItem, fields.originalStart);
|
|
131
136
|
var currentExceptions = getField(masterClone, fields.recurrenceExceptions) || [];
|
|
132
|
-
setField(masterClone, fields.recurrenceExceptions,
|
|
137
|
+
setField(masterClone, fields.recurrenceExceptions, __spreadArray(__spreadArray([], currentExceptions), [exceptionDate]));
|
|
133
138
|
setField(dataItem, fields.recurrenceRule, null);
|
|
134
139
|
updated.push(masterClone);
|
|
135
140
|
created.push(dataItem);
|
|
@@ -148,7 +153,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
148
153
|
var masterClone = clone(findMaster(action.dataItem, fields, data));
|
|
149
154
|
var exceptionDate = getField(action.dataItem, fields.originalStart);
|
|
150
155
|
var currentExceptions = getField(masterClone, fields.recurrenceExceptions) || [];
|
|
151
|
-
setField(masterClone, fields.recurrenceExceptions,
|
|
156
|
+
setField(masterClone, fields.recurrenceExceptions, __spreadArray(__spreadArray([], currentExceptions), [exceptionDate]));
|
|
152
157
|
setField(action.dataItem, fields.recurrenceRule, null);
|
|
153
158
|
updated.push(masterClone);
|
|
154
159
|
created.push(action.dataItem);
|
|
@@ -182,7 +187,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
182
187
|
var masterClone = clone(findMaster(action.dataItem, fields, data));
|
|
183
188
|
var exceptionDate = getField(action.dataItem, fields.originalStart);
|
|
184
189
|
var currentExceptions = getField(masterClone, fields.recurrenceExceptions) || [];
|
|
185
|
-
setField(masterClone, fields.recurrenceExceptions,
|
|
190
|
+
setField(masterClone, fields.recurrenceExceptions, __spreadArray(__spreadArray([], currentExceptions), [exceptionDate]));
|
|
186
191
|
setField(action.dataItem, fields.recurrenceRule, null);
|
|
187
192
|
updated.push(masterClone);
|
|
188
193
|
}
|
|
@@ -205,13 +210,13 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
205
210
|
}
|
|
206
211
|
}, [handleCreate, handleRemove, handleUpdate]);
|
|
207
212
|
var handleActiveViewNameChange = React.useCallback(function (newView, event) {
|
|
208
|
-
setActiveViewName(newView, __assign({}, event, { target: scheduler.current }));
|
|
213
|
+
setActiveViewName(newView, __assign(__assign({}, event), { target: scheduler.current }));
|
|
209
214
|
}, [
|
|
210
215
|
setActiveViewName,
|
|
211
216
|
scheduler
|
|
212
217
|
]);
|
|
213
218
|
var handleDateChange = React.useCallback(function (newDate, event) {
|
|
214
|
-
setDate(newDate, __assign({}, event, { target: scheduler.current }));
|
|
219
|
+
setDate(newDate, __assign(__assign({}, event), { target: scheduler.current }));
|
|
215
220
|
}, [
|
|
216
221
|
setDate,
|
|
217
222
|
scheduler
|
|
@@ -220,7 +225,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
220
225
|
if (!event.value) {
|
|
221
226
|
return;
|
|
222
227
|
}
|
|
223
|
-
setDate(event.value, __assign({}, event, { target: scheduler.current, nativeEvent: event.nativeEvent }));
|
|
228
|
+
setDate(event.value, __assign(__assign({}, event), { target: scheduler.current, nativeEvent: event.nativeEvent }));
|
|
224
229
|
}, [
|
|
225
230
|
setDate,
|
|
226
231
|
scheduler
|
|
@@ -259,7 +264,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
259
264
|
element.current.style.boxShadow = '';
|
|
260
265
|
}
|
|
261
266
|
}, [element]);
|
|
262
|
-
var style = React.useMemo(function () { return (__assign({}, props.style, { height: props.height })); }, [props.height, props.style]);
|
|
267
|
+
var style = React.useMemo(function () { return (__assign(__assign({}, props.style), { height: props.height })); }, [props.height, props.style]);
|
|
263
268
|
var className = React.useMemo(function () { return classNames({ 'k-rtl': props.rtl !== undefined ? props.rtl : dir === 'rtl' }, 'k-widget k-scheduler k-scheduler-flex k-floatwrap', props.className); }, [props.className, props.rtl, dir]);
|
|
264
269
|
var todayText = localization.toLanguageString(today, messages[today]);
|
|
265
270
|
var previousText = localization.toLanguageString(previousTitle, messages[previousTitle]);
|
|
@@ -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';
|
|
@@ -80,7 +82,7 @@ export var SchedulerForm = React.forwardRef(function (props, ref) {
|
|
|
80
82
|
endAfterStartValidator(formValueGetter(fields.start), formValueGetter)
|
|
81
83
|
].filter(Boolean).reduce(function (current, acc) { return current || acc; }, '');
|
|
82
84
|
var additionalValidator = validator(_dataItem, formValueGetter);
|
|
83
|
-
return __assign({}, result, additionalValidator);
|
|
85
|
+
return __assign(__assign({}, result), additionalValidator);
|
|
84
86
|
}, [endAfterStartValidator, fields.end, fields.start, requiredValidator, startAfterEndValidator, validator]);
|
|
85
87
|
return canUseDOM
|
|
86
88
|
? ReactDOM.createPortal((React.createElement(Form, __assign({ initialValues: props.dataItem, onSubmit: handleSubmit, validator: formValidator, render: function (renderProps) { return (React.createElement(Dialog, { title: editorTitleMessage, minWidth: 600, onClose: handleClose, className: "k-scheduler-edit-dialog" },
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -25,7 +25,7 @@ export var NavigationDatePicker = React.forwardRef(function (props, ref) {
|
|
|
25
25
|
var handleChange = React.useCallback(function (event) {
|
|
26
26
|
if (props.onChange) {
|
|
27
27
|
var normalizedValue = ZonedDate.fromUTCDate(toUTCDateTime(event.value), timezone);
|
|
28
|
-
props.onChange.call(undefined, __assign({}, event, { value: normalizedValue }));
|
|
28
|
+
props.onChange.call(undefined, __assign(__assign({}, event), { value: normalizedValue }));
|
|
29
29
|
}
|
|
30
30
|
}, [props.onChange]);
|
|
31
31
|
return (React.createElement(DatePicker, __assign({ ref: ref, dateInput: EMPTY_DATE_INPUT, pickerWrap: EMPTY_PICKER_WRAP, toggleButton: SchedulerNavigationDatePickerToggleButton, width: "auto" }, props, { value: value, onChange: handleChange })));
|
|
@@ -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';
|
|
@@ -46,7 +46,7 @@ export var ViewSelectorList = React.forwardRef(function () {
|
|
|
46
46
|
};
|
|
47
47
|
}, []);
|
|
48
48
|
return (React.createElement("div", { className: "k-scheduler-views-wrapper", ref: element },
|
|
49
|
-
(activeView && media === 'mobile') && (React.createElement(DropDownButton, { className: "k-views-dropdown", onItemClick: handleItemClick, popupSettings: { popupClass: 'k-scheduler-toolbar' }, textField: "title", items: views.map(function (v) { return (__assign({}, v.props, { selected: v.props.name === activeViewName, title: typeof v.props.title === 'function'
|
|
49
|
+
(activeView && media === 'mobile') && (React.createElement(DropDownButton, { className: "k-views-dropdown", onItemClick: handleItemClick, popupSettings: { popupClass: 'k-scheduler-toolbar' }, textField: "title", items: views.map(function (v) { return (__assign(__assign({}, v.props), { selected: v.props.name === activeViewName, title: typeof v.props.title === 'function'
|
|
50
50
|
? v.props.title.call(undefined, localization)
|
|
51
51
|
: v.props.title })); }), text: (React.createElement(React.Fragment, null,
|
|
52
52
|
typeof activeView.props.title === 'function'
|
|
@@ -22,9 +22,9 @@ export interface SchedulerContextProps {
|
|
|
22
22
|
/** @hidden */
|
|
23
23
|
export declare type SchedulerElementContextType = React.RefObject<HTMLElement | null>;
|
|
24
24
|
/** @hidden */
|
|
25
|
-
export declare const SchedulerElementContext: React.Context<
|
|
25
|
+
export declare const SchedulerElementContext: React.Context<SchedulerElementContextType>;
|
|
26
26
|
/** @hidden */
|
|
27
|
-
export declare const useSchedulerElementContext: () =>
|
|
27
|
+
export declare const useSchedulerElementContext: () => SchedulerElementContextType;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies the result of the [useSchedulerPropsContext]({% slug api_scheduler_useschedulerpropscontext %}) and [SchedulerPropsContext]({% slug api_scheduler_schedulerpropscontext %}).
|
|
30
30
|
*/
|
|
@@ -42,7 +42,7 @@ export declare const SchedulerPropsContext: React.Context<SchedulerProps>;
|
|
|
42
42
|
*
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare const useSchedulerPropsContext: () =>
|
|
45
|
+
export declare const useSchedulerPropsContext: () => SchedulerPropsContextType;
|
|
46
46
|
/**
|
|
47
47
|
* Specifies the result of the [useSchedulerViewsContext]({% slug api_scheduler_useschedulerviewscontext %}) and [SchedulerViewsContext]({% slug api_scheduler_schedulerviewscontext %}).
|
|
48
48
|
*/
|
|
@@ -52,7 +52,7 @@ export declare type SchedulerViewsContextType = SchedulerView[];
|
|
|
52
52
|
*
|
|
53
53
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
54
54
|
*/
|
|
55
|
-
export declare const SchedulerViewsContext: React.Context<
|
|
55
|
+
export declare const SchedulerViewsContext: React.Context<SchedulerViewsContextType>;
|
|
56
56
|
/**
|
|
57
57
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the available Scheduler [views]({% slug views_scheduler %}).
|
|
58
58
|
*
|
|
@@ -60,7 +60,7 @@ export declare const SchedulerViewsContext: React.Context<React.ReactElement<imp
|
|
|
60
60
|
*
|
|
61
61
|
* @returns
|
|
62
62
|
*/
|
|
63
|
-
export declare const useSchedulerViewsContext: () =>
|
|
63
|
+
export declare const useSchedulerViewsContext: () => SchedulerViewsContextType;
|
|
64
64
|
/**
|
|
65
65
|
* Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
|
|
66
66
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const SchedulerFieldsContext: React.Context<Fields>;
|
|
|
78
78
|
*
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
|
-
export declare const useSchedulerFieldsContext: () =>
|
|
81
|
+
export declare const useSchedulerFieldsContext: () => SchedulerFieldsContextType;
|
|
82
82
|
/**
|
|
83
83
|
* Specifies the result of the [useSchedulerFieldsContext]({% slug api_scheduler_useschedulerfieldscontext %}) and [SchedulerFieldsContext]({% slug api_scheduler_schedulerfieldscontext %}).
|
|
84
84
|
*/
|
|
@@ -109,7 +109,7 @@ export declare type SchedulerGroupsContextType = Group[];
|
|
|
109
109
|
*
|
|
110
110
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
111
111
|
*/
|
|
112
|
-
export declare const SchedulerGroupsContext: React.Context<
|
|
112
|
+
export declare const SchedulerGroupsContext: React.Context<SchedulerGroupsContextType>;
|
|
113
113
|
/**
|
|
114
114
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources).
|
|
115
115
|
*
|
|
@@ -117,7 +117,7 @@ export declare const SchedulerGroupsContext: React.Context<Group[]>;
|
|
|
117
117
|
*
|
|
118
118
|
* @returns
|
|
119
119
|
*/
|
|
120
|
-
export declare const useSchedulerGroupsContext: () =>
|
|
120
|
+
export declare const useSchedulerGroupsContext: () => SchedulerGroupsContextType;
|
|
121
121
|
/**
|
|
122
122
|
* Specifies the result of the [useSchedulerDateRangeContext]({% slug api_scheduler_useschedulerdaterangecontext %}) and [SchedulerDateRangeContext]({% slug api_scheduler_schedulerdaterangecontext %}).
|
|
123
123
|
*/
|
|
@@ -135,7 +135,7 @@ export declare const SchedulerDateRangeContext: React.Context<DateRange>;
|
|
|
135
135
|
*
|
|
136
136
|
* @returns
|
|
137
137
|
*/
|
|
138
|
-
export declare const useSchedulerDateRangeContext: () =>
|
|
138
|
+
export declare const useSchedulerDateRangeContext: () => SchedulerDateRangeContextType;
|
|
139
139
|
/**
|
|
140
140
|
* Specifies the result of the [useSchedulerOrientationContext]({% slug api_scheduler_useschedulerorientationcontext %}) and [SchedulerOrientationContext]({% slug api_scheduler_schedulerorientationcontext %}).
|
|
141
141
|
*/
|
|
@@ -145,7 +145,7 @@ export declare type SchedulerOrientationContextType = Orientation;
|
|
|
145
145
|
*
|
|
146
146
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
147
147
|
*/
|
|
148
|
-
export declare const SchedulerOrientationContext: React.Context<
|
|
148
|
+
export declare const SchedulerOrientationContext: React.Context<Orientation>;
|
|
149
149
|
/**
|
|
150
150
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the grouping orientation of the Scheduler.
|
|
151
151
|
*
|
|
@@ -153,7 +153,7 @@ export declare const SchedulerOrientationContext: React.Context<"horizontal" | "
|
|
|
153
153
|
*
|
|
154
154
|
* @returns
|
|
155
155
|
*/
|
|
156
|
-
export declare const useSchedulerOrientationContext: () =>
|
|
156
|
+
export declare const useSchedulerOrientationContext: () => SchedulerOrientationContextType;
|
|
157
157
|
/**
|
|
158
158
|
* Specifies the result of the [useSchedulerDateContext]({% slug api_scheduler_useschedulerdatecontext %}) and [SchedulerDateContext]({% slug api_scheduler_schedulerdatecontext %}).
|
|
159
159
|
*/
|
|
@@ -163,7 +163,7 @@ export declare type SchedulerDateContextType = [Date, (date: Date, event?: any)
|
|
|
163
163
|
*
|
|
164
164
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
165
165
|
*/
|
|
166
|
-
export declare const SchedulerDateContext: React.Context<
|
|
166
|
+
export declare const SchedulerDateContext: React.Context<SchedulerDateContextType>;
|
|
167
167
|
/**
|
|
168
168
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `date` state.
|
|
169
169
|
*
|
|
@@ -171,7 +171,7 @@ export declare const SchedulerDateContext: React.Context<[Date, (date: Date, eve
|
|
|
171
171
|
*
|
|
172
172
|
* @returns
|
|
173
173
|
*/
|
|
174
|
-
export declare const useSchedulerDateContext: () =>
|
|
174
|
+
export declare const useSchedulerDateContext: () => SchedulerDateContextType;
|
|
175
175
|
/**
|
|
176
176
|
* Specifies the result of the [useSchedulerDataContext]({% slug api_scheduler_useschedulerdatacontext %}) and [SchedulerDataContext]({% slug api_scheduler_schedulerdatacontext %}).
|
|
177
177
|
*/
|
|
@@ -181,7 +181,7 @@ export declare type SchedulerDataContextType = [DataItem[], (action: DataAction,
|
|
|
181
181
|
*
|
|
182
182
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
183
183
|
*/
|
|
184
|
-
export declare const SchedulerDataContext: React.Context<
|
|
184
|
+
export declare const SchedulerDataContext: React.Context<SchedulerDataContextType>;
|
|
185
185
|
/**
|
|
186
186
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `data` reducer.
|
|
187
187
|
*
|
|
@@ -189,7 +189,7 @@ export declare const SchedulerDataContext: React.Context<[any[], (action: DataAc
|
|
|
189
189
|
*
|
|
190
190
|
* @returns
|
|
191
191
|
*/
|
|
192
|
-
export declare const useSchedulerDataContext: () =>
|
|
192
|
+
export declare const useSchedulerDataContext: () => SchedulerDataContextType;
|
|
193
193
|
/**
|
|
194
194
|
* Specifies the result of the [useSchedulerActiveViewContext]({% slug api_scheduler_usescheduleractiveviewcontext %}) and [SchedulerActiveViewContext]({% slug api_scheduler_scheduleractiveviewcontext %}).
|
|
195
195
|
*/
|
|
@@ -199,7 +199,7 @@ export declare type SchedulerActiveViewContextType = [string, (activeView: strin
|
|
|
199
199
|
*
|
|
200
200
|
* For more information, refer to the [Scheduler Context]({% slug context_scheduler %}) article.
|
|
201
201
|
*/
|
|
202
|
-
export declare const SchedulerActiveViewContext: React.Context<
|
|
202
|
+
export declare const SchedulerActiveViewContext: React.Context<SchedulerActiveViewContextType>;
|
|
203
203
|
/**
|
|
204
204
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the Scheduler internal `activeView` state.
|
|
205
205
|
*
|
|
@@ -207,6 +207,6 @@ export declare const SchedulerActiveViewContext: React.Context<[string, (activeV
|
|
|
207
207
|
*
|
|
208
208
|
* @returns
|
|
209
209
|
*/
|
|
210
|
-
export declare const useSchedulerActiveViewContext: () =>
|
|
210
|
+
export declare const useSchedulerActiveViewContext: () => SchedulerActiveViewContextType;
|
|
211
211
|
/** @hidden */
|
|
212
212
|
export declare const SchedulerContext: ({ children, element, props, views, fields, groups, dateRange, dateFormat, orientation, date, data, activeView }: SchedulerContextProps) => JSX.Element;
|
|
@@ -31,7 +31,7 @@ export declare const SchedulerEditItemPropsContext: React.Context<SchedulerEditI
|
|
|
31
31
|
*
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
|
-
export declare const useSchedulerEditItemPropsContext: () =>
|
|
34
|
+
export declare const useSchedulerEditItemPropsContext: () => SchedulerEditItemPropsContextType;
|
|
35
35
|
/**
|
|
36
36
|
* Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
|
|
37
37
|
*/
|
|
@@ -45,11 +45,7 @@ export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (ne
|
|
|
45
45
|
*
|
|
46
46
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
47
47
|
*/
|
|
48
|
-
export declare const SchedulerEditItemFormItemContext: React.Context<
|
|
49
|
-
preventDefault: any;
|
|
50
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
51
|
-
preventDefault: any;
|
|
52
|
-
}) => void]>;
|
|
48
|
+
export declare const SchedulerEditItemFormItemContext: React.Context<SchedulerEditItemFormItemContextType>;
|
|
53
49
|
/**
|
|
54
50
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `formItem` state.
|
|
55
51
|
*
|
|
@@ -57,11 +53,7 @@ export declare const SchedulerEditItemFormItemContext: React.Context<[any, (newV
|
|
|
57
53
|
*
|
|
58
54
|
* @returns
|
|
59
55
|
*/
|
|
60
|
-
export declare const useSchedulerEditItemFormItemContext: () =>
|
|
61
|
-
preventDefault: any;
|
|
62
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
63
|
-
preventDefault: any;
|
|
64
|
-
}) => void];
|
|
56
|
+
export declare const useSchedulerEditItemFormItemContext: () => SchedulerEditItemFormItemContextType;
|
|
65
57
|
/**
|
|
66
58
|
* Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
|
|
67
59
|
*/
|
|
@@ -75,11 +67,7 @@ export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (ne
|
|
|
75
67
|
*
|
|
76
68
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
77
69
|
*/
|
|
78
|
-
export declare const SchedulerEditItemDragItemContext: React.Context<
|
|
79
|
-
preventDefault: any;
|
|
80
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
81
|
-
preventDefault: any;
|
|
82
|
-
}) => void]>;
|
|
70
|
+
export declare const SchedulerEditItemDragItemContext: React.Context<SchedulerEditItemDragItemContextType>;
|
|
83
71
|
/**
|
|
84
72
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `dragItem` state.
|
|
85
73
|
*
|
|
@@ -87,11 +75,7 @@ export declare const SchedulerEditItemDragItemContext: React.Context<[any, (newV
|
|
|
87
75
|
*
|
|
88
76
|
* @returns
|
|
89
77
|
*/
|
|
90
|
-
export declare const useSchedulerEditItemDragItemContext: () =>
|
|
91
|
-
preventDefault: any;
|
|
92
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
93
|
-
preventDefault: any;
|
|
94
|
-
}) => void];
|
|
78
|
+
export declare const useSchedulerEditItemDragItemContext: () => SchedulerEditItemDragItemContextType;
|
|
95
79
|
/**
|
|
96
80
|
* Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
|
|
97
81
|
*/
|
|
@@ -105,11 +89,7 @@ export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (
|
|
|
105
89
|
*
|
|
106
90
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
107
91
|
*/
|
|
108
|
-
export declare const SchedulerEditItemResizeItemContext: React.Context<
|
|
109
|
-
preventDefault: any;
|
|
110
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
111
|
-
preventDefault: any;
|
|
112
|
-
}) => void]>;
|
|
92
|
+
export declare const SchedulerEditItemResizeItemContext: React.Context<SchedulerEditItemResizeItemContextType>;
|
|
113
93
|
/**
|
|
114
94
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `resizeItem` state.
|
|
115
95
|
*
|
|
@@ -117,11 +97,7 @@ export declare const SchedulerEditItemResizeItemContext: React.Context<[any, (ne
|
|
|
117
97
|
*
|
|
118
98
|
* @returns
|
|
119
99
|
*/
|
|
120
|
-
export declare const useSchedulerEditItemResizeItemContext: () =>
|
|
121
|
-
preventDefault: any;
|
|
122
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
123
|
-
preventDefault: any;
|
|
124
|
-
}) => void];
|
|
100
|
+
export declare const useSchedulerEditItemResizeItemContext: () => SchedulerEditItemResizeItemContextType;
|
|
125
101
|
/**
|
|
126
102
|
* Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
|
|
127
103
|
*/
|
|
@@ -135,11 +111,7 @@ export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (
|
|
|
135
111
|
*
|
|
136
112
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
137
113
|
*/
|
|
138
|
-
export declare const SchedulerEditItemRemoveItemContext: React.Context<
|
|
139
|
-
preventDefault: any;
|
|
140
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
141
|
-
preventDefault: any;
|
|
142
|
-
}) => void]>;
|
|
114
|
+
export declare const SchedulerEditItemRemoveItemContext: React.Context<SchedulerEditItemRemoveItemContextType>;
|
|
143
115
|
/**
|
|
144
116
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `removeItem` state.
|
|
145
117
|
*
|
|
@@ -147,11 +119,7 @@ export declare const SchedulerEditItemRemoveItemContext: React.Context<[any, (ne
|
|
|
147
119
|
*
|
|
148
120
|
* @returns
|
|
149
121
|
*/
|
|
150
|
-
export declare const useSchedulerEditItemRemoveItemContext: () =>
|
|
151
|
-
preventDefault: any;
|
|
152
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
153
|
-
preventDefault: any;
|
|
154
|
-
}) => void];
|
|
122
|
+
export declare const useSchedulerEditItemRemoveItemContext: () => SchedulerEditItemRemoveItemContextType;
|
|
155
123
|
/**
|
|
156
124
|
* Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
|
|
157
125
|
*/
|
|
@@ -165,11 +133,7 @@ export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (ne
|
|
|
165
133
|
*
|
|
166
134
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
167
135
|
*/
|
|
168
|
-
export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<
|
|
169
|
-
preventDefault: any;
|
|
170
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
171
|
-
preventDefault: any;
|
|
172
|
-
}) => void]>;
|
|
136
|
+
export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<SchedulerEditItemShowRemoveDialogContextType>;
|
|
173
137
|
/**
|
|
174
138
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showRemoveDialog` state.
|
|
175
139
|
*
|
|
@@ -177,11 +141,7 @@ export declare const SchedulerEditItemShowRemoveDialogContext: React.Context<[bo
|
|
|
177
141
|
*
|
|
178
142
|
* @returns
|
|
179
143
|
*/
|
|
180
|
-
export declare const useSchedulerEditItemShowRemoveDialogContext: () =>
|
|
181
|
-
preventDefault: any;
|
|
182
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
183
|
-
preventDefault: any;
|
|
184
|
-
}) => void];
|
|
144
|
+
export declare const useSchedulerEditItemShowRemoveDialogContext: () => SchedulerEditItemShowRemoveDialogContextType;
|
|
185
145
|
/**
|
|
186
146
|
* Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
|
|
187
147
|
*/
|
|
@@ -195,11 +155,7 @@ export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean,
|
|
|
195
155
|
*
|
|
196
156
|
* For more information, refer to the [Items Context]({% slug state-update_items_scheduler %}) article.
|
|
197
157
|
*/
|
|
198
|
-
export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context<
|
|
199
|
-
preventDefault: any;
|
|
200
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
201
|
-
preventDefault: any;
|
|
202
|
-
}) => void]>;
|
|
158
|
+
export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context<SchedulerEditItemShowOccurrenceDialogContextType>;
|
|
203
159
|
/**
|
|
204
160
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditItem]({% slug edit-item_items_scheduler %}) internal `showOccurrenceDialog` state.
|
|
205
161
|
*
|
|
@@ -207,10 +163,6 @@ export declare const SchedulerEditItemShowOccurrenceDialogContext: React.Context
|
|
|
207
163
|
*
|
|
208
164
|
* @returns
|
|
209
165
|
*/
|
|
210
|
-
export declare const useSchedulerEditItemShowOccurrenceDialogContext: () =>
|
|
211
|
-
preventDefault: any;
|
|
212
|
-
}) => void, (action: SchedulerItemFormItemAction, event?: React.SyntheticEvent<Element, Event> | BaseEvent<any> | {
|
|
213
|
-
preventDefault: any;
|
|
214
|
-
}) => void];
|
|
166
|
+
export declare const useSchedulerEditItemShowOccurrenceDialogContext: () => SchedulerEditItemShowOccurrenceDialogContextType;
|
|
215
167
|
/** @hidden */
|
|
216
168
|
export declare const SchedulerEditItemContext: ({ props, form, drag, resize, remove, showRemoveDialog, showOccurrenceDialog, children }: SchedulerEditItemContextProps) => JSX.Element;
|
|
@@ -24,7 +24,7 @@ export declare const SchedulerEditSlotPropsContext: React.Context<SchedulerEditS
|
|
|
24
24
|
*
|
|
25
25
|
* @returns
|
|
26
26
|
*/
|
|
27
|
-
export declare const useSchedulerEditSlotPropsContext: () =>
|
|
27
|
+
export declare const useSchedulerEditSlotPropsContext: () => SchedulerEditSlotPropsContextType;
|
|
28
28
|
/**
|
|
29
29
|
* Specifies the result of the [useSchedulerEditSlotFormItemContext]({% slug api_scheduler_useschedulereditslotformitemcontext %}) and [SchedulerEditSlotFormItemContext]({% slug api_scheduler_schedulereditslotformitemcontext %}).
|
|
30
30
|
*/
|
|
@@ -34,7 +34,7 @@ export declare type SchedulerEditSlotFormItemContextType = [DataItem | null, (ev
|
|
|
34
34
|
*
|
|
35
35
|
* For more information, refer to the [Slots Context]({% slug state-update_slots_scheduler %}) article.
|
|
36
36
|
*/
|
|
37
|
-
export declare const SchedulerEditSlotFormItemContext: React.Context<
|
|
37
|
+
export declare const SchedulerEditSlotFormItemContext: React.Context<SchedulerEditSlotFormItemContextType>;
|
|
38
38
|
/**
|
|
39
39
|
* A custom [React Hook](https://reactjs.org/docs/hooks-intro.html) providing access to the [SchedulerEditSlot]({% slug api_scheduler_schedulereditslot %}) internal `formItem` state.
|
|
40
40
|
*
|
|
@@ -42,6 +42,6 @@ export declare const SchedulerEditSlotFormItemContext: React.Context<[any, (even
|
|
|
42
42
|
*
|
|
43
43
|
* @returns
|
|
44
44
|
*/
|
|
45
|
-
export declare const useSchedulerEditSlotFormItemContext: () =>
|
|
45
|
+
export declare const useSchedulerEditSlotFormItemContext: () => SchedulerEditSlotFormItemContextType;
|
|
46
46
|
/** @hidden */
|
|
47
47
|
export declare const SchedulerEditSlotContext: ({ props, form, children }: SchedulerEditSlotContextProps) => JSX.Element;
|
|
@@ -10,20 +10,20 @@ export interface SchedulerEditTaskContextProps {
|
|
|
10
10
|
/** @hidden */
|
|
11
11
|
export declare type SchedulerEditTaskRemoveItemContextType = [DataItem | null, (event?: any) => void];
|
|
12
12
|
/** @hidden */
|
|
13
|
-
export declare const SchedulerEditTaskRemoveItemContext: React.Context<
|
|
13
|
+
export declare const SchedulerEditTaskRemoveItemContext: React.Context<SchedulerEditTaskRemoveItemContextType>;
|
|
14
14
|
/** @hidden */
|
|
15
|
-
export declare const useSchedulerEditTaskRemoveItemContext: () =>
|
|
15
|
+
export declare const useSchedulerEditTaskRemoveItemContext: () => SchedulerEditTaskRemoveItemContextType;
|
|
16
16
|
/** @hidden */
|
|
17
17
|
export declare type SchedulerEditTaskShowRemoveDialogContextType = [boolean, (event?: any) => void];
|
|
18
18
|
/** @hidden */
|
|
19
|
-
export declare const SchedulerEditTaskShowRemoveDialogContext: React.Context<
|
|
19
|
+
export declare const SchedulerEditTaskShowRemoveDialogContext: React.Context<SchedulerEditTaskShowRemoveDialogContextType>;
|
|
20
20
|
/** @hidden */
|
|
21
|
-
export declare const useSchedulerEditTaskShowRemoveDialogContext: () =>
|
|
21
|
+
export declare const useSchedulerEditTaskShowRemoveDialogContext: () => SchedulerEditTaskShowRemoveDialogContextType;
|
|
22
22
|
/** @hidden */
|
|
23
23
|
export declare type SchedulerEditTaskShowOccurrenceDialogContextType = [boolean, (event?: any) => void];
|
|
24
24
|
/** @hidden */
|
|
25
|
-
export declare const SchedulerEditTaskShowOccurrenceDialogContext: React.Context<
|
|
25
|
+
export declare const SchedulerEditTaskShowOccurrenceDialogContext: React.Context<SchedulerEditTaskShowOccurrenceDialogContextType>;
|
|
26
26
|
/** @hidden */
|
|
27
|
-
export declare const useSchedulerEditTaskShowOccurrenceDialogContext: () =>
|
|
27
|
+
export declare const useSchedulerEditTaskShowOccurrenceDialogContext: () => SchedulerEditTaskShowOccurrenceDialogContextType;
|
|
28
28
|
/** @hidden */
|
|
29
29
|
export declare const SchedulerEditTaskContext: (props: SchedulerEditTaskContextProps) => JSX.Element;
|