@affino/datagrid-vue-app 0.1.64 → 0.4.1

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/README.md CHANGED
@@ -7,11 +7,11 @@
7
7
  Declarative Vue component layer for Affino DataGrid.
8
8
 
9
9
  `@affino/datagrid-vue-app` is the app-facing package.
10
- It depends on [`@affino/datagrid-vue`](https://github.com/affinio/affinio/tree/main/packages/datagrid-vue#readme), which remains the adapter and headless foundation between Vue and the grid engine.
10
+ It depends on [`@affino/datagrid-vue`](https://github.com/affinio/datagrid/tree/main/packages/datagrid-vue#readme), which remains the adapter and headless foundation between Vue and the grid engine.
11
11
 
12
12
  Boundary doc:
13
13
 
14
- - [datagrid-vue-app-community-vs-enterprise.md](https://github.com/affinio/affinio/blob/main/docs/datagrid-vue-app-community-vs-enterprise.md)
14
+ - [datagrid-vue-app-community-vs-enterprise.md](https://github.com/affinio/datagrid/blob/main/docs/datagrid-vue-app-community-vs-enterprise.md)
15
15
 
16
16
  Public export:
17
17
 
@@ -945,11 +945,11 @@ Current gantt capabilities:
945
945
 
946
946
  Reference:
947
947
 
948
- - [datagrid-gantt.md](https://github.com/affinio/affinio/blob/main/docs/datagrid-gantt.md)
948
+ - [datagrid-gantt.md](https://github.com/affinio/datagrid/blob/main/docs/datagrid-gantt.md)
949
949
 
950
950
  ## Table Chrome Engine
951
951
 
952
- The default table renderer uses [`@affino/datagrid-chrome`](https://github.com/affinio/affinio/tree/main/packages/datagrid-chrome#readme) for shared headless table chrome geometry.
952
+ The default table renderer uses [`@affino/datagrid-chrome`](https://github.com/affinio/datagrid/tree/main/packages/datagrid-chrome#readme) for shared headless table chrome geometry.
953
953
 
954
954
  That engine derives:
955
955
 
@@ -1269,6 +1269,7 @@ Columns can provide a `cellRenderer` callback that returns Vue content for the d
1269
1269
  If a custom cell also needs keyboard-accessible interaction without breaking the grid-owned focus model, declare `cellInteraction` on the column and use `context.interactive` inside the renderer.
1270
1270
  For grouped rows, prefer `groupCellRenderer` so you receive structured group metadata instead of reverse-engineering the formatted disclosure label.
1271
1271
  If an authored renderer throws, the stage preserves the cell wrapper and falls back to the resolved `displayValue` for that cell.
1272
+ The full lifecycle, remount, cleanup, focus, async, and performance contract is documented in [`docs/datagrid-renderer-lifecycle.md`](../../docs/datagrid-renderer-lifecycle.md).
1272
1273
 
1273
1274
  ```vue
1274
1275
  <script setup lang="ts">
@@ -1525,7 +1526,7 @@ Controlled consumers can still manage quick filter directly through the same `fi
1525
1526
  />
1526
1527
  ```
1527
1528
 
1528
- The app facade remains `filterModel`-first. `quick-filter` only drives the existing filter snapshot, so quick filter stays serializable and aligned with the core projection/filter pipeline. See [DataGrid Quick Filter](https://github.com/affinio/affinio/blob/main/docs/datagrid-quick-filter.md).
1529
+ The app facade remains `filterModel`-first. `quick-filter` only drives the existing filter snapshot, so quick filter stays serializable and aligned with the core projection/filter pipeline. See [DataGrid Quick Filter](https://github.com/affinio/datagrid/blob/main/docs/datagrid-quick-filter.md).
1529
1530
 
1530
1531
  Controlled state:
1531
1532
 
@@ -1594,7 +1595,7 @@ const rowSelectionState = ref({
1594
1595
  </template>
1595
1596
  ```
1596
1597
 
1597
- The legacy `row-select` event still exists, but `rowSelectionState` is the stable controlled API when the page wants to bind selected row ids without diffing unified-state updates.
1598
+ `rowSelectionState` is the controlled API when the page wants to bind selected row ids without diffing unified-state updates.
1598
1599
 
1599
1600
  For server-backed row models, the header checkbox selects the full current row projection without materializing every row id:
1600
1601
 
@@ -1732,6 +1733,7 @@ Notes:
1732
1733
  - Multiple flex columns share leftover available stage width by their flex weight.
1733
1734
  - If there is no free space, the column falls back to its base width.
1734
1735
  - Pinned and unpinned columns participate in the same effective width calculation.
1736
+ - `columnGroup` can be a string id, `{ id, label }`, or a nested path. The stage renders group headers across left-pinned, center, and right-pinned panes; visibility, resize, reorder, and pinning recalculate group spans from the current visible column snapshot.
1735
1737
 
1736
1738
  Unified column-state object:
1737
1739
 
@@ -1812,7 +1814,6 @@ The component emits:
1812
1814
  - `cell-change`
1813
1815
  - `selection-change`
1814
1816
  - `row-selection-change`
1815
- - `row-select` (legacy alias; prefer `row-selection-change` for typed row-selection snapshots)
1816
1817
  - `update:column-state`
1817
1818
  - `update:column-order`
1818
1819
  - `update:hidden-column-keys`
@@ -1905,6 +1906,7 @@ Row drag-and-drop is declarative and opt-in.
1905
1906
  - `rowReorder: false` keeps the row index non-draggable
1906
1907
  - the feature only applies when the grid is using a mutable rows API and `showRowIndex` is enabled
1907
1908
  - placeholder rows, group rows, and pinned rows are not draggable
1909
+ - rows with `state.pinned: 'top' | 'bottom'` render outside the scrollable body; body virtualization and row drag only operate on unpinned rows
1908
1910
 
1909
1911
  ```vue
1910
1912
  <DataGrid
@@ -683,7 +683,6 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
683
683
  "cell-edit": (_payload: DataGridCellEditEvent<Record<string, unknown>>) => true;
684
684
  "selection-change": (_payload: DataGridApiSelectionChangedEvent) => true;
685
685
  "row-selection-change": (_payload: DataGridApiRowSelectionChangedEvent) => true;
686
- "row-select": (_payload: DataGridRowSelectionSnapshot | null) => true;
687
686
  "update:rowSelectionState": (_payload: DataGridRowSelectionSnapshot | null) => true;
688
687
  "update:columnState": (_payload: DataGridUnifiedColumnState | null) => true;
689
688
  "update:columnOrder": (_payload: readonly string[] | null) => true;
@@ -988,7 +987,6 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
988
987
  "onSelection-change"?: ((_payload: DataGridApiSelectionChangedEvent) => any) | undefined;
989
988
  "onRow-selection-change"?: ((_payload: DataGridApiRowSelectionChangedEvent) => any) | undefined;
990
989
  "onCell-edit"?: ((_payload: DataGridCellEditEvent<Record<string, unknown>>) => any) | undefined;
991
- "onRow-select"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
992
990
  "onUpdate:rowSelectionState"?: ((_payload: DataGridRowSelectionSnapshot | null) => any) | undefined;
993
991
  "onUpdate:columnState"?: ((_payload: DataGridUnifiedColumnState | null) => any) | undefined;
994
992
  "onUpdate:columnOrder"?: ((_payload: readonly string[] | null) => any) | undefined;
@@ -1029,6 +1027,7 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
1029
1027
  readonly virtualization: DataGridVirtualizationProp | undefined;
1030
1028
  readonly pagination: DataGridPaginationProp | undefined;
1031
1029
  readonly rowModel: DataGridRowModel<unknown> | undefined;
1030
+ readonly rangeMove: boolean;
1032
1031
  readonly aggregations: DataGridAggregationsProp | undefined;
1033
1032
  readonly quickFilter: DataGridQuickFilterProp | undefined;
1034
1033
  readonly reportFillWarning: ((message: string) => void) | undefined;
@@ -1049,7 +1048,6 @@ declare const DataGridRuntimeComponent: import("vue").DefineComponent<{
1049
1048
  readonly maxRows: number | undefined;
1050
1049
  readonly placeholderRows: DataGridPlaceholderRowsProp<Record<string, unknown>> | undefined;
1051
1050
  readonly fillHandle: boolean;
1052
- readonly rangeMove: boolean;
1053
1051
  readonly readSelectionCell: DataGridSelectionCellReader<unknown> | undefined;
1054
1052
  readonly rowReorder: DataGridRowReorderProp | undefined;
1055
1053
  readonly viewMode: DataGridAppViewMode | undefined;