codevdesign 0.0.12 → 0.0.13

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.
@@ -142,13 +142,7 @@
142
142
  //import ModaleChoix from './csqc-table-modale-choix-colonnes.vue';
143
143
  //import axios from 'axios'
144
144
  import { useI18n } from 'vue-i18n'
145
-
146
- interface Colonne {
147
- title: string
148
- key: string // Correspond à la clé des objets dans `liste`
149
- align?: 'start' | 'center' | 'end'
150
- sortable?: boolean
151
- }
145
+ import Colonne from '../../modeles/composants/datatableColonne'
152
146
 
153
147
  // Props
154
148
  const props = defineProps({
package/index.ts CHANGED
@@ -15,6 +15,7 @@ import modeleUtilisateur from './modeles/utilisateur'
15
15
  import modeleUnite from './modeles/unite'
16
16
  import modeleIntervention from './modeles/intervention'
17
17
  import modeleSnackbar from './modeles/composants/snackbar'
18
+ import modeleDatatableColonne from './modeles/composants/datatableColonne'
18
19
  import csqcEn from './locales/en.json'
19
20
  import csqcFr from './locales/fr.json'
20
21
 
@@ -37,4 +38,5 @@ export {
37
38
  modeleUnite,
38
39
  modeleIntervention,
39
40
  modeleSnackbar,
41
+ modeleDatatableColonne,
40
42
  }
@@ -0,0 +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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",