Skip to content
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: 1 addition & 1 deletion resources/views/components/pagination.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware(['isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])

@includeWhen(
$this->hasConfigurableAreaFor('before-pagination'),
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])

@php
$customAttributes = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName', 'primaryKey','isTailwind','isBootstrap'])
@aware([ 'tableName', 'primaryKey','isTailwind','isBootstrap'])
@props(['row', 'rowIndex'])

@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/empty.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component','isTailwind','isBootstrap'])
@aware(['isTailwind','isBootstrap'])

@php($attributes = $attributes->merge(['wire:key' => 'empty-message-'.$this->getId()]))

Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/td.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'row', 'rowIndex', 'tableName', 'primaryKey','isTailwind','isBootstrap'])
@aware([ 'row', 'rowIndex', 'tableName', 'primaryKey','isTailwind','isBootstrap'])
@props(['column', 'colIndex'])

@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/td/bulk-actions.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','primaryKey'])
@aware([ 'tableName','primaryKey'])
@props(['row', 'rowIndex'])

@php
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])
@props(['rowIndex', 'hidden' => false])

@if ($this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns())
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/td/plain.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'rowIndex', 'rowID','isTailwind','isBootstrap'])
@aware([ 'rowIndex', 'rowID','isTailwind','isBootstrap'])
@props(['column' => null, 'customAttributes' => [], 'displayMinimisedOnReorder' => false, 'hideUntilReorder' => false])


Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/td/reorder.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])
@props(['rowID', 'rowIndex'])

@php($theme = $this->getTheme())
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/th.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])
@props(['column', 'index'])

@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/th/bulk-actions.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])
@php
$customAttributes = $this->hasBulkActionsThAttributes ? $this->getBulkActionsThAttributes : $this->getAllThAttributes($this->getBulkActionsColumn())['customAttributes'];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])

@if ($this->collapsingColumnsAreEnabled() && $this->hasCollapsedColumns())
@if ($isTailwind)
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/th/plain.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component','isTailwind','isBootstrap'])
@aware(['isTailwind','isBootstrap'])
@props(['displayMinimisedOnReorder' => false, 'hideUntilReorder' => false, 'customAttributes' => ['default' => true]])

<th x-cloak {{ $attributes }} scope="col"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/tr.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','primaryKey','isTailwind','isBootstrap'])
@aware([ 'tableName','primaryKey','isTailwind','isBootstrap'])
@props(['row', 'rowIndex'])

@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/tr/bulk-actions.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])

@if ($this->bulkActionsAreEnabled() && $this->hasBulkActions())
@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/tr/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])

<x-livewire-tables::table.tr.plain
:customAttributes="$this->getFooterTrAttributes($this->getRows)"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/table/tr/plain.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component','isTailwind','isBootstrap'])
@aware(['isTailwind','isBootstrap'])
@props(['customAttributes' => [], 'displayMinimisedOnReorder' => true])

@if ($isTailwind)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])

<x-livewire-tables::table.tr.plain
:customAttributes="$this->getSecondaryHeaderTrAttributes($this->getRows)"
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tools.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component','isTailwind','isBootstrap'])
@aware(['isTailwind','isBootstrap'])
@php($toolsAttributes = $this->getToolsAttributesBag())

<div {{
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tools/filter-label.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])
@props(['filter', 'filterLayout' => 'popover', 'tableName' => 'table', 'isTailwind' => false, 'isBootstrap' => false, 'isBootstrap4' => false, 'isBootstrap5' => false, 'for' => null])

@php
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tools/filter-pills.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])

@if ($this->filtersAreEnabled() && $this->filterPillsAreEnabled() && $this->hasAppliedVisibleFiltersForPills())
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tools/sorting-pills.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])

@if ($this->isTailwind)
<div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/tools/toolbar.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap'])
@aware([ 'tableName','isTailwind','isBootstrap'])
@props([])
@php($toolBarAttributes = $this->getToolBarAttributesBag())

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
<div
x-data="{ open: false, childElementOpen: false, isTailwind: @js($isTailwind), isBootstrap: @js($isBootstrap) }"
x-cloak x-show="(selectedItems.length > 0 || hideBulkActionsWhenEmpty == false)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@if ($isTailwind)
<div class="@if ($component->getColumnSelectIsHiddenOnMobile()) hidden sm:block @elseif ($component->getColumnSelectIsHiddenOnTablet()) hidden md:block @endif mb-4 w-full md:w-auto md:mb-0 md:ml-2">
<div class="@if ($this->getColumnSelectIsHiddenOnMobile()) hidden sm:block @elseif ($this->getColumnSelectIsHiddenOnTablet()) hidden md:block @endif mb-4 w-full md:w-auto md:mb-0 md:ml-2">
<div
x-data="{ open: false, childElementOpen: false }"
@keydown.window.escape="if (!childElementOpen) { open = false }"
Expand Down Expand Up @@ -48,14 +48,14 @@ class="inline-flex items-center px-2 py-1 disabled:opacity-50 disabled:cursor-wa
class="text-indigo-600 transition duration-150 ease-in-out border-gray-300 rounded shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 dark:bg-gray-900 dark:text-white dark:border-gray-600 dark:hover:bg-gray-600 dark:focus:bg-gray-600 disabled:opacity-50 disabled:cursor-wait"
wire:loading.attr="disabled"
type="checkbox"
@checked($component->getSelectableSelectedColumns()->count() === $component->getSelectableColumns()->count())
@if($component->getSelectableSelectedColumns()->count() === $component->getSelectableColumns()->count()) wire:click="deselectAllColumns" @else wire:click="selectAllColumns" @endif
@checked($this->getSelectableSelectedColumns()->count() === $this->getSelectableColumns()->count())
@if($this->getSelectableSelectedColumns()->count() === $this->getSelectableColumns()->count()) wire:click="deselectAllColumns" @else wire:click="selectAllColumns" @endif
>
<span class="ml-2">{{ __($this->getLocalisationPath.'All Columns') }}</span>
</label>
</div>

@foreach ($component->getColumnsForColumnSelect() as $columnSlug => $columnTitle)
@foreach ($this->getColumnsForColumnSelect() as $columnSlug => $columnTitle)
<div
wire:key="{{ $tableName }}-columnSelect-{{ $loop->index }}"
>
Expand All @@ -81,10 +81,10 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150
@elseif ($isBootstrap)
<div
@class([
'd-none d-sm mb-3 mb-md-0 pl-0 pl-md-2' => $component->getColumnSelectIsHiddenOnMobile() && $isBootstrap4,
'd-none d-md-block mb-3 mb-md-0 pl-0 pl-md-2' => $component->getColumnSelectIsHiddenOnTablet() && $isBootstrap4,
'd-none d-sm-block mb-3 mb-md-0 md-0 ms-md-2' => $component->getColumnSelectIsHiddenOnMobile() && $isBootstrap5,
'd-none d-md-block mb-3 mb-md-0 md-0 ms-md-2' => $component->getColumnSelectIsHiddenOnTablet() && $isBootstrap5,
'd-none d-sm mb-3 mb-md-0 pl-0 pl-md-2' => $this->getColumnSelectIsHiddenOnMobile() && $isBootstrap4,
'd-none d-md-block mb-3 mb-md-0 pl-0 pl-md-2' => $this->getColumnSelectIsHiddenOnTablet() && $isBootstrap4,
'd-none d-sm-block mb-3 mb-md-0 md-0 ms-md-2' => $this->getColumnSelectIsHiddenOnMobile() && $isBootstrap5,
'd-none d-md-block mb-3 mb-md-0 md-0 ms-md-2' => $this->getColumnSelectIsHiddenOnTablet() && $isBootstrap5,
])
>
<div
Expand Down Expand Up @@ -121,7 +121,7 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150
<input
wire:loading.attr="disabled"
type="checkbox"
@if($component->getSelectableSelectedColumns()->count() == $component->getSelectableColumns()->count()) checked wire:click="deselectAllColumns" @else unchecked wire:click="selectAllColumns" @endif
@if($this->getSelectableSelectedColumns()->count() == $this->getSelectableColumns()->count()) checked wire:click="deselectAllColumns" @else unchecked wire:click="selectAllColumns" @endif
/>

<span class="ml-2">{{ __($this->getLocalisationPath.'All Columns') }}</span>
Expand All @@ -135,7 +135,7 @@ class="text-indigo-600 rounded border-gray-300 shadow-sm transition duration-150
wire:loading.attr="disabled"
type="checkbox"
class="form-check-input"
@if($component->getSelectableSelectedColumns()->count() == $component->getSelectableColumns()->count()) checked wire:click="deselectAllColumns" @else unchecked wire:click="selectAllColumns" @endif
@if($this->getSelectableSelectedColumns()->count() == $this->getSelectableColumns()->count()) checked wire:click="deselectAllColumns" @else unchecked wire:click="selectAllColumns" @endif
/>

<label wire:loading.attr="disabled" class="form-check-label">
Expand All @@ -144,7 +144,7 @@ class="form-check-input"
</div>
@endif

@foreach ($component->getColumnsForColumnSelect() as $columnSlug => $columnTitle)
@foreach ($this->getColumnsForColumnSelect() as $columnSlug => $columnTitle)
<div
wire:key="{{ $tableName }}-columnSelect-{{ $loop->index }}"
@class([
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@props([])

<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isBootstrap','isBootstrap4','isBootstrap5'])
@if($this->isBootstrap)
<ul
x-cloak
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName'])
@aware([ 'tableName'])
@props([])

<div x-cloak x-show="filtersOpen"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
<div @class([
'ml-0 ml-md-2' => $this->isBootstrap4,
'ms-0 ms-md-2' => $this->isBootstrap5,
])
>
<select wire:model.live="perPage" id="{{ $tableName }}-perPage"
{{
$attributes->merge($component->getPerPageFieldAttributes())
$attributes->merge($this->getPerPageFieldAttributes())
->class([
'form-control' => $this->isBootstrap4 && $component->getPerPageFieldAttributes()['default-styling'],
'form-select' => $this->isBootstrap5 && $component->getPerPageFieldAttributes()['default-styling'],
'block w-full rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:ring focus:ring-opacity-50' => $this->isTailwind && $component->getPerPageFieldAttributes()['default-styling'],
'border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600' => $this->isTailwind && $component->getPerPageFieldAttributes()['default-colors'],
'form-control' => $this->isBootstrap4 && $this->getPerPageFieldAttributes()['default-styling'],
'form-select' => $this->isBootstrap5 && $this->getPerPageFieldAttributes()['default-styling'],
'block w-full rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:ring focus:ring-opacity-50' => $this->isTailwind && $this->getPerPageFieldAttributes()['default-styling'],
'border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600' => $this->isTailwind && $this->getPerPageFieldAttributes()['default-colors'],
])
->except(['default','default-styling','default-colors'])
}}
>
@foreach ($component->getPerPageAccepted() as $item)
@foreach ($this->getPerPageAccepted() as $item)
<option
value="{{ $item }}"
wire:key="{{ $tableName }}-per-page-{{ $item }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
@aware([ 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5'])
<div x-data x-cloak x-show="reorderStatus"
@class([
'mr-0 mr-md-2 mb-3 mb-md-0' => $this->isBootstrap4,
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/wrapper.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@props(['component', 'tableName', 'primaryKey', 'isTailwind', 'isBootstrap','isBootstrap4', 'isBootstrap5'])
@props(['tableName', 'primaryKey', 'isTailwind', 'isBootstrap','isBootstrap4', 'isBootstrap5'])
<div wire:key="{{ $tableName }}-wrapper" >
<div {{ $attributes->merge($this->getComponentWrapperAttributes()) }}
@if ($this->hasRefresh()) wire:poll{{ $this->getRefreshOptions() }} @endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$this->getParametersForConfigurableArea('before-wrapper')
)

<x-livewire-tables::wrapper :component="$this" :tableName="$tableName" :$primaryKey :$isTailwind :$isBootstrap :$isBootstrap4 :$isBootstrap5>
<x-livewire-tables::wrapper :tableName="$tableName" :$primaryKey :$isTailwind :$isBootstrap :$isBootstrap4 :$isBootstrap5>
@if($this->hasActions && !$this->showActionsInToolbar)
<x-livewire-tables::includes.actions/>
@endif
Expand Down
Loading