@alifd/chat 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/balloon/index.d.ts +7 -0
- package/es/balloon/index.js +7 -0
- package/es/balloon/style.d.ts +1 -0
- package/es/balloon/style.js +1 -0
- package/es/balloon/types.d.ts +219 -0
- package/es/balloon/types.js +1 -0
- package/es/card/view/collapsable.d.ts +1 -1
- package/es/icon/index.d.ts +1 -2
- package/es/icon/main.scss +1 -1
- package/es/icon/style.d.ts +1 -1
- package/es/icon/style.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/index.d.ts +1 -2
- package/es/message/index.d.ts +63 -10
- package/es/message/main.scss +1 -1
- package/es/message/style.d.ts +1 -1
- package/es/message/style.js +1 -1
- package/es/person-picker/index.d.ts +377 -2
- package/es/tab/main.scss +2 -3
- package/es/tag/main.scss +1 -1
- package/lib/balloon/index.d.ts +7 -0
- package/lib/balloon/index.js +11 -0
- package/lib/balloon/style.d.ts +1 -0
- package/lib/balloon/style.js +3 -0
- package/lib/balloon/types.d.ts +219 -0
- package/lib/balloon/types.js +2 -0
- package/lib/card/view/collapsable.d.ts +1 -1
- package/lib/icon/index.d.ts +1 -2
- package/lib/icon/main.scss +1 -1
- package/lib/icon/style.d.ts +1 -1
- package/lib/icon/style.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -2
- package/lib/input/index.d.ts +1 -2
- package/lib/message/index.d.ts +63 -10
- package/lib/message/main.scss +1 -1
- package/lib/message/style.d.ts +1 -1
- package/lib/message/style.js +1 -1
- package/lib/person-picker/index.d.ts +377 -2
- package/lib/tab/main.scss +2 -3
- package/lib/tag/main.scss +1 -1
- package/package.json +31 -5
|
@@ -18,7 +18,382 @@
|
|
|
18
18
|
* | SPACE | Trigger the onClick event |
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import { Select as NextSelect } from '@alifd/next';
|
|
22
21
|
export * from './types';
|
|
23
|
-
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<
|
|
22
|
+
declare const _default: import("@alifd/next/types/config-provider/types").ConfiguredComponentClass<Pick<Pick<any, string | number | symbol> & React.RefAttributes<import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
|
|
23
|
+
selectAllYet: boolean;
|
|
24
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
25
|
+
componentDidMount(): void;
|
|
26
|
+
ie9Hack(): void;
|
|
27
|
+
useDetailValue(): boolean;
|
|
28
|
+
hasSearch(): boolean;
|
|
29
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
30
|
+
handleMenuSelect(keys: string[], item: {
|
|
31
|
+
props: {
|
|
32
|
+
_key: string;
|
|
33
|
+
};
|
|
34
|
+
}): false | void;
|
|
35
|
+
handleItemClick(key: string): void;
|
|
36
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
37
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
38
|
+
updateSelectAllYet(value?: unknown): void;
|
|
39
|
+
handleSearchValue(value: string): void;
|
|
40
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
41
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
42
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
43
|
+
chooseMultipleItem(key: string): void;
|
|
44
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
45
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
46
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
47
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
48
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
49
|
+
afterClose(): void;
|
|
50
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
51
|
+
renderValues(): React.ReactNode;
|
|
52
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
53
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
54
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
55
|
+
hasClear(): boolean | undefined;
|
|
56
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
57
|
+
renderSelect(): React.JSX.Element;
|
|
58
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
59
|
+
renderMenuHeader(): React.ReactNode;
|
|
60
|
+
render(): React.JSX.Element;
|
|
61
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
62
|
+
selectDOM: HTMLElement;
|
|
63
|
+
width: string | number;
|
|
64
|
+
popupRef: HTMLDivElement;
|
|
65
|
+
resizeTimeout: number;
|
|
66
|
+
highlightTimer: number | undefined;
|
|
67
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
68
|
+
isAutoComplete: boolean;
|
|
69
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
70
|
+
valueDataSource: {
|
|
71
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
72
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
73
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
74
|
+
};
|
|
75
|
+
componentWillUnmount(): void;
|
|
76
|
+
syncWidth(): void;
|
|
77
|
+
handleResize(): void;
|
|
78
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
79
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
80
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
81
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
82
|
+
handleMenuBodyClick(): void;
|
|
83
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
84
|
+
scrollMenuIntoView(): void;
|
|
85
|
+
handleSelect(): void;
|
|
86
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
87
|
+
renderMenu(): React.JSX.Element;
|
|
88
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
89
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
90
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
91
|
+
focusInput(): void;
|
|
92
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
93
|
+
beforeOpen(): void;
|
|
94
|
+
beforeClose(): void;
|
|
95
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
96
|
+
shouldAutoWidth(): boolean | undefined;
|
|
97
|
+
context: any;
|
|
98
|
+
setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
|
|
99
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
100
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
101
|
+
children?: React.ReactNode;
|
|
102
|
+
}>;
|
|
103
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
104
|
+
refs: {
|
|
105
|
+
[key: string]: React.ReactInstance;
|
|
106
|
+
};
|
|
107
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
108
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
109
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
110
|
+
componentWillMount?(): void;
|
|
111
|
+
UNSAFE_componentWillMount?(): void;
|
|
112
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
113
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
114
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
115
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
116
|
+
}> & Pick<{
|
|
117
|
+
selectAllYet: boolean;
|
|
118
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
119
|
+
componentDidMount(): void;
|
|
120
|
+
ie9Hack(): void;
|
|
121
|
+
useDetailValue(): boolean;
|
|
122
|
+
hasSearch(): boolean;
|
|
123
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
124
|
+
handleMenuSelect(keys: string[], item: {
|
|
125
|
+
props: {
|
|
126
|
+
_key: string;
|
|
127
|
+
};
|
|
128
|
+
}): false | void;
|
|
129
|
+
handleItemClick(key: string): void;
|
|
130
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
131
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
132
|
+
updateSelectAllYet(value?: unknown): void;
|
|
133
|
+
handleSearchValue(value: string): void;
|
|
134
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
135
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
136
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
137
|
+
chooseMultipleItem(key: string): void;
|
|
138
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
139
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
140
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
141
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
142
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
143
|
+
afterClose(): void;
|
|
144
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
145
|
+
renderValues(): React.ReactNode;
|
|
146
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
147
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
148
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
149
|
+
hasClear(): boolean | undefined;
|
|
150
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
151
|
+
renderSelect(): React.JSX.Element;
|
|
152
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
153
|
+
renderMenuHeader(): React.ReactNode;
|
|
154
|
+
render(): React.JSX.Element;
|
|
155
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
156
|
+
selectDOM: HTMLElement;
|
|
157
|
+
width: string | number;
|
|
158
|
+
popupRef: HTMLDivElement;
|
|
159
|
+
resizeTimeout: number;
|
|
160
|
+
highlightTimer: number | undefined;
|
|
161
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
162
|
+
isAutoComplete: boolean;
|
|
163
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
164
|
+
valueDataSource: {
|
|
165
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
166
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
167
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
168
|
+
};
|
|
169
|
+
componentWillUnmount(): void;
|
|
170
|
+
syncWidth(): void;
|
|
171
|
+
handleResize(): void;
|
|
172
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
173
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
174
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
175
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
176
|
+
handleMenuBodyClick(): void;
|
|
177
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
178
|
+
scrollMenuIntoView(): void;
|
|
179
|
+
handleSelect(): void;
|
|
180
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
181
|
+
renderMenu(): React.JSX.Element;
|
|
182
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
183
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
184
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
185
|
+
focusInput(): void;
|
|
186
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
187
|
+
beforeOpen(): void;
|
|
188
|
+
beforeClose(): void;
|
|
189
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
190
|
+
shouldAutoWidth(): boolean | undefined;
|
|
191
|
+
context: any;
|
|
192
|
+
setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
193
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
194
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
195
|
+
children?: React.ReactNode;
|
|
196
|
+
}>;
|
|
197
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
198
|
+
refs: {
|
|
199
|
+
[key: string]: React.ReactInstance;
|
|
200
|
+
};
|
|
201
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
202
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
203
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
204
|
+
componentWillMount?(): void;
|
|
205
|
+
UNSAFE_componentWillMount?(): void;
|
|
206
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
207
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
208
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
209
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
210
|
+
}, "focusInput" | "handleSearchClear">>, string | number | symbol> & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/select").SelectProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, {
|
|
211
|
+
selectAllYet: boolean;
|
|
212
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
213
|
+
componentDidMount(): void;
|
|
214
|
+
ie9Hack(): void;
|
|
215
|
+
useDetailValue(): boolean;
|
|
216
|
+
hasSearch(): boolean;
|
|
217
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
218
|
+
handleMenuSelect(keys: string[], item: {
|
|
219
|
+
props: {
|
|
220
|
+
_key: string;
|
|
221
|
+
};
|
|
222
|
+
}): false | void;
|
|
223
|
+
handleItemClick(key: string): void;
|
|
224
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
225
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
226
|
+
updateSelectAllYet(value?: unknown): void;
|
|
227
|
+
handleSearchValue(value: string): void;
|
|
228
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
229
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
230
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
231
|
+
chooseMultipleItem(key: string): void;
|
|
232
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
233
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
234
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
235
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
236
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
237
|
+
afterClose(): void;
|
|
238
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
239
|
+
renderValues(): React.ReactNode;
|
|
240
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
241
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
242
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
243
|
+
hasClear(): boolean | undefined;
|
|
244
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
245
|
+
renderSelect(): React.JSX.Element;
|
|
246
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
247
|
+
renderMenuHeader(): React.ReactNode;
|
|
248
|
+
render(): React.JSX.Element;
|
|
249
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
250
|
+
selectDOM: HTMLElement;
|
|
251
|
+
width: string | number;
|
|
252
|
+
popupRef: HTMLDivElement;
|
|
253
|
+
resizeTimeout: number;
|
|
254
|
+
highlightTimer: number | undefined;
|
|
255
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
256
|
+
isAutoComplete: boolean;
|
|
257
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
258
|
+
valueDataSource: {
|
|
259
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
260
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
261
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
262
|
+
};
|
|
263
|
+
componentWillUnmount(): void;
|
|
264
|
+
syncWidth(): void;
|
|
265
|
+
handleResize(): void;
|
|
266
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
267
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
268
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
269
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
270
|
+
handleMenuBodyClick(): void;
|
|
271
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
272
|
+
scrollMenuIntoView(): void;
|
|
273
|
+
handleSelect(): void;
|
|
274
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
275
|
+
renderMenu(): React.JSX.Element;
|
|
276
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
277
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
278
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
279
|
+
focusInput(): void;
|
|
280
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
281
|
+
beforeOpen(): void;
|
|
282
|
+
beforeClose(): void;
|
|
283
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
284
|
+
shouldAutoWidth(): boolean | undefined;
|
|
285
|
+
context: any;
|
|
286
|
+
setState<K extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K> | null, callback?: (() => void) | undefined): void;
|
|
287
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
288
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
289
|
+
children?: React.ReactNode;
|
|
290
|
+
}>;
|
|
291
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
292
|
+
refs: {
|
|
293
|
+
[key: string]: React.ReactInstance;
|
|
294
|
+
};
|
|
295
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
296
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
297
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
298
|
+
componentWillMount?(): void;
|
|
299
|
+
UNSAFE_componentWillMount?(): void;
|
|
300
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
301
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
302
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
303
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
304
|
+
}> & Pick<{
|
|
305
|
+
selectAllYet: boolean;
|
|
306
|
+
componentDidUpdate(prevProps: import("@alifd/next/types/select").SelectProps, prevState: import("@alifd/next/types/select/base").BaseState): void;
|
|
307
|
+
componentDidMount(): void;
|
|
308
|
+
ie9Hack(): void;
|
|
309
|
+
useDetailValue(): boolean;
|
|
310
|
+
hasSearch(): boolean;
|
|
311
|
+
getTagSize(): "small" | "medium" | "large" | undefined;
|
|
312
|
+
handleMenuSelect(keys: string[], item: {
|
|
313
|
+
props: {
|
|
314
|
+
_key: string;
|
|
315
|
+
};
|
|
316
|
+
}): false | void;
|
|
317
|
+
handleItemClick(key: string): void;
|
|
318
|
+
handleSingleSelect(key: string, triggerType: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
319
|
+
handleMultipleSelect(keys: import("@alifd/next/types/select").DataSourceItem[] | undefined, triggerType: import("@alifd/next/types/select").VisibleChangeType, key?: string | null | undefined, keepSearchValue?: boolean | undefined): void;
|
|
320
|
+
updateSelectAllYet(value?: unknown): void;
|
|
321
|
+
handleSearchValue(value: string): void;
|
|
322
|
+
handleSearch(value: string, e: React.ChangeEvent<HTMLInputElement>): void;
|
|
323
|
+
handleSearchClear(triggerType?: string | undefined): void;
|
|
324
|
+
handleSearchKeyDown(e: React.KeyboardEvent<HTMLElement>): void;
|
|
325
|
+
chooseMultipleItem(key: string): void;
|
|
326
|
+
chooseHighlightItem(proxy: unknown, e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
327
|
+
handleTagClose(item: import("@alifd/next/types/select").ObjectItem): boolean;
|
|
328
|
+
handleDeleteTag(e: React.UIEvent<HTMLElement, UIEvent>): false | undefined;
|
|
329
|
+
handleSelectAll(e: React.UIEvent<HTMLElement, UIEvent>): void;
|
|
330
|
+
handleVisibleChange(visible: boolean, type: import("@alifd/next/types/select").VisibleChangeType): void;
|
|
331
|
+
afterClose(): void;
|
|
332
|
+
maxTagPlaceholder(selectedValues: import("@alifd/next/types/select").ObjectItem[], totalValues: import("@alifd/next/types/select").ObjectItem[]): string;
|
|
333
|
+
renderValues(): React.ReactNode;
|
|
334
|
+
handleWrapClick: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
335
|
+
handleArrowClick: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
336
|
+
handleClear: (e: React.UIEvent<HTMLElement, UIEvent>) => void;
|
|
337
|
+
hasClear(): boolean | undefined;
|
|
338
|
+
renderExtraNode(): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
339
|
+
renderSelect(): React.JSX.Element;
|
|
340
|
+
renderSearchInput(valueNodes: React.ReactNode, placeholder: string | undefined, inputEl: React.ReactElement<any, string | React.JSXElementConstructor<any>>): React.JSX.Element;
|
|
341
|
+
renderMenuHeader(): React.ReactNode;
|
|
342
|
+
render(): React.JSX.Element;
|
|
343
|
+
dataStore: import("@alifd/next/types/select/data-store").default;
|
|
344
|
+
selectDOM: HTMLElement;
|
|
345
|
+
width: string | number;
|
|
346
|
+
popupRef: HTMLDivElement;
|
|
347
|
+
resizeTimeout: number;
|
|
348
|
+
highlightTimer: number | undefined;
|
|
349
|
+
menuRef: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/menu").MenuProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/menu/view/menu").Menu> | null;
|
|
350
|
+
isAutoComplete: boolean;
|
|
351
|
+
inputRef: import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>;
|
|
352
|
+
valueDataSource: {
|
|
353
|
+
value?: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
|
|
354
|
+
valueDS?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined;
|
|
355
|
+
mapValueDS?: Record<string, import("@alifd/next/types/select").ObjectItem> | undefined;
|
|
356
|
+
};
|
|
357
|
+
componentWillUnmount(): void;
|
|
358
|
+
syncWidth(): void;
|
|
359
|
+
handleResize(): void;
|
|
360
|
+
setDataSource(props: import("@alifd/next/types/select").SelectProps): import("@alifd/next/types/select/types").NormalizedObjectItem[];
|
|
361
|
+
setVisible(visible: boolean, type?: import("@alifd/next/types/select").VisibleChangeType | undefined): void;
|
|
362
|
+
setFirstHightLightKeyForMenu(searchValue?: unknown): void;
|
|
363
|
+
handleChange(value: import("@alifd/next/types/select").DataSourceItem | import("@alifd/next/types/select").DataSourceItem[], args_0: unknown, args_1?: import("@alifd/next/types/select").ObjectItem | import("@alifd/next/types/select").ObjectItem[] | undefined): void;
|
|
364
|
+
handleMenuBodyClick(): void;
|
|
365
|
+
toggleHighlightItem(dir: number): false | import("@alifd/next/types/select/types").NormalizedObjectItem | undefined;
|
|
366
|
+
scrollMenuIntoView(): void;
|
|
367
|
+
handleSelect(): void;
|
|
368
|
+
handleMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
369
|
+
renderMenu(): React.JSX.Element;
|
|
370
|
+
renderMenuItem(dataSource: import("@alifd/next/types/select/types").NormalizedObjectItem[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
371
|
+
saveSelectRef: (ref: HTMLElement | null) => void;
|
|
372
|
+
saveInputRef: (ref: import("@alifd/next/types/config-provider/types").ConfiguredComponent<import("@alifd/next/types/input").InputProps & import("@alifd/next/types/config-provider/types").ComponentCommonProps, import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>> & Pick<import("@alifd/next/types/input/input").default<import("@alifd/next/types/input").InputProps>, "focus" | "getInputNode">) => void;
|
|
373
|
+
focusInput(): void;
|
|
374
|
+
focus(start?: number | undefined, end?: number | undefined, preventScroll?: boolean | undefined): void;
|
|
375
|
+
beforeOpen(): void;
|
|
376
|
+
beforeClose(): void;
|
|
377
|
+
savePopupRef: (ref: HTMLDivElement) => void;
|
|
378
|
+
shouldAutoWidth(): boolean | undefined;
|
|
379
|
+
context: any;
|
|
380
|
+
setState<K_1 extends keyof import("@alifd/next/types/select/select").SelectState>(state: import("@alifd/next/types/select/select").SelectState | ((prevState: Readonly<import("@alifd/next/types/select/select").SelectState>, props: Readonly<import("@alifd/next/types/select").SelectProps>) => import("@alifd/next/types/select/select").SelectState | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null) | Pick<import("@alifd/next/types/select/select").SelectState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
381
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
382
|
+
readonly props: Readonly<import("@alifd/next/types/select").SelectProps> & Readonly<{
|
|
383
|
+
children?: React.ReactNode;
|
|
384
|
+
}>;
|
|
385
|
+
state: Readonly<import("@alifd/next/types/select/select").SelectState>;
|
|
386
|
+
refs: {
|
|
387
|
+
[key: string]: React.ReactInstance;
|
|
388
|
+
};
|
|
389
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): boolean;
|
|
390
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
391
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@alifd/next/types/select").SelectProps>, prevState: Readonly<import("@alifd/next/types/select/select").SelectState>): any;
|
|
392
|
+
componentWillMount?(): void;
|
|
393
|
+
UNSAFE_componentWillMount?(): void;
|
|
394
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
395
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextContext: any): void;
|
|
396
|
+
componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
397
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@alifd/next/types/select").SelectProps>, nextState: Readonly<import("@alifd/next/types/select/select").SelectState>, nextContext: any): void;
|
|
398
|
+
}, "focusInput" | "handleSearchClear">, {}>;
|
|
24
399
|
export default _default;
|
package/es/tab/main.scss
CHANGED
package/es/tag/main.scss
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @component 气泡提示
|
|
3
|
+
* @en Balloon
|
|
4
|
+
* @type 反馈 - Feedback
|
|
5
|
+
* @when 当用户与被说明对象(文字,图片,输入框等)发生交互行为的 action 开始时,即刻跟随动作出现一种辅助或帮助的提示信息。其中 Balloon.Tooltip 是简化版本,主要用于 hover 时显示简单文案。 - Balloon is used when you hope to show auxiliary or help message during users' interacting with the illustrated object (text, picture, input box, etc.). Particularly, Balloon.Tooltip is a simplified Balloon for displaying tip when hovered. If you want the content to be clickable, use `<Balloon.Tootip delay={100} />`
|
|
6
|
+
*/
|
|
7
|
+
export { Balloon as default } from '@alifd/next';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @component 气泡提示
|
|
4
|
+
* @en Balloon
|
|
5
|
+
* @type 反馈 - Feedback
|
|
6
|
+
* @when 当用户与被说明对象(文字,图片,输入框等)发生交互行为的 action 开始时,即刻跟随动作出现一种辅助或帮助的提示信息。其中 Balloon.Tooltip 是简化版本,主要用于 hover 时显示简单文案。 - Balloon is used when you hope to show auxiliary or help message during users' interacting with the illustrated object (text, picture, input box, etc.). Particularly, Balloon.Tooltip is a simplified Balloon for displaying tip when hovered. If you want the content to be clickable, use `<Balloon.Tootip delay={100} />`
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.default = void 0;
|
|
10
|
+
var next_1 = require("@alifd/next");
|
|
11
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return next_1.Balloon; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@alifd/next/lib/balloon/style2';
|