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
@@ -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>;
|
@@ -106,6 +110,8 @@ declare const BkSearchSelect: {
|
|
106
110
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
107
111
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
108
112
|
resolveClassName: (cls: string) => string;
|
113
|
+
inputFocusForWrapper: () => void;
|
114
|
+
inputEnterForWrapper: () => void;
|
109
115
|
t: import("vue").ComputedRef<{
|
110
116
|
pleaseSelect: string;
|
111
117
|
loading: string;
|
@@ -116,7 +122,7 @@ declare const BkSearchSelect: {
|
|
116
122
|
and: string;
|
117
123
|
logical: string;
|
118
124
|
}>;
|
119
|
-
}, 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<{
|
120
126
|
data: {
|
121
127
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
122
128
|
required: true;
|
@@ -146,7 +152,97 @@ declare const BkSearchSelect: {
|
|
146
152
|
conditions: import("./utils").ICommonItem[];
|
147
153
|
showInputBefore: boolean;
|
148
154
|
showCondition: boolean;
|
149
|
-
}, {}
|
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
|
+
}>>;
|
150
246
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
151
247
|
isFocus: import("vue").Ref<boolean>;
|
152
248
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -377,7 +473,7 @@ declare const BkSearchSelect: {
|
|
377
473
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
378
474
|
onSearch?: (...args: any[]) => any;
|
379
475
|
}, {
|
380
|
-
inputRef: import("vue").Ref<import("vue").
|
476
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
381
477
|
data: {
|
382
478
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
383
479
|
required: true;
|
@@ -398,6 +494,10 @@ declare const BkSearchSelect: {
|
|
398
494
|
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
399
495
|
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
400
496
|
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
497
|
+
}>> & {
|
498
|
+
onFocus?: (...args: any[]) => any;
|
499
|
+
onDelete?: (...args: any[]) => any;
|
500
|
+
onAdd?: (...args: any[]) => any;
|
401
501
|
}, {
|
402
502
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
403
503
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -439,6 +539,8 @@ declare const BkSearchSelect: {
|
|
439
539
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
440
540
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
441
541
|
resolveClassName: (cls: string) => string;
|
542
|
+
inputFocusForWrapper: () => void;
|
543
|
+
inputEnterForWrapper: () => void;
|
442
544
|
t: import("vue").ComputedRef<{
|
443
545
|
pleaseSelect: string;
|
444
546
|
loading: string;
|
@@ -449,7 +551,44 @@ declare const BkSearchSelect: {
|
|
449
551
|
and: string;
|
450
552
|
logical: string;
|
451
553
|
}>;
|
452
|
-
}, 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<{
|
555
|
+
data: {
|
556
|
+
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
557
|
+
required: true;
|
558
|
+
};
|
559
|
+
showInputBefore: BooleanConstructor;
|
560
|
+
showCondition: BooleanConstructor;
|
561
|
+
clickOutside: FunctionConstructor;
|
562
|
+
placeholder: StringConstructor;
|
563
|
+
conditions: {
|
564
|
+
type: import("vue").PropType<import("./utils").ICommonItem[]>;
|
565
|
+
default: () => any[];
|
566
|
+
};
|
567
|
+
defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
|
568
|
+
mode: {
|
569
|
+
type: import("vue").PropType<import("./utils").SearchInputMode>;
|
570
|
+
default: import("./utils").SearchInputMode;
|
571
|
+
};
|
572
|
+
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
573
|
+
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
574
|
+
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
575
|
+
}>> & {
|
576
|
+
onFocus?: (...args: any[]) => any;
|
577
|
+
onDelete?: (...args: any[]) => any;
|
578
|
+
onAdd?: (...args: any[]) => any;
|
579
|
+
}, {
|
580
|
+
mode: import("./utils").SearchInputMode;
|
581
|
+
conditions: import("./utils").ICommonItem[];
|
582
|
+
showInputBefore: boolean;
|
583
|
+
showCondition: boolean;
|
584
|
+
}, true, {}, {}, {
|
585
|
+
P: {};
|
586
|
+
B: {};
|
587
|
+
D: {};
|
588
|
+
C: {};
|
589
|
+
M: {};
|
590
|
+
Defaults: {};
|
591
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
453
592
|
data: {
|
454
593
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
455
594
|
required: true;
|
@@ -475,11 +614,64 @@ declare const BkSearchSelect: {
|
|
475
614
|
onDelete?: (...args: any[]) => any;
|
476
615
|
onAdd?: (...args: any[]) => any;
|
477
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
|
+
}, {}, {}, {}, {
|
478
670
|
mode: import("./utils").SearchInputMode;
|
479
671
|
conditions: import("./utils").ICommonItem[];
|
480
672
|
showInputBefore: boolean;
|
481
673
|
showCondition: boolean;
|
482
|
-
}
|
674
|
+
}>>;
|
483
675
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
484
676
|
isFocus: import("vue").Ref<boolean>;
|
485
677
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -663,7 +855,7 @@ declare const BkSearchSelect: {
|
|
663
855
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
664
856
|
onSearch?: (...args: any[]) => any;
|
665
857
|
}, {
|
666
|
-
inputRef: import("vue").Ref<import("vue").
|
858
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
667
859
|
data: {
|
668
860
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
669
861
|
required: true;
|
@@ -684,6 +876,10 @@ declare const BkSearchSelect: {
|
|
684
876
|
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
685
877
|
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
686
878
|
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
879
|
+
}>> & {
|
880
|
+
onFocus?: (...args: any[]) => any;
|
881
|
+
onDelete?: (...args: any[]) => any;
|
882
|
+
onAdd?: (...args: any[]) => any;
|
687
883
|
}, {
|
688
884
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
689
885
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -725,6 +921,8 @@ declare const BkSearchSelect: {
|
|
725
921
|
handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
|
726
922
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
727
923
|
resolveClassName: (cls: string) => string;
|
924
|
+
inputFocusForWrapper: () => void;
|
925
|
+
inputEnterForWrapper: () => void;
|
728
926
|
t: import("vue").ComputedRef<{
|
729
927
|
pleaseSelect: string;
|
730
928
|
loading: string;
|
@@ -735,7 +933,7 @@ declare const BkSearchSelect: {
|
|
735
933
|
and: string;
|
736
934
|
logical: string;
|
737
935
|
}>;
|
738
|
-
}, 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<{
|
739
937
|
data: {
|
740
938
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
741
939
|
required: true;
|
@@ -765,7 +963,97 @@ declare const BkSearchSelect: {
|
|
765
963
|
conditions: import("./utils").ICommonItem[];
|
766
964
|
showInputBefore: boolean;
|
767
965
|
showCondition: boolean;
|
768
|
-
}, {}
|
966
|
+
}, true, {}, {}, {
|
967
|
+
P: {};
|
968
|
+
B: {};
|
969
|
+
D: {};
|
970
|
+
C: {};
|
971
|
+
M: {};
|
972
|
+
Defaults: {};
|
973
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
974
|
+
data: {
|
975
|
+
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
976
|
+
required: true;
|
977
|
+
};
|
978
|
+
showInputBefore: BooleanConstructor;
|
979
|
+
showCondition: BooleanConstructor;
|
980
|
+
clickOutside: FunctionConstructor;
|
981
|
+
placeholder: StringConstructor;
|
982
|
+
conditions: {
|
983
|
+
type: import("vue").PropType<import("./utils").ICommonItem[]>;
|
984
|
+
default: () => any[];
|
985
|
+
};
|
986
|
+
defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
|
987
|
+
mode: {
|
988
|
+
type: import("vue").PropType<import("./utils").SearchInputMode>;
|
989
|
+
default: import("./utils").SearchInputMode;
|
990
|
+
};
|
991
|
+
getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
|
992
|
+
validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
|
993
|
+
valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
|
994
|
+
}>> & {
|
995
|
+
onFocus?: (...args: any[]) => any;
|
996
|
+
onDelete?: (...args: any[]) => any;
|
997
|
+
onAdd?: (...args: any[]) => any;
|
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
|
+
}, {}, {}, {}, {
|
1052
|
+
mode: import("./utils").SearchInputMode;
|
1053
|
+
conditions: import("./utils").ICommonItem[];
|
1054
|
+
showInputBefore: boolean;
|
1055
|
+
showCondition: boolean;
|
1056
|
+
}>>;
|
769
1057
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
770
1058
|
isFocus: import("vue").Ref<boolean>;
|
771
1059
|
copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
|
@@ -1634,6 +1634,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1634
1634
|
}
|
1635
1635
|
}
|
1636
1636
|
function handleInputFocus() {
|
1637
|
+
showNoSelectValueError.value = false;
|
1637
1638
|
if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
|
1638
1639
|
var range = document.createRange();
|
1639
1640
|
var selection = window.getSelection();
|
@@ -1806,7 +1807,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1806
1807
|
_context.next = 35;
|
1807
1808
|
break;
|
1808
1809
|
}
|
1809
|
-
showNoSelectValueError.value =
|
1810
|
+
showNoSelectValueError.value = !showNoSelectValueError.value;
|
1810
1811
|
return _context.abrupt("return", false);
|
1811
1812
|
case 35:
|
1812
1813
|
_context.next = 37;
|
@@ -2207,9 +2208,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2207
2208
|
var _inputRef$value2;
|
2208
2209
|
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
2209
2210
|
}
|
2211
|
+
function inputEnterForWrapper() {
|
2212
|
+
handleKeyEnter().then(function (v) {
|
2213
|
+
return v && clearInput();
|
2214
|
+
});
|
2215
|
+
}
|
2210
2216
|
// expose
|
2211
2217
|
expose({
|
2212
2218
|
inputFocusForWrapper: inputFocusForWrapper,
|
2219
|
+
inputEnterForWrapper: inputEnterForWrapper,
|
2213
2220
|
handleInputFocus: handleInputFocus,
|
2214
2221
|
isFocus: isFocus
|
2215
2222
|
});
|
@@ -2237,6 +2244,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2237
2244
|
handleSelectCondtionItem: handleSelectCondtionItem,
|
2238
2245
|
handleMenuFooterClick: handleMenuFooterClick,
|
2239
2246
|
resolveClassName: resolveClassName,
|
2247
|
+
inputFocusForWrapper: inputFocusForWrapper,
|
2248
|
+
inputEnterForWrapper: inputEnterForWrapper,
|
2240
2249
|
t: t
|
2241
2250
|
};
|
2242
2251
|
},
|
@@ -2401,6 +2410,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2401
2410
|
setup: function setup(_props, _ref) {
|
2402
2411
|
var emit = _ref.emit;
|
2403
2412
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
2413
|
+
var selectedInputRef = (0,external_vue_namespaceObject.ref)(null);
|
2404
2414
|
var _useSearchSelectInjec = useSearchSelectInject(),
|
2405
2415
|
onEditClick = _useSearchSelectInjec.onEditClick,
|
2406
2416
|
onEditEnter = _useSearchSelectInjec.onEditEnter,
|
@@ -2425,8 +2435,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2425
2435
|
if (isFocus) return;
|
2426
2436
|
onEditBlur();
|
2427
2437
|
}
|
2428
|
-
function handleInputOutside() {
|
2429
|
-
|
2438
|
+
function handleInputOutside(target) {
|
2439
|
+
var _selectedInputRef$val;
|
2440
|
+
return !((_selectedInputRef$val = selectedInputRef.value) !== null && _selectedInputRef$val !== void 0 && _selectedInputRef$val.contains(target));
|
2430
2441
|
}
|
2431
2442
|
function copySeletedItem(item) {
|
2432
2443
|
var newItem = new SelectedItem(item.searchItem, item.type);
|
@@ -2436,6 +2447,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2436
2447
|
}
|
2437
2448
|
return {
|
2438
2449
|
inputRef: inputRef,
|
2450
|
+
selectedInputRef: selectedInputRef,
|
2439
2451
|
editKey: editKey,
|
2440
2452
|
copySeletedItem: copySeletedItem,
|
2441
2453
|
handleDeleteSelected: handleDeleteSelected,
|
@@ -2450,7 +2462,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2450
2462
|
var contentComponent = function contentComponent(item, index) {
|
2451
2463
|
return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2452
2464
|
"class": "selected-input",
|
2453
|
-
"key": _this.editKey.toString()
|
2465
|
+
"key": _this.editKey.toString(),
|
2466
|
+
"ref": "selectedInputRef"
|
2454
2467
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
2455
2468
|
"ref": "inputRef",
|
2456
2469
|
"key": _this.editKey.toString(),
|
@@ -2697,7 +2710,8 @@ var SearchSelectProps = {
|
|
2697
2710
|
editKey: editKey,
|
2698
2711
|
searchData: (0,external_vue_namespaceObject.computed)(function () {
|
2699
2712
|
return props.data;
|
2700
|
-
})
|
2713
|
+
}),
|
2714
|
+
isClickOutside: handleInputOutside
|
2701
2715
|
});
|
2702
2716
|
function onEditClick(item, index) {
|
2703
2717
|
editKey.value = "".concat(item.id, "_").concat(index);
|
@@ -2786,6 +2800,7 @@ var SearchSelectProps = {
|
|
2786
2800
|
isFocus.value = v;
|
2787
2801
|
}
|
2788
2802
|
function handleClickSearch(e) {
|
2803
|
+
inputRef.value.inputEnterForWrapper();
|
2789
2804
|
emit('search', e);
|
2790
2805
|
}
|
2791
2806
|
return {
|
@@ -62,6 +62,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
62
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
63
63
|
handleMenuFooterClick: (item: IMenuFooterItem) => void;
|
64
64
|
resolveClassName: (cls: string) => string;
|
65
|
+
inputFocusForWrapper: () => void;
|
66
|
+
inputEnterForWrapper: () => void;
|
65
67
|
t: import("vue").ComputedRef<{
|
66
68
|
pleaseSelect: string;
|
67
69
|
loading: string;
|
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
84
84
|
validator(v: ValueBehavior): boolean;
|
85
85
|
};
|
86
86
|
}, {
|
87
|
-
inputRef: import("vue").Ref<import("vue").
|
87
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
88
88
|
data: {
|
89
89
|
type: PropType<ISearchItem[]>;
|
90
90
|
required: true;
|
@@ -105,6 +105,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
105
105
|
getMenuList: PropType<GetMenuListFunc>;
|
106
106
|
validateValues: PropType<ValidateValuesFunc>;
|
107
107
|
valueBehavior: PropType<ValueBehavior>;
|
108
|
+
}>> & {
|
109
|
+
onFocus?: (...args: any[]) => any;
|
110
|
+
onDelete?: (...args: any[]) => any;
|
111
|
+
onAdd?: (...args: any[]) => any;
|
108
112
|
}, {
|
109
113
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
110
114
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -146,6 +150,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
146
150
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
147
151
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
148
152
|
resolveClassName: (cls: string) => string;
|
153
|
+
inputFocusForWrapper: () => void;
|
154
|
+
inputEnterForWrapper: () => void;
|
149
155
|
t: import("vue").ComputedRef<{
|
150
156
|
pleaseSelect: string;
|
151
157
|
loading: string;
|
@@ -156,7 +162,44 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
162
|
and: string;
|
157
163
|
logical: string;
|
158
164
|
}>;
|
159
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[],
|
165
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
166
|
+
data: {
|
167
|
+
type: PropType<ISearchItem[]>;
|
168
|
+
required: true;
|
169
|
+
};
|
170
|
+
showInputBefore: BooleanConstructor;
|
171
|
+
showCondition: BooleanConstructor;
|
172
|
+
clickOutside: FunctionConstructor;
|
173
|
+
placeholder: StringConstructor;
|
174
|
+
conditions: {
|
175
|
+
type: PropType<ICommonItem[]>;
|
176
|
+
default: () => any[];
|
177
|
+
};
|
178
|
+
defautUsingItem: PropType<SelectedItem>;
|
179
|
+
mode: {
|
180
|
+
type: PropType<import("./utils").SearchInputMode>;
|
181
|
+
default: import("./utils").SearchInputMode;
|
182
|
+
};
|
183
|
+
getMenuList: PropType<GetMenuListFunc>;
|
184
|
+
validateValues: PropType<ValidateValuesFunc>;
|
185
|
+
valueBehavior: PropType<ValueBehavior>;
|
186
|
+
}>> & {
|
187
|
+
onFocus?: (...args: any[]) => any;
|
188
|
+
onDelete?: (...args: any[]) => any;
|
189
|
+
onAdd?: (...args: any[]) => any;
|
190
|
+
}, {
|
191
|
+
mode: import("./utils").SearchInputMode;
|
192
|
+
conditions: ICommonItem[];
|
193
|
+
showInputBefore: boolean;
|
194
|
+
showCondition: boolean;
|
195
|
+
}, true, {}, {}, {
|
196
|
+
P: {};
|
197
|
+
B: {};
|
198
|
+
D: {};
|
199
|
+
C: {};
|
200
|
+
M: {};
|
201
|
+
Defaults: {};
|
202
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
160
203
|
data: {
|
161
204
|
type: PropType<ISearchItem[]>;
|
162
205
|
required: true;
|
@@ -182,11 +225,64 @@ declare const _default: import("vue").DefineComponent<{
|
|
182
225
|
onDelete?: (...args: any[]) => any;
|
183
226
|
onAdd?: (...args: any[]) => any;
|
184
227
|
}, {
|
228
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
229
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
230
|
+
keyword: import("vue").Ref<string>;
|
231
|
+
loading: import("vue").Ref<boolean>;
|
232
|
+
remoteMenuList: import("vue").Ref<{
|
233
|
+
id: string;
|
234
|
+
name: string;
|
235
|
+
disabled?: boolean;
|
236
|
+
realId?: string;
|
237
|
+
value?: {
|
238
|
+
name: string;
|
239
|
+
id: string;
|
240
|
+
realId?: string;
|
241
|
+
isSelected?: boolean;
|
242
|
+
logical?: SearchLogical;
|
243
|
+
};
|
244
|
+
isSelected?: boolean;
|
245
|
+
logical?: SearchLogical;
|
246
|
+
}[]>;
|
247
|
+
menuList: import("vue").Ref<ISearchItem[]>;
|
248
|
+
menuHoverId: import("vue").Ref<string>;
|
249
|
+
isFocus: import("vue").Ref<boolean>;
|
250
|
+
usingItem: import("vue").Ref<SelectedItem>;
|
251
|
+
showPopover: import("vue").Ref<boolean>;
|
252
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
253
|
+
debounceSetMenuList: {
|
254
|
+
(this: any): any;
|
255
|
+
cancel(): void;
|
256
|
+
};
|
257
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
258
|
+
handleClickOutside: (e: MouseEvent) => void;
|
259
|
+
handleInputFocus: () => void;
|
260
|
+
handleInputChange: (event: Event) => void;
|
261
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
262
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
263
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
264
|
+
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
265
|
+
handleSelectCondtionItem: (item: ICommonItem) => void;
|
266
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
267
|
+
resolveClassName: (cls: string) => string;
|
268
|
+
inputFocusForWrapper: () => void;
|
269
|
+
inputEnterForWrapper: () => void;
|
270
|
+
t: import("vue").ComputedRef<{
|
271
|
+
pleaseSelect: string;
|
272
|
+
loading: string;
|
273
|
+
filterQueryMustHasValue: string;
|
274
|
+
ok: string;
|
275
|
+
cancel: string;
|
276
|
+
or: string;
|
277
|
+
and: string;
|
278
|
+
logical: string;
|
279
|
+
}>;
|
280
|
+
}, {}, {}, {}, {
|
185
281
|
mode: import("./utils").SearchInputMode;
|
186
282
|
conditions: ICommonItem[];
|
187
283
|
showInputBefore: boolean;
|
188
284
|
showCondition: boolean;
|
189
|
-
}
|
285
|
+
}>>;
|
190
286
|
wrapRef: import("vue").Ref<HTMLDivElement>;
|
191
287
|
isFocus: import("vue").Ref<boolean>;
|
192
288
|
copyData: ShallowRef<ISearchItem[]>;
|