Repository navigation
Releases: Jielga/react
Release list
@jielga/tmdatagrid@2.6.0
Minor Changes
- #179
2e99ee4Thanks @Psvensso! - The six built-in editors takeinputProps, passed to their Mantine control, so ameta.edit.editorcan extend a built-in (aleftSection, a unit,comboboxProps) instead of copying it.
Their props types are exported:TMDataGridStringEditorProps,TMDataGridNumberEditorProps,TMDataGridBooleanEditorProps,TMDataGridDateEditorProps,TMDataGridSelectEditorProps,TMDataGridMultiSelectEditorProps.
@jielga/tmdatagrid-xlsx@2.6.0
Merge pull request #180 from Jielga/changeset-release/main chore: version packages
@jielga/tmdatagrid@2.5.0
Minor Changes
- #177
ba4198eThanks @Psvensso! - - Newmeta.edit.mapCommitValue: maps each field the user changed once, as its row commits, instead of on every keystroke likemapValue. It runs before the submit validators and writes the result back into the form, so the draft store,changesandonCommithold the mapped value. Use it to trim a string the user was free to type spaces into.- New types
TMDataGridEditCommitMapandTMDataGridEditCommitMapArgs.
- New types
@jielga/tmdatagrid-xlsx@2.5.0
Merge pull request #178 from Jielga/changeset-release/main chore: version packages
@jielga/tmdatagrid@2.4.0
Minor Changes
-
#175
1c440f8Thanks @Psvensso! - - Filter pills and group rows write values in the configured language: a boolean aslabels.booleanTrue/booleanFalseinstead oftrue/false, and a value with an option as the option's label instead of its value.- A group row of a
Datecolumn shows the date instead of an English timestamp, and a group ofnullvalues showslabels.blankGroupValueinstead of "null". formatFilterLabeltakesoptionsandlabels, andformatGroupValuetakes 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 …".
- A group row of a
-
#174
3fcdbf3Thanks @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 givesurlKey, the link assearchParams,searchorpayload, a routevalidateSearch, andpersist(storage)for a router that keeps objects in its search, such as TanStack Router.- Columns from
createTMDataGridColumnHelpercarry their id,meta.type, value type, operators and filter, sort and URL switches in their type, asTMDataGridColumnInfo. Runtime column objects are unchanged.
- Columns from
@jielga/tmdatagrid-xlsx@2.4.0
Merge pull request #176 from Jielga/changeset-release/main chore: version packages
@jielga/tmdatagrid@2.3.0
Minor Changes
-
#172
f0cc025Thanks @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, orrenderRowContextMenu. Group rows never do. Before, every row took it.highlightOnHoveron the Table forces the tint on or off for every row.- Rows carry
data-highlight-on-hover="true"while the tint applies.
-
#169
1aa083fThanks @Psvensso! - -persist.urlKeykeeps selected data slices in a URL search param, written withhistory.replaceState.persist.urlStoragereplaces the default URL access, for routers that own the URL.meta.filter.url: falsekeeps a column's filter out of the link.- A global filter cleared over an
initialState.globalFilteris 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
00f8e2eThanks @Psvensso! - - The details panel no longer pads its content. Content that should line up with the cell text pads itself withvar(--dg-padding). -
#170
02b1decThanks @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 anddist/styles.cssdid not.
@jielga/tmdatagrid@2.2.0
Minor Changes
-
#165
a282ad9Thanks @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.TMDataGridColSpanArgsis exported.
-
#167
749995fThanks @Psvensso! - -TMDataGridFilterFntype,tmDataGridFilterFnandmatchesFilterare exported: a column's ownfilterFnreceives the{ operator, value }envelope and can delegate to the built-in matcher.- A column with no
minSizenow has the documented floor of 80 for resizing and pinned widths as well as for its fluid track; TanStack's 20 applied before. PassdefaultColumn: { minSize }to change it. - The empty-state message and
renderEmptyState'shasActiveFiltersnow 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 showsnoRows, notnoResults.
- A column with no
@jielga/tmdatagrid-xlsx@2.3.0
Merge pull request #171 from Jielga/changeset-release/main chore: version packages
@jielga/tmdatagrid-xlsx@2.2.0
Merge pull request #166 from Jielga/changeset-release/main chore: version packages