amis 1.9.1-beta.28 → 1.9.1-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/AnchorNav.d.ts +9 -2
- package/lib/components/AnchorNav.js +32 -5
- package/lib/components/AnchorNav.js.map +2 -2
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +3 -5
- package/lib/components/DatePicker.js.map +2 -2
- package/lib/components/DateRangePicker.d.ts +45 -42
- package/lib/components/DateRangePicker.js +43 -11
- package/lib/components/DateRangePicker.js.map +2 -2
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/MonthRangePicker.js +2 -2
- package/lib/components/MonthRangePicker.js.map +2 -2
- package/lib/components/SearchBox.d.ts +124 -42
- package/lib/components/SearchBox.js +181 -19
- package/lib/components/SearchBox.js.map +2 -2
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +18 -7
- package/lib/components/Tag.js.map +2 -2
- package/lib/components/calendar/Calendar.d.ts +1 -0
- package/lib/components/calendar/Calendar.js +8 -8
- package/lib/components/calendar/Calendar.js.map +2 -2
- package/lib/components/calendar/DaysView.d.ts +2 -1
- package/lib/components/calendar/DaysView.js +5 -4
- package/lib/components/calendar/DaysView.js.map +2 -2
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +1 -0
- package/lib/locale/en-US.js.map +2 -2
- package/lib/locale/zh-CN.js +1 -0
- package/lib/locale/zh-CN.js.map +2 -2
- package/lib/renderers/CRUD.d.ts +2 -0
- package/lib/renderers/CRUD.js +8 -2
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Card.d.ts +7 -2
- package/lib/renderers/Card.js +11 -7
- package/lib/renderers/Card.js.map +2 -2
- package/lib/renderers/Form/InputColor.d.ts +0 -458
- package/lib/renderers/Form/InputColor.js +8 -9
- package/lib/renderers/Form/InputColor.js.map +2 -2
- package/lib/renderers/Form/InputExcel.d.ts +1 -0
- package/lib/renderers/Form/InputExcel.js +5 -0
- package/lib/renderers/Form/InputExcel.js.map +2 -2
- package/lib/renderers/Form/InputFile.d.ts +2 -2
- package/lib/renderers/Form/InputFile.js +6 -5
- package/lib/renderers/Form/InputFile.js.map +2 -2
- package/lib/renderers/Form/InputTable.js +16 -2
- package/lib/renderers/Form/InputTable.js.map +2 -2
- package/lib/renderers/Form/InputText.d.ts +8 -0
- package/lib/renderers/Form/InputText.js +8 -8
- package/lib/renderers/Form/InputText.js.map +2 -2
- package/lib/renderers/IFrame.d.ts +4 -0
- package/lib/renderers/IFrame.js +2 -2
- package/lib/renderers/IFrame.js.map +2 -2
- package/lib/renderers/Table/index.js +2 -2
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tag.js +2 -2
- package/lib/renderers/Tag.js.map +2 -2
- package/lib/renderers/Wizard.d.ts +1 -1
- package/lib/renderers/Wizard.js +72 -75
- package/lib/renderers/Wizard.js.map +2 -2
- package/lib/store/formItem.js +2 -1
- package/lib/store/formItem.js.map +2 -2
- package/lib/themes/ang-ie11.css +134 -21
- package/lib/themes/ang.css +138 -21
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +134 -21
- package/lib/themes/antd.css +138 -21
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +134 -21
- package/lib/themes/cxd.css +138 -21
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +134 -21
- package/lib/themes/dark.css +138 -21
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default-ie11.css +134 -21
- package/lib/themes/default.css +138 -21
- package/lib/themes/default.css.map +1 -1
- package/lib/utils/dom.js +3 -2
- package/lib/utils/dom.js.map +2 -2
- package/package.json +3 -3
- package/schema.json +35 -14
- package/scss/_properties.scss +5 -0
- package/scss/components/_anchor-nav.scss +1 -0
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_search-box.scss +116 -10
- package/scss/components/_tag.scss +12 -3
- package/scss/components/form/_date-range.scss +1 -1
- package/scss/components/form/_date.scss +28 -24
- package/sdk/ang-ie11.css +146 -20
- package/sdk/ang.css +150 -20
- package/sdk/antd-ie11.css +146 -20
- package/sdk/antd.css +150 -20
- package/sdk/barcode.js +51 -51
- package/sdk/charts.js +14 -14
- package/sdk/codemirror.js +7 -7
- package/sdk/cropperjs.js +2 -2
- package/sdk/cxd-ie11.css +146 -20
- package/sdk/cxd.css +150 -20
- package/sdk/dark-ie11.css +146 -20
- package/sdk/dark.css +150 -20
- package/sdk/exceljs.js +1 -1
- package/sdk/locale/de-DE.js +1 -0
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +9 -23
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +146 -20
- package/sdk/sdk.css +150 -20
- package/sdk/sdk.js +1480 -1336
- 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/components/AnchorNav.tsx +48 -7
- package/src/components/DatePicker.tsx +9 -8
- package/src/components/DateRangePicker.tsx +62 -11
- package/src/components/MonthRangePicker.tsx +4 -2
- package/src/components/SearchBox.tsx +262 -29
- package/src/components/Tag.tsx +14 -3
- package/src/components/calendar/Calendar.tsx +30 -14
- package/src/components/calendar/DaysView.tsx +17 -5
- package/src/locale/de-DE.ts +1 -0
- package/src/locale/en-US.ts +1 -0
- package/src/locale/zh-CN.ts +1 -0
- package/src/renderers/CRUD.tsx +10 -0
- package/src/renderers/Card.tsx +24 -12
- package/src/renderers/Form/InputColor.tsx +14 -19
- package/src/renderers/Form/InputExcel.tsx +6 -0
- package/src/renderers/Form/InputFile.tsx +19 -18
- package/src/renderers/Form/InputTable.tsx +25 -4
- package/src/renderers/Form/InputText.tsx +20 -5
- package/src/renderers/IFrame.tsx +30 -1
- package/src/renderers/Table/index.tsx +2 -1
- package/src/renderers/Tag.tsx +2 -0
- package/src/renderers/Wizard.tsx +2 -1
- package/src/store/formItem.ts +4 -1
- package/src/utils/dom.tsx +3 -2
- package/sdk/color-picker.js +0 -130
@@ -1,8 +1,24 @@
|
|
1
|
-
/// <reference types="lodash" />
|
2
1
|
/// <reference types="hoist-non-react-statics" />
|
3
2
|
import React from 'react';
|
3
|
+
import _ from 'lodash';
|
4
4
|
import { ThemeProps } from '../theme';
|
5
5
|
import { LocaleProps } from '../locale';
|
6
|
+
export interface HistoryRecord {
|
7
|
+
/** 历史记录值 */
|
8
|
+
value: string;
|
9
|
+
/** 历史记录生成的unix时间戳 */
|
10
|
+
timestamp?: number;
|
11
|
+
}
|
12
|
+
export interface SearchHistoryOptions {
|
13
|
+
/** 是否开启历史记录 */
|
14
|
+
enable: boolean;
|
15
|
+
/** 本地存储历史记录的key */
|
16
|
+
key?: string;
|
17
|
+
/** 历史记录数量上限 */
|
18
|
+
limit?: number;
|
19
|
+
/** 历史记录下拉面板CSS类名 */
|
20
|
+
dropdownClassName?: string;
|
21
|
+
}
|
6
22
|
export interface SearchBoxProps extends ThemeProps, LocaleProps {
|
7
23
|
name?: string;
|
8
24
|
disabled?: boolean;
|
@@ -19,9 +35,14 @@ export interface SearchBoxProps extends ThemeProps, LocaleProps {
|
|
19
35
|
onActiveChange?: (active: boolean) => void;
|
20
36
|
onSearch?: (value: string) => void;
|
21
37
|
onCancel?: () => void;
|
38
|
+
/** 历史记录配置 */
|
39
|
+
history?: SearchHistoryOptions;
|
22
40
|
}
|
23
41
|
export interface SearchBoxState {
|
24
42
|
isFocused: boolean;
|
43
|
+
isHistoryOpened: boolean;
|
44
|
+
inputValue: string;
|
45
|
+
historyRecords: HistoryRecord[];
|
25
46
|
}
|
26
47
|
export declare class SearchBox extends React.Component<SearchBoxProps, SearchBoxState> {
|
27
48
|
inputRef: React.RefObject<HTMLInputElement>;
|
@@ -30,11 +51,16 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
30
51
|
enhance: boolean;
|
31
52
|
clearable: boolean;
|
32
53
|
searchImediately: boolean;
|
54
|
+
history: Required<SearchHistoryOptions>;
|
33
55
|
};
|
34
56
|
state: {
|
57
|
+
isHistoryOpened: boolean;
|
35
58
|
isFocused: boolean;
|
59
|
+
inputValue: string;
|
60
|
+
historyRecords: any[];
|
36
61
|
};
|
37
|
-
lazyEmitSearch:
|
62
|
+
lazyEmitSearch: _.DebouncedFunc<() => void>;
|
63
|
+
componentDidUpdate(prevProps: SearchBoxProps): void;
|
38
64
|
componentWillUnmount(): void;
|
39
65
|
handleActive(): void;
|
40
66
|
handleCancel(): void;
|
@@ -42,14 +68,31 @@ export declare class SearchBox extends React.Component<SearchBoxProps, SearchBox
|
|
42
68
|
handleSearch(): void;
|
43
69
|
handleKeyDown(e: React.KeyboardEvent<any>): void;
|
44
70
|
handleClear(): void;
|
71
|
+
handleFocus(): void;
|
72
|
+
handleBlur(e: React.FocusEvent<HTMLInputElement>): void;
|
73
|
+
handleHistoryRecordSelect(record: HistoryRecord): void;
|
74
|
+
/** 获取历史搜索配置 */
|
75
|
+
getHistoryOptions(): Required<SearchHistoryOptions>;
|
76
|
+
/** 获取历史记录 */
|
77
|
+
getHistoryRecords(): any[];
|
78
|
+
/** 清空历史记录 */
|
79
|
+
clearHistoryRecords(): HistoryRecord[];
|
80
|
+
/** 删除一条历史记录 */
|
81
|
+
removeHistoryRecord(record: HistoryRecord): HistoryRecord[];
|
82
|
+
/** 新增一条历史记录 */
|
83
|
+
insertHistoryRecord(value: string): HistoryRecord[];
|
84
|
+
renderInput(isHistoryMode?: boolean): JSX.Element;
|
85
|
+
renderTag(item: HistoryRecord, index: number): JSX.Element;
|
86
|
+
renderHitoryMode(): JSX.Element;
|
45
87
|
render(): JSX.Element;
|
46
88
|
}
|
47
89
|
declare const _default: {
|
48
|
-
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
90
|
+
new (props: Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
49
91
|
mini: boolean;
|
50
92
|
enhance: boolean;
|
51
93
|
clearable: boolean;
|
52
94
|
searchImediately: boolean;
|
95
|
+
history: Required<SearchHistoryOptions>;
|
53
96
|
}, never>> & {
|
54
97
|
locale?: string | undefined;
|
55
98
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -59,21 +102,23 @@ declare const _default: {
|
|
59
102
|
getWrappedInstance(): any;
|
60
103
|
render(): JSX.Element;
|
61
104
|
context: any;
|
62
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
105
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
63
106
|
mini: boolean;
|
64
107
|
enhance: boolean;
|
65
108
|
clearable: boolean;
|
66
109
|
searchImediately: boolean;
|
110
|
+
history: Required<SearchHistoryOptions>;
|
67
111
|
}, never>> & {
|
68
112
|
locale?: string | undefined;
|
69
113
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
70
114
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
71
115
|
forceUpdate(callback?: (() => void) | undefined): void;
|
72
|
-
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
116
|
+
readonly props: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
73
117
|
mini: boolean;
|
74
118
|
enhance: boolean;
|
75
119
|
clearable: boolean;
|
76
120
|
searchImediately: boolean;
|
121
|
+
history: Required<SearchHistoryOptions>;
|
77
122
|
}, never>> & {
|
78
123
|
locale?: string | undefined;
|
79
124
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -85,69 +130,76 @@ declare const _default: {
|
|
85
130
|
[key: string]: React.ReactInstance;
|
86
131
|
};
|
87
132
|
componentDidMount?(): void;
|
88
|
-
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
133
|
+
shouldComponentUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
89
134
|
mini: boolean;
|
90
135
|
enhance: boolean;
|
91
136
|
clearable: boolean;
|
92
137
|
searchImediately: boolean;
|
138
|
+
history: Required<SearchHistoryOptions>;
|
93
139
|
}, never>> & {
|
94
140
|
locale?: string | undefined;
|
95
141
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
96
142
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
97
143
|
componentWillUnmount?(): void;
|
98
144
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
99
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
145
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
100
146
|
mini: boolean;
|
101
147
|
enhance: boolean;
|
102
148
|
clearable: boolean;
|
103
149
|
searchImediately: boolean;
|
150
|
+
history: Required<SearchHistoryOptions>;
|
104
151
|
}, never>> & {
|
105
152
|
locale?: string | undefined;
|
106
153
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
107
154
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
108
|
-
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
155
|
+
componentDidUpdate?(prevProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
109
156
|
mini: boolean;
|
110
157
|
enhance: boolean;
|
111
158
|
clearable: boolean;
|
112
159
|
searchImediately: boolean;
|
160
|
+
history: Required<SearchHistoryOptions>;
|
113
161
|
}, never>> & {
|
114
162
|
locale?: string | undefined;
|
115
163
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
116
164
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
117
165
|
componentWillMount?(): void;
|
118
166
|
UNSAFE_componentWillMount?(): void;
|
119
|
-
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
167
|
+
componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
120
168
|
mini: boolean;
|
121
169
|
enhance: boolean;
|
122
170
|
clearable: boolean;
|
123
171
|
searchImediately: boolean;
|
172
|
+
history: Required<SearchHistoryOptions>;
|
124
173
|
}, never>> & {
|
125
174
|
locale?: string | undefined;
|
126
175
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
127
176
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
128
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
177
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
129
178
|
mini: boolean;
|
130
179
|
enhance: boolean;
|
131
180
|
clearable: boolean;
|
132
181
|
searchImediately: boolean;
|
182
|
+
history: Required<SearchHistoryOptions>;
|
133
183
|
}, never>> & {
|
134
184
|
locale?: string | undefined;
|
135
185
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
136
186
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
137
|
-
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
187
|
+
componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
138
188
|
mini: boolean;
|
139
189
|
enhance: boolean;
|
140
190
|
clearable: boolean;
|
141
191
|
searchImediately: boolean;
|
192
|
+
history: Required<SearchHistoryOptions>;
|
142
193
|
}, never>> & {
|
143
194
|
locale?: string | undefined;
|
144
195
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
145
196
|
}, keyof ThemeProps> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
146
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
197
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Omit<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
147
198
|
mini: boolean;
|
148
199
|
enhance: boolean;
|
149
200
|
clearable: boolean;
|
150
201
|
searchImediately: boolean;
|
202
|
+
history: Required<SearchHistoryOptions>;
|
151
203
|
}, never>> & {
|
152
204
|
locale?: string | undefined;
|
153
205
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -156,11 +208,12 @@ declare const _default: {
|
|
156
208
|
displayName: string;
|
157
209
|
contextType: React.Context<string>;
|
158
210
|
ComposedComponent: React.ComponentType<{
|
159
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
211
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
160
212
|
mini: boolean;
|
161
213
|
enhance: boolean;
|
162
214
|
clearable: boolean;
|
163
215
|
searchImediately: boolean;
|
216
|
+
history: Required<SearchHistoryOptions>;
|
164
217
|
}, never>> & {
|
165
218
|
locale?: string | undefined;
|
166
219
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -170,21 +223,23 @@ declare const _default: {
|
|
170
223
|
getWrappedInstance(): any;
|
171
224
|
render(): JSX.Element;
|
172
225
|
context: any;
|
173
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
226
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
174
227
|
mini: boolean;
|
175
228
|
enhance: boolean;
|
176
229
|
clearable: boolean;
|
177
230
|
searchImediately: boolean;
|
231
|
+
history: Required<SearchHistoryOptions>;
|
178
232
|
}, never>> & {
|
179
233
|
locale?: string | undefined;
|
180
234
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
181
235
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
182
236
|
forceUpdate(callback?: (() => void) | undefined): void;
|
183
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
237
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
184
238
|
mini: boolean;
|
185
239
|
enhance: boolean;
|
186
240
|
clearable: boolean;
|
187
241
|
searchImediately: boolean;
|
242
|
+
history: Required<SearchHistoryOptions>;
|
188
243
|
}, never>> & {
|
189
244
|
locale?: string | undefined;
|
190
245
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -196,69 +251,76 @@ declare const _default: {
|
|
196
251
|
[key: string]: React.ReactInstance;
|
197
252
|
};
|
198
253
|
componentDidMount?(): void;
|
199
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
254
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
200
255
|
mini: boolean;
|
201
256
|
enhance: boolean;
|
202
257
|
clearable: boolean;
|
203
258
|
searchImediately: boolean;
|
259
|
+
history: Required<SearchHistoryOptions>;
|
204
260
|
}, never>> & {
|
205
261
|
locale?: string | undefined;
|
206
262
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
207
263
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
208
264
|
componentWillUnmount?(): void;
|
209
265
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
210
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
266
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
211
267
|
mini: boolean;
|
212
268
|
enhance: boolean;
|
213
269
|
clearable: boolean;
|
214
270
|
searchImediately: boolean;
|
271
|
+
history: Required<SearchHistoryOptions>;
|
215
272
|
}, never>> & {
|
216
273
|
locale?: string | undefined;
|
217
274
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
218
275
|
}>, prevState: Readonly<{}>): any;
|
219
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
276
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
220
277
|
mini: boolean;
|
221
278
|
enhance: boolean;
|
222
279
|
clearable: boolean;
|
223
280
|
searchImediately: boolean;
|
281
|
+
history: Required<SearchHistoryOptions>;
|
224
282
|
}, never>> & {
|
225
283
|
locale?: string | undefined;
|
226
284
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
227
285
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
228
286
|
componentWillMount?(): void;
|
229
287
|
UNSAFE_componentWillMount?(): void;
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
288
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
231
289
|
mini: boolean;
|
232
290
|
enhance: boolean;
|
233
291
|
clearable: boolean;
|
234
292
|
searchImediately: boolean;
|
293
|
+
history: Required<SearchHistoryOptions>;
|
235
294
|
}, never>> & {
|
236
295
|
locale?: string | undefined;
|
237
296
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
238
297
|
}>, nextContext: any): void;
|
239
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
298
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
240
299
|
mini: boolean;
|
241
300
|
enhance: boolean;
|
242
301
|
clearable: boolean;
|
243
302
|
searchImediately: boolean;
|
303
|
+
history: Required<SearchHistoryOptions>;
|
244
304
|
}, never>> & {
|
245
305
|
locale?: string | undefined;
|
246
306
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
247
307
|
}>, nextContext: any): void;
|
248
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
308
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
249
309
|
mini: boolean;
|
250
310
|
enhance: boolean;
|
251
311
|
clearable: boolean;
|
252
312
|
searchImediately: boolean;
|
313
|
+
history: Required<SearchHistoryOptions>;
|
253
314
|
}, never>> & {
|
254
315
|
locale?: string | undefined;
|
255
316
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
256
317
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
318
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
258
319
|
mini: boolean;
|
259
320
|
enhance: boolean;
|
260
321
|
clearable: boolean;
|
261
322
|
searchImediately: boolean;
|
323
|
+
history: Required<SearchHistoryOptions>;
|
262
324
|
}, never>> & {
|
263
325
|
locale?: string | undefined;
|
264
326
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -271,11 +333,12 @@ declare const _default: {
|
|
271
333
|
ComposedComponent: typeof SearchBox;
|
272
334
|
}>;
|
273
335
|
} & import("hoist-non-react-statics").NonReactStatics<{
|
274
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
336
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
275
337
|
mini: boolean;
|
276
338
|
enhance: boolean;
|
277
339
|
clearable: boolean;
|
278
340
|
searchImediately: boolean;
|
341
|
+
history: Required<SearchHistoryOptions>;
|
279
342
|
}, never>> & {
|
280
343
|
locale?: string | undefined;
|
281
344
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -285,21 +348,23 @@ declare const _default: {
|
|
285
348
|
getWrappedInstance(): any;
|
286
349
|
render(): JSX.Element;
|
287
350
|
context: any;
|
288
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
351
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
289
352
|
mini: boolean;
|
290
353
|
enhance: boolean;
|
291
354
|
clearable: boolean;
|
292
355
|
searchImediately: boolean;
|
356
|
+
history: Required<SearchHistoryOptions>;
|
293
357
|
}, never>> & {
|
294
358
|
locale?: string | undefined;
|
295
359
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
296
360
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
297
361
|
forceUpdate(callback?: (() => void) | undefined): void;
|
298
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
362
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
299
363
|
mini: boolean;
|
300
364
|
enhance: boolean;
|
301
365
|
clearable: boolean;
|
302
366
|
searchImediately: boolean;
|
367
|
+
history: Required<SearchHistoryOptions>;
|
303
368
|
}, never>> & {
|
304
369
|
locale?: string | undefined;
|
305
370
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -311,69 +376,76 @@ declare const _default: {
|
|
311
376
|
[key: string]: React.ReactInstance;
|
312
377
|
};
|
313
378
|
componentDidMount?(): void;
|
314
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
379
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
315
380
|
mini: boolean;
|
316
381
|
enhance: boolean;
|
317
382
|
clearable: boolean;
|
318
383
|
searchImediately: boolean;
|
384
|
+
history: Required<SearchHistoryOptions>;
|
319
385
|
}, never>> & {
|
320
386
|
locale?: string | undefined;
|
321
387
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
322
388
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
323
389
|
componentWillUnmount?(): void;
|
324
390
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
325
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
391
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
326
392
|
mini: boolean;
|
327
393
|
enhance: boolean;
|
328
394
|
clearable: boolean;
|
329
395
|
searchImediately: boolean;
|
396
|
+
history: Required<SearchHistoryOptions>;
|
330
397
|
}, never>> & {
|
331
398
|
locale?: string | undefined;
|
332
399
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
333
400
|
}>, prevState: Readonly<{}>): any;
|
334
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
401
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
335
402
|
mini: boolean;
|
336
403
|
enhance: boolean;
|
337
404
|
clearable: boolean;
|
338
405
|
searchImediately: boolean;
|
406
|
+
history: Required<SearchHistoryOptions>;
|
339
407
|
}, never>> & {
|
340
408
|
locale?: string | undefined;
|
341
409
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
342
410
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
343
411
|
componentWillMount?(): void;
|
344
412
|
UNSAFE_componentWillMount?(): void;
|
345
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
413
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
346
414
|
mini: boolean;
|
347
415
|
enhance: boolean;
|
348
416
|
clearable: boolean;
|
349
417
|
searchImediately: boolean;
|
418
|
+
history: Required<SearchHistoryOptions>;
|
350
419
|
}, never>> & {
|
351
420
|
locale?: string | undefined;
|
352
421
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
353
422
|
}>, nextContext: any): void;
|
354
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
423
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
355
424
|
mini: boolean;
|
356
425
|
enhance: boolean;
|
357
426
|
clearable: boolean;
|
358
427
|
searchImediately: boolean;
|
428
|
+
history: Required<SearchHistoryOptions>;
|
359
429
|
}, never>> & {
|
360
430
|
locale?: string | undefined;
|
361
431
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
362
432
|
}>, nextContext: any): void;
|
363
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
433
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
364
434
|
mini: boolean;
|
365
435
|
enhance: boolean;
|
366
436
|
clearable: boolean;
|
367
437
|
searchImediately: boolean;
|
438
|
+
history: Required<SearchHistoryOptions>;
|
368
439
|
}, never>> & {
|
369
440
|
locale?: string | undefined;
|
370
441
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
371
442
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
372
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
443
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
373
444
|
mini: boolean;
|
374
445
|
enhance: boolean;
|
375
446
|
clearable: boolean;
|
376
447
|
searchImediately: boolean;
|
448
|
+
history: Required<SearchHistoryOptions>;
|
377
449
|
}, never>> & {
|
378
450
|
locale?: string | undefined;
|
379
451
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -386,11 +458,12 @@ declare const _default: {
|
|
386
458
|
ComposedComponent: typeof SearchBox;
|
387
459
|
}, {}> & {
|
388
460
|
ComposedComponent: {
|
389
|
-
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
461
|
+
new (props: Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
390
462
|
mini: boolean;
|
391
463
|
enhance: boolean;
|
392
464
|
clearable: boolean;
|
393
465
|
searchImediately: boolean;
|
466
|
+
history: Required<SearchHistoryOptions>;
|
394
467
|
}, never>> & {
|
395
468
|
locale?: string | undefined;
|
396
469
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -400,21 +473,23 @@ declare const _default: {
|
|
400
473
|
getWrappedInstance(): any;
|
401
474
|
render(): JSX.Element;
|
402
475
|
context: any;
|
403
|
-
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
476
|
+
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
404
477
|
mini: boolean;
|
405
478
|
enhance: boolean;
|
406
479
|
clearable: boolean;
|
407
480
|
searchImediately: boolean;
|
481
|
+
history: Required<SearchHistoryOptions>;
|
408
482
|
}, never>> & {
|
409
483
|
locale?: string | undefined;
|
410
484
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
411
485
|
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
|
412
486
|
forceUpdate(callback?: (() => void) | undefined): void;
|
413
|
-
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
487
|
+
readonly props: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
414
488
|
mini: boolean;
|
415
489
|
enhance: boolean;
|
416
490
|
clearable: boolean;
|
417
491
|
searchImediately: boolean;
|
492
|
+
history: Required<SearchHistoryOptions>;
|
418
493
|
}, never>> & {
|
419
494
|
locale?: string | undefined;
|
420
495
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
@@ -426,69 +501,76 @@ declare const _default: {
|
|
426
501
|
[key: string]: React.ReactInstance;
|
427
502
|
};
|
428
503
|
componentDidMount?(): void;
|
429
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
504
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
430
505
|
mini: boolean;
|
431
506
|
enhance: boolean;
|
432
507
|
clearable: boolean;
|
433
508
|
searchImediately: boolean;
|
509
|
+
history: Required<SearchHistoryOptions>;
|
434
510
|
}, never>> & {
|
435
511
|
locale?: string | undefined;
|
436
512
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
437
513
|
}>, nextState: Readonly<{}>, nextContext: any): boolean;
|
438
514
|
componentWillUnmount?(): void;
|
439
515
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
440
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
516
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
441
517
|
mini: boolean;
|
442
518
|
enhance: boolean;
|
443
519
|
clearable: boolean;
|
444
520
|
searchImediately: boolean;
|
521
|
+
history: Required<SearchHistoryOptions>;
|
445
522
|
}, never>> & {
|
446
523
|
locale?: string | undefined;
|
447
524
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
448
525
|
}>, prevState: Readonly<{}>): any;
|
449
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
526
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
450
527
|
mini: boolean;
|
451
528
|
enhance: boolean;
|
452
529
|
clearable: boolean;
|
453
530
|
searchImediately: boolean;
|
531
|
+
history: Required<SearchHistoryOptions>;
|
454
532
|
}, never>> & {
|
455
533
|
locale?: string | undefined;
|
456
534
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
457
535
|
}>, prevState: Readonly<{}>, snapshot?: any): void;
|
458
536
|
componentWillMount?(): void;
|
459
537
|
UNSAFE_componentWillMount?(): void;
|
460
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
538
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
461
539
|
mini: boolean;
|
462
540
|
enhance: boolean;
|
463
541
|
clearable: boolean;
|
464
542
|
searchImediately: boolean;
|
543
|
+
history: Required<SearchHistoryOptions>;
|
465
544
|
}, never>> & {
|
466
545
|
locale?: string | undefined;
|
467
546
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
468
547
|
}>, nextContext: any): void;
|
469
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
548
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
470
549
|
mini: boolean;
|
471
550
|
enhance: boolean;
|
472
551
|
clearable: boolean;
|
473
552
|
searchImediately: boolean;
|
553
|
+
history: Required<SearchHistoryOptions>;
|
474
554
|
}, never>> & {
|
475
555
|
locale?: string | undefined;
|
476
556
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
477
557
|
}>, nextContext: any): void;
|
478
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
558
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
479
559
|
mini: boolean;
|
480
560
|
enhance: boolean;
|
481
561
|
clearable: boolean;
|
482
562
|
searchImediately: boolean;
|
563
|
+
history: Required<SearchHistoryOptions>;
|
483
564
|
}, never>> & {
|
484
565
|
locale?: string | undefined;
|
485
566
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|
486
567
|
}>, nextState: Readonly<{}>, nextContext: any): void;
|
487
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "
|
568
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "classPrefix" | "classnames" | "className" | "theme" | "value" | "defaultValue" | "disabled" | "onCancel" | "name" | "active" | "placeholder" | "onChange" | "defaultActive" | "onActiveChange" | "onSearch"> & Partial<Pick<Omit<SearchBoxProps, keyof LocaleProps>, "clearable" | "enhance" | "mini" | "searchImediately" | "history">> & Partial<Pick<{
|
488
569
|
mini: boolean;
|
489
570
|
enhance: boolean;
|
490
571
|
clearable: boolean;
|
491
572
|
searchImediately: boolean;
|
573
|
+
history: Required<SearchHistoryOptions>;
|
492
574
|
}, never>> & {
|
493
575
|
locale?: string | undefined;
|
494
576
|
translate?: ((str: string, ...args: any[]) => string) | undefined;
|