amis 1.9.1-beta.1 → 1.9.1-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/RootRenderer.js +10 -2
- package/lib/RootRenderer.js.map +2 -2
- package/lib/Schema.d.ts +3 -2
- package/lib/Schema.js.map +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Button.d.ts +11 -10
- package/lib/components/Button.js +2 -2
- package/lib/components/Button.js.map +2 -2
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/Checkbox.js.map +2 -2
- package/lib/components/ContextMenu.d.ts +4 -0
- package/lib/components/ContextMenu.js +23 -7
- package/lib/components/ContextMenu.js.map +2 -2
- package/lib/components/DatePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/Form.d.ts +22 -0
- package/lib/components/Form.js +44 -0
- package/lib/components/Form.js.map +13 -0
- package/lib/components/FormField.d.ts +65 -0
- package/lib/components/FormField.js +48 -0
- package/lib/components/FormField.js.map +13 -0
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +4 -3
- package/lib/components/InputBox.js.map +2 -2
- package/lib/components/InputBoxWithSuggestion.d.ts +280 -0
- package/lib/components/InputBoxWithSuggestion.js +65 -0
- package/lib/components/InputBoxWithSuggestion.js.map +13 -0
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/PickerContainer.d.ts +4 -2
- package/lib/components/PickerContainer.js +28 -5
- package/lib/components/PickerContainer.js.map +2 -2
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/SearchBox.d.ts +40 -40
- package/lib/components/Select.d.ts +195 -202
- package/lib/components/Select.js +7 -3
- package/lib/components/Select.js.map +2 -2
- package/lib/components/Textarea.d.ts +568 -2
- package/lib/components/Textarea.js +129 -1
- package/lib/components/Textarea.js.map +2 -2
- package/lib/components/Toast.js +11 -9
- package/lib/components/Toast.js.map +2 -2
- package/lib/components/UserSelect.d.ts +500 -0
- package/lib/components/UserSelect.js +559 -0
- package/lib/components/UserSelect.js.map +13 -0
- package/lib/components/UserTabSelect.d.ts +320 -0
- package/lib/components/UserTabSelect.js +163 -0
- package/lib/components/UserTabSelect.js.map +13 -0
- package/lib/components/WithRemoteConfig.d.ts +7 -0
- package/lib/components/WithRemoteConfig.js +17 -11
- package/lib/components/WithRemoteConfig.js.map +2 -2
- package/lib/components/calendar/DaysView.d.ts +26 -1
- package/lib/components/calendar/DaysView.js +48 -14
- package/lib/components/calendar/DaysView.js.map +2 -2
- package/lib/components/calendar/TimeView.d.ts +1 -1
- package/lib/components/calendar/TimeView.js +8 -2
- package/lib/components/calendar/TimeView.js.map +2 -2
- package/lib/components/icons.d.ts +7 -1
- package/lib/components/icons.js +17 -1
- package/lib/components/icons.js.map +2 -2
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -1
- package/lib/components/index.js.map +2 -2
- package/lib/components/json-schema/Array.d.ts +3 -0
- package/lib/components/json-schema/Array.js +125 -0
- package/lib/components/json-schema/Array.js.map +13 -0
- package/lib/components/json-schema/Item.d.ts +3 -0
- package/lib/components/json-schema/Item.js +34 -0
- package/lib/components/json-schema/Item.js.map +13 -0
- package/lib/components/json-schema/Object.d.ts +3 -0
- package/lib/components/json-schema/Object.js +178 -0
- package/lib/components/json-schema/Object.js.map +13 -0
- package/lib/components/json-schema/index.d.ts +279 -0
- package/lib/components/json-schema/index.js +16 -0
- package/lib/components/json-schema/index.js.map +13 -0
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Array.js.map +2 -2
- package/lib/components/schema-editor/Common.d.ts +2 -0
- package/lib/components/schema-editor/Common.js +39 -3
- package/lib/components/schema-editor/Common.js.map +2 -2
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/Object.js.map +2 -2
- package/lib/components/schema-editor/index.d.ts +45 -41
- package/lib/components/schema-editor/index.js +5 -5
- package/lib/components/schema-editor/index.js.map +2 -2
- package/lib/hooks/use-validation-resolver.d.ts +1 -0
- package/lib/hooks/use-validation-resolver.js +49 -0
- package/lib/hooks/use-validation-resolver.js.map +13 -0
- package/lib/icons/department.js +17 -0
- package/lib/icons/menu.js +9 -0
- package/lib/icons/post.js +15 -0
- package/lib/icons/role.js +14 -0
- package/lib/icons/user-remove.js +12 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +2 -2
- package/lib/locale/de-DE.js +11 -1
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +12 -1
- package/lib/locale/en-US.js.map +2 -2
- package/lib/locale/zh-CN.js +14 -3
- package/lib/locale/zh-CN.js.map +2 -2
- package/lib/renderers/Action.js +25 -11
- package/lib/renderers/Action.js.map +2 -2
- package/lib/renderers/CRUD.js +5 -1
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Dialog.js +9 -3
- package/lib/renderers/Dialog.js.map +2 -2
- package/lib/renderers/Drawer.js +5 -1
- package/lib/renderers/Drawer.js.map +2 -2
- package/lib/renderers/Form/InputDate.d.ts +2 -2
- package/lib/renderers/Form/InputDate.js.map +2 -2
- package/lib/renderers/Form/JSONSchema.d.ts +23 -0
- package/lib/renderers/Form/JSONSchema.js +44 -0
- package/lib/renderers/Form/JSONSchema.js.map +13 -0
- package/lib/renderers/Form/JSONSchemaEditor.d.ts +2 -3
- package/lib/renderers/Form/JSONSchemaEditor.js +9 -24
- package/lib/renderers/Form/JSONSchemaEditor.js.map +2 -2
- package/lib/renderers/Form/Textarea.d.ts +1 -8
- package/lib/renderers/Form/Textarea.js +11 -75
- package/lib/renderers/Form/Textarea.js.map +2 -2
- package/lib/renderers/Form/UserSelect.d.ts +54 -0
- package/lib/renderers/Form/UserSelect.js +197 -0
- package/lib/renderers/Form/UserSelect.js.map +13 -0
- package/lib/renderers/Form/index.d.ts +1 -1
- package/lib/renderers/Form/index.js +88 -42
- package/lib/renderers/Form/index.js.map +2 -2
- package/lib/renderers/Log.d.ts +13 -1
- package/lib/renderers/Log.js +82 -16
- package/lib/renderers/Log.js.map +2 -2
- package/lib/renderers/Page.js +5 -1
- package/lib/renderers/Page.js.map +2 -2
- package/lib/renderers/Service.js +5 -1
- package/lib/renderers/Service.js.map +2 -2
- package/lib/renderers/Wizard.js +37 -14
- package/lib/renderers/Wizard.js.map +2 -2
- package/lib/store/form.js +65 -45
- package/lib/store/form.js.map +2 -2
- package/lib/themes/ang-ie11.css +561 -21
- package/lib/themes/ang.css +538 -9
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +561 -21
- package/lib/themes/antd.css +538 -9
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +561 -21
- package/lib/themes/cxd.css +538 -9
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +561 -21
- package/lib/themes/dark.css +538 -9
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +561 -21
- package/lib/themes/default.css +538 -9
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/api.js +1 -1
- package/lib/utils/api.js.map +2 -2
- package/lib/utils/renderer-event.js.map +2 -2
- package/package.json +2 -1
- package/schema.json +539 -3
- package/scss/_properties.scss +20 -8
- package/scss/components/_input-box.scss +22 -1
- package/scss/components/_json-schema.scss +124 -0
- package/scss/components/_log.scss +37 -5
- package/scss/components/form/_date-range.scss +1 -0
- package/scss/components/form/_select.scss +9 -0
- package/scss/components/form/_user-select.scss +422 -0
- package/scss/themes/_common.scss +2 -0
- package/sdk/ang-ie11.css +651 -21
- package/sdk/ang.css +628 -9
- package/sdk/antd-ie11.css +651 -21
- package/sdk/antd.css +628 -9
- package/sdk/barcode.js +51 -51
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/color-picker.js +65 -65
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +651 -21
- package/sdk/cxd.css +628 -9
- package/sdk/dark-ie11.css +651 -21
- package/sdk/dark.css +628 -9
- package/sdk/exceljs.js +1 -1
- package/sdk/locale/de-DE.js +11 -1
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +16 -16
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +651 -21
- package/sdk/sdk.css +628 -9
- package/sdk/sdk.js +1655 -1643
- package/sdk/thirds/hls.js/hls.js +1 -1
- package/sdk/thirds/mpegts.js/mpegts.js +1 -1
- package/sdk/tinymce.js +57 -57
- package/src/RootRenderer.tsx +27 -15
- package/src/Schema.ts +5 -1
- package/src/components/Button.tsx +3 -0
- package/src/components/Checkbox.tsx +2 -1
- package/src/components/ContextMenu.tsx +25 -7
- package/src/components/Form.tsx +70 -0
- package/src/components/FormField.tsx +127 -0
- package/src/components/InputBox.tsx +4 -1
- package/src/components/InputBoxWithSuggestion.tsx +113 -0
- package/src/components/PickerContainer.tsx +20 -5
- package/src/components/Select.tsx +18 -10
- package/src/components/Textarea.tsx +234 -2
- package/src/components/Toast.tsx +19 -18
- package/src/components/UserSelect.tsx +850 -0
- package/src/components/UserTabSelect.tsx +261 -0
- package/src/components/WithRemoteConfig.tsx +22 -7
- package/src/components/calendar/DaysView.tsx +53 -16
- package/src/components/calendar/TimeView.tsx +10 -5
- package/src/components/icons.tsx +17 -1
- package/src/components/index.tsx +3 -1
- package/src/components/json-schema/Array.tsx +216 -0
- package/src/components/json-schema/Item.tsx +47 -0
- package/src/components/json-schema/Object.tsx +339 -0
- package/src/components/json-schema/index.tsx +44 -0
- package/src/components/schema-editor/Array.tsx +3 -1
- package/src/components/schema-editor/Common.tsx +61 -4
- package/src/components/schema-editor/Object.tsx +3 -1
- package/src/components/schema-editor/index.tsx +12 -5
- package/src/hooks/use-validation-resolver.ts +45 -0
- package/src/icons/department.svg +17 -0
- package/src/icons/menu.svg +2 -0
- package/src/icons/post.svg +15 -0
- package/src/icons/role.svg +14 -0
- package/src/icons/user-remove.svg +12 -0
- package/src/index.tsx +2 -0
- package/src/locale/de-DE.ts +11 -1
- package/src/locale/en-US.ts +12 -1
- package/src/locale/zh-CN.ts +14 -3
- package/src/renderers/Action.tsx +10 -9
- package/src/renderers/CRUD.tsx +5 -1
- package/src/renderers/Dialog.tsx +9 -3
- package/src/renderers/Drawer.tsx +5 -1
- package/src/renderers/Form/InputDate.tsx +9 -4
- package/src/renderers/Form/JSONSchema.tsx +56 -0
- package/src/renderers/Form/JSONSchemaEditor.tsx +8 -27
- package/src/renderers/Form/Textarea.tsx +7 -117
- package/src/renderers/Form/UserSelect.tsx +263 -0
- package/src/renderers/Form/index.tsx +28 -18
- package/src/renderers/Log.tsx +148 -13
- package/src/renderers/Page.tsx +6 -1
- package/src/renderers/Service.tsx +5 -1
- package/src/renderers/Wizard.tsx +24 -10
- package/src/store/form.ts +24 -17
- package/src/utils/api.ts +1 -1
- package/src/utils/renderer-event.ts +0 -2
@@ -137,7 +137,7 @@ export declare class DateRangePicker extends React.Component<DateRangePickerProp
|
|
137
137
|
render(): JSX.Element;
|
138
138
|
}
|
139
139
|
declare const _default: {
|
140
|
-
new (props: Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
140
|
+
new (props: Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
141
141
|
startPlaceholder: string;
|
142
142
|
endPlaceholder: string;
|
143
143
|
format: string;
|
@@ -158,7 +158,7 @@ declare const _default: {
|
|
158
158
|
getWrappedInstance(): any;
|
159
159
|
render(): JSX.Element;
|
160
160
|
context: any;
|
161
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
161
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
162
162
|
startPlaceholder: string;
|
163
163
|
endPlaceholder: string;
|
164
164
|
format: string;
|
@@ -175,7 +175,7 @@ declare const _default: {
|
|
175
175
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
176
176
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
177
177
|
forceUpdate(callback?: (() => void) | undefined): void;
|
178
|
-
readonly props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
178
|
+
readonly props: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
179
179
|
startPlaceholder: string;
|
180
180
|
endPlaceholder: string;
|
181
181
|
format: string;
|
@@ -198,7 +198,7 @@ declare const _default: {
|
|
198
198
|
[key: string]: React.ReactInstance;
|
199
199
|
};
|
200
200
|
componentDidMount?(): void;
|
201
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
201
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
202
202
|
startPlaceholder: string;
|
203
203
|
endPlaceholder: string;
|
204
204
|
format: string;
|
@@ -216,7 +216,7 @@ declare const _default: {
|
|
216
216
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
217
217
|
componentWillUnmount?(): void;
|
218
218
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
219
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
219
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
220
220
|
startPlaceholder: string;
|
221
221
|
endPlaceholder: string;
|
222
222
|
format: string;
|
@@ -232,7 +232,7 @@ declare const _default: {
|
|
232
232
|
locale?: string | undefined;
|
233
233
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
234
234
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
235
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
235
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
236
236
|
startPlaceholder: string;
|
237
237
|
endPlaceholder: string;
|
238
238
|
format: string;
|
@@ -250,7 +250,7 @@ declare const _default: {
|
|
250
250
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
251
251
|
componentWillMount?(): void;
|
252
252
|
UNSAFE_componentWillMount?(): void;
|
253
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
253
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
254
254
|
startPlaceholder: string;
|
255
255
|
endPlaceholder: string;
|
256
256
|
format: string;
|
@@ -266,7 +266,7 @@ declare const _default: {
|
|
266
266
|
locale?: string | undefined;
|
267
267
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
268
268
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
269
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
269
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
270
270
|
startPlaceholder: string;
|
271
271
|
endPlaceholder: string;
|
272
272
|
format: string;
|
@@ -282,7 +282,7 @@ declare const _default: {
|
|
282
282
|
locale?: string | undefined;
|
283
283
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
284
284
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
285
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
285
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
286
286
|
startPlaceholder: string;
|
287
287
|
endPlaceholder: string;
|
288
288
|
format: string;
|
@@ -298,7 +298,7 @@ declare const _default: {
|
|
298
298
|
locale?: string | undefined;
|
299
299
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
300
300
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
301
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
301
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
302
302
|
startPlaceholder: string;
|
303
303
|
endPlaceholder: string;
|
304
304
|
format: string;
|
@@ -318,7 +318,7 @@ declare const _default: {
|
|
318
318
|
displayName: string;
|
319
319
|
contextType: React.Context<string>;
|
320
320
|
ComposedComponent: React.ComponentType<{
|
321
|
-
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
321
|
+
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
322
322
|
startPlaceholder: string;
|
323
323
|
endPlaceholder: string;
|
324
324
|
format: string;
|
@@ -339,7 +339,7 @@ declare const _default: {
|
|
339
339
|
getWrappedInstance(): any;
|
340
340
|
render(): JSX.Element;
|
341
341
|
context: any;
|
342
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
342
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
343
343
|
startPlaceholder: string;
|
344
344
|
endPlaceholder: string;
|
345
345
|
format: string;
|
@@ -356,7 +356,7 @@ declare const _default: {
|
|
356
356
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
357
357
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
358
358
|
forceUpdate(callback?: (() => void) | undefined): void;
|
359
|
-
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
359
|
+
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
360
360
|
startPlaceholder: string;
|
361
361
|
endPlaceholder: string;
|
362
362
|
format: string;
|
@@ -379,7 +379,7 @@ declare const _default: {
|
|
379
379
|
[key: string]: React.ReactInstance;
|
380
380
|
};
|
381
381
|
componentDidMount?(): void;
|
382
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
382
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
383
383
|
startPlaceholder: string;
|
384
384
|
endPlaceholder: string;
|
385
385
|
format: string;
|
@@ -397,7 +397,7 @@ declare const _default: {
|
|
397
397
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
398
398
|
componentWillUnmount?(): void;
|
399
399
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
400
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
400
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
401
401
|
startPlaceholder: string;
|
402
402
|
endPlaceholder: string;
|
403
403
|
format: string;
|
@@ -413,7 +413,7 @@ declare const _default: {
|
|
413
413
|
locale?: string | undefined;
|
414
414
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
415
415
|
}>, prevState: Readonly<{}>): any;
|
416
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
416
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
417
417
|
startPlaceholder: string;
|
418
418
|
endPlaceholder: string;
|
419
419
|
format: string;
|
@@ -431,7 +431,7 @@ declare const _default: {
|
|
431
431
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
432
432
|
componentWillMount?(): void;
|
433
433
|
UNSAFE_componentWillMount?(): void;
|
434
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
434
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
435
435
|
startPlaceholder: string;
|
436
436
|
endPlaceholder: string;
|
437
437
|
format: string;
|
@@ -447,7 +447,7 @@ declare const _default: {
|
|
447
447
|
locale?: string | undefined;
|
448
448
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
449
449
|
}>, nextContext: any): void;
|
450
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
450
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
451
451
|
startPlaceholder: string;
|
452
452
|
endPlaceholder: string;
|
453
453
|
format: string;
|
@@ -463,7 +463,7 @@ declare const _default: {
|
|
463
463
|
locale?: string | undefined;
|
464
464
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
465
465
|
}>, nextContext: any): void;
|
466
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
466
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
467
467
|
startPlaceholder: string;
|
468
468
|
endPlaceholder: string;
|
469
469
|
format: string;
|
@@ -479,7 +479,7 @@ declare const _default: {
|
|
479
479
|
locale?: string | undefined;
|
480
480
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
481
481
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
482
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
482
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
483
483
|
startPlaceholder: string;
|
484
484
|
endPlaceholder: string;
|
485
485
|
format: string;
|
@@ -503,7 +503,7 @@ declare const _default: {
|
|
503
503
|
ComposedComponent: typeof DateRangePicker;
|
504
504
|
}>;
|
505
505
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
506
|
-
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
506
|
+
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
507
507
|
startPlaceholder: string;
|
508
508
|
endPlaceholder: string;
|
509
509
|
format: string;
|
@@ -524,7 +524,7 @@ declare const _default: {
|
|
524
524
|
getWrappedInstance(): any;
|
525
525
|
render(): JSX.Element;
|
526
526
|
context: any;
|
527
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
527
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
528
528
|
startPlaceholder: string;
|
529
529
|
endPlaceholder: string;
|
530
530
|
format: string;
|
@@ -541,7 +541,7 @@ declare const _default: {
|
|
541
541
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
542
542
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
543
543
|
forceUpdate(callback?: (() => void) | undefined): void;
|
544
|
-
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
544
|
+
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
545
545
|
startPlaceholder: string;
|
546
546
|
endPlaceholder: string;
|
547
547
|
format: string;
|
@@ -564,7 +564,7 @@ declare const _default: {
|
|
564
564
|
[key: string]: React.ReactInstance;
|
565
565
|
};
|
566
566
|
componentDidMount?(): void;
|
567
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
567
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
568
568
|
startPlaceholder: string;
|
569
569
|
endPlaceholder: string;
|
570
570
|
format: string;
|
@@ -582,7 +582,7 @@ declare const _default: {
|
|
582
582
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
583
583
|
componentWillUnmount?(): void;
|
584
584
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
585
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
585
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
586
586
|
startPlaceholder: string;
|
587
587
|
endPlaceholder: string;
|
588
588
|
format: string;
|
@@ -598,7 +598,7 @@ declare const _default: {
|
|
598
598
|
locale?: string | undefined;
|
599
599
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
600
600
|
}>, prevState: Readonly<{}>): any;
|
601
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
601
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
602
602
|
startPlaceholder: string;
|
603
603
|
endPlaceholder: string;
|
604
604
|
format: string;
|
@@ -616,7 +616,7 @@ declare const _default: {
|
|
616
616
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
617
617
|
componentWillMount?(): void;
|
618
618
|
UNSAFE_componentWillMount?(): void;
|
619
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
619
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
620
620
|
startPlaceholder: string;
|
621
621
|
endPlaceholder: string;
|
622
622
|
format: string;
|
@@ -632,7 +632,7 @@ declare const _default: {
|
|
632
632
|
locale?: string | undefined;
|
633
633
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
634
634
|
}>, nextContext: any): void;
|
635
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
635
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
636
636
|
startPlaceholder: string;
|
637
637
|
endPlaceholder: string;
|
638
638
|
format: string;
|
@@ -648,7 +648,7 @@ declare const _default: {
|
|
648
648
|
locale?: string | undefined;
|
649
649
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
650
650
|
}>, nextContext: any): void;
|
651
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
651
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
652
652
|
startPlaceholder: string;
|
653
653
|
endPlaceholder: string;
|
654
654
|
format: string;
|
@@ -664,7 +664,7 @@ declare const _default: {
|
|
664
664
|
locale?: string | undefined;
|
665
665
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
666
666
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
667
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
667
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
668
668
|
startPlaceholder: string;
|
669
669
|
endPlaceholder: string;
|
670
670
|
format: string;
|
@@ -688,7 +688,7 @@ declare const _default: {
|
|
688
688
|
ComposedComponent: typeof DateRangePicker;
|
689
689
|
}, {}> & {
|
690
690
|
ComposedComponent: {
|
691
|
-
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
691
|
+
new (props: Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
692
692
|
startPlaceholder: string;
|
693
693
|
endPlaceholder: string;
|
694
694
|
format: string;
|
@@ -709,7 +709,7 @@ declare const _default: {
|
|
709
709
|
getWrappedInstance(): any;
|
710
710
|
render(): JSX.Element;
|
711
711
|
context: any;
|
712
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
712
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
713
713
|
startPlaceholder: string;
|
714
714
|
endPlaceholder: string;
|
715
715
|
format: string;
|
@@ -726,7 +726,7 @@ declare const _default: {
|
|
726
726
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
727
727
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
728
728
|
forceUpdate(callback?: (() => void) | undefined): void;
|
729
|
-
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
729
|
+
readonly props: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
730
730
|
startPlaceholder: string;
|
731
731
|
endPlaceholder: string;
|
732
732
|
format: string;
|
@@ -749,7 +749,7 @@ declare const _default: {
|
|
749
749
|
[key: string]: React.ReactInstance;
|
750
750
|
};
|
751
751
|
componentDidMount?(): void;
|
752
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
752
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
753
753
|
startPlaceholder: string;
|
754
754
|
endPlaceholder: string;
|
755
755
|
format: string;
|
@@ -767,7 +767,7 @@ declare const _default: {
|
|
767
767
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
768
768
|
componentWillUnmount?(): void;
|
769
769
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
770
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
770
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
771
771
|
startPlaceholder: string;
|
772
772
|
endPlaceholder: string;
|
773
773
|
format: string;
|
@@ -783,7 +783,7 @@ declare const _default: {
|
|
783
783
|
locale?: string | undefined;
|
784
784
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
785
785
|
}>, prevState: Readonly<{}>): any;
|
786
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
786
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
787
787
|
startPlaceholder: string;
|
788
788
|
endPlaceholder: string;
|
789
789
|
format: string;
|
@@ -801,7 +801,7 @@ declare const _default: {
|
|
801
801
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
802
802
|
componentWillMount?(): void;
|
803
803
|
UNSAFE_componentWillMount?(): void;
|
804
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
804
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
805
805
|
startPlaceholder: string;
|
806
806
|
endPlaceholder: string;
|
807
807
|
format: string;
|
@@ -817,7 +817,7 @@ declare const _default: {
|
|
817
817
|
locale?: string | undefined;
|
818
818
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
819
819
|
}>, nextContext: any): void;
|
820
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
820
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
821
821
|
startPlaceholder: string;
|
822
822
|
endPlaceholder: string;
|
823
823
|
format: string;
|
@@ -833,7 +833,7 @@ declare const _default: {
|
|
833
833
|
locale?: string | undefined;
|
834
834
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
835
835
|
}>, nextContext: any): void;
|
836
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
836
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
837
837
|
startPlaceholder: string;
|
838
838
|
endPlaceholder: string;
|
839
839
|
format: string;
|
@@ -849,7 +849,7 @@ declare const _default: {
|
|
849
849
|
locale?: string | undefined;
|
850
850
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
851
851
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
852
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "
|
852
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "classPrefix" | "classnames" | "data" | "embed" | "className" | "theme" | "value" | "type" | "disabled" | "onFocus" | "onBlur" | "onChange" | "useMobileUI" | "maxDate" | "minDate" | "maxDuration" | "minDuration" | "borderMode" | "popOverContainer" | "dateFormat" | "timeFormat" | "viewMode" | "utc" | "popoverClassName" | "onRef"> & Partial<Pick<Omit<DateRangePickerProps, keyof LocaleProps>, "delimiter" | "joinValues" | "resetValue" | "clearable" | "format" | "inputFormat" | "ranges" | "startPlaceholder" | "endPlaceholder" | "closeOnSelect" | "overlayPlacement">> & Partial<Pick<{
|
853
853
|
startPlaceholder: string;
|
854
854
|
endPlaceholder: string;
|
855
855
|
format: string;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* @file 给组件用的,渲染器里面不要用这个
|
3
|
+
*/
|
4
|
+
import React from 'react';
|
5
|
+
import { ThemeProps } from '../theme';
|
6
|
+
import { UseFormReturn } from 'react-hook-form';
|
7
|
+
import { LocaleProps } from '../locale';
|
8
|
+
export declare type FormRef = React.MutableRefObject<{
|
9
|
+
submit: () => void;
|
10
|
+
} | undefined>;
|
11
|
+
export interface FormProps extends ThemeProps, LocaleProps {
|
12
|
+
defaultValues: any;
|
13
|
+
onSubmit: (value: any) => void;
|
14
|
+
forwardRef?: FormRef;
|
15
|
+
children?: (methods: UseFormReturn) => JSX.Element | null;
|
16
|
+
}
|
17
|
+
export declare function Form(props: FormProps): JSX.Element;
|
18
|
+
declare type ThemedFormProps = Omit<FormProps, keyof ThemeProps | keyof LocaleProps>;
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<ThemedFormProps & React.RefAttributes<{
|
20
|
+
submit: () => void;
|
21
|
+
} | undefined>>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Form = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
/**
|
6
|
+
* @file 给组件用的,渲染器里面不要用这个
|
7
|
+
*/
|
8
|
+
var react_1 = (0, tslib_1.__importDefault)(require("react"));
|
9
|
+
var theme_1 = require("../theme");
|
10
|
+
var react_hook_form_1 = require("react-hook-form");
|
11
|
+
var use_validation_resolver_1 = require("../hooks/use-validation-resolver");
|
12
|
+
var locale_1 = require("../locale");
|
13
|
+
function Form(props) {
|
14
|
+
var _a;
|
15
|
+
var cx = props.classnames;
|
16
|
+
var methods = (0, react_hook_form_1.useForm)({
|
17
|
+
defaultValues: props.defaultValues,
|
18
|
+
resolver: (0, use_validation_resolver_1.useValidationResolver)(props.translate)
|
19
|
+
});
|
20
|
+
react_1.default.useEffect(function () {
|
21
|
+
if (props.forwardRef) {
|
22
|
+
// 这个模式别的组件没见到过不知道后续会不会不允许
|
23
|
+
props.forwardRef.current = {
|
24
|
+
submit: function () {
|
25
|
+
return new Promise(function (resolve, reject) {
|
26
|
+
methods.handleSubmit(function (values) { return resolve(values); }, function () { return resolve(false); })();
|
27
|
+
});
|
28
|
+
}
|
29
|
+
};
|
30
|
+
}
|
31
|
+
return function () {
|
32
|
+
if (props.forwardRef) {
|
33
|
+
props.forwardRef.current = undefined;
|
34
|
+
}
|
35
|
+
};
|
36
|
+
});
|
37
|
+
return (react_1.default.createElement("form", { className: cx('Form'), onSubmit: methods.handleSubmit(props.onSubmit), noValidate: true },
|
38
|
+
react_1.default.createElement("input", { type: "submit", style: { display: 'none' } }), (_a = props.children) === null || _a === void 0 ? void 0 :
|
39
|
+
_a.call(props, methods)));
|
40
|
+
}
|
41
|
+
exports.Form = Form;
|
42
|
+
var ThemedForm = (0, theme_1.themeable)((0, locale_1.localeable)(Form));
|
43
|
+
exports.default = react_1.default.forwardRef(function (props, ref) { return (react_1.default.createElement(ThemedForm, (0, tslib_1.__assign)({}, props, { forwardRef: ref }))); });
|
44
|
+
//# sourceMappingURL=./components/Form.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"file": "Form.js",
|
4
|
+
"sourceRoot": "",
|
5
|
+
"sources": [
|
6
|
+
"/src/components/Form.tsx"
|
7
|
+
],
|
8
|
+
"names": [],
|
9
|
+
"mappings": ";;;;AAAA;;GAEG;AACH,6DAA0B;AAC1B,kCAA+C;AAC/C,mDAAuD;AACvD,4EAAuE;AACvE,oCAAkD;AAgBlD,SAAgB,IAAI,CAAC,KAAgB;;IAC5B,IAAY,EAAE,GAAI,KAAK,WAAT,CAAU;IAC/B,IAAM,OAAO,GAAG,IAAA,yBAAO,EAAC;QACtB,aAAa,EAAE,KAAK,CAAC,aAAa;QAClC,QAAQ,EAAE,IAAA,+CAAqB,EAAC,KAAK,CAAC,SAAS,CAAC;KACjD,CAAC,CAAC;IAEH,eAAK,CAAC,SAAS,CAAC;QACd,IAAI,KAAK,CAAC,UAAU,EAAE;YACpB,0BAA0B;YAC1B,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG;gBACzB,MAAM,EAAE;oBACN,OAAA,IAAI,OAAO,CAAM,UAAC,OAAO,EAAE,MAAM;wBAC/B,OAAO,CAAC,YAAY,CAClB,UAAA,MAAM,IAAI,OAAA,OAAO,CAAC,MAAM,CAAC,EAAf,CAAe,EACzB,cAAM,OAAA,OAAO,CAAC,KAAK,CAAC,EAAd,CAAc,CACrB,EAAE,CAAC;oBACN,CAAC,CAAC;gBALF,CAKE;aACL,CAAC;SACH;QAED,OAAO;YACL,IAAI,KAAK,CAAC,UAAU,EAAE;gBACpB,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;aACtC;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,wCACE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,EACrB,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,EAC9C,UAAU;QAGV,yCAAO,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,GAAI,EAChD,MAAA,KAAK,CAAC,QAAQ;gBAAd,KAAK,EAAY,OAAO,CAAC,CACrB,CACR,CAAC;AACJ,CAAC;AAvCD,oBAuCC;AAED,IAAM,UAAU,GAAG,IAAA,iBAAS,EAAC,IAAA,mBAAU,EAAC,IAAI,CAAC,CAAC,CAAC;AAG/C,kBAAe,eAAK,CAAC,UAAU,CAAC,UAAC,KAAsB,EAAE,GAAY,IAAK,OAAA,CACxE,8BAAC,UAAU,4BAAK,KAAK,IAAE,UAAU,EAAE,GAAG,IAAI,CAC3C,EAFyE,CAEzE,CAAC,CAAC",
|
10
|
+
"sourcesContent": [
|
11
|
+
"/**\n * @file 给组件用的,渲染器里面不要用这个\n */\nimport React from 'react';\nimport {themeable, ThemeProps} from '../theme';\nimport {useForm, UseFormReturn} from 'react-hook-form';\nimport {useValidationResolver} from '../hooks/use-validation-resolver';\nimport {localeable, LocaleProps} from '../locale';\n\nexport type FormRef = React.MutableRefObject<\n | {\n submit: () => void;\n }\n | undefined\n>;\n\nexport interface FormProps extends ThemeProps, LocaleProps {\n defaultValues: any;\n onSubmit: (value: any) => void;\n forwardRef?: FormRef;\n children?: (methods: UseFormReturn) => JSX.Element | null;\n}\n\nexport function Form(props: FormProps) {\n const {classnames: cx} = props;\n const methods = useForm({\n defaultValues: props.defaultValues,\n resolver: useValidationResolver(props.translate)\n });\n\n React.useEffect(() => {\n if (props.forwardRef) {\n // 这个模式别的组件没见到过不知道后续会不会不允许\n props.forwardRef.current = {\n submit: () =>\n new Promise<any>((resolve, reject) => {\n methods.handleSubmit(\n values => resolve(values),\n () => resolve(false)\n )();\n })\n };\n }\n\n return () => {\n if (props.forwardRef) {\n props.forwardRef.current = undefined;\n }\n };\n });\n\n return (\n <form\n className={cx('Form')}\n onSubmit={methods.handleSubmit(props.onSubmit)}\n noValidate\n >\n {/* 实现回车自动提交 */}\n <input type=\"submit\" style={{display: 'none'}} />\n {props.children?.(methods)}\n </form>\n );\n}\n\nconst ThemedForm = themeable(localeable(Form));\ntype ThemedFormProps = Omit<FormProps, keyof ThemeProps | keyof LocaleProps>;\n\nexport default React.forwardRef((props: ThemedFormProps, ref: FormRef) => (\n <ThemedForm {...props} forwardRef={ref} />\n));\n"
|
12
|
+
]
|
13
|
+
}
|