@enso-ui/teams 4.0.12 → 5.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,11 +1,5 @@
1
1
  # Teams
2
2
 
3
- ![npm license](https://img.shields.io/npm/l/@enso-ui/teams.svg)
4
- ![npm download](https://img.shields.io/npm/dm/@enso-ui/teams.svg)
5
- ![GitHub top language](https://img.shields.io/github/languages/top/enso-ui/teams.svg)
6
- ![GitHub issues](https://img.shields.io/github/issues/enso-ui/teams.svg)
7
- ![npm version](https://img.shields.io/npm/v/@enso-ui/teams.svg)
8
-
9
3
  ## Usage
10
4
 
11
5
  The component cannot be used outside of the Enso ecosystem.
@@ -16,7 +10,7 @@ For live examples and demos, you may visit [laravel-enso.com](https://www.larave
16
10
 
17
11
  ### Installation, Configuration & Usage
18
12
 
19
- Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/teams.html)
13
+ Be sure to check out the full documentation for this package available at [docs.laravel-enso.com](https://docs.laravel-enso.com/frontend/teams.html).
20
14
 
21
15
  ## Contributions
22
16
 
@@ -26,4 +20,4 @@ Thank you to all the people who already contributed to Enso!
26
20
 
27
21
  ## License
28
22
 
29
- [ISC](https://opensource.org/licenses/ISC)
23
+ [MIT](LICENSE)
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@enso-ui/teams",
3
- "version": "4.0.12",
3
+ "version": "5.1.0",
4
4
  "description": "Basic teams package",
5
5
  "main": "src/bulma/pages/teams/Index.vue",
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/teams.git"
@@ -15,7 +12,7 @@
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/teams/issues"
21
18
  },
@@ -24,22 +21,11 @@
24
21
  "@enso-ui/directives": "^2.0",
25
22
  "@enso-ui/select": "^3.0",
26
23
  "@enso-ui/transitions": "^2.0",
27
- "@enso-ui/ui": "^5.0",
28
- "@enso-ui/users": "^2.0",
29
- "@fortawesome/fontawesome-svg-core": "^1.2.2",
30
- "@fortawesome/free-solid-svg-icons": "^5.11.2",
31
- "@fortawesome/vue-fontawesome": "3.0.0-5",
24
+ "@enso-ui/ui": "^7.0.0",
25
+ "@enso-ui/users": "^3.0",
26
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
27
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
28
+ "@fortawesome/vue-fontawesome": "3.1.3",
32
29
  "vue": "^3.0"
33
- },
34
- "devDependencies": {
35
- "@vue/cli-plugin-babel": "5.0.0-beta.6",
36
- "@vue/cli-plugin-eslint": "5.0.0-beta.6",
37
- "@vue/eslint-config-airbnb": "^5.0.0",
38
- "autoprefixer": "^9.6.1",
39
- "babel-eslint": "^10.0.1",
40
- "cross-env": "^6.0.0",
41
- "eslint": "^7.0.0",
42
- "eslint-import-resolver-alias": "^1.1.2",
43
- "eslint-plugin-vue": "^8.0.0"
44
30
  }
45
31
  }
@@ -5,7 +5,7 @@
5
5
  @click="team=factory()"
6
6
  :disabled="team">
7
7
  <span class="icon is-small">
8
- <fa icon="plus"/>
8
+ <fa :icon="faPlus"/>
9
9
  </span>
10
10
  <span>
11
11
  {{ i18n('New team') }}
@@ -18,7 +18,7 @@
18
18
  :placeholder="i18n('Filter teams')"
19
19
  v-model="query">
20
20
  <span class="icon is-small is-left">
21
- <fa icon="search"/>
21
+ <fa :icon="faSearch"/>
22
22
  </span>
23
23
  <span class="icon is-small is-right clear-button"
24
24
  v-if="query"
@@ -31,7 +31,7 @@
31
31
  v-if="!ready && loading">
32
32
  {{ i18n('Loading') }}
33
33
  <span class="icon is-small ml-2">
34
- <fa icon="spinner"
34
+ <fa :icon="faSpinner"
35
35
  size="xs"
36
36
  spin/>
37
37
  </span>
@@ -61,12 +61,9 @@
61
61
 
62
62
  <script>
63
63
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
64
- import { library } from '@fortawesome/fontawesome-svg-core';
65
64
  import { faPlus, faSearch, faSpinner } from '@fortawesome/free-solid-svg-icons';
66
65
  import Team from './components/Team.vue';
67
66
 
68
- library.add(faPlus, faSearch, faSpinner);
69
-
70
67
  export default {
71
68
  name: 'Index',
72
69
 
@@ -75,6 +72,9 @@ export default {
75
72
  inject: ['errorHandler', 'http', 'i18n', 'route'],
76
73
 
77
74
  data: () => ({
75
+ faPlus,
76
+ faSearch,
77
+ faSpinner,
78
78
  loading: false,
79
79
  ready: false,
80
80
  teams: [],
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <div class="box info-box is-paddingless raises-on-hover"
2
+ <div class="box info-box is-paddingless"
3
3
  :class="[
4
4
  { 'is-danger': team.edit && !team.id },
5
5
  { 'is-warning': team.edit && team.id },
6
6
  { 'is-info': !team.edit && team.users.length === 0 },
7
7
  ]">
8
- <div class="box-header p-2 has-background-light">
8
+ <div class="box-header p-2">
9
9
  <div class="level is-mobile">
10
10
  <div class="level-left">
11
11
  <div name="left"
@@ -28,7 +28,7 @@
28
28
  v-if="!team.edit"
29
29
  @click="team.edit = true">
30
30
  <span class="icon">
31
- <fa icon="pencil-alt"
31
+ <fa :icon="faPen"
32
32
  size="sm"/>
33
33
  </span>
34
34
  </a>
@@ -36,14 +36,14 @@
36
36
  <a class="button is-naked is-outlined"
37
37
  @click="$emit('cancel');team.edit = false">
38
38
  <span class="icon">
39
- <fa icon="ban"/>
39
+ <fa :icon="faBan"/>
40
40
  </span>
41
41
  </a>
42
42
  <a class="button is-naked is-success is-outlined"
43
43
  @click="store();"
44
44
  v-if="team.name">
45
45
  <span class="icon">
46
- <fa icon="check"
46
+ <fa :icon="faCheck"
47
47
  size="sm"/>
48
48
  </span>
49
49
  </a>
@@ -51,7 +51,7 @@
51
51
  @click="destroy"
52
52
  v-if="team.id !== null && team.users.length === 0">
53
53
  <span class="icon">
54
- <fa icon="trash"/>
54
+ <fa :icon="faTrashCan"/>
55
55
  </span>
56
56
  </a>
57
57
  </span>
@@ -84,17 +84,14 @@
84
84
 
85
85
  <script>
86
86
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
87
- import { library } from '@fortawesome/fontawesome-svg-core';
88
87
  import {
89
- faBan, faPencilAlt, faTrash, faCheck,
88
+ faBan, faCheck, faPen, faTrashCan,
90
89
  } from '@fortawesome/free-solid-svg-icons';
91
90
  import { focus } from '@enso-ui/directives';
92
91
  import { Fade } from '@enso-ui/transitions';
93
92
  import { EnsoSelect } from '@enso-ui/select/bulma';
94
93
  import AvatarList from './AvatarList.vue';
95
94
 
96
- library.add([faBan, faPencilAlt, faTrash, faCheck]);
97
-
98
95
  export default {
99
96
  name: 'Team',
100
97
 
@@ -116,6 +113,10 @@ export default {
116
113
  emits: ['cancel', 'create', 'destroy'],
117
114
 
118
115
  data: () => ({
116
+ faBan,
117
+ faCheck,
118
+ faPen,
119
+ faTrashCan,
119
120
  loading: false,
120
121
  }),
121
122
 
package/src/icons.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { library } from '@fortawesome/fontawesome-svg-core';
2
- import { faUsersCog } from '@fortawesome/free-solid-svg-icons';
2
+ import { faUsersGear } from '@fortawesome/free-solid-svg-icons';
3
3
 
4
- library.add(faUsersCog);
4
+ library.add(faUsersGear);