Releases: Power-Components/livewire-powergrid
Releases · Power-Components/livewire-powergrid
v2.2.1
🛠️ Fix
- Fix class attribute on action button
v2.2.0
New Feature
Action Rules - #217
Doc: https://livewire-powergrid.com/#/table/action-rules?id=action-rules
v2.1.2
v2.1.1
🛠️ Fix
action parameters when entry is null
v2.1.0
🛠️ 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 #224
Added
Delete After Download export option (default true) #223
public function setUp(): void
{
// ...
->showExportOption('download', ['excel', 'csv'], ['deleteAfterDownload' => true]);
v2.0.1
v2.0.0
Deprecation
In this version, AlpineJs ^3 is a requirement - deprecation to v2
🛠️ Fix
-
powergrid:create - #191, #194, #199 (create based on default App\Models directory. enum field and directory)
-
layout improvements for Bootstrap5
-
resetPage() order
Added
- TotalRow feature - #179
- tableName - to avoid conflicts between multiple tables on the same page with the same model
- laravel-mix, powergrid.js and powergrid.css
- CI - php 8.1
- named event listeners
New Contributors
- @shishamchudal made their first contribution in #179
Full Changelog: v1.5.1...v2.0.0
v1.5.1
🛠️ Fixes
- RecordCount display by @Augen2203 in #170
- Filter translation + Badge for tests + PhpStorm by @dansysanalyst in #158
🔥 Translations
- 🌐 CA|ES|DE by @dansysanalyst in #158
- IT translations by @masterix21 in #167
- Indonesian lang by @NathanaelGT in #157
Added
- More tests by @luanfreitasdev in #160
New Contributors
- @Augen2203 made their first contribution in #170
Full Changelog: v1.5.0...v1.5.1
v1.5.0
🛠️ Fixes
- Larastan php74 by @dansysanalyst in #124
- Larastan by @dansysanalyst in #126
- [tests] Fix wrong column type in migrations by @dansysanalyst in #134
- Larastan by @luanfreitasdev in #125
- Tests with supported DBs + Input filter null/blank/empty by @dansysanalyst in #147
- add disabled input text by @luanfreitasdev in #148
- Prevent xss attack by @NathanaelGT in #146
- New parameter for sortBy Method by @throwExceptions in #151
- feature: support for all databases supported by laravel to the functionality for sorting alphanumeric values by @vs0uz4 in #149
- Stubs passing static analysis by @dansysanalyst in #153
- feature: [wip] implementation of the rescue functionality of the database server version used by @vs0uz4 in #155
- SqlSupport refactoring by @dansysanalyst in #156
- Dev - 1.5 by @luanfreitasdev in #152
New Contributors
- @NathanaelGT made their first contribution in #146
- @throwExceptions made their first contribution in #151
Full Changelog: v1.4.7...v1.5.0
Notes:
- With Sort String Number (SortField with +0) - By default it is disabled, but you can enable it by changing the property:
$withSortStringNumber
- #111 - Update message is disabled by default: bool
$showUpdateMessages
- 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 issortable()
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 issearchable()
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(),
v1.4.7
🛠️ 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
- SortField and primaryKey values:
public string $sortField = 'dishes.id';
public string $primaryKey = 'dishes.id';
- Method addColumns:
->addColumn('dishes.name', function (Dish $dish) {
return $dish->name;
})
- Method columns;
Column::add()
->title(__('Name'))
->field('dishes.name')