Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 31 Jul 17:37
· 420 commits to main since this release
c546333

Minor Changes

  • 394b6c3 Thanks @Psvensso! - Column autosizing: double-click the resize divider, an Autosize menu item, meta.autoSize, and an exported autosizeColumn helper.

  • d0c6e0f Thanks @Psvensso! - Cell selection: cellSelection: "single" gives the body a cell cursor moved
    with the arrow keys, "range" adds a rectangle selected by dragging, Shift+click
    or Shift+arrows. Ctrl+C copies the block as tab-separated text, so a paste lands
    in Excel's cells, and right-clicking it offers an Excel-compatible CSV export
    with an optional header row.

    The state is ui.state.focusedCell and ui.state.cellRange, both held as
    { rowId, columnId } pairs. On, the grid reports role="grid" with gridcell
    children and the body becomes one tab stop: controls inside body cells take
    tabindex="-1", reached with Enter or F2 instead. useCellControlTabIndex()
    does the same for a custom cell's controls.

    The generated lanes are selectable and navigable but never exported. Space ticks
    the row from any of its cells, which is what the checkbox's lost tab stop is
    replaced with.

  • d399522 Thanks @Psvensso! - Add TMDataGrid.Search, a debounced quick-search input over the global filter, plus a canSearch capability.

  • 2a50690 Thanks @Psvensso! - Add buildGridCellMatrix and exportGridToCsv for exporting the whole filtered grid, all pages, to Excel CSV.

  • 8f51c2a Thanks @Psvensso! - Add onReachEnd on TMDataGrid.Table for infinite scroll, with a demo page.

  • c876388 Thanks @Psvensso! - Add a labels option: every string in the grid can be overridden, merged over the English defaults (TMDATAGRID_LABELS_EN).

  • 1072980 Thanks @Psvensso! - Add TMDataGrid.LoadingIndicator, a toolbar spinner for refetches that keep rows on screen.

  • f9809e5 Thanks @Psvensso! - Shift+click adds a column to the sort; sorted headers show their priority while more than one column sorts.

  • 6503e7d Thanks @Psvensso! - Render a sticky summary row from column footer definitions, with an aggregateColumn helper over the filtered rows.

  • df00c06 Thanks @Psvensso! - Ship a complete Swedish dictionary as TMDATAGRID_LABELS_SV.

  • 9a47802 Thanks @Psvensso! - Column types boolean, date, select and multiSelect, with typed filter operators and value controls; meta.options + resolveColumnOptions. TMDataGridFilterValue.value widens to string | ReadonlyArray<string>.

Patch Changes

  • 883579d Thanks @Psvensso! - Right-clicking a column header opens the same menu as the ⋮ button, at the
    pointer. Headers without a menu — the checkbox and details lanes — keep the
    browser's own.