Skip to content

Releases: rappasoft/laravel-livewire-tables

v3.0.0-beta.4

17 Oct 22:46
707b6b8
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

What's Changed

Full Changelog: v3.0.0-beta.3...v3.0.0-beta.4

v3.0.0-beta.3

13 Oct 04:47
11b7afc
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

What's Changed

V3 - Fix Reorder For Bootstrap by @lrljoe in #1412
V3 - Reorder Col - respect setHideReorderColumnUnlessReorderingDisabled by @lrljoe in #1411
v3 - Fix unrequired update call by @lrljoe in #1407
With thanks to "Danie Ramdhani" for assistance in diagnosing

Full Changelog: v3.0.0-beta.2...v3.0.0-beta.3

v3.0.0-beta.2

08 Oct 21:39
babe430
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

Minor beta release with some bug fixes

Fixes

  • Apply Reorder Sorting When Reordering (#1402 )
  • Fix DateRangeFilter Blade - Superfluous endphp #1394
  • Remove published/cdn third party options from DateRangeFilter #1394

Changes

  • Migration of Custom Filter Label code into the filter-label blade
  • Updated documentation for CustomFilterLabel to reflect the available properties

What's Changed

Full Changelog: v3.0.0-beta.1...v3.0.0-beta.2

v3.0.0-beta.1

04 Oct 22:07
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

This is the initial beta, offering support for Livewire 3.

N.B - This is a preview/beta, and is not suitable for production use.

For more information on the beta please see the discussion here, or join us on Discord

Potential breaking changes

  • Introduction of multiple relations to a single table
  • SetSearchLazy removed

Key Notes

  • The package uses an injection approach to inject required JS and CSS, in the same method as Livewire itself. The behaviour is customisable.

Non-Breaking Changes

General

  • Added support for multiple relations on a single table (e.g. user has a "mother user" and a "father user")
  • Bootstrap striping is now working as standard
  • Uses HeroIcons instead of hard-coded SVGs for icons
  • Optimisation of Blade/View Components

Columns

  • Label Columns (without a field) are sortable using a callback
  • Preview Livewire Component Column - Caution - potential high memory/CPU usage

Filters

  • Added Numeric Range filter
  • Added Date Range filter
  • DateFilter & DateTimeFilter have customisable Pills Date Format
  • DateFilter & DateTimeFilter support setFilterDefaultValue to set a Default Value
  • MultiSelectFilter & MultiSelectDropdownFilter both support setFirstOption() to set a value for "All"

Pagination

  • Added support for cursor pagination ($this->setPaginationMethod('cursor'))
  • Cursor & Simple pagination both include a "Total Item Count" stored in $paginationTotalItemCount, which is displayed in the table foot

Search

  • Search Placeholder is customisable ($this->setSearchPlaceholder('Finder'))
  • Added setSearchBlur()
  • Added setSearchThrottle(int $milliseconds)

Other

  • Optimisation of codebase overall
  • Introduction of typehinting for parameters and return values across majority of codebase
  • Increased test coverage

v2.15.0

15 Jul 19:50
26c596d
Compare
Choose a tag to compare
  • Fixes

    • Re-enable capability for configuring whether to Hide/Show Bulk Actions when empty - #1240
  • Enhancements

    • Allow Label Columns to be Sortable - #1256
    • Add Select All On Page Translations - #1244
    • Add Contributors Document to track Localisation contributors - #1223

v2.14.0

19 May 01:56
77408c7
Compare
Choose a tag to compare

Changed

  • Fixes

    • Bulk Actions (AlpineJS)
    • Moving Table Head Checkbox to AlpineJS
    • Using AlpineJS for calculating if all items have been selected
    • Correcting missing x-cloak
    • Added indeterminateCheckbox for TH for bulk actions
    • Cleaned up ALpineJS functionality for Bulk Actions
    • Repair of tests that were looking for wire:model that no longer existed
  • Enhancements

    • Several new public variables for accessing pagination data cleanly, to avoid calling functions repeatedly across various blades.
      • paginationTotalItemCount (Total number of items in the results across all page)
      • paginationCurrentItems (Primary keys of items in the current page)
      • paginationCurrentCount (Number of results on the current page)
  • Blades

    • Several blades have had the classic Tables approach ($theme == 'tailwind', $theme == 'bootstrap) replaced with conditional classes using the @Class([]) approach. This is to reduce the complexity of the blade files.

v2.13.1

18 May 13:18
660fd33
Compare
Choose a tag to compare

Fixes for AlpineJS

v2.13.0

18 May 02:15
da2f818
Compare
Choose a tag to compare

Changed

  • General

    • Migrate to AlpineJS for Bulk Actions - #1196
    • Add capability for passing a custom model path to the MakeCommand - #1168
    • Add setFilterDefaultValue() on a per-component basis - #1191
    • Add getFilterDefaultValue() to each Filter Component (to maintain support for PHP7.4 - variable return types) - #1191
    • Moved Setting of Filter Defaults to Traits/Helpers/FilterHelpers - mountFilterHelpers - #1191
    • Moved Setting of Theme to Traits/ComponentUtilities - mountComponentUtilities for efficiency - #1191
  • Filters

    • Fix - Hide the filter label in the header/footer when using as a secondary header/footer
    • Fix - Changed the booting order to prevent repeated calling of filters() - #1166
    • Fix - fixed multiSelectDropdownFilter in menus - #1160
    • Fix - TypeHint to allow continued support of PHP 7.4 - #1185
  • Documentation

    • Fix - Minor wording tweak to documentation - #1139
    • Fix - Fix to example in applying-filters - #1171
    • Improved template for New Issue/Bug - #1194
  • Tests

    • Restore PHP 7.4 tests for L8 only (includes minor tweaks)
    • Remove duplicate tests in ComponentHelpersTest
    • Tweak to ReorderingVisualsTest
    • Add TextFilter as a test in FilterHelpersTest
  • Localization

    • Added Danish Localization - #1206

v2.12.0

09 Apr 02:04
d4d3e24
Compare
Choose a tag to compare

Added

  • AlpineJS Variable for Toolbar Dropdowns to force the dropdown to remain open - childElementOpen - #1076

  • Added Custom Column Slug method setCustomSlug('') allowing Columns to use non-roman characters in the Column Title - #1088

  • Eager loading so anyone can load any type of relationship - #943

  • Improved visibility of active page in pagination - #1096

  • Pagination methods

    • Retrieve currently displayed IDs - getPerPageDisplayedItemIds()
    • Retrieve number of records currently displayed - getPerPageDisplayedItemCount()
    • Public variables for the above #1136
  • Filter Changes - #1129

    • Custom Filter Pill Blades per Filter component (setFilterPillBlade()) - #1107
    • Custom Filter Label Blades per Filter component (setCustomFilterLabel()) - #1110
    • Filter positioning options when using slide-down - #1108
      • Set the row per Filter component (setFilterSlidedownRow())
      • Set the colspan per Filter component (setFilterSlidedownColspan())

Changed

  • Filters

    • Fix - enabled re-use of Filters in Secondary Header/Footer, fixing issue where the filter remains visible after deselecting the Column- #1108
    • Fix - restrict AppliedFilters to only return non-empty - preventing default values from setting the filter #1080
    • Minor - added ID to Filter Wrapper allowing for easier targeting in blades/AlpineJS - #1087
  • Workflow Changes

    • PHPStan - Introducing PHP-Stan at Level 3 to ensure code-quality persists - #1133
    • Run-Tests - Use of ParaTest, Composer Caching, Fixing the Stability Matrix clash - #1105
    • php-cs-fixer - (For Badge) - #1125 / #1126
  • Testing

    • Significant quantity of tests, improving test coverage from 81% to 91% - #1137
    • General DocType/TypeHint Fixes #1133

v2.11.0

16 Feb 18:33
5894709
Compare
Choose a tag to compare

Added

  • Support for Laravel 10 - #1049
  • Trigger events when changing selected columns - #1046
  • Added before-tools configurable area - #1037
  • Added support to hide column select on tablet or mobile - #1031

Changed

  • Corrected issue in filter docs - #1048
  • Fixed filter pill values for option groups - #1044