laravel-livewire-tables

A dynamic table component for Laravel Livewire

MIT License

Downloads
1.8M
Stars
1.7K
Committers
106

Bot releases are hidden (Show)

laravel-livewire-tables - v3.0.0-beta.1

Published by lrljoe about 1 year ago

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
laravel-livewire-tables - v2.15.0

Published by rappasoft over 1 year ago

laravel-livewire-tables - v2.14.0

Published by rappasoft over 1 year ago

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.
laravel-livewire-tables - v2.13.1

Published by rappasoft over 1 year ago

Fixes for AlpineJS

laravel-livewire-tables - v2.13.0

Published by rappasoft over 1 year ago

Changed

laravel-livewire-tables - v2.12.0

Published by rappasoft over 1 year ago

Added

Changed

laravel-livewire-tables - v2.11.0

Published by rappasoft over 1 year ago

Added

Changed

laravel-livewire-tables - v2.10.0

Published by rappasoft almost 2 years ago

Added

Changed

laravel-livewire-tables - v2.9.0

Published by rappasoft almost 2 years ago

Added

Changed

laravel-livewire-tables - v2.8.0

Published by rappasoft about 2 years ago

Added

Changed

laravel-livewire-tables - v2.7.0

Published by rappasoft over 2 years ago

Added

  • Added functionality to hide individual filters from popover and slide down views
  • Added functionality to hide individual filters from filter pills
  • Added functionality to hide individual filters from the active filter count
  • Added functionality to say which filters get reset by the clear button
  • Added functionality to set filters as secondaryHeader or footer of columns
laravel-livewire-tables - v2.6.0

Published by rappasoft over 2 years ago

Added

  • Added functionality to display BooleanColumn as Yes/No instead of icons.
  • Added ButtonGroupColumn for multiple LinkColumns in one group. Pretty much built in action buttons support.
  • Added bulk action export example to docs.
laravel-livewire-tables - v2.5.0

Published by rappasoft over 2 years ago

Added

  • Ability to pass mount parameters to configurable areas

Changed

  • Move configure call to boot() instead of booted().
  • Mount methods now available in configure() method.
  • Non-field columns with a searchable callback are now included in the search query.
  • Fixed debug query output duplicating select statements.
  • Fixed header issue on column hide - https://github.com/rappasoft/laravel-livewire-tables/pull/754

Removed

  • Calls to set builder and columns in render as it doesn't seem to make a difference since it's also called in booted().
laravel-livewire-tables - v2.4.0

Published by rappasoft over 2 years ago

Added

  • Added table event listeners to sort/filter/clear from other components.
  • Added text filter.
  • Added $row as second parameter to BooleanColumn setCallback().
  • Added setThSortButtonAttributes() to set attributes for th sort button.
  • Added setHideConfigurableAreasWhenReorderingStatus() to hide configurable areas when reordering status which now defaults to true.

Changed

  • Rework builder to fix passed parameters in builder() and columns() methods.
  • Fixed possible bug with bulk actions dropdown on Tailwind when bulk actions are hidden until a selection is made.
laravel-livewire-tables - v2.3.0

Published by rappasoft over 2 years ago

Added

  • Added ability to define additional select statements outside the scope of a column using the setAdditionalSelects(array $selects) configuration method.
  • Added 8 configurable areas, see Configurable Areas of the Datatable section of the documentation.
laravel-livewire-tables - v2.2.1

Published by rappasoft over 2 years ago

Changed

laravel-livewire-tables - v2.2.0

Published by rappasoft over 2 years ago

Added

Changed

laravel-livewire-tables - v2.1.1

Published by rappasoft over 2 years ago

Added

Changed

laravel-livewire-tables - v2.0.0

Published by rappasoft over 2 years ago

Ground Up Rebuild

laravel-livewire-tables - v1.25.1

Published by rappasoft over 2 years ago

Changed

  • Fixed $wireclick issue
Package Rankings
Top 0.61% on Packagist.org
Top 6.68% on Proxy.golang.org
Badges
Extracted from project README
Latest Version on Packagist Styling Tests Total Downloads codecov
Related Projects