@progress/kendo-react-dateinputs 5.4.0-dev.202206061009 → 5.4.0-dev.202206131814
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-dateinputs.js +1 -1
- package/dist/es/calendar/components/Calendar.d.ts +2 -2
- package/dist/es/calendar/components/MultiViewCalendar.d.ts +1 -1
- package/dist/es/calendar/components/Navigation.d.ts +1 -1
- package/dist/es/calendar/components/View.d.ts +1 -1
- package/dist/es/calendar/components/ViewList.d.ts +3 -3
- package/dist/es/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/es/calendar/utils/ScrollSync.js +2 -0
- package/dist/es/dateinput/models/kendo-date.js +1 -1
- package/dist/es/dateinput/utils.d.ts +1 -1
- package/dist/es/daterangepicker/DateRangePicker.d.ts +5 -3
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/timepicker/TimePart.d.ts +1 -1
- package/dist/es/timepicker/TimePicker.d.ts +1 -1
- package/dist/es/virtualization/Virtualization.d.ts +1 -1
- package/dist/es/virtualization/Virtualization.js +1 -1
- package/dist/npm/calendar/components/Calendar.d.ts +2 -2
- package/dist/npm/calendar/components/MultiViewCalendar.d.ts +1 -1
- package/dist/npm/calendar/components/Navigation.d.ts +1 -1
- package/dist/npm/calendar/components/View.d.ts +1 -1
- package/dist/npm/calendar/components/ViewList.d.ts +3 -3
- package/dist/npm/calendar/utils/ScrollSync.d.ts +3 -3
- package/dist/npm/calendar/utils/ScrollSync.js +2 -0
- package/dist/npm/dateinput/models/kendo-date.js +1 -1
- package/dist/npm/dateinput/utils.d.ts +1 -1
- package/dist/npm/daterangepicker/DateRangePicker.d.ts +5 -3
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/timepicker/TimePart.d.ts +1 -1
- package/dist/npm/timepicker/TimePicker.d.ts +1 -1
- package/dist/npm/virtualization/Virtualization.d.ts +1 -1
- package/dist/npm/virtualization/Virtualization.js +1 -1
- package/dist/systemjs/kendo-react-dateinputs.js +1 -1
- package/package.json +12 -12
|
@@ -80,8 +80,8 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
|
|
|
80
80
|
tabIndex: PropTypes.Requireable<number>;
|
|
81
81
|
value: PropTypes.Requireable<Date>;
|
|
82
82
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
83
|
-
topView: (props: CalendarProps, propName:
|
|
84
|
-
bottomView: (props: CalendarProps, propName:
|
|
83
|
+
topView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
84
|
+
bottomView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* @hidden
|
|
@@ -69,7 +69,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
69
69
|
tabIndex: PropTypes.Requireable<number>;
|
|
70
70
|
topView: PropTypes.Requireable<ActiveView>;
|
|
71
71
|
value: PropTypes.Requireable<any>;
|
|
72
|
-
views: (props:
|
|
72
|
+
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
73
73
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
@@ -65,7 +65,7 @@ export declare class Navigation extends React.Component<NavigationProps, Navigat
|
|
|
65
65
|
*/
|
|
66
66
|
componentDidUpdate(_prevProps: NavigationProps, _prevState: NavigationState): void;
|
|
67
67
|
render(): JSX.Element;
|
|
68
|
-
protected handleVirtualizationMount: (virtualization:
|
|
68
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
69
69
|
protected buildNavigationItem: (date: Date) => React.ReactNode;
|
|
70
70
|
protected calculateHeights: () => void;
|
|
71
71
|
protected getTake(skip: number, total: number): number;
|
|
@@ -56,7 +56,7 @@ export declare class View extends React.Component<ViewProps, {}> {
|
|
|
56
56
|
max: PropTypes.Validator<Date>;
|
|
57
57
|
min: PropTypes.Validator<Date>;
|
|
58
58
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
selectedDate: PropTypes.Requireable<Date | (Date | null)[]>;
|
|
59
|
+
selectedDate: PropTypes.Requireable<Date | (Date | null | undefined)[]>;
|
|
60
60
|
showWeekNumbers: PropTypes.Requireable<boolean>;
|
|
61
61
|
viewDate: PropTypes.Validator<Date>;
|
|
62
62
|
};
|
|
@@ -98,9 +98,9 @@ export declare class ViewList extends React.Component<ViewListProps, ViewListSta
|
|
|
98
98
|
focusActiveDate: () => void;
|
|
99
99
|
blurActiveDate: () => void;
|
|
100
100
|
render(): JSX.Element;
|
|
101
|
-
protected handleVirtualizationMount: (virtualization:
|
|
102
|
-
protected buildMonthView: (cols: any, weekNames: any) => JSX.Element;
|
|
103
|
-
protected buildDates: (cols: any, dates: Date[]) => JSX.Element;
|
|
101
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
102
|
+
protected buildMonthView: (cols: any[], weekNames: any[]) => JSX.Element;
|
|
103
|
+
protected buildDates: (cols: any[], dates: Date[]) => JSX.Element;
|
|
104
104
|
protected calculateHeights: () => void;
|
|
105
105
|
protected getTake: (skip: number, total: number) => number;
|
|
106
106
|
private handleScrollAction;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
export default class ScrollSync {
|
|
5
5
|
private scrollDetails;
|
|
6
6
|
private scrollNavigation;
|
|
7
|
-
areDetailsSynced:
|
|
8
|
-
isNavigationSynced:
|
|
9
|
-
magnitude:
|
|
7
|
+
areDetailsSynced: boolean;
|
|
8
|
+
isNavigationSynced: boolean;
|
|
9
|
+
magnitude: number;
|
|
10
10
|
constructor(detailsMonthHeight: number, navigationMonthHeight: number, scrollDetails: (scrollTo: number) => void, scrollNavigation: (scrollTo: number) => void);
|
|
11
11
|
syncDetails(navigationScrollTop: number): void;
|
|
12
12
|
syncNavigation(detailsScrollTop: number): void;
|
|
@@ -5,6 +5,8 @@ var ScrollSync = /** @class */ (function () {
|
|
|
5
5
|
function ScrollSync(detailsMonthHeight, navigationMonthHeight, scrollDetails, scrollNavigation) {
|
|
6
6
|
this.scrollDetails = scrollDetails;
|
|
7
7
|
this.scrollNavigation = scrollNavigation;
|
|
8
|
+
this.areDetailsSynced = false;
|
|
9
|
+
this.isNavigationSynced = false;
|
|
8
10
|
this.magnitude = Math.max(detailsMonthHeight / navigationMonthHeight, 1);
|
|
9
11
|
}
|
|
10
12
|
ScrollSync.prototype.syncDetails = function (navigationScrollTop) {
|
|
@@ -324,7 +324,7 @@ var KendoDate = /** @class */ (function () {
|
|
|
324
324
|
return { text: resultText, format: resultFormat };
|
|
325
325
|
};
|
|
326
326
|
KendoDate.prototype.dateFieldName = function (part) {
|
|
327
|
-
var formatPlaceholder = this.formatPlaceholder || 'wide';
|
|
327
|
+
var formatPlaceholder = (this.formatPlaceholder || 'wide');
|
|
328
328
|
if (formatPlaceholder[part.type]) {
|
|
329
329
|
return formatPlaceholder[part.type];
|
|
330
330
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as PropTypes from 'prop-types';
|
|
3
3
|
import { DateInput } from '../dateinput/DateInput';
|
|
4
|
-
import { MultiViewCalendar } from '../calendar/components/MultiViewCalendar';
|
|
4
|
+
import { MultiViewCalendar, MultiViewCalendarHandle } from '../calendar/components/MultiViewCalendar';
|
|
5
5
|
import { SelectionRange } from '../calendar/models';
|
|
6
6
|
import { DateRangePickerSettings } from './models';
|
|
7
7
|
/**
|
|
@@ -127,7 +127,9 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
127
127
|
valid: PropTypes.Requireable<boolean>;
|
|
128
128
|
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
129
129
|
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
130
|
-
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
|
|
130
|
+
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>; /**
|
|
131
|
+
* Gets the wrapping element of the DateRangePicker.
|
|
132
|
+
*/
|
|
131
133
|
}>>;
|
|
132
134
|
focusedDate: PropTypes.Requireable<Date>;
|
|
133
135
|
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
@@ -235,7 +237,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
235
237
|
* @hidden
|
|
236
238
|
*/
|
|
237
239
|
render(): JSX.Element;
|
|
238
|
-
protected setCalendarRef: (calendar:
|
|
240
|
+
protected setCalendarRef: (calendar: MultiViewCalendarHandle | null) => void;
|
|
239
241
|
protected focusCalendarElement: () => void;
|
|
240
242
|
protected focusDateInputElement(): void;
|
|
241
243
|
protected calculateValue: (props: DateRangePickerProps, state: DateRangePickerState) => SelectionRange;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-dateinputs',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1655142919,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -125,7 +125,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
125
125
|
protected nextTick(f: () => any): void;
|
|
126
126
|
protected hasActiveButton(): boolean | null;
|
|
127
127
|
protected focusList: (dir: Direction) => void;
|
|
128
|
-
protected listReducer: (state: any, list: any, idx:
|
|
128
|
+
protected listReducer: (state: any, list: any, idx: number, all: any) => any;
|
|
129
129
|
protected showNowButton: () => boolean | undefined;
|
|
130
130
|
protected hasSteps(): boolean;
|
|
131
131
|
private handleKeyDown;
|
|
@@ -238,7 +238,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
238
238
|
* @hidden
|
|
239
239
|
*/
|
|
240
240
|
render(): JSX.Element;
|
|
241
|
-
protected setTimeSelectorRef: (timeSelector:
|
|
241
|
+
protected setTimeSelectorRef: (timeSelector: TimeSelector | null) => void;
|
|
242
242
|
protected nextValue: (nextProps: TimePickerProps, nextState: TimePickerState) => Date | null;
|
|
243
243
|
protected nextShow: (nextProps: TimePickerProps, nextState: TimePickerState) => boolean;
|
|
244
244
|
protected normalizeTime(date: Date): Date;
|
|
@@ -109,7 +109,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
109
109
|
protected containerMaxScroll: () => number;
|
|
110
110
|
protected getContainerScrollDirection: (indexOffset: number) => ScrollDirection;
|
|
111
111
|
protected initServices: (props?: VirtualizationProps) => void;
|
|
112
|
-
protected getContainerProperty: (propertyName:
|
|
112
|
+
protected getContainerProperty: (propertyName: 'offsetHeight' | 'offsetWidth' | 'scrollHeight' | 'scrollWidth' | 'scrollTop' | 'scrollLeft') => number;
|
|
113
113
|
private handleScroll;
|
|
114
114
|
private handleScrollAction;
|
|
115
115
|
private handlePageAction;
|
|
@@ -119,7 +119,7 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
119
119
|
}
|
|
120
120
|
var maxScroll = _this.containerMaxScroll();
|
|
121
121
|
var sign = direction === ScrollDirection.Backward ? 1 : -1;
|
|
122
|
-
var difference = differenceToScroll(containerScroll, indexOffset, _this.props.maxScrollDifference);
|
|
122
|
+
var difference = differenceToScroll(containerScroll, indexOffset, _this.props.maxScrollDifference || 0);
|
|
123
123
|
var end = Math.min(indexOffset, maxScroll);
|
|
124
124
|
var start = Math.min(Math.max(end + (sign * difference), 0), maxScroll);
|
|
125
125
|
return { start: start, end: end };
|
|
@@ -80,8 +80,8 @@ export declare class CalendarWithoutContext extends React.Component<CalendarProp
|
|
|
80
80
|
tabIndex: PropTypes.Requireable<number>;
|
|
81
81
|
value: PropTypes.Requireable<Date>;
|
|
82
82
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
83
|
-
topView: (props: CalendarProps, propName:
|
|
84
|
-
bottomView: (props: CalendarProps, propName:
|
|
83
|
+
topView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
84
|
+
bottomView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* @hidden
|
|
@@ -69,7 +69,7 @@ export declare class MultiViewCalendarWithoutContext extends React.Component<Mul
|
|
|
69
69
|
tabIndex: PropTypes.Requireable<number>;
|
|
70
70
|
topView: PropTypes.Requireable<ActiveView>;
|
|
71
71
|
value: PropTypes.Requireable<any>;
|
|
72
|
-
views: (props:
|
|
72
|
+
views: (props: MultiViewCalendarProps, propName: keyof MultiViewCalendarProps<any>, componentName: string) => Error | null;
|
|
73
73
|
weekNumber: PropTypes.Requireable<boolean>;
|
|
74
74
|
};
|
|
75
75
|
/**
|
|
@@ -65,7 +65,7 @@ export declare class Navigation extends React.Component<NavigationProps, Navigat
|
|
|
65
65
|
*/
|
|
66
66
|
componentDidUpdate(_prevProps: NavigationProps, _prevState: NavigationState): void;
|
|
67
67
|
render(): JSX.Element;
|
|
68
|
-
protected handleVirtualizationMount: (virtualization:
|
|
68
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
69
69
|
protected buildNavigationItem: (date: Date) => React.ReactNode;
|
|
70
70
|
protected calculateHeights: () => void;
|
|
71
71
|
protected getTake(skip: number, total: number): number;
|
|
@@ -56,7 +56,7 @@ export declare class View extends React.Component<ViewProps, {}> {
|
|
|
56
56
|
max: PropTypes.Validator<Date>;
|
|
57
57
|
min: PropTypes.Validator<Date>;
|
|
58
58
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
selectedDate: PropTypes.Requireable<Date | (Date | null)[]>;
|
|
59
|
+
selectedDate: PropTypes.Requireable<Date | (Date | null | undefined)[]>;
|
|
60
60
|
showWeekNumbers: PropTypes.Requireable<boolean>;
|
|
61
61
|
viewDate: PropTypes.Validator<Date>;
|
|
62
62
|
};
|
|
@@ -98,9 +98,9 @@ export declare class ViewList extends React.Component<ViewListProps, ViewListSta
|
|
|
98
98
|
focusActiveDate: () => void;
|
|
99
99
|
blurActiveDate: () => void;
|
|
100
100
|
render(): JSX.Element;
|
|
101
|
-
protected handleVirtualizationMount: (virtualization:
|
|
102
|
-
protected buildMonthView: (cols: any, weekNames: any) => JSX.Element;
|
|
103
|
-
protected buildDates: (cols: any, dates: Date[]) => JSX.Element;
|
|
101
|
+
protected handleVirtualizationMount: (virtualization: Virtualization) => void;
|
|
102
|
+
protected buildMonthView: (cols: any[], weekNames: any[]) => JSX.Element;
|
|
103
|
+
protected buildDates: (cols: any[], dates: Date[]) => JSX.Element;
|
|
104
104
|
protected calculateHeights: () => void;
|
|
105
105
|
protected getTake: (skip: number, total: number) => number;
|
|
106
106
|
private handleScrollAction;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
export default class ScrollSync {
|
|
5
5
|
private scrollDetails;
|
|
6
6
|
private scrollNavigation;
|
|
7
|
-
areDetailsSynced:
|
|
8
|
-
isNavigationSynced:
|
|
9
|
-
magnitude:
|
|
7
|
+
areDetailsSynced: boolean;
|
|
8
|
+
isNavigationSynced: boolean;
|
|
9
|
+
magnitude: number;
|
|
10
10
|
constructor(detailsMonthHeight: number, navigationMonthHeight: number, scrollDetails: (scrollTo: number) => void, scrollNavigation: (scrollTo: number) => void);
|
|
11
11
|
syncDetails(navigationScrollTop: number): void;
|
|
12
12
|
syncNavigation(detailsScrollTop: number): void;
|
|
@@ -7,6 +7,8 @@ var ScrollSync = /** @class */ (function () {
|
|
|
7
7
|
function ScrollSync(detailsMonthHeight, navigationMonthHeight, scrollDetails, scrollNavigation) {
|
|
8
8
|
this.scrollDetails = scrollDetails;
|
|
9
9
|
this.scrollNavigation = scrollNavigation;
|
|
10
|
+
this.areDetailsSynced = false;
|
|
11
|
+
this.isNavigationSynced = false;
|
|
10
12
|
this.magnitude = Math.max(detailsMonthHeight / navigationMonthHeight, 1);
|
|
11
13
|
}
|
|
12
14
|
ScrollSync.prototype.syncDetails = function (navigationScrollTop) {
|
|
@@ -327,7 +327,7 @@ var KendoDate = /** @class */ (function () {
|
|
|
327
327
|
return { text: resultText, format: resultFormat };
|
|
328
328
|
};
|
|
329
329
|
KendoDate.prototype.dateFieldName = function (part) {
|
|
330
|
-
var formatPlaceholder = this.formatPlaceholder || 'wide';
|
|
330
|
+
var formatPlaceholder = (this.formatPlaceholder || 'wide');
|
|
331
331
|
if (formatPlaceholder[part.type]) {
|
|
332
332
|
return formatPlaceholder[part.type];
|
|
333
333
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as PropTypes from 'prop-types';
|
|
3
3
|
import { DateInput } from '../dateinput/DateInput';
|
|
4
|
-
import { MultiViewCalendar } from '../calendar/components/MultiViewCalendar';
|
|
4
|
+
import { MultiViewCalendar, MultiViewCalendarHandle } from '../calendar/components/MultiViewCalendar';
|
|
5
5
|
import { SelectionRange } from '../calendar/models';
|
|
6
6
|
import { DateRangePickerSettings } from './models';
|
|
7
7
|
/**
|
|
@@ -127,7 +127,9 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
127
127
|
valid: PropTypes.Requireable<boolean>;
|
|
128
128
|
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
129
129
|
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large" | null | undefined>;
|
|
130
|
-
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>;
|
|
130
|
+
fillMode: PropTypes.Requireable<"flat" | "outline" | "solid" | null | undefined>; /**
|
|
131
|
+
* Gets the wrapping element of the DateRangePicker.
|
|
132
|
+
*/
|
|
131
133
|
}>>;
|
|
132
134
|
focusedDate: PropTypes.Requireable<Date>;
|
|
133
135
|
format: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
@@ -235,7 +237,7 @@ export declare class DateRangePickerWithoutContext extends React.Component<DateR
|
|
|
235
237
|
* @hidden
|
|
236
238
|
*/
|
|
237
239
|
render(): JSX.Element;
|
|
238
|
-
protected setCalendarRef: (calendar:
|
|
240
|
+
protected setCalendarRef: (calendar: MultiViewCalendarHandle | null) => void;
|
|
239
241
|
protected focusCalendarElement: () => void;
|
|
240
242
|
protected focusDateInputElement(): void;
|
|
241
243
|
protected calculateValue: (props: DateRangePickerProps, state: DateRangePickerState) => SelectionRange;
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-dateinputs',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1655142919,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|
|
@@ -125,7 +125,7 @@ export declare class TimePart extends React.Component<TimePartProps, TimePartSta
|
|
|
125
125
|
protected nextTick(f: () => any): void;
|
|
126
126
|
protected hasActiveButton(): boolean | null;
|
|
127
127
|
protected focusList: (dir: Direction) => void;
|
|
128
|
-
protected listReducer: (state: any, list: any, idx:
|
|
128
|
+
protected listReducer: (state: any, list: any, idx: number, all: any) => any;
|
|
129
129
|
protected showNowButton: () => boolean | undefined;
|
|
130
130
|
protected hasSteps(): boolean;
|
|
131
131
|
private handleKeyDown;
|
|
@@ -238,7 +238,7 @@ export declare class TimePickerWithoutContext extends React.Component<TimePicker
|
|
|
238
238
|
* @hidden
|
|
239
239
|
*/
|
|
240
240
|
render(): JSX.Element;
|
|
241
|
-
protected setTimeSelectorRef: (timeSelector:
|
|
241
|
+
protected setTimeSelectorRef: (timeSelector: TimeSelector | null) => void;
|
|
242
242
|
protected nextValue: (nextProps: TimePickerProps, nextState: TimePickerState) => Date | null;
|
|
243
243
|
protected nextShow: (nextProps: TimePickerProps, nextState: TimePickerState) => boolean;
|
|
244
244
|
protected normalizeTime(date: Date): Date;
|
|
@@ -109,7 +109,7 @@ export declare class Virtualization extends React.Component<VirtualizationProps,
|
|
|
109
109
|
protected containerMaxScroll: () => number;
|
|
110
110
|
protected getContainerScrollDirection: (indexOffset: number) => ScrollDirection;
|
|
111
111
|
protected initServices: (props?: VirtualizationProps) => void;
|
|
112
|
-
protected getContainerProperty: (propertyName:
|
|
112
|
+
protected getContainerProperty: (propertyName: 'offsetHeight' | 'offsetWidth' | 'scrollHeight' | 'scrollWidth' | 'scrollTop' | 'scrollLeft') => number;
|
|
113
113
|
private handleScroll;
|
|
114
114
|
private handleScrollAction;
|
|
115
115
|
private handlePageAction;
|
|
@@ -122,7 +122,7 @@ var Virtualization = /** @class */ (function (_super) {
|
|
|
122
122
|
}
|
|
123
123
|
var maxScroll = _this.containerMaxScroll();
|
|
124
124
|
var sign = direction === ScrollDirection.Backward ? 1 : -1;
|
|
125
|
-
var difference = differenceToScroll(containerScroll, indexOffset, _this.props.maxScrollDifference);
|
|
125
|
+
var difference = differenceToScroll(containerScroll, indexOffset, _this.props.maxScrollDifference || 0);
|
|
126
126
|
var end = Math.min(indexOffset, maxScroll);
|
|
127
127
|
var start = Math.min(Math.max(end + (sign * difference), 0), maxScroll);
|
|
128
128
|
return { start: start, end: end };
|