Skip to content

Commit 7356189

Browse files
committed
Merge branch 'main' of github.com:backstagephp/fields
2 parents 372dc01 + eec91c0 commit 7356189

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/Fields/Select.php

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
namespace Backstage\Fields;
44

5-
use Filament\Forms;
6-
use Backstage\Fields\Base;
7-
use Backstage\Fields\Models\Field;
85
use Backstage\Fields\Concerns\HasAffixes;
96
use Backstage\Fields\Concerns\HasOptions;
107
use Backstage\Fields\Contracts\FieldContract;
8+
use Backstage\Fields\Models\Field;
9+
use Filament\Forms;
1110
use Filament\Forms\Components\Select as Input;
1211

1312
class Select extends Base implements FieldContract
@@ -107,45 +106,45 @@ public function getForm(): array
107106
->label(__('Preload'))
108107
->live()
109108
->inline(false)
110-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
109+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
111110
])->columnSpanFull(),
112111
self::optionFormFields(),
113112
self::affixFormFields(),
114113
Forms\Components\Grid::make(2)
115114
->schema([
116115
Forms\Components\TextInput::make('config.loadingMessage')
117116
->label(__('Loading message'))
118-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
117+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
119118
Forms\Components\TextInput::make('config.noSearchResultsMessage')
120119
->label(__('No search results message'))
121-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
120+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
122121
Forms\Components\TextInput::make('config.searchPrompt')
123122
->label(__('Search prompt'))
124-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
123+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
125124
Forms\Components\TextInput::make('config.searchingMessage')
126125
->label(__('Searching message'))
127-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
126+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
128127
Forms\Components\TextInput::make('config.searchDebounce')
129128
->numeric()
130129
->minValue(0)
131130
->step(100)
132131
->label(__('Search debounce'))
133-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
132+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
134133
Forms\Components\TextInput::make('config.optionsLimit')
135134
->numeric()
136135
->minValue(0)
137136
->label(__('Options limit'))
138-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
137+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
139138
Forms\Components\TextInput::make('config.minItemsForSearch')
140139
->numeric()
141140
->minValue(0)
142141
->label(__('Min items for search'))
143-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
142+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
144143
Forms\Components\TextInput::make('config.maxItemsForSearch')
145144
->numeric()
146145
->minValue(0)
147146
->label(__('Max items for search'))
148-
->visible(fn(Forms\Get $get): bool => $get('config.searchable')),
147+
->visible(fn (Forms\Get $get): bool => $get('config.searchable')),
149148
]),
150149
]),
151150
])->columnSpanFull(),

0 commit comments

Comments
 (0)