@progress/kendo-react-scheduler 7.4.0-develop.9 → 7.4.0

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/index.d.mts CHANGED
@@ -5,7 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { BaseEvent } from '@progress/kendo-react-common';
8
+ import { BaseEvent as BaseEvent_2 } from '@progress/kendo-react-common';
9
9
  import { CheckboxHandle } from '@progress/kendo-react-inputs';
10
10
  import { CheckboxProps } from '@progress/kendo-react-inputs';
11
11
  import { ComboBoxProps } from '@progress/kendo-react-dropdowns';
@@ -63,7 +63,7 @@ export declare const agendaViewDefaultProps: {
63
63
  /**
64
64
  * Represents the properties of the KendoReact [AgendaView]({% slug api_scheduler_agendaview %}) Component.
65
65
  */
66
- declare interface AgendaViewProps extends SchedulerViewProps {
66
+ export declare interface AgendaViewProps extends SchedulerViewProps {
67
67
  /**
68
68
  * The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
69
69
  * The default value is 7 days.
@@ -130,6 +130,13 @@ declare interface AgendaViewProps extends SchedulerViewProps {
130
130
  editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
131
131
  }
132
132
 
133
+ /**
134
+ * @hidden
135
+ **/
136
+ export declare interface BaseEvent<T> {
137
+ target: T;
138
+ }
139
+
133
140
  /**
134
141
  * Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
135
142
  */
@@ -220,7 +227,7 @@ export declare interface DateHeaderCellProps extends React_2.HTMLAttributes<HTML
220
227
  }
221
228
 
222
229
  /** @hidden */
223
- declare interface DateRange {
230
+ export declare interface DateRange {
224
231
  start: Date;
225
232
  end: Date;
226
233
  zonedStart: ZonedDate;
@@ -257,7 +264,7 @@ export declare const dayViewDefaultProps: {
257
264
  /**
258
265
  * Represents the properties of the [DayView]({% slug api_scheduler_dayviewprops %}) Component.
259
266
  */
260
- declare interface DayViewProps extends MultiDayViewProps {
267
+ export declare interface DayViewProps extends MultiDayViewProps {
261
268
  }
262
269
 
263
270
  /**
@@ -287,7 +294,7 @@ export declare enum DRAG_ITEM_ACTION {
287
294
  /**
288
295
  * The editable settings of the Scheduler.
289
296
  */
290
- declare interface EditableProp {
297
+ export declare interface EditableProp {
291
298
  /**
292
299
  * Specifies if the events can be removed by using a **Remove** icon.
293
300
  */
@@ -317,7 +324,7 @@ declare interface EditableProp {
317
324
  /**
318
325
  * Represents the combined object of the default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc)
319
326
  */
320
- declare interface Fields {
327
+ export declare interface Fields {
321
328
  id: string;
322
329
  start: string;
323
330
  startTimezone: string;
@@ -343,7 +350,7 @@ declare enum FORM_ITEM_ACTION {
343
350
  /**
344
351
  * Represents the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources)
345
352
  */
346
- declare interface Group {
353
+ export declare interface Group {
347
354
  index: number;
348
355
  resources: SchedulerResource[];
349
356
  }
@@ -409,7 +416,7 @@ declare interface Item extends Occurrence {
409
416
  /**
410
417
  * @hidden
411
418
  */
412
- declare interface ItemDragEvent {
419
+ export declare interface ItemDragEvent {
413
420
  pageX: number;
414
421
  pageY: number;
415
422
  clientX: number;
@@ -476,7 +483,7 @@ export declare const monthViewDefaultProps: {
476
483
  /**
477
484
  * Represents the props of the KendoReact [MonthView]({% slug api_scheduler_monthview %}) Component.
478
485
  */
479
- declare interface MonthViewProps extends SchedulerViewProps {
486
+ export declare interface MonthViewProps extends SchedulerViewProps {
480
487
  /**
481
488
  * Sets the maximum number of `items` to be rendered in a single `slot`, before adding the `show-more` button.
482
489
  */
@@ -817,7 +824,7 @@ declare interface MultiDayViewProps extends SchedulerViewProps {
817
824
  }
818
825
 
819
826
  /** @hidden */
820
- declare interface Occurrence {
827
+ export declare interface Occurrence {
821
828
  /** @hidden */
822
829
  uid: string | number;
823
830
  /**
@@ -885,6 +892,7 @@ declare interface Range_2 {
885
892
  zonedEnd: ZonedDate;
886
893
  isAllDay?: boolean;
887
894
  }
895
+ export { Range_2 as Range }
888
896
 
889
897
  /** @hidden */
890
898
  declare interface RecurrenceEditorProps {
@@ -938,6 +946,15 @@ export declare enum RESIZE_ITEM_ACTION {
938
946
  reset = "RESIZE_ITEM_RESET"
939
947
  }
940
948
 
949
+ /** @hidden */
950
+ export declare interface Resource {
951
+ field: string;
952
+ valueField: string;
953
+ textField?: string;
954
+ colorField?: string;
955
+ multiple?: boolean;
956
+ }
957
+
941
958
  /** @hidden */
942
959
  declare interface ResourceEditorProps extends FieldRenderProps {
943
960
  resource: SchedulerResource;
@@ -1269,9 +1286,9 @@ export declare const SchedulerEditItemDragItemContext: React_2.Context<Scheduler
1269
1286
  /**
1270
1287
  * Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
1271
1288
  */
1272
- export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1289
+ export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1273
1290
  preventDefault: any;
1274
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1291
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1275
1292
  preventDefault: any;
1276
1293
  }) => void];
1277
1294
 
@@ -1285,9 +1302,9 @@ export declare const SchedulerEditItemFormItemContext: React_2.Context<Scheduler
1285
1302
  /**
1286
1303
  * Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
1287
1304
  */
1288
- export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (newValue: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1305
+ export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (newValue: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1289
1306
  preventDefault: any;
1290
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1307
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1291
1308
  preventDefault: any;
1292
1309
  }) => void];
1293
1310
 
@@ -1579,9 +1596,9 @@ export declare const SchedulerEditItemRemoveItemContext: React_2.Context<Schedul
1579
1596
  /**
1580
1597
  * Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
1581
1598
  */
1582
- export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1599
+ export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1583
1600
  preventDefault: any;
1584
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1601
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1585
1602
  preventDefault: any;
1586
1603
  }) => void];
1587
1604
 
@@ -1595,9 +1612,9 @@ export declare const SchedulerEditItemResizeItemContext: React_2.Context<Schedul
1595
1612
  /**
1596
1613
  * Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
1597
1614
  */
1598
- export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1615
+ export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1599
1616
  preventDefault: any;
1600
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1617
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1601
1618
  preventDefault: any;
1602
1619
  }) => void];
1603
1620
 
@@ -1611,9 +1628,9 @@ export declare const SchedulerEditItemShowOccurrenceDialogContext: React_2.Conte
1611
1628
  /**
1612
1629
  * Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
1613
1630
  */
1614
- export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1631
+ export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1615
1632
  preventDefault: any;
1616
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1633
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1617
1634
  preventDefault: any;
1618
1635
  }) => void];
1619
1636
 
@@ -1627,9 +1644,9 @@ export declare const SchedulerEditItemShowRemoveDialogContext: React_2.Context<S
1627
1644
  /**
1628
1645
  * Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
1629
1646
  */
1630
- export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1647
+ export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1631
1648
  preventDefault: any;
1632
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1649
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1633
1650
  preventDefault: any;
1634
1651
  }) => void];
1635
1652
 
@@ -1647,7 +1664,7 @@ export declare interface SchedulerEditItemState {
1647
1664
  showOccurrenceDialog: DataItem | null;
1648
1665
  }
1649
1666
 
1650
- declare interface SchedulerEditItemStateChangeEvent<T> {
1667
+ export declare interface SchedulerEditItemStateChangeEvent<T> {
1651
1668
  value: T;
1652
1669
  }
1653
1670
 
@@ -2384,7 +2401,7 @@ export declare interface SchedulerFormProps extends Omit_2<FormProps, 'render' |
2384
2401
  dialog?: React_2.ComponentType<DialogProps>;
2385
2402
  }
2386
2403
 
2387
- declare interface SchedulerFormStateChangeEvent<T> {
2404
+ export declare interface SchedulerFormStateChangeEvent<T> {
2388
2405
  target: SchedulerFormHandle;
2389
2406
  value: T;
2390
2407
  syntheticEvent: React_2.SyntheticEvent;
@@ -2419,7 +2436,7 @@ export declare type SchedulerGroupsContextType = Group[];
2419
2436
  /**
2420
2437
  * Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the Scheduler component.
2421
2438
  */
2422
- declare interface SchedulerHandle {
2439
+ export declare interface SchedulerHandle {
2423
2440
  props: SchedulerProps;
2424
2441
  element: HTMLDivElement | null;
2425
2442
  }
@@ -2463,7 +2480,7 @@ export declare interface SchedulerItemContentProps extends React_2.HTMLAttribute
2463
2480
  /**
2464
2481
  * @hidden
2465
2482
  */
2466
- declare interface SchedulerItemDragEvent {
2483
+ export declare interface SchedulerItemDragEvent {
2467
2484
  target: SchedulerItemHandle;
2468
2485
  dragEvent: ItemDragEvent;
2469
2486
  }
@@ -2503,7 +2520,7 @@ export declare interface SchedulerItemHandle {
2503
2520
  /**
2504
2521
  * @hidden
2505
2522
  */
2506
- declare interface SchedulerItemKeyboardEvent {
2523
+ export declare interface SchedulerItemKeyboardEvent {
2507
2524
  target: SchedulerItemHandle;
2508
2525
  syntheticEvent: React.KeyboardEvent;
2509
2526
  }
@@ -2880,7 +2897,7 @@ export declare interface SchedulerOccurrenceDialogProps {
2880
2897
  onOccurrenceClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
2881
2898
  }
2882
2899
 
2883
- declare interface SchedulerOccurrenceDialogStateChangeEvent<T> {
2900
+ export declare interface SchedulerOccurrenceDialogStateChangeEvent<T> {
2884
2901
  target: SchedulerOccurrenceDialogHandle;
2885
2902
  value: T;
2886
2903
  syntheticEvent: React_2.SyntheticEvent;
@@ -3134,6 +3151,17 @@ export declare const SchedulerPropsContext: React_2.Context<SchedulerProps>;
3134
3151
  */
3135
3152
  export declare type SchedulerPropsContextType = SchedulerProps;
3136
3153
 
3154
+ /** @hidden */
3155
+ export declare type SchedulerRange = (args: SchedulerRangeArgs) => DateRange;
3156
+
3157
+ /** @hidden */
3158
+ export declare interface SchedulerRangeArgs {
3159
+ intl: IntlService;
3160
+ date: Date;
3161
+ numberOfDays?: any;
3162
+ timezone?: string;
3163
+ }
3164
+
3137
3165
  /**
3138
3166
  * Represents the default `removeDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
3139
3167
  */
@@ -3168,7 +3196,7 @@ export declare interface SchedulerRemoveDialogProps {
3168
3196
  onConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void;
3169
3197
  }
3170
3198
 
3171
- declare interface SchedulerRemoveDialogStateChangeEvent<T> {
3199
+ export declare interface SchedulerRemoveDialogStateChangeEvent<T> {
3172
3200
  target: SchedulerRemoveDialogHandle;
3173
3201
  value: T;
3174
3202
  syntheticEvent: React_2.SyntheticEvent;
@@ -3271,7 +3299,7 @@ export declare type SchedulerSlotExpandableConfig = {
3271
3299
  /**
3272
3300
  * @hidden
3273
3301
  */
3274
- declare interface SchedulerSlotFocusEvent {
3302
+ export declare interface SchedulerSlotFocusEvent {
3275
3303
  target: SchedulerSlotHandle;
3276
3304
  syntheticEvent: React.FocusEvent;
3277
3305
  }
@@ -3287,7 +3315,7 @@ export declare interface SchedulerSlotHandle {
3287
3315
  }
3288
3316
 
3289
3317
  /** @hidden */
3290
- declare interface SchedulerSlotKeyboardEvent {
3318
+ export declare interface SchedulerSlotKeyboardEvent {
3291
3319
  target: SchedulerSlotHandle;
3292
3320
  syntheticEvent: React.KeyboardEvent;
3293
3321
  }
@@ -3440,7 +3468,7 @@ export declare interface SchedulerTaskHandle {
3440
3468
  props: SchedulerTaskProps;
3441
3469
  }
3442
3470
 
3443
- declare interface SchedulerTaskMouseEvent {
3471
+ export declare interface SchedulerTaskMouseEvent {
3444
3472
  target: SchedulerTaskHandle;
3445
3473
  syntheticEvent: React.MouseEvent;
3446
3474
  }
@@ -3491,7 +3519,7 @@ export declare interface SchedulerTaskProps extends Item {
3491
3519
  /**
3492
3520
  * Represents a single Scheduler view.
3493
3521
  */
3494
- declare type SchedulerView = React.ReactElement<SchedulerViewProps>;
3522
+ export declare type SchedulerView = React.ReactElement<SchedulerViewProps>;
3495
3523
 
3496
3524
  /**
3497
3525
  * Called every time the user changes the active `view`.
@@ -3505,7 +3533,7 @@ export declare interface SchedulerViewChangeEvent {
3505
3533
  /**
3506
3534
  * Represents the arguments which are passed to the [dateRange]({% slug api_scheduler_schedulerviewprops %}#toc-daterange) function.
3507
3535
  */
3508
- declare interface SchedulerViewDateRangeArgs {
3536
+ export declare interface SchedulerViewDateRangeArgs {
3509
3537
  date: Date;
3510
3538
  intl: IntlService;
3511
3539
  timezone?: string;
@@ -3514,6 +3542,8 @@ declare interface SchedulerViewDateRangeArgs {
3514
3542
  workWeekEnd?: Day;
3515
3543
  }
3516
3544
 
3545
+ export declare type SchedulerViewDateRangeFunction = (args: SchedulerViewDateRangeArgs) => DateRange;
3546
+
3517
3547
  /**
3518
3548
  * Represents the default `viewItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
3519
3549
  *
@@ -3552,7 +3582,7 @@ export declare interface SchedulerViewItemProps extends SchedulerItemProps {
3552
3582
  /**
3553
3583
  * Represents the required props which every [SchedulerView]({% slug api_scheduler_schedulerview %}) must accept.
3554
3584
  */
3555
- declare interface SchedulerViewProps {
3585
+ export declare interface SchedulerViewProps {
3556
3586
  /**
3557
3587
  * The name property is used by the Scheduler to match which view is selected. Every view has a default name.
3558
3588
  */
@@ -3758,7 +3788,7 @@ export declare enum SHOW_REMOVE_DIALOG_ACTION {
3758
3788
  }
3759
3789
 
3760
3790
  /** @hidden */
3761
- declare interface Slot {
3791
+ export declare interface Slot {
3762
3792
  /** @hidden */
3763
3793
  _ref: React.RefObject<SchedulerSlotHandle | null>;
3764
3794
  /**
@@ -3920,7 +3950,7 @@ export declare const timeLineViewDefaultProps: {
3920
3950
  /**
3921
3951
  * Represents the properties of the KendoReact [TimelineView]({% slug api_scheduler_timelineview %}) Component.
3922
3952
  */
3923
- declare interface TimelineViewProps extends MultiDayTimelineViewProps {
3953
+ export declare interface TimelineViewProps extends MultiDayTimelineViewProps {
3924
3954
  }
3925
3955
 
3926
3956
  /**
@@ -4085,6 +4115,14 @@ export declare const useSchedulerPropsContext: () => SchedulerPropsContextType;
4085
4115
  */
4086
4116
  export declare const useSchedulerViewsContext: () => SchedulerViewsContextType;
4087
4117
 
4118
+ /**
4119
+ * @hidden
4120
+ */
4121
+ export declare interface ViewChangeEvent {
4122
+ target: any;
4123
+ syntheticEvent: React.SyntheticEvent;
4124
+ }
4125
+
4088
4126
  /**
4089
4127
  * Represents the KendoReact [WeekView]({% slug week_views_scheduler %}) Component.
4090
4128
  */
@@ -4105,7 +4143,7 @@ export declare const weekViewDefaultProps: {
4105
4143
  /**
4106
4144
  * Represents the properties of the KendoReact [WeekView]({% slug api_scheduler_weekview %}) Component.
4107
4145
  */
4108
- declare interface WeekViewProps extends MultiDayViewProps {
4146
+ export declare interface WeekViewProps extends MultiDayViewProps {
4109
4147
  /**
4110
4148
  * The long-date format for displaying the
4111
4149
  * selected date in the Scheduler toolbar.
@@ -4202,7 +4240,7 @@ export declare const workWeekDefaultProps: {
4202
4240
 
4203
4241
  export declare const WorkWeekView: React_2.FunctionComponent<WorkWeekViewProps>;
4204
4242
 
4205
- declare interface WorkWeekViewProps extends WeekViewProps {
4243
+ export declare interface WorkWeekViewProps extends WeekViewProps {
4206
4244
  }
4207
4245
 
4208
4246
  /**
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { BaseEvent } from '@progress/kendo-react-common';
8
+ import { BaseEvent as BaseEvent_2 } from '@progress/kendo-react-common';
9
9
  import { CheckboxHandle } from '@progress/kendo-react-inputs';
10
10
  import { CheckboxProps } from '@progress/kendo-react-inputs';
11
11
  import { ComboBoxProps } from '@progress/kendo-react-dropdowns';
@@ -63,7 +63,7 @@ export declare const agendaViewDefaultProps: {
63
63
  /**
64
64
  * Represents the properties of the KendoReact [AgendaView]({% slug api_scheduler_agendaview %}) Component.
65
65
  */
66
- declare interface AgendaViewProps extends SchedulerViewProps {
66
+ export declare interface AgendaViewProps extends SchedulerViewProps {
67
67
  /**
68
68
  * The number of steps (in days) to change, when using the back and forwards buttons in the toolbar navigation.
69
69
  * The default value is 7 days.
@@ -130,6 +130,13 @@ declare interface AgendaViewProps extends SchedulerViewProps {
130
130
  editSlot?: React_2.ComponentType<SchedulerEditSlotProps>;
131
131
  }
132
132
 
133
+ /**
134
+ * @hidden
135
+ **/
136
+ export declare interface BaseEvent<T> {
137
+ target: T;
138
+ }
139
+
133
140
  /**
134
141
  * Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
135
142
  */
@@ -220,7 +227,7 @@ export declare interface DateHeaderCellProps extends React_2.HTMLAttributes<HTML
220
227
  }
221
228
 
222
229
  /** @hidden */
223
- declare interface DateRange {
230
+ export declare interface DateRange {
224
231
  start: Date;
225
232
  end: Date;
226
233
  zonedStart: ZonedDate;
@@ -257,7 +264,7 @@ export declare const dayViewDefaultProps: {
257
264
  /**
258
265
  * Represents the properties of the [DayView]({% slug api_scheduler_dayviewprops %}) Component.
259
266
  */
260
- declare interface DayViewProps extends MultiDayViewProps {
267
+ export declare interface DayViewProps extends MultiDayViewProps {
261
268
  }
262
269
 
263
270
  /**
@@ -287,7 +294,7 @@ export declare enum DRAG_ITEM_ACTION {
287
294
  /**
288
295
  * The editable settings of the Scheduler.
289
296
  */
290
- declare interface EditableProp {
297
+ export declare interface EditableProp {
291
298
  /**
292
299
  * Specifies if the events can be removed by using a **Remove** icon.
293
300
  */
@@ -317,7 +324,7 @@ declare interface EditableProp {
317
324
  /**
318
325
  * Represents the combined object of the default and custom [modelFields]({% slug api_scheduler_schedulerprops %}#toc)
319
326
  */
320
- declare interface Fields {
327
+ export declare interface Fields {
321
328
  id: string;
322
329
  start: string;
323
330
  startTimezone: string;
@@ -343,7 +350,7 @@ declare enum FORM_ITEM_ACTION {
343
350
  /**
344
351
  * Represents the Scheduler `Group` object, calculated based on the [group]({% slug api_scheduler_schedulerprops %}#toc-group) and [resources]({% slug api_scheduler_schedulerprops %}#toc-resources)
345
352
  */
346
- declare interface Group {
353
+ export declare interface Group {
347
354
  index: number;
348
355
  resources: SchedulerResource[];
349
356
  }
@@ -409,7 +416,7 @@ declare interface Item extends Occurrence {
409
416
  /**
410
417
  * @hidden
411
418
  */
412
- declare interface ItemDragEvent {
419
+ export declare interface ItemDragEvent {
413
420
  pageX: number;
414
421
  pageY: number;
415
422
  clientX: number;
@@ -476,7 +483,7 @@ export declare const monthViewDefaultProps: {
476
483
  /**
477
484
  * Represents the props of the KendoReact [MonthView]({% slug api_scheduler_monthview %}) Component.
478
485
  */
479
- declare interface MonthViewProps extends SchedulerViewProps {
486
+ export declare interface MonthViewProps extends SchedulerViewProps {
480
487
  /**
481
488
  * Sets the maximum number of `items` to be rendered in a single `slot`, before adding the `show-more` button.
482
489
  */
@@ -817,7 +824,7 @@ declare interface MultiDayViewProps extends SchedulerViewProps {
817
824
  }
818
825
 
819
826
  /** @hidden */
820
- declare interface Occurrence {
827
+ export declare interface Occurrence {
821
828
  /** @hidden */
822
829
  uid: string | number;
823
830
  /**
@@ -885,6 +892,7 @@ declare interface Range_2 {
885
892
  zonedEnd: ZonedDate;
886
893
  isAllDay?: boolean;
887
894
  }
895
+ export { Range_2 as Range }
888
896
 
889
897
  /** @hidden */
890
898
  declare interface RecurrenceEditorProps {
@@ -938,6 +946,15 @@ export declare enum RESIZE_ITEM_ACTION {
938
946
  reset = "RESIZE_ITEM_RESET"
939
947
  }
940
948
 
949
+ /** @hidden */
950
+ export declare interface Resource {
951
+ field: string;
952
+ valueField: string;
953
+ textField?: string;
954
+ colorField?: string;
955
+ multiple?: boolean;
956
+ }
957
+
941
958
  /** @hidden */
942
959
  declare interface ResourceEditorProps extends FieldRenderProps {
943
960
  resource: SchedulerResource;
@@ -1269,9 +1286,9 @@ export declare const SchedulerEditItemDragItemContext: React_2.Context<Scheduler
1269
1286
  /**
1270
1287
  * Specifies the result of the [useSchedulerEditItemDragItemContext]({% slug api_scheduler_usescheduleredititemdragitemcontext %}) and [SchedulerEditItemDragItemContext]({% slug api_scheduler_scheduleredititemdragitemcontext %}).
1271
1288
  */
1272
- export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1289
+ export declare type SchedulerEditItemDragItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1273
1290
  preventDefault: any;
1274
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1291
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1275
1292
  preventDefault: any;
1276
1293
  }) => void];
1277
1294
 
@@ -1285,9 +1302,9 @@ export declare const SchedulerEditItemFormItemContext: React_2.Context<Scheduler
1285
1302
  /**
1286
1303
  * Specifies the result of the [useSchedulerEditItemFormItemContext]({% slug api_scheduler_usescheduleredititemformitemcontext %}) and [SchedulerEditItemFormItemContext]({% slug api_scheduler_scheduleredititemformitemcontext %}).
1287
1304
  */
1288
- export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (newValue: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1305
+ export declare type SchedulerEditItemFormItemContextType = [DataItem | null, (newValue: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1289
1306
  preventDefault: any;
1290
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1307
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1291
1308
  preventDefault: any;
1292
1309
  }) => void];
1293
1310
 
@@ -1579,9 +1596,9 @@ export declare const SchedulerEditItemRemoveItemContext: React_2.Context<Schedul
1579
1596
  /**
1580
1597
  * Specifies the result of the [useSchedulerEditItemRemoveItemContext]({% slug api_scheduler_usescheduleredititemremoveitemcontext %}) and [SchedulerEditItemRemoveItemContext]({% slug api_scheduler_scheduleredititemremoveitemcontext %}).
1581
1598
  */
1582
- export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1599
+ export declare type SchedulerEditItemRemoveItemContextType = [DataItem | null, (newValue?: any, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1583
1600
  preventDefault: any;
1584
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1601
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1585
1602
  preventDefault: any;
1586
1603
  }) => void];
1587
1604
 
@@ -1595,9 +1612,9 @@ export declare const SchedulerEditItemResizeItemContext: React_2.Context<Schedul
1595
1612
  /**
1596
1613
  * Specifies the result of the [useSchedulerEditItemResizeItemContext]({% slug api_scheduler_usescheduleredititemresizeitemcontext %}) and [SchedulerEditItemResizeItemContext]({% slug api_scheduler_scheduleredititemresizeitemcontext %}).
1597
1614
  */
1598
- export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1615
+ export declare type SchedulerEditItemResizeItemContextType = [DataItem | null, (newValue?: DataItem | null, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1599
1616
  preventDefault: any;
1600
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1617
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1601
1618
  preventDefault: any;
1602
1619
  }) => void];
1603
1620
 
@@ -1611,9 +1628,9 @@ export declare const SchedulerEditItemShowOccurrenceDialogContext: React_2.Conte
1611
1628
  /**
1612
1629
  * Specifies the result of the [useSchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_usescheduleredititemshowoccurrencedialogcontext %}) and [SchedulerEditItemShowOccurrenceDialogContext]({% slug api_scheduler_scheduleredititemshowoccurrencedialogcontext %}).
1613
1630
  */
1614
- export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1631
+ export declare type SchedulerEditItemShowOccurrenceDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1615
1632
  preventDefault: any;
1616
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1633
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1617
1634
  preventDefault: any;
1618
1635
  }) => void];
1619
1636
 
@@ -1627,9 +1644,9 @@ export declare const SchedulerEditItemShowRemoveDialogContext: React_2.Context<S
1627
1644
  /**
1628
1645
  * Specifies the result of the [useSchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_usescheduleredititemshowremovedialogcontext %}) and [SchedulerEditItemShowRemoveDialogContext]({% slug api_scheduler_scheduleredititemshowremovedialogcontext %}).
1629
1646
  */
1630
- export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1647
+ export declare type SchedulerEditItemShowRemoveDialogContextType = [boolean, (newValue?: boolean, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1631
1648
  preventDefault: any;
1632
- }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent<any> | {
1649
+ }) => void, (action: SchedulerItemFormItemAction, event?: React_2.SyntheticEvent | BaseEvent_2<any> | {
1633
1650
  preventDefault: any;
1634
1651
  }) => void];
1635
1652
 
@@ -1647,7 +1664,7 @@ export declare interface SchedulerEditItemState {
1647
1664
  showOccurrenceDialog: DataItem | null;
1648
1665
  }
1649
1666
 
1650
- declare interface SchedulerEditItemStateChangeEvent<T> {
1667
+ export declare interface SchedulerEditItemStateChangeEvent<T> {
1651
1668
  value: T;
1652
1669
  }
1653
1670
 
@@ -2384,7 +2401,7 @@ export declare interface SchedulerFormProps extends Omit_2<FormProps, 'render' |
2384
2401
  dialog?: React_2.ComponentType<DialogProps>;
2385
2402
  }
2386
2403
 
2387
- declare interface SchedulerFormStateChangeEvent<T> {
2404
+ export declare interface SchedulerFormStateChangeEvent<T> {
2388
2405
  target: SchedulerFormHandle;
2389
2406
  value: T;
2390
2407
  syntheticEvent: React_2.SyntheticEvent;
@@ -2419,7 +2436,7 @@ export declare type SchedulerGroupsContextType = Group[];
2419
2436
  /**
2420
2437
  * Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the Scheduler component.
2421
2438
  */
2422
- declare interface SchedulerHandle {
2439
+ export declare interface SchedulerHandle {
2423
2440
  props: SchedulerProps;
2424
2441
  element: HTMLDivElement | null;
2425
2442
  }
@@ -2463,7 +2480,7 @@ export declare interface SchedulerItemContentProps extends React_2.HTMLAttribute
2463
2480
  /**
2464
2481
  * @hidden
2465
2482
  */
2466
- declare interface SchedulerItemDragEvent {
2483
+ export declare interface SchedulerItemDragEvent {
2467
2484
  target: SchedulerItemHandle;
2468
2485
  dragEvent: ItemDragEvent;
2469
2486
  }
@@ -2503,7 +2520,7 @@ export declare interface SchedulerItemHandle {
2503
2520
  /**
2504
2521
  * @hidden
2505
2522
  */
2506
- declare interface SchedulerItemKeyboardEvent {
2523
+ export declare interface SchedulerItemKeyboardEvent {
2507
2524
  target: SchedulerItemHandle;
2508
2525
  syntheticEvent: React.KeyboardEvent;
2509
2526
  }
@@ -2880,7 +2897,7 @@ export declare interface SchedulerOccurrenceDialogProps {
2880
2897
  onOccurrenceClick: (event: SchedulerOccurrenceDialogStateChangeEvent<DataItem | null>) => void;
2881
2898
  }
2882
2899
 
2883
- declare interface SchedulerOccurrenceDialogStateChangeEvent<T> {
2900
+ export declare interface SchedulerOccurrenceDialogStateChangeEvent<T> {
2884
2901
  target: SchedulerOccurrenceDialogHandle;
2885
2902
  value: T;
2886
2903
  syntheticEvent: React_2.SyntheticEvent;
@@ -3134,6 +3151,17 @@ export declare const SchedulerPropsContext: React_2.Context<SchedulerProps>;
3134
3151
  */
3135
3152
  export declare type SchedulerPropsContextType = SchedulerProps;
3136
3153
 
3154
+ /** @hidden */
3155
+ export declare type SchedulerRange = (args: SchedulerRangeArgs) => DateRange;
3156
+
3157
+ /** @hidden */
3158
+ export declare interface SchedulerRangeArgs {
3159
+ intl: IntlService;
3160
+ date: Date;
3161
+ numberOfDays?: any;
3162
+ timezone?: string;
3163
+ }
3164
+
3137
3165
  /**
3138
3166
  * Represents the default `removeDialog` component rendered by the [KendoReact SchedulerEditItem component]({% slug api_scheduler_scheduleredititem %}).
3139
3167
  */
@@ -3168,7 +3196,7 @@ export declare interface SchedulerRemoveDialogProps {
3168
3196
  onConfirm?: (event: SchedulerRemoveDialogStateChangeEvent<DataItem | null>) => void;
3169
3197
  }
3170
3198
 
3171
- declare interface SchedulerRemoveDialogStateChangeEvent<T> {
3199
+ export declare interface SchedulerRemoveDialogStateChangeEvent<T> {
3172
3200
  target: SchedulerRemoveDialogHandle;
3173
3201
  value: T;
3174
3202
  syntheticEvent: React_2.SyntheticEvent;
@@ -3271,7 +3299,7 @@ export declare type SchedulerSlotExpandableConfig = {
3271
3299
  /**
3272
3300
  * @hidden
3273
3301
  */
3274
- declare interface SchedulerSlotFocusEvent {
3302
+ export declare interface SchedulerSlotFocusEvent {
3275
3303
  target: SchedulerSlotHandle;
3276
3304
  syntheticEvent: React.FocusEvent;
3277
3305
  }
@@ -3287,7 +3315,7 @@ export declare interface SchedulerSlotHandle {
3287
3315
  }
3288
3316
 
3289
3317
  /** @hidden */
3290
- declare interface SchedulerSlotKeyboardEvent {
3318
+ export declare interface SchedulerSlotKeyboardEvent {
3291
3319
  target: SchedulerSlotHandle;
3292
3320
  syntheticEvent: React.KeyboardEvent;
3293
3321
  }
@@ -3440,7 +3468,7 @@ export declare interface SchedulerTaskHandle {
3440
3468
  props: SchedulerTaskProps;
3441
3469
  }
3442
3470
 
3443
- declare interface SchedulerTaskMouseEvent {
3471
+ export declare interface SchedulerTaskMouseEvent {
3444
3472
  target: SchedulerTaskHandle;
3445
3473
  syntheticEvent: React.MouseEvent;
3446
3474
  }
@@ -3491,7 +3519,7 @@ export declare interface SchedulerTaskProps extends Item {
3491
3519
  /**
3492
3520
  * Represents a single Scheduler view.
3493
3521
  */
3494
- declare type SchedulerView = React.ReactElement<SchedulerViewProps>;
3522
+ export declare type SchedulerView = React.ReactElement<SchedulerViewProps>;
3495
3523
 
3496
3524
  /**
3497
3525
  * Called every time the user changes the active `view`.
@@ -3505,7 +3533,7 @@ export declare interface SchedulerViewChangeEvent {
3505
3533
  /**
3506
3534
  * Represents the arguments which are passed to the [dateRange]({% slug api_scheduler_schedulerviewprops %}#toc-daterange) function.
3507
3535
  */
3508
- declare interface SchedulerViewDateRangeArgs {
3536
+ export declare interface SchedulerViewDateRangeArgs {
3509
3537
  date: Date;
3510
3538
  intl: IntlService;
3511
3539
  timezone?: string;
@@ -3514,6 +3542,8 @@ declare interface SchedulerViewDateRangeArgs {
3514
3542
  workWeekEnd?: Day;
3515
3543
  }
3516
3544
 
3545
+ export declare type SchedulerViewDateRangeFunction = (args: SchedulerViewDateRangeArgs) => DateRange;
3546
+
3517
3547
  /**
3518
3548
  * Represents the default `viewItem` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
3519
3549
  *
@@ -3552,7 +3582,7 @@ export declare interface SchedulerViewItemProps extends SchedulerItemProps {
3552
3582
  /**
3553
3583
  * Represents the required props which every [SchedulerView]({% slug api_scheduler_schedulerview %}) must accept.
3554
3584
  */
3555
- declare interface SchedulerViewProps {
3585
+ export declare interface SchedulerViewProps {
3556
3586
  /**
3557
3587
  * The name property is used by the Scheduler to match which view is selected. Every view has a default name.
3558
3588
  */
@@ -3758,7 +3788,7 @@ export declare enum SHOW_REMOVE_DIALOG_ACTION {
3758
3788
  }
3759
3789
 
3760
3790
  /** @hidden */
3761
- declare interface Slot {
3791
+ export declare interface Slot {
3762
3792
  /** @hidden */
3763
3793
  _ref: React.RefObject<SchedulerSlotHandle | null>;
3764
3794
  /**
@@ -3920,7 +3950,7 @@ export declare const timeLineViewDefaultProps: {
3920
3950
  /**
3921
3951
  * Represents the properties of the KendoReact [TimelineView]({% slug api_scheduler_timelineview %}) Component.
3922
3952
  */
3923
- declare interface TimelineViewProps extends MultiDayTimelineViewProps {
3953
+ export declare interface TimelineViewProps extends MultiDayTimelineViewProps {
3924
3954
  }
3925
3955
 
3926
3956
  /**
@@ -4085,6 +4115,14 @@ export declare const useSchedulerPropsContext: () => SchedulerPropsContextType;
4085
4115
  */
4086
4116
  export declare const useSchedulerViewsContext: () => SchedulerViewsContextType;
4087
4117
 
4118
+ /**
4119
+ * @hidden
4120
+ */
4121
+ export declare interface ViewChangeEvent {
4122
+ target: any;
4123
+ syntheticEvent: React.SyntheticEvent;
4124
+ }
4125
+
4088
4126
  /**
4089
4127
  * Represents the KendoReact [WeekView]({% slug week_views_scheduler %}) Component.
4090
4128
  */
@@ -4105,7 +4143,7 @@ export declare const weekViewDefaultProps: {
4105
4143
  /**
4106
4144
  * Represents the properties of the KendoReact [WeekView]({% slug api_scheduler_weekview %}) Component.
4107
4145
  */
4108
- declare interface WeekViewProps extends MultiDayViewProps {
4146
+ export declare interface WeekViewProps extends MultiDayViewProps {
4109
4147
  /**
4110
4148
  * The long-date format for displaying the
4111
4149
  * selected date in the Scheduler toolbar.
@@ -4202,7 +4240,7 @@ export declare const workWeekDefaultProps: {
4202
4240
 
4203
4241
  export declare const WorkWeekView: React_2.FunctionComponent<WorkWeekViewProps>;
4204
4242
 
4205
- declare interface WorkWeekViewProps extends WeekViewProps {
4243
+ export declare interface WorkWeekViewProps extends WeekViewProps {
4206
4244
  }
4207
4245
 
4208
4246
  /**
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-scheduler",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1711533627,
13
+ publishDate: 1712847162,
14
14
  version: "",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-scheduler",
3
- "version": "7.4.0-develop.9",
3
+ "version": "7.4.0",
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.4.0-develop.9",
30
- "@progress/kendo-react-common": "7.4.0-develop.9",
31
- "@progress/kendo-react-dateinputs": "7.4.0-develop.9",
32
- "@progress/kendo-react-dialogs": "7.4.0-develop.9",
33
- "@progress/kendo-react-dropdowns": "7.4.0-develop.9",
34
- "@progress/kendo-react-form": "7.4.0-develop.9",
35
- "@progress/kendo-react-inputs": "7.4.0-develop.9",
36
- "@progress/kendo-react-intl": "7.4.0-develop.9",
37
- "@progress/kendo-react-popup": "7.4.0-develop.9",
29
+ "@progress/kendo-react-buttons": "7.4.0",
30
+ "@progress/kendo-react-common": "7.4.0",
31
+ "@progress/kendo-react-dateinputs": "7.4.0",
32
+ "@progress/kendo-react-dialogs": "7.4.0",
33
+ "@progress/kendo-react-dropdowns": "7.4.0",
34
+ "@progress/kendo-react-form": "7.4.0",
35
+ "@progress/kendo-react-inputs": "7.4.0",
36
+ "@progress/kendo-react-intl": "7.4.0",
37
+ "@progress/kendo-react-popup": "7.4.0",
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"