import wip
This commit is contained in:
1 parent
9b78ba69a6
commit
df55380236
3 files changed
+42
-41
No files matched your search
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\Projektes\Pages;
|
namespace App\Filament\Resources\Projektes\Pages;
|
||||||
|
|
||||||
use App\Actions\Helper\LineEndings;
|
|
||||||
use App\Actions\Validation\GutachtenValidation;
|
use App\Actions\Validation\GutachtenValidation;
|
||||||
use App\Filament\Imports\ProjektAllgemeinflaechenImporter;
|
use App\Filament\Imports\ProjektAllgemeinflaechenImporter;
|
||||||
use App\Filament\Imports\ProjektObjekteImDetailImporter;
|
use App\Filament\Imports\ProjektObjekteImDetailImporter;
|
||||||
@@ -17,10 +16,10 @@ use Filament\Actions\Action;
|
|||||||
use Filament\Actions\ActionGroup;
|
use Filament\Actions\ActionGroup;
|
||||||
use Filament\Actions\DeleteAction;
|
use Filament\Actions\DeleteAction;
|
||||||
use Filament\Actions\ImportAction;
|
use Filament\Actions\ImportAction;
|
||||||
|
use Filament\Forms\Components\Radio;
|
||||||
use Filament\Forms\Components\Textarea;
|
use Filament\Forms\Components\Textarea;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Filament\Resources\Pages\EditRecord;
|
use Filament\Resources\Pages\EditRecord;
|
||||||
use Filament\Schemas\Components\Utilities\Set;
|
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Validation\Rules\File;
|
use Illuminate\Validation\Rules\File;
|
||||||
use Livewire\Attributes\On;
|
use Livewire\Attributes\On;
|
||||||
@@ -42,27 +41,29 @@ class EditProjekte extends EditRecord
|
|||||||
*/
|
*/
|
||||||
ActionGroup::make([
|
ActionGroup::make([
|
||||||
Action::make('fix_line_endings')
|
Action::make('fix_line_endings')
|
||||||
->icon('phosphor-pencil')
|
->icon('phosphor-file-text')
|
||||||
->modalIcon('phosphor-file-csv')
|
->modalIcon('phosphor-file-csv')
|
||||||
->label('Zeilenumbrüche korrigieren')
|
->label('Daten direkt hochladen')
|
||||||
->schema([
|
->schema([
|
||||||
Textarea::make('text_in')
|
Radio::make('tabel_mode')
|
||||||
->label('CSV Text in')
|
->label('Tabellen Art')
|
||||||
->live()
|
->inline()
|
||||||
->afterStateUpdated(fn (Set $set, $state) => $set('text_out', LineEndings::convert($state)))
|
->options([
|
||||||
->rows(2),
|
'allgemein' => 'Allgemeinflächen',
|
||||||
Textarea::make('text_out')
|
'objekte_in_detail' => 'Objekte im Detail',
|
||||||
->label('CSV Text Out')
|
]),
|
||||||
|
Textarea::make('upload_data')
|
||||||
|
->label('Daten hier einfügen')
|
||||||
->extraInputAttributes(['onClick' => 'this.select()'])
|
->extraInputAttributes(['onClick' => 'this.select()'])
|
||||||
->rows(5),
|
->rows(5),
|
||||||
|
|
||||||
])->modalSubmitAction(false),
|
]),
|
||||||
ImportAction::make('import_allgemeinflaechen')
|
ImportAction::make('import_allgemeinflaechen')
|
||||||
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
->hidden(fn ($record): bool => $record->bezahlt_am ? false : true)
|
||||||
->importer(ProjektAllgemeinflaechenImporter::class)
|
->importer(ProjektAllgemeinflaechenImporter::class)
|
||||||
->csvDelimiter('|')
|
->csvDelimiter('|')
|
||||||
->modalIcon('phosphor-file-csv')
|
->modalIcon('phosphor-file-csv')
|
||||||
->modalHeading('Allgemeinflächen Import')
|
->modalHeading('Dokument Allgemeinflächen Import')
|
||||||
->modalContent(view('filament.pages.actions.import-allgemeinflaechen'))
|
->modalContent(view('filament.pages.actions.import-allgemeinflaechen'))
|
||||||
->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen'))
|
->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen'))
|
||||||
->label('Allgemeinflächen')
|
->label('Allgemeinflächen')
|
||||||
@@ -107,7 +108,7 @@ class EditProjekte extends EditRecord
|
|||||||
->importer(ProjektObjekteImDetailImporter::class)
|
->importer(ProjektObjekteImDetailImporter::class)
|
||||||
->csvDelimiter('|')
|
->csvDelimiter('|')
|
||||||
->modalIcon('phosphor-file-csv')
|
->modalIcon('phosphor-file-csv')
|
||||||
->modalHeading('Objekte im Detail Import')
|
->modalHeading('Dokument Objekte im Detail Import')
|
||||||
->modalContent(view('filament.pages.actions.import-objektemitraeumen'))
|
->modalContent(view('filament.pages.actions.import-objektemitraeumen'))
|
||||||
->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen'))
|
->modalContentFooter(view('filament.pages.actions.footer-allgemeinflaechen'))
|
||||||
->label('Objekte')
|
->label('Objekte')
|
||||||
|
|||||||
Vendored
+21
-21
@@ -531,7 +531,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::WNjcwX2VFgjs4kja',
|
'_route' => 'generated::rKcYFYxq66iyTy6k',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -551,7 +551,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::UlBxQfEwAj7ScGOG',
|
'_route' => 'generated::yK5CVRfU8mVGKJ7y',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -609,7 +609,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::PEFi2rK95kWPDG5T',
|
'_route' => 'generated::OMFkFNUUPqJbGghK',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -629,7 +629,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::seesHDjYbxvq1j23',
|
'_route' => 'generated::T2CBeTJ3Y5au3fTB',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -649,7 +649,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::D5cyzO1IRwQq8Xb7',
|
'_route' => 'generated::q0ucPBmJRhhJdWJu',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -669,7 +669,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::SZbqiestpY9Pxa6D',
|
'_route' => 'generated::W3VAdnMOWclqaIzO',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -689,7 +689,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'_route' => 'generated::7M9OJZGdWxBN76q5',
|
'_route' => 'generated::MSyQneC8KkRUCozm',
|
||||||
),
|
),
|
||||||
1 => NULL,
|
1 => NULL,
|
||||||
2 =>
|
2 =>
|
||||||
@@ -2757,7 +2757,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::WNjcwX2VFgjs4kja' =>
|
'generated::rKcYFYxq66iyTy6k' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -2769,7 +2769,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
|
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
|
||||||
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
|
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@returnJavaScriptAsFile',
|
||||||
'as' => 'generated::WNjcwX2VFgjs4kja',
|
'as' => 'generated::rKcYFYxq66iyTy6k',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -2785,7 +2785,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::UlBxQfEwAj7ScGOG' =>
|
'generated::yK5CVRfU8mVGKJ7y' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -2797,7 +2797,7 @@ app('router')->setCompiledRoutes(
|
|||||||
array (
|
array (
|
||||||
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
|
'uses' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
|
||||||
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
|
'controller' => 'Livewire\\Mechanisms\\FrontendAssets\\FrontendAssets@maps',
|
||||||
'as' => 'generated::UlBxQfEwAj7ScGOG',
|
'as' => 'generated::yK5CVRfU8mVGKJ7y',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -2899,7 +2899,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::PEFi2rK95kWPDG5T' =>
|
'generated::OMFkFNUUPqJbGghK' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -2928,7 +2928,7 @@ app('router')->setCompiledRoutes(
|
|||||||
\'exception\' => $exception,
|
\'exception\' => $exception,
|
||||||
]), status: $exception ? 500 : 200);
|
]), status: $exception ? 500 : 200);
|
||||||
}";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"000000000000103e0000000000000000";}}',
|
}";s:5:"scope";s:54:"Illuminate\\Foundation\\Configuration\\ApplicationBuilder";s:4:"this";N;s:4:"self";s:32:"000000000000103e0000000000000000";}}',
|
||||||
'as' => 'generated::PEFi2rK95kWPDG5T',
|
'as' => 'generated::OMFkFNUUPqJbGghK',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -2944,7 +2944,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::seesHDjYbxvq1j23' =>
|
'generated::T2CBeTJ3Y5au3fTB' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -2966,7 +2966,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'where' =>
|
'where' =>
|
||||||
array (
|
array (
|
||||||
),
|
),
|
||||||
'as' => 'generated::seesHDjYbxvq1j23',
|
'as' => 'generated::T2CBeTJ3Y5au3fTB',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -2982,7 +2982,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::D5cyzO1IRwQq8Xb7' =>
|
'generated::q0ucPBmJRhhJdWJu' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -3004,7 +3004,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'where' =>
|
'where' =>
|
||||||
array (
|
array (
|
||||||
),
|
),
|
||||||
'as' => 'generated::D5cyzO1IRwQq8Xb7',
|
'as' => 'generated::q0ucPBmJRhhJdWJu',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -3020,7 +3020,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::SZbqiestpY9Pxa6D' =>
|
'generated::W3VAdnMOWclqaIzO' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -3042,7 +3042,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'where' =>
|
'where' =>
|
||||||
array (
|
array (
|
||||||
),
|
),
|
||||||
'as' => 'generated::SZbqiestpY9Pxa6D',
|
'as' => 'generated::W3VAdnMOWclqaIzO',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
@@ -3058,7 +3058,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'waitSeconds' => NULL,
|
'waitSeconds' => NULL,
|
||||||
'withTrashed' => false,
|
'withTrashed' => false,
|
||||||
),
|
),
|
||||||
'generated::7M9OJZGdWxBN76q5' =>
|
'generated::MSyQneC8KkRUCozm' =>
|
||||||
array (
|
array (
|
||||||
'methods' =>
|
'methods' =>
|
||||||
array (
|
array (
|
||||||
@@ -3080,7 +3080,7 @@ app('router')->setCompiledRoutes(
|
|||||||
'where' =>
|
'where' =>
|
||||||
array (
|
array (
|
||||||
),
|
),
|
||||||
'as' => 'generated::7M9OJZGdWxBN76q5',
|
'as' => 'generated::MSyQneC8KkRUCozm',
|
||||||
),
|
),
|
||||||
'fallback' => false,
|
'fallback' => false,
|
||||||
'defaults' =>
|
'defaults' =>
|
||||||
|
|||||||
Generated
+6
-6
@@ -10750,16 +10750,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pestphp/pest",
|
"name": "pestphp/pest",
|
||||||
"version": "v4.5.0",
|
"version": "v4.6.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/pestphp/pest.git",
|
"url": "https://github.com/pestphp/pest.git",
|
||||||
"reference": "13c322bab3ac4496f89279c0b6ac31b89ce8aa95"
|
"reference": "4e03cd3edbae9bb9e024660a6380ebb5832a6df9"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/pestphp/pest/zipball/13c322bab3ac4496f89279c0b6ac31b89ce8aa95",
|
"url": "https://api.github.com/repos/pestphp/pest/zipball/4e03cd3edbae9bb9e024660a6380ebb5832a6df9",
|
||||||
"reference": "13c322bab3ac4496f89279c0b6ac31b89ce8aa95",
|
"reference": "4e03cd3edbae9bb9e024660a6380ebb5832a6df9",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -10851,7 +10851,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/pestphp/pest/issues",
|
"issues": "https://github.com/pestphp/pest/issues",
|
||||||
"source": "https://github.com/pestphp/pest/tree/v4.5.0"
|
"source": "https://github.com/pestphp/pest/tree/v4.6.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -10863,7 +10863,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2026-04-10T19:51:40+00:00"
|
"time": "2026-04-14T17:23:26+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "pestphp/pest-plugin",
|
"name": "pestphp/pest-plugin",
|
||||||
|
|||||||
Reference in new issue
Block a user