@enso-ui/typeahead 3.0.9 → 3.0.10

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.9",
3
+ "version": "3.0.10",
4
4
  "description": "Vue Typeahead",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,7 +5,8 @@
5
5
  addTag, canAddTag, clearBindings, controlEvents, disabled,
6
6
  invalidQuery, highlight, i18n, inputBindings, inputEvents,
7
7
  itemEvents, items, label, loading, minQueryLength,
8
- modeSelector, modeBindings, modeEvents, query, searchControl,
8
+ modeSelector, modeBindings, modeEvents,
9
+ readonly, query, searchControl,
9
10
  }">
10
11
  <dropdown class="typeahead"
11
12
  :class="$attrs.class"
@@ -23,6 +24,7 @@
23
24
  ]"
24
25
  v-bind="inputBindings"
25
26
  type="text"
27
+ :readonly="readonly"
26
28
  :disabled="disabled"
27
29
  :placeholder="i18n(placeholder)"
28
30
  @keydown="$emit('keydown', $event)"
@@ -49,6 +49,10 @@ export default {
49
49
  type: Object,
50
50
  default: null,
51
51
  },
52
+ readonly: {
53
+ type: Boolean,
54
+ default: false,
55
+ },
52
56
  regExp: {
53
57
  type: RegExp,
54
58
  default() {
@@ -257,6 +261,7 @@ export default {
257
261
  change: this.fetch,
258
262
  },
259
263
  modeSelector: this.modeSelector,
264
+ readonly: this.readonly,
260
265
  query: this.query,
261
266
  searchControl: this.searchControl,
262
267
  });