@progress/kendo-react-dateinputs 7.5.0-develop.13 → 7.5.0-develop.15
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/calendar/components/Calendar.js +2 -2
- package/calendar/components/Calendar.mjs +27 -24
- package/calendar/components/CalendarCell.js +1 -1
- package/calendar/components/CalendarCell.mjs +51 -48
- package/calendar/components/Header.js +1 -1
- package/calendar/components/Header.mjs +20 -19
- package/calendar/components/HorizontalViewList.js +1 -1
- package/calendar/components/HorizontalViewList.mjs +6 -5
- package/calendar/components/MultiViewCalendar.js +1 -1
- package/calendar/components/MultiViewCalendar.mjs +53 -50
- package/calendar/components/TodayCommand.js +1 -1
- package/calendar/components/TodayCommand.mjs +1 -1
- package/calendar/components/View.js +1 -1
- package/calendar/components/View.mjs +28 -26
- package/calendar/components/ViewList.js +1 -1
- package/calendar/components/ViewList.mjs +16 -14
- package/calendar/services/MonthViewService.js +1 -1
- package/calendar/services/MonthViewService.mjs +14 -16
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +3 -0
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/index.d.mts +30 -1
- package/index.d.ts +30 -1
- package/package-metadata.mjs +1 -1
- package/package.json +8 -8
package/index.d.mts
CHANGED
|
@@ -141,6 +141,14 @@ export declare interface CalendarHandle extends Pick<CalendarWithoutContext, key
|
|
|
141
141
|
value: Date | null;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* The props which will be received by the custom header of the Calendar and the MultiViewCalendar.
|
|
146
|
+
*/
|
|
147
|
+
declare interface CalendarHeaderProps {
|
|
148
|
+
headerTitleProps: CalendarHeaderTitleProps;
|
|
149
|
+
commands: React.ReactNode;
|
|
150
|
+
}
|
|
151
|
+
|
|
144
152
|
/**
|
|
145
153
|
* The `CalendarHeaderTitle` component is internally used for rendering the title of the current calendar view. Also used as a custom `headerTitle` for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle) components.
|
|
146
154
|
*
|
|
@@ -312,6 +320,10 @@ export declare interface CalendarSettings {
|
|
|
312
320
|
* Determines if the week number column will be displayed.
|
|
313
321
|
*/
|
|
314
322
|
weekNumber?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Displays the days that fall out of the current month.
|
|
325
|
+
*/
|
|
326
|
+
showOtherMonthDays?: boolean;
|
|
315
327
|
/**
|
|
316
328
|
* Enables the customization or the override of the default Calendar cell
|
|
317
329
|
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)).
|
|
@@ -327,6 +339,11 @@ export declare interface CalendarSettings {
|
|
|
327
339
|
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
328
340
|
*/
|
|
329
341
|
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
342
|
+
/**
|
|
343
|
+
* Enables the customization or the override of the default header title in the Calendar
|
|
344
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
345
|
+
*/
|
|
346
|
+
header?: React.ComponentType<CalendarHeaderProps>;
|
|
330
347
|
/**
|
|
331
348
|
* Enables the customization or the override of the default navigation item in the Calendar
|
|
332
349
|
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
@@ -424,6 +441,7 @@ export declare class CalendarWithoutContext extends React_2.Component<CalendarPr
|
|
|
424
441
|
defaultValue: null;
|
|
425
442
|
topView: ActiveView;
|
|
426
443
|
bottomView: ActiveView;
|
|
444
|
+
showOtherMonthDays: boolean;
|
|
427
445
|
};
|
|
428
446
|
protected dom: DOMService;
|
|
429
447
|
protected scrollSyncService: ScrollSyncService | null;
|
|
@@ -500,6 +518,7 @@ export declare interface CellContext {
|
|
|
500
518
|
isToday: boolean;
|
|
501
519
|
title?: string;
|
|
502
520
|
value: Date;
|
|
521
|
+
isOtherMonth?: boolean;
|
|
503
522
|
}
|
|
504
523
|
|
|
505
524
|
/**
|
|
@@ -1573,7 +1592,7 @@ export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRang
|
|
|
1573
1592
|
/**
|
|
1574
1593
|
* Represents the settings that can be passed to the MultiViewCalendar inside the DateRangePicker.
|
|
1575
1594
|
*/
|
|
1576
|
-
export declare interface DateRangePickerCalendarSettings extends MultiViewCalendarSettings {
|
|
1595
|
+
export declare interface DateRangePickerCalendarSettings extends Omit<MultiViewCalendarSettings, 'showOtherMonthDays'> {
|
|
1577
1596
|
}
|
|
1578
1597
|
|
|
1579
1598
|
/**
|
|
@@ -2716,6 +2735,7 @@ declare interface HeaderProps {
|
|
|
2716
2735
|
rangeLength?: number;
|
|
2717
2736
|
service: ViewService;
|
|
2718
2737
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
2738
|
+
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
2719
2739
|
commands?: React_2.ReactNode;
|
|
2720
2740
|
verticalView?: boolean;
|
|
2721
2741
|
}
|
|
@@ -2781,6 +2801,7 @@ export declare interface HorizontalViewListProps {
|
|
|
2781
2801
|
allowReverse?: boolean;
|
|
2782
2802
|
cell?: React_2.ComponentType<CalendarCellProps>;
|
|
2783
2803
|
weekCell?: React_2.ComponentType<CalendarWeekCellProps>;
|
|
2804
|
+
showOtherMonthDays?: boolean;
|
|
2784
2805
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
2785
2806
|
dates: any[];
|
|
2786
2807
|
verticalView?: boolean;
|
|
@@ -3110,6 +3131,10 @@ export declare interface MultiViewCalendarSettings {
|
|
|
3110
3131
|
* * `range`—Renders a date-range selection.
|
|
3111
3132
|
*/
|
|
3112
3133
|
mode?: MultiViewCalendarMode;
|
|
3134
|
+
/**
|
|
3135
|
+
* Displays the days that fall out of the current month.
|
|
3136
|
+
*/
|
|
3137
|
+
showOtherMonthDays?: boolean;
|
|
3113
3138
|
/**
|
|
3114
3139
|
* Fires each time the MultiViewCalendar is blurred.
|
|
3115
3140
|
*/
|
|
@@ -3174,6 +3199,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
|
|
|
3174
3199
|
value: PropTypes.Requireable<any>;
|
|
3175
3200
|
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
3176
3201
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
3202
|
+
showOtherMonthDays: PropTypes.Requireable<boolean>;
|
|
3177
3203
|
dir: PropTypes.Requireable<string>;
|
|
3178
3204
|
};
|
|
3179
3205
|
/**
|
|
@@ -3192,6 +3218,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
|
|
|
3192
3218
|
bottomView: ActiveView;
|
|
3193
3219
|
views: number;
|
|
3194
3220
|
allowReverse: boolean;
|
|
3221
|
+
showOtherMonthDays: boolean;
|
|
3195
3222
|
};
|
|
3196
3223
|
protected dates: any[];
|
|
3197
3224
|
private lastView;
|
|
@@ -4379,7 +4406,9 @@ declare interface ViewListProps {
|
|
|
4379
4406
|
viewHeight?: number;
|
|
4380
4407
|
viewOffset?: number;
|
|
4381
4408
|
weekCell?: React_2.ComponentType<CalendarWeekCellProps>;
|
|
4409
|
+
showOtherMonthDays?: boolean;
|
|
4382
4410
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
4411
|
+
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
4383
4412
|
shouldScroll?: () => boolean;
|
|
4384
4413
|
tabIndex?: number;
|
|
4385
4414
|
}
|
package/index.d.ts
CHANGED
|
@@ -141,6 +141,14 @@ export declare interface CalendarHandle extends Pick<CalendarWithoutContext, key
|
|
|
141
141
|
value: Date | null;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* The props which will be received by the custom header of the Calendar and the MultiViewCalendar.
|
|
146
|
+
*/
|
|
147
|
+
declare interface CalendarHeaderProps {
|
|
148
|
+
headerTitleProps: CalendarHeaderTitleProps;
|
|
149
|
+
commands: React.ReactNode;
|
|
150
|
+
}
|
|
151
|
+
|
|
144
152
|
/**
|
|
145
153
|
* The `CalendarHeaderTitle` component is internally used for rendering the title of the current calendar view. Also used as a custom `headerTitle` for the [Calendar]({% slug api_dateinputs_calendarprops %}#toc-headertitle) and the [MultiViewCalendar]({% slug api_dateinputs_multiviewcalendarprops %}#toc-headertitle) components.
|
|
146
154
|
*
|
|
@@ -312,6 +320,10 @@ export declare interface CalendarSettings {
|
|
|
312
320
|
* Determines if the week number column will be displayed.
|
|
313
321
|
*/
|
|
314
322
|
weekNumber?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Displays the days that fall out of the current month.
|
|
325
|
+
*/
|
|
326
|
+
showOtherMonthDays?: boolean;
|
|
315
327
|
/**
|
|
316
328
|
* Enables the customization or the override of the default Calendar cell
|
|
317
329
|
* ([see example]({% slug custom_rendering_calendar %}#toc-cells-inside-the-view)).
|
|
@@ -327,6 +339,11 @@ export declare interface CalendarSettings {
|
|
|
327
339
|
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
328
340
|
*/
|
|
329
341
|
headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
|
|
342
|
+
/**
|
|
343
|
+
* Enables the customization or the override of the default header title in the Calendar
|
|
344
|
+
* ([see example]({% slug custom_rendering_calendar %}#toc-titles-of-current-views)).
|
|
345
|
+
*/
|
|
346
|
+
header?: React.ComponentType<CalendarHeaderProps>;
|
|
330
347
|
/**
|
|
331
348
|
* Enables the customization or the override of the default navigation item in the Calendar
|
|
332
349
|
* ([see example]({% slug custom_rendering_calendar %}#toc-items-in-the-side-navigation)).
|
|
@@ -424,6 +441,7 @@ export declare class CalendarWithoutContext extends React_2.Component<CalendarPr
|
|
|
424
441
|
defaultValue: null;
|
|
425
442
|
topView: ActiveView;
|
|
426
443
|
bottomView: ActiveView;
|
|
444
|
+
showOtherMonthDays: boolean;
|
|
427
445
|
};
|
|
428
446
|
protected dom: DOMService;
|
|
429
447
|
protected scrollSyncService: ScrollSyncService | null;
|
|
@@ -500,6 +518,7 @@ export declare interface CellContext {
|
|
|
500
518
|
isToday: boolean;
|
|
501
519
|
title?: string;
|
|
502
520
|
value: Date;
|
|
521
|
+
isOtherMonth?: boolean;
|
|
503
522
|
}
|
|
504
523
|
|
|
505
524
|
/**
|
|
@@ -1573,7 +1592,7 @@ export declare const DateRangePicker: React_2.ForwardRefExoticComponent<DateRang
|
|
|
1573
1592
|
/**
|
|
1574
1593
|
* Represents the settings that can be passed to the MultiViewCalendar inside the DateRangePicker.
|
|
1575
1594
|
*/
|
|
1576
|
-
export declare interface DateRangePickerCalendarSettings extends MultiViewCalendarSettings {
|
|
1595
|
+
export declare interface DateRangePickerCalendarSettings extends Omit<MultiViewCalendarSettings, 'showOtherMonthDays'> {
|
|
1577
1596
|
}
|
|
1578
1597
|
|
|
1579
1598
|
/**
|
|
@@ -2716,6 +2735,7 @@ declare interface HeaderProps {
|
|
|
2716
2735
|
rangeLength?: number;
|
|
2717
2736
|
service: ViewService;
|
|
2718
2737
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
2738
|
+
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
2719
2739
|
commands?: React_2.ReactNode;
|
|
2720
2740
|
verticalView?: boolean;
|
|
2721
2741
|
}
|
|
@@ -2781,6 +2801,7 @@ export declare interface HorizontalViewListProps {
|
|
|
2781
2801
|
allowReverse?: boolean;
|
|
2782
2802
|
cell?: React_2.ComponentType<CalendarCellProps>;
|
|
2783
2803
|
weekCell?: React_2.ComponentType<CalendarWeekCellProps>;
|
|
2804
|
+
showOtherMonthDays?: boolean;
|
|
2784
2805
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
2785
2806
|
dates: any[];
|
|
2786
2807
|
verticalView?: boolean;
|
|
@@ -3110,6 +3131,10 @@ export declare interface MultiViewCalendarSettings {
|
|
|
3110
3131
|
* * `range`—Renders a date-range selection.
|
|
3111
3132
|
*/
|
|
3112
3133
|
mode?: MultiViewCalendarMode;
|
|
3134
|
+
/**
|
|
3135
|
+
* Displays the days that fall out of the current month.
|
|
3136
|
+
*/
|
|
3137
|
+
showOtherMonthDays?: boolean;
|
|
3113
3138
|
/**
|
|
3114
3139
|
* Fires each time the MultiViewCalendar is blurred.
|
|
3115
3140
|
*/
|
|
@@ -3174,6 +3199,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
|
|
|
3174
3199
|
value: PropTypes.Requireable<any>;
|
|
3175
3200
|
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
3176
3201
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
3202
|
+
showOtherMonthDays: PropTypes.Requireable<boolean>;
|
|
3177
3203
|
dir: PropTypes.Requireable<string>;
|
|
3178
3204
|
};
|
|
3179
3205
|
/**
|
|
@@ -3192,6 +3218,7 @@ export declare class MultiViewCalendarWithoutContext extends React_2.Component<M
|
|
|
3192
3218
|
bottomView: ActiveView;
|
|
3193
3219
|
views: number;
|
|
3194
3220
|
allowReverse: boolean;
|
|
3221
|
+
showOtherMonthDays: boolean;
|
|
3195
3222
|
};
|
|
3196
3223
|
protected dates: any[];
|
|
3197
3224
|
private lastView;
|
|
@@ -4379,7 +4406,9 @@ declare interface ViewListProps {
|
|
|
4379
4406
|
viewHeight?: number;
|
|
4380
4407
|
viewOffset?: number;
|
|
4381
4408
|
weekCell?: React_2.ComponentType<CalendarWeekCellProps>;
|
|
4409
|
+
showOtherMonthDays?: boolean;
|
|
4382
4410
|
headerTitle?: React_2.ComponentType<CalendarHeaderTitleProps>;
|
|
4411
|
+
header?: React_2.ComponentType<CalendarHeaderProps>;
|
|
4383
4412
|
shouldScroll?: () => boolean;
|
|
4384
4413
|
tabIndex?: number;
|
|
4385
4414
|
}
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-dateinputs",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1715245082,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dateinputs",
|
|
3
|
-
"version": "7.5.0-develop.
|
|
3
|
+
"version": "7.5.0-develop.15",
|
|
4
4
|
"description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-date-math": "^1.4.0",
|
|
26
26
|
"@progress/kendo-licensing": "^1.3.4",
|
|
27
|
-
"@progress/kendo-react-buttons": "7.5.0-develop.
|
|
28
|
-
"@progress/kendo-react-common": "7.5.0-develop.
|
|
29
|
-
"@progress/kendo-react-intl": "7.5.0-develop.
|
|
30
|
-
"@progress/kendo-react-labels": "7.5.0-develop.
|
|
31
|
-
"@progress/kendo-react-layout": "7.5.0-develop.
|
|
32
|
-
"@progress/kendo-react-popup": "7.5.0-develop.
|
|
33
|
-
"@progress/kendo-svg-icons": "^
|
|
27
|
+
"@progress/kendo-react-buttons": "7.5.0-develop.15",
|
|
28
|
+
"@progress/kendo-react-common": "7.5.0-develop.15",
|
|
29
|
+
"@progress/kendo-react-intl": "7.5.0-develop.15",
|
|
30
|
+
"@progress/kendo-react-labels": "7.5.0-develop.15",
|
|
31
|
+
"@progress/kendo-react-layout": "7.5.0-develop.15",
|
|
32
|
+
"@progress/kendo-react-popup": "7.5.0-develop.15",
|
|
33
|
+
"@progress/kendo-svg-icons": "^3.0.0",
|
|
34
34
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
35
35
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
36
36
|
},
|