origam 2.37.22 → 2.37.23

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/CHANGELOG.md CHANGED
@@ -18,6 +18,16 @@ This project follows [Semantic Versioning](https://semver.org).
18
18
 
19
19
  ## [Unreleased]
20
20
 
21
+ ## [2.37.23] - 2026-11-02
22
+
23
+ ### Fixed — `OrigamDataTable` : la prop `items` accepte les objets du consommateur (#1250)
24
+
25
+ `items` était typée `IDataTableItem[]`, c'est-à-dire la ligne interne normalisée. Passer ses propres objets (`[{ name: 'A' }]`, `IRow[]`) produisait donc une erreur TypeScript (TS2353 / TS2322).
26
+
27
+ - `IDataTableItemsProps.items` et `IDataTableHeaderProps.items` passent en `Array<any>`, comme `Commons/item.interface` (choix du propriétaire, plutôt qu'un composant générique). `itemValue` peut valoir `true`, si bien qu'un élément n'est pas forcément un objet.
28
+ - `IDataTableItem` reste le type de la ligne interne exposée aux slots et aux événements.
29
+ - Vérifié : sonde vue-tsc, 2 erreurs sur le parent et 0 après ; type-check DS à 0 ; TU DataTable et Table 92/92 (PR #1299). Aucun test de types permanent : le dépôt n'a pas d'infrastructure pour en écrire.
30
+
21
31
  ## [2.37.22] - 2026-11-01
22
32
 
23
33
  ### Changed — 5 sous-parties internes sortent des catalogues (#1287)
@@ -1,5 +1,4 @@
1
1
  import { ALIGN } from '../../enums/Commons/align.enum';
2
- import type { IDataTableItem } from './items.interface';
3
2
  import type { TDataTableCompareFunction, TDataTableHeaderCell } from '../../types/DataTable/data-table.type';
4
3
  import type { TFilterFunction } from '../../types/Commons/filters.type';
5
4
  import type { TAnyString, TSelectItemKey } from '../../types/Commons/commons.type';
@@ -15,7 +14,7 @@ import type { TAnyString, TSelectItemKey } from '../../types/Commons/commons.typ
15
14
  ********************************************************/
16
15
  export interface IDataTableHeaderProps {
17
16
  headers?: Array<IDataTableHeader>;
18
- items?: Array<IDataTableItem>;
17
+ items?: Array<any>;
19
18
  }
20
19
  export interface IDataTableHeader<T = any> {
21
20
  key?: 'data-table-group' | 'data-table-select' | 'data-table-expand' | TAnyString;
@@ -7,7 +7,7 @@ import type { TDataTableCell, TDataTableRow } from '../../types/DataTable/data-t
7
7
  import type { TIcon } from '../../types/Icon/icon.type';
8
8
  import type { TSelectItemKey } from '../../types/Commons/commons.type';
9
9
  export interface IDataTableItemsProps {
10
- items?: Array<IDataTableItem>;
10
+ items?: Array<any>;
11
11
  itemValue?: TSelectItemKey;
12
12
  itemSelectable?: TSelectItemKey;
13
13
  rowProps?: TDataTableRow<any>;
@@ -8,7 +8,7 @@ import type { IDataTableItem, IDataTableItemsProps } from '../../interfaces/Data
8
8
  * @param columns …
9
9
  * @returns …
10
10
  */
11
- export declare function transformDataTableItems(props: Omit<IDataTableItemsProps, 'items'>, items: Array<IDataTableItem> | undefined, columns: Array<IInternalDataTableHeader>): Array<IDataTableItem>;
11
+ export declare function transformDataTableItems(props: Omit<IDataTableItemsProps, 'items'>, items: Array<any> | undefined, columns: Array<IInternalDataTableHeader>): Array<IDataTableItem>;
12
12
  /**
13
13
  * Transform data table item.
14
14
  *
@@ -18,4 +18,4 @@ export declare function transformDataTableItems(props: Omit<IDataTableItemsProps
18
18
  * @param columns …
19
19
  * @returns …
20
20
  */
21
- export declare function transformDataTableItem(props: Omit<IDataTableItemsProps, 'items'>, item: IDataTableItem, index: number, columns: Array<IInternalDataTableHeader>): IDataTableItem;
21
+ export declare function transformDataTableItem(props: Omit<IDataTableItemsProps, 'items'>, item: any, index: number, columns: Array<IInternalDataTableHeader>): IDataTableItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "origam",
3
- "version": "2.37.22",
3
+ "version": "2.37.23",
4
4
  "type": "module",
5
5
  "description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
6
6
  "keywords": [