origam 2.37.16 → 2.37.17
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.17] - 2026-10-28
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamDataTable` n'hérite plus d'une prop `item` requise (#1246, #1154)
|
|
24
|
+
|
|
25
|
+
`IDataTableProps` étendait `IDataTableRowProps`, qui déclare `item` comme prop requise. Résultat : la table elle-même réclamait une prop `item` qu'elle n'utilise pas, et Vue avertissait `Missing required prop: "item"` à chaque rendu.
|
|
26
|
+
|
|
27
|
+
- `IDataTableProps` étend maintenant `Omit<IDataTableRowProps, 'item'>`. `OrigamDataTableRow` garde son `item` requis, et `cellProps` reste typé sur la table.
|
|
28
|
+
- Le catalogue du playground perd la prop `item` sur `OrigamDataTable`.
|
|
29
|
+
- Vérifié : le TU `data-table-no-required-item-prop.spec.ts` échoue sur le parent (2 sur 2) et passe après le correctif ; TU DataTable et Table : 92/92 ; type-check exit 0 (PR #1269).
|
|
30
|
+
|
|
21
31
|
## [2.37.16] - 2026-10-28
|
|
22
32
|
|
|
23
33
|
### Fixed — `OrigamSelect`, `OrigamColorPickerField`, `OrigamDatePickerField` : plus de nom « Ouvrir » qui écrase un `<label for>` externe (#1251)
|
|
@@ -245,7 +245,6 @@ const props = defineProps({
|
|
|
245
245
|
tag: { type: String, required: false, default: "div" },
|
|
246
246
|
fontSize: { type: null, required: false },
|
|
247
247
|
fontWeight: { type: null, required: false },
|
|
248
|
-
item: { type: Object, required: true },
|
|
249
248
|
cellProps: { type: [Object, Function], required: false },
|
|
250
249
|
mobileBreakpoint: { type: null, required: false, default: "xs" },
|
|
251
250
|
expandOnClick: { type: Boolean, required: false },
|
|
@@ -12,7 +12,7 @@ import type { IDataTableProvideSort, IDataTableSortItem, IDataTableSortProps } f
|
|
|
12
12
|
import type { IDataTableRowProps } from './data-table-row.interface';
|
|
13
13
|
import type { IFiltersProps } from '../Commons/filters.interface';
|
|
14
14
|
import type { ITableProps } from '../Table/table.interface';
|
|
15
|
-
export interface IDataTableProps extends ITableProps, IDataTableRowProps, IDataTableExpandProps, IDataTableGroupProps, IDataTableHeaderProps, IDataTableItemsProps, IDataTableSelectProps, IDataTableSortProps, IDataTableHeadersProps, IDataTablePaginationProps, IFiltersProps, IDataTableFooterProps {
|
|
15
|
+
export interface IDataTableProps extends ITableProps, Omit<IDataTableRowProps, 'item'>, IDataTableExpandProps, IDataTableGroupProps, IDataTableHeaderProps, IDataTableItemsProps, IDataTableSelectProps, IDataTableSortProps, IDataTableHeadersProps, IDataTablePaginationProps, IFiltersProps, IDataTableFooterProps {
|
|
16
16
|
hideDefaultBody?: boolean;
|
|
17
17
|
hideDefaultFooter?: boolean;
|
|
18
18
|
hideDefaultHeader?: boolean;
|