Phase 0: Fundament für Inhaus
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7197eaebf2
commit
9c0f8de791
15771 changed files with 1564103 additions and 5 deletions
51
vendor/filament/widgets/src/ChartWidget/Concerns/HasEmptyState.php
vendored
Normal file
51
vendor/filament/widgets/src/ChartWidget/Concerns/HasEmptyState.php
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
namespace Filament\Widgets\ChartWidget\Concerns;
|
||||
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\ActionGroup;
|
||||
use Filament\Support\Facades\FilamentIcon;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Widgets\View\WidgetsIconAlias;
|
||||
use Illuminate\Contracts\Support\Htmlable;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
trait HasEmptyState
|
||||
{
|
||||
protected ?string $emptyStateDescription = null;
|
||||
|
||||
protected ?string $emptyStateHeading = null;
|
||||
|
||||
protected string | BackedEnum | null $emptyStateIcon = null;
|
||||
|
||||
public function getEmptyState(): View | Htmlable | null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<Action | ActionGroup>
|
||||
*/
|
||||
public function getEmptyStateActions(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getEmptyStateDescription(): string | Htmlable | null
|
||||
{
|
||||
return $this->emptyStateDescription;
|
||||
}
|
||||
|
||||
public function getEmptyStateHeading(): string | Htmlable
|
||||
{
|
||||
return $this->emptyStateHeading ?? __('filament-widgets::chart.empty.heading');
|
||||
}
|
||||
|
||||
public function getEmptyStateIcon(): string | BackedEnum | Htmlable
|
||||
{
|
||||
return $this->emptyStateIcon
|
||||
?? FilamentIcon::resolve(WidgetsIconAlias::CHART_WIDGET_EMPTY_STATE)
|
||||
?? Heroicon::OutlinedXMark;
|
||||
}
|
||||
}
|
||||
122
vendor/filament/widgets/src/ChartWidget/Concerns/HasFiltersSchema.php
vendored
Normal file
122
vendor/filament/widgets/src/ChartWidget/Concerns/HasFiltersSchema.php
vendored
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
<?php
|
||||
|
||||
namespace Filament\Widgets\ChartWidget\Concerns;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Facades\FilamentIcon;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Widgets\View\WidgetsIconAlias;
|
||||
|
||||
trait HasFiltersSchema /** @phpstan-ignore trait.unused */
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed> | null
|
||||
*/
|
||||
public ?array $filters = [];
|
||||
|
||||
/**
|
||||
* @var array<string, mixed> | null
|
||||
*/
|
||||
public ?array $deferredFilters = null;
|
||||
|
||||
public function filtersSchema(Schema $schema): Schema
|
||||
{
|
||||
return $schema;
|
||||
}
|
||||
|
||||
public function hasDeferredFilters(): bool
|
||||
{
|
||||
return property_exists($this, 'hasDeferredFilters') && $this->hasDeferredFilters;
|
||||
}
|
||||
|
||||
public function mountHasFiltersSchema(): void
|
||||
{
|
||||
$this->getFiltersSchema()->fill();
|
||||
|
||||
if ($this->hasDeferredFilters()) {
|
||||
$this->filters = $this->deferredFilters;
|
||||
}
|
||||
}
|
||||
|
||||
public function getFiltersTriggerAction(): Action
|
||||
{
|
||||
return Action::make('filter')
|
||||
->label(__('filament-widgets::chart.actions.filter.label'))
|
||||
->iconButton()
|
||||
->icon(FilamentIcon::resolve(WidgetsIconAlias::CHART_WIDGET_FILTER) ?? Heroicon::Funnel)
|
||||
->color('gray')
|
||||
->livewireClickHandlerEnabled(false);
|
||||
}
|
||||
|
||||
public function getFiltersSchema(): Schema
|
||||
{
|
||||
if ((! $this->isCachingSchemas) && $this->hasCachedSchema('filtersSchema')) {
|
||||
return $this->getSchema('filtersSchema');
|
||||
}
|
||||
|
||||
return $this->filtersSchema($this->makeSchema())
|
||||
->when(
|
||||
$this->hasDeferredFilters(),
|
||||
fn (Schema $schema) => $schema
|
||||
->statePath('deferredFilters')
|
||||
->partiallyRender(),
|
||||
fn (Schema $schema) => $schema
|
||||
->statePath('filters')
|
||||
->live(),
|
||||
);
|
||||
}
|
||||
|
||||
public function updatedFilters(): void
|
||||
{
|
||||
$this->cachedData = null;
|
||||
}
|
||||
|
||||
public function applyFilters(): void
|
||||
{
|
||||
$this->filters = $this->deferredFilters;
|
||||
$this->cachedData = null;
|
||||
}
|
||||
|
||||
public function resetFiltersForm(): void
|
||||
{
|
||||
$this->getFiltersSchema()->fill();
|
||||
|
||||
if ($this->hasDeferredFilters()) {
|
||||
$this->applyFilters();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->cachedData = null;
|
||||
}
|
||||
|
||||
public function getFiltersApplyAction(): Action
|
||||
{
|
||||
$action = Action::make('applyFilters')
|
||||
->label(__('filament-widgets::chart.filters.actions.apply.label'))
|
||||
->action('applyFilters')
|
||||
->button();
|
||||
|
||||
if (method_exists($this, 'filtersApplyAction')) {
|
||||
$action = $this->filtersApplyAction($action);
|
||||
}
|
||||
|
||||
return $action;
|
||||
}
|
||||
|
||||
public function getFiltersResetAction(): Action
|
||||
{
|
||||
$action = Action::make('resetFilters')
|
||||
->label(__('filament-widgets::chart.filters.actions.reset.label'))
|
||||
->action('resetFiltersForm')
|
||||
->color('danger')
|
||||
->button();
|
||||
|
||||
if (method_exists($this, 'filtersResetAction')) {
|
||||
$action = $this->filtersResetAction($action);
|
||||
}
|
||||
|
||||
return $action;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue