/**
* @file MonthRangePicker
* @description 月份范围选择器
* @author fex
*/
///
import React from 'react';
import moment from 'moment';
import { ThemeProps } from 'amis-core';
import { LocaleProps } from 'amis-core';
import { ShortCuts } from './DatePicker';
import type { PlainObject } from 'amis-core';
export interface MonthRangePickerProps extends ThemeProps, LocaleProps {
className?: string;
popoverClassName?: string;
placeholder?: string;
theme?: any;
format: string;
utc?: boolean;
inputFormat?: string;
timeFormat?: string;
/**
* @deprecated 3.1.0后废弃,用shortcuts替代
*/
ranges?: string | Array;
shortcuts?: string | Array;
clearable?: boolean;
minDate?: moment.Moment;
maxDate?: moment.Moment;
minDuration?: moment.Duration;
maxDuration?: moment.Duration;
joinValues: boolean;
delimiter: string;
value?: any;
onChange: (value: any) => void;
data?: any;
disabled?: boolean;
closeOnSelect?: boolean;
overlayPlacement: string;
resetValue?: any;
popOverContainer?: any;
embed?: boolean;
onFocus?: Function;
onBlur?: Function;
label?: string | false;
}
export interface MonthRangePickerState {
isOpened: boolean;
isFocused: boolean;
startDate?: moment.Moment;
endDate?: moment.Moment;
}
export declare class MonthRangePicker extends React.Component {
static defaultProps: {
placeholder: string;
format: string;
inputFormat: string;
joinValues: boolean;
clearable: boolean;
delimiter: string;
resetValue: string;
closeOnSelect: boolean;
overlayPlacement: string;
};
innerDom: any;
popover: any;
input?: HTMLInputElement;
dom: React.RefObject;
nextMonth: moment.Moment;
constructor(props: MonthRangePickerProps);
componentDidUpdate(prevProps: MonthRangePickerProps): void;
focus(): void;
blur(): void;
handleFocus(e: React.SyntheticEvent): void;
handleBlur(e: React.SyntheticEvent): void;
open(): void;
close(): void;
handleClick(): void;
handlePopOverClick(e: React.MouseEvent): void;
handleKeyPress(e: React.KeyboardEvent): void;
confirm(): void;
filterDate(date: moment.Moment, originValue?: moment.Moment, timeFormat?: string, type?: 'start' | 'end'): moment.Moment;
handleStartChange(newValue: moment.Moment): void;
handleEndChange(newValue: moment.Moment): void;
handleMobileChange(data: any, callback?: () => void): void;
selectShortcut(shortcut: PlainObject): void;
renderShortcuts(shortcuts: string | Array | undefined): React.JSX.Element | null;
clearValue(e: React.MouseEvent): void;
checkStartIsValidDate(currentDate: moment.Moment): boolean;
checkEndIsValidDate(currentDate: moment.Moment): boolean;
renderMonth(props: any, month: number, year: number): React.JSX.Element;
renderCalendar(): React.JSX.Element;
render(): React.JSX.Element;
}
declare const _default: {
new (props: Omit, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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 MonthRangePicker;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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 MonthRangePicker;
}, {}> & {
ComposedComponent: {
new (props: Pick, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "data" | "embed" | "label" | "style" | "className" | "theme" | "mobileUI" | "value" | "disabled" | "onFocus" | "onBlur" | "onChange" | "popoverClassName" | "timeFormat" | "minDate" | "maxDate" | "utc" | "shortcuts" | "popOverContainer" | "ranges" | "minDuration" | "maxDuration"> & {
placeholder?: string | undefined;
clearable?: boolean | undefined;
inputFormat?: string | undefined;
format?: string | undefined;
closeOnSelect?: boolean | undefined;
overlayPlacement?: string | undefined;
joinValues?: boolean | undefined;
delimiter?: string | undefined;
resetValue?: any;
} & {} & {
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 MonthRangePicker;
};
};
export default _default;