codevdesign 1.0.2 → 1.0.4

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.
@@ -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
- color="green"
66
+ v-bind="$attrs"
66
67
  :headers="colonnes"
67
68
  :item-key="itemKey"
68
69
  :items="liste"
@@ -1,14 +1,31 @@
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
+ 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
@@ -111,7 +111,8 @@ class RafraichisseurToken {
111
111
  // Pour éviter les cross référence, on créé un iframe qui appel portail et force la MAJ du jeton ou l'invalidation du jeton, si jamais l'utilisateur n'est plus connecté
112
112
  // ajax vers le refresh
113
113
  let iframe = document.createElement('iframe')
114
- iframe.src = `${this.appStore.appModele!.urlPortailRafraichissement}?urlRetour=${encodeURI(window.localStorage.href)}`
114
+ const url = this.getRefreshUrl()
115
+ iframe.src = `${url}?urlRetour=${encodeURI(window.localStorage.href)}`
115
116
  iframe.id = 'idRafrToken'
116
117
  iframe.style.display = 'none'
117
118
  document.body.appendChild(iframe)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",