fix: fixing issue with columns with dots not rendering properly in grid view

This commit is contained in:
Kacper Kula 2025-04-02 16:46:47 +01:00
parent ed337f2232
commit b2ff3d5985
5 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,11 @@
# 0.31.0 (2025-04-02)
- feat: added text rendering for links, images and checkboxes (for MARKDOWN renderer)
- fix: fixed issue with rendering numbers
- fix: fixed how grid renders columns - now they automatically match content and don't truncate the text
- fix: grid resizing now works better when switching tabs, resizing obsidian, etc.
- fix: columns with dots in the name render properly in grid view
- chore: now external plugins can use cellRenderer from the main plugin
# 0.31.0 (2025-03-31)
- feat: TEMPLATE renderer can now use checkboxes, links and images like other views.
# 0.30.1 (2025-03-27)

View file

@ -1,7 +1,7 @@
{
"id": "sqlseal",
"name": "SQLSeal",
"version": "0.31.0",
"version": "0.32.0",
"minAppVersion": "0.15.0",
"description": "Use SQL in your notes to query your vault files and CSV content.",
"author": "hypersphere",

View file

@ -1,6 +1,6 @@
{
"name": "sqlseal",
"version": "0.31.0",
"version": "0.32.0",
"description": "A plugin for Obsidian that allows you to run SQL queries on your notes.",
"main": "main.js",
"scripts": {

View file

@ -134,7 +134,10 @@ class GridRendererCommunicator {
if (!this.gridApi) {
throw new Error('Grid has not been initiated')
}
this.gridApi.setGridOption('columnDefs', columns.map((c: any) => ({ field: c })))
this.gridApi.setGridOption('columnDefs', columns.map((c: any) => ({
headerName: c,
valueGetter: (params) => params.data[c]
})))
this.gridApi.setGridOption('rowData', data)
this.gridApi.setGridOption('loading', false)
}

View file

@ -57,5 +57,6 @@
"0.29.0": "0.15.0",
"0.30.0": "0.15.0",
"0.30.1": "0.15.0",
"0.31.0": "0.15.0"
"0.31.0": "0.15.0",
"0.32.0": "0.15.0"
}