Skip to content

Releases: Kreyu/data-table-bundle

v0.24.0

11 Oct 15:17
7e53a0c
Compare
Choose a tag to compare
v0.24.0 Pre-release
Pre-release

What's Changed

This release fixes regression after previous Profiler related changes #137 and improves the pagination "per page" selector.

Fixes and improves the integration with Profiler:

  • now it properly collects pagination data instead of always showing page 1 and 25 items per page
  • now it does not interfere with pagination controls nor current page results

Fixes and improves the "per page" selector:

  • now it properly displays currently selected choice
  • it does not lose other URL query parameters on change (e.g. filtration form)
  • submitting a filtration form no longer resets the per page

Caution

This release is not backwards compatible due to new method in the data table data collector interface:

namespace Kreyu\Bundle\DataTableBundle\DataCollector;

interface DataTableDataCollectorInterface extends DataCollectorInterface
{
+    public function collectPaginationData(DataTableInterface $dataTable, PaginationData $data): void;

Full Changelog: v0.23.0...v0.24.0

v0.23.0

05 Oct 15:32
cc07580
Compare
Choose a tag to compare
v0.23.0 Pre-release
Pre-release

What's Changed

  • Array source by @Kreyu in #134
  • Page size selectable by user by @Kreyu in #135
  • [BREAKING CHANGE] Pass row data as second argument of the "formatter" column option by @Kreyu in #136

Caution

This release includes breaking change. The definition of column's formatter option has changed, and now gets row data as second argument. For example:

// Before
'formatter' => function (string $fullName, ColumnInterface $column, array $options) {
    // ...
}

// After
'formatter' => function (string $fullName, User $user, ColumnInterface $column, array $options) {
    // ...
}

Full Changelog: v0.22.3...v0.23.0

v0.22.3

04 Oct 20:39
Compare
Choose a tag to compare
v0.22.3 Pre-release
Pre-release

What's Changed

  • Fix profiler tab throwing an error and disappearing for data tables with batch actions

Full Changelog: v0.22.2...v0.22.3

v0.22.2

03 Oct 11:13
9538f86
Compare
Choose a tag to compare
v0.22.2 Pre-release
Pre-release

What's Changed

  • Fix invalid loop break in DataTableFactory by @Kreyu in #133

Full Changelog: v0.22.1...v0.22.2

v0.22.1

22 Sep 14:52
Compare
Choose a tag to compare
v0.22.1 Pre-release
Pre-release

What's Changed

  • Fix personalization modal does not close on submit, throwing error to the console #129

Full Changelog: v0.22.0...v0.22.1

v0.22.0

21 Sep 20:30
Compare
Choose a tag to compare
v0.22.0 Pre-release
Pre-release

What's Changed

  • Completely overhauled integration with Symfony Profiler - see docs for more details
  • Actions created by the ActionsColumnType now contains a valid reference to their data table
  • Columns created by the CollectionColumnType now contains a valid reference to their data table, and each nested column is now named by their index (0, 1, 2, etc.) instead of generic and non-unique __name__
  • Two new data table events - PRE_INITIALIZE and POST_INITIALIZE

Full Changelog: v0.21.4...v0.22.0

v0.21.4

12 Sep 07:54
Compare
Choose a tag to compare
v0.21.4 Pre-release
Pre-release

This small update fixes the TransformDateRangeFilterData class, that was generating incorrect date range.

Previously, the end-range date was always +1 day which won't work properly with BETWEEN operator. Now the end-range date is always modified to equal 23:59:59.999999 of the given day.

v0.21.3

06 Sep 11:48
Compare
Choose a tag to compare
v0.21.3 Pre-release
Pre-release

feat: add second and third argument to LinkColumnType href option callback (see docs)

fix: Twig >= 3.12 node tag parameter deprecation, php-cs-fixer fix

v0.21.2

05 Aug 20:04
Compare
Choose a tag to compare
v0.21.2 Pre-release
Pre-release

What's Changed

Fixed sort url generator not clearing existing sort parameters, making it impossible to clear the sorting (RE: #121)

Full Changelog: v0.21.1...v0.21.2

v0.21.1

31 Jul 21:44
Compare
Choose a tag to compare
v0.21.1 Pre-release
Pre-release

What's changed

Fixed an incorrect parameter name for the urlQueryParameters value of the state Stimulus controller (RE: #119)

Full Changelog: v0.21.0...v0.21.1