124 lines
6.3 KiB
PHP
124 lines
6.3 KiB
PHP
<?php
|
|
use Illuminate\View\ComponentAttributeBag;
|
|
?>
|
|
|
|
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
|
|
|
$__newAttributes = [];
|
|
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
|
|
'debounce' => '500ms',
|
|
'onBlur' => false,
|
|
'placeholder' => __('filament-tables::table.fields.search.placeholder'),
|
|
'wireModel' => 'tableSearch',
|
|
]));
|
|
|
|
foreach ($attributes->all() as $__key => $__value) {
|
|
if (in_array($__key, $__propNames)) {
|
|
$$__key = $$__key ?? $__value;
|
|
} else {
|
|
$__newAttributes[$__key] = $__value;
|
|
}
|
|
}
|
|
|
|
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
|
|
|
|
unset($__propNames);
|
|
unset($__newAttributes);
|
|
|
|
foreach (array_filter(([
|
|
'debounce' => '500ms',
|
|
'onBlur' => false,
|
|
'placeholder' => __('filament-tables::table.fields.search.placeholder'),
|
|
'wireModel' => 'tableSearch',
|
|
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
$$__key = $$__key ?? $__value;
|
|
}
|
|
|
|
$__defined_vars = get_defined_vars();
|
|
|
|
foreach ($attributes->all() as $__key => $__value) {
|
|
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
}
|
|
|
|
unset($__defined_vars, $__key, $__value); ?>
|
|
|
|
<?php
|
|
$wireModelAttribute = $onBlur ? 'wire:model.blur' : "wire:model.live.debounce.{$debounce}";
|
|
?>
|
|
|
|
<div
|
|
x-id="['input']"
|
|
<?php echo e($attributes->class(['fi-ta-search-field'])); ?>
|
|
|
|
>
|
|
<label x-bind:for="$id('input')" class="fi-sr-only">
|
|
<?php echo e(__('filament-tables::table.fields.search.label')); ?>
|
|
|
|
</label>
|
|
|
|
<?php if (isset($component)) { $__componentOriginal505efd9768415fdb4543e8c564dad437 = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal505efd9768415fdb4543e8c564dad437 = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.input.wrapper','data' => ['inlinePrefix' => true,'prefixIcon' => \Filament\Support\Icons\Heroicon::MagnifyingGlass,'prefixIconAlias' => \Filament\Tables\View\TablesIconAlias::SEARCH_FIELD,'wire:target' => $wireModel]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::input.wrapper'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['inline-prefix' => true,'prefix-icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Filament\Support\Icons\Heroicon::MagnifyingGlass),'prefix-icon-alias' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Filament\Tables\View\TablesIconAlias::SEARCH_FIELD),'wire:target' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($wireModel)]); ?>
|
|
<?php if (isset($component)) { $__componentOriginal9ad6b66c56a2379ee0ba04e1e358c61e = $component; } ?>
|
|
<?php if (isset($attributes)) { $__attributesOriginal9ad6b66c56a2379ee0ba04e1e358c61e = $attributes; } ?>
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'filament::components.input.index','data' => ['attributes' =>
|
|
(new ComponentAttributeBag)->merge([
|
|
'autocomplete' => 'off',
|
|
'inlinePrefix' => true,
|
|
'maxlength' => 1000,
|
|
'placeholder' => $placeholder,
|
|
'type' => 'search',
|
|
'wire:key' => $this->getId() . '.table.' . $wireModel . '.field.input',
|
|
$wireModelAttribute => $wireModel,
|
|
'x-bind:id' => '$id(\'input\')',
|
|
'x-on:keyup' => 'if ($event.key === \'Enter\') { $wire.$refresh() }',
|
|
], escape: false)
|
|
]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
|
<?php $component->withName('filament::input'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
|
<?php endif; ?>
|
|
<?php $component->withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(
|
|
(new ComponentAttributeBag)->merge([
|
|
'autocomplete' => 'off',
|
|
'inlinePrefix' => true,
|
|
'maxlength' => 1000,
|
|
'placeholder' => $placeholder,
|
|
'type' => 'search',
|
|
'wire:key' => $this->getId() . '.table.' . $wireModel . '.field.input',
|
|
$wireModelAttribute => $wireModel,
|
|
'x-bind:id' => '$id(\'input\')',
|
|
'x-on:keyup' => 'if ($event.key === \'Enter\') { $wire.$refresh() }',
|
|
], escape: false)
|
|
)]); ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal9ad6b66c56a2379ee0ba04e1e358c61e)): ?>
|
|
<?php $attributes = $__attributesOriginal9ad6b66c56a2379ee0ba04e1e358c61e; ?>
|
|
<?php unset($__attributesOriginal9ad6b66c56a2379ee0ba04e1e358c61e); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal9ad6b66c56a2379ee0ba04e1e358c61e)): ?>
|
|
<?php $component = $__componentOriginal9ad6b66c56a2379ee0ba04e1e358c61e; ?>
|
|
<?php unset($__componentOriginal9ad6b66c56a2379ee0ba04e1e358c61e); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__attributesOriginal505efd9768415fdb4543e8c564dad437)): ?>
|
|
<?php $attributes = $__attributesOriginal505efd9768415fdb4543e8c564dad437; ?>
|
|
<?php unset($__attributesOriginal505efd9768415fdb4543e8c564dad437); ?>
|
|
<?php endif; ?>
|
|
<?php if (isset($__componentOriginal505efd9768415fdb4543e8c564dad437)): ?>
|
|
<?php $component = $__componentOriginal505efd9768415fdb4543e8c564dad437; ?>
|
|
<?php unset($__componentOriginal505efd9768415fdb4543e8c564dad437); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php /**PATH /var/www/additional_design/vendor/filament/tables/resources/views/components/search-field.blade.php ENDPATH**/ ?>
|