Releases: dj-fiorex/angular2-smart-table
Release 3.0.0
- Upgrade to Angular 16
- Add proper typing to all settings
- Improve signatures of
valuePrepareFunction
, andfilterFunction
- Add
valueStoreFunction
as counter-part of thevaluePrepareFunction
- Change how filters are configured:
- Add
removeFilter()
method - Change
setFilter()
to always remove all existing filters, first - Change filters to not automatically ignore empty strings
- Remove
andOperator
parameter fromsetFilter()
andaddFilter()
- Add
- Fix inconsistent return types between
DataSource
methods and theirLocalDataSource
implementations - Change custom renderer initialization and remove
ViewCell
interface - Remove ng2-completer
- Remove angular2-multiselect-dropdown
- Remove date filter type
- Remove partially broken
selectRow
function - Remove deprecated settings
- Remove undocumented settings
Note: With Angular 16 several breaking changes were introduced, which forced us to also introduce breaking changes
plus we cannot guarantee anymore, that the software is working with Angular 15 and below. This is why we decided to
have a hard cut by introducing a new major release that is only compatible with Angular 16 onwards.
If you want to stick with Angular 14 or Angular 15, please use version 2.10.0.
Full Changelog: v2.10.0...v3.0.0
Release 2.10.0
What's Changed
- Add
sanitizer
,hiddenWhen
, anddisabledWhen
toCustomAction
settings - The
title
attribute inCustomAction
is now deprecated in favor ofcustomButtonContent
Full Changelog: v2.9.0...v2.10.0
Release 2.9.0
What's Changed
- Add
resizedWidth
property toColumn
which will contain the new declared width of a resized column - Remove the resizer control from the last column of a table
- Fix the missing action column when the "expand" action was the only enabled action
- Fix the "select all" checkbox being automatically checked when the table contains no data
- Fix the outdated documentation for the emitted events
Full Changelog: v2.8.1...v2.9.0
Release 2.8.1
Version 2.8.1
Fixes a regression where pager.display=false
resulted in showing only 10 items per page (the default) instead of what was configured in pager.perPage
. Please note that by a previous bug, the pager.perPage
setting was entirely ignored in this situation. I.e. after applying this bugfix, you might need to set a proper value for pager.perPage
in your application.
Release 2.8.0
What's Changed
- Declare compatibility with Angular 15
- Add new config parameter
strict
for dropdown filters.
When this is set totrue
, the dropdown will really work like a selection
instead of a set of predefined search queries. For backwards compatibility,
the default of this value isfalse
. - Add proper typing for DataSourceChangeEvent
- Add new selection mode
multi_filtered
where the "select all" checkbox selects only
the elements that match the current filter instead of all elements in the data source - Add some DataSource methods regarding "select all" to the documentation
- Add settings for conditionally hiding or disabling action buttons
- Remove undocumented 'all' option for
perPage
because that is incompatible withnumber
- Deprecates
expandedRowComponent
andexpand.expandRowButtonContent
and addsexpand.component
andexpand.buttonContent
as alternatives - Fixes that only one sorting parameter is included in a ServerDataSource query
- Fixes that types in data-source.ts were not part of public API
- Fixes several incorrect links to the sources of the demo examples
- Fixes wrong documentation about the available filter types
- Fixes wrong documentation about
valuePrepareFunction
andfilterFunction
.
Full Changelog: v2.7.0...v2.8.0
Hotfix 2.7.1
- Fixes surprising exception when table is empty.
Release 2.7.0
- Revert commit baffdd5 because of an incorrect implementation of
count()
in theServerDataSource
- Adds more documentation for the
doEmit
flag of various methods. - Fixes emission of a deselect event when a row is selected but not expanded.
- Fixes most issues with row selection and add strong types for the selection events.
v2.6.0
What's Changed
- Adds (editCancel) and (createCancel) events
- Add settings to bypass the Angular sanitizer (e.g. when svg content shall be displayed)
- Fixes type confusion for (edit) and (delete) events and adds proper types to all editing events
- Fixes that pressing escape in the Create Row renders this row dysfunctional
- Fixes inline create row missing placeholder cell if multi-select column is present
- Fixes missing margin between create and cancel button in head form row
- Fixes sorting bug where strings that only start with a number were interpreted as numbers
Full Changelog: v2.5.0...v2.6.0
v2.5.0
What's Changed
- Add new column settings
classHeader
andclassContent
- Deprecates column setting
class
(remains as alias forclassHeader
) - Reworks sorting methods - now multi-sort is also possible
- Strongly typed sorting and filtering config for data sources
- Fixes missing documentation for
getSort
andgetFilter
methods - Fixes missing documentation for
pager.perPageSelect
- Fixes missing member in interface for
Pager.perPageSelect
- Adds setting
pager.perPageSelectLabel
to be able to configure the displayed label - Fixes inconsistent margins in the pagination section
- Fixes
perPageSelect
moving the left when the page selection is hidden - Fixes a bug in internal
getSetting
function that caused the function to return wrong results when a nested setting was left undefined - Fixes missing
renderComponent
in the interface ofCustomAction
- Adds missing documentation for
CustomAction
- Fixes missing initialization in editors of type 'list' or 'completer'
- Fixes use of deprecated symbols
New Contributors
Full Changelog: v2.4.0...v2.5.0
v2.4.1
- Include Angular 14 as peer dependency