@enso-ui/tree-view 2.0.3 → 2.0.7

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/tree-view",
3
- "version": "2.0.3",
3
+ "version": "2.0.7",
4
4
  "description": "Tree View UI component",
5
5
  "main": "bulma/index.js",
6
6
  "scripts": {
@@ -23,7 +23,8 @@
23
23
  "dependencies": {
24
24
  "@enso-ui/dropdown-indicator": "^2.0",
25
25
  "@fortawesome/fontawesome-svg-core": "^1.2.2",
26
- "@fortawesome/free-brands-svg-icons": "^5.2.0",
26
+ "@fortawesome/free-solid-svg-icons": "^5.11.2",
27
+ "@fortawesome/free-brands-svg-icons": "^5.11.2",
27
28
  "@fortawesome/vue-fontawesome": "3.0.0-5",
28
29
  "vue": "^3.0"
29
30
  },
@@ -34,8 +35,8 @@
34
35
  "autoprefixer": "^9.6.1",
35
36
  "babel-eslint": "^10.0.1",
36
37
  "cross-env": "^6.0.0",
37
- "eslint": "^7.0",
38
+ "eslint": "^7.0.0",
38
39
  "eslint-import-resolver-alias": "^1.1.2",
39
- "eslint-plugin-vue": "^7.0.0-beta.4"
40
+ "eslint-plugin-vue": "^8.0.0"
40
41
  }
41
42
  }
@@ -50,6 +50,8 @@ export default {
50
50
  },
51
51
  },
52
52
 
53
+ emits: ['selected'],
54
+
53
55
  computed: {
54
56
  selected() {
55
57
  return this.selection === this.item.id;
@@ -16,8 +16,8 @@
16
16
  <div class="tree-items no-scrollbars">
17
17
  <items class="parent mt-3"
18
18
  :items="filteredItems"
19
- :selection="value"
20
- @selected="$emit('input', $event)"/>
19
+ :selection="modelValue"
20
+ @selected="$emit('update:modelValue', $event)"/>
21
21
  </div>
22
22
  </div>
23
23
  </template>
@@ -42,12 +42,14 @@ export default {
42
42
  type: Array,
43
43
  required: true,
44
44
  },
45
- value: {
45
+ modelValue: {
46
46
  type: Number,
47
47
  default: null,
48
48
  },
49
49
  },
50
50
 
51
+ emits: ['update:modelValue'],
52
+
51
53
  data: () => ({
52
54
  query: '',
53
55
  }),
@@ -92,7 +94,7 @@ export default {
92
94
  return item.expanded;
93
95
  },
94
96
  updateFocus() {
95
- this.focus(this.items, this.value);
97
+ this.focus(this.items, this.modelValue);
96
98
  },
97
99
  },
98
100
  };