@club-employes/utopia 4.221.0 → 4.223.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.
- package/dist/components/organisms/Table/index.d.ts +1 -1
- package/dist/components/organisms/Table/types.d.ts +13 -7
- package/dist/components/organisms/index.d.ts +1 -1
- package/dist/composables/useTableSelection.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5047 -5038
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as Table } from './Table';
|
|
2
2
|
export { default as TableEmptyState } from './TableEmptyState';
|
|
3
|
-
export type { TableProps, ColumnType, CellProps, CellEditorProps, CellContent, MatchMode, TableRequestData, TableRequestSelection, SortConfig, ColumnOrder, ErrorType, ValidationValue, TableRowData, TextImageContentType, TagContentType, PriceContentType, DateContentType, DateRangeContentType, DropdownContentType, ProgressBarContentType, ActionsContentType, ActionContentType, ToggleContentType, TableEmptyStateProps, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType, TagOption, TableSelectAllScope, } from './types';
|
|
3
|
+
export type { TableProps, ColumnType, CellProps, CellEditorProps, CellContent, MatchMode, TableRequestData, TableRequestDataWithSelection, TableRequestQueryData, TableRequestSelection, SortConfig, ColumnOrder, ErrorType, ValidationValue, TableRowData, TextImageContentType, TagContentType, PriceContentType, DateContentType, DateRangeContentType, DropdownContentType, ProgressBarContentType, ActionsContentType, ActionContentType, ToggleContentType, TableEmptyStateProps, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType, TagOption, TableSelectAllScope, } from './types';
|
|
4
4
|
export { CellContentType, CellFilterType } from './types';
|
|
@@ -744,7 +744,8 @@ export interface ColumnOrder {
|
|
|
744
744
|
order: number;
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
747
|
-
* Sélection sérialisable pour l’API,
|
|
747
|
+
* Sélection sérialisable pour l’API, émise via **`@update:request-selection`** lorsque `doSelection` est actif
|
|
748
|
+
* (et fusionnée dans **`@select-all-request`** avec le contexte requête).
|
|
748
749
|
*
|
|
749
750
|
* - **Mode explicite** (`allSelected: false`) : la liste des lignes choisies côté UI est dans
|
|
750
751
|
* `selectedKeys` (valeurs du `dataKey` de la table, ex. `id`). Les objets complets restent dans
|
|
@@ -764,10 +765,8 @@ export interface TableRequestSelection {
|
|
|
764
765
|
selectedKeys: (string | number)[];
|
|
765
766
|
}
|
|
766
767
|
/**
|
|
767
|
-
*
|
|
768
|
-
*
|
|
769
|
-
* Inclut désormais **`selection`** lorsque `doSelection` est activé (sinon `undefined`).
|
|
770
|
-
* Le filtre global PrimeVue est exposé dans `globalFilter` quand présent.
|
|
768
|
+
* État du tableau pour la **requête** : pagination, tri, filtres, colonnes.
|
|
769
|
+
* Émis tel quel par **`@update:request-data`** (sans champ `selection` — utiliser **`@update:request-selection`**).
|
|
771
770
|
*/
|
|
772
771
|
export interface TableRequestData {
|
|
773
772
|
columnOrder: ColumnOrder[];
|
|
@@ -780,9 +779,16 @@ export interface TableRequestData {
|
|
|
780
779
|
totalRecords?: number;
|
|
781
780
|
sort: SortConfig[];
|
|
782
781
|
filters?: Record<string, unknown>;
|
|
783
|
-
/** Filtre global (clé `global` des meta filtres PrimeVue), si actif. */
|
|
784
782
|
globalFilter?: unknown;
|
|
785
|
-
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* @deprecated Utiliser {@link TableRequestData} — nom historique, identique.
|
|
786
|
+
*/
|
|
787
|
+
export type TableRequestQueryData = TableRequestData;
|
|
788
|
+
/**
|
|
789
|
+
* Requête + **`selection`** : payload de **`@select-all-request`** (contexte + sélection à l’instant T).
|
|
790
|
+
*/
|
|
791
|
+
export interface TableRequestDataWithSelection extends TableRequestData {
|
|
786
792
|
selection?: TableRequestSelection;
|
|
787
793
|
}
|
|
788
794
|
export interface TableEmptyStateProps {
|
|
@@ -6,7 +6,7 @@ export { FilterPrice } from './FilterPrice';
|
|
|
6
6
|
export { PageNavigation } from './PageNavigation';
|
|
7
7
|
export { MyEditor, HtmlPreview, renderProseMirrorToHtml, type MyEditorProps } from './MyEditor';
|
|
8
8
|
export { TableEmptyState, Table } from './Table';
|
|
9
|
-
export type { TableProps, TableRequestData, TableRequestSelection, TableRowData, TableEmptyStateProps, ActionContentType, ActionsContentType, CellContentType, CellEditorProps, CellFilterType, CellProps, ColumnOrder, ColumnType, DateContentType, DateRangeContentType, DropdownContentType, ErrorType, MatchMode, PriceContentType, ProgressBarContentType, SortConfig, TagContentType, TagOption, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType, TextImageContentType, ToggleContentType, TableSelectAllScope, } from './Table';
|
|
9
|
+
export type { TableProps, TableRequestData, TableRequestDataWithSelection, TableRequestQueryData, TableRequestSelection, TableRowData, TableEmptyStateProps, ActionContentType, ActionsContentType, CellContentType, CellEditorProps, CellFilterType, CellProps, ColumnOrder, ColumnType, DateContentType, DateRangeContentType, DropdownContentType, ErrorType, MatchMode, PriceContentType, ProgressBarContentType, SortConfig, TagContentType, TagOption, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType, TextImageContentType, ToggleContentType, TableSelectAllScope, } from './Table';
|
|
10
10
|
export { DropFile } from './DropFile';
|
|
11
11
|
export type { DropFileProps, DropFileVariant, DropFileErrorCode, DropFileFileData, DropFileExistingFile, DropFileDropEvent, DropFileErrorEvent } from './DropFile';
|
|
12
12
|
export { FilterGroup } from './FilterGroup';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import { TableRequestData, TableSelectAllScope } from '../components/organisms/Table/types';
|
|
2
|
+
import { TableRequestData, TableRequestDataWithSelection, TableSelectAllScope } from '../components/organisms/Table/types';
|
|
3
3
|
export type SelectionMode = 'single' | 'multiple';
|
|
4
4
|
export type { TableSelectAllScope } from '../components/organisms/Table/types';
|
|
5
5
|
export interface UseTableSelectionOptions {
|
|
@@ -20,7 +20,7 @@ export interface UseTableSelectionCallbacks {
|
|
|
20
20
|
updateSelection: (value: any[] | any) => void;
|
|
21
21
|
updateAllSelected?: (value: boolean) => void;
|
|
22
22
|
updateExcludedKeys?: (value: (string | number)[]) => void;
|
|
23
|
-
selectAllRequest?: (payload:
|
|
23
|
+
selectAllRequest?: (payload: TableRequestDataWithSelection) => void;
|
|
24
24
|
}
|
|
25
25
|
export interface UseTableSelectionReturn {
|
|
26
26
|
localSelection: ComputedRef<any[] | any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type { PageNavigationProps } from './components/organisms/PageNavigation/
|
|
|
73
73
|
export type { ProductCardProps } from './components/organisms/ProductCard/types';
|
|
74
74
|
export type { ProductSummaryProps, ProductSummaryTitles, ProductSummaryPrice, ProductSummaryAmount, ProductSummaryQuantity, ProductSummarySubvention, ProductSummaryButton, ProductSummaryTips, ProductSummaryValidity, ProductSummaryAdditionalInfo } from './components/organisms/ProductSummary/types';
|
|
75
75
|
export { CellContentType, CellFilterType } from './components/organisms/Table';
|
|
76
|
-
export type { CellContent, CellProps, ColumnOrder, ColumnType, MatchMode, SortConfig, TableProps, TableRequestData, TableRequestSelection, TableEmptyStateProps, TableSelectAllScope, TableSelectionValue, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType } from './components/organisms/Table/types';
|
|
76
|
+
export type { CellContent, CellProps, ColumnOrder, ColumnType, MatchMode, SortConfig, TableProps, TableRequestData, TableRequestDataWithSelection, TableRequestQueryData, TableRequestSelection, TableEmptyStateProps, TableSelectAllScope, TableSelectionValue, FilterContent, TextFilterContentType, SelectFilterContentType, DateFilterContentType, DateRangeFilterContentType, RangeFilterContentType, HourFilterContentType } from './components/organisms/Table/types';
|
|
77
77
|
export type { TransactionProps } from './components/organisms/Transaction/types';
|
|
78
78
|
export type { CarousselProps } from './components/organisms/Caroussel/types';
|
|
79
79
|
export type { MetricCardProps, MetricCardGroupProps } from './components/organisms';
|