@enso-ui/tree-view 2.0.6 → 2.1.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 laravel-enso
3
+ Copyright (c) 2026 laravel-enso
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,12 +1,6 @@
1
1
  # Tree View
2
2
 
3
- ![npm license](https://img.shields.io/npm/l/@enso-ui/tree-view.svg)
4
- ![npm download](https://img.shields.io/npm/dm/@enso-ui/tree-view.svg)
5
- ![GitHub top language](https://img.shields.io/github/languages/top/enso-ui/tree-view.svg)
6
- ![GitHub issues](https://img.shields.io/github/issues/enso-ui/tree-view.svg)
7
- ![npm version](https://img.shields.io/npm/v/@enso-ui/tree-view.svg)
8
-
9
- A front-end tree view component
3
+ A front-end tree view component.
10
4
 
11
5
  ## Usage
12
6
 
@@ -18,7 +12,7 @@ For live examples and demos, you may visit [laravel-enso.com](https://www.larave
18
12
 
19
13
  ### Installation, Configuration & Usage
20
14
 
21
- Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/tree-view.html)
15
+ Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/tree-view.html).
22
16
 
23
17
  ## Contributions
24
18
 
@@ -28,4 +22,4 @@ Thank you to all the people who already contributed to Enso!
28
22
 
29
23
  ## License
30
24
 
31
- [ISC](https://opensource.org/licenses/ISC)
25
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@enso-ui/tree-view",
3
- "version": "2.0.6",
3
+ "version": "2.1.0",
4
4
  "description": "Tree View UI component",
5
5
  "main": "bulma/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "git+https://github.com/enso-ui/tree-view.git"
@@ -15,27 +12,17 @@
15
12
  "vue"
16
13
  ],
17
14
  "author": "Adrian Ocneanu <aocneanu@gmail.com>",
18
- "license": "ISC",
15
+ "license": "MIT",
19
16
  "bugs": {
20
17
  "url": "https://github.com/enso-ui/tree-view/issues"
21
18
  },
22
19
  "homepage": "https://github.com/enso-ui/tree-view#readme",
23
20
  "dependencies": {
24
21
  "@enso-ui/dropdown-indicator": "^2.0",
25
- "@fortawesome/fontawesome-svg-core": "^1.2.2",
26
- "@fortawesome/free-brands-svg-icons": "^5.2.0",
27
- "@fortawesome/vue-fontawesome": "3.0.0-5",
22
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
23
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
24
+ "@fortawesome/free-brands-svg-icons": "^7.2.0",
25
+ "@fortawesome/vue-fontawesome": "3.1.3",
28
26
  "vue": "^3.0"
29
- },
30
- "devDependencies": {
31
- "@vue/cli-plugin-babel": "5.0.0-beta.6",
32
- "@vue/cli-plugin-eslint": "5.0.0-beta.6",
33
- "@vue/eslint-config-airbnb": "^5.0.0",
34
- "autoprefixer": "^9.6.1",
35
- "babel-eslint": "^10.0.1",
36
- "cross-env": "^6.0.0",
37
- "eslint": "^7.0.0",
38
- "eslint-import-resolver-alias": "^1.1.2",
39
- "eslint-plugin-vue": "^8.0.0"
40
27
  }
41
28
  }
@@ -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;
@@ -5,7 +5,7 @@
5
5
  v-model="query"
6
6
  :placeholder="i18n('Search')">
7
7
  <span class="icon is-left">
8
- <fa icon="search"/>
8
+ <fa :icon="faSearch"/>
9
9
  </span>
10
10
  <span class="icon is-right">
11
11
  <a class="delete is-small"
@@ -24,12 +24,9 @@
24
24
 
25
25
  <script>
26
26
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
27
- import { library } from '@fortawesome/fontawesome-svg-core';
28
27
  import { faSearch } from '@fortawesome/free-solid-svg-icons';
29
28
  import Items from './Items.vue';
30
29
 
31
- library.add(faSearch);
32
-
33
30
  export default {
34
31
  name: 'TreeView',
35
32
 
@@ -51,6 +48,7 @@ export default {
51
48
  emits: ['update:modelValue'],
52
49
 
53
50
  data: () => ({
51
+ faSearch,
54
52
  query: '',
55
53
  }),
56
54