@club-employes/utopia 4.438.0 → 4.440.0

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.
@@ -3,10 +3,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  type __VLS_Props = {
4
4
  column: ColumnType;
5
5
  modelValue: string | number;
6
+ /** Langue des libellés (bouton d'effacement) ; sans valeur : locale globale Utopia, puis 'fr'. */
7
+ language?: 'fr' | 'en';
6
8
  };
7
9
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
8
10
  "update:modelValue": (value: string) => any;
9
11
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
10
12
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
14
+ rootRef: HTMLDivElement;
15
+ }, HTMLDivElement>;
12
16
  export default _default;
@@ -510,6 +510,14 @@ export interface TableProps<T = Record<string, any>> {
510
510
  * @default undefined
511
511
  */
512
512
  defaultSortOrder?: 1 | -1;
513
+ /**
514
+ * Tri appliqué au montage : la flèche s'affiche sur la colonne et le premier `update:request-data`
515
+ * le contient. `field` = clé de tri émise par la Table (`sortField` de la colonne, sinon son champ
516
+ * de données ou son `columnKey`). Lu au montage seulement, comme `filters` : pour restaurer le tri
517
+ * au retour sur une page, passer le tri mémorisé. Ex. `[{ field: 'lastname', order: 1 }]`.
518
+ * @default undefined (aucun tri)
519
+ */
520
+ initialSort?: SortConfig[];
513
521
  multiSortMeta?: unknown[];
514
522
  sortMode?: 'single' | 'multiple';
515
523
  /**
@@ -572,7 +580,15 @@ export interface TableProps<T = Record<string, any>> {
572
580
  showGridlines?: boolean;
573
581
  stripedRows?: boolean;
574
582
  highlightOnSelect?: boolean;
583
+ /**
584
+ * Style inline du `<table>` natif (chaîne ou objet).
585
+ * Aucune largeur minimale n'est imposée : le tableau suit la largeur de son conteneur et ne défile
586
+ * horizontalement que si les largeurs de colonnes (`ColumnType.width` / `minWidth`) ou leur contenu
587
+ * l'exigent. Jusqu'en 4.438, `min-width: 50rem` était imposé à toutes les tables (ce qui faisait
588
+ * déborder les pages mobiles) : `table-style="min-width: 50rem"` redonne ce rendu.
589
+ */
575
590
  tableStyle?: string | object;
591
+ /** Classe(s) CSS ajoutée(s) au `<table>` natif. */
576
592
  tableClass?: string | object;
577
593
  /**
578
594
  * Fonction pour déterminer si une ligne peut être sélectionnée.
@@ -11,5 +11,7 @@ export interface UseTableSortOptions {
11
11
  * Permet d'appliquer le même ordre à plusieurs champs (ex. colonne "Nom" → ['firstName', 'lastName']).
12
12
  */
13
13
  resolveSortFields?: (columnField: string) => string[];
14
+ /** Tri de départ (prop `initialSort` de la Table), copié : la Table en garde la maîtrise ensuite. */
15
+ initialSort?: SortConfig[];
14
16
  }
15
17
  export declare function useTableSort(emit: (value: DataTableSortEvent) => void, options?: UseTableSortOptions): UseTableSortReturn;
@@ -310,6 +310,9 @@ declare const _default: {
310
310
  cancel: string;
311
311
  save: string;
312
312
  };
313
+ inputFilterCell: {
314
+ clearLabel: string;
315
+ };
313
316
  inputPhone: {
314
317
  selectCountry: string;
315
318
  notSelected: string;