codevdesign 0.0.46 → 0.0.48
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/composants/csqcChaise/chaiseConteneur.vue +330 -330
- package/composants/csqcOptionSwitch.vue +124 -124
- package/composants/csqcRecherche.vue +7 -5
- package/composants/csqcTable/csqcTable.vue +389 -387
- package/composants/csqcTable/csqcTableExportExcel.vue +58 -58
- package/composants/validateurs.ts +1 -1
- package/package.json +1 -1
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<v-row dense>
|
|
4
|
-
<v-col
|
|
5
|
-
cols="9"
|
|
6
|
-
md="8"
|
|
7
|
-
lg="6"
|
|
8
|
-
class="d-flex align-end"
|
|
9
|
-
>
|
|
10
|
-
<div class="labelSwitchSiSwitchApres">{{ texte }}</div>
|
|
11
|
-
</v-col>
|
|
12
|
-
<v-col
|
|
13
|
-
cols="2"
|
|
14
|
-
class="d-flex align-end justify-end"
|
|
15
|
-
>
|
|
16
|
-
<v-switch
|
|
17
|
-
v-model="maValeur"
|
|
18
|
-
:disabled="desactiver"
|
|
19
|
-
:density="densite"
|
|
20
|
-
:inset="inset"
|
|
21
|
-
@change="sauvegarder"
|
|
22
|
-
hide-details
|
|
23
|
-
/>
|
|
24
|
-
</v-col>
|
|
25
|
-
</v-row>
|
|
26
|
-
<v-row dense>
|
|
27
|
-
<v-col
|
|
28
|
-
cols="9"
|
|
29
|
-
md="8"
|
|
30
|
-
>
|
|
31
|
-
<span v-html="texteDetaille"></span>
|
|
32
|
-
</v-col>
|
|
33
|
-
</v-row>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
<script setup lang="ts">
|
|
37
|
-
import { ref, watch,
|
|
38
|
-
|
|
39
|
-
// Définition des props
|
|
40
|
-
const props = defineProps({
|
|
41
|
-
valeurInverse: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
desactiver: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false,
|
|
48
|
-
},
|
|
49
|
-
inset: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true,
|
|
52
|
-
},
|
|
53
|
-
modelValue: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
required: true,
|
|
56
|
-
},
|
|
57
|
-
texte: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: true,
|
|
60
|
-
},
|
|
61
|
-
texteDetaille: {
|
|
62
|
-
type: String,
|
|
63
|
-
required: true,
|
|
64
|
-
},
|
|
65
|
-
densite: { type: String as PropType<'default' | 'comfortable' | 'compact'>, default: 'compact' },
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
// Définition de l'événement
|
|
69
|
-
const emit = defineEmits(['update:modelValue'])
|
|
70
|
-
|
|
71
|
-
// Référence pour la valeur interne
|
|
72
|
-
const maValeur = ref<boolean>(false)
|
|
73
|
-
|
|
74
|
-
// Montée du composant
|
|
75
|
-
onMounted(() => {
|
|
76
|
-
if (props.valeurInverse) {
|
|
77
|
-
maValeur.value = !props.modelValue
|
|
78
|
-
} else {
|
|
79
|
-
maValeur.value = props.modelValue
|
|
80
|
-
}
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
// Watcher pour suivre les changements de la prop 'value'
|
|
84
|
-
watch(
|
|
85
|
-
() => props.modelValue,
|
|
86
|
-
newValue => {
|
|
87
|
-
if (props.valeurInverse) {
|
|
88
|
-
maValeur.value = !newValue
|
|
89
|
-
} else {
|
|
90
|
-
maValeur.value = newValue
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
watch(
|
|
96
|
-
() => props.valeurInverse,
|
|
97
|
-
newValue => {
|
|
98
|
-
if (props.valeurInverse) {
|
|
99
|
-
maValeur.value = newValue
|
|
100
|
-
} else {
|
|
101
|
-
maValeur.value = !newValue
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
)
|
|
105
|
-
|
|
106
|
-
// Méthode pour sauvegarder la valeur
|
|
107
|
-
const sauvegarder = () => {
|
|
108
|
-
if (props.valeurInverse) {
|
|
109
|
-
emit('update:modelValue', !maValeur.value)
|
|
110
|
-
} else {
|
|
111
|
-
emit('update:modelValue', maValeur.value)
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
</script>
|
|
115
|
-
|
|
116
|
-
<style lang="css" scoped>
|
|
117
|
-
.labelSwitchSiSwitchApres {
|
|
118
|
-
font-weight: bold;
|
|
119
|
-
margin-top: 25px;
|
|
120
|
-
}
|
|
121
|
-
.v-switch {
|
|
122
|
-
margin-bottom: -10px; /* aligner le switch avec son texte*/
|
|
123
|
-
}
|
|
124
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-row dense>
|
|
4
|
+
<v-col
|
|
5
|
+
cols="9"
|
|
6
|
+
md="8"
|
|
7
|
+
lg="6"
|
|
8
|
+
class="d-flex align-end"
|
|
9
|
+
>
|
|
10
|
+
<div class="labelSwitchSiSwitchApres">{{ texte }}</div>
|
|
11
|
+
</v-col>
|
|
12
|
+
<v-col
|
|
13
|
+
cols="2"
|
|
14
|
+
class="d-flex align-end justify-end"
|
|
15
|
+
>
|
|
16
|
+
<v-switch
|
|
17
|
+
v-model="maValeur"
|
|
18
|
+
:disabled="desactiver"
|
|
19
|
+
:density="densite"
|
|
20
|
+
:inset="inset"
|
|
21
|
+
@change="sauvegarder"
|
|
22
|
+
hide-details
|
|
23
|
+
/>
|
|
24
|
+
</v-col>
|
|
25
|
+
</v-row>
|
|
26
|
+
<v-row dense>
|
|
27
|
+
<v-col
|
|
28
|
+
cols="9"
|
|
29
|
+
md="8"
|
|
30
|
+
>
|
|
31
|
+
<span v-html="texteDetaille"></span>
|
|
32
|
+
</v-col>
|
|
33
|
+
</v-row>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
<script setup lang="ts">
|
|
37
|
+
import { ref, watch, onMounted, type PropType } from 'vue'
|
|
38
|
+
|
|
39
|
+
// Définition des props
|
|
40
|
+
const props = defineProps({
|
|
41
|
+
valeurInverse: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: false,
|
|
44
|
+
},
|
|
45
|
+
desactiver: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false,
|
|
48
|
+
},
|
|
49
|
+
inset: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: true,
|
|
52
|
+
},
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
required: true,
|
|
56
|
+
},
|
|
57
|
+
texte: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: true,
|
|
60
|
+
},
|
|
61
|
+
texteDetaille: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: true,
|
|
64
|
+
},
|
|
65
|
+
densite: { type: String as PropType<'default' | 'comfortable' | 'compact'>, default: 'compact' },
|
|
66
|
+
})
|
|
67
|
+
|
|
68
|
+
// Définition de l'événement
|
|
69
|
+
const emit = defineEmits(['update:modelValue'])
|
|
70
|
+
|
|
71
|
+
// Référence pour la valeur interne
|
|
72
|
+
const maValeur = ref<boolean>(false)
|
|
73
|
+
|
|
74
|
+
// Montée du composant
|
|
75
|
+
onMounted(() => {
|
|
76
|
+
if (props.valeurInverse) {
|
|
77
|
+
maValeur.value = !props.modelValue
|
|
78
|
+
} else {
|
|
79
|
+
maValeur.value = props.modelValue
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
// Watcher pour suivre les changements de la prop 'value'
|
|
84
|
+
watch(
|
|
85
|
+
() => props.modelValue,
|
|
86
|
+
newValue => {
|
|
87
|
+
if (props.valeurInverse) {
|
|
88
|
+
maValeur.value = !newValue
|
|
89
|
+
} else {
|
|
90
|
+
maValeur.value = newValue
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
watch(
|
|
96
|
+
() => props.valeurInverse,
|
|
97
|
+
newValue => {
|
|
98
|
+
if (props.valeurInverse) {
|
|
99
|
+
maValeur.value = newValue
|
|
100
|
+
} else {
|
|
101
|
+
maValeur.value = !newValue
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
// Méthode pour sauvegarder la valeur
|
|
107
|
+
const sauvegarder = () => {
|
|
108
|
+
if (props.valeurInverse) {
|
|
109
|
+
emit('update:modelValue', !maValeur.value)
|
|
110
|
+
} else {
|
|
111
|
+
emit('update:modelValue', maValeur.value)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</script>
|
|
115
|
+
|
|
116
|
+
<style lang="css" scoped>
|
|
117
|
+
.labelSwitchSiSwitchApres {
|
|
118
|
+
font-weight: bold;
|
|
119
|
+
margin-top: 25px;
|
|
120
|
+
}
|
|
121
|
+
.v-switch {
|
|
122
|
+
margin-bottom: -10px; /* aligner le switch avec son texte*/
|
|
123
|
+
}
|
|
124
|
+
</style>
|
|
@@ -57,11 +57,13 @@
|
|
|
57
57
|
<v-expansion-panel-title
|
|
58
58
|
style="color: #095797"
|
|
59
59
|
class="pl-0 ml-0"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
><slot name="rechercheAvanceeTitre">
|
|
61
|
+
<span
|
|
62
|
+
style="text-decoration: underline"
|
|
63
|
+
v-html="rechercheAvanceeTexte ? rechercheAvanceeTexte : $t('csqc.label.rechercheAvanceeDefaut')"
|
|
64
|
+
></span>
|
|
65
|
+
<slot name="rechercheAvanceeApresTitre"></slot
|
|
66
|
+
></slot>
|
|
65
67
|
</v-expansion-panel-title>
|
|
66
68
|
<v-expansion-panel-text>
|
|
67
69
|
<slot name="rechercheAvancee"></slot>
|