mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge branch '3.x' into 4.x
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Psr\Log\LogLevel;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
@@ -10,7 +11,7 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* A list of exception types with their corresponding custom log levels.
|
||||
*
|
||||
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
|
||||
* @var array<class-string<Throwable>, LogLevel::*>
|
||||
*/
|
||||
protected $levels = [
|
||||
//
|
||||
@@ -19,7 +20,7 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* A list of the exception types that are not reported.
|
||||
*
|
||||
* @var array<int, class-string<\Throwable>>
|
||||
* @var array<int, class-string<Throwable>>
|
||||
*/
|
||||
protected $dontReport = [
|
||||
//
|
||||
|
||||
@@ -13,7 +13,7 @@ class RedirectIfAuthenticated
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
|
||||
* @param Closure(Request): (Response) $next
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, string ...$guards): Response
|
||||
{
|
||||
|
||||
Generated
+122
-117
@@ -1045,16 +1045,16 @@
|
||||
},
|
||||
{
|
||||
"name": "dragonmantank/cron-expression",
|
||||
"version": "v3.3.3",
|
||||
"version": "v3.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dragonmantank/cron-expression.git",
|
||||
"reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a"
|
||||
"reference": "8c784d071debd117328803d86b2097615b457500"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/adfb1f505deb6384dc8b39804c5065dd3c8c8c0a",
|
||||
"reference": "adfb1f505deb6384dc8b39804c5065dd3c8c8c0a",
|
||||
"url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/8c784d071debd117328803d86b2097615b457500",
|
||||
"reference": "8c784d071debd117328803d86b2097615b457500",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1067,10 +1067,14 @@
|
||||
"require-dev": {
|
||||
"phpstan/extension-installer": "^1.0",
|
||||
"phpstan/phpstan": "^1.0",
|
||||
"phpstan/phpstan-webmozart-assert": "^1.0",
|
||||
"phpunit/phpunit": "^7.0|^8.0|^9.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Cron\\": "src/Cron/"
|
||||
@@ -1094,7 +1098,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/dragonmantank/cron-expression/issues",
|
||||
"source": "https://github.com/dragonmantank/cron-expression/tree/v3.3.3"
|
||||
"source": "https://github.com/dragonmantank/cron-expression/tree/v3.4.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1102,7 +1106,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2023-08-10T19:36:49+00:00"
|
||||
"time": "2024-10-09T13:47:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "egulias/email-validator",
|
||||
@@ -1873,16 +1877,16 @@
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/promises",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/promises.git",
|
||||
"reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8"
|
||||
"reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
|
||||
"reference": "6ea8dd08867a2a42619d65c3deb2c0fcbf81c8f8",
|
||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455",
|
||||
"reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1936,7 +1940,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/guzzle/promises/issues",
|
||||
"source": "https://github.com/guzzle/promises/tree/2.0.3"
|
||||
"source": "https://github.com/guzzle/promises/tree/2.0.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -1952,7 +1956,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-07-18T10:29:17+00:00"
|
||||
"time": "2024-10-17T10:06:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/psr7",
|
||||
@@ -2220,16 +2224,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/framework",
|
||||
"version": "v10.48.22",
|
||||
"version": "v10.48.23",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/framework.git",
|
||||
"reference": "c4ea52bb044faef4a103d7dd81746c01b2ec860e"
|
||||
"reference": "625269ca4881d2b50eded2045cb930960a181d98"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/c4ea52bb044faef4a103d7dd81746c01b2ec860e",
|
||||
"reference": "c4ea52bb044faef4a103d7dd81746c01b2ec860e",
|
||||
"url": "https://api.github.com/repos/laravel/framework/zipball/625269ca4881d2b50eded2045cb930960a181d98",
|
||||
"reference": "625269ca4881d2b50eded2045cb930960a181d98",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2423,7 +2427,7 @@
|
||||
"issues": "https://github.com/laravel/framework/issues",
|
||||
"source": "https://github.com/laravel/framework"
|
||||
},
|
||||
"time": "2024-09-12T15:00:09+00:00"
|
||||
"time": "2024-11-12T15:39:10+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/prompts",
|
||||
@@ -2551,16 +2555,16 @@
|
||||
},
|
||||
{
|
||||
"name": "laravel/serializable-closure",
|
||||
"version": "v1.3.5",
|
||||
"version": "v1.3.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/laravel/serializable-closure.git",
|
||||
"reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c"
|
||||
"reference": "f865a58ea3a0107c336b7045104c75243fa59d96"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c",
|
||||
"reference": "1dc4a3dbfa2b7628a3114e43e32120cce7cdda9c",
|
||||
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/f865a58ea3a0107c336b7045104c75243fa59d96",
|
||||
"reference": "f865a58ea3a0107c336b7045104c75243fa59d96",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2608,7 +2612,7 @@
|
||||
"issues": "https://github.com/laravel/serializable-closure/issues",
|
||||
"source": "https://github.com/laravel/serializable-closure"
|
||||
},
|
||||
"time": "2024-09-23T13:33:08+00:00"
|
||||
"time": "2024-11-11T17:06:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laravel/tinker",
|
||||
@@ -3459,16 +3463,16 @@
|
||||
},
|
||||
{
|
||||
"name": "monolog/monolog",
|
||||
"version": "3.7.0",
|
||||
"version": "3.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Seldaek/monolog.git",
|
||||
"reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8"
|
||||
"reference": "32e515fdc02cdafbe4593e30a9350d486b125b67"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/f4393b648b78a5408747de94fca38beb5f7e9ef8",
|
||||
"reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8",
|
||||
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/32e515fdc02cdafbe4593e30a9350d486b125b67",
|
||||
"reference": "32e515fdc02cdafbe4593e30a9350d486b125b67",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3488,12 +3492,14 @@
|
||||
"guzzlehttp/psr7": "^2.2",
|
||||
"mongodb/mongodb": "^1.8",
|
||||
"php-amqplib/php-amqplib": "~2.4 || ^3",
|
||||
"phpstan/phpstan": "^1.9",
|
||||
"phpstan/phpstan-deprecation-rules": "^1.0",
|
||||
"phpstan/phpstan-strict-rules": "^1.4",
|
||||
"phpunit/phpunit": "^10.5.17",
|
||||
"php-console/php-console": "^3.1.8",
|
||||
"phpstan/phpstan": "^2",
|
||||
"phpstan/phpstan-deprecation-rules": "^2",
|
||||
"phpstan/phpstan-strict-rules": "^2",
|
||||
"phpunit/phpunit": "^10.5.17 || ^11.0.7",
|
||||
"predis/predis": "^1.1 || ^2",
|
||||
"ruflin/elastica": "^7",
|
||||
"rollbar/rollbar": "^4.0",
|
||||
"ruflin/elastica": "^7 || ^8",
|
||||
"symfony/mailer": "^5.4 || ^6",
|
||||
"symfony/mime": "^5.4 || ^6"
|
||||
},
|
||||
@@ -3544,7 +3550,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/Seldaek/monolog/issues",
|
||||
"source": "https://github.com/Seldaek/monolog/tree/3.7.0"
|
||||
"source": "https://github.com/Seldaek/monolog/tree/3.8.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3556,7 +3562,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-06-28T09:40:51+00:00"
|
||||
"time": "2024-11-12T13:57:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
@@ -3873,33 +3879,32 @@
|
||||
},
|
||||
{
|
||||
"name": "nunomaduro/termwind",
|
||||
"version": "v1.15.1",
|
||||
"version": "v1.16.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nunomaduro/termwind.git",
|
||||
"reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc"
|
||||
"reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nunomaduro/termwind/zipball/8ab0b32c8caa4a2e09700ea32925441385e4a5dc",
|
||||
"reference": "8ab0b32c8caa4a2e09700ea32925441385e4a5dc",
|
||||
"url": "https://api.github.com/repos/nunomaduro/termwind/zipball/dcf1ec3dfa36137b7ce41d43866644a7ab8fc257",
|
||||
"reference": "dcf1ec3dfa36137b7ce41d43866644a7ab8fc257",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-mbstring": "*",
|
||||
"php": "^8.0",
|
||||
"symfony/console": "^5.3.0|^6.0.0"
|
||||
"php": "^8.1",
|
||||
"symfony/console": "^6.4.12"
|
||||
},
|
||||
"require-dev": {
|
||||
"ergebnis/phpstan-rules": "^1.0.",
|
||||
"illuminate/console": "^8.0|^9.0",
|
||||
"illuminate/support": "^8.0|^9.0",
|
||||
"laravel/pint": "^1.0.0",
|
||||
"pestphp/pest": "^1.21.0",
|
||||
"pestphp/pest-plugin-mock": "^1.0",
|
||||
"phpstan/phpstan": "^1.4.6",
|
||||
"phpstan/phpstan-strict-rules": "^1.1.0",
|
||||
"symfony/var-dumper": "^5.2.7|^6.0.0",
|
||||
"illuminate/console": "^10.48.22",
|
||||
"illuminate/support": "^10.48.22",
|
||||
"laravel/pint": "^1.18.1",
|
||||
"pestphp/pest": "^2",
|
||||
"pestphp/pest-plugin-mock": "2.0.0",
|
||||
"phpstan/phpstan": "^1.12.6",
|
||||
"phpstan/phpstan-strict-rules": "^1.6.1",
|
||||
"symfony/var-dumper": "^6.4.11",
|
||||
"thecodingmachine/phpstan-strict-rules": "^1.0.0"
|
||||
},
|
||||
"type": "library",
|
||||
@@ -3939,7 +3944,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nunomaduro/termwind/issues",
|
||||
"source": "https://github.com/nunomaduro/termwind/tree/v1.15.1"
|
||||
"source": "https://github.com/nunomaduro/termwind/tree/v1.16.0"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -3955,7 +3960,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2023-02-08T01:06:31+00:00"
|
||||
"time": "2024-10-15T15:27:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "openspout/openspout",
|
||||
@@ -5148,16 +5153,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/console.git",
|
||||
"reference": "72d080eb9edf80e36c19be61f72c98ed8273b765"
|
||||
"reference": "897c2441ed4eec8a8a2c37b943427d24dba3f26b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/72d080eb9edf80e36c19be61f72c98ed8273b765",
|
||||
"reference": "72d080eb9edf80e36c19be61f72c98ed8273b765",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/897c2441ed4eec8a8a2c37b943427d24dba3f26b",
|
||||
"reference": "897c2441ed4eec8a8a2c37b943427d24dba3f26b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5222,7 +5227,7 @@
|
||||
"terminal"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/console/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/console/tree/v6.4.14"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5238,20 +5243,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-20T08:15:52+00:00"
|
||||
"time": "2024-11-05T15:34:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/css-selector",
|
||||
"version": "v7.1.1",
|
||||
"version": "v7.1.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/css-selector.git",
|
||||
"reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4"
|
||||
"reference": "4aa4f6b3d6749c14d3aa815eef8226632e7bbc66"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/css-selector/zipball/1c7cee86c6f812896af54434f8ce29c8d94f9ff4",
|
||||
"reference": "1c7cee86c6f812896af54434f8ce29c8d94f9ff4",
|
||||
"url": "https://api.github.com/repos/symfony/css-selector/zipball/4aa4f6b3d6749c14d3aa815eef8226632e7bbc66",
|
||||
"reference": "4aa4f6b3d6749c14d3aa815eef8226632e7bbc66",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5287,7 +5292,7 @@
|
||||
"description": "Converts CSS selectors to XPath expressions",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/css-selector/tree/v7.1.1"
|
||||
"source": "https://github.com/symfony/css-selector/tree/v7.1.6"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5303,7 +5308,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-05-31T14:57:53+00:00"
|
||||
"time": "2024-09-25T14:20:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
@@ -5374,16 +5379,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/error-handler",
|
||||
"version": "v6.4.10",
|
||||
"version": "v6.4.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/error-handler.git",
|
||||
"reference": "231f1b2ee80f72daa1972f7340297d67439224f0"
|
||||
"reference": "9e024324511eeb00983ee76b9aedc3e6ecd993d9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/error-handler/zipball/231f1b2ee80f72daa1972f7340297d67439224f0",
|
||||
"reference": "231f1b2ee80f72daa1972f7340297d67439224f0",
|
||||
"url": "https://api.github.com/repos/symfony/error-handler/zipball/9e024324511eeb00983ee76b9aedc3e6ecd993d9",
|
||||
"reference": "9e024324511eeb00983ee76b9aedc3e6ecd993d9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5429,7 +5434,7 @@
|
||||
"description": "Provides tools to manage errors and ease debugging PHP code",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/error-handler/tree/v6.4.10"
|
||||
"source": "https://github.com/symfony/error-handler/tree/v6.4.14"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5445,20 +5450,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-07-26T12:30:32+00:00"
|
||||
"time": "2024-11-05T15:34:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v7.1.1",
|
||||
"version": "v7.1.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7"
|
||||
"reference": "87254c78dd50721cfd015b62277a8281c5589702"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7",
|
||||
"reference": "9fa7f7a21beb22a39a8f3f28618b29e50d7a55a7",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/87254c78dd50721cfd015b62277a8281c5589702",
|
||||
"reference": "87254c78dd50721cfd015b62277a8281c5589702",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5509,7 +5514,7 @@
|
||||
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/event-dispatcher/tree/v7.1.1"
|
||||
"source": "https://github.com/symfony/event-dispatcher/tree/v7.1.6"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5525,7 +5530,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-05-31T14:57:53+00:00"
|
||||
"time": "2024-09-25T14:20:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher-contracts",
|
||||
@@ -5605,16 +5610,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/finder",
|
||||
"version": "v6.4.11",
|
||||
"version": "v6.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/finder.git",
|
||||
"reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453"
|
||||
"reference": "daea9eca0b08d0ed1dc9ab702a46128fd1be4958"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/d7eb6daf8cd7e9ac4976e9576b32042ef7253453",
|
||||
"reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453",
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/daea9eca0b08d0ed1dc9ab702a46128fd1be4958",
|
||||
"reference": "daea9eca0b08d0ed1dc9ab702a46128fd1be4958",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5649,7 +5654,7 @@
|
||||
"description": "Finds files and directories via an intuitive fluent interface",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/finder/tree/v6.4.11"
|
||||
"source": "https://github.com/symfony/finder/tree/v6.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5665,7 +5670,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-08-13T14:27:37+00:00"
|
||||
"time": "2024-10-01T08:30:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/html-sanitizer",
|
||||
@@ -5815,16 +5820,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/http-kernel",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/http-kernel.git",
|
||||
"reference": "96df83d51b5f78804f70c093b97310794fd6257b"
|
||||
"reference": "8278a947d0369754a47b758a9e17b72cab970951"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/96df83d51b5f78804f70c093b97310794fd6257b",
|
||||
"reference": "96df83d51b5f78804f70c093b97310794fd6257b",
|
||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/8278a947d0369754a47b758a9e17b72cab970951",
|
||||
"reference": "8278a947d0369754a47b758a9e17b72cab970951",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5909,7 +5914,7 @@
|
||||
"description": "Provides a structured process for converting a Request into a Response",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/http-kernel/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/http-kernel/tree/v6.4.14"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -5925,20 +5930,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-21T06:02:57+00:00"
|
||||
"time": "2024-11-06T09:45:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/mailer",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/mailer.git",
|
||||
"reference": "b6a25408c569ae2366b3f663a4edad19420a9c26"
|
||||
"reference": "c2f7e0d8d7ac8fe25faccf5d8cac462805db2663"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/mailer/zipball/b6a25408c569ae2366b3f663a4edad19420a9c26",
|
||||
"reference": "b6a25408c569ae2366b3f663a4edad19420a9c26",
|
||||
"url": "https://api.github.com/repos/symfony/mailer/zipball/c2f7e0d8d7ac8fe25faccf5d8cac462805db2663",
|
||||
"reference": "c2f7e0d8d7ac8fe25faccf5d8cac462805db2663",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5989,7 +5994,7 @@
|
||||
"description": "Helps sending emails",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/mailer/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/mailer/tree/v6.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -6005,7 +6010,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-08T12:30:05+00:00"
|
||||
"time": "2024-09-25T14:18:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/mime",
|
||||
@@ -6791,16 +6796,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/routing",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/routing.git",
|
||||
"reference": "a7c8036bd159486228dc9be3e846a00a0dda9f9f"
|
||||
"reference": "640a74250d13f9c30d5ca045b6aaaabcc8215278"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/routing/zipball/a7c8036bd159486228dc9be3e846a00a0dda9f9f",
|
||||
"reference": "a7c8036bd159486228dc9be3e846a00a0dda9f9f",
|
||||
"url": "https://api.github.com/repos/symfony/routing/zipball/640a74250d13f9c30d5ca045b6aaaabcc8215278",
|
||||
"reference": "640a74250d13f9c30d5ca045b6aaaabcc8215278",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -6854,7 +6859,7 @@
|
||||
"url"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/routing/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/routing/tree/v6.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -6870,7 +6875,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-20T08:32:26+00:00"
|
||||
"time": "2024-10-01T08:30:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
@@ -7044,16 +7049,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/translation",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/translation.git",
|
||||
"reference": "cf8360b8352b086be620fae8342c4d96e391a489"
|
||||
"reference": "bee9bfabfa8b4045a66bf82520e492cddbaffa66"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/cf8360b8352b086be620fae8342c4d96e391a489",
|
||||
"reference": "cf8360b8352b086be620fae8342c4d96e391a489",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/bee9bfabfa8b4045a66bf82520e492cddbaffa66",
|
||||
"reference": "bee9bfabfa8b4045a66bf82520e492cddbaffa66",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7119,7 +7124,7 @@
|
||||
"description": "Provides tools to internationalize your application",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/translation/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/translation/tree/v6.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -7135,7 +7140,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-16T06:02:54+00:00"
|
||||
"time": "2024-09-27T18:14:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/translation-contracts",
|
||||
@@ -7217,16 +7222,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/uid",
|
||||
"version": "v6.4.12",
|
||||
"version": "v6.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/uid.git",
|
||||
"reference": "2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d"
|
||||
"reference": "18eb207f0436a993fffbdd811b5b8fa35fa5e007"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/uid/zipball/2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d",
|
||||
"reference": "2f16054e0a9b194b8ca581d4a64eee3f7d4a9d4d",
|
||||
"url": "https://api.github.com/repos/symfony/uid/zipball/18eb207f0436a993fffbdd811b5b8fa35fa5e007",
|
||||
"reference": "18eb207f0436a993fffbdd811b5b8fa35fa5e007",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7271,7 +7276,7 @@
|
||||
"uuid"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/uid/tree/v6.4.12"
|
||||
"source": "https://github.com/symfony/uid/tree/v6.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -7287,20 +7292,20 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-09-20T08:32:26+00:00"
|
||||
"time": "2024-09-25T14:18:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/var-dumper",
|
||||
"version": "v6.4.11",
|
||||
"version": "v6.4.14",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/var-dumper.git",
|
||||
"reference": "ee14c8254a480913268b1e3b1cba8045ed122694"
|
||||
"reference": "93c09246038178717a9c14b809ea8151ffcf7091"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/ee14c8254a480913268b1e3b1cba8045ed122694",
|
||||
"reference": "ee14c8254a480913268b1e3b1cba8045ed122694",
|
||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/93c09246038178717a9c14b809ea8151ffcf7091",
|
||||
"reference": "93c09246038178717a9c14b809ea8151ffcf7091",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -7356,7 +7361,7 @@
|
||||
"dump"
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/var-dumper/tree/v6.4.11"
|
||||
"source": "https://github.com/symfony/var-dumper/tree/v6.4.14"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -7372,7 +7377,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2024-08-30T16:03:21+00:00"
|
||||
"time": "2024-11-05T15:34:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "tijsverkoyen/css-to-inline-styles",
|
||||
|
||||
Generated
+41
-19
@@ -10,7 +10,7 @@
|
||||
"autoprefixer": "^10.4.7",
|
||||
"laravel-vite-plugin": "^0.7.2",
|
||||
"postcss": "^8.4.14",
|
||||
"postcss-nesting": "^12.0.1",
|
||||
"postcss-nesting": "^13.0.0",
|
||||
"tailwindcss": "^3.4.0",
|
||||
"vite": "^4.5.5"
|
||||
}
|
||||
@@ -710,9 +710,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/cross-spawn": {
|
||||
"version": "7.0.3",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||
"integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
|
||||
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
||||
"dependencies": {
|
||||
"path-key": "^3.1.0",
|
||||
"shebang-command": "^2.0.0",
|
||||
@@ -1387,9 +1387,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-nesting": {
|
||||
"version": "12.0.4",
|
||||
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.4.tgz",
|
||||
"integrity": "sha512-WuCe0KnP4vKjLZK8VNoUWKL8ZLOv/5jiM94mHcI3VszLropHwmjotdUyP/ObzqZpXuQKP2Jf9R12vIHKFSStKw==",
|
||||
"version": "13.0.1",
|
||||
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-13.0.1.tgz",
|
||||
"integrity": "sha512-VbqqHkOBOt4Uu3G8Dm8n6lU5+9cJFxiuty9+4rcoyRPO9zZS1JIs6td49VIoix3qYqELHlJIn46Oih9SAKo+yQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
@@ -1401,20 +1401,21 @@
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"@csstools/selector-specificity": "^3.0.2",
|
||||
"postcss-selector-parser": "^6.0.13"
|
||||
"@csstools/selector-resolve-nested": "^3.0.0",
|
||||
"@csstools/selector-specificity": "^5.0.0",
|
||||
"postcss-selector-parser": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^14 || ^16 || >=18"
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.4"
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-nesting/node_modules/@csstools/selector-specificity": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.2.tgz",
|
||||
"integrity": "sha512-RpHaZ1h9LE7aALeQXmXrJkRG84ZxIsctEN2biEUmFyKpzFM3zZ35eUMcIzZFsw/2olQE6v69+esEqU2f1MKycg==",
|
||||
"node_modules/postcss-nesting/node_modules/@csstools/selector-resolve-nested": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-3.0.0.tgz",
|
||||
"integrity": "sha512-ZoK24Yku6VJU1gS79a5PFmC8yn3wIapiKmPgun0hZgEI5AOqgH2kiPRsPz1qkGv4HL+wuDLH83yQyk6inMYrJQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
@@ -1426,16 +1427,37 @@
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": "^14 || ^16 || >=18"
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss-selector-parser": "^6.0.13"
|
||||
"postcss-selector-parser": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-nesting/node_modules/@csstools/selector-specificity": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-5.0.0.tgz",
|
||||
"integrity": "sha512-PCqQV3c4CoVm3kdPhyeZ07VmBRdH2EpMFA/pd9OASpOEC3aXNGoqPDAZ80D0cLpMBxnmk0+yNhGsEx31hq7Gtw==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/csstools"
|
||||
},
|
||||
{
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/csstools"
|
||||
}
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss-selector-parser": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/postcss-nesting/node_modules/postcss-selector-parser": {
|
||||
"version": "6.0.15",
|
||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.15.tgz",
|
||||
"integrity": "sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==",
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.0.0.tgz",
|
||||
"integrity": "sha512-9RbEr1Y7FFfptd/1eEdntyjMwLeghW1bHX9GWjXo19vx4ytPQhANltvVxDggzJl7mnWM+dX28kb6cyS/4iQjlQ==",
|
||||
"dependencies": {
|
||||
"cssesc": "^3.0.0",
|
||||
"util-deprecate": "^1.0.2"
|
||||
|
||||
@@ -54,7 +54,7 @@ Action::make('star')
|
||||
|
||||
## Replacing the default icons
|
||||
|
||||
Filament includes an icon management system that allows you to replace any icons are used by default in the UI with your own. This happens in the `boot()` method of any service provider, like `AppServiceProvider`, or even a dedicated service provider for icons. If you wanted to build a plugin to replace Heroicons with a different set, you could absolutely do that by creating a Laravel package with a similar service provider.
|
||||
Filament includes an icon management system that allows you to replace any icons that are used by default in the UI with your own. This happens in the `boot()` method of any service provider, like `AppServiceProvider`, or even a dedicated service provider for icons. If you wanted to build a plugin to replace Heroicons with a different set, you could absolutely do that by creating a Laravel package with a similar service provider.
|
||||
|
||||
To replace an icon, you can use the `FilamentIcon` facade. It has a `register()` method, which accepts an array of icons to replace. The key of the array is the unique [icon alias](#available-icon-aliases) that identifies the icon in the Filament UI, and the value is name of a Blade icon to replace it instead. Alternatively, you may use HTML instead of an icon name to render an icon from a Blade view for example:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ return [
|
||||
'placeholder' => 'Carregar un arxiu CSV',
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} El fitxer no ha de contenir més d\'un encapçalament de columna buit.|{1,*} El fitxer no ha de contenir encapçalaments de columna duplicats: :columns.',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
|
||||
@@ -62,12 +62,12 @@ return [
|
||||
|
||||
'max_rows' => [
|
||||
'title' => 'اکسپورت خیلی بزرگ است',
|
||||
'body' => 'شما نمی توانید بیش از 1 ردیف را به طور همزمان صادر کنید.|شما نمی توانید بیش از :count ردیف ها را همزمان صادر کنید.',
|
||||
'body' => 'شما نمی توانید بیش از 1 ردیف را به طور همزمان صادر کنید.|شما نمی توانید بیش از :count ردیف را به طور همزمان صادر کنید.',
|
||||
],
|
||||
|
||||
'started' => [
|
||||
'title' => 'اکسپورت آغاز شد',
|
||||
'body' => 'اکسپورت شما آغاز شده است و 1 ردیف در پسزمینه پردازش میشود.|اکسپورت شما آغاز شده است و ردیفهای :count در پسزمینه پردازش میشوند.',
|
||||
'body' => 'اکسپورت شما آغاز شده است و 1 ردیف در پسزمینه پردازش میشود.|اکسپورت شما آغاز شده است و :count ردیف در پسزمینه پردازش میشوند.',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
@@ -11,8 +11,15 @@ return [
|
||||
'form' => [
|
||||
|
||||
'file' => [
|
||||
|
||||
'label' => 'پرونده',
|
||||
|
||||
'placeholder' => 'آپلود یک فایل CSV',
|
||||
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} فایل نباید بیش از یک ستون با هدر خالی داشته باشد.|{1,*} فایل نباید شامل ستونهای با هدر تکراری باشد: :columns.',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
@@ -54,12 +61,12 @@ return [
|
||||
|
||||
'max_rows' => [
|
||||
'title' => 'فایل CSV آپلود شده خیلی بزرگ است',
|
||||
'body' => 'شما نمی توانید بیش از 1 ردیف را به طور همزمان وارد کنید.|شما نمی توانید بیش از :count ردیف ها را در یک زمان وارد کنید.',
|
||||
'body' => 'شما نمی توانید بیش از 1 ردیف را به طور همزمان وارد کنید.|شما نمی توانید بیش از :count ردیف را در یک زمان وارد کنید.',
|
||||
],
|
||||
|
||||
'started' => [
|
||||
'title' => 'ایمپورت آغاز شد',
|
||||
'body' => 'ایمپورت شما شروع شده است و 1 ردیف در پسزمینه پردازش میشود.|ایمپورت شما آغاز شده است و ردیفهای :count در پسزمینه پردازش میشوند.',
|
||||
'body' => 'ایمپورت شما شروع شده است و 1 ردیف در پسزمینه پردازش میشود.|ایمپورت شما آغاز شده است و :count ردیف در پسزمینه پردازش میشوند.',
|
||||
],
|
||||
|
||||
],
|
||||
@@ -71,7 +78,8 @@ return [
|
||||
'failure_csv' => [
|
||||
'file_name' => 'import-:import_id-:csv_name-failed-rows',
|
||||
'error_header' => 'خطا',
|
||||
'system_error' => 'خطای سیستمی, لطفا با پشتیبانی تماس بگیرید.',
|
||||
'system_error' => 'خطای سیستمی، لطفا با پشتیبانی تماس بگیرید.',
|
||||
'column_mapping_required_for_new_record' => 'ستون :attribute به هیچ ستونی در فایل نگاشت نشد، ولی وجود آن برای ایجاد رکوردهای جدید لازم است.',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -11,8 +11,15 @@ return [
|
||||
'form' => [
|
||||
|
||||
'file' => [
|
||||
|
||||
'label' => 'Berkas',
|
||||
|
||||
'placeholder' => 'Unggah berkas CSV',
|
||||
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} Berkas tidak boleh memiliki lebih dari satu kolom header yang kosong.|{1,*} Berkas tidak boleh memiliki kolom header yang duplikat: :columns.',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
@@ -72,6 +79,7 @@ return [
|
||||
'file_name' => 'impor-:import_id-:csv_name-gagal',
|
||||
'error_header' => 'kesalahan',
|
||||
'system_error' => 'Terjadi kesalahan sistem, harap hubungi tim support.',
|
||||
'column_mapping_required_for_new_record' => 'Kolom :attribute tidak dipetakan ke kolom dalam berkas, tetapi diperlukan untuk membuat data baru.',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -11,8 +11,14 @@ return [
|
||||
'form' => [
|
||||
|
||||
'file' => [
|
||||
|
||||
'label' => 'Fail',
|
||||
|
||||
'placeholder' => 'Muat naik fail CSV',
|
||||
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} Fail tidak boleh mengandungi lebih daripada satu pengepala lajur kosong.|{1,*} Fail tidak boleh mengandungi pengepala lajur pendua: :columns.',
|
||||
],
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
|
||||
@@ -11,8 +11,15 @@ return [
|
||||
'form' => [
|
||||
|
||||
'file' => [
|
||||
|
||||
'label' => 'Súbor',
|
||||
|
||||
'placeholder' => 'Nahrať CSV súbor',
|
||||
|
||||
'rules' => [
|
||||
'duplicate_columns' => '{0} Súbor nesmie obsahovať viac ako jeden prázdny názov stĺpca.|{1,*} Súbor nesmie obsahovať duplicitné názvy stĺpcov: :columns.',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'columns' => [
|
||||
@@ -72,6 +79,7 @@ return [
|
||||
'file_name' => 'import-:import_id-:csv_name-failed-rows',
|
||||
'error_header' => 'chyba',
|
||||
'system_error' => 'Chyba systému, prosím, kontaktujte podporu.',
|
||||
'column_mapping_required_for_new_record' => 'Stĺpec :attribute nebol namapovaný na stĺpec v súbore, ale je potrebný pre vytvorenie nových záznamov.',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -240,13 +240,15 @@ trait CanExportRecords
|
||||
)
|
||||
->dispatch();
|
||||
|
||||
Notification::make()
|
||||
->title($action->getSuccessNotificationTitle())
|
||||
->body(trans_choice('filament-actions::export.notifications.started.body', $export->total_rows, [
|
||||
'count' => Number::format($export->total_rows),
|
||||
]))
|
||||
->success()
|
||||
->send();
|
||||
if ($jobConnection !== 'sync') {
|
||||
Notification::make()
|
||||
->title($action->getSuccessNotificationTitle())
|
||||
->body(trans_choice('filament-actions::export.notifications.started.body', $export->total_rows, [
|
||||
'count' => Number::format($export->total_rows),
|
||||
]))
|
||||
->success()
|
||||
->send();
|
||||
}
|
||||
});
|
||||
|
||||
$this->color('gray');
|
||||
|
||||
@@ -74,6 +74,12 @@ class ExportCompletion implements ShouldQueue
|
||||
$this->formats,
|
||||
)),
|
||||
)
|
||||
->sendToDatabase($this->export->user, isEventDispatched: true);
|
||||
->when(
|
||||
$this->connection === 'sync',
|
||||
fn (Notification $notification) => $notification
|
||||
->persistent()
|
||||
->send(),
|
||||
fn (Notification $notification) => $notification->sendToDatabase($this->export->user, isEventDispatched: true),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -227,7 +227,7 @@
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar button::before {
|
||||
@apply block h-4 w-4 bg-gray-700 dark:bg-gray-300;
|
||||
@apply block h-5 w-5 bg-gray-700 dark:bg-gray-300;
|
||||
content: '';
|
||||
mask-position: center;
|
||||
mask-repeat: no-repeat;
|
||||
@@ -242,55 +242,55 @@
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .bold::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d%3D%22M321.1%20242.4C340.1%20220.1%20352%20191.6%20352%20160c0-70.59-57.42-128-128-128L32%2032.01c-17.67%200-32%2014.31-32%2032s14.33%2032%2032%2032h16v320H32c-17.67%200-32%2014.31-32%2032s14.33%2032%2032%2032h224c70.58%200%20128-57.41%20128-128C384%20305.3%20358.6%20264.8%20321.1%20242.4zM112%2096.01H224c35.3%200%2064%2028.72%2064%2064s-28.7%2064-64%2064H112V96.01zM256%20416H112v-128H256c35.3%200%2064%2028.71%2064%2063.1S291.3%20416%20256%20416z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M4 3a1 1 0 0 1 1-1h6a4.5 4.5 0 0 1 3.274 7.587A4.75 4.75 0 0 1 11.25 18H5a1 1 0 0 1-1-1V3Zm2.5 5.5v-4H11a2 2 0 1 1 0 4H6.5Zm0 2.5v4.5h4.75a2.25 2.25 0 0 0 0-4.5H6.5Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .italic::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d%3D%22M384%2064.01c0%2017.69-14.31%2032-32%2032h-58.67l-133.3%20320H224c17.69%200%2032%2014.31%2032%2032s-14.31%2032-32%2032H32c-17.69%200-32-14.31-32-32s14.31-32%2032-32h58.67l133.3-320H160c-17.69%200-32-14.31-32-32s14.31-32%2032-32h192C369.7%2032.01%20384%2046.33%20384%2064.01z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M8 2.75A.75.75 0 0 1 8.75 2h7.5a.75.75 0 0 1 0 1.5h-3.215l-4.483 13h2.698a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1 0-1.5h3.215l4.483-13H8.75A.75.75 0 0 1 8 2.75Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .strikethrough::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M332.2%20319.9c17.22%2012.17%2022.33%2026.51%2018.61%2048.21c-3.031%2017.59-10.88%2029.34-24.72%2036.99c-35.44%2019.75-108.5%2011.96-186-19.68c-16.34-6.686-35.03%201.156-41.72%2017.53s1.188%2035.05%2017.53%2041.71c31.75%2012.93%2095.69%2035.37%20157.6%2035.37c29.62%200%2058.81-5.156%2083.72-18.96c30.81-17.09%2050.44-45.46%2056.72-82.11c3.998-23.27%202.168-42.58-3.488-59.05H332.2zM488%20239.9l-176.5-.0309c-15.85-5.613-31.83-10.34-46.7-14.62c-85.47-24.62-110.9-39.05-103.7-81.33c2.5-14.53%2010.16-25.96%2022.72-34.03c20.47-13.15%2064.06-23.84%20155.4%20.3438c17.09%204.531%2034.59-5.654%2039.13-22.74c4.531-17.09-5.656-34.59-22.75-39.12c-91.31-24.18-160.7-21.62-206.3%207.654C121.8%2073.72%20103.6%20101.1%2098.09%20133.1C89.26%20184.5%20107.9%20217.3%20137.2%20239.9L24%20239.9c-13.25%200-24%2010.75-24%2023.1c0%2013.25%2010.75%2023.1%2024%2023.1h464c13.25%200%2024-10.75%2024-23.1C512%20250.7%20501.3%20239.9%20488%20239.9z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M11.617 3.963c-1.186-.318-2.418-.323-3.416.015-.992.336-1.49.91-1.642 1.476-.152.566-.007 1.313.684 2.1.528.6 1.273 1.1 2.128 1.446h7.879a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5h3.813a5.976 5.976 0 0 1-.447-.456C5.18 7.479 4.798 6.231 5.11 5.066c.312-1.164 1.268-2.055 2.61-2.509 1.336-.451 2.877-.42 4.286-.043.856.23 1.684.592 2.409 1.074a.75.75 0 1 1-.83 1.25 6.723 6.723 0 0 0-1.968-.875Zm1.909 8.123a.75.75 0 0 1 1.015.309c.53.99.607 2.062.18 3.01-.421.94-1.289 1.648-2.441 2.038-1.336.452-2.877.42-4.286.043-1.409-.377-2.759-1.121-3.69-2.18a.75.75 0 1 1 1.127-.99c.696.791 1.765 1.403 2.952 1.721 1.186.318 2.418.323 3.416-.015.853-.288 1.34-.756 1.555-1.232.21-.467.205-1.049-.136-1.69a.75.75 0 0 1 .308-1.014Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .link::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d%3D%22M598.6%2041.41C570.1%2013.8%20534.8%200%20498.6%200s-72.36%2013.8-99.96%2041.41l-43.36%2043.36c15.11%208.012%2029.47%2017.58%2041.91%2030.02c3.146%203.146%205.898%206.518%208.742%209.838l37.96-37.96C458.5%2072.05%20477.1%2064%20498.6%2064c20.67%200%2040.1%208.047%2054.71%2022.66c14.61%2014.61%2022.66%2034.04%2022.66%2054.71s-8.049%2040.1-22.66%2054.71l-133.3%20133.3C405.5%20343.1%20386%20352%20365.4%20352s-40.1-8.048-54.71-22.66C296%20314.7%20287.1%20295.3%20287.1%20274.6s8.047-40.1%2022.66-54.71L314.2%20216.4C312.1%20212.5%20309.9%20208.5%20306.7%20205.3C298.1%20196.7%20286.8%20192%20274.6%20192c-11.93%200-23.1%204.664-31.61%2012.97c-30.71%2053.96-23.63%20123.6%2022.39%20169.6C293%20402.2%20329.2%20416%20365.4%20416c36.18%200%2072.36-13.8%2099.96-41.41L598.6%20241.3c28.45-28.45%2042.24-66.01%2041.37-103.3C639.1%20102.1%20625.4%2068.16%20598.6%2041.41zM234%20387.4L196.1%20425.3C181.5%20439.1%20162%20448%20141.4%20448c-20.67%200-40.1-8.047-54.71-22.66c-14.61-14.61-22.66-34.04-22.66-54.71s8.049-40.1%2022.66-54.71l133.3-133.3C234.5%20168%20253.1%20160%20274.6%20160s40.1%208.048%2054.71%2022.66c14.62%2014.61%2022.66%2034.04%2022.66%2054.71s-8.047%2040.1-22.66%2054.71L325.8%20295.6c2.094%203.939%204.219%207.895%207.465%2011.15C341.9%20315.3%20353.3%20320%20365.4%20320c11.93%200%2023.1-4.664%2031.61-12.97c30.71-53.96%2023.63-123.6-22.39-169.6C346.1%20109.8%20310.8%2096%20274.6%2096C238.4%2096%20202.3%20109.8%20174.7%20137.4L41.41%20270.7c-27.6%2027.6-41.41%2063.78-41.41%2099.96c-.0001%2036.18%2013.8%2072.36%2041.41%2099.97C69.01%20498.2%20105.2%20512%20141.4%20512c36.18%200%2072.36-13.8%2099.96-41.41l43.36-43.36c-15.11-8.012-29.47-17.58-41.91-30.02C239.6%20394.1%20236.9%20390.7%20234%20387.4z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath d='M12.232 4.232a2.5 2.5 0 0 1 3.536 3.536l-1.225 1.224a.75.75 0 0 0 1.061 1.06l1.224-1.224a4 4 0 0 0-5.656-5.656l-3 3a4 4 0 0 0 .225 5.865.75.75 0 0 0 .977-1.138 2.5 2.5 0 0 1-.142-3.667l3-3Z' /%3E%3Cpath d='M11.603 7.963a.75.75 0 0 0-.977 1.138 2.5 2.5 0 0 1 .142 3.667l-3 3a2.5 2.5 0 0 1-3.536-3.536l1.225-1.224a.75.75 0 0 0-1.061-1.06l-1.224 1.224a4 4 0 1 0 5.656 5.656l3-3a4 4 0 0 0-.225-5.865Z' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .heading::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 64C0 46.3 14.3 32 32 32H80h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H112V208H336V96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h48 48c17.7 0 32 14.3 32 32s-14.3 32-32 32H400V240 416h16c17.7 0 32 14.3 32 32s-14.3 32-32 32H368 320c-17.7 0-32-14.3-32-32s14.3-32 32-32h16V272H112V416h16c17.7 0 32 14.3 32 32s-14.3 32-32 32H80 32c-17.7 0-32-14.3-32-32s14.3-32 32-32H48V240 96H32C14.3 96 0 81.7 0 64z'/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M2.75 4a.75.75 0 0 1 .75.75v4.5h5v-4.5a.75.75 0 0 1 1.5 0v10.5a.75.75 0 0 1-1.5 0v-4.5h-5v4.5a.75.75 0 0 1-1.5 0V4.75A.75.75 0 0 1 2.75 4ZM13 8.75a.75.75 0 0 1 .75-.75h1.75a.75.75 0 0 1 .75.75v5.75h1a.75.75 0 0 1 0 1.5h-3.5a.75.75 0 0 1 0-1.5h1v-5h-1a.75.75 0 0 1-.75-.75Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .quote::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d%3D%22M96%20224C84.72%20224%2074.05%20226.3%2064%20229.9V224c0-35.3%2028.7-64%2064-64c17.67%200%2032-14.33%2032-32S145.7%2096%20128%2096C57.42%2096%200%20153.4%200%20224v96c0%2053.02%2042.98%2096%2096%2096s96-42.98%2096-96S149%20224%2096%20224zM352%20224c-11.28%200-21.95%202.305-32%205.879V224c0-35.3%2028.7-64%2064-64c17.67%200%2032-14.33%2032-32s-14.33-32-32-32c-70.58%200-128%2057.42-128%20128v96c0%2053.02%2042.98%2096%2096%2096s96-42.98%2096-96S405%20224%20352%20224z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M10 2c-2.236 0-4.43.18-6.57.524C1.993 2.755 1 4.014 1 5.426v5.148c0 1.413.993 2.67 2.43 2.902 1.168.188 2.352.327 3.55.414.28.02.521.18.642.413l1.713 3.293a.75.75 0 0 0 1.33 0l1.713-3.293a.783.783 0 0 1 .642-.413 41.102 41.102 0 0 0 3.55-.414c1.437-.231 2.43-1.49 2.43-2.902V5.426c0-1.413-.993-2.67-2.43-2.902A41.289 41.289 0 0 0 10 2ZM6.75 6a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5h-6.5Zm0 2.5a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .code::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d%3D%22M416%2031.94C416%2021.75%20408.1%200%20384.1%200c-13.98%200-26.87%209.072-30.89%2023.18l-128%20448c-.8404%202.935-1.241%205.892-1.241%208.801C223.1%20490.3%20232%20512%20256%20512c13.92%200%2026.73-9.157%2030.75-23.22l128-448C415.6%2037.81%20416%2034.85%20416%2031.94zM176%20143.1c0-18.28-14.95-32-32-32c-8.188%200-16.38%203.125-22.62%209.376l-112%20112C3.125%20239.6%200%20247.8%200%20255.1S3.125%20272.4%209.375%20278.6l112%20112C127.6%20396.9%20135.8%20399.1%20144%20399.1c17.05%200%2032-13.73%2032-32c0-8.188-3.125-16.38-9.375-22.63L77.25%20255.1l89.38-89.38C172.9%20160.3%20176%20152.2%20176%20143.1zM640%20255.1c0-8.188-3.125-16.38-9.375-22.63l-112-112C512.4%20115.1%20504.2%20111.1%20496%20111.1c-17.05%200-32%2013.73-32%2032c0%208.188%203.125%2016.38%209.375%2022.63l89.38%2089.38l-89.38%2089.38C467.1%20351.6%20464%20359.8%20464%20367.1c0%2018.28%2014.95%2032%2032%2032c8.188%200%2016.38-3.125%2022.62-9.376l112-112C636.9%20272.4%20640%20264.2%20640%20255.1z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M6.28 5.22a.75.75 0 0 1 0 1.06L2.56 10l3.72 3.72a.75.75 0 0 1-1.06 1.06L.97 10.53a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Zm7.44 0a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L17.44 10l-3.72-3.72a.75.75 0 0 1 0-1.06ZM11.377 2.011a.75.75 0 0 1 .612.867l-2.5 14.5a.75.75 0 0 1-1.478-.255l2.5-14.5a.75.75 0 0 1 .866-.612Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .unordered-list::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M16%2096C16%2069.49%2037.49%2048%2064%2048C90.51%2048%20112%2069.49%20112%2096C112%20122.5%2090.51%20144%2064%20144C37.49%20144%2016%20122.5%2016%2096zM480%2064C497.7%2064%20512%2078.33%20512%2096C512%20113.7%20497.7%20128%20480%20128H192C174.3%20128%20160%20113.7%20160%2096C160%2078.33%20174.3%2064%20192%2064H480zM480%20224C497.7%20224%20512%20238.3%20512%20256C512%20273.7%20497.7%20288%20480%20288H192C174.3%20288%20160%20273.7%20160%20256C160%20238.3%20174.3%20224%20192%20224H480zM480%20384C497.7%20384%20512%20398.3%20512%20416C512%20433.7%20497.7%20448%20480%20448H192C174.3%20448%20160%20433.7%20160%20416C160%20398.3%20174.3%20384%20192%20384H480zM16%20416C16%20389.5%2037.49%20368%2064%20368C90.51%20368%20112%20389.5%20112%20416C112%20442.5%2090.51%20464%2064%20464C37.49%20464%2016%20442.5%2016%20416zM112%20256C112%20282.5%2090.51%20304%2064%20304C37.49%20304%2016%20282.5%2016%20256C16%20229.5%2037.49%20208%2064%20208C90.51%20208%20112%20229.5%20112%20256z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M6 4.75A.75.75 0 0 1 6.75 4h10.5a.75.75 0 0 1 0 1.5H6.75A.75.75 0 0 1 6 4.75ZM6 10a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H6.75A.75.75 0 0 1 6 10Zm0 5.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 0 1 0 1.5H6.75a.75.75 0 0 1-.75-.75ZM1.99 4.75a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v.01a1 1 0 0 1-1 1h-.01a1 1 0 0 1-1-1v-.01ZM1.99 15.25a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v.01a1 1 0 0 1-1 1h-.01a1 1 0 0 1-1-1v-.01ZM1.99 10a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v.01a1 1 0 0 1-1 1h-.01a1 1 0 0 1-1-1V10Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .ordered-list::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M55.1%2056.04C55.1%2042.78%2066.74%2032.04%2079.1%2032.04H111.1C125.3%2032.04%20135.1%2042.78%20135.1%2056.04V176H151.1C165.3%20176%20175.1%20186.8%20175.1%20200C175.1%20213.3%20165.3%20224%20151.1%20224H71.1C58.74%20224%2047.1%20213.3%2047.1%20200C47.1%20186.8%2058.74%20176%2071.1%20176H87.1V80.04H79.1C66.74%2080.04%2055.1%2069.29%2055.1%2056.04V56.04zM118.7%20341.2C112.1%20333.8%20100.4%20334.3%2094.65%20342.4L83.53%20357.9C75.83%20368.7%2060.84%20371.2%2050.05%20363.5C39.26%20355.8%2036.77%20340.8%2044.47%20330.1L55.59%20314.5C79.33%20281.2%20127.9%20278.8%20154.8%20309.6C176.1%20333.1%20175.6%20370.5%20153.7%20394.3L118.8%20432H152C165.3%20432%20176%20442.7%20176%20456C176%20469.3%20165.3%20480%20152%20480H64C54.47%20480%2045.84%20474.4%2042.02%20465.6C38.19%20456.9%2039.9%20446.7%2046.36%20439.7L118.4%20361.7C123.7%20355.9%20123.8%20347.1%20118.7%20341.2L118.7%20341.2zM512%2064C529.7%2064%20544%2078.33%20544%2096C544%20113.7%20529.7%20128%20512%20128H256C238.3%20128%20224%20113.7%20224%2096C224%2078.33%20238.3%2064%20256%2064H512zM512%20224C529.7%20224%20544%20238.3%20544%20256C544%20273.7%20529.7%20288%20512%20288H256C238.3%20288%20224%20273.7%20224%20256C224%20238.3%20238.3%20224%20256%20224H512zM512%20384C529.7%20384%20544%20398.3%20544%20416C544%20433.7%20529.7%20448%20512%20448H256C238.3%20448%20224%20433.7%20224%20416C224%20398.3%20238.3%20384%20256%20384H512z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath d='M3 1.25a.75.75 0 0 0 0 1.5h.25v2.5a.75.75 0 0 0 1.5 0V2A.75.75 0 0 0 4 1.25H3ZM2.97 8.654a3.5 3.5 0 0 1 1.524-.12.034.034 0 0 1-.012.012L2.415 9.579A.75.75 0 0 0 2 10.25v1c0 .414.336.75.75.75h2.5a.75.75 0 0 0 0-1.5H3.927l1.225-.613c.52-.26.848-.79.848-1.371 0-.647-.429-1.327-1.193-1.451a5.03 5.03 0 0 0-2.277.155.75.75 0 0 0 .44 1.434ZM7.75 3a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5ZM7.75 9.25a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5ZM7.75 15.5a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5ZM2.625 13.875a.75.75 0 0 0 0 1.5h1.5a.125.125 0 0 1 0 .25H3.5a.75.75 0 0 0 0 1.5h.625a.125.125 0 0 1 0 .25h-1.5a.75.75 0 0 0 0 1.5h1.5a1.625 1.625 0 0 0 1.37-2.5 1.625 1.625 0 0 0-1.37-2.5h-1.5Z' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .table::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1792 1792'%3E%3Cpath d%3D%22M576%201376v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm512%20384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm512%20384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm512%20384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm512%20384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14%200-23%209t-9%2023v192q0%2014%209%2023t23%209h320q14%200%2023-9t9-23zm128-320v1088q0%2066-47%20113t-113%2047h-1344q-66%200-113-47t-47-113v-1088q0-66%2047-113t113-47h1344q66%200%20113%2047t47%20113z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M.99 5.24A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25l.01 9.5A2.25 2.25 0 0 1 16.76 17H3.26A2.267 2.267 0 0 1 1 14.74l-.01-9.5Zm8.26 9.52v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.615c0 .414.336.75.75.75h5.373a.75.75 0 0 0 .627-.74Zm1.5 0a.75.75 0 0 0 .627.74h5.373a.75.75 0 0 0 .75-.75v-.615a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625Zm6.75-3.63v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75v.625c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75ZM17.5 7.5v-.625a.75.75 0 0 0-.75-.75H11.5a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75h5.25a.75.75 0 0 0 .75-.75Zm-8.25 0v-.625a.75.75 0 0 0-.75-.75H3.25a.75.75 0 0 0-.75.75V7.5c0 .414.336.75.75.75H8.5a.75.75 0 0 0 .75-.75Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .upload-image::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M447.1%2032h-484C28.64%2032-.0091%2060.65-.0091%2096v320c0%2035.35%2028.65%2064%2063.1%2064h384c35.35%200%2064-28.65%2064-64V96C511.1%2060.65%20483.3%2032%20447.1%2032zM111.1%2096c26.51%200%2048%2021.49%2048%2048S138.5%20192%20111.1%20192s-48-21.49-48-48S85.48%2096%20111.1%2096zM446.1%20407.6C443.3%20412.8%20437.9%20416%20432%20416H82.01c-6.021%200-11.53-3.379-14.26-8.75c-2.73-5.367-2.215-11.81%201.334-16.68l70-96C142.1%20290.4%20146.9%20288%20152%20288s9.916%202.441%2012.93%206.574l32.46%2044.51l93.3-139.1C293.7%20194.7%20298.7%20192%20304%20192s10.35%202.672%2013.31%207.125l128%20192C448.6%20396%20448.9%20402.3%20446.1%20407.6z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M1 5.25A2.25 2.25 0 0 1 3.25 3h13.5A2.25 2.25 0 0 1 19 5.25v9.5A2.25 2.25 0 0 1 16.75 17H3.25A2.25 2.25 0 0 1 1 14.75v-9.5Zm1.5 5.81v3.69c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-2.69l-2.22-2.219a.75.75 0 0 0-1.06 0l-1.91 1.909.47.47a.75.75 0 1 1-1.06 1.06L6.53 8.091a.75.75 0 0 0-1.06 0l-2.97 2.97ZM12 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .undo::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M480%20256c0%20123.4-100.5%20223.9-223.9%20223.9c-48.84%200-95.17-15.58-134.2-44.86c-14.12-10.59-16.97-30.66-6.375-44.81c10.59-14.12%2030.62-16.94%2044.81-6.375c27.84%2020.91%2061%2031.94%2095.88%2031.94C344.3%20415.8%20416%20344.1%20416%20256s-71.69-159.8-159.8-159.8c-37.46%200-73.09%2013.49-101.3%2036.64l45.12%2045.14c17.01%2017.02%204.955%2046.1-19.1%2046.1H35.17C24.58%20224.1%2016%20215.5%2016%20204.9V59.04c0-24.04%2029.07-36.08%2046.07-19.07l47.6%2047.63C149.9%2052.71%20201.5%2032.11%20256.1%2032.11C379.5%2032.11%20480%20132.6%20480%20256z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M7.793 2.232a.75.75 0 0 1-.025 1.06L3.622 7.25h10.003a5.375 5.375 0 0 1 0 10.75H10.75a.75.75 0 0 1 0-1.5h2.875a3.875 3.875 0 0 0 0-7.75H3.622l4.146 3.957a.75.75 0 0 1-1.036 1.085l-5.5-5.25a.75.75 0 0 1 0-1.085l5.5-5.25a.75.75 0 0 1 1.06.025Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-toolbar .redo::before {
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d%3D%22M468.9%2032.11c13.87%200%2027.18%2010.77%2027.18%2027.04v145.9c0%2010.59-8.584%2019.17-19.17%2019.17h-145.7c-16.28%200-27.06-13.32-27.06-27.2c0-6.634%202.461-13.4%207.96-18.9l45.12-45.14c-28.22-23.14-63.85-36.64-101.3-36.64c-88.09%200-159.8%2071.69-159.8%20159.8S167.8%20415.9%20255.9%20415.9c73.14%200%2089.44-38.31%20115.1-38.31c18.48%200%2031.97%2015.04%2031.97%2031.96c0%2035.04-81.59%2070.41-147%2070.41c-123.4%200-223.9-100.5-223.9-223.9S132.6%2032.44%20256%2032.44c54.6%200%20106.2%2020.39%20146.4%2055.26l47.6-47.63C455.5%2034.57%20462.3%2032.11%20468.9%2032.11z%22/%3E%3C/svg%3E");
|
||||
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor' class='size-5'%3E%3Cpath fill-rule='evenodd' d='M12.207 2.232a.75.75 0 0 0 .025 1.06l4.146 3.958H6.375a5.375 5.375 0 0 0 0 10.75H9.25a.75.75 0 0 0 0-1.5H6.375a3.875 3.875 0 0 1 0-7.75h10.003l-4.146 3.957a.75.75 0 0 0 1.036 1.085l5.5-5.25a.75.75 0 0 0 0-1.085l-5.5-5.25a.75.75 0 0 0-1.06.025Z' clip-rule='evenodd' /%3E%3C/svg%3E%0A");
|
||||
}
|
||||
|
||||
.EasyMDEContainer .editor-statusbar {
|
||||
|
||||
@@ -68,7 +68,6 @@ return [
|
||||
|
||||
],
|
||||
|
||||
|
||||
'delete' => [
|
||||
'label' => 'Esborrar',
|
||||
],
|
||||
|
||||
@@ -71,7 +71,6 @@ return [
|
||||
|
||||
],
|
||||
|
||||
|
||||
'reorder' => [
|
||||
'label' => 'Verschieben',
|
||||
],
|
||||
|
||||
@@ -11,17 +11,69 @@ return [
|
||||
],
|
||||
|
||||
'add' => [
|
||||
|
||||
'label' => 'Tambahkan :label',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Tambah ke :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'add' => [
|
||||
'label' => 'Tambah',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'add_between' => [
|
||||
|
||||
'label' => 'Sisipkan',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Tambah ke :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'add' => [
|
||||
'label' => 'Tambah',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'delete' => [
|
||||
'label' => 'Hapus',
|
||||
],
|
||||
|
||||
'edit' => [
|
||||
|
||||
'label' => 'Ubah',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Ubah blok',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'save' => [
|
||||
'label' => 'Simpan perubahan',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'reorder' => [
|
||||
'label' => 'Pindahkan',
|
||||
],
|
||||
|
||||
@@ -11,17 +11,69 @@ return [
|
||||
],
|
||||
|
||||
'add' => [
|
||||
|
||||
'label' => 'Tambah ke :label',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Tambah ke :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'add' => [
|
||||
'label' => 'Tambah',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'add_between' => [
|
||||
|
||||
'label' => 'Masukkan',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Add to :label',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'add' => [
|
||||
'label' => 'Tambah',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'delete' => [
|
||||
'label' => 'Padam',
|
||||
],
|
||||
|
||||
'edit' => [
|
||||
|
||||
'label' => 'Sunting',
|
||||
|
||||
'modal' => [
|
||||
|
||||
'heading' => 'Sunting blok',
|
||||
|
||||
'actions' => [
|
||||
|
||||
'save' => [
|
||||
'label' => 'Simpan perubahan',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'reorder' => [
|
||||
'label' => 'Pindah',
|
||||
],
|
||||
|
||||
@@ -11,7 +11,7 @@ return [
|
||||
],
|
||||
|
||||
'add' => [
|
||||
'label' => ':label ekle',
|
||||
'label' => ':label\'e ekle',
|
||||
],
|
||||
|
||||
'add_between' => [
|
||||
@@ -185,6 +185,15 @@ return [
|
||||
|
||||
],
|
||||
|
||||
'svg' => [
|
||||
|
||||
'messages' => [
|
||||
'confirmation' => 'SVG dosyalarını düzenlemek ölçeklendirme yaptığınızda kalite kaybına neden olabileceği için tavsiye edilmez.\n Devam etmek istediğinize emin misiniz?',
|
||||
'disabled' => 'SVG dosyalarını düzenlemek ölçeklendirme yaptığınızda kalite kaybına neden olduğu için engellendi.',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
@@ -241,6 +250,15 @@ return [
|
||||
|
||||
],
|
||||
|
||||
'radio' => [
|
||||
|
||||
'boolean' => [
|
||||
'true' => 'Evet',
|
||||
'false' => 'Hayır',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'repeater' => [
|
||||
|
||||
'actions' => [
|
||||
@@ -249,6 +267,10 @@ return [
|
||||
'label' => ':label\'e ekle',
|
||||
],
|
||||
|
||||
'add_between' => [
|
||||
'label' => 'Arasına yerleştir',
|
||||
],
|
||||
|
||||
'delete' => [
|
||||
'label' => 'Sil',
|
||||
],
|
||||
@@ -345,7 +367,7 @@ return [
|
||||
],
|
||||
|
||||
'create_another' => [
|
||||
'label' => 'Oluştur & yeni oluştur',
|
||||
'label' => 'Oluştur & Yeni oluştur',
|
||||
],
|
||||
|
||||
],
|
||||
@@ -381,7 +403,7 @@ return [
|
||||
|
||||
'loading_message' => 'Yükleniyor...',
|
||||
|
||||
'max_items_message' => 'Sadece :count seçilebilir.',
|
||||
'max_items_message' => 'Sadece :count adet seçilebilir.',
|
||||
|
||||
'no_search_results_message' => 'Arama kriterlerinize uyan seçenek yok.',
|
||||
|
||||
@@ -397,4 +419,29 @@ return [
|
||||
'placeholder' => 'Yeni etiket',
|
||||
],
|
||||
|
||||
'text_input' => [
|
||||
|
||||
'actions' => [
|
||||
|
||||
'hide_password' => [
|
||||
'label' => 'Şifreyi gizle',
|
||||
],
|
||||
|
||||
'show_password' => [
|
||||
'label' => 'Şifreyi göster',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
'toggle_buttons' => [
|
||||
|
||||
'boolean' => [
|
||||
'true' => 'Evet',
|
||||
'false' => 'Hayır',
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'distinct' => [
|
||||
'must_be_selected' => 'En az 1 adet :attribute alanı seçmelisiniz.',
|
||||
'only_one_must_be_selected' => 'Sadece 1 adet :attribute alanı seçilmelidir.',
|
||||
],
|
||||
|
||||
];
|
||||
@@ -82,17 +82,13 @@
|
||||
/>
|
||||
|
||||
<div
|
||||
class="flex min-h-full items-center pe-3"
|
||||
class="fi-fo-color-picker-preview my-auto me-3 size-5 shrink-0 select-none rounded-full"
|
||||
x-on:click="togglePanelVisibility()"
|
||||
>
|
||||
<div
|
||||
class="size-5 select-none rounded-full"
|
||||
x-bind:class="{
|
||||
'ring-1 ring-inset ring-gray-200 dark:ring-white/10': ! state,
|
||||
}"
|
||||
x-bind:style="{ 'background-color': state }"
|
||||
></div>
|
||||
</div>
|
||||
x-bind:class="{
|
||||
'ring-1 ring-inset ring-gray-200 dark:ring-white/10': ! state,
|
||||
}"
|
||||
x-bind:style="{ 'background-color': state }"
|
||||
></div>
|
||||
|
||||
<div
|
||||
wire:ignore.self
|
||||
|
||||
@@ -102,21 +102,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.bold') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="bold"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 384 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M321.1 242.4C340.1 220.1 352 191.6 352 160c0-70.59-57.42-128-128-128L32 32.01c-17.67 0-32 14.31-32 32s14.33 32 32 32h16v320H32c-17.67 0-32 14.31-32 32s14.33 32 32 32h224c70.58 0 128-57.41 128-128C384 305.3 358.6 264.8 321.1 242.4zM112 96.01H224c35.3 0 64 28.72 64 64s-28.7 64-64 64H112V96.01zM256 416H112v-128H256c35.3 0 64 28.71 64 63.1S291.3 416 256 416z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-bold"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -127,21 +116,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.italic') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="italic"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 384 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M384 64.01c0 17.69-14.31 32-32 32h-58.67l-133.3 320H224c17.69 0 32 14.31 32 32s-14.31 32-32 32H32c-17.69 0-32-14.31-32-32s14.31-32 32-32h58.67l133.3-320H160c-17.69 0-32-14.31-32-32s14.31-32 32-32h192C369.7 32.01 384 46.33 384 64.01z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-italic"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -152,21 +130,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.underline') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="underline"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M16 64c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-16v128c0 53 43 96 96 96s96-43 96-96V96h-16c-17.7 0-32-14.3-32-32s14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-16v128c0 88.4-71.6 160-160 160S64 312.4 64 224V96H48c-17.7 0-32-14.3-32-32zM0 448c0-17.7 14.3-32 32-32h384c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32z"
|
||||
/>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-underline"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -177,21 +144,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.strike') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="strikethrough"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21c-3.031 17.59-10.88 29.34-24.72 36.99c-35.44 19.75-108.5 11.96-186-19.68c-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37c29.62 0 58.81-5.156 83.72-18.96c30.81-17.09 50.44-45.46 56.72-82.11c3.998-23.27 2.168-42.58-3.488-59.05H332.2zM488 239.9l-176.5-.0309c-15.85-5.613-31.83-10.34-46.7-14.62c-85.47-24.62-110.9-39.05-103.7-81.33c2.5-14.53 10.16-25.96 22.72-34.03c20.47-13.15 64.06-23.84 155.4 .3438c17.09 4.531 34.59-5.654 39.13-22.74c4.531-17.09-5.656-34.59-22.75-39.12c-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1C89.26 184.5 107.9 217.3 137.2 239.9L24 239.9c-13.25 0-24 10.75-24 23.1c0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1C512 250.7 501.3 239.9 488 239.9z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-strikethrough"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -203,21 +159,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.link') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="link"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 640 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M598.6 41.41C570.1 13.8 534.8 0 498.6 0s-72.36 13.8-99.96 41.41l-43.36 43.36c15.11 8.012 29.47 17.58 41.91 30.02c3.146 3.146 5.898 6.518 8.742 9.838l37.96-37.96C458.5 72.05 477.1 64 498.6 64c20.67 0 40.1 8.047 54.71 22.66c14.61 14.61 22.66 34.04 22.66 54.71s-8.049 40.1-22.66 54.71l-133.3 133.3C405.5 343.1 386 352 365.4 352s-40.1-8.048-54.71-22.66C296 314.7 287.1 295.3 287.1 274.6s8.047-40.1 22.66-54.71L314.2 216.4C312.1 212.5 309.9 208.5 306.7 205.3C298.1 196.7 286.8 192 274.6 192c-11.93 0-23.1 4.664-31.61 12.97c-30.71 53.96-23.63 123.6 22.39 169.6C293 402.2 329.2 416 365.4 416c36.18 0 72.36-13.8 99.96-41.41L598.6 241.3c28.45-28.45 42.24-66.01 41.37-103.3C639.1 102.1 625.4 68.16 598.6 41.41zM234 387.4L196.1 425.3C181.5 439.1 162 448 141.4 448c-20.67 0-40.1-8.047-54.71-22.66c-14.61-14.61-22.66-34.04-22.66-54.71s8.049-40.1 22.66-54.71l133.3-133.3C234.5 168 253.1 160 274.6 160s40.1 8.048 54.71 22.66c14.62 14.61 22.66 34.04 22.66 54.71s-8.047 40.1-22.66 54.71L325.8 295.6c2.094 3.939 4.219 7.895 7.465 11.15C341.9 315.3 353.3 320 365.4 320c11.93 0 23.1-4.664 31.61-12.97c30.71-53.96 23.63-123.6-22.39-169.6C346.1 109.8 310.8 96 274.6 96C238.4 96 202.3 109.8 174.7 137.4L41.41 270.7c-27.6 27.6-41.41 63.78-41.41 99.96c-.0001 36.18 13.8 72.36 41.41 99.97C69.01 498.2 105.2 512 141.4 512c36.18 0 72.36-13.8 99.96-41.41l43.36-43.36c-15.11-8.012-29.47-17.58-41.91-30.02C239.6 394.1 236.9 390.7 234 387.4z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-link"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
</x-filament-forms::rich-editor.toolbar.group>
|
||||
@@ -233,7 +178,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.h1') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
{{ __('filament-forms::components.rich_editor.toolbar_buttons.h1') }}
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-h1"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -243,7 +191,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.h2') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
{{ __('filament-forms::components.rich_editor.toolbar_buttons.h2') }}
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-h2"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -253,7 +204,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.h3') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
{{ __('filament-forms::components.rich_editor.toolbar_buttons.h3') }}
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-h3"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
</x-filament-forms::rich-editor.toolbar.group>
|
||||
@@ -269,21 +223,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.blockquote') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="quote-left"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 448 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M96 224C84.72 224 74.05 226.3 64 229.9V224c0-35.3 28.7-64 64-64c17.67 0 32-14.33 32-32S145.7 96 128 96C57.42 96 0 153.4 0 224v96c0 53.02 42.98 96 96 96s96-42.98 96-96S149 224 96 224zM352 224c-11.28 0-21.95 2.305-32 5.879V224c0-35.3 28.7-64 64-64c17.67 0 32-14.33 32-32s-14.33-32-32-32c-70.58 0-128 57.42-128 128v96c0 53.02 42.98 96 96 96s96-42.98 96-96S405 224 352 224z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-chat-bubble-bottom-center-text"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -293,21 +236,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.code_block') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="code"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 640 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M416 31.94C416 21.75 408.1 0 384.1 0c-13.98 0-26.87 9.072-30.89 23.18l-128 448c-.8404 2.935-1.241 5.892-1.241 8.801C223.1 490.3 232 512 256 512c13.92 0 26.73-9.157 30.75-23.22l128-448C415.6 37.81 416 34.85 416 31.94zM176 143.1c0-18.28-14.95-32-32-32c-8.188 0-16.38 3.125-22.62 9.376l-112 112C3.125 239.6 0 247.8 0 255.1S3.125 272.4 9.375 278.6l112 112C127.6 396.9 135.8 399.1 144 399.1c17.05 0 32-13.73 32-32c0-8.188-3.125-16.38-9.375-22.63L77.25 255.1l89.38-89.38C172.9 160.3 176 152.2 176 143.1zM640 255.1c0-8.188-3.125-16.38-9.375-22.63l-112-112C512.4 115.1 504.2 111.1 496 111.1c-17.05 0-32 13.73-32 32c0 8.188 3.125 16.38 9.375 22.63l89.38 89.38l-89.38 89.38C467.1 351.6 464 359.8 464 367.1c0 18.28 14.95 32 32 32c8.188 0 16.38-3.125 22.62-9.376l112-112C636.9 272.4 640 264.2 640 255.1z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-code-bracket"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -317,21 +249,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.bullet_list') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="list-ul"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M16 96C16 69.49 37.49 48 64 48C90.51 48 112 69.49 112 96C112 122.5 90.51 144 64 144C37.49 144 16 122.5 16 96zM480 64C497.7 64 512 78.33 512 96C512 113.7 497.7 128 480 128H192C174.3 128 160 113.7 160 96C160 78.33 174.3 64 192 64H480zM480 224C497.7 224 512 238.3 512 256C512 273.7 497.7 288 480 288H192C174.3 288 160 273.7 160 256C160 238.3 174.3 224 192 224H480zM480 384C497.7 384 512 398.3 512 416C512 433.7 497.7 448 480 448H192C174.3 448 160 433.7 160 416C160 398.3 174.3 384 192 384H480zM16 416C16 389.5 37.49 368 64 368C90.51 368 112 389.5 112 416C112 442.5 90.51 464 64 464C37.49 464 16 442.5 16 416zM112 256C112 282.5 90.51 304 64 304C37.49 304 16 282.5 16 256C16 229.5 37.49 208 64 208C90.51 208 112 229.5 112 256z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-list-bullet"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -341,21 +262,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.ordered_list') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="list-ol"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 576 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M55.1 56.04C55.1 42.78 66.74 32.04 79.1 32.04H111.1C125.3 32.04 135.1 42.78 135.1 56.04V176H151.1C165.3 176 175.1 186.8 175.1 200C175.1 213.3 165.3 224 151.1 224H71.1C58.74 224 47.1 213.3 47.1 200C47.1 186.8 58.74 176 71.1 176H87.1V80.04H79.1C66.74 80.04 55.1 69.29 55.1 56.04V56.04zM118.7 341.2C112.1 333.8 100.4 334.3 94.65 342.4L83.53 357.9C75.83 368.7 60.84 371.2 50.05 363.5C39.26 355.8 36.77 340.8 44.47 330.1L55.59 314.5C79.33 281.2 127.9 278.8 154.8 309.6C176.1 333.1 175.6 370.5 153.7 394.3L118.8 432H152C165.3 432 176 442.7 176 456C176 469.3 165.3 480 152 480H64C54.47 480 45.84 474.4 42.02 465.6C38.19 456.9 39.9 446.7 46.36 439.7L118.4 361.7C123.7 355.9 123.8 347.1 118.7 341.2L118.7 341.2zM512 64C529.7 64 544 78.33 544 96C544 113.7 529.7 128 512 128H256C238.3 128 224 113.7 224 96C224 78.33 238.3 64 256 64H512zM512 224C529.7 224 544 238.3 544 256C544 273.7 529.7 288 512 288H256C238.3 288 224 273.7 224 256C224 238.3 238.3 224 256 224H512zM512 384C529.7 384 544 398.3 544 416C544 433.7 529.7 448 512 448H256C238.3 448 224 433.7 224 416C224 398.3 238.3 384 256 384H512z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-numbered-list"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
</x-filament-forms::rich-editor.toolbar.group>
|
||||
@@ -370,21 +280,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.attach_files') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="image"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M447.1 32h-484C28.64 32-.0091 60.65-.0091 96v320c0 35.35 28.65 64 63.1 64h384c35.35 0 64-28.65 64-64V96C511.1 60.65 483.3 32 447.1 32zM111.1 96c26.51 0 48 21.49 48 48S138.5 192 111.1 192s-48-21.49-48-48S85.48 96 111.1 96zM446.1 407.6C443.3 412.8 437.9 416 432 416H82.01c-6.021 0-11.53-3.379-14.26-8.75c-2.73-5.367-2.215-11.81 1.334-16.68l70-96C142.1 290.4 146.9 288 152 288s9.916 2.441 12.93 6.574l32.46 44.51l93.3-139.1C293.7 194.7 298.7 192 304 192s10.35 2.672 13.31 7.125l128 192C448.6 396 448.9 402.3 446.1 407.6z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-photo"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
</x-filament-forms::rich-editor.toolbar.group>
|
||||
@endif
|
||||
@@ -400,21 +299,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.undo') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="rotate-left"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M480 256c0 123.4-100.5 223.9-223.9 223.9c-48.84 0-95.17-15.58-134.2-44.86c-14.12-10.59-16.97-30.66-6.375-44.81c10.59-14.12 30.62-16.94 44.81-6.375c27.84 20.91 61 31.94 95.88 31.94C344.3 415.8 416 344.1 416 256s-71.69-159.8-159.8-159.8c-37.46 0-73.09 13.49-101.3 36.64l45.12 45.14c17.01 17.02 4.955 46.1-19.1 46.1H35.17C24.58 224.1 16 215.5 16 204.9V59.04c0-24.04 29.07-36.08 46.07-19.07l47.6 47.63C149.9 52.71 201.5 32.11 256.1 32.11C379.5 32.11 480 132.6 480 256z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-arrow-uturn-left"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
|
||||
@@ -425,21 +313,10 @@
|
||||
title="{{ __('filament-forms::components.rich_editor.toolbar_buttons.redo') }}"
|
||||
tabindex="-1"
|
||||
>
|
||||
<svg
|
||||
class="-mx-4 h-4 dark:fill-current"
|
||||
aria-hidden="true"
|
||||
focusable="false"
|
||||
data-prefix="fas"
|
||||
data-icon="rotate-right"
|
||||
role="img"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M468.9 32.11c13.87 0 27.18 10.77 27.18 27.04v145.9c0 10.59-8.584 19.17-19.17 19.17h-145.7c-16.28 0-27.06-13.32-27.06-27.2c0-6.634 2.461-13.4 7.96-18.9l45.12-45.14c-28.22-23.14-63.85-36.64-101.3-36.64c-88.09 0-159.8 71.69-159.8 159.8S167.8 415.9 255.9 415.9c73.14 0 89.44-38.31 115.1-38.31c18.48 0 31.97 15.04 31.97 31.96c0 35.04-81.59 70.41-147 70.41c-123.4 0-223.9-100.5-223.9-223.9S132.6 32.44 256 32.44c54.6 0 106.2 20.39 146.4 55.26l47.6-47.63C455.5 34.57 462.3 32.11 468.9 32.11z"
|
||||
></path>
|
||||
</svg>
|
||||
<x-filament::icon
|
||||
icon="heroicon-m-arrow-uturn-right"
|
||||
class="h-5 w-5"
|
||||
/>
|
||||
</x-filament-forms::rich-editor.toolbar.button>
|
||||
@endif
|
||||
</x-filament-forms::rich-editor.toolbar.group>
|
||||
@@ -505,7 +382,7 @@
|
||||
@endif
|
||||
{{
|
||||
$getExtraInputAttributeBag()->class([
|
||||
'prose min-h-[theme(spacing.48)] max-w-none !border-none px-3 py-1.5 text-base text-gray-950 dark:prose-invert focus-visible:outline-none dark:text-white sm:text-sm sm:leading-6',
|
||||
'fi-fo-rich-editor-editor prose min-h-[theme(spacing.48)] max-w-none !border-none px-3 py-1.5 text-base text-gray-950 dark:prose-invert focus-visible:outline-none dark:text-white sm:text-sm sm:leading-6',
|
||||
])
|
||||
}}
|
||||
></trix-editor>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
->merge([
|
||||
'type' => 'button',
|
||||
], escape: false)
|
||||
->class(['fi-fo-rich-editor-toolbar-btn flex h-8 min-w-[theme(spacing.8)] cursor-pointer items-center justify-center rounded-lg px-2 text-sm font-semibold text-gray-700 transition duration-75 hover:bg-gray-50 focus-visible:bg-gray-50 dark:text-gray-200 dark:hover:bg-white/5 dark:focus-visible:bg-white/5 [&.trix-active]:bg-gray-50 [&.trix-active]:text-primary-600 dark:[&.trix-active]:bg-white/5 dark:[&.trix-active]:text-primary-400'])
|
||||
->class(['fi-fo-rich-editor-toolbar-btn flex h-8 min-w-[theme(spacing.8)] cursor-pointer items-center justify-center rounded-lg text-sm font-semibold text-gray-700 transition duration-75 hover:bg-gray-50 focus-visible:bg-gray-50 dark:text-gray-200 dark:hover:bg-white/5 dark:focus-visible:bg-white/5 [&.trix-active]:bg-gray-50 [&.trix-active]:text-primary-600 dark:[&.trix-active]:bg-white/5 dark:[&.trix-active]:text-primary-400'])
|
||||
}}
|
||||
>
|
||||
{{ $slot }}
|
||||
|
||||
@@ -102,10 +102,7 @@
|
||||
x-sortable
|
||||
data-sortable-animation-duration="{{ $getReorderAnimationDuration() }}"
|
||||
@endif
|
||||
@class([
|
||||
'flex w-full flex-wrap gap-1.5 p-2',
|
||||
'border-t border-t-gray-200 dark:border-t-white/10',
|
||||
])
|
||||
class="fi-fo-tags-input-tags-ctn flex w-full flex-wrap gap-1.5 border-t border-t-gray-200 p-2 dark:border-t-white/10"
|
||||
>
|
||||
<template
|
||||
x-for="(tag, index) in state"
|
||||
|
||||
@@ -15,12 +15,22 @@ trait CanLimitItemsLength
|
||||
{
|
||||
$this->maxItems = $count;
|
||||
|
||||
$this->rule('array');
|
||||
$this->rule('array', static function (Component $component): bool {
|
||||
/** @var static $component */
|
||||
$count = $component->getMaxItems();
|
||||
|
||||
return $count !== null;
|
||||
});
|
||||
$this->rule(static function (Component $component): string {
|
||||
/** @var static $component */
|
||||
$count = $component->getMaxItems();
|
||||
|
||||
return "max:{$count}";
|
||||
}, static function (Component $component): bool {
|
||||
/** @var static $component */
|
||||
$count = $component->getMaxItems();
|
||||
|
||||
return $count !== null;
|
||||
});
|
||||
|
||||
return $this;
|
||||
@@ -30,12 +40,22 @@ trait CanLimitItemsLength
|
||||
{
|
||||
$this->minItems = $count;
|
||||
|
||||
$this->rule('array');
|
||||
$this->rule('array', static function (Component $component): bool {
|
||||
/** @var static $component */
|
||||
$count = $component->getMinItems();
|
||||
|
||||
return $count !== null;
|
||||
});
|
||||
$this->rule(static function (Component $component): string {
|
||||
/** @var static $component */
|
||||
$count = $component->getMinItems();
|
||||
|
||||
return "min:{$count}";
|
||||
}, static function (Component $component): bool {
|
||||
/** @var static $component */
|
||||
$count = $component->getMinItems();
|
||||
|
||||
return $count !== null;
|
||||
});
|
||||
|
||||
return $this;
|
||||
|
||||
@@ -417,9 +417,15 @@ class FileUpload extends BaseFileUpload
|
||||
return $this->evaluate($this->imageEditorViewportWidth);
|
||||
}
|
||||
|
||||
protected function getParentTargetSizes(int $withOrHeight): float
|
||||
protected function getParentTargetSizes(int $widthOrHeight): int | float
|
||||
{
|
||||
return $withOrHeight > 1 ? 360 / (int) $this->getImageResizeTargetWidth() : 1;
|
||||
$targetWidth = (int) $this->getImageResizeTargetWidth();
|
||||
|
||||
if ($targetWidth === 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return $widthOrHeight > 1 ? 360 / $targetWidth : 1;
|
||||
}
|
||||
|
||||
public function getImageEditorMode(): int
|
||||
|
||||
@@ -17,6 +17,7 @@ class ToggleButtons extends Field implements Contracts\CanDisableOptions
|
||||
use Concerns\HasExtraInputAttributes;
|
||||
use Concerns\HasGridDirection;
|
||||
use Concerns\HasIcons;
|
||||
use Concerns\HasNestedRecursiveValidationRules;
|
||||
use Concerns\HasOptions;
|
||||
|
||||
public const GROUPED_VIEW = 'filament-forms::components.toggle-buttons.grouped';
|
||||
|
||||
@@ -4,6 +4,16 @@ namespace Filament\Infolists\Concerns;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Schema\Schema;
|
||||
use Exception;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Forms\Contracts\HasForms;
|
||||
use Filament\Support\Exceptions\Cancel;
|
||||
use Filament\Support\Exceptions\Halt;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Throwable;
|
||||
|
||||
use function Livewire\store;
|
||||
|
||||
trait InteractsWithInfolists
|
||||
{
|
||||
|
||||
@@ -101,6 +101,29 @@ protected function mutateFormDataBeforeFill(array $data): array
|
||||
|
||||
Alternatively, if you're viewing records in a modal action, check out the [Actions documentation](../../actions/prebuilt-actions/view#customizing-data-before-filling-the-form).
|
||||
|
||||
## Lifecycle hooks
|
||||
|
||||
Hooks may be used to execute code at various points within a page's lifecycle, like before a form is filled. To set up a hook, create a protected method on the View page class with the name of the hook:
|
||||
|
||||
```php
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewUser extends ViewRecord
|
||||
{
|
||||
// ...
|
||||
|
||||
protected function beforeFill(): void
|
||||
{
|
||||
// Runs before the disabled form fields are populated from the database. Not run on pages using an infolist.
|
||||
}
|
||||
|
||||
protected function afterFill(): void
|
||||
{
|
||||
// Runs after the disabled form fields are populated from the database. Not run on pages using an infolist.
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Authorization
|
||||
|
||||
For authorization, Filament will observe any [model policies](https://laravel.com/docs/authorization#creating-policies) that are registered in your app.
|
||||
|
||||
@@ -115,6 +115,20 @@ public function panel(Panel $panel): Panel
|
||||
}
|
||||
```
|
||||
|
||||
If you'd like to set the max content width for pages of the type `SimplePage`, like login and registration pages, you may do so using the `simplePageMaxContentWidth()` method. The default is `Large`:
|
||||
|
||||
```php
|
||||
use Filament\Panel;
|
||||
use Filament\Support\Enums\MaxWidth;
|
||||
|
||||
public function panel(Panel $panel): Panel
|
||||
{
|
||||
return $panel
|
||||
// ...
|
||||
->simplePageMaxContentWidth(MaxWidth::Small);
|
||||
}
|
||||
```
|
||||
|
||||
## Setting the default sub-navigation position
|
||||
|
||||
Sub-navigation is rendered at the start of each page by default. It can be customized per-page, per-resource and per-cluster, but you can also customize it for the entire panel at once using the `subNavigationPosition()` method. The value may be `SubNavigationPosition::Start`, `SubNavigationPosition::End`, or `SubNavigationPosition::Top` to render the sub-navigation as tabs:
|
||||
@@ -246,7 +260,7 @@ use Filament\Resources\Pages\CreateRecord;
|
||||
class CreatePost extends CreateRecord
|
||||
{
|
||||
protected ?bool $hasDatabaseTransactions = false;
|
||||
|
||||
|
||||
// ...
|
||||
}
|
||||
```
|
||||
@@ -270,7 +284,7 @@ use Filament\Resources\Pages\CreateRecord;
|
||||
class CreatePost extends CreateRecord
|
||||
{
|
||||
protected ?bool $hasDatabaseTransactions = true;
|
||||
|
||||
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -52,4 +52,12 @@ return [
|
||||
|
||||
],
|
||||
|
||||
'avatar' => [
|
||||
'alt' => 'Avatar untuk :name',
|
||||
],
|
||||
|
||||
'logo' => [
|
||||
'alt' => ':name logo',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'body' => 'Anda mempunyai perubahan yang belum disimpan. Adakah anda pasti mahu meninggalkan halaman ini?',
|
||||
|
||||
];
|
||||
@@ -32,18 +32,29 @@
|
||||
<main
|
||||
@class([
|
||||
'fi-simple-main my-16 w-full bg-white px-6 py-12 shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10 sm:rounded-xl sm:px-12',
|
||||
match ($maxWidth ?? null) {
|
||||
MaxWidth::ExtraSmall, 'xs' => 'sm:max-w-xs',
|
||||
MaxWidth::Small, 'sm' => 'sm:max-w-sm',
|
||||
MaxWidth::Medium, 'md' => 'sm:max-w-md',
|
||||
MaxWidth::ExtraLarge, 'xl' => 'sm:max-w-xl',
|
||||
MaxWidth::TwoExtraLarge, '2xl' => 'sm:max-w-2xl',
|
||||
MaxWidth::ThreeExtraLarge, '3xl' => 'sm:max-w-3xl',
|
||||
MaxWidth::FourExtraLarge, '4xl' => 'sm:max-w-4xl',
|
||||
MaxWidth::FiveExtraLarge, '5xl' => 'sm:max-w-5xl',
|
||||
MaxWidth::SixExtraLarge, '6xl' => 'sm:max-w-6xl',
|
||||
MaxWidth::SevenExtraLarge, '7xl' => 'sm:max-w-7xl',
|
||||
default => 'sm:max-w-lg',
|
||||
match ($maxWidth ??= (filament()->getSimplePageMaxContentWidth() ?? MaxWidth::Large)) {
|
||||
MaxWidth::ExtraSmall, 'xs' => 'max-w-xs',
|
||||
MaxWidth::Small, 'sm' => 'max-w-sm',
|
||||
MaxWidth::Medium, 'md' => 'max-w-md',
|
||||
MaxWidth::Large, 'lg' => 'max-w-lg',
|
||||
MaxWidth::ExtraLarge, 'xl' => 'max-w-xl',
|
||||
MaxWidth::TwoExtraLarge, '2xl' => 'max-w-2xl',
|
||||
MaxWidth::ThreeExtraLarge, '3xl' => 'max-w-3xl',
|
||||
MaxWidth::FourExtraLarge, '4xl' => 'max-w-4xl',
|
||||
MaxWidth::FiveExtraLarge, '5xl' => 'max-w-5xl',
|
||||
MaxWidth::SixExtraLarge, '6xl' => 'max-w-6xl',
|
||||
MaxWidth::SevenExtraLarge, '7xl' => 'max-w-7xl',
|
||||
MaxWidth::Full, 'full' => 'max-w-full',
|
||||
MaxWidth::MinContent, 'min' => 'max-w-min',
|
||||
MaxWidth::MaxContent, 'max' => 'max-w-max',
|
||||
MaxWidth::FitContent, 'fit' => 'max-w-fit',
|
||||
MaxWidth::Prose, 'prose' => 'max-w-prose',
|
||||
MaxWidth::ScreenSmall, 'screen-sm' => 'max-w-screen-sm',
|
||||
MaxWidth::ScreenMedium, 'screen-md' => 'max-w-screen-md',
|
||||
MaxWidth::ScreenLarge, 'screen-lg' => 'max-w-screen-lg',
|
||||
MaxWidth::ScreenExtraLarge, 'screen-xl' => 'max-w-screen-xl',
|
||||
MaxWidth::ScreenTwoExtraLarge, 'screen-2xl' => 'max-w-screen-2xl',
|
||||
default => $maxWidth,
|
||||
},
|
||||
])
|
||||
>
|
||||
|
||||
@@ -273,6 +273,11 @@ class FilamentManager
|
||||
return $this->getCurrentPanel()->getMaxContentWidth();
|
||||
}
|
||||
|
||||
public function getSimplePageMaxContentWidth(): MaxWidth | string | null
|
||||
{
|
||||
return $this->getCurrentPanel()->getSimplePageMaxContentWidth();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param class-string<Model>|Model $model
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,7 @@ class Authenticate extends Middleware
|
||||
if (! $guard->check()) {
|
||||
$this->unauthenticated($request, $guards);
|
||||
|
||||
return;
|
||||
return; /** @phpstan-ignore-line */
|
||||
}
|
||||
|
||||
$this->auth->shouldUse(Filament::getAuthGuard());
|
||||
|
||||
@@ -8,6 +8,8 @@ trait HasMaxContentWidth
|
||||
{
|
||||
protected MaxWidth | string | null $maxContentWidth = null;
|
||||
|
||||
protected MaxWidth | string | null $simplePageMaxContentWidth = null;
|
||||
|
||||
public function maxContentWidth(MaxWidth | string | null $maxContentWidth): static
|
||||
{
|
||||
$this->maxContentWidth = $maxContentWidth;
|
||||
@@ -19,4 +21,16 @@ trait HasMaxContentWidth
|
||||
{
|
||||
return $this->maxContentWidth;
|
||||
}
|
||||
|
||||
public function simplePageMaxContentWidth(MaxWidth | string | null $width): static
|
||||
{
|
||||
$this->simplePageMaxContentWidth = $width;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSimplePageMaxContentWidth(): MaxWidth | string | null
|
||||
{
|
||||
return $this->simplePageMaxContentWidth;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
this.step = this.getSteps()[nextStepIndex]
|
||||
|
||||
this.autofocusFields()
|
||||
this.scrollToTop()
|
||||
this.scroll()
|
||||
},
|
||||
|
||||
previousStep: function () {
|
||||
@@ -34,13 +34,15 @@
|
||||
this.step = this.getSteps()[previousStepIndex]
|
||||
|
||||
this.autofocusFields()
|
||||
this.scrollToTop()
|
||||
this.scroll()
|
||||
},
|
||||
|
||||
scrollToTop: function () {
|
||||
this.$nextTick(() =>
|
||||
this.$root.scrollIntoView({ behavior: 'smooth', block: 'start' }),
|
||||
)
|
||||
scroll: function () {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.header.children[
|
||||
this.getStepIndex(this.step)
|
||||
].scrollIntoView({ behavior: 'smooth', block: 'start' })
|
||||
})
|
||||
},
|
||||
|
||||
autofocusFields: function () {
|
||||
@@ -136,6 +138,7 @@
|
||||
'border-b border-gray-200 dark:border-white/10' => $isContained,
|
||||
'rounded-xl bg-white shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10' => ! $isContained,
|
||||
])
|
||||
x-ref="header"
|
||||
>
|
||||
@foreach ($getChildComponentContainer()->getComponents() as $step)
|
||||
<li
|
||||
|
||||
@@ -54,9 +54,11 @@ class SpatieLaravelTranslatablePlugin implements Plugin
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLocaleLabelUsing(?Closure $callback): void
|
||||
public function getLocaleLabelUsing(?Closure $callback): static
|
||||
{
|
||||
$this->getLocaleLabelUsing = $callback;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLocaleLabel(string $locale, ?string $displayLocale = null): ?string
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"blade-ui-kit/blade-heroicons": "^2.2.1",
|
||||
"blade-ui-kit/blade-heroicons": "^2.5",
|
||||
"doctrine/dbal": "^3.2|^4.0",
|
||||
"ext-intl": "*",
|
||||
"illuminate/contracts": "^10.45|^11.0",
|
||||
"illuminate/support": "^10.45|^11.0",
|
||||
"illuminate/view": "^10.45|^11.0",
|
||||
"kirschbaum-development/eloquent-power-joins": "^3.0|^4.0",
|
||||
"livewire/livewire": "^3.4.10",
|
||||
"livewire/livewire": "3.5.12",
|
||||
"ryangjchandler/blade-capture-directive": "^0.2|^0.3|^1.0",
|
||||
"spatie/color": "^1.5",
|
||||
"spatie/invade": "^1.0|^2.0",
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace Filament\Support\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Contracts\Console\PromptsForMissingInput;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Collection;
|
||||
@@ -11,8 +12,12 @@ use Symfony\Component\Console\Attribute\AsCommand;
|
||||
use Symfony\Component\Console\Exception\InvalidOptionException;
|
||||
use Symfony\Component\Finder\SplFileInfo;
|
||||
|
||||
use function Laravel\Prompts\info;
|
||||
use function Laravel\Prompts\table;
|
||||
use function Laravel\Prompts\warning;
|
||||
|
||||
#[AsCommand(name: 'filament:check-translations')]
|
||||
class CheckTranslationsCommand extends Command
|
||||
class CheckTranslationsCommand extends Command implements PromptsForMissingInput
|
||||
{
|
||||
protected $signature = 'filament:check-translations
|
||||
{locales* : The locales to check.}
|
||||
@@ -72,29 +77,21 @@ class CheckTranslationsCommand extends Command
|
||||
$path = implode(DIRECTORY_SEPARATOR, [$localeRootDirectory, $locale]);
|
||||
|
||||
if ($missingFiles->count() > 0 && $removedFiles->count() > 0) {
|
||||
$this->warn("[!] Package filament/{$package} has {$missingFiles->count()} missing translation " . Str::plural('file', $missingFiles->count()) . " and {$removedFiles->count()} removed translation " . Str::plural('file', $missingFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
|
||||
$this->newLine();
|
||||
warning("[!] Package filament/{$package} has {$missingFiles->count()} missing translation " . Str::plural('file', $missingFiles->count()) . " and {$removedFiles->count()} removed translation " . Str::plural('file', $missingFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
} elseif ($missingFiles->count() > 0) {
|
||||
$this->warn("[!] Package filament/{$package} has {$missingFiles->count()} missing translation " . Str::plural('file', $missingFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
|
||||
$this->newLine();
|
||||
warning("[!] Package filament/{$package} has {$missingFiles->count()} missing translation " . Str::plural('file', $missingFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
} elseif ($removedFiles->count() > 0) {
|
||||
$this->warn("[!] Package filament/{$package} has {$removedFiles->count()} removed translation " . Str::plural('file', $removedFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
|
||||
$this->newLine();
|
||||
warning("[!] Package filament/{$package} has {$removedFiles->count()} removed translation " . Str::plural('file', $removedFiles->count()) . ' for ' . locale_get_display_name($locale, 'en') . ".\n");
|
||||
}
|
||||
|
||||
if ($missingFiles->count() > 0 || $removedFiles->count() > 0) {
|
||||
$this->table(
|
||||
table(
|
||||
[$path, ''],
|
||||
array_merge(
|
||||
array_map(fn (string $file): array => [$file, 'Missing'], $missingFiles->toArray()),
|
||||
array_map(fn (string $file): array => [$file, 'Removed'], $removedFiles->toArray()),
|
||||
),
|
||||
);
|
||||
|
||||
$this->newLine();
|
||||
}
|
||||
|
||||
collect($files)
|
||||
@@ -125,29 +122,24 @@ class CheckTranslationsCommand extends Command
|
||||
$locale = locale_get_display_name($locale, 'en');
|
||||
|
||||
if ((! $missingKeysCount) && (! $removedKeysCount)) {
|
||||
$this->info("[✓] Package filament/{$package} has no missing or removed translation keys for {$locale}!\n");
|
||||
|
||||
$this->newLine();
|
||||
info("[✓] Package filament/{$package} has no missing or removed translation keys for {$locale}!\n");
|
||||
} elseif ($missingKeysCount && $removedKeysCount) {
|
||||
$this->warn("[!] Package filament/{$package} has {$missingKeysCount} missing translation " . Str::plural('key', $missingKeysCount) . " and {$removedKeysCount} removed translation " . Str::plural('key', $removedKeysCount) . " for {$locale}.\n");
|
||||
warning("[!] Package filament/{$package} has {$missingKeysCount} missing translation " . Str::plural('key', $missingKeysCount) . " and {$removedKeysCount} removed translation " . Str::plural('key', $removedKeysCount) . " for {$locale}.\n");
|
||||
} elseif ($missingKeysCount) {
|
||||
$this->warn("[!] Package filament/{$package} has {$missingKeysCount} missing translation " . Str::plural('key', $missingKeysCount) . " for {$locale}.\n");
|
||||
warning("[!] Package filament/{$package} has {$missingKeysCount} missing translation " . Str::plural('key', $missingKeysCount) . " for {$locale}.\n");
|
||||
} elseif ($removedKeysCount) {
|
||||
$this->warn("[!] Package filament/{$package} has {$removedKeysCount} removed translation " . Str::plural('key', $removedKeysCount) . " for {$locale}.\n");
|
||||
warning("[!] Package filament/{$package} has {$removedKeysCount} removed translation " . Str::plural('key', $removedKeysCount) . " for {$locale}.\n");
|
||||
}
|
||||
})
|
||||
->filter(static fn ($keys): bool => count($keys['missing']) || count($keys['removed']))
|
||||
->each(function ($keys, string $file) {
|
||||
$this->table(
|
||||
table(
|
||||
[$file, ''],
|
||||
[
|
||||
...array_map(fn (string $key): array => [$key, 'Missing'], $keys['missing']),
|
||||
...array_map(fn (string $key): array => [$key, 'Removed'], $keys['removed']),
|
||||
],
|
||||
'box',
|
||||
);
|
||||
|
||||
$this->newLine();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ return [
|
||||
'label' => 'Acció|Accions',
|
||||
],
|
||||
|
||||
|
||||
'text' => [
|
||||
|
||||
'actions' => [
|
||||
|
||||
@@ -10,6 +10,10 @@ return [
|
||||
|
||||
'columns' => [
|
||||
|
||||
'actions' => [
|
||||
'label' => 'Aksi|Aksi',
|
||||
],
|
||||
|
||||
'text' => [
|
||||
|
||||
'actions' => [
|
||||
|
||||
@@ -10,6 +10,10 @@ return [
|
||||
|
||||
'columns' => [
|
||||
|
||||
'actions' => [
|
||||
'label' => 'Tindakan|Tindakan',
|
||||
],
|
||||
|
||||
'text' => [
|
||||
|
||||
'actions' => [
|
||||
|
||||
@@ -10,13 +10,19 @@ return [
|
||||
|
||||
'columns' => [
|
||||
|
||||
'actions' => [
|
||||
'label' => 'Akcia|Akcie',
|
||||
],
|
||||
|
||||
'text' => [
|
||||
|
||||
'actions' => [
|
||||
'collapse_list' => 'Zobraziť o :count menej',
|
||||
'expand_list' => 'Zobraziť o :count viac',
|
||||
],
|
||||
|
||||
'more_list_items' => 'a ďalších :count',
|
||||
|
||||
],
|
||||
|
||||
],
|
||||
|
||||
@@ -10,6 +10,10 @@ return [
|
||||
|
||||
'columns' => [
|
||||
|
||||
'actions' => [
|
||||
'label' => 'Дія|Дії',
|
||||
],
|
||||
|
||||
'text' => [
|
||||
|
||||
'actions' => [
|
||||
|
||||
@@ -165,3 +165,27 @@ To disable this behavior, you may override the `$isLazy` property on the widget
|
||||
```php
|
||||
protected static bool $isLazy = false;
|
||||
```
|
||||
|
||||
## Adding a heading and description
|
||||
|
||||
You may also add heading and description text above the widget by overriding the `$heading` and `$description` properties:
|
||||
|
||||
```php
|
||||
protected ?string $heading = 'Analytics';
|
||||
|
||||
protected ?string $description = 'An overview of some analytics.';
|
||||
```
|
||||
|
||||
If you need to dynamically generate the heading or description text, you can instead override the `getHeading()` and `getDescription()` methods:
|
||||
|
||||
```php
|
||||
protected function getHeading(): ?string
|
||||
{
|
||||
return 'Analytics';
|
||||
}
|
||||
|
||||
protected function getDescription(): ?string
|
||||
{
|
||||
return 'An overview of some analytics.';
|
||||
}
|
||||
```
|
||||
|
||||
@@ -15,6 +15,10 @@ class StatsOverviewWidget extends Widget
|
||||
|
||||
protected int | string | array $columnSpan = 'full';
|
||||
|
||||
protected ?string $heading = null;
|
||||
|
||||
protected ?string $description = null;
|
||||
|
||||
/**
|
||||
* @var view-string
|
||||
*/
|
||||
@@ -53,6 +57,16 @@ class StatsOverviewWidget extends Widget
|
||||
return [];
|
||||
}
|
||||
|
||||
protected function getDescription(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
protected function getHeading(): ?string
|
||||
{
|
||||
return $this->heading;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<Stat>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user