@club-employes/utopia 4.439.0 → 4.441.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.
@@ -7,4 +7,6 @@ export interface MfePageProps {
7
7
  shyHeader?: ShyHeaderMode;
8
8
  maxWidth?: string;
9
9
  footerVariant?: FooterVariant;
10
+ /** Transmis au PageHeader : titre et actions restent côte à côte sur mobile. @default false */
11
+ inlineActions?: boolean;
10
12
  }
@@ -12,6 +12,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: DefineComponent<PageHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {
13
13
  title: string;
14
14
  intro: string;
15
+ inlineActions: boolean;
15
16
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
16
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
18
  export default _default;
@@ -1,4 +1,10 @@
1
1
  export interface PageHeaderProps {
2
2
  title: string;
3
3
  intro?: string;
4
+ /**
5
+ * Garde titre et actions côte à côte sous 1024 px (titre et sous-titre à gauche, actions collées à
6
+ * droite) au lieu d'empiler les actions centrées sous le titre. Pour des actions compactes (boutons
7
+ * icône, compteur + export). @default false
8
+ */
9
+ inlineActions?: boolean;
4
10
  }
@@ -10,5 +10,8 @@ declare const _default: DefineComponent<TabsProps, {}, {}, {}, {}, ComponentOpti
10
10
  ariaLabel: string;
11
11
  modelValue: string;
12
12
  fullWidth: boolean;
13
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ mobileLayout: "stack" | "scroll";
14
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
15
+ scrollerRef: HTMLDivElement;
16
+ }, HTMLDivElement>;
14
17
  export default _default;
@@ -2,6 +2,11 @@ import { IconSize } from '../../atoms/Icon';
2
2
  export interface TabsProps {
3
3
  modelValue: string;
4
4
  fullWidth?: boolean;
5
+ /**
6
+ * Rendu sous 768 px : `'stack'` empile les onglets (historique), `'scroll'` les garde sur une ligne
7
+ * avec défilement horizontal (l'onglet actif est ramené dans la vue). @default 'stack'
8
+ */
9
+ mobileLayout?: 'stack' | 'scroll';
5
10
  ariaLabel?: string;
6
11
  isDisabled?: boolean;
7
12
  tabs: TabProps[];
@@ -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
  /**
@@ -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;