@progress/kendo-react-scheduler 7.1.0-develop.1 → 7.1.0-develop.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Scheduler.d.ts +11 -0
- package/components/DateHeaderCell.d.ts +4 -0
- package/components/SchedulerForm.d.ts +4 -0
- package/components/TimeHeaderCell.d.ts +4 -0
- package/dist/cdn/js/kendo-react-scheduler.js +1 -1
- package/editors/SchedulerFormEditor.d.ts +253 -1
- package/index.d.ts +22 -22
- package/index.js +1 -1
- package/index.mjs +167 -146
- package/items/SchedulerEditItem.d.ts +93 -6
- package/items/SchedulerProportionalViewItem.d.ts +4 -0
- package/items/SchedulerViewItem.d.ts +4 -1
- package/package.json +10 -10
- package/slots/SchedulerEditSlot.d.ts +4 -0
- package/slots/SchedulerSlot.d.ts +4 -0
- package/slots/SchedulerViewSlot.d.ts +5 -1
- package/tasks/SchedulerEditTask.d.ts +5 -0
- package/tasks/SchedulerViewTask.d.ts +3 -0
- package/views/common/SchedulerDrag.d.ts +4 -0
- package/views/common/SchedulerResize.d.ts +4 -0
|
@@ -12,12 +12,12 @@ import { SchedulerDragProps } from '../views/common/SchedulerDrag';
|
|
|
12
12
|
import { SchedulerResizeProps } from '../views/common/SchedulerResize';
|
|
13
13
|
import { SchedulerViewItemProps } from './SchedulerViewItem';
|
|
14
14
|
import { SchedulerItemsFocusAction, SchedulerSlotsFocusAction } from '../hooks';
|
|
15
|
-
import { SchedulerItemFormItemAction } from './hooks/use-form-item';
|
|
16
|
-
import { SchedulerItemShowOccurrenceDialogAction } from './hooks/use-show-occurrence-dialog';
|
|
17
|
-
import { SchedulerItemRemoveItemAction } from './hooks/use-remove-item';
|
|
18
|
-
import { SchedulerItemShowRemoveDialogAction } from './hooks/use-show-remove-item-dialog';
|
|
19
|
-
import { SchedulerItemDragItemAction } from './hooks/use-drag-item';
|
|
20
|
-
import { SchedulerItemResizeItemAction } from './hooks/use-resize-item';
|
|
15
|
+
import { FORM_ITEM_ACTION, SchedulerItemFormItemAction } from './hooks/use-form-item';
|
|
16
|
+
import { SchedulerItemShowOccurrenceDialogAction, SHOW_OCCURRENCE_DIALOG_ACTION } from './hooks/use-show-occurrence-dialog';
|
|
17
|
+
import { REMOVE_ITEM_ACTION, SchedulerItemRemoveItemAction } from './hooks/use-remove-item';
|
|
18
|
+
import { SchedulerItemShowRemoveDialogAction, SHOW_REMOVE_DIALOG_ACTION } from './hooks/use-show-remove-item-dialog';
|
|
19
|
+
import { DRAG_ITEM_ACTION, SchedulerItemDragItemAction } from './hooks/use-drag-item';
|
|
20
|
+
import { RESIZE_ITEM_ACTION, SchedulerItemResizeItemAction } from './hooks/use-resize-item';
|
|
21
21
|
import { SchedulerItemSeriesAction } from './hooks/use-series';
|
|
22
22
|
import { SchedulerItemsSelectAction } from '../hooks/use-items-selection';
|
|
23
23
|
import { SchedulerSlotsSelectAction } from '../hooks/use-slots-selection';
|
|
@@ -328,3 +328,90 @@ export interface SchedulerEditItemHandle {
|
|
|
328
328
|
* This is a composite component of the [`SchedulerViewItem`]({% slug api_scheduler_schedulerviewitem %}), extending it to provide editing through drag, resize and external form.
|
|
329
329
|
*/
|
|
330
330
|
export declare const SchedulerEditItem: React.ForwardRefExoticComponent<SchedulerEditItemProps & React.RefAttributes<SchedulerEditItemHandle>>;
|
|
331
|
+
export declare const schedulerEditItemDefaultProps: {
|
|
332
|
+
viewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<import("./SchedulerViewItem").SchedulerViewItemHandle>>;
|
|
333
|
+
drag: React.FunctionComponent<SchedulerDragProps>;
|
|
334
|
+
resize: React.FunctionComponent<SchedulerResizeProps>;
|
|
335
|
+
form: React.ForwardRefExoticComponent<SchedulerFormProps & React.RefAttributes<import("../components/SchedulerForm").SchedulerFormHandle | null>>;
|
|
336
|
+
occurrenceDialog: React.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React.RefAttributes<import("../components/SchedulerOccurrenceDialog").SchedulerOccurrenceDialogHandle | null>>;
|
|
337
|
+
removeDialog: React.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React.RefAttributes<import("../components/SchedulerRemoveDialog").SchedulerRemoveDialogHandle | null>>;
|
|
338
|
+
onClickAction: (event: SchedulerItemMouseEvent, _: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
339
|
+
onDoubleClickAction: (_: any, props: SchedulerEditItemProps) => (false | {
|
|
340
|
+
type: FORM_ITEM_ACTION;
|
|
341
|
+
payload: any;
|
|
342
|
+
} | {
|
|
343
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
344
|
+
payload?: undefined;
|
|
345
|
+
})[];
|
|
346
|
+
onRemoveClickAction: (_: any, props: SchedulerEditItemProps) => ({
|
|
347
|
+
type: REMOVE_ITEM_ACTION;
|
|
348
|
+
payload: any;
|
|
349
|
+
} | {
|
|
350
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
351
|
+
payload?: undefined;
|
|
352
|
+
} | {
|
|
353
|
+
type: SHOW_REMOVE_DIALOG_ACTION;
|
|
354
|
+
payload?: undefined;
|
|
355
|
+
})[];
|
|
356
|
+
onPressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
357
|
+
type: DRAG_ITEM_ACTION;
|
|
358
|
+
payload: {
|
|
359
|
+
x: number;
|
|
360
|
+
y: number;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
onDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
364
|
+
type: DRAG_ITEM_ACTION;
|
|
365
|
+
payload: {
|
|
366
|
+
x: number;
|
|
367
|
+
y: number;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
onReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
371
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
372
|
+
payload?: undefined;
|
|
373
|
+
} | {
|
|
374
|
+
type: DRAG_ITEM_ACTION;
|
|
375
|
+
payload: {
|
|
376
|
+
x: number;
|
|
377
|
+
y: number;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
onResizePressAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
381
|
+
type: RESIZE_ITEM_ACTION;
|
|
382
|
+
payload: {
|
|
383
|
+
x: number;
|
|
384
|
+
y: number;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
onResizeStartDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
388
|
+
type: RESIZE_ITEM_ACTION;
|
|
389
|
+
payload: {
|
|
390
|
+
x: number;
|
|
391
|
+
y: number;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
onResizeEndDragAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps) => never[] | {
|
|
395
|
+
type: RESIZE_ITEM_ACTION;
|
|
396
|
+
payload: {
|
|
397
|
+
x: number;
|
|
398
|
+
y: number;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
onResizeReleaseAction: (event: SchedulerItemDragEvent, props: SchedulerEditItemProps, state: SchedulerEditItemState) => never[] | {
|
|
402
|
+
type: SHOW_OCCURRENCE_DIALOG_ACTION;
|
|
403
|
+
payload?: undefined;
|
|
404
|
+
} | {
|
|
405
|
+
type: RESIZE_ITEM_ACTION;
|
|
406
|
+
payload: {
|
|
407
|
+
x: number;
|
|
408
|
+
y: number;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
onOccurrenceClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
412
|
+
onSeriesClickAction: (_event: SchedulerOccurrenceDialogStateChangeEvent<any>, props: SchedulerEditItemProps, state: SchedulerEditItemState) => SchedulerEditItemAction[];
|
|
413
|
+
onKeyDownAction: (event: SchedulerItemKeyboardEvent, props: SchedulerEditItemProps) => SchedulerEditItemAction | (SchedulerEditItemAction)[];
|
|
414
|
+
onFormSubmitAction: (event: SchedulerFormStateChangeEvent<DataItem | null>) => SchedulerEditItemAction[];
|
|
415
|
+
onRemoveConfirmAction: () => SchedulerEditItemAction[];
|
|
416
|
+
onCancelAction: () => SchedulerEditItemAction[];
|
|
417
|
+
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
import { SchedulerItemProps, SchedulerItemHandle } from './SchedulerItem';
|
|
6
7
|
import { SchedulerViewItemHandle, SchedulerViewItemProps } from './SchedulerViewItem';
|
|
7
8
|
/**
|
|
8
9
|
* Represents a customized `viewItem` component which position itself proportionally to the duration of the item.
|
|
@@ -10,3 +11,6 @@ import { SchedulerViewItemHandle, SchedulerViewItemProps } from './SchedulerView
|
|
|
10
11
|
* This is a composite component of the [`SchedulerItem`]({% slug api_scheduler_scheduleritem %}), extending it to provide extended positioning inside a view.
|
|
11
12
|
*/
|
|
12
13
|
export declare const SchedulerProportionalViewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<SchedulerViewItemHandle>>;
|
|
14
|
+
export declare const schedulerProportionalViewItemDefaultProps: {
|
|
15
|
+
item: React.ForwardRefExoticComponent<SchedulerItemProps & React.RefAttributes<SchedulerItemHandle>>;
|
|
16
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { SchedulerItemProps } from './SchedulerItem';
|
|
6
|
+
import { SchedulerItemProps, SchedulerItemHandle } from './SchedulerItem';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the props of the KendoReact [SchedulerViewItem]({% slug api_scheduler_schedulerviewitem %}) component.
|
|
9
9
|
*/
|
|
@@ -32,3 +32,6 @@ export interface SchedulerViewItemHandle {
|
|
|
32
32
|
* This is a composite component of the [`SchedulerItem`]({% slug api_scheduler_scheduleritem %}), extending it to provide proper positioning inside a view.
|
|
33
33
|
*/
|
|
34
34
|
export declare const SchedulerViewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<SchedulerViewItemHandle>>;
|
|
35
|
+
export declare const schedulerViewItemDefaultProps: {
|
|
36
|
+
item: React.ForwardRefExoticComponent<SchedulerItemProps & React.RefAttributes<SchedulerItemHandle>>;
|
|
37
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-scheduler",
|
|
3
|
-
"version": "7.1.0-develop.
|
|
3
|
+
"version": "7.1.0-develop.5",
|
|
4
4
|
"description": "React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@progress/kendo-date-math": "^1.4.1",
|
|
27
27
|
"@progress/kendo-drawing": "^1.19.0",
|
|
28
28
|
"@progress/kendo-licensing": "^1.3.4",
|
|
29
|
-
"@progress/kendo-react-buttons": "7.1.0-develop.
|
|
30
|
-
"@progress/kendo-react-common": "7.1.0-develop.
|
|
31
|
-
"@progress/kendo-react-dateinputs": "7.1.0-develop.
|
|
32
|
-
"@progress/kendo-react-dialogs": "7.1.0-develop.
|
|
33
|
-
"@progress/kendo-react-dropdowns": "7.1.0-develop.
|
|
34
|
-
"@progress/kendo-react-form": "7.1.0-develop.
|
|
35
|
-
"@progress/kendo-react-inputs": "7.1.0-develop.
|
|
36
|
-
"@progress/kendo-react-intl": "7.1.0-develop.
|
|
37
|
-
"@progress/kendo-react-popup": "7.1.0-develop.
|
|
29
|
+
"@progress/kendo-react-buttons": "7.1.0-develop.5",
|
|
30
|
+
"@progress/kendo-react-common": "7.1.0-develop.5",
|
|
31
|
+
"@progress/kendo-react-dateinputs": "7.1.0-develop.5",
|
|
32
|
+
"@progress/kendo-react-dialogs": "7.1.0-develop.5",
|
|
33
|
+
"@progress/kendo-react-dropdowns": "7.1.0-develop.5",
|
|
34
|
+
"@progress/kendo-react-form": "7.1.0-develop.5",
|
|
35
|
+
"@progress/kendo-react-inputs": "7.1.0-develop.5",
|
|
36
|
+
"@progress/kendo-react-intl": "7.1.0-develop.5",
|
|
37
|
+
"@progress/kendo-react-popup": "7.1.0-develop.5",
|
|
38
38
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
39
39
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
40
40
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
@@ -50,3 +50,7 @@ export interface SchedulerEditSlotHandle {
|
|
|
50
50
|
* This is a composite component of the [`SchedulerViewSlot`]({% slug api_scheduler_schedulerviewslot %}), extending it to allow creating an item inside the slot.
|
|
51
51
|
*/
|
|
52
52
|
export declare const SchedulerEditSlot: React.ForwardRefExoticComponent<SchedulerEditSlotProps & React.RefAttributes<SchedulerEditSlotHandle>>;
|
|
53
|
+
export declare const schedulerEditSlotDefaultProps: {
|
|
54
|
+
viewSlot: React.ForwardRefExoticComponent<SchedulerViewSlotProps & React.RefAttributes<import("./SchedulerViewSlot").SchedulerViewSlotHandle>>;
|
|
55
|
+
form: React.ForwardRefExoticComponent<SchedulerFormProps & React.RefAttributes<import("../components/SchedulerForm").SchedulerFormHandle | null>>;
|
|
56
|
+
};
|
package/slots/SchedulerSlot.d.ts
CHANGED
|
@@ -125,3 +125,7 @@ export interface SchedulerSlotHandle {
|
|
|
125
125
|
* Represents the default `slot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
126
126
|
*/
|
|
127
127
|
export declare const SchedulerSlot: React.ForwardRefExoticComponent<SchedulerSlotProps & React.RefAttributes<SchedulerSlotHandle>>;
|
|
128
|
+
export declare const schedulerSlotDefaultProps: {
|
|
129
|
+
isWorkHour: boolean;
|
|
130
|
+
isWorkDay: boolean;
|
|
131
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { SchedulerSlotProps } from './SchedulerSlot';
|
|
6
|
+
import { SchedulerSlotProps, SchedulerSlotHandle } from './SchedulerSlot';
|
|
7
7
|
/**
|
|
8
8
|
* Represents the extended `expandable` configuration of a `SchedulerSlot`.
|
|
9
9
|
*
|
|
@@ -44,3 +44,7 @@ export interface SchedulerViewSlotHandle {
|
|
|
44
44
|
* This is a composite component of the [`SchedulerSlot`]({% slug api_scheduler_schedulerslot %}), extending it to provide additional functionality depending on the view.
|
|
45
45
|
*/
|
|
46
46
|
export declare const SchedulerViewSlot: React.ForwardRefExoticComponent<SchedulerViewSlotProps & React.RefAttributes<SchedulerViewSlotHandle>>;
|
|
47
|
+
export declare const schedulerViewSlotDefaultProps: {
|
|
48
|
+
slot: React.ForwardRefExoticComponent<SchedulerSlotProps & React.RefAttributes<SchedulerSlotHandle>>;
|
|
49
|
+
expandable: boolean;
|
|
50
|
+
};
|
|
@@ -77,3 +77,8 @@ export interface SchedulerEditTaskHandle {
|
|
|
77
77
|
* This is a composite component of the [`SchedulerViewTask`]({% slug api_scheduler_schedulerviewtask %}), extending it to provide the `remove` editing functionality.
|
|
78
78
|
*/
|
|
79
79
|
export declare const SchedulerEditTask: React.ForwardRefExoticComponent<SchedulerEditTaskProps & React.RefAttributes<SchedulerEditTaskHandle>>;
|
|
80
|
+
export declare const schedulerEditTaskDefaultProps: {
|
|
81
|
+
viewTask: React.ForwardRefExoticComponent<SchedulerViewTaskProps & React.RefAttributes<import("./SchedulerViewTask").SchedulerViewTaskHandle>>;
|
|
82
|
+
occurrenceDialog: React.ForwardRefExoticComponent<SchedulerOccurrenceDialogProps & React.RefAttributes<import("../components/SchedulerOccurrenceDialog").SchedulerOccurrenceDialogHandle | null>>;
|
|
83
|
+
removeDialog: React.ForwardRefExoticComponent<SchedulerRemoveDialogProps & React.RefAttributes<import("../components/SchedulerRemoveDialog").SchedulerRemoveDialogHandle | null>>;
|
|
84
|
+
};
|
|
@@ -30,3 +30,6 @@ export interface SchedulerViewTaskHandle {
|
|
|
30
30
|
* This is a composite component of the [`SchedulerTask`]({% slug api_scheduler_schedulertask %}).
|
|
31
31
|
*/
|
|
32
32
|
export declare const SchedulerViewTask: React.ForwardRefExoticComponent<SchedulerViewTaskProps & React.RefAttributes<SchedulerViewTaskHandle>>;
|
|
33
|
+
export declare const schedulerViewTaskDefaultProps: {
|
|
34
|
+
task: React.ForwardRefExoticComponent<SchedulerTaskProps & React.RefAttributes<import("./SchedulerTask").SchedulerTaskHandle>>;
|
|
35
|
+
};
|
|
@@ -37,3 +37,7 @@ export interface SchedulerDragProps {
|
|
|
37
37
|
* Represents the default `drag` component rendered by the [KendoReact SchedulerEditItem component].
|
|
38
38
|
*/
|
|
39
39
|
export declare const SchedulerDrag: React.FunctionComponent<SchedulerDragProps>;
|
|
40
|
+
export declare const schedulerDragDefaultProps: {
|
|
41
|
+
viewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<import("../../items/SchedulerViewItem").SchedulerViewItemHandle>>;
|
|
42
|
+
item: React.ForwardRefExoticComponent<SchedulerItemProps & React.RefAttributes<import("../../items/SchedulerItem").SchedulerItemHandle>>;
|
|
43
|
+
};
|
|
@@ -39,3 +39,7 @@ export interface SchedulerResizeProps {
|
|
|
39
39
|
* Represents the default `resize` component rendered by the [KendoReact SchedulerEditItem component]().
|
|
40
40
|
*/
|
|
41
41
|
export declare const SchedulerResize: React.FunctionComponent<SchedulerResizeProps>;
|
|
42
|
+
export declare const schedulerResizeDefaultProps: {
|
|
43
|
+
viewItem: React.ForwardRefExoticComponent<SchedulerViewItemProps & React.RefAttributes<import("../../items/SchedulerViewItem").SchedulerViewItemHandle>>;
|
|
44
|
+
item: React.ForwardRefExoticComponent<SchedulerItemProps & React.RefAttributes<import("../../items/SchedulerItem").SchedulerItemHandle>>;
|
|
45
|
+
};
|