UNPKG

fastlion-amis

Version:

一种MIS页面生成工具

696 lines 103 kB
/** * @file MonthRangePicker * @description 月份范围选择器 * @author fex */ /// <reference types="hoist-non-react-statics" /> import React from 'react'; import moment from 'moment'; import { ThemeProps } from '../theme'; import { PlainObject } from '../types'; import { LocaleProps } from '../locale'; import { ShortCuts } from './DatePicker'; export interface MonthRangePickerProps extends ThemeProps, LocaleProps { className?: string; popoverClassName?: string; placeholder?: string; theme?: any; format: string; utc?: boolean; inputFormat?: string; timeFormat?: string; ranges?: string | Array<ShortCuts>; 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; useMobileUI?: boolean; } export interface MonthRangePickerState { isOpened: boolean; isFocused: boolean; startDate?: moment.Moment; endDate?: moment.Moment; } export declare class MonthRangePicker extends React.Component<MonthRangePickerProps, MonthRangePickerState> { 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<HTMLDivElement>; nextMonth: moment.Moment; constructor(props: MonthRangePickerProps); componentDidUpdate(prevProps: MonthRangePickerProps): void; focus(): void; blur(): void; handleFocus(): void; handleBlur(): void; open(): void; close(): void; handleClick(): void; handlePopOverClick(e: React.MouseEvent<any>): 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; selectRannge(range: PlainObject): void; renderRanges(ranges: string | Array<ShortCuts> | undefined): JSX.Element | null; clearValue(e: React.MouseEvent<any>): void; checkStartIsValidDate(currentDate: moment.Moment): boolean; checkEndIsValidDate(currentDate: moment.Moment): boolean; renderMonth(props: any, month: number, year: number): JSX.Element; renderCalendar(): JSX.Element; render(): JSX.Element; } declare const _default: { new (props: (Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps) | Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps, context: any): { render(): JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextType: React.Context<string>; ComposedComponent: React.ComponentType<{ new (props: (Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }) | Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>): { render(): JSX.Element; context: any; setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { 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<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { 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<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextState: Readonly<{}>, nextContext: any): void; }; new (props: Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }, context: any): { render(): JSX.Element; context: any; setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { 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<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { 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<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "delimiter" | "joinValues" | "resetValue" | "clearable" | "inputFormat" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{ placeholder: string; format: string; inputFormat: string; joinValues: boolean; clearable: boolean; delimiter: string; resetValue: string; closeOnSelect: boolean; overlayPlacement: string; }, never>> & { locale?: string | undefined; translate?: ((str: string, ...args: any[]) => string) | undefined; }>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "disabled" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "popOverContainer" | "timeFormat" | "utc" | "popoverClassName" | "ranges"> & Partial<Pick<Omit<MonthRangePickerProps, keyof LocaleProps>, "placeholder" | "format" | "deli