@enso-ui/typeahead 3.0.2 → 3.0.6

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.2",
3
+ "version": "3.0.6",
4
4
  "description": "Vue Typeahead",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,6 +26,7 @@
26
26
  "@enso-ui/search-mode": "^3.0",
27
27
  "@fortawesome/fontawesome-svg-core": "^1.2.2",
28
28
  "@fortawesome/free-solid-svg-icons": "^5.2.0",
29
+ "@fortawesome/vue-fontawesome": "3.0.0-5",
29
30
  "lodash": "^4.17.10",
30
31
  "vue": "^3.0"
31
32
  },
@@ -36,8 +37,8 @@
36
37
  "autoprefixer": "^9.6.1",
37
38
  "babel-eslint": "^10.0.1",
38
39
  "cross-env": "^6.0.0",
39
- "eslint": "^7.0",
40
+ "eslint": "^7.0.0",
40
41
  "eslint-import-resolver-alias": "^1.1.2",
41
- "eslint-plugin-vue": "^7.0.0-beta.4"
42
+ "eslint-plugin-vue": "^8.0.0"
42
43
  }
43
44
  }
@@ -99,6 +99,7 @@
99
99
  </template>
100
100
 
101
101
  <script>
102
+ import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
102
103
  import { library } from '@fortawesome/fontawesome-svg-core';
103
104
  import { faPlus, faSearch } from '@fortawesome/free-solid-svg-icons';
104
105
  import { Dropdown, DropdownItem } from '@enso-ui/dropdown/bulma';
@@ -110,7 +111,7 @@ export default {
110
111
  name: 'Typeahead',
111
112
 
112
113
  components: {
113
- CoreTypeahead, SearchMode, Dropdown, DropdownItem,
114
+ CoreTypeahead, Dropdown, DropdownItem, Fa, SearchMode,
114
115
  },
115
116
 
116
117
  props: {
@@ -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: { value: this.query },
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
- 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,