livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.

MIT License

Downloads
1.2M
Stars
1.4K
Committers
99
livewire-powergrid - v2.2.0

Published by luanfreitasdev almost 3 years ago

livewire-powergrid - v2.1.2

Published by luanfreitasdev almost 3 years ago

🛠️ Fix

showToggleColumns() mess with #218

livewire-powergrid - v2.1.1

Published by luanfreitasdev almost 3 years ago

🛠️ Fix

action parameters when entry is null

livewire-powergrid - v2.1.0

Published by luanfreitasdev almost 3 years ago

🛠️ Fix

withSum() & withAvg() not working for calculated data Bug Fixed. #222
withCount should only count "valid" records #226
action parameters does not work with zero https://github.com/Power-Components/livewire-powergrid/issues/224

Added

Delete After Download export option (default true) #223

 public function setUp(): void
    {
        // ...
        ->showExportOption('download', ['excel', 'csv'], ['deleteAfterDownload' => true]);
livewire-powergrid - v2.0.1

Published by luanfreitasdev almost 3 years ago

🛠️ Fix

https://github.com/Power-Components/livewire-powergrid/issues/220 - undefined $row when defining a single button in header method

livewire-powergrid - v2.0.0

Published by luanfreitasdev almost 3 years ago

Deprecation

In this version, AlpineJs ^3 is a requirement - deprecation to v2

Upgrade From V1


🛠️ Fix

  • powergrid:create - #191, #194, #199 (create based on default App\Models directory. enum field and directory)

  • layout improvements for Bootstrap5

  • resetPage() order

Added

New Contributors

Full Changelog: https://github.com/Power-Components/livewire-powergrid/compare/v1.5.1...v2.0.0

livewire-powergrid - v1.5.1

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

🔥 Translations

Added

New Contributors

Full Changelog: https://github.com/Power-Components/livewire-powergrid/compare/v1.5.0...v1.5.1

livewire-powergrid - v1.5.0

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

New Contributors

Full Changelog: https://github.com/Power-Components/livewire-powergrid/compare/v1.4.7...v1.5.0

Notes:

image

  • Prefix in sorting with join is ignored by default. bool $ignoreTablePrefix = true avoiding problems with table names with joins when you need to remove them
  • Table prefix has been removed: sortable(string $tableWithColumn = ''). Now is sortable()

Before:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->sortable('categories.name'),

After:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->sortable(),
  • Table prefix has been removed: searchable(string $tableWithColumn = ''). Now is searchable()

Before:

Column::add()
     ->title('Category')
     ->field('category_name')
     ->searchable('categories.name'),

After:

Column::add()
     ->title('ID')
     ->field('id')
     ->searchable(),
  • Add dataField extra parameters do field method.
Column::add()
     ->title('Category')
     ->field('category_name', 'categories.name')
     ->searchable(),

livewire-powergrid - v1.4.7

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

issues:

  • search problem when joining multiple tables #129
  • more issues with ambiguous columns when using join #111
  • fix action method on action #128
  • exporting with join sortable.

good practices with join

  1. SortField and primaryKey values:
    public string $sortField = 'dishes.id';
    public string $primaryKey = 'dishes.id';
  1. Method addColumns:
     ->addColumn('dishes.name', function (Dish $dish) {
           return $dish->name;
      })
  1. Method columns;
      Column::add()
          ->title(__('Name'))
          ->field('dishes.name')
livewire-powergrid - v1.4.6

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

  • sortby string number "+0" is now conditional on the variable public bool $withSortStringNumber = false, as it did not have PostgreSQL support and there are no conflicts with join query.
  • bootstrap 5 theme don't have a export option #120 - fixed

🔥 New Translation

  • Add ms_MY (Bahasa Melayu - Malaysia) translation. #119
livewire-powergrid - v1.4.5

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

livewire-powergrid - v1.4.4

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

  • added parameter to specify the column that will be ordered in case of table joins -
    E.g: ->sortable('categories.name') - See more

🔥 New Translation

  • added yoruba translation file #113
livewire-powergrid - v1.4.3

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

livewire-powergrid - v1.4.2

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

livewire-powergrid - v1.4.1

Published by luanfreitasdev almost 3 years ago

🛠️ Fixes

livewire-powergrid - v1.4.0

Published by luanfreitasdev almost 3 years ago

livewire-powergrid - v1.3.6

Published by luanfreitasdev almost 3 years ago

Fixes

  • sorBy column not found quando uma coluna é customizada, exemplo:
->addColumn('produced_at_formatted', function (Dish $dish) {
   return Carbon::parse($dish->produced_at)->format('d/m/Y');
})
livewire-powergrid - v1.3.5

Published by luanfreitasdev almost 3 years ago

Fixes

  • Empty table row has been removed
  • Fixed addition of templates per component
  • wire:key was calling by default the 'id' column in collection components
livewire-powergrid - v1.3.4

Published by luanfreitasdev about 3 years ago

Fixes

  • multi select - (only bootstrap 5 theme)
  • remove uppercase on filters
  • add updatedPage
livewire-powergrid - v1.3.3

Published by luanfreitasdev about 3 years ago

Fixes:

  • $class is undefined on select component - 81
  • added FilterSelectTest