Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to Master - V3 Fixes - Bulk Actions, Column Select, Injectors, Missing Tests #1335

Merged
merged 19 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
/psalm.xml export-ignore
/psalm.xml.dist export-ignore
/testbench.yaml export-ignore
/codecov.yml export-ignore
/coverage.xml export-ignore
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

All notable changes to `laravel-livewire-tables` will be documented in this file

## [Unreleased] - 3.x setTrAttributes
- Adding capabilities & tests for setTrAttributes

## [Unreleased] - 3.x Fixes for reordering striping
- Force calculation of even/odd only once in reorder mode
- Call internal method for reordering, and pass to configured method to process

## [Unreleased] - 3.x - Updates to Injection Methods
- Amend AutoInjection/FrontendAsset to ensure it returns the original content correctly
- Remove errant disabling of Blade Directives when disabling auto-injection
- Amended in-line config documentation

## [Unreleased] - 3.x - setSearchFieldAttributes
- Add setSearchFieldAttributes() and getSearchFieldAttributes()

## [Unreleased] - 3.x - Missing Tests

## [Unreleased] - 3.x - Missing pagination tests
- Add missing pagination tests

## [Unreleased] - 3.x - Beta Fixes (beta-1)
- Removal of setSearchLazy
- Fix for setSearchDebounce
Expand All @@ -10,6 +30,12 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
- Fix publishing of views
- Add publish translations
- Add prependColumns() and appendColumns() functions
- Add documentation for setSearchPlaceholder()
- Fix for Bulk Actions dropdown not working in Bootstrap
- Fix for Column Select "Select All" not consistently updating
- Add fix for lazy loading of table
- Fix for ColumnSelect falling out of sync, displaying unselectable colums, or persisting cols in query that are not selected
- Add setExcludeDeselectedColumnsFromQueryEnabled and setExcludeDeselectedColumnsFromQueryDisabled methods to configure()

## [Unreleased] - 3.x (beta-0)
- Requirements Change
Expand Down
94 changes: 0 additions & 94 deletions README copy.md

This file was deleted.

10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
target: 80%
threshold: 1%
patch:
default:
target: 80%
threshold: 1%
27 changes: 20 additions & 7 deletions config/livewire-tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,34 @@
*/
'theme' => 'tailwind',

'cache_assets' => true,
/**
* Enable or Disable automatic injection of assets
* Filter Frontend Asset Options
*/
'inject_assets' => true,

/**
* Enable or Disable inclusion of published third-party assets
* Cache Rappasoft Frontend Assets
*/
'published_third_party_assets' => false,
'cache_assets' => false,

/**
* Enable or Disable remote third-party assets
* Enable or Disable automatic injection of core assets
*/
'remote_third_party_assets' => true,
'inject_core_assets_enabled' => true,

/**
* Enable or Disable automatic injection of third-party assets
*/
'inject_third_party_assets_enabled' => true,

/**
* Enable Blade Directives (Not required if automatically injecting or using bundler approaches)
*/
'enable_blade_directives ' => false,

/**
* Filter Default Configuration Options
*
* */

/**
* Configuration options for DateFilter
Expand Down
25 changes: 25 additions & 0 deletions docs/datatable/available-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,31 @@ public function configure(): void
return ['default' => true];
});
}

```
### setSearchFieldAttributes

Set a list of attributes to override on the search field

```php
public function configure(): void
{
$this->setSearchFieldAttributes([
'class' => 'this that',
]);
}
```

By default, this replaces the default classes on the search field, if you would like to keep them, set the default flag to true.

```php
public function configure(): void
{
$this->setSearchFieldAttributes([
'default' => true,
'class' => 'added these classes',
]);
}
```

## Offline
Expand Down
4 changes: 4 additions & 0 deletions docs/filter-types/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Filter Types
weight: 11
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Date Filters
weight: 6
weight: 2
---

## Date Filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: DateRange Filters
weight: 7
weight: 3
---

## DateRange Filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: DateTime Filters
weight: 6
weight: 4
---

## DateTime Filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Multi-Select Dropdown Filters
weight: 6
weight: 5
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Number Filters
weight: 6
weight: 8
---

## Number Filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Select Filters
weight: 6
weight: 9
---

## Select Filters
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Text Filters
weight: 6
weight: 10
---

## Text Filters
Expand Down
6 changes: 6 additions & 0 deletions docs/filter-types/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Introduction
weight: 1
---

There are several Filter types available for use, offering a range of capabilities to filter your data.
11 changes: 11 additions & 0 deletions docs/search/available-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ public function configure(): void
// Shorthand for $this->setSearchVisibilityStatus(false)
$this->setSearchVisibilityDisabled();
}

```
## setSearchPlaceholder

Set a custom placeholder for the search box

```php
public function configure(): void
{
$this->setSearchPlaceholder('Enter Search Term');
}
```

---
Expand Down
Loading