@enso-ui/typeahead 3.0.5 → 3.0.9

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.5",
3
+ "version": "3.0.9",
4
4
  "description": "Vue Typeahead",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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,
@@ -248,10 +250,10 @@ export default {
248
250
  modeBindings: {
249
251
  modes: this.searchModes,
250
252
  query: this.query,
251
- value: this.mode,
253
+ modelValue: this.mode,
252
254
  },
253
255
  modeEvents: {
254
- input: event => (this.mode = event),
256
+ 'update:modelValue': event => (this.mode = event),
255
257
  change: this.fetch,
256
258
  },
257
259
  modeSelector: this.modeSelector,