Skip to content

Releases: dj-fiorex/angular2-smart-table

Release 3.0.0

09 Aug 15:55
Compare
Choose a tag to compare
  • Upgrade to Angular 16
  • Add proper typing to all settings
  • Improve signatures of valuePrepareFunction, and filterFunction
  • Add valueStoreFunction as counter-part of the valuePrepareFunction
  • 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 from setFilter() and addFilter()
  • Fix inconsistent return types between DataSource methods and their LocalDataSource 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

22 May 13:30
99013d9
Compare
Choose a tag to compare

What's Changed

  • Add sanitizer, hiddenWhen, and disabledWhen to CustomAction settings
  • The title attribute in CustomAction is now deprecated in favor of customButtonContent

Full Changelog: v2.9.0...v2.10.0

Release 2.9.0

22 May 08:17
a3a1d20
Compare
Choose a tag to compare

What's Changed

  • Add resizedWidth property to Column 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

23 Jan 16:19
Compare
Choose a tag to compare

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

20 Jan 09:42
81c75ba
Compare
Choose a tag to compare

What's Changed

  • Declare compatibility with Angular 15
  • Add new config parameter strict for dropdown filters.
    When this is set to true, the dropdown will really work like a selection
    instead of a set of predefined search queries. For backwards compatibility,
    the default of this value is false.
  • 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 with number
  • Deprecates expandedRowComponent and expand.expandRowButtonContent
    and adds expand.component and expand.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 and filterFunction.

Full Changelog: v2.7.0...v2.8.0

Hotfix 2.7.1

27 Oct 15:22
Compare
Choose a tag to compare
  • Fixes surprising exception when table is empty.

Release 2.7.0

27 Oct 14:58
7840be4
Compare
Choose a tag to compare
  • Revert commit baffdd5 because of an incorrect implementation of count() in the ServerDataSource
  • 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

09 Sep 12:55
f5a2543
Compare
Choose a tag to compare

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

11 Jul 08:38
Compare
Choose a tag to compare

What's Changed

  • Add new column settings classHeader and classContent
  • Deprecates column setting class (remains as alias for classHeader)
  • Reworks sorting methods - now multi-sort is also possible
  • Strongly typed sorting and filtering config for data sources
  • Fixes missing documentation for getSort and getFilter 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 of CustomAction
  • 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

20 Jun 07:30
Compare
Choose a tag to compare
  • Include Angular 14 as peer dependency