@club-employes/utopia 4.151.0 → 4.152.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/renderers/data/DropdownCell.d.ts +11 -1
- package/dist/components/organisms/Table/renderers/filters/DropdownFilterCell.d.ts +2 -1
- package/dist/components/organisms/Table/types.d.ts +5 -3
- package/dist/components/organisms/Table/utils/getColumnErrors.d.ts +1 -0
- package/dist/components/organisms/Table/utils/getValueByPath.d.ts +15 -0
- package/dist/icons-list.json +1 -1
- package/dist/index.js +12289 -12239
- package/dist/utopia.css +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Table } from './Table';
|
|
2
|
-
export type { TableProps, ColumnType, CellProps, CellEditorProps, CellContent, MatchMode, TableRequestData, SortConfig,
|
|
2
|
+
export type { TableProps, ColumnType, CellProps, CellEditorProps, CellContent, MatchMode, TableRequestData, SortConfig, ColumnOrder, ErrorType, ValidationValue, TableRowData, TextImageContentType, TagContentType, PriceContentType, DateContentType, DateRangeContentType, DropdownContentType, ProgressBarContentType, ActionsContentType, ActionContentType, ToggleContentType, } from './types';
|
|
3
3
|
export { CellContentType, CellFilterType } from './types';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { CellProps } from '../../types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
declare const _default: DefineComponent<CellProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
3
|
+
declare const _default: DefineComponent<CellProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
actionClicked: (payload: {
|
|
5
|
+
actionName: string;
|
|
6
|
+
data: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
}, string, PublicProps, Readonly<CellProps> & Readonly<{
|
|
9
|
+
onActionClicked?: ((payload: {
|
|
10
|
+
actionName: string;
|
|
11
|
+
data: any;
|
|
12
|
+
}) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4
14
|
export default _default;
|
|
@@ -3,10 +3,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
column: ColumnType;
|
|
5
5
|
modelValue: string | number | (string | number)[] | boolean | null | undefined;
|
|
6
|
+
filters?: Record<string, any>;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
9
|
"update:modelValue": (value: string | number | boolean | (string | number)[] | null | undefined) => any;
|
|
9
10
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
11
|
"onUpdate:modelValue"?: ((value: string | number | boolean | (string | number)[] | null | undefined) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {},
|
|
12
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
12
13
|
export default _default;
|
|
@@ -406,6 +406,8 @@ export interface TextImageContentType {
|
|
|
406
406
|
key: string;
|
|
407
407
|
alt?: string;
|
|
408
408
|
title?: string;
|
|
409
|
+
width?: string;
|
|
410
|
+
height?: string;
|
|
409
411
|
};
|
|
410
412
|
title: {
|
|
411
413
|
key?: string;
|
|
@@ -580,13 +582,13 @@ export interface ColumnOrder {
|
|
|
580
582
|
*/
|
|
581
583
|
export interface TableRequestData {
|
|
582
584
|
columnOrder: ColumnOrder[];
|
|
583
|
-
activatedColumns
|
|
585
|
+
activatedColumns?: string[];
|
|
584
586
|
pagination: {
|
|
585
587
|
currentPage: number;
|
|
586
588
|
pageSize: number;
|
|
587
589
|
totalPages: number;
|
|
588
590
|
};
|
|
589
|
-
totalRecords
|
|
591
|
+
totalRecords?: number;
|
|
590
592
|
sort: SortConfig[];
|
|
591
|
-
filters
|
|
593
|
+
filters?: Record<string, unknown>;
|
|
592
594
|
}
|
|
@@ -2,6 +2,7 @@ import { ColumnType, ErrorType, TableRowData } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Récupère toutes les erreurs pertinentes pour une colonne donnée.
|
|
4
4
|
* Pour les colonnes composites (DATE_RANGE, PROGRESS_BAR), inclut les erreurs des champs sous-jacents.
|
|
5
|
+
* Utilise getValueByPath pour les champs imbriqués.
|
|
5
6
|
*
|
|
6
7
|
* @param data - Les données de la ligne
|
|
7
8
|
* @param column - La configuration de la colonne
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalise un chemin pour utiliser la notation point.
|
|
3
|
+
* Ex: 'company["name"]' ou "company['name']" → 'company.name'
|
|
4
|
+
*/
|
|
5
|
+
export declare function normalizePathToDot(path: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Récupère une valeur dans un objet à partir d'un chemin (ex: 'category.name' ou 'company["name"]').
|
|
8
|
+
* Si le chemin ne contient pas '.', équivalent à obj[key].
|
|
9
|
+
*/
|
|
10
|
+
export declare function getValueByPath<T = unknown>(obj: Record<string, unknown> | null | undefined, path: string): T | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Définit une valeur dans un objet à un chemin imbriqué (ex: 'category.name' ou 'company["name"]').
|
|
13
|
+
* Crée les objets intermédiaires si nécessaire.
|
|
14
|
+
*/
|
|
15
|
+
export declare function setValueByPath(obj: Record<string, unknown>, path: string, value: unknown): void;
|
package/dist/icons-list.json
CHANGED