Add Table format to Cell data view sidebar

Adds a new "Table" format option to the Cell data view widget that
displays the selected row as a vertical list with column names above
values, inspired by TablePlus.

Features:
- Shows all columns from the selected row in grid display order
- Inline editing support for regular values (double-click to edit)
- JSON values open Edit Cell modal on double-click
- Open-in-new button for JSON values to view in JSON tab
This commit is contained in:
David Pivoňka
2025-12-08 13:37:55 +01:00
parent 89121a2608
commit 9099ce42b9
3 changed files with 314 additions and 0 deletions

View File

@@ -14,6 +14,12 @@
component: TextCellViewNoWrap,
single: false,
},
{
type: 'table',
title: 'Table',
component: TableCellView,
single: false,
},
{
type: 'json',
title: 'Json',
@@ -92,6 +98,7 @@
import JsonRowView from '../celldata/JsonRowView.svelte';
import MapCellView from '../celldata/MapCellView.svelte';
import PictureCellView from '../celldata/PictureCellView.svelte';
import TableCellView from '../celldata/TableCellView.svelte';
import TextCellViewNoWrap from '../celldata/TextCellViewNoWrap.svelte';
import TextCellViewWrap from '../celldata/TextCellViewWrap.svelte';
import ErrorInfo from '../elements/ErrorInfo.svelte';