1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
| import { NOOP, isString, isObject } from '@vue/shared';
| import '../../../utils/index.mjs';
| import '../../tooltip/index.mjs';
| import '../../../constants/index.mjs';
| import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
| import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
| import { UPDATE_MODEL_EVENT, INPUT_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
| const autocompleteProps = buildProps({
| valueKey: {
| type: String,
| default: "value"
| },
| modelValue: {
| type: [String, Number],
| default: ""
| },
| debounce: {
| type: Number,
| default: 300
| },
| placement: {
| type: definePropType(String),
| values: [
| "top",
| "top-start",
| "top-end",
| "bottom",
| "bottom-start",
| "bottom-end"
| ],
| default: "bottom-start"
| },
| fetchSuggestions: {
| type: definePropType([Function, Array]),
| default: NOOP
| },
| popperClass: {
| type: String,
| default: ""
| },
| triggerOnFocus: {
| type: Boolean,
| default: true
| },
| selectWhenUnmatched: {
| type: Boolean,
| default: false
| },
| hideLoading: {
| type: Boolean,
| default: false
| },
| label: {
| type: String
| },
| teleported: useTooltipContentProps.teleported,
| highlightFirstItem: {
| type: Boolean,
| default: false
| },
| fitInputWidth: {
| type: Boolean,
| default: false
| },
| clearable: {
| type: Boolean,
| default: false
| },
| disabled: {
| type: Boolean,
| default: false
| },
| name: String
| });
| const autocompleteEmits = {
| [UPDATE_MODEL_EVENT]: (value) => isString(value),
| [INPUT_EVENT]: (value) => isString(value),
| [CHANGE_EVENT]: (value) => isString(value),
| focus: (evt) => evt instanceof FocusEvent,
| blur: (evt) => evt instanceof FocusEvent,
| clear: () => true,
| select: (item) => isObject(item)
| };
|
| export { autocompleteEmits, autocompleteProps };
| //# sourceMappingURL=autocomplete.mjs.map
|
|