Skip to content

Commit

Permalink
Fix modal animation
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Jan 31, 2024
1 parent 845dead commit a6e5a64
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/lang/ca/components.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@
],

'drag_crop' => [
'label' => `Mode d'arrossegament "retallar"`,
'label' => 'Mode d\'arrossegament "retallar"',
],

'drag_move' => [
'label' => `Mode d'arrossegament "moure"`,
'label' => 'Mode d\'arrossegament "moure"',
],

'flip_horizontal' => [
Expand Down
20 changes: 20 additions & 0 deletions resources/views/components/tags-input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@
$hasInlineLabel = $hasInlineLabel();
$id = $getId();
$isDisabled = $isDisabled();
$isPrefixInline = $isPrefixInline();
$isReorderable = $isReorderable();
$isSuffixInline = $isSuffixInline();
$prefixActions = $getPrefixActions();
$prefixIcon = $getPrefixIcon();
$prefixLabel = $getPrefixLabel();
$statePath = $getStatePath();
$suffixActions = $getSuffixActions();
$suffixIcon = $getSuffixIcon();
$suffixLabel = $getSuffixLabel();
@endphp

<x-dynamic-component
Expand All @@ -25,6 +33,16 @@

<x-filament::input.wrapper
:disabled="$isDisabled"
:inline-prefix="$isPrefixInline"
:inline-suffix="$isSuffixInline"
:prefix="$prefixLabel"
:prefix-actions="$prefixActions"
:prefix-icon="$prefixIcon"
:prefix-icon-color="$getPrefixIconColor()"
:suffix="$suffixLabel"
:suffix-actions="$suffixActions"
:suffix-icon="$suffixIcon"
:suffix-icon-color="$getSuffixIconColor()"
:valid="! $errors->has($statePath)"
:attributes="
\Filament\Support\prepare_inherited_attributes($attributes)
Expand All @@ -51,6 +69,8 @@
:autofocus="$isAutofocused()"
:disabled="$isDisabled"
:id="$id"
:inline-prefix="$isPrefixInline && (count($prefixActions) || $prefixIcon || filled($prefixLabel))"
:inline-suffix="$isSuffixInline && (count($suffixActions) || $suffixIcon || filled($suffixLabel))"
:list="$id . '-suggestions'"
:placeholder="$getPlaceholder()"
type="text"
Expand Down
3 changes: 2 additions & 1 deletion src/Components/TagsInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
use Filament\Support\Concerns\HasReorderAnimationDuration;
use Illuminate\Contracts\Support\Arrayable;

class TagsInput extends Field implements Contracts\HasNestedRecursiveValidationRules
class TagsInput extends Field implements Contracts\HasAffixActions, Contracts\HasNestedRecursiveValidationRules
{
use Concerns\HasAffixes;
use Concerns\HasExtraInputAttributes;
use Concerns\HasNestedRecursiveValidationRules;
use Concerns\HasPlaceholder;
Expand Down

0 comments on commit a6e5a64

Please sign in to comment.