bkui-vue 1.0.3-beta.54 → 1.0.3-beta.56
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 +43 -45
- package/dist/index.esm.js +9802 -9743
- package/dist/index.umd.js +42 -44
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/search-select/index.d.ts +315 -12
- package/lib/search-select/index.js +395 -214
- package/lib/search-select/input.d.ts +4 -1
- package/lib/search-select/search-select.css +19 -6
- package/lib/search-select/search-select.d.ts +105 -4
- package/lib/search-select/search-select.less +15 -12
- package/lib/search-select/search-select.variable.css +19 -6
- package/lib/search-select/selected.d.ts +102 -5
- package/lib/search-select/utils.d.ts +7 -1
- package/package.json +1 -1
@@ -44,7 +44,7 @@ declare const BkSearchSelect: {
|
|
44
44
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
45
45
|
onSearch?: (...args: any[]) => any;
|
46
46
|
}, {
|
47
|
-
inputRef: import("vue").Ref<import("vue").
|
47
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
48
48
|
data: {
|
49
49
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
50
50
|
required: true;
|
@@ -65,6 +65,10 @@ declare const BkSearchSelect: {
|
|
65
65
|
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
66
66
|
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
67
67
|
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
68
|
+
}>> & {
|
69
|
+
onFocus?: (...args: any[]) => any;
|
70
|
+
onDelete?: (...args: any[]) => any;
|
71
|
+
onAdd?: (...args: any[]) => any;
|
68
72
|
}, {
|
69
73
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
70
74
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -97,14 +101,17 @@ declare const BkSearchSelect: {
|
|
97
101
|
};
|
98
102
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
99
103
|
handleClickOutside: (e: MouseEvent) => void;
|
100
|
-
handleInputFocus: (
|
104
|
+
handleInputFocus: () => void;
|
101
105
|
handleInputChange: (event: Event) => void;
|
106
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
102
107
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
103
108
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
104
109
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
105
110
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
106
111
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
107
112
|
resolveClassName: (cls: string) => string;
|
113
|
+
inputFocusForWrapper: () => void;
|
114
|
+
inputEnterForWrapper: () => void;
|
108
115
|
t: import("vue").ComputedRef<{
|
109
116
|
pleaseSelect: string;
|
110
117
|
loading: string;
|
@@ -115,7 +122,7 @@ declare const BkSearchSelect: {
|
|
115
122
|
and: string;
|
116
123
|
logical: string;
|
117
124
|
}>;
|
118
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[],
|
125
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
119
126
|
data: {
|
120
127
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
121
128
|
required: true;
|
@@ -145,7 +152,97 @@ declare const BkSearchSelect: {
|
|
145
152
|
conditions: import("./utils").ICommonItem[];
|
146
153
|
showInputBefore: boolean;
|
147
154
|
showCondition: boolean;
|
148
|
-
}, {}
|
155
|
+
}, true, {}, {}, {
|
156
|
+
P: {};
|
157
|
+
B: {};
|
158
|
+
D: {};
|
159
|
+
C: {};
|
160
|
+
M: {};
|
161
|
+
Defaults: {};
|
162
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
163
|
+
data: {
|
164
|
+
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
165
|
+
required: true;
|
166
|
+
};
|
167
|
+
showInputBefore: BooleanConstructor;
|
168
|
+
showCondition: BooleanConstructor;
|
169
|
+
clickOutside: FunctionConstructor;
|
170
|
+
placeholder: StringConstructor;
|
171
|
+
conditions: {
|
172
|
+
type: import("vue").PropType<import("./utils").ICommonItem[]>;
|
173
|
+
default: () => any[];
|
174
|
+
};
|
175
|
+
defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
|
176
|
+
mode: {
|
177
|
+
type: import("vue").PropType<import("./utils").SearchInputMode>;
|
178
|
+
default: import("./utils").SearchInputMode;
|
179
|
+
};
|
180
|
+
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
181
|
+
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
182
|
+
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
183
|
+
}>> & {
|
184
|
+
onFocus?: (...args: any[]) => any;
|
185
|
+
onDelete?: (...args: any[]) => any;
|
186
|
+
onAdd?: (...args: any[]) => any;
|
187
|
+
}, {
|
188
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
189
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
190
|
+
keyword: import("vue").Ref<string>;
|
191
|
+
loading: import("vue").Ref<boolean>;
|
192
|
+
remoteMenuList: import("vue").Ref<{
|
193
|
+
id: string;
|
194
|
+
name: string;
|
195
|
+
disabled?: boolean;
|
196
|
+
realId?: string;
|
197
|
+
value?: {
|
198
|
+
name: string;
|
199
|
+
id: string;
|
200
|
+
realId?: string;
|
201
|
+
isSelected?: boolean;
|
202
|
+
logical?: import("./utils").SearchLogical;
|
203
|
+
};
|
204
|
+
isSelected?: boolean;
|
205
|
+
logical?: import("./utils").SearchLogical;
|
206
|
+
}[]>;
|
207
|
+
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
208
|
+
menuHoverId: import("vue").Ref<string>;
|
209
|
+
isFocus: import("vue").Ref<boolean>;
|
210
|
+
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
211
|
+
showPopover: import("vue").Ref<boolean>;
|
212
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
213
|
+
debounceSetMenuList: {
|
214
|
+
(this: any): any;
|
215
|
+
cancel(): void;
|
216
|
+
};
|
217
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
218
|
+
handleClickOutside: (e: MouseEvent) => void;
|
219
|
+
handleInputFocus: () => void;
|
220
|
+
handleInputChange: (event: Event) => void;
|
221
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
222
|
+
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
223
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
224
|
+
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
225
|
+
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
226
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
227
|
+
resolveClassName: (cls: string) => string;
|
228
|
+
inputFocusForWrapper: () => void;
|
229
|
+
inputEnterForWrapper: () => void;
|
230
|
+
t: import("vue").ComputedRef<{
|
231
|
+
pleaseSelect: string;
|
232
|
+
loading: string;
|
233
|
+
filterQueryMustHasValue: string;
|
234
|
+
ok: string;
|
235
|
+
cancel: string;
|
236
|
+
or: string;
|
237
|
+
and: string;
|
238
|
+
logical: string;
|
239
|
+
}>;
|
240
|
+
}, {}, {}, {}, {
|
241
|
+
mode: import("./utils").SearchInputMode;
|
242
|
+
conditions: import("./utils").ICommonItem[];
|
243
|
+
showInputBefore: boolean;
|
244
|
+
showCondition: boolean;
|
245
|
+
}>>;
|
149
246
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
150
247
|
isFocus: import("vue").Ref<boolean>;
|
151
248
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -169,6 +266,7 @@ declare const BkSearchSelect: {
|
|
169
266
|
}[];
|
170
267
|
condition: string;
|
171
268
|
logical: import("./utils").SearchLogical;
|
269
|
+
nameRenderkey: string;
|
172
270
|
searchItem: {
|
173
271
|
id: string;
|
174
272
|
name: string;
|
@@ -238,6 +336,9 @@ declare const BkSearchSelect: {
|
|
238
336
|
readonly showLogical: boolean;
|
239
337
|
isSpecialType: () => boolean;
|
240
338
|
addValue: (item: import("./utils").ICommonItem) => void;
|
339
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
340
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
341
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
241
342
|
toValue: () => import("./utils").ISearchValue;
|
242
343
|
toValueKey: () => string;
|
243
344
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|
@@ -372,7 +473,7 @@ declare const BkSearchSelect: {
|
|
372
473
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
373
474
|
onSearch?: (...args: any[]) => any;
|
374
475
|
}, {
|
375
|
-
inputRef: import("vue").Ref<import("vue").
|
476
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
376
477
|
data: {
|
377
478
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
378
479
|
required: true;
|
@@ -393,6 +494,10 @@ declare const BkSearchSelect: {
|
|
393
494
|
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
394
495
|
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
395
496
|
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
497
|
+
}>> & {
|
498
|
+
onFocus?: (...args: any[]) => any;
|
499
|
+
onDelete?: (...args: any[]) => any;
|
500
|
+
onAdd?: (...args: any[]) => any;
|
396
501
|
}, {
|
397
502
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
398
503
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -425,14 +530,17 @@ declare const BkSearchSelect: {
|
|
425
530
|
};
|
426
531
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
427
532
|
handleClickOutside: (e: MouseEvent) => void;
|
428
|
-
handleInputFocus: (
|
533
|
+
handleInputFocus: () => void;
|
429
534
|
handleInputChange: (event: Event) => void;
|
535
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
430
536
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
431
537
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
432
538
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
433
539
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
434
540
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
435
541
|
resolveClassName: (cls: string) => string;
|
542
|
+
inputFocusForWrapper: () => void;
|
543
|
+
inputEnterForWrapper: () => void;
|
436
544
|
t: import("vue").ComputedRef<{
|
437
545
|
pleaseSelect: string;
|
438
546
|
loading: string;
|
@@ -443,7 +551,7 @@ declare const BkSearchSelect: {
|
|
443
551
|
and: string;
|
444
552
|
logical: string;
|
445
553
|
}>;
|
446
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[],
|
554
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
447
555
|
data: {
|
448
556
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
449
557
|
required: true;
|
@@ -473,7 +581,97 @@ declare const BkSearchSelect: {
|
|
473
581
|
conditions: import("./utils").ICommonItem[];
|
474
582
|
showInputBefore: boolean;
|
475
583
|
showCondition: boolean;
|
476
|
-
}, {}
|
584
|
+
}, true, {}, {}, {
|
585
|
+
P: {};
|
586
|
+
B: {};
|
587
|
+
D: {};
|
588
|
+
C: {};
|
589
|
+
M: {};
|
590
|
+
Defaults: {};
|
591
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
592
|
+
data: {
|
593
|
+
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
594
|
+
required: true;
|
595
|
+
};
|
596
|
+
showInputBefore: BooleanConstructor;
|
597
|
+
showCondition: BooleanConstructor;
|
598
|
+
clickOutside: FunctionConstructor;
|
599
|
+
placeholder: StringConstructor;
|
600
|
+
conditions: {
|
601
|
+
type: import("vue").PropType<import("./utils").ICommonItem[]>;
|
602
|
+
default: () => any[];
|
603
|
+
};
|
604
|
+
defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
|
605
|
+
mode: {
|
606
|
+
type: import("vue").PropType<import("./utils").SearchInputMode>;
|
607
|
+
default: import("./utils").SearchInputMode;
|
608
|
+
};
|
609
|
+
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
610
|
+
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
611
|
+
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
612
|
+
}>> & {
|
613
|
+
onFocus?: (...args: any[]) => any;
|
614
|
+
onDelete?: (...args: any[]) => any;
|
615
|
+
onAdd?: (...args: any[]) => any;
|
616
|
+
}, {
|
617
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
618
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
619
|
+
keyword: import("vue").Ref<string>;
|
620
|
+
loading: import("vue").Ref<boolean>;
|
621
|
+
remoteMenuList: import("vue").Ref<{
|
622
|
+
id: string;
|
623
|
+
name: string;
|
624
|
+
disabled?: boolean;
|
625
|
+
realId?: string;
|
626
|
+
value?: {
|
627
|
+
name: string;
|
628
|
+
id: string;
|
629
|
+
realId?: string;
|
630
|
+
isSelected?: boolean;
|
631
|
+
logical?: import("./utils").SearchLogical;
|
632
|
+
};
|
633
|
+
isSelected?: boolean;
|
634
|
+
logical?: import("./utils").SearchLogical;
|
635
|
+
}[]>;
|
636
|
+
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
637
|
+
menuHoverId: import("vue").Ref<string>;
|
638
|
+
isFocus: import("vue").Ref<boolean>;
|
639
|
+
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
640
|
+
showPopover: import("vue").Ref<boolean>;
|
641
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
642
|
+
debounceSetMenuList: {
|
643
|
+
(this: any): any;
|
644
|
+
cancel(): void;
|
645
|
+
};
|
646
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
647
|
+
handleClickOutside: (e: MouseEvent) => void;
|
648
|
+
handleInputFocus: () => void;
|
649
|
+
handleInputChange: (event: Event) => void;
|
650
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
651
|
+
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
652
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
653
|
+
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
654
|
+
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
655
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
656
|
+
resolveClassName: (cls: string) => string;
|
657
|
+
inputFocusForWrapper: () => void;
|
658
|
+
inputEnterForWrapper: () => void;
|
659
|
+
t: import("vue").ComputedRef<{
|
660
|
+
pleaseSelect: string;
|
661
|
+
loading: string;
|
662
|
+
filterQueryMustHasValue: string;
|
663
|
+
ok: string;
|
664
|
+
cancel: string;
|
665
|
+
or: string;
|
666
|
+
and: string;
|
667
|
+
logical: string;
|
668
|
+
}>;
|
669
|
+
}, {}, {}, {}, {
|
670
|
+
mode: import("./utils").SearchInputMode;
|
671
|
+
conditions: import("./utils").ICommonItem[];
|
672
|
+
showInputBefore: boolean;
|
673
|
+
showCondition: boolean;
|
674
|
+
}>>;
|
477
675
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
478
676
|
isFocus: import("vue").Ref<boolean>;
|
479
677
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -497,6 +695,7 @@ declare const BkSearchSelect: {
|
|
497
695
|
}[];
|
498
696
|
condition: string;
|
499
697
|
logical: import("./utils").SearchLogical;
|
698
|
+
nameRenderkey: string;
|
500
699
|
searchItem: {
|
501
700
|
id: string;
|
502
701
|
name: string;
|
@@ -566,6 +765,9 @@ declare const BkSearchSelect: {
|
|
566
765
|
readonly showLogical: boolean;
|
567
766
|
isSpecialType: () => boolean;
|
568
767
|
addValue: (item: import("./utils").ICommonItem) => void;
|
768
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
769
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
770
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
569
771
|
toValue: () => import("./utils").ISearchValue;
|
570
772
|
toValueKey: () => string;
|
571
773
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|
@@ -653,7 +855,7 @@ declare const BkSearchSelect: {
|
|
653
855
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
654
856
|
onSearch?: (...args: any[]) => any;
|
655
857
|
}, {
|
656
|
-
inputRef: import("vue").Ref<import("vue").
|
858
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
657
859
|
data: {
|
658
860
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
659
861
|
required: true;
|
@@ -674,6 +876,10 @@ declare const BkSearchSelect: {
|
|
674
876
|
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
675
877
|
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
676
878
|
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
879
|
+
}>> & {
|
880
|
+
onFocus?: (...args: any[]) => any;
|
881
|
+
onDelete?: (...args: any[]) => any;
|
882
|
+
onAdd?: (...args: any[]) => any;
|
677
883
|
}, {
|
678
884
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
679
885
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -706,14 +912,17 @@ declare const BkSearchSelect: {
|
|
706
912
|
};
|
707
913
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
708
914
|
handleClickOutside: (e: MouseEvent) => void;
|
709
|
-
handleInputFocus: (
|
915
|
+
handleInputFocus: () => void;
|
710
916
|
handleInputChange: (event: Event) => void;
|
917
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
711
918
|
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
712
919
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
713
920
|
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
714
921
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
715
922
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
716
923
|
resolveClassName: (cls: string) => string;
|
924
|
+
inputFocusForWrapper: () => void;
|
925
|
+
inputEnterForWrapper: () => void;
|
717
926
|
t: import("vue").ComputedRef<{
|
718
927
|
pleaseSelect: string;
|
719
928
|
loading: string;
|
@@ -724,7 +933,44 @@ declare const BkSearchSelect: {
|
|
724
933
|
and: string;
|
725
934
|
logical: string;
|
726
935
|
}>;
|
727
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[],
|
936
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
937
|
+
data: {
|
938
|
+
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
939
|
+
required: true;
|
940
|
+
};
|
941
|
+
showInputBefore: BooleanConstructor;
|
942
|
+
showCondition: BooleanConstructor;
|
943
|
+
clickOutside: FunctionConstructor;
|
944
|
+
placeholder: StringConstructor;
|
945
|
+
conditions: {
|
946
|
+
type: import("vue").PropType<import("./utils").ICommonItem[]>;
|
947
|
+
default: () => any[];
|
948
|
+
};
|
949
|
+
defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
|
950
|
+
mode: {
|
951
|
+
type: import("vue").PropType<import("./utils").SearchInputMode>;
|
952
|
+
default: import("./utils").SearchInputMode;
|
953
|
+
};
|
954
|
+
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
955
|
+
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
956
|
+
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
957
|
+
}>> & {
|
958
|
+
onFocus?: (...args: any[]) => any;
|
959
|
+
onDelete?: (...args: any[]) => any;
|
960
|
+
onAdd?: (...args: any[]) => any;
|
961
|
+
}, {
|
962
|
+
mode: import("./utils").SearchInputMode;
|
963
|
+
conditions: import("./utils").ICommonItem[];
|
964
|
+
showInputBefore: boolean;
|
965
|
+
showCondition: boolean;
|
966
|
+
}, true, {}, {}, {
|
967
|
+
P: {};
|
968
|
+
B: {};
|
969
|
+
D: {};
|
970
|
+
C: {};
|
971
|
+
M: {};
|
972
|
+
Defaults: {};
|
973
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
728
974
|
data: {
|
729
975
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
730
976
|
required: true;
|
@@ -750,11 +996,64 @@ declare const BkSearchSelect: {
|
|
750
996
|
onDelete?: (...args: any[]) => any;
|
751
997
|
onAdd?: (...args: any[]) => any;
|
752
998
|
}, {
|
999
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
1000
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
1001
|
+
keyword: import("vue").Ref<string>;
|
1002
|
+
loading: import("vue").Ref<boolean>;
|
1003
|
+
remoteMenuList: import("vue").Ref<{
|
1004
|
+
id: string;
|
1005
|
+
name: string;
|
1006
|
+
disabled?: boolean;
|
1007
|
+
realId?: string;
|
1008
|
+
value?: {
|
1009
|
+
name: string;
|
1010
|
+
id: string;
|
1011
|
+
realId?: string;
|
1012
|
+
isSelected?: boolean;
|
1013
|
+
logical?: import("./utils").SearchLogical;
|
1014
|
+
};
|
1015
|
+
isSelected?: boolean;
|
1016
|
+
logical?: import("./utils").SearchLogical;
|
1017
|
+
}[]>;
|
1018
|
+
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
1019
|
+
menuHoverId: import("vue").Ref<string>;
|
1020
|
+
isFocus: import("vue").Ref<boolean>;
|
1021
|
+
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
1022
|
+
showPopover: import("vue").Ref<boolean>;
|
1023
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
1024
|
+
debounceSetMenuList: {
|
1025
|
+
(this: any): any;
|
1026
|
+
cancel(): void;
|
1027
|
+
};
|
1028
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
1029
|
+
handleClickOutside: (e: MouseEvent) => void;
|
1030
|
+
handleInputFocus: () => void;
|
1031
|
+
handleInputChange: (event: Event) => void;
|
1032
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
1033
|
+
handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
|
1034
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
1035
|
+
handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
1036
|
+
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
1037
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
1038
|
+
resolveClassName: (cls: string) => string;
|
1039
|
+
inputFocusForWrapper: () => void;
|
1040
|
+
inputEnterForWrapper: () => void;
|
1041
|
+
t: import("vue").ComputedRef<{
|
1042
|
+
pleaseSelect: string;
|
1043
|
+
loading: string;
|
1044
|
+
filterQueryMustHasValue: string;
|
1045
|
+
ok: string;
|
1046
|
+
cancel: string;
|
1047
|
+
or: string;
|
1048
|
+
and: string;
|
1049
|
+
logical: string;
|
1050
|
+
}>;
|
1051
|
+
}, {}, {}, {}, {
|
753
1052
|
mode: import("./utils").SearchInputMode;
|
754
1053
|
conditions: import("./utils").ICommonItem[];
|
755
1054
|
showInputBefore: boolean;
|
756
1055
|
showCondition: boolean;
|
757
|
-
}
|
1056
|
+
}>>;
|
758
1057
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
759
1058
|
isFocus: import("vue").Ref<boolean>;
|
760
1059
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -778,6 +1077,7 @@ declare const BkSearchSelect: {
|
|
778
1077
|
}[];
|
779
1078
|
condition: string;
|
780
1079
|
logical: import("./utils").SearchLogical;
|
1080
|
+
nameRenderkey: string;
|
781
1081
|
searchItem: {
|
782
1082
|
id: string;
|
783
1083
|
name: string;
|
@@ -847,6 +1147,9 @@ declare const BkSearchSelect: {
|
|
847
1147
|
readonly showLogical: boolean;
|
848
1148
|
isSpecialType: () => boolean;
|
849
1149
|
addValue: (item: import("./utils").ICommonItem) => void;
|
1150
|
+
str2Values: (str: string) => import("./utils").ICommonItem[];
|
1151
|
+
addValues: (str: string, mergeValues?: boolean) => void;
|
1152
|
+
getValue: (str: string) => import("./utils").ICommonItem;
|
850
1153
|
toValue: () => import("./utils").ISearchValue;
|
851
1154
|
toValueKey: () => string;
|
852
1155
|
isInValueList: (item: import("./utils").ICommonItem) => boolean;
|