/**
* @file CalendarMobile
* @description 移动端日历组件
* @author hongyang03
*/
///
import React from 'react';
import moment from 'moment';
import type { LocaleProps, ThemeProps } from 'jamis-core';
export interface CalendarMobileProps extends ThemeProps, LocaleProps {
className?: string;
timeFormat?: string;
inputFormat?: string;
startDate?: moment.Moment;
endDate?: moment.Moment;
minDate?: moment.Moment;
maxDate?: moment.Moment;
minDuration?: moment.Duration;
maxDuration?: moment.Duration;
dateFormat?: string;
embed?: boolean;
viewMode?: 'days' | 'months' | 'years' | 'time' | 'quarters';
close?: () => void;
confirm?: (startDate?: any, endTime?: any) => void;
onChange?: (data: any, callback?: () => void) => void;
footerExtra?: JSX.Element | null;
showViewMode?: 'years' | 'months';
isDatePicker?: boolean;
timeConstraints?: {
hours?: {
min: number;
max: number;
step: number;
};
minutes?: {
min: number;
max: number;
step: number;
};
seconds: {
min: number;
max: number;
step: number;
};
};
defaultDate?: moment.Moment;
}
export interface CalendarMobileState {
startDate?: moment.Moment;
endDate?: moment.Moment;
monthHeights?: number[];
currentDate: moment.Moment;
showToast: boolean;
isScrollToBottom: boolean;
dateTime: any;
minDate?: moment.Moment;
maxDate?: moment.Moment;
}
export declare class CalendarMobile extends React.Component {
mobileBody: any;
mobileHeader: any;
timer: any;
static defaultProps: Pick;
constructor(props: CalendarMobileProps);
getDateRange(minDate?: moment.Moment, maxDate?: moment.Moment, defaultDate?: moment.Moment): {
currentDate: moment.Moment;
minDate: moment.Moment;
maxDate: moment.Moment;
};
componentDidMount(): void;
componentDidUpdate(prevProps: CalendarMobileProps): void;
componentWillUnmount(): void;
initMonths(): void;
scollToDate(date: moment.Moment): void;
onMobileBodyScroll(e: any): void;
scrollPreYear(): void;
scrollAfterYear(): void;
getDaysOfWeek(): string[];
handleCalendarClick(isDisabled: boolean): void;
getRenderProps(props: any, currentDate: moment.Moment): {
props: any;
footerText: string;
rdtDisabled: boolean;
};
handleTimeChange(newTime: any): void;
checkIsValidDate(currentDate: moment.Moment): boolean;
renderMobileDay(props: any, currentDate: moment.Moment): JSX.Element;
renderMonth(props: any, month: number, year: number): JSX.Element;
renderQuarter(props: any, quarter: number, year: number): JSX.Element;
handleMobileChange(newValue: moment.Moment): void;
renderMobileCalendarBody(): JSX.Element | undefined;
renderMobileTimePicker(): JSX.Element;
render(): JSX.Element;
}
declare const _default: {
new (props: Omit, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("jamis-core").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof CalendarMobile;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof CalendarMobile;
}, {}> & {
ComposedComponent: {
new (props: Pick, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
context: string;
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "confirm" | "classPrefix" | "classnames" | "className" | "theme" | "embed" | "close" | "onChange" | "minDate" | "maxDate" | "timeFormat" | "timeConstraints" | "inputFormat" | "dateFormat" | "viewMode" | "startDate" | "endDate" | "minDuration" | "maxDuration" | "footerExtra" | "isDatePicker" | "defaultDate"> & {
showViewMode?: "years" | "months" | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof CalendarMobile;
};
};
export default _default;