@progress/kendo-react-dateinputs
Version:
KendoReact Date Inputs package
85 lines (84 loc) • 2.32 kB
TypeScript
import * as React from 'react';
import * as PropTypes from 'prop-types';
import { DateFormatPart } from '@progress/kendo-react-intl';
import { ListServiceSettings } from './models';
import { DOMService } from './services';
/**
* @hidden
*/
export interface TimeListProps {
id?: number;
max?: Date;
min?: Date;
onBlur?: any;
onChange?: any;
onFocus?: any;
part: DateFormatPart;
step?: number;
value: Date;
smoothScroll?: boolean;
boundRange?: boolean;
disabled?: boolean;
}
/**
* @hidden
*/
export declare class TimeList extends React.Component<TimeListProps, {}> {
static propTypes: {
id: PropTypes.Requireable<any>;
max: PropTypes.Requireable<any>;
min: PropTypes.Requireable<any>;
part: (props: TimeListProps, propName: string, componentName: string) => void;
step: (props: TimeListProps, propName: string, componentName: string) => void;
value: PropTypes.Requireable<any>;
smoothScroll: PropTypes.Requireable<any>;
};
static defaultProps: {
boundRange: boolean;
max: Date;
min: Date;
step: number;
smoothScroll: boolean;
};
protected dom: DOMService;
private intl;
private _element;
private service;
private virtualization;
private topOffset;
private bottomOffset;
private itemHeight;
private listHeight;
private topThreshold;
private bottomThreshold;
private animateToIndex;
constructor(props: TimeListProps);
readonly element: HTMLDivElement | null;
protected readonly animate: boolean;
private readonly min;
private readonly max;
private readonly step;
/**
* @hidden
*/
componentDidMount(): void;
/**
* @hidden
*/
componentDidUpdate(): void;
/**
* @hidden
*/
render(): JSX.Element;
focus: () => void;
protected itemOffset: (scrollTop: number) => number;
protected calculateHeights: () => void;
protected configureServices: ({ min, max, value }?: TimeListProps) => void;
protected serviceSettings: (settings?: any) => ListServiceSettings;
private handleScrollAction;
private handleFocus;
private handleBlur;
private handleMouseOver;
private handleKeyDown;
private handleChange;
}