Date: 2024-11-27
- Copy from ISO date column
- Add prop
disableSmartDelete
Date: 2024-01-27
- Triggering editing a cell just by typing now works with non-ASCII characters
Date: 2024-01-18
- Triggering editing a cell just by typing now works with non-ASCII characters
- Fix pasting from Excel for some edge cases
- Improve table behavior when scaling
Date: 2023-07-26
- Prevent submitting form when pressing
Enter
on a cell to edit it
Date: 2023-05-16
- Add
onScroll
prop to allow infinite loaders and other fancy behaviors
Date: 2023-02-15
- Fix paste issue when editing
Date: 2023-02-08
- Fix paste issue when pasting was blocked on other inputs
Date: 2023-01-20
- Clipboard actions (copy, cut, paste) are now available from context menu (right-click)
Date: 2023-01-20
- Better support for non-english characters
Date: 2022-12-27
- Date columns now support
YYYY.MM.DD
format and max year is 9999
Date: 2022-12-19
- Date columns now support
YYYY. MM. DD
andYYYY/MM/DD
format
Date: 2022-12-03
- Support for custom row height
Date: 2022-11-23
- Duplicate characters issue when typing in Korean or other composable languages
Date: 2022-11-18
- Added
isoDateColumn
to work with strings instead of Date objects
isoDateColumn
anddateColumn
now hide the calendar icon when not active for a better visual experience
Date: 2022-11-06
- Now export
createAddRowsComponent
,renderContextMenuItem
, andcreateContextMenuComponent
for easier i18n - Added
cellClassName
prop to DSG itself
Date: 2022-11-04
width
is now deprecated for columns, you should now use directlybasis
,grow
, andshrink
. Width computation is now done internally in JS and does not rely on the browser.- Migrated from
react-window
toreact-virtual
. As a result columns are now virtualized as well.
- Support for
Ctrl
+Left click
to open the context menu
Date: 2022-09-28
headerRowHeight
now supports 0 as a value and completely hides the header rowcheckboxColumn
now disables the checkbox when the cell itself is disabledaddRowsComponent
now supportsfalse
as a value to hide the componentcellClassName
now receivescolumnId
Date: 2022-07-31
- Transferred ownership of the repo
Date: 2022-05-31
- Fix build, previous changes are now present
Date: 2022-05-11
- Add
rowKey
prop to handle complex edge cases when inserting / deleting rows in the middle of the grid
Date: 2022-05-03
- Add support for React 18
Date: 2022-04-22
- Add support for
F2
key to start editing a cell, like in Excel - The context menu component now has an extra prop
cursorIndex
, which is aCell
, that holds the information about which cell was right-clicked on.-1
means header or gutter column
Date: 2022-02-23
- Support more keys to start editing a cell
Date: 2022-02-04
- Improved scroll behavior when selecting a row or column
Date: 2022-02-01
- Remove dependency on
html-entities
- Fixed style issues
Date: 2022-01-29
- Prevent columns created with
createTextColumn
withcontinuousUpdates
set to false to update when focus state flickers.
Date: 2022-01-27
prePasteValues
was not called when expanding the selection
Date: 2022-01-27
- Changed module types to
commonjs
to improve compatibility
Date: 2022-01-26
createTextColumn
placeholder was always displaying, it is now only displaying on active cells.createTextColumn
was updating the row on first render whencontinuousUpdates
was false.
Date: 2022-01-26
- CSS is no longer automatically imported and should be manually imported by the end user. This allows support for Nextjs and other frameworks.
data
prop is no longer supported in favor ofvalue
Date: 2022-01-17
- Endless re-renders with non-integer height
- Right and bottom shadow had false positive with non-integer sizes
Date: 2022-01-13
- Flickering effect caused by scrollbars on non-integer pixel widths
Date: 2021-12-30
- New column prop
prePasteValues
Date: 2021-12-26
- New prop
rowClassName
Date: 2021-12-23
onChange
now receives a second argument to track which rows were updated.
Date: 2021-12-07
- Selection was overflowing when pasting a single row that overflows to the right
- A state could be updated (triggering a warning) after the component was unmounted
- Do not submit the form when adding a row
Date: 2021-12-05
- CI and tests
Date: 2021-11-23
- Now uses CSS custom properties to style DSG for easier customization.
Date: 2021-11-20
- The
gutterColumn
prop now supportsfalse
to disable the gutter.
- Update context menu style to force text color to be black event when parent is white.
Date: 2021-11-03
- Typo:
bellow→ below. For backward compatibility this does not affect thetype
ofContextMenuItem
, it is stillINSERT_ROW_BELLOW
Date: 2021-11-02
- Pasting more columns than available caused a crash
Date: 2021-10-13
- The package now exports
createTextColumn
that allows to create text-based columns from simple parsing and formatting functions.floatColumn
,intColumn
,percentColumn
, andtextColumn
are now built using it. floatColumn
,intColumn
, andpercentColumn
now format the value when blurred using Intl
Date: 2021-10-13
onBlur
was not passing the right cell to the callback
Date: 2021-10-12
- Pressing Tab from the last cell of a row now moves the active cell to the first cell of the following row
- Pressing Shift+Tab from the first cell of a row now moves the active cell to the last cell of the previous row
- Draggable corner is now gray when the selection is disabled
- Draggable corner is hidden when all columns of the selection are disabled
- Fix typescript error in SelectionContext.ts
- Update tsconfig for better module compatibility
Date: 2021-09-21
- User can now drag the corner of the selection to expand it.
- Headers width computation could be off in certain conditions because of the way flexbox computes width when items have padding.
Date: 2021-09-19
- Initial height computation made the grid jump 1 pixel
Date: 2021-09-14
- Issues with SSR and DOMParser
Date: 2021-09-14
activeCell
andselection
of the ref now includecolId
if the column has an id.- New props
onFocus
,onBlur
,onActiveCellChange
, andonSelectionChange
- Prop
data
on<DataSheetGrid/>
has been renamedvalue
to match standards.data
is still supported but is now deprecated and support will be dropped on next major version.
Date: 2021-09-07
- Improved accessibility by allowing to focus next tabbable element in the dom when tabbing from the last cell, and previous element when Shift+Tab from the first cell.
Date: 2021-09-07
- Improved copy / pasting by supporting text/html data type. Dealing with edge cases with special characters now works perfectly.
Date: 2021-09-03
- Columns can now have an
id
, makingsetActiveCell
andsetSelection
easier to use by specifying the column'sid
instead of its index.
Date: 2021-09-03
- Prop
isRowEmpty
on<DataSheetGrid/>
has been deleted in favor ofisCellEmpty
on each column.
Date: 2021-09-01
disabled
,deleteValue
,copyValue
,pasteValue
,duplicateRow
, andisRowEmpty
now have access to therowIndex
- Columns can now specify
headerClassName
andcellClassName
<DataSheetGrid/>
now hasstyle
andclassName
props
Changes were not track properly.