codevdesign 1.0.3 → 1.0.5
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/csqcTable/csqcTable.vue +2 -1
- package/index.ts +72 -72
- package/modeles/composants/datatableColonne.ts +31 -14
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
<v-col>
|
|
7
7
|
<slot name="recherche"></slot>
|
|
8
8
|
<Recherche
|
|
9
|
+
v-bind="$attrs"
|
|
9
10
|
:afficher="rechercheAfficher"
|
|
10
11
|
:recherche-texte="rechercheTexte"
|
|
11
12
|
:chargement="chargementListe"
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
>
|
|
63
64
|
<v-data-table
|
|
64
65
|
ref="datatable"
|
|
65
|
-
|
|
66
|
+
v-bind="$attrs"
|
|
66
67
|
:headers="colonnes"
|
|
67
68
|
:item-key="itemKey"
|
|
68
69
|
:items="liste"
|
package/index.ts
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
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 csqcDate from './composants/csqcDate.vue'
|
|
12
|
-
import csqcTable from './composants/csqcTable/csqcTable.vue'
|
|
13
|
-
import csqcCodeBudgetaire from './composants/csqcCodeBudgetaireGenerique.vue'
|
|
14
|
-
import csqcChaise from './composants/csqcChaise/chaiseConteneur.vue'
|
|
15
|
-
import csqcAide from './composants/csqcAide.vue'
|
|
16
|
-
import csqcEntete from './composants/csqcEntete.vue'
|
|
17
|
-
import csqcTexteBilingue from './composants/csqcTexteBilingue.vue'
|
|
18
|
-
// @ts-expect-error TS7016
|
|
19
|
-
import csqcEditeurTexteRiche from './composants/csqcEditeurTexteRiche.vue'
|
|
20
|
-
import csqcImportCSV from './composants/csqcImportCSV.vue'
|
|
21
|
-
import csqcRechercheUtilisateur from './composants/csqcRechercheUtilisateur.vue'
|
|
22
|
-
import validateurs from './composants/validateurs'
|
|
23
|
-
|
|
24
|
-
// modèles
|
|
25
|
-
import NotificationGabaritDefaut from './modeles/notificationGabaritDefaut'
|
|
26
|
-
import modeleSnackbar from './modeles/composants/snackbar'
|
|
27
|
-
import modeleDatatableColonne from './modeles/composants/datatableColonne'
|
|
28
|
-
import apiReponse from './modeles/apiReponse'
|
|
29
|
-
import data from './modeles/data'
|
|
30
|
-
import response from './modeles/response'
|
|
31
|
-
|
|
32
|
-
// i18n
|
|
33
|
-
import csqcEn from './locales/en.json'
|
|
34
|
-
import csqcFr from './locales/fr.json'
|
|
35
|
-
|
|
36
|
-
// outils
|
|
37
|
-
import csqcRafraichisseurToken from './outils/rafraichisseurToken'
|
|
38
|
-
import csqcAppAxios from './outils/appAxios'
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
csqcFr,
|
|
42
|
-
csqcEn,
|
|
43
|
-
csqcAlerteErreur,
|
|
44
|
-
csqcDialogue,
|
|
45
|
-
csqcConfirmation,
|
|
46
|
-
csqcDate,
|
|
47
|
-
csqcOptionSwitch,
|
|
48
|
-
csqcRecherche,
|
|
49
|
-
csqcSnackbar,
|
|
50
|
-
csqcTable,
|
|
51
|
-
csqcTiroir,
|
|
52
|
-
csqcMenu,
|
|
53
|
-
csqcCodeBudgetaire,
|
|
54
|
-
csqcChaise,
|
|
55
|
-
pivFooter,
|
|
56
|
-
pivEntete,
|
|
57
|
-
csqcAide,
|
|
58
|
-
csqcEntete,
|
|
59
|
-
csqcTexteBilingue,
|
|
60
|
-
csqcEditeurTexteRiche,
|
|
61
|
-
validateurs,
|
|
62
|
-
csqcImportCSV,
|
|
63
|
-
csqcRechercheUtilisateur,
|
|
64
|
-
modeleSnackbar,
|
|
65
|
-
modeleDatatableColonne,
|
|
66
|
-
apiReponse,
|
|
67
|
-
data,
|
|
68
|
-
response,
|
|
69
|
-
NotificationGabaritDefaut,
|
|
70
|
-
csqcAppAxios,
|
|
71
|
-
csqcRafraichisseurToken
|
|
72
|
-
}
|
|
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 csqcDate from './composants/csqcDate.vue'
|
|
12
|
+
import csqcTable from './composants/csqcTable/csqcTable.vue'
|
|
13
|
+
import csqcCodeBudgetaire from './composants/csqcCodeBudgetaireGenerique.vue'
|
|
14
|
+
import csqcChaise from './composants/csqcChaise/chaiseConteneur.vue'
|
|
15
|
+
import csqcAide from './composants/csqcAide.vue'
|
|
16
|
+
import csqcEntete from './composants/csqcEntete.vue'
|
|
17
|
+
import csqcTexteBilingue from './composants/csqcTexteBilingue.vue'
|
|
18
|
+
// @ts-expect-error TS7016
|
|
19
|
+
import csqcEditeurTexteRiche from './composants/csqcEditeurTexteRiche.vue'
|
|
20
|
+
import csqcImportCSV from './composants/csqcImportCSV.vue'
|
|
21
|
+
import csqcRechercheUtilisateur from './composants/csqcRechercheUtilisateur.vue'
|
|
22
|
+
import validateurs from './composants/validateurs'
|
|
23
|
+
|
|
24
|
+
// modèles
|
|
25
|
+
import NotificationGabaritDefaut from './modeles/notificationGabaritDefaut'
|
|
26
|
+
import modeleSnackbar from './modeles/composants/snackbar'
|
|
27
|
+
import modeleDatatableColonne from './modeles/composants/datatableColonne'
|
|
28
|
+
import apiReponse from './modeles/apiReponse'
|
|
29
|
+
import data from './modeles/data'
|
|
30
|
+
import response from './modeles/response'
|
|
31
|
+
|
|
32
|
+
// i18n
|
|
33
|
+
import csqcEn from './locales/en.json'
|
|
34
|
+
import csqcFr from './locales/fr.json'
|
|
35
|
+
|
|
36
|
+
// outils
|
|
37
|
+
import csqcRafraichisseurToken from './outils/rafraichisseurToken'
|
|
38
|
+
import csqcAppAxios from './outils/appAxios'
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
csqcFr,
|
|
42
|
+
csqcEn,
|
|
43
|
+
csqcAlerteErreur,
|
|
44
|
+
csqcDialogue,
|
|
45
|
+
csqcConfirmation,
|
|
46
|
+
csqcDate,
|
|
47
|
+
csqcOptionSwitch,
|
|
48
|
+
csqcRecherche,
|
|
49
|
+
csqcSnackbar,
|
|
50
|
+
csqcTable,
|
|
51
|
+
csqcTiroir,
|
|
52
|
+
csqcMenu,
|
|
53
|
+
csqcCodeBudgetaire,
|
|
54
|
+
csqcChaise,
|
|
55
|
+
pivFooter,
|
|
56
|
+
pivEntete,
|
|
57
|
+
csqcAide,
|
|
58
|
+
csqcEntete,
|
|
59
|
+
csqcTexteBilingue,
|
|
60
|
+
csqcEditeurTexteRiche,
|
|
61
|
+
validateurs,
|
|
62
|
+
csqcImportCSV,
|
|
63
|
+
csqcRechercheUtilisateur,
|
|
64
|
+
modeleSnackbar,
|
|
65
|
+
modeleDatatableColonne as colonne,
|
|
66
|
+
apiReponse,
|
|
67
|
+
data,
|
|
68
|
+
response,
|
|
69
|
+
NotificationGabaritDefaut,
|
|
70
|
+
csqcAppAxios,
|
|
71
|
+
csqcRafraichisseurToken
|
|
72
|
+
}
|
|
@@ -1,14 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import type { DataTableCompareFunction, DataTableHeader, FilterFunction } from 'vuetify'
|
|
2
|
+
import { HeaderCellProps } from 'vuetify/lib/components/VDataTable/types.mjs';
|
|
3
|
+
import { SelectItemKey } from 'vuetify/lib/util/helpers.mjs';
|
|
4
|
+
|
|
5
|
+
class datatableColonne<T = any> implements DataTableHeader<T> {
|
|
6
|
+
key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | (string & {});
|
|
7
|
+
value?: SelectItemKey<T>;
|
|
8
|
+
title?: string;
|
|
9
|
+
fixed?: boolean | 'start' | 'end';
|
|
10
|
+
align?: 'start' | 'end' | 'center';
|
|
11
|
+
width?: number | string;
|
|
12
|
+
minWidth?: number | string;
|
|
13
|
+
maxWidth?: number | string;
|
|
14
|
+
nowrap?: boolean;
|
|
15
|
+
intent?: number;
|
|
16
|
+
headerProps?: Record<string, any>;
|
|
17
|
+
cellProps?: HeaderCellProps;
|
|
18
|
+
sortable?: boolean;
|
|
19
|
+
sort?: DataTableCompareFunction;
|
|
20
|
+
sortRaw?: DataTableCompareFunction;
|
|
21
|
+
filter?: FilterFunction;
|
|
22
|
+
children?: DataTableHeader<T>[];
|
|
23
|
+
|
|
24
|
+
constructor(title: string, key: string) {
|
|
25
|
+
this.title = title
|
|
26
|
+
this.key = key
|
|
27
|
+
this.align = key === 'action' ? 'end' : key === 'estActif' ? 'center' : 'start'
|
|
28
|
+
this.sortable = key !== 'action'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default datatableColonne
|