@drax/identity-vue 0.6.0 → 0.7.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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.6.0",
6
+ "version": "0.7.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -24,12 +24,12 @@
24
24
  "format": "prettier --write src/"
25
25
  },
26
26
  "dependencies": {
27
- "@drax/common-front": "^0.6.0",
28
- "@drax/common-vue": "^0.6.0",
29
- "@drax/crud-front": "^0.6.0",
30
- "@drax/crud-share": "^0.6.0",
31
- "@drax/crud-vue": "^0.6.0",
32
- "@drax/identity-share": "^0.6.0"
27
+ "@drax/common-front": "^0.7.0",
28
+ "@drax/common-vue": "^0.7.0",
29
+ "@drax/crud-front": "^0.7.0",
30
+ "@drax/crud-share": "^0.7.0",
31
+ "@drax/crud-vue": "^0.7.0",
32
+ "@drax/identity-share": "^0.7.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "pinia": "^2.2.2",
@@ -66,5 +66,5 @@
66
66
  "vue-tsc": "^2.1.6",
67
67
  "vuetify": "^3.7.1"
68
68
  },
69
- "gitHead": "66fb4189c54d3c3f12efa89ad1476ecb96b63d38"
69
+ "gitHead": "244c1ccf07c9e3cf11486dcd013b11bcee505c6d"
70
70
  }
@@ -14,7 +14,6 @@ function onAvatarClick() {
14
14
  }
15
15
 
16
16
  async function onFileChanged(e: Event) {
17
- console.log("OnFileChanged",e)
18
17
  if (e.target && (e.target as HTMLInputElement).files) {
19
18
  const files = (e.target as HTMLInputElement).files;
20
19
  if (files && files[0]) {
@@ -1,9 +1,10 @@
1
1
  <script setup lang="ts">
2
2
  import {useAuthStore} from "../../stores/auth/AuthStore.js";
3
3
  import IdentityProfileAvatarEdit from "../IdentityProfileAvatarEdit/IdentityProfileAvatarEdit.vue";
4
+ import {useI18n} from "vue-i18n";
4
5
  defineEmits(['click'])
5
6
  const authStore = useAuthStore()
6
-
7
+ const {t} = useI18n()
7
8
  </script>
8
9
 
9
10
  <template>
@@ -20,7 +21,7 @@ const authStore = useAuthStore()
20
21
  <v-sheet class="text-center">
21
22
  <h6 class="text-caption">{{ authStore.authUser?.email }}</h6>
22
23
  <h6 class="text-caption">{{ authStore.authUser?.tenant?.name }}</h6>
23
- <h6 class="text-subtitle-2">{{$t('user.field.role')}}: {{ authStore.authUser?.role?.name }}</h6>
24
+ <h6 class="text-subtitle-2">{{t('user.field.role')}}: {{ authStore.authUser?.role?.name }}</h6>
24
25
  </v-sheet>
25
26
  </v-sheet>
26
27
  </template>
@@ -62,7 +62,7 @@ const {
62
62
  <v-text-field
63
63
  id="name-input"
64
64
  name="name"
65
- :label="$t('role.field.name')"
65
+ :label="t('role.field.name')"
66
66
  v-model="valueModel.name"
67
67
  prepend-inner-icon="mdi-card-account-details"
68
68
  :variant="variant"
@@ -70,7 +70,7 @@ let passwordVisibility = ref(false)
70
70
 
71
71
  <v-text-field
72
72
  id="name-input"
73
- :label="$t('user.field.name')"
73
+ :label="t('user.field.name')"
74
74
  v-model="valueModel.name"
75
75
  prepend-inner-icon="mdi-card-account-details"
76
76
  :variant="variant"
@@ -81,7 +81,7 @@ let passwordVisibility = ref(false)
81
81
 
82
82
  <v-text-field
83
83
  id="username-input"
84
- :label="$t('user.field.username')"
84
+ :label="t('user.field.username')"
85
85
  v-model="valueModel.username"
86
86
  prepend-inner-icon="mdi-account-question"
87
87
  :variant="variant"
@@ -94,7 +94,7 @@ let passwordVisibility = ref(false)
94
94
  <v-text-field
95
95
  v-if="enablePassword"
96
96
  id="password-input"
97
- :label="$t('user.field.password')"
97
+ :label="t('user.field.password')"
98
98
  v-model="valueModel.password"
99
99
  :type="passwordVisibility ? 'text': 'password'"
100
100
  :variant="variant"
@@ -109,7 +109,7 @@ let passwordVisibility = ref(false)
109
109
 
110
110
  <RoleCombobox
111
111
  v-model="valueModel.role"
112
- :label="$t('user.field.role')"
112
+ :label="t('user.field.role')"
113
113
  :variant="variant"
114
114
  :rules="[(v:any) => !!v || t('validation.required')]"
115
115
  :error-messages="$ta(store.inputErrors?.role)"
@@ -118,7 +118,7 @@ let passwordVisibility = ref(false)
118
118
 
119
119
  <TenantCombobox
120
120
  v-model="valueModel.tenant"
121
- :label="$t('user.field.tenant')"
121
+ :label="t('user.field.tenant')"
122
122
  :variant="variant"
123
123
  :error-messages="$ta(store.inputErrors?.tenant)"
124
124
  clearable
@@ -129,7 +129,7 @@ let passwordVisibility = ref(false)
129
129
  v-model="valueModel.email"
130
130
  :variant="variant"
131
131
  id="email-input"
132
- :label="$t('user.field.email')"
132
+ :label="t('user.field.email')"
133
133
  prepend-inner-icon="mdi-email"
134
134
  :rules="[(v:any) => !!v || t('validation.required')]"
135
135
  :error-messages="$ta(store.inputErrors?.email)"
@@ -140,7 +140,7 @@ let passwordVisibility = ref(false)
140
140
  v-model="valueModel.phone"
141
141
  :variant="variant"
142
142
  id="phone-input"
143
- :label="$t('user.field.phone')"
143
+ :label="t('user.field.phone')"
144
144
  prepend-inner-icon="mdi-phone"
145
145
  :rules="[(v:any) => !!v || t('validation.required')]"
146
146
  :error-messages="$ta(store.inputErrors?.phone)"