@enso-ui/typeahead 3.0.4 → 3.0.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enso-ui/typeahead",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Vue Typeahead",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"autoprefixer": "^9.6.1",
|
|
38
38
|
"babel-eslint": "^10.0.1",
|
|
39
39
|
"cross-env": "^6.0.0",
|
|
40
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^7.0.0",
|
|
41
41
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
42
42
|
"eslint-plugin-vue": "^8.0.0"
|
|
43
43
|
}
|
package/src/bulma/Typeahead.vue
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
modeSelector, modeBindings, modeEvents, query, searchControl,
|
|
9
9
|
}">
|
|
10
10
|
<dropdown class="typeahead"
|
|
11
|
+
:class="$attrs.class"
|
|
11
12
|
:disabled="!query"
|
|
12
13
|
:disable-controls="items.length === 0"
|
|
13
14
|
manual>
|
|
@@ -141,6 +142,8 @@ export default {
|
|
|
141
142
|
},
|
|
142
143
|
},
|
|
143
144
|
|
|
145
|
+
emits: ['keydown'],
|
|
146
|
+
|
|
144
147
|
methods: {
|
|
145
148
|
clear() {
|
|
146
149
|
this.$refs.typeahead.clear();
|
|
@@ -79,6 +79,8 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
},
|
|
81
81
|
|
|
82
|
+
emits: ['add-tag', 'search', 'selected'],
|
|
83
|
+
|
|
82
84
|
data: v => ({
|
|
83
85
|
items: [],
|
|
84
86
|
loading: false,
|
|
@@ -215,7 +217,7 @@ export default {
|
|
|
215
217
|
invalidQuery: this.invalidQuery,
|
|
216
218
|
highlight: this.highlight,
|
|
217
219
|
i18n: this.i18n,
|
|
218
|
-
inputBindings: {
|
|
220
|
+
inputBindings: { modelValue: this.query },
|
|
219
221
|
inputEvents: selection => ({
|
|
220
222
|
input: e => {
|
|
221
223
|
this.query = e.target.value;
|
|
@@ -248,10 +250,10 @@ export default {
|
|
|
248
250
|
modeBindings: {
|
|
249
251
|
modes: this.searchModes,
|
|
250
252
|
query: this.query,
|
|
251
|
-
|
|
253
|
+
modelValue: this.mode,
|
|
252
254
|
},
|
|
253
255
|
modeEvents: {
|
|
254
|
-
|
|
256
|
+
'update:modelValue': event => (this.mode = event),
|
|
255
257
|
change: this.fetch,
|
|
256
258
|
},
|
|
257
259
|
modeSelector: this.modeSelector,
|