codevdesign 0.0.52 → 0.0.54
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/assets/csqc.css +15 -25
- package/composants/csqcChaise/chaiseConteneur.vue +17 -17
- package/composants/csqcChaise/chaiseItem.vue +13 -15
- package/composants/csqcConfirmation.vue +2 -2
- package/composants/csqcOptionSwitch.vue +1 -1
- package/composants/csqcRecherche.vue +2 -2
- package/composants/csqcSnackbar.vue +1 -1
- package/composants/csqcTable/csqcTable.vue +9 -10
- package/composants/csqcTable/csqcTableModaleChoixColonnes.vue +586 -567
- package/composants/gabarit/csqcMenu.vue +2 -2
- package/composants/gabarit/vueDefault.vue +2 -3
- package/package.json +1 -1
package/assets/csqc.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/* titre design qc avec ligne orange*/
|
|
4
4
|
.headline {
|
|
5
5
|
color: #223654 !important;
|
|
6
6
|
font-weight: 600 !important;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
/* titre design qc avec ligne orange*/
|
|
9
|
+
/* titre design qc avec ligne orange*/
|
|
10
10
|
.headline:after {
|
|
11
|
-
content:
|
|
11
|
+
content: '';
|
|
12
12
|
display: block;
|
|
13
13
|
margin: 0 0 8px 0;
|
|
14
14
|
width: 2.8rem;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
/* pour afficher une étoile après le label*/
|
|
20
20
|
.required:after {
|
|
21
|
-
content:
|
|
21
|
+
content: ' *';
|
|
22
22
|
color: red;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
font-size: 0.9rem;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
/*hauteur des boutons min... par défaut c'est 34*/
|
|
33
32
|
.BoutonCSQC {
|
|
34
33
|
border-radius: 4px;
|
|
@@ -43,11 +42,11 @@
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
.iconeHover:hover {
|
|
46
|
-
|
|
45
|
+
color: #095797;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
/*goutière de 24px minimum entre les boutons compact*/
|
|
50
|
-
.v-application--is-ltr .v-card__actions
|
|
49
|
+
.v-application--is-ltr .v-card__actions > .v-btn.v-btn + .v-btn {
|
|
51
50
|
margin-left: 16px;
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
margin-left: 16px;
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
|
|
59
57
|
/*permet legend max width sans padding de container */
|
|
60
58
|
.maximumLargeur {
|
|
61
59
|
margin-right: auto;
|
|
@@ -68,9 +66,6 @@
|
|
|
68
66
|
cursor: pointer;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
69
|
/*********************** Overrride piv *******************/
|
|
75
70
|
@media screen and (min-width: 993px) {
|
|
76
71
|
#pivImage {
|
|
@@ -103,12 +98,11 @@ html,
|
|
|
103
98
|
body {
|
|
104
99
|
padding: 0;
|
|
105
100
|
margin: 0;
|
|
106
|
-
width: 100
|
|
101
|
+
width: 100%;
|
|
107
102
|
}
|
|
108
103
|
|
|
109
104
|
/************************** PIV **************************/
|
|
110
105
|
|
|
111
|
-
|
|
112
106
|
#pivImage {
|
|
113
107
|
max-height: 2rem;
|
|
114
108
|
max-width: 10.175rem;
|
|
@@ -118,7 +112,6 @@ body {
|
|
|
118
112
|
display: none;
|
|
119
113
|
}
|
|
120
114
|
|
|
121
|
-
|
|
122
115
|
.visuallyHidden {
|
|
123
116
|
border: 0;
|
|
124
117
|
clip: rect(0 0 0 0);
|
|
@@ -127,40 +120,38 @@ body {
|
|
|
127
120
|
overflow: hidden;
|
|
128
121
|
padding: 0;
|
|
129
122
|
position: absolute;
|
|
130
|
-
width: 1px
|
|
123
|
+
width: 1px;
|
|
131
124
|
}
|
|
132
125
|
|
|
133
126
|
.cacher {
|
|
134
|
-
display: none !important
|
|
127
|
+
display: none !important;
|
|
135
128
|
}
|
|
136
129
|
|
|
137
|
-
|
|
138
130
|
.flex,
|
|
139
131
|
.d-flex {
|
|
140
132
|
display: -ms-flexbox !important;
|
|
141
133
|
display: -webkit-box !important;
|
|
142
|
-
display: flex !important
|
|
134
|
+
display: flex !important;
|
|
143
135
|
}
|
|
144
136
|
|
|
145
137
|
.align-items-center {
|
|
146
138
|
-ms-flex-align: center !important;
|
|
147
139
|
-webkit-box-align: center !important;
|
|
148
|
-
align-items: center !important
|
|
140
|
+
align-items: center !important;
|
|
149
141
|
}
|
|
150
142
|
|
|
151
143
|
.justify-content-end {
|
|
152
144
|
-ms-flex-pack: end !important;
|
|
153
145
|
-webkit-box-pack: end !important;
|
|
154
|
-
justify-content: flex-end !important
|
|
146
|
+
justify-content: flex-end !important;
|
|
155
147
|
}
|
|
156
148
|
|
|
157
149
|
.justify-content-start {
|
|
158
150
|
-ms-flex-pack: start !important;
|
|
159
151
|
-webkit-box-pack: start !important;
|
|
160
|
-
justify-content: flex-start !important
|
|
152
|
+
justify-content: flex-start !important;
|
|
161
153
|
}
|
|
162
154
|
|
|
163
|
-
|
|
164
155
|
/* Taille de police */
|
|
165
156
|
|
|
166
157
|
h1,
|
|
@@ -241,19 +232,18 @@ h6,
|
|
|
241
232
|
|
|
242
233
|
h1:after,
|
|
243
234
|
h2.decorated:after {
|
|
244
|
-
content:
|
|
235
|
+
content: '';
|
|
245
236
|
display: block;
|
|
246
237
|
margin: 0 0 12px 0;
|
|
247
238
|
width: 4.8rem;
|
|
248
239
|
padding-top: 0.4rem;
|
|
249
|
-
|
|
250
240
|
}
|
|
251
241
|
|
|
252
242
|
h3.decorated:after,
|
|
253
243
|
h4.decorated:after,
|
|
254
244
|
h5.decorated:after,
|
|
255
245
|
h6.decorated:after {
|
|
256
|
-
content:
|
|
246
|
+
content: '';
|
|
257
247
|
display: block;
|
|
258
248
|
margin: 0 0 12px 0;
|
|
259
249
|
width: 3.4rem;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div v-if="preferences && unites && unites.length > 0 && activerDivPreferences">
|
|
5
5
|
<v-card
|
|
6
6
|
width="375"
|
|
7
|
-
|
|
7
|
+
border
|
|
8
8
|
>
|
|
9
9
|
<v-card-text
|
|
10
10
|
flat
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
class="mb-1"
|
|
30
30
|
>
|
|
31
31
|
<chaiseItem
|
|
32
|
-
:
|
|
32
|
+
:unite-id="uniteId"
|
|
33
33
|
:preferences="preferences"
|
|
34
|
-
:
|
|
34
|
+
:dict-chaises-releve="dictChaisesReleve"
|
|
35
35
|
:unites="unites"
|
|
36
36
|
/>
|
|
37
37
|
</v-list-item>
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
<v-btn
|
|
44
44
|
v-if="chargementEnCours == false"
|
|
45
45
|
rounded
|
|
46
|
-
outlined
|
|
47
|
-
small
|
|
46
|
+
variant="outlined"
|
|
47
|
+
size="small"
|
|
48
48
|
@click.stop="modifier"
|
|
49
49
|
>{{ $t('csqc.bouton.modifier') }}</v-btn
|
|
50
50
|
>
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
55
|
<v-dialog
|
|
56
|
+
v-model="visible"
|
|
56
57
|
max-width="largeur"
|
|
57
58
|
:fullscreen="display.name.value == 'xs'"
|
|
58
|
-
v-model="visible"
|
|
59
59
|
@click:outside="annuler"
|
|
60
60
|
@keydown.esc="annuler"
|
|
61
61
|
>
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
<v-row v-if="toutesUnitesPreferencesSelectionnees === false">
|
|
77
77
|
<v-col cols="12">
|
|
78
78
|
<v-alert
|
|
79
|
-
dismissible
|
|
80
79
|
v-model="afficherErreur"
|
|
80
|
+
closable
|
|
81
81
|
type="error"
|
|
82
82
|
>{{ $t('csqc.message.chaiseSelectionToutes') }}</v-alert
|
|
83
83
|
>
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
</v-row>
|
|
86
86
|
<v-row>
|
|
87
87
|
<v-col
|
|
88
|
+
v-for="uniteId in Object.keys(dictChaisesReleve).map(Number)"
|
|
89
|
+
:key="uniteId"
|
|
88
90
|
cols="12"
|
|
89
91
|
sm="4"
|
|
90
92
|
md="3"
|
|
91
|
-
v-for="uniteId in Object.keys(dictChaisesReleve).map(Number)"
|
|
92
|
-
:key="uniteId"
|
|
93
93
|
>
|
|
94
94
|
<label>{{ getUnite(uniteId)?.nom || '' }}</label>
|
|
95
95
|
<br />
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<div class="flex-grow-1"></div>
|
|
112
112
|
<v-btn
|
|
113
113
|
color="primary"
|
|
114
|
-
outlined
|
|
114
|
+
variant="outlined"
|
|
115
115
|
@click.stop="annuler"
|
|
116
116
|
>Annuler</v-btn
|
|
117
117
|
>
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
const visible = ref(false)
|
|
156
156
|
const chargementEnCours = ref(false)
|
|
157
157
|
const afficherErreur = ref(false)
|
|
158
|
-
const unites = ref<
|
|
159
|
-
const preferences = ref<
|
|
160
|
-
const dictChaisesReleve = ref<Record<number,
|
|
158
|
+
const unites = ref<{ id: number; nom: string }[]>([])
|
|
159
|
+
const preferences = ref<{ uniteId: number; chaiseId: number }[]>([])
|
|
160
|
+
const dictChaisesReleve = ref<Record<number, { id: number; nom: string }[]>>({})
|
|
161
161
|
const selection = ref<Record<number, number>>({})
|
|
162
162
|
const modeModifier = ref(false)
|
|
163
163
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
const definitionSelectionDepart = () => {
|
|
189
|
-
for (
|
|
189
|
+
for (const uniteId in dictChaisesReleve.value) {
|
|
190
190
|
const chaises = dictChaisesReleve.value[uniteId]
|
|
191
191
|
const uniteIdNum = Number(uniteId) // Convert to number
|
|
192
192
|
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
const sauvegarder = async () => {
|
|
234
|
-
for (
|
|
234
|
+
for (const uniteId in dictChaisesReleve.value) {
|
|
235
235
|
const chaiseId = selection.value[uniteId]
|
|
236
236
|
if (chaiseId <= 0) {
|
|
237
237
|
continue
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
})
|
|
297
297
|
|
|
298
298
|
const existePreference = computed(() => {
|
|
299
|
-
for (
|
|
299
|
+
for (const uniteId in dictChaisesReleve.value) {
|
|
300
300
|
for (let i = 0; i < dictChaisesReleve.value[uniteId].length; i++) {
|
|
301
301
|
if (preferences.value.some(p => p.chaiseId === dictChaisesReleve.value[uniteId][i].id)) {
|
|
302
302
|
return true
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
})
|
|
308
308
|
|
|
309
309
|
const toutesUnitesPreferencesSelectionnees = computed(() => {
|
|
310
|
-
for (
|
|
310
|
+
for (const uniteId in dictChaisesReleve.value) {
|
|
311
311
|
let uniteOk = false
|
|
312
312
|
for (let i = 0; i < dictChaisesReleve.value[uniteId].length; i++) {
|
|
313
313
|
if (preferences.value.some(p => p.chaiseId === dictChaisesReleve.value[uniteId][i].id)) {
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<v-list-item-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</v-list-item-subtitle>
|
|
14
|
-
</v-list-item-content>
|
|
3
|
+
<v-list-item-title>{{ nomUnite }}</v-list-item-title>
|
|
4
|
+
<v-list-item-subtitle v-if="getPreference != ''">
|
|
5
|
+
{{ getPreference }}
|
|
6
|
+
</v-list-item-subtitle>
|
|
7
|
+
<v-list-item-subtitle
|
|
8
|
+
v-if="getPreference == ''"
|
|
9
|
+
class="messageErreurChaiseItem"
|
|
10
|
+
>
|
|
11
|
+
{{ $t('csqc.message.chaiseSelection') }}
|
|
12
|
+
</v-list-item-subtitle>
|
|
15
13
|
</div>
|
|
16
14
|
</template>
|
|
17
15
|
<script lang="ts" setup>
|
|
@@ -20,9 +18,9 @@
|
|
|
20
18
|
// Définition des props
|
|
21
19
|
const props = defineProps<{
|
|
22
20
|
uniteId: number
|
|
23
|
-
preferences:
|
|
24
|
-
dictChaisesReleve: Record<number,
|
|
25
|
-
unites:
|
|
21
|
+
preferences: { chaiseId: number }[]
|
|
22
|
+
dictChaisesReleve: Record<number, { id: number; nom: string }[]>
|
|
23
|
+
unites: { id: number; nom: string }[]
|
|
26
24
|
}>()
|
|
27
25
|
|
|
28
26
|
const nomUnite = computed(() => {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
<template #append>
|
|
22
22
|
<v-btn
|
|
23
|
-
variant="
|
|
23
|
+
variant="text"
|
|
24
24
|
class="BarreRechercheBackIcone"
|
|
25
25
|
:loading="chargement"
|
|
26
26
|
:disabled="chargement || desactiver"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
static
|
|
49
49
|
:readonly="chargement || desactiver"
|
|
50
50
|
expand-icon=""
|
|
51
|
-
@update:
|
|
51
|
+
@update:model-value="onPanelChange"
|
|
52
52
|
>
|
|
53
53
|
<v-expansion-panel
|
|
54
54
|
flat
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
<slot name="recherche"></slot>
|
|
14
14
|
<Recherche
|
|
15
15
|
v-if="rechercheAfficher"
|
|
16
|
-
:
|
|
16
|
+
:recherche-texte="rechercheTexte"
|
|
17
17
|
:chargement="chargementListe"
|
|
18
18
|
:recherche="recherche"
|
|
19
|
-
@update:recherche="chargerRecherche"
|
|
20
19
|
class="flex-grow-1"
|
|
20
|
+
@update:recherche="chargerRecherche"
|
|
21
21
|
>
|
|
22
22
|
</Recherche>
|
|
23
23
|
</v-col>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
static
|
|
70
70
|
:readonly="chargementListe"
|
|
71
71
|
expand-icon=""
|
|
72
|
-
@update:
|
|
72
|
+
@update:model-value="onPanelChange"
|
|
73
73
|
>
|
|
74
74
|
<v-expansion-panel
|
|
75
75
|
flat
|
|
@@ -129,15 +129,12 @@
|
|
|
129
129
|
<!-- boutons supprimer et modifier -->
|
|
130
130
|
<!-- eslint-disable-next-line -->
|
|
131
131
|
<template v-slot:item.action="{ item }">
|
|
132
|
-
<slot
|
|
133
|
-
name="actionsCustom"
|
|
134
|
-
v-bind:item="item"
|
|
135
|
-
></slot>
|
|
132
|
+
<slot name="actionsCustom"></slot>
|
|
136
133
|
<v-icon
|
|
137
134
|
v-if="props.btnSupprimer"
|
|
138
135
|
size="large"
|
|
139
|
-
@click.stop.prevent="ouvrirModaleSupprimer(item)"
|
|
140
136
|
class="iconeSupprimer float-right"
|
|
137
|
+
@click.stop.prevent="ouvrirModaleSupprimer(item)"
|
|
141
138
|
>
|
|
142
139
|
mdi-delete
|
|
143
140
|
</v-icon>
|
|
@@ -157,10 +154,10 @@
|
|
|
157
154
|
<confirmation
|
|
158
155
|
v-if="props.btnSupprimer"
|
|
159
156
|
ref="modaleSupprimer"
|
|
160
|
-
@confirmer="supprimer"
|
|
161
157
|
:texte="supprimerTexte"
|
|
162
158
|
:titre="supprimerTitreTexte"
|
|
163
159
|
:largeur="modaleSupprimerLargeur"
|
|
160
|
+
@confirmer="supprimer"
|
|
164
161
|
/>
|
|
165
162
|
</v-col>
|
|
166
163
|
</v-row>
|
|
@@ -266,7 +263,9 @@
|
|
|
266
263
|
const ajouter = () => {
|
|
267
264
|
emit('ajouter')
|
|
268
265
|
}
|
|
269
|
-
|
|
266
|
+
|
|
267
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
268
|
+
const cliqueLigne = (e: Event, { item }: { item: any }) => {
|
|
270
269
|
emit('cliqueLigne', item)
|
|
271
270
|
}
|
|
272
271
|
|