Migration from vue-editable-grid with a Compatibility Layer
Gives existing users of vue-editable-grid (https://github.com/eledwinn/vue-editable-grid, Vue 2) a path to WarGrid on Vue 3: a concept map, a vue-editable-grid source family in the F08 codemod, and an optional compatibility component that accepts vue-editable-grid props, events, methods and slots and drives the WarGrid Vue adapter (A02-F19) underneath. Applications switch the import first and then move to native War…
Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
The same 1,000-row demo rendered twice, once through the compatibility component with an unchanged vue-editable-grid template and once with native WarGrid, plus the codemod diff.
Expected behavior
Both grids show the same data, formatting, keyboard behaviour and events. The two-way formatter ({ value, reverse }) is split into a formatter and a parser. Ctrl+Shift+C copies with headers in both. The warnings panel lists each compat-only prop with its native replacement.
Planned API surface
<VueEditableGridCompat>@warlockcode/warui-vue/compatwargrid-codemod --from vue-editable-gridcolumnDefsrowDataKeygetRowId$rowStyle$cellStyleonlyBordercell-updatedrow-selectedmultiple-selectedlink-clickedcontext-menuAcceptance criteria
- Every documented vue-editable-grid prop, column option, event, method and slot is mapped, or listed as unsupported with a reason. (pending)
- Event payload shapes are preserved, including the cell-updated callbacks (preventDefault, markAsPending, confirm, markAsFailed, markAsSuccess), which map onto A14-F29. (pending)
- The quick filter syntax (`,` `&` `!` `=`) behaves the same through A10-F29, and yes/no text parsing through A24-F24. (pending)
- Column widths saved under the old `${id}_columns` localStorage key are imported once into WarGrid column state (A21-F02). (pending)
- Ctrl+Shift+C (Cmd+Shift+C on macOS) copies the selection with headers, as in the original grid. (pending)
- The codemod never writes files in dry-run mode and reports everything it cannot convert. (pending)
- Applications that do not import the compatibility layer do not ship it (tree-shaken). (pending)