bkui-vue 1.0.3-beta.55 → 1.0.3-beta.57
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/dist/index.cjs.js +24 -24
- package/dist/index.esm.js +3905 -3895
- package/dist/index.umd.js +24 -24
- package/lib/search-select/index.d.ts +297 -9
- package/lib/search-select/index.js +20 -5
- package/lib/search-select/input.d.ts +2 -0
- package/lib/search-select/search-select.d.ts +99 -3
- package/lib/search-select/selected.d.ts +101 -4
- package/lib/search-select/utils.d.ts +1 -0
- package/package.json +1 -1
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
validateValues: PropType<ValidateValuesFunc>;
|
22
22
|
valueBehavior: PropType<ValueBehavior>;
|
23
23
|
}, {
|
24
|
-
inputRef: import("vue").Ref<import("vue").
|
24
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
25
25
|
data: {
|
26
26
|
type: PropType<ISearchItem[]>;
|
27
27
|
required: true;
|
@@ -42,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
42
42
|
getMenuList: PropType<GetMenuListFunc>;
|
43
43
|
validateValues: PropType<ValidateValuesFunc>;
|
44
44
|
valueBehavior: PropType<ValueBehavior>;
|
45
|
+
}>> & {
|
46
|
+
onFocus?: (...args: any[]) => any;
|
47
|
+
onDelete?: (...args: any[]) => any;
|
48
|
+
onAdd?: (...args: any[]) => any;
|
45
49
|
}, {
|
46
50
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
47
51
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -83,6 +87,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
87
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
84
88
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
85
89
|
resolveClassName: (cls: string) => string;
|
90
|
+
inputFocusForWrapper: () => void;
|
91
|
+
inputEnterForWrapper: () => void;
|
86
92
|
t: import("vue").ComputedRef<{
|
87
93
|
pleaseSelect: string;
|
88
94
|
loading: string;
|
@@ -93,7 +99,44 @@ declare const _default: import("vue").DefineComponent<{
|
|
93
99
|
and: string;
|
94
100
|
logical: string;
|
95
101
|
}>;
|
96
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[],
|
102
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
103
|
+
data: {
|
104
|
+
type: PropType<ISearchItem[]>;
|
105
|
+
required: true;
|
106
|
+
};
|
107
|
+
showInputBefore: BooleanConstructor;
|
108
|
+
showCondition: BooleanConstructor;
|
109
|
+
clickOutside: FunctionConstructor;
|
110
|
+
placeholder: StringConstructor;
|
111
|
+
conditions: {
|
112
|
+
type: PropType<ICommonItem[]>;
|
113
|
+
default: () => any[];
|
114
|
+
};
|
115
|
+
defautUsingItem: PropType<SelectedItem>;
|
116
|
+
mode: {
|
117
|
+
type: PropType<SearchInputMode>;
|
118
|
+
default: SearchInputMode;
|
119
|
+
};
|
120
|
+
getMenuList: PropType<GetMenuListFunc>;
|
121
|
+
validateValues: PropType<ValidateValuesFunc>;
|
122
|
+
valueBehavior: PropType<ValueBehavior>;
|
123
|
+
}>> & {
|
124
|
+
onFocus?: (...args: any[]) => any;
|
125
|
+
onDelete?: (...args: any[]) => any;
|
126
|
+
onAdd?: (...args: any[]) => any;
|
127
|
+
}, {
|
128
|
+
mode: SearchInputMode;
|
129
|
+
conditions: ICommonItem[];
|
130
|
+
showInputBefore: boolean;
|
131
|
+
showCondition: boolean;
|
132
|
+
}, true, {}, {}, {
|
133
|
+
P: {};
|
134
|
+
B: {};
|
135
|
+
D: {};
|
136
|
+
C: {};
|
137
|
+
M: {};
|
138
|
+
Defaults: {};
|
139
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
97
140
|
data: {
|
98
141
|
type: PropType<ISearchItem[]>;
|
99
142
|
required: true;
|
@@ -119,16 +162,70 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
162
|
onDelete?: (...args: any[]) => any;
|
120
163
|
onAdd?: (...args: any[]) => any;
|
121
164
|
}, {
|
165
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
166
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
167
|
+
keyword: import("vue").Ref<string>;
|
168
|
+
loading: import("vue").Ref<boolean>;
|
169
|
+
remoteMenuList: import("vue").Ref<{
|
170
|
+
id: string;
|
171
|
+
name: string;
|
172
|
+
disabled?: boolean;
|
173
|
+
realId?: string;
|
174
|
+
value?: {
|
175
|
+
name: string;
|
176
|
+
id: string;
|
177
|
+
realId?: string;
|
178
|
+
isSelected?: boolean;
|
179
|
+
logical?: SearchLogical;
|
180
|
+
};
|
181
|
+
isSelected?: boolean;
|
182
|
+
logical?: SearchLogical;
|
183
|
+
}[]>;
|
184
|
+
menuList: import("vue").Ref<ISearchItem[]>;
|
185
|
+
menuHoverId: import("vue").Ref<string>;
|
186
|
+
isFocus: import("vue").Ref<boolean>;
|
187
|
+
usingItem: import("vue").Ref<SelectedItem>;
|
188
|
+
showPopover: import("vue").Ref<boolean>;
|
189
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
190
|
+
debounceSetMenuList: {
|
191
|
+
(this: any): any;
|
192
|
+
cancel(): void;
|
193
|
+
};
|
194
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
195
|
+
handleClickOutside: (e: MouseEvent) => void;
|
196
|
+
handleInputFocus: () => void;
|
197
|
+
handleInputChange: (event: Event) => void;
|
198
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
199
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
200
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
201
|
+
handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
202
|
+
handleSelectCondtionItem: (item: ICommonItem) => void;
|
203
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
204
|
+
resolveClassName: (cls: string) => string;
|
205
|
+
inputFocusForWrapper: () => void;
|
206
|
+
inputEnterForWrapper: () => void;
|
207
|
+
t: import("vue").ComputedRef<{
|
208
|
+
pleaseSelect: string;
|
209
|
+
loading: string;
|
210
|
+
filterQueryMustHasValue: string;
|
211
|
+
ok: string;
|
212
|
+
cancel: string;
|
213
|
+
or: string;
|
214
|
+
and: string;
|
215
|
+
logical: string;
|
216
|
+
}>;
|
217
|
+
}, {}, {}, {}, {
|
122
218
|
mode: SearchInputMode;
|
123
219
|
conditions: ICommonItem[];
|
124
220
|
showInputBefore: boolean;
|
125
221
|
showCondition: boolean;
|
126
|
-
}
|
222
|
+
}>>;
|
223
|
+
selectedInputRef: import("vue").Ref<HTMLDivElement>;
|
127
224
|
editKey: import("vue").Ref<String>;
|
128
225
|
copySeletedItem: (item: SelectedItem) => SelectedItem;
|
129
226
|
handleDeleteSelected: (index: number) => void;
|
130
227
|
handleEditSeleted: (e: MouseEvent, item: SelectedItem, index: number) => void;
|
131
|
-
handleInputOutside: () => boolean;
|
228
|
+
handleInputOutside: (target: Node) => boolean;
|
132
229
|
handleAddSelected: (item: SelectedItem, index: number) => void;
|
133
230
|
handleInputFocus: (isFocus: boolean) => void;
|
134
231
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "delete"[], "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -25,6 +25,7 @@ export interface ISearchSelectProvider {
|
|
25
25
|
onValidate: (str: string) => void;
|
26
26
|
editKey: Ref<String>;
|
27
27
|
searchData: ComputedRef<ISearchItem[]>;
|
28
|
+
isClickOutside: (target: Node) => boolean;
|
28
29
|
}
|
29
30
|
export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
|
30
31
|
export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
|