Skip to content

Releases: Jielga/react

@jielga/tmdatagrid@2.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 07:58
97309c2

Minor Changes

  • #179 2e99ee4 Thanks @Psvensso! - The six built-in editors take inputProps, passed to their Mantine control, so a meta.edit.editor can extend a built-in (a leftSection, a unit, comboboxProps) instead of copying it.
    Their props types are exported: TMDataGridStringEditorProps, TMDataGridNumberEditorProps, TMDataGridBooleanEditorProps, TMDataGridDateEditorProps, TMDataGridSelectEditorProps, TMDataGridMultiSelectEditorProps.

@jielga/tmdatagrid-xlsx@2.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 07:58
97309c2
Merge pull request #180 from Jielga/changeset-release/main

chore: version packages

@jielga/tmdatagrid@2.5.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 06:19
f1f1811

Minor Changes

  • #177 ba4198e Thanks @Psvensso! - - New meta.edit.mapCommitValue: maps each field the user changed once, as its row commits, instead of on every keystroke like mapValue. It runs before the submit validators and writes the result back into the form, so the draft store, changes and onCommit hold the mapped value. Use it to trim a string the user was free to type spaces into.
    • New types TMDataGridEditCommitMap and TMDataGridEditCommitMapArgs.

@jielga/tmdatagrid-xlsx@2.5.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 06:19
f1f1811
Merge pull request #178 from Jielga/changeset-release/main

chore: version packages

@jielga/tmdatagrid@2.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:35
0e9b73d

Minor Changes

  • #175 1c440f8 Thanks @Psvensso! - - Filter pills and group rows write values in the configured language: a boolean as labels.booleanTrue / booleanFalse instead of true / false, and a value with an option as the option's label instead of its value.

    • A group row of a Date column shows the date instead of an English timestamp, and a group of null values shows labels.blankGroupValue instead of "null".
    • formatFilterLabel takes options and labels, and formatGroupValue takes a third argument { type, options, labels }, for the same text.
    • The header filter cell of a column that cannot filter, the generated lanes included, is no longer named "Filter on …".
  • #174 3fcdbf3 Thanks @Psvensso! - - createTMDataGridUrlState({ key, columns, slices }) builds typed deep links from the grid's columns: a filter, operator, value or sort the columns do not offer is a type error.
    It gives urlKey, the link as searchParams, search or payload, a route validateSearch, and persist(storage) for a router that keeps objects in its search, such as TanStack Router.

    • Columns from createTMDataGridColumnHelper carry their id, meta.type, value type, operators and filter, sort and URL switches in their type, as TMDataGridColumnInfo. Runtime column objects are unchanged.

@jielga/tmdatagrid-xlsx@2.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 10:35
0e9b73d
Merge pull request #176 from Jielga/changeset-release/main

chore: version packages

@jielga/tmdatagrid@2.3.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 10:26
b635a19

Minor Changes

  • #172 f0cc025 Thanks @Psvensso! - - A body row takes the hover tint only when the row itself answers a click or a right-click: selectionMode: "row" or a highlight mode, onRowClick, or renderRowContextMenu. Group rows never do. Before, every row took it.

    • highlightOnHover on the Table forces the tint on or off for every row.
    • Rows carry data-highlight-on-hover="true" while the tint applies.
  • #169 1aa083f Thanks @Psvensso! - - persist.urlKey keeps selected data slices in a URL search param, written with history.replaceState.

    • persist.urlStorage replaces the default URL access, for routers that own the URL.
    • meta.filter.url: false keeps a column's filter out of the link.
    • A global filter cleared over an initialState.globalFilter is persisted as cleared; before, a reload came back on the initial value.
    • Persistence writes are debounced across re-renders, as intended; before, a re-render wrote at once.

Patch Changes

  • #173 00f8e2e Thanks @Psvensso! - - The details panel no longer pads its content. Content that should line up with the cell text pads itself with var(--dg-padding).

  • #170 02b1dec Thanks @Psvensso! - The pinned-lane edge band, the filter pills and the match highlight get their colours back in the built stylesheet.
    light-dark() was lowered by the library build into an invalid declaration, so every dev server showed them and dist/styles.css did not.

@jielga/tmdatagrid@2.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 08:27
8ae33ed

Minor Changes

  • #165 a282ad9 Thanks @Psvensso! - - meta.colSpan: a column's cell covers the columns to its right, as one cell. A number, or a function of { row, table } per row.

    • TMDataGridColSpanArgs is exported.
  • #167 749995f Thanks @Psvensso! - - TMDataGridFilterFn type, tmDataGridFilterFn and matchesFilter are exported: a column's own filterFn receives the { operator, value } envelope and can delegate to the built-in matcher.

    • A column with no minSize now has the documented floor of 80 for resizing and pinned widths as well as for its fluid track; TanStack's 20 applied before. Pass defaultColumn: { minSize } to change it.
    • The empty-state message and renderEmptyState's hasActiveFilters now use the same rule as the pills: a half-typed filter no longer counts as active, so an empty grid with the filter panel just opened shows noRows, not noResults.

@jielga/tmdatagrid-xlsx@2.3.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 10:26
b635a19
Merge pull request #171 from Jielga/changeset-release/main

chore: version packages

@jielga/tmdatagrid-xlsx@2.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 08:27
8ae33ed
Merge pull request #166 from Jielga/changeset-release/main

chore: version packages