codevdesign 0.0.33 → 0.0.35
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.
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
static
|
|
70
70
|
:readonly="chargementListe"
|
|
71
71
|
expand-icon=""
|
|
72
|
+
@update:modelValue="onPanelChange"
|
|
72
73
|
>
|
|
73
74
|
<v-expansion-panel
|
|
74
75
|
flat
|
|
@@ -277,7 +278,15 @@
|
|
|
277
278
|
Object.values(item).some(val => String(val).toLowerCase().includes(recherche.value.toLowerCase())),
|
|
278
279
|
)
|
|
279
280
|
})
|
|
280
|
-
const
|
|
281
|
+
const onPanelChange = (val: unknown) => {
|
|
282
|
+
if (typeof val === 'string' || typeof val === 'number' || val === null) {
|
|
283
|
+
const isOpen = val !== null && val !== ''
|
|
284
|
+
emit('panneau:etat', isOpen)
|
|
285
|
+
} else {
|
|
286
|
+
emit('panneau:etat', false)
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const emit = defineEmits(['ajouter', 'cliqueLigne', 'supprimer', 'modifier', 'donneesExportees', 'panneau:etat'])
|
|
281
290
|
</script>
|
|
282
291
|
|
|
283
292
|
<style scoped lang="css">
|
|
@@ -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