v2.7.0
New Additions
-
NsDataGrid:
- Added the
'hide'
property for column definitions, allowing support for hidden column filtering.- Extended the
ColumnDef
type to include an optionalmeta.hide
property. - Updated the column filter in
useReactTable
to exclude columns withmeta.hide
set totrue
. - Resolved type compatibility issues with
@tanstack/react-table
by adding the second genericValue
toColumnDef
.
- Extended the
- Added the
selectedRow
property inNsDataGridOptions
.- When an ID is passed, the table will preselect the specified row.
- Added the
-
NsSessionExpiredModal:
- Introduced the new
NsSessionExpiredModal
pattern for session expiration handling.
- Introduced the new
Improved
-
NsDataGrid:
- Dynamically adapted the width of the
ColumnVisibilityMenu
dropdown menu to match content length. - Moved
bodyTextAlign
andheaderJustifyContent
properties fromNsDataGridBaseProps
toNsDataGridOptions
for better organization.
- Dynamically adapted the width of the
-
NsHeader:
- Fixed notification issues.
- Enabled userPanelMenuItems to render as menuItems.
- Added hover effects, icons, and dropdown arrows for the menu.
- Introduced additional configuration options.
-
NsNotifier:
- Simplified the component and enhanced its story.
- Removed
NsNotifierProps
properties:message
type
- Added
NsNotifierProps
property:anchorOrigin
Fixed
-
NsDataGrid:
- Corrected cell text alignment issues for consistency.
-
NsHeader:
- Resolved issues with the bell and user icons.
-
NsLogin:
- Removed the
NsHeader
component from the Login layout for cleaner design.
- Removed the