codevdesign 1.0.36 → 1.0.38
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/csqcAide.vue +55 -55
- package/composants/csqcAlerteErreur.vue +87 -87
- package/composants/csqcChaise/chaiseConteneur.vue +367 -367
- package/composants/csqcChaise/chaiseItem.vue +54 -54
- package/composants/csqcCodeBudgetaireGenerique.vue +336 -336
- package/composants/csqcConfirmation.vue +75 -75
- package/composants/csqcDate.vue +57 -57
- package/composants/csqcDialogue.vue +118 -118
- package/composants/csqcEditeurTexteRiche.vue +380 -380
- package/composants/csqcEntete.vue +163 -163
- package/composants/csqcImportCSV.vue +125 -125
- package/composants/csqcModaleSaisie.vue +97 -95
- package/composants/csqcOptionSwitch.vue +120 -120
- package/composants/csqcRecherche.vue +213 -213
- package/composants/csqcSnackbar.vue +88 -88
- package/composants/csqcTable/csqcTable.vue +383 -383
- package/composants/csqcTable/csqcTableModaleChoixColonnes.vue +586 -586
- package/composants/csqcTexteBilingue.vue +175 -175
- package/composants/csqcTiroir.vue +156 -156
- package/composants/gabarit/csqcMenu.vue +281 -281
- package/composants/gabarit/pivEntete.vue +205 -205
- package/index.ts +75 -75
- package/modeles/composants/csqcMenuModele.ts +18 -18
- package/modeles/composants/datatableColonne.ts +31 -31
- package/outils/appAxios.ts +116 -116
- package/outils/rafraichisseurToken.ts +187 -187
- package/package.json +1 -1
package/composants/csqcAide.vue
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-menu
|
|
3
|
-
v-if="!isXs"
|
|
4
|
-
:open-on-hover="hover"
|
|
5
|
-
location="top start"
|
|
6
|
-
>
|
|
7
|
-
<template #activator="{ props: activatorProps }">
|
|
8
|
-
<slot name="icone">
|
|
9
|
-
<v-icon
|
|
10
|
-
v-bind="activatorProps"
|
|
11
|
-
:style="styleCss"
|
|
12
|
-
:size="grosseurEffective"
|
|
13
|
-
color="grisMoyen"
|
|
14
|
-
icon="mdi-help-circle"
|
|
15
|
-
@click.stop.prevent
|
|
16
|
-
/>
|
|
17
|
-
</slot>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<slot name="carte">
|
|
21
|
-
<v-expand-transition>
|
|
22
|
-
<v-card style="max-width: 1000px">
|
|
23
|
-
<v-card-text class="pa-6">
|
|
24
|
-
<span v-html="props.aide"></span>
|
|
25
|
-
</v-card-text> </v-card
|
|
26
|
-
></v-expand-transition>
|
|
27
|
-
</slot>
|
|
28
|
-
</v-menu>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script setup lang="ts">
|
|
32
|
-
import { computed } from 'vue'
|
|
33
|
-
import { useDisplay } from 'vuetify'
|
|
34
|
-
|
|
35
|
-
const props = withDefaults(
|
|
36
|
-
defineProps<{
|
|
37
|
-
aide: string
|
|
38
|
-
grosseur?: 'default' | 'small' | 'large' | 'x-large' | 'x-small'
|
|
39
|
-
hover?: boolean
|
|
40
|
-
styleCss?: string
|
|
41
|
-
}>(),
|
|
42
|
-
{
|
|
43
|
-
grosseur: 'default',
|
|
44
|
-
hover: false,
|
|
45
|
-
styleCss: '',
|
|
46
|
-
},
|
|
47
|
-
)
|
|
48
|
-
const grosseurEffective = computed(() => {
|
|
49
|
-
const val = props.grosseur
|
|
50
|
-
return val && val.trim() !== '' ? val : 'default'
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
const { name } = useDisplay()
|
|
54
|
-
const isXs = computed(() => name.value === 'xs')
|
|
55
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<v-menu
|
|
3
|
+
v-if="!isXs"
|
|
4
|
+
:open-on-hover="hover"
|
|
5
|
+
location="top start"
|
|
6
|
+
>
|
|
7
|
+
<template #activator="{ props: activatorProps }">
|
|
8
|
+
<slot name="icone">
|
|
9
|
+
<v-icon
|
|
10
|
+
v-bind="activatorProps"
|
|
11
|
+
:style="styleCss"
|
|
12
|
+
:size="grosseurEffective"
|
|
13
|
+
color="grisMoyen"
|
|
14
|
+
icon="mdi-help-circle"
|
|
15
|
+
@click.stop.prevent
|
|
16
|
+
/>
|
|
17
|
+
</slot>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<slot name="carte">
|
|
21
|
+
<v-expand-transition>
|
|
22
|
+
<v-card style="max-width: 1000px">
|
|
23
|
+
<v-card-text class="pa-6">
|
|
24
|
+
<span v-html="props.aide"></span>
|
|
25
|
+
</v-card-text> </v-card
|
|
26
|
+
></v-expand-transition>
|
|
27
|
+
</slot>
|
|
28
|
+
</v-menu>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup lang="ts">
|
|
32
|
+
import { computed } from 'vue'
|
|
33
|
+
import { useDisplay } from 'vuetify'
|
|
34
|
+
|
|
35
|
+
const props = withDefaults(
|
|
36
|
+
defineProps<{
|
|
37
|
+
aide: string
|
|
38
|
+
grosseur?: 'default' | 'small' | 'large' | 'x-large' | 'x-small'
|
|
39
|
+
hover?: boolean
|
|
40
|
+
styleCss?: string
|
|
41
|
+
}>(),
|
|
42
|
+
{
|
|
43
|
+
grosseur: 'default',
|
|
44
|
+
hover: false,
|
|
45
|
+
styleCss: '',
|
|
46
|
+
},
|
|
47
|
+
)
|
|
48
|
+
const grosseurEffective = computed(() => {
|
|
49
|
+
const val = props.grosseur
|
|
50
|
+
return val && val.trim() !== '' ? val : 'default'
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
const { name } = useDisplay()
|
|
54
|
+
const isXs = computed(() => name.value === 'xs')
|
|
55
|
+
</script>
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-if="afficher && erreur"
|
|
4
|
-
:style="retournerStyle"
|
|
5
|
-
>
|
|
6
|
-
<v-alert
|
|
7
|
-
v-model="afficher"
|
|
8
|
-
class="mb-0 text-center hyphen_auto"
|
|
9
|
-
color="#CB381F"
|
|
10
|
-
closable
|
|
11
|
-
v-bind="$attrs"
|
|
12
|
-
@click:close="fermer"
|
|
13
|
-
>
|
|
14
|
-
<span v-html="erreur" /><br />
|
|
15
|
-
<span
|
|
16
|
-
id="messageSoutien"
|
|
17
|
-
style="color: darkgray"
|
|
18
|
-
>{{ messageSoutien }}</span
|
|
19
|
-
>
|
|
20
|
-
</v-alert>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script lang="ts" setup>
|
|
25
|
-
import { computed, ref, watch } from 'vue'
|
|
26
|
-
import { useDisplay } from 'vuetify'
|
|
27
|
-
import { useI18n } from 'vue-i18n'
|
|
28
|
-
|
|
29
|
-
// Définir les props avec les types
|
|
30
|
-
const props = defineProps({
|
|
31
|
-
message: {
|
|
32
|
-
type: String,
|
|
33
|
-
required: true,
|
|
34
|
-
},
|
|
35
|
-
messageSoutien: {
|
|
36
|
-
type: String,
|
|
37
|
-
required: true,
|
|
38
|
-
},
|
|
39
|
-
})
|
|
40
|
-
const { name: displayName } = useDisplay()
|
|
41
|
-
const emit = defineEmits(['fermer:alerte'])
|
|
42
|
-
const { t } = useI18n({ useScope: 'global' })
|
|
43
|
-
|
|
44
|
-
const fermer = (): void => {
|
|
45
|
-
afficher.value = false
|
|
46
|
-
emit('fermer:alerte')
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const afficher = ref(false)
|
|
50
|
-
|
|
51
|
-
// Watcher pour réagir aux changements du message
|
|
52
|
-
watch(
|
|
53
|
-
() => props.message,
|
|
54
|
-
nouveauMessage => {
|
|
55
|
-
if (nouveauMessage && nouveauMessage !== '') {
|
|
56
|
-
afficher.value = true
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
)
|
|
60
|
-
|
|
61
|
-
// Computed pour l'erreur, venant du store
|
|
62
|
-
const erreur = computed(() => {
|
|
63
|
-
if (props.message == null || props.message == '') return null
|
|
64
|
-
|
|
65
|
-
if (props.message.indexOf('erreurs.') === 0) return t(props.message)
|
|
66
|
-
|
|
67
|
-
return props.message
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
// Méthode computed pour le style en fonction du breakpoint
|
|
71
|
-
const retournerStyle = computed(() => {
|
|
72
|
-
if (displayName.value === 'xs') {
|
|
73
|
-
return 'top: 0px; right:1%;width: 98%;position: fixed; z-index: 2000;'
|
|
74
|
-
}
|
|
75
|
-
return 'top: 20px; right: 10%; width: 80%; position: fixed; z-index: 2000; margin: 0 auto;'
|
|
76
|
-
})
|
|
77
|
-
</script>
|
|
78
|
-
|
|
79
|
-
<style lang="css" scoped>
|
|
80
|
-
.error {
|
|
81
|
-
padding-top: 0.7rem;
|
|
82
|
-
padding-bottom: 0.7rem;
|
|
83
|
-
}
|
|
84
|
-
:deep(.blanc) {
|
|
85
|
-
color: white;
|
|
86
|
-
}
|
|
87
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="afficher && erreur"
|
|
4
|
+
:style="retournerStyle"
|
|
5
|
+
>
|
|
6
|
+
<v-alert
|
|
7
|
+
v-model="afficher"
|
|
8
|
+
class="mb-0 text-center hyphen_auto"
|
|
9
|
+
color="#CB381F"
|
|
10
|
+
closable
|
|
11
|
+
v-bind="$attrs"
|
|
12
|
+
@click:close="fermer"
|
|
13
|
+
>
|
|
14
|
+
<span v-html="erreur" /><br />
|
|
15
|
+
<span
|
|
16
|
+
id="messageSoutien"
|
|
17
|
+
style="color: darkgray"
|
|
18
|
+
>{{ messageSoutien }}</span
|
|
19
|
+
>
|
|
20
|
+
</v-alert>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script lang="ts" setup>
|
|
25
|
+
import { computed, ref, watch } from 'vue'
|
|
26
|
+
import { useDisplay } from 'vuetify'
|
|
27
|
+
import { useI18n } from 'vue-i18n'
|
|
28
|
+
|
|
29
|
+
// Définir les props avec les types
|
|
30
|
+
const props = defineProps({
|
|
31
|
+
message: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: true,
|
|
34
|
+
},
|
|
35
|
+
messageSoutien: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
},
|
|
39
|
+
})
|
|
40
|
+
const { name: displayName } = useDisplay()
|
|
41
|
+
const emit = defineEmits(['fermer:alerte'])
|
|
42
|
+
const { t } = useI18n({ useScope: 'global' })
|
|
43
|
+
|
|
44
|
+
const fermer = (): void => {
|
|
45
|
+
afficher.value = false
|
|
46
|
+
emit('fermer:alerte')
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const afficher = ref(false)
|
|
50
|
+
|
|
51
|
+
// Watcher pour réagir aux changements du message
|
|
52
|
+
watch(
|
|
53
|
+
() => props.message,
|
|
54
|
+
nouveauMessage => {
|
|
55
|
+
if (nouveauMessage && nouveauMessage !== '') {
|
|
56
|
+
afficher.value = true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
// Computed pour l'erreur, venant du store
|
|
62
|
+
const erreur = computed(() => {
|
|
63
|
+
if (props.message == null || props.message == '') return null
|
|
64
|
+
|
|
65
|
+
if (props.message.indexOf('erreurs.') === 0) return t(props.message)
|
|
66
|
+
|
|
67
|
+
return props.message
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
// Méthode computed pour le style en fonction du breakpoint
|
|
71
|
+
const retournerStyle = computed(() => {
|
|
72
|
+
if (displayName.value === 'xs') {
|
|
73
|
+
return 'top: 0px; right:1%;width: 98%;position: fixed; z-index: 2000;'
|
|
74
|
+
}
|
|
75
|
+
return 'top: 20px; right: 10%; width: 80%; position: fixed; z-index: 2000; margin: 0 auto;'
|
|
76
|
+
})
|
|
77
|
+
</script>
|
|
78
|
+
|
|
79
|
+
<style lang="css" scoped>
|
|
80
|
+
.error {
|
|
81
|
+
padding-top: 0.7rem;
|
|
82
|
+
padding-bottom: 0.7rem;
|
|
83
|
+
}
|
|
84
|
+
:deep(.blanc) {
|
|
85
|
+
color: white;
|
|
86
|
+
}
|
|
87
|
+
</style>
|