codevdesign 0.0.32 → 0.0.34

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.
@@ -1,11 +1,12 @@
1
1
  <template>
2
- <v-toolbar
3
- flat
2
+ <v-app-bar
4
3
  color="white"
4
+ class="px-0 mx-0"
5
+ :style="{ position: 'sticky' }"
5
6
  height="82px"
6
7
  >
7
8
  <v-row
8
- class="pt-4"
9
+ class="pt-2"
9
10
  @resize="controlAffichage"
10
11
  >
11
12
  <v-col
@@ -49,7 +50,7 @@
49
50
  </v-row>
50
51
  <!-- Barre en bas -->
51
52
  <div style="position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background-color: #808a9d" />
52
- </v-toolbar>
53
+ </v-app-bar>
53
54
  </template>
54
55
 
55
56
  <script setup lang="ts">
@@ -58,6 +58,13 @@
58
58
  </v-list-item>
59
59
  </v-list>
60
60
  </v-menu>
61
+ <v-btn
62
+ variant="text"
63
+ v-if="btnDeconnexion"
64
+ @click="deconnexion"
65
+ :style="'min-width: 100px;'"
66
+ >{{ $t('csqc.csqcMenu.deconnexion') }}</v-btn
67
+ >
61
68
  </v-toolbar>
62
69
  </div>
63
70
 
@@ -114,6 +121,11 @@
114
121
  />
115
122
  </div>
116
123
  </v-list-group>
124
+ <v-list-item
125
+ v-if="btnDeconnexion"
126
+ @click="deconnexion"
127
+ :title="$t('csqc.csqcMenu.deconnexion')"
128
+ />
117
129
  </div>
118
130
  </v-list>
119
131
  </v-navigation-drawer>
@@ -128,6 +140,10 @@
128
140
  type: Boolean,
129
141
  required: true,
130
142
  },
143
+ btnDeconnexion: {
144
+ type: Boolean,
145
+ required: false,
146
+ },
131
147
  route: {
132
148
  type: String,
133
149
  required: true,
@@ -153,11 +169,16 @@
153
169
  },
154
170
  })
155
171
  const menu = ref<boolean>(false)
172
+ const emit = defineEmits(['deconnexion'])
156
173
 
157
174
  /*const verifierDroits = (monelement: string) => {
158
175
  return props.droitsMap[monelement] || false
159
176
  }*/
160
177
 
178
+ const deconnexion = () => {
179
+ emit('deconnexion')
180
+ }
181
+
161
182
  const doitAfficherItemMenu = (item: MenuItem) => {
162
183
  return props.droitsMap[item.droit] || false
163
184
  }
package/locales/fr.json CHANGED
@@ -52,6 +52,9 @@
52
52
  "pivEntete": {
53
53
  "langue": "English"
54
54
  },
55
+ "csqcMenu": {
56
+ "deconnexion": "Déconnexion"
57
+ },
55
58
  "pivFooter": {
56
59
  "logoAlt": ""
57
60
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",