@cosmicdrift/kumiko-headless 0.246.0 → 0.247.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-headless",
3
- "version": "0.246.0",
3
+ "version": "0.247.0",
4
4
  "description": "Headless UI logic for Kumiko — Dispatcher contract, Form-Controller, View-Model, Nav-Resolver. Plattform- und React-frei; jeder Renderer (renderer, renderer-web, renderer-native, …) komponiert darauf.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@cosmicdrift/kumiko-framework": "0.246.0",
39
+ "@cosmicdrift/kumiko-framework": "0.247.0",
40
40
  "temporal-polyfill": "^0.3.2",
41
41
  "zod": "^4.4.3"
42
42
  },
@@ -147,6 +147,7 @@ export function computeEditViewModel<
147
147
  ...(sectionSpec.parentParam !== undefined && { parentParam: sectionSpec.parentParam }),
148
148
  columns: sectionSpec.columns,
149
149
  ...(sectionSpec.pageSize !== undefined && { pageSize: sectionSpec.pageSize }),
150
+ ...(sectionSpec.defaultSort !== undefined && { defaultSort: sectionSpec.defaultSort }),
150
151
  ...(sectionSpec.rowClick !== undefined && { rowClick: sectionSpec.rowClick }),
151
152
  ...(sectionSpec.rowActions !== undefined && { rowActions: sectionSpec.rowActions }),
152
153
  };
@@ -5,6 +5,7 @@ import type {
5
5
  FieldRenderer,
6
6
  IconKey,
7
7
  ListColumnSpec,
8
+ ListSortSpec,
8
9
  PlatformComponent,
9
10
  RowAction,
10
11
  ScreenSlots,
@@ -290,6 +291,7 @@ export type EditRelatedListSectionViewModel = {
290
291
  readonly parentParam?: string;
291
292
  readonly columns: readonly ListColumnSpec[];
292
293
  readonly pageSize?: number;
294
+ readonly defaultSort?: ListSortSpec;
293
295
  readonly rowClick?: { readonly entity: string; readonly idColumn?: string };
294
296
  readonly rowActions?: readonly RowAction[];
295
297
  };