codevdesign 0.0.15 → 0.0.16

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,111 +1,111 @@
1
- <template>
2
- <v-toolbar
3
- color="primary"
4
- height="72px"
5
- elevation="1"
6
- >
7
- <v-row
8
- class="pl-6 pr-6"
9
- align="center"
10
- no-gutters
11
- >
12
- <!-- Première colonne : Logo -->
13
- <v-col cols="auto">
14
- <a href="/">
15
- <img
16
- v-if="texteVide(logoUrl)"
17
- src="/images/QUEBEC_blanc.svg"
18
- height="72"
19
- id="pivImage"
20
- :alt="$t('csqc.pivFooter.logoAlt')"
21
- />
22
- <img
23
- v-else
24
- :src="logoUrl"
25
- height="72"
26
- id="pivImage"
27
- :alt="$t('csqc.pivFooter.logoAlt')"
28
- />
29
- </a>
30
- </v-col>
31
-
32
- <!-- Colonne pour le nom de l'application (Pour le mode desktop) -->
33
- <v-col
34
- v-if="!estMobile"
35
- class="d-flex justify-center"
36
- >
37
- <v-app-bar-title
38
- class="pl-12 ml-12"
39
- style="font-size: 16px !important"
40
- >
41
- {{ $t('nom_application') }}
42
- </v-app-bar-title>
43
- </v-col>
44
-
45
- <!-- Colonne pour le bouton de langue -->
46
- <v-col class="d-none d-flex justify-end">
47
- <v-btn
48
- variant="text"
49
- @click="enregistrerLangue()"
50
- >{{ $t('csqc.pivEntete.langue') }}
51
- </v-btn>
52
- </v-col>
53
-
54
- <!-- Colonne pour le nom de l'application (Pour le mode mobile) -->
55
- <v-col
56
- v-if="estMobile"
57
- cols="12"
58
- >
59
- <v-app-bar-title style="font-size: 16px !important">
60
- {{ $t('pivEntete.nom_application') }}
61
- </v-app-bar-title>
62
- </v-col>
63
- </v-row>
64
- </v-toolbar>
65
- </template>
66
-
67
- <script setup lang="ts">
68
- import { useLocale } from 'vuetify'
69
- const { current } = useLocale()
70
- const texteVide = (texte: string | undefined, retirerEspace: boolean = true): boolean => {
71
- let retour = texte === undefined || texte === null || texte === ''
72
-
73
- if (!retour && retirerEspace) {
74
- const temp = texte
75
- retour = temp!.replace(' ', '') === ''
76
- }
77
-
78
- return retour
79
- }
80
- const props = defineProps({
81
- estMobile: {
82
- type: Boolean,
83
- required: true,
84
- },
85
- urlBase: {
86
- type: String,
87
- required: true,
88
- },
89
- logoUrl: {
90
- type: String,
91
- default: '',
92
- },
93
- })
94
-
95
- // Fonction pour enregistrer la langue
96
- const enregistrerLangue = (): void => {
97
- const langueDispo: string = current.value === 'fr' ? 'en' : 'fr'
98
- const returnUrl: string = encodeURIComponent(window.location.pathname) + encodeURIComponent(window.location.hash)
99
- window.location.href = `${props.urlBase}/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${returnUrl}`
100
- }
101
- </script>
102
-
103
- <style scoped>
104
- .container {
105
- max-width: none !important;
106
- }
107
- .theme--light.v-app-bar.v-toolbar.v-sheet {
108
- background: #095797;
109
- color: #fff;
110
- }
111
- </style>
1
+ <template>
2
+ <v-toolbar
3
+ color="primary"
4
+ height="72px"
5
+ elevation="1"
6
+ >
7
+ <v-row
8
+ class="pl-6 pr-6"
9
+ align="center"
10
+ no-gutters
11
+ >
12
+ <!-- Première colonne : Logo -->
13
+ <v-col cols="auto">
14
+ <a href="/">
15
+ <img
16
+ v-if="texteVide(logoUrl)"
17
+ src="/images/QUEBEC_blanc.svg"
18
+ height="72"
19
+ id="pivImage"
20
+ :alt="$t('csqc.pivFooter.logoAlt')"
21
+ />
22
+ <img
23
+ v-else
24
+ :src="logoUrl"
25
+ height="72"
26
+ id="pivImage"
27
+ :alt="$t('csqc.pivFooter.logoAlt')"
28
+ />
29
+ </a>
30
+ </v-col>
31
+
32
+ <!-- Colonne pour le nom de l'application (Pour le mode desktop) -->
33
+ <v-col
34
+ v-if="!estMobile"
35
+ class="d-flex justify-center"
36
+ >
37
+ <v-app-bar-title
38
+ class="pl-12 ml-12"
39
+ style="font-size: 16px !important"
40
+ >
41
+ {{ $t('nom_application') }}
42
+ </v-app-bar-title>
43
+ </v-col>
44
+
45
+ <!-- Colonne pour le bouton de langue -->
46
+ <v-col class="d-none d-flex justify-end">
47
+ <v-btn
48
+ variant="text"
49
+ @click="enregistrerLangue()"
50
+ >{{ $t('csqc.pivEntete.langue') }}
51
+ </v-btn>
52
+ </v-col>
53
+
54
+ <!-- Colonne pour le nom de l'application (Pour le mode mobile) -->
55
+ <v-col
56
+ v-if="estMobile"
57
+ cols="12"
58
+ >
59
+ <v-app-bar-title style="font-size: 16px !important">
60
+ {{ $t('pivEntete.nom_application') }}
61
+ </v-app-bar-title>
62
+ </v-col>
63
+ </v-row>
64
+ </v-toolbar>
65
+ </template>
66
+
67
+ <script setup lang="ts">
68
+ import { useLocale } from 'vuetify'
69
+ const { current } = useLocale()
70
+ const texteVide = (texte: string | undefined, retirerEspace: boolean = true): boolean => {
71
+ let retour = texte === undefined || texte === null || texte === ''
72
+
73
+ if (!retour && retirerEspace) {
74
+ const temp = texte
75
+ retour = temp!.replace(' ', '') === ''
76
+ }
77
+
78
+ return retour
79
+ }
80
+ const props = defineProps({
81
+ estMobile: {
82
+ type: Boolean,
83
+ required: true,
84
+ },
85
+ urlBase: {
86
+ type: String,
87
+ required: true,
88
+ },
89
+ logoUrl: {
90
+ type: String,
91
+ default: '',
92
+ },
93
+ })
94
+
95
+ // Fonction pour enregistrer la langue
96
+ const enregistrerLangue = (): void => {
97
+ const langueDispo: string = current.value === 'fr' ? 'en' : 'fr'
98
+ const returnUrl: string = encodeURIComponent(window.location.pathname) + encodeURIComponent(window.location.hash)
99
+ window.location.href = `${props.urlBase}/Traducteur/SetLanguage?culture=${langueDispo}&returnUrl=${returnUrl}`
100
+ }
101
+ </script>
102
+
103
+ <style scoped>
104
+ .container {
105
+ max-width: none !important;
106
+ }
107
+ .theme--light.v-app-bar.v-toolbar.v-sheet {
108
+ background: #095797;
109
+ color: #fff;
110
+ }
111
+ </style>
package/index.ts CHANGED
@@ -1,42 +1,42 @@
1
- import csqcAlerteErreur from './composants/csqcAlerteErreur.vue'
2
- import csqcDialogue from './composants/csqcDialogue.vue'
3
- import csqcOptionSwitch from './composants/csqcOptionSwitch.vue'
4
- import csqcRecherche from './composants/csqcRecherche.vue'
5
- import csqcSnackbar from './composants/csqcSnackbar.vue'
6
- import csqcTiroir from './composants/csqcTiroir.vue'
7
- import pivEntete from './composants/gabarit/pivEntete.vue'
8
- import pivFooter from './composants/gabarit/pivPiedPage.vue'
9
- import csqcMenu from './composants/gabarit/csqcMenu.vue'
10
- import csqcConfirmation from './composants/csqcConfirmation.vue'
11
- import csqcTable from './composants/csqcTable/csqcTable.vue'
12
- import csqcChaise from './composants/csqcChaise/chaiseConteneur.vue'
13
-
14
- import modeleUtilisateur from './modeles/utilisateur'
15
- import modeleUnite from './modeles/unite'
16
- import modeleIntervention from './modeles/intervention'
17
- import modeleSnackbar from './modeles/composants/snackbar'
18
- import modeleDatatableColonne from './modeles/composants/datatableColonne'
19
- import csqcEn from './locales/en.json'
20
- import csqcFr from './locales/fr.json'
21
-
22
- export {
23
- csqcFr,
24
- csqcEn,
25
- csqcAlerteErreur,
26
- csqcDialogue,
27
- csqcConfirmation,
28
- csqcOptionSwitch,
29
- csqcRecherche,
30
- csqcSnackbar,
31
- csqcTable,
32
- csqcTiroir,
33
- csqcMenu,
34
- csqcChaise,
35
- pivFooter,
36
- pivEntete,
37
- modeleUtilisateur,
38
- modeleUnite,
39
- modeleIntervention,
40
- modeleSnackbar,
41
- modeleDatatableColonne,
42
- }
1
+ import csqcAlerteErreur from './composants/csqcAlerteErreur.vue'
2
+ import csqcDialogue from './composants/csqcDialogue.vue'
3
+ import csqcOptionSwitch from './composants/csqcOptionSwitch.vue'
4
+ import csqcRecherche from './composants/csqcRecherche.vue'
5
+ import csqcSnackbar from './composants/csqcSnackbar.vue'
6
+ import csqcTiroir from './composants/csqcTiroir.vue'
7
+ import pivEntete from './composants/gabarit/pivEntete.vue'
8
+ import pivFooter from './composants/gabarit/pivPiedPage.vue'
9
+ import csqcMenu from './composants/gabarit/csqcMenu.vue'
10
+ import csqcConfirmation from './composants/csqcConfirmation.vue'
11
+ import csqcTable from './composants/csqcTable/csqcTable.vue'
12
+ import csqcChaise from './composants/csqcChaise/chaiseConteneur.vue'
13
+
14
+ import Utilisateur from './modeles/utilisateur'
15
+ import Unite from './modeles/unite'
16
+ import Intervention from './modeles/intervention'
17
+ import modeleSnackbar from './modeles/composants/snackbar'
18
+ import modeleDatatableColonne from './modeles/composants/datatableColonne'
19
+ import csqcEn from './locales/en.json'
20
+ import csqcFr from './locales/fr.json'
21
+
22
+ export {
23
+ csqcFr,
24
+ csqcEn,
25
+ csqcAlerteErreur,
26
+ csqcDialogue,
27
+ csqcConfirmation,
28
+ csqcOptionSwitch,
29
+ csqcRecherche,
30
+ csqcSnackbar,
31
+ csqcTable,
32
+ csqcTiroir,
33
+ csqcMenu,
34
+ csqcChaise,
35
+ pivFooter,
36
+ pivEntete,
37
+ Utilisateur,
38
+ Unite,
39
+ Intervention,
40
+ modeleSnackbar,
41
+ modeleDatatableColonne,
42
+ }
@@ -1,14 +1,14 @@
1
- class datatableColonne {
2
- title: string
3
- key: string // Correspond à la clé des objets dans `liste`
4
- align?: 'start' | 'center' | 'end'
5
- sortable?: boolean
6
-
7
- constructor(title: string, key: string, align?: 'start' | 'center' | 'end', sortable?: boolean) {
8
- this.title = title
9
- this.key = key
10
- this.align = align
11
- this.sortable = sortable
12
- }
13
- }
14
- export default datatableColonne
1
+ class datatableColonne {
2
+ title: string
3
+ key: string // Correspond à la clé des objets dans `liste`
4
+ align?: 'start' | 'center' | 'end'
5
+ sortable?: boolean
6
+
7
+ constructor(title: string, key: string, align?: 'start' | 'center' | 'end', sortable?: boolean) {
8
+ this.title = title
9
+ this.key = key
10
+ this.align = align
11
+ this.sortable = sortable
12
+ }
13
+ }
14
+ export default datatableColonne
@@ -1,18 +1,18 @@
1
- class CSQCSnackbar {
2
- temps?: number
3
- couleur?: string
4
- message: string
5
- style?: string
6
- titre?: string
7
-
8
- // Constructeur de la classe
9
- constructor(message: string, temps?: number, couleur?: string, style?: string, titre?: string) {
10
- this.message = message
11
- this.temps = temps
12
- this.couleur = couleur
13
- this.style = style
14
- this.titre = titre
15
- }
16
- }
17
-
18
- export default CSQCSnackbar
1
+ class CSQCSnackbar {
2
+ temps?: number
3
+ couleur?: string
4
+ message: string
5
+ style?: string
6
+ titre?: string
7
+
8
+ // Constructeur de la classe
9
+ constructor(message: string, temps?: number, couleur?: string, style?: string, titre?: string) {
10
+ this.message = message
11
+ this.temps = temps
12
+ this.couleur = couleur
13
+ this.style = style
14
+ this.titre = titre
15
+ }
16
+ }
17
+
18
+ export default CSQCSnackbar
@@ -1,38 +1,38 @@
1
- import { EtatDemandeUnite, TypeIntervenant } from '@/outils/enum'
2
-
3
- class Intervention {
4
- id: number
5
- demandeId: number
6
- uniteId: number
7
- chaiseId?: number
8
- niveauChaise?: number
9
- typeIntervenant: TypeIntervenant
10
- utilisateurIdAyantIntervenu?: number
11
- dateIntervention?: Date
12
- etat: EtatDemandeUnite
13
-
14
- // Constructeur de la classe
15
- constructor(
16
- id: number,
17
- demandeId: number,
18
- uniteId: number,
19
- typeIntervenant: TypeIntervenant,
20
- etat: EtatDemandeUnite,
21
- chaiseId?: number,
22
- niveauChaise?: number,
23
- utilisateurIdAyantIntervenu?: number,
24
- dateIntervention?: Date,
25
- ) {
26
- this.id = id
27
- this.demandeId = demandeId
28
- this.uniteId = uniteId
29
- this.typeIntervenant = typeIntervenant
30
- this.etat = etat
31
- this.chaiseId = chaiseId
32
- this.niveauChaise = niveauChaise
33
- this.utilisateurIdAyantIntervenu = utilisateurIdAyantIntervenu
34
- this.dateIntervention = dateIntervention
35
- }
36
- }
37
-
38
- export default Intervention
1
+ import { EtatDemandeUnite, TypeIntervenant } from '@/outils/enum'
2
+
3
+ class Intervention {
4
+ id: number
5
+ demandeId: number
6
+ uniteId: number
7
+ chaiseId?: number
8
+ niveauChaise?: number
9
+ typeIntervenant: TypeIntervenant
10
+ utilisateurIdAyantIntervenu?: number
11
+ dateIntervention?: Date
12
+ etat: EtatDemandeUnite
13
+
14
+ // Constructeur de la classe
15
+ constructor(
16
+ id: number,
17
+ demandeId: number,
18
+ uniteId: number,
19
+ typeIntervenant: TypeIntervenant,
20
+ etat: EtatDemandeUnite,
21
+ chaiseId?: number,
22
+ niveauChaise?: number,
23
+ utilisateurIdAyantIntervenu?: number,
24
+ dateIntervention?: Date,
25
+ ) {
26
+ this.id = id
27
+ this.demandeId = demandeId
28
+ this.uniteId = uniteId
29
+ this.typeIntervenant = typeIntervenant
30
+ this.etat = etat
31
+ this.chaiseId = chaiseId
32
+ this.niveauChaise = niveauChaise
33
+ this.utilisateurIdAyantIntervenu = utilisateurIdAyantIntervenu
34
+ this.dateIntervention = dateIntervention
35
+ }
36
+ }
37
+
38
+ export default Intervention
package/modeles/unite.ts CHANGED
@@ -1,42 +1,42 @@
1
- class Unite {
2
- id: number
3
- commissionScolaireId: number
4
- nom: string
5
- estActif: boolean
6
- numero: string
7
- numeroEcoleJeune: string
8
- numeroCentreAdulte: string
9
- numeroEcoleJeuneStr: string
10
- numeroCentreAdulteStr: string
11
- estJeune: boolean
12
- estAdulte: boolean
13
-
14
- // Constructeur de la classe
15
- constructor(
16
- id: number,
17
- commissionScolaireId: number,
18
- nom: string,
19
- estActif: boolean,
20
- numero: string,
21
- numeroEcoleJeune: string,
22
- numeroCentreAdulte: string,
23
- numeroEcoleJeuneStr: string,
24
- numeroCentreAdulteStr: string,
25
- estJeune: boolean,
26
- estAdulte: boolean,
27
- ) {
28
- this.id = id
29
- this.commissionScolaireId = commissionScolaireId
30
- this.nom = nom
31
- this.estActif = estActif
32
- this.numero = numero
33
- this.numeroEcoleJeune = numeroEcoleJeune
34
- this.numeroCentreAdulte = numeroCentreAdulte
35
- this.numeroEcoleJeuneStr = numeroEcoleJeuneStr
36
- this.numeroCentreAdulteStr = numeroCentreAdulteStr
37
- this.estJeune = estJeune
38
- this.estAdulte = estAdulte
39
- }
40
- }
41
-
42
- export default Unite
1
+ class Unite {
2
+ id: number
3
+ commissionScolaireId: number
4
+ nom: string
5
+ estActif: boolean
6
+ numero: string
7
+ numeroEcoleJeune: string
8
+ numeroCentreAdulte: string
9
+ numeroEcoleJeuneStr: string
10
+ numeroCentreAdulteStr: string
11
+ estJeune: boolean
12
+ estAdulte: boolean
13
+
14
+ // Constructeur de la classe
15
+ constructor(
16
+ id: number,
17
+ commissionScolaireId: number,
18
+ nom: string,
19
+ estActif: boolean,
20
+ numero: string,
21
+ numeroEcoleJeune: string,
22
+ numeroCentreAdulte: string,
23
+ numeroEcoleJeuneStr: string,
24
+ numeroCentreAdulteStr: string,
25
+ estJeune: boolean,
26
+ estAdulte: boolean,
27
+ ) {
28
+ this.id = id
29
+ this.commissionScolaireId = commissionScolaireId
30
+ this.nom = nom
31
+ this.estActif = estActif
32
+ this.numero = numero
33
+ this.numeroEcoleJeune = numeroEcoleJeune
34
+ this.numeroCentreAdulte = numeroCentreAdulte
35
+ this.numeroEcoleJeuneStr = numeroEcoleJeuneStr
36
+ this.numeroCentreAdulteStr = numeroCentreAdulteStr
37
+ this.estJeune = estJeune
38
+ this.estAdulte = estAdulte
39
+ }
40
+ }
41
+
42
+ export default Unite
@@ -1,33 +1,33 @@
1
- // modeleUtilisateur.ts
2
- class Utilisateur {
3
- commissionScolaireId: number
4
- courriel: string
5
- id: number
6
- identifiant: string
7
- langue: string
8
- matricule: string
9
- nom: string
10
- prenom: string
11
-
12
- constructor(
13
- commissionScolaireId: number,
14
- courriel: string,
15
- id: number,
16
- identifiant: string,
17
- langue: string,
18
- matricule: string,
19
- nom: string,
20
- prenom: string,
21
- ) {
22
- this.commissionScolaireId = commissionScolaireId
23
- this.courriel = courriel
24
- this.id = id
25
- this.identifiant = identifiant
26
- this.langue = langue
27
- this.matricule = matricule
28
- this.nom = nom
29
- this.prenom = prenom
30
- }
31
- }
32
-
33
- export default Utilisateur
1
+ // modeleUtilisateur.ts
2
+ class Utilisateur {
3
+ commissionScolaireId: number
4
+ courriel: string
5
+ id: number
6
+ identifiant: string
7
+ langue: string
8
+ matricule: string
9
+ nom: string
10
+ prenom: string
11
+
12
+ constructor(
13
+ commissionScolaireId: number,
14
+ courriel: string,
15
+ id: number,
16
+ identifiant: string,
17
+ langue: string,
18
+ matricule: string,
19
+ nom: string,
20
+ prenom: string,
21
+ ) {
22
+ this.commissionScolaireId = commissionScolaireId
23
+ this.courriel = courriel
24
+ this.id = id
25
+ this.identifiant = identifiant
26
+ this.langue = langue
27
+ this.matricule = matricule
28
+ this.nom = nom
29
+ this.prenom = prenom
30
+ }
31
+ }
32
+
33
+ export default Utilisateur
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",