@enso-ui/users 2.0.9 → 2.0.13

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/users",
3
- "version": "2.0.9",
3
+ "version": "2.0.13",
4
4
  "description": "Basic users package",
5
5
  "main": "bulma/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@
4
4
  <enso-form class="box has-background-light raises-on-hover">
5
5
  <template #group_id="props">
6
6
  <form-field v-bind="props"
7
- @input="pivotParams.userGroups.id = $event"/>
7
+ @update:modelValue="pivotParams.userGroups.id = $event"/>
8
8
  </template>
9
9
  <template #role_id="props">
10
10
  <form-field v-bind="props"
@@ -9,7 +9,7 @@
9
9
  ">
10
10
  <template #group_id="props">
11
11
  <form-field v-bind="props"
12
- @input="pivotParams.userGroups.id = $event"/>
12
+ @update:modelValue="pivotParams.userGroups.id = $event"/>
13
13
  </template>
14
14
  <template #role_id="props">
15
15
  <form-field v-bind="props"
@@ -87,7 +87,7 @@
87
87
  <div class="columns is-centered">
88
88
  <div class="column is-half">
89
89
  <tokens :id="$route.params.user"
90
- @update="$set(count, 'Tokens', $refs.tokens.count)"
90
+ @update="count.Tokens = $refs.tokens.count"
91
91
  ref="tokens"/>
92
92
  </div>
93
93
  </div>
@@ -98,7 +98,7 @@
98
98
  <div class="columns is-centered">
99
99
  <div class="column is-half">
100
100
  <sessions :id="$route.params.user"
101
- @update="$set(count, 'Sessions', $refs.sessions.count)"
101
+ @update="count.Sessions = $refs.sessions.count"
102
102
  ref="sessions"/>
103
103
  </div>
104
104
  </div>
@@ -123,7 +123,7 @@ import { EnsoForm, FormField } from '@enso-ui/forms/bulma';
123
123
  import Accessories from '@enso-ui/accessories/bulma';
124
124
  import { Tab } from '@enso-ui/tabs/bulma';
125
125
  import { mapState } from 'vuex';
126
- import PasswordStrength from '@enso-ui/auth/src/bulma/pages/auth/components/PasswordStrength.vue'; // TODO::FIX IT!
126
+ import { PasswordStrength } from '@enso-ui/auth';
127
127
  import DeleteModal from './components/DeleteModal.vue';
128
128
  import Tokens from './components/Tokens.vue';
129
129
  import Sessions from './components/Sessions.vue';
@@ -147,6 +147,8 @@ export default {
147
147
 
148
148
  inject: ['i18n', 'canAccess', 'errorHandler', 'route', 'routerErrorHandler', 'toastr'],
149
149
 
150
+ emits: ['update'],
151
+
150
152
  data: () => ({
151
153
  deletableUser: null,
152
154
  ready: false,
@@ -50,6 +50,8 @@ export default {
50
50
  },
51
51
  },
52
52
 
53
+ emits: ['close', 'destroyed'],
54
+
53
55
  methods: {
54
56
  destroy(person = false) {
55
57
  axios.delete(this.route('administration.users.destroy', this.userId),
@@ -80,6 +80,8 @@ export default {
80
80
  },
81
81
  },
82
82
 
83
+ emits: ['delete'],
84
+
83
85
  data: () => ({
84
86
  confirmation: false,
85
87
  }),
@@ -60,6 +60,8 @@ export default {
60
60
  },
61
61
  },
62
62
 
63
+ emits: ['remove', 'update'],
64
+
63
65
  data: () => ({
64
66
  sessions: [],
65
67
  query: '',
@@ -63,6 +63,8 @@ export default {
63
63
  },
64
64
  },
65
65
 
66
+ emits: ['delete'],
67
+
66
68
  data: () => ({
67
69
  confirmation: false,
68
70
  }),
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <modal portal="token-form">
2
+ <modal>
3
3
  <enso-form class="box has-background-light"
4
4
  v-bind="$attrs"
5
5
  disable-state/>
@@ -62,7 +62,7 @@
62
62
  import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
63
63
  import { library } from '@fortawesome/fontawesome-svg-core';
64
64
  import { faPlus, faSync, faSearch } from '@fortawesome/free-solid-svg-icons';
65
- import Url from '@enso-ui/files/src/bulma/pages/files/components/Url.vue'; // TODO:: refactor to a package
65
+ import { Url } from '@enso-ui/files'; // TODO:: refactor to a package
66
66
  import Token from './Token.vue';
67
67
  import TokenForm from './TokenForm.vue';
68
68
 
@@ -87,6 +87,8 @@ export default {
87
87
  },
88
88
  },
89
89
 
90
+ emits: ['remove', 'update'],
91
+
90
92
  data: () => ({
91
93
  tokens: [],
92
94
  query: '',
@@ -171,6 +171,8 @@ export default {
171
171
 
172
172
  inject: ['canAccess', 'errorHandler', 'i18n', 'route', 'routerErrorHandler'],
173
173
 
174
+ emits: ['start-impersonating'],
175
+
174
176
  data: () => ({
175
177
  profile: null,
176
178
  }),
@@ -1,6 +1,4 @@
1
- import Vue from 'vue';
2
1
  import App from '@enso-ui/ui/src/core/app';
3
2
  import ProfileController from './components/navbar/ProfileControl.vue';
4
3
 
5
- Vue.component('navbar-profile-controller', ProfileController);
6
- App.registerNavbarItem('navbar-profile-controller', 400);
4
+ App.registerNavbarItem('navbar-profile-controller', ProfileController, 400);