Skip to content

Commit

Permalink
Develop to Master - V3 Fixes - Bulk Actions, Column Select, Injectors…
Browse files Browse the repository at this point in the history
…, Missing Tests (#1335)

* Beta Fixes - Publishing Views/Localizations.  Beta Improvements - Search Options (#1324)

* Update setSearchDebounce, add setSearchThrottle/setSearchBlur

* Remove Lazy Test

* Remove Lazy Tests - Update Docs

* Update Views Publish Path

* Add Translations Publish Option

* Update ChangeLog

* Add Reusable Columns

* Add Tests for Prepend/Append Cols

---------

Co-authored-by: lrljoe <[email protected]>

* Bulk Actions Fix - v3 (#1326)

* Update setSearchDebounce, add setSearchThrottle/setSearchBlur

* Remove Lazy Test

* Remove Lazy Tests - Update Docs

* Update Views Publish Path

* Add Translations Publish Option

* Update ChangeLog

* Add Reusable Columns

* Add Tests for Prepend/Append Cols

* Column Select Fixes

* Fix test

* Add docs for setSearchPlaceholder

* Move Filter Specific Docs ino Filter-Types

* Fix styling

* Remove extraneous space

* Adjusting Selectable Test

* Fix For BulkActions Dropdown

* Fixes for ColumnSelect

* Update ChangeLog

* Test Fix for Selectable Columns

* Remove Faulty Test

---------

Co-authored-by: lrljoe <[email protected]>

* Fix Column Select - Select All state (#1333)

* Fix Column Select - All

* Update ChangeLog

* Add NonArray setAdditionalSelects Test (#1337)

* Test Additions (#1339)

* Add NonArray setAdditionalSelects Test

* Update for FrontendAssets Test

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

* Add Third Party Tests (#1340)

* Add NonArray setAdditionalSelects Test

* Update for FrontendAssets Test

* Add ThirdPartyScripts/Styles to Test

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

* Third Party Asset Tests (#1341)

* Add NonArray setAdditionalSelects Test

* Update for FrontendAssets Test

* Add ThirdPartyScripts/Styles to Test

* Add ThirdParty Tests

* Fix AutoInjection Issue

* Fix 3rd party test

* Set default back to remote 3rd party assets

* Add CodeCov YML

* Update CodeCov - 80% minimum

* Add Filter Custom Pills Blade Test

* Fix styling

* Add formatted column test

* Column - Get Formatted Contents Test

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

* Lazy Loading Fix (#1355)

* Add fix for lazy loading

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

* Spacing fixes

* v3 - Missing Tests - Pagination Related Tests (#1363)

* Add missing pagination helper tests


---------

Co-authored-by: lrljoe <[email protected]>

* v3 - Missing Tests - Broken Tables (Missing Primary Key/Builder) (#1362)

* Add missing component visuals tests & failed tables

* Update Exception Expectation

* Temporary test swapping to check Exception throwing

---------

Co-authored-by: lrljoe <[email protected]>

* v3 - Add setSearchFieldAttribute Options (#1361)

* Add setSearchFieldAttribute Options


---------

Co-authored-by: lrljoe <[email protected]>

* v3 - Column Select Fixes & Tweaks (#1360)

* ColumnSelect Fixes - Phase 1

* Update "Select All" to use counts

* Missing closing bracket

* All Are Selected -> Move to method in Helpers

* ColSelectFixes

* Ensure event fires

* Update ColumnsSelectedTest

* Fix superfluous empty array return

* Remove superfluous default return

* Adjust Tests - Include Coverage For ExcludeDeselectedCols

* Add Tests For AllColsSelected

* Fix styling

* Fixes for Deselected Cols

* Fix styling

* Updates to Changelog

* Removing ColumnSelected Event Test - Temporary

* Add default true to replace removed test

* Add improved test

---------

Co-authored-by: lrljoe <[email protected]>

* Fix ServiceProvider Fault (#1366)

* V3 Frontend Asset Tweaks (#1371)

* Check for "original" property

* Adjusting order of request validations

* Updates to Asset Injection Methods

* Fix assertViewIs is not working (#67)
Contribs By: Jackson Tong <[email protected]

* Tweaks for Auto Injection Options

* Test Updates - Frontend Assets

* Add ThirdParty Basic Header Tests

* Add Initial Debuggable DTO Test

* V3 - Reordering Fixes (#1373)

* Reordering Fixes - Performance & Toggling

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

* Bundler Import Options (#1377)

* Add All Option

* Update Import Paths

* Add minified CSS Versions

* V3 Restore setTrAttributes (#1378)

* Add setTrAttributes back into use

* Fix styling

---------

Co-authored-by: lrljoe <[email protected]>

---------

Co-authored-by: lrljoe <[email protected]>
Co-authored-by: Anthony Rappa <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2023
1 parent 4250511 commit 003ab4a
Show file tree
Hide file tree
Showing 70 changed files with 1,738 additions and 731 deletions.
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
File renamed without changes.
File renamed without changes.
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

0 comments on commit 003ab4a

Please sign in to comment.