diff --git a/_ide_helper.php b/_ide_helper.php index d37473b21..298ffcecb 100644 --- a/_ide_helper.php +++ b/_ide_helper.php @@ -5,7 +5,7 @@ /** * A helper file for Laravel, to provide autocomplete information to your IDE - * Generated for Laravel 11.18.1. + * Generated for Laravel 11.19.0. * * This file should not be included in your code, only analyzed by your IDE! * @@ -20133,6 +20133,64 @@ */ public static function assertFormFieldIsVisible($fieldName, $formName = 'form') { return \Livewire\Features\SupportTesting\Testable::assertFormFieldIsVisible($fieldName, $formName); + } + /** + * + * + * @see \Filament\Forms\Testing\TestsForms::assertWizardStepExists() + * @param int $step + * @param string $formName + * @return static + * @static + */ public static function assertWizardStepExists($step, $formName = 'form') + { + return \Livewire\Features\SupportTesting\Testable::assertWizardStepExists($step, $formName); + } + /** + * + * + * @see \Filament\Forms\Testing\TestsForms::assertWizardCurrentStep() + * @param int $step + * @param string $formName + * @return static + * @static + */ public static function assertWizardCurrentStep($step, $formName = 'form') + { + return \Livewire\Features\SupportTesting\Testable::assertWizardCurrentStep($step, $formName); + } + /** + * + * + * @see \Filament\Forms\Testing\TestsForms::goToWizardStep() + * @param int $step + * @param string $formName + * @return static + * @static + */ public static function goToWizardStep($step, $formName = 'form') + { + return \Livewire\Features\SupportTesting\Testable::goToWizardStep($step, $formName); + } + /** + * + * + * @see \Filament\Forms\Testing\TestsForms::goToNextWizardStep() + * @param string $formName + * @return static + * @static + */ public static function goToNextWizardStep($formName = 'form') + { + return \Livewire\Features\SupportTesting\Testable::goToNextWizardStep($formName); + } + /** + * + * + * @see \Filament\Forms\Testing\TestsForms::goToPreviousWizardStep() + * @param string $formName + * @return static + * @static + */ public static function goToPreviousWizardStep($formName = 'form') + { + return \Livewire\Features\SupportTesting\Testable::goToPreviousWizardStep($formName); } /** * @@ -24301,7 +24359,7 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { /** * Add a "where like" clause to the query. * - * @param string $column + * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $value * @param bool $caseSensitive * @param string $boolean @@ -24316,7 +24374,7 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { /** * Add an "or where like" clause to the query. * - * @param string $column + * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $value * @param bool $caseSensitive * @return \Illuminate\Database\Query\Builder @@ -24329,7 +24387,7 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { /** * Add a "where not like" clause to the query. * - * @param string $column + * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $value * @param bool $caseSensitive * @param string $boolean @@ -24343,7 +24401,7 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { /** * Add an "or where not like" clause to the query. * - * @param string $columns + * @param \Illuminate\Contracts\Database\Query\Expression|string $column * @param string $value * @param bool $caseSensitive * @return \Illuminate\Database\Query\Builder @@ -25103,7 +25161,7 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { return $instance->orWhereAll($columns, $operator, $value); } /** - * Add an "where" clause to the query for multiple columns with "or" conditions between them. + * Add a "where" clause to the query for multiple columns with "or" conditions between them. * * @param string[] $columns * @param string $operator @@ -25128,6 +25186,33 @@ class Eloquent extends \Illuminate\Database\Eloquent\Model { { /** @var \Illuminate\Database\Query\Builder $instance */ return $instance->orWhereAny($columns, $operator, $value); + } + /** + * Add a "where not" clause to the query for multiple columns where none of the conditions should be true. + * + * @param string[] $columns + * @param string $operator + * @param mixed $value + * @param string $boolean + * @return \Illuminate\Database\Query\Builder + * @static + */ public static function whereNone($columns, $operator = null, $value = null, $boolean = 'and') + { + /** @var \Illuminate\Database\Query\Builder $instance */ + return $instance->whereNone($columns, $operator, $value, $boolean); + } + /** + * Add an "or where not" clause to the query for multiple columns where none of the conditions should be true. + * + * @param string[] $columns + * @param string $operator + * @param mixed $value + * @return \Illuminate\Database\Query\Builder + * @static + */ public static function orWhereNone($columns, $operator = null, $value = null) + { + /** @var \Illuminate\Database\Query\Builder $instance */ + return $instance->orWhereNone($columns, $operator, $value); } /** * Add a "group by" clause to the query. diff --git a/composer.json b/composer.json index 8c1482901..1bfcd3d07 100644 --- a/composer.json +++ b/composer.json @@ -12,13 +12,13 @@ "awcodes/filament-versions": "^2.0.1", "chrisullyott/php-filesize": "^4.2.1", "dragonmantank/cron-expression": "^3.3.3", - "filament/filament": "^3.2.96", - "filament/spatie-laravel-settings-plugin": "^3.2.96", + "filament/filament": "^3.2.97", + "filament/spatie-laravel-settings-plugin": "^3.2.97", "geerlingguy/ping": "^1.2.1", "guzzlehttp/guzzle": "^7.9.2", "influxdata/influxdb-client-php": "^3.6", "laravel-notification-channels/telegram": "^5.0", - "laravel/framework": "^11.18.1", + "laravel/framework": "^11.19", "laravel/prompts": "^0.1.24", "laravel/sanctum": "^4.0.2", "laravel/tinker": "^2.9.0", @@ -32,12 +32,12 @@ "require-dev": { "barryvdh/laravel-ide-helper": "^3.1", "fakerphp/faker": "^1.23.1", - "laravel/pint": "^1.17.0", + "laravel/pint": "^1.17.1", "laravel/sail": "^1.31.0", "laravel/telescope": "^5.1.1", "mockery/mockery": "^1.6.12", - "nunomaduro/collision": "^8.3.0", - "phpunit/phpunit": "^11.2.8", + "nunomaduro/collision": "^8.4.0", + "phpunit/phpunit": "^11.3.0", "spatie/laravel-ignition": "^2.8.0", "tightenco/duster": "^3.0.1" }, diff --git a/composer.lock b/composer.lock index 7db1c832d..ed1f1e0f6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2b61ffa8c929a39bb0f9a68eb064db44", + "content-hash": "dbfd4ab715230ad9ac6e6b2162b2e8a4", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -207,16 +207,16 @@ }, { "name": "blade-ui-kit/blade-icons", - "version": "1.6.1", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/blade-ui-kit/blade-icons.git", - "reference": "993d23c2bdabce06f3295e0ba07010badd0af71d" + "reference": "74275f44c71e815b85bf7cea66e3bf98c57fb7e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/blade-ui-kit/blade-icons/zipball/993d23c2bdabce06f3295e0ba07010badd0af71d", - "reference": "993d23c2bdabce06f3295e0ba07010badd0af71d", + "url": "https://api.github.com/repos/blade-ui-kit/blade-icons/zipball/74275f44c71e815b85bf7cea66e3bf98c57fb7e4", + "reference": "74275f44c71e815b85bf7cea66e3bf98c57fb7e4", "shasum": "" }, "require": { @@ -284,7 +284,7 @@ "type": "paypal" } ], - "time": "2024-07-26T07:32:09+00:00" + "time": "2024-07-29T21:49:30+00:00" }, { "name": "brick/math", @@ -1352,16 +1352,16 @@ }, { "name": "filament/actions", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/actions.git", - "reference": "c8b71f18d28a2f9e23ade2631f3f80907ffe6946" + "reference": "aff18fda397dbf3e9f449f9a9360f3359b154c0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/actions/zipball/c8b71f18d28a2f9e23ade2631f3f80907ffe6946", - "reference": "c8b71f18d28a2f9e23ade2631f3f80907ffe6946", + "url": "https://api.github.com/repos/filamentphp/actions/zipball/aff18fda397dbf3e9f449f9a9360f3359b154c0e", + "reference": "aff18fda397dbf3e9f449f9a9360f3359b154c0e", "shasum": "" }, "require": { @@ -1401,20 +1401,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:05+00:00" + "time": "2024-07-31T11:53:04+00:00" }, { "name": "filament/filament", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/panels.git", - "reference": "06a66eb3874d9942e2c926fb4cea7166115fb6ae" + "reference": "9e0b750546a51fdbc67b1232f2399385587dcc9a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/panels/zipball/06a66eb3874d9942e2c926fb4cea7166115fb6ae", - "reference": "06a66eb3874d9942e2c926fb4cea7166115fb6ae", + "url": "https://api.github.com/repos/filamentphp/panels/zipball/9e0b750546a51fdbc67b1232f2399385587dcc9a", + "reference": "9e0b750546a51fdbc67b1232f2399385587dcc9a", "shasum": "" }, "require": { @@ -1466,20 +1466,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:23+00:00" + "time": "2024-07-31T11:53:12+00:00" }, { "name": "filament/forms", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "a2169e69650aad55c5110b6132c05ef18dea6d4e" + "reference": "d679d30ae1c345740920e45b0334b5eacc76f7aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/a2169e69650aad55c5110b6132c05ef18dea6d4e", - "reference": "a2169e69650aad55c5110b6132c05ef18dea6d4e", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/d679d30ae1c345740920e45b0334b5eacc76f7aa", + "reference": "d679d30ae1c345740920e45b0334b5eacc76f7aa", "shasum": "" }, "require": { @@ -1522,20 +1522,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:06+00:00" + "time": "2024-07-31T11:53:08+00:00" }, { "name": "filament/infolists", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/infolists.git", - "reference": "8b9b8cd3d4fd2ace6deac224eb646a0228b9f053" + "reference": "af2266e0cf9d26e88ea6153d608f11aa9cebb59e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/infolists/zipball/8b9b8cd3d4fd2ace6deac224eb646a0228b9f053", - "reference": "8b9b8cd3d4fd2ace6deac224eb646a0228b9f053", + "url": "https://api.github.com/repos/filamentphp/infolists/zipball/af2266e0cf9d26e88ea6153d608f11aa9cebb59e", + "reference": "af2266e0cf9d26e88ea6153d608f11aa9cebb59e", "shasum": "" }, "require": { @@ -1573,20 +1573,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:10+00:00" + "time": "2024-07-31T11:53:07+00:00" }, { "name": "filament/notifications", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", - "reference": "df0aa8997e90fb9409ea6baf5b4c9bf10c592563" + "reference": "03ea56e0729c98c65831ab0215285a7cb1c4117f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/notifications/zipball/df0aa8997e90fb9409ea6baf5b4c9bf10c592563", - "reference": "df0aa8997e90fb9409ea6baf5b4c9bf10c592563", + "url": "https://api.github.com/repos/filamentphp/notifications/zipball/03ea56e0729c98c65831ab0215285a7cb1c4117f", + "reference": "03ea56e0729c98c65831ab0215285a7cb1c4117f", "shasum": "" }, "require": { @@ -1625,11 +1625,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-10T17:10:55+00:00" + "time": "2024-07-31T11:53:11+00:00" }, { "name": "filament/spatie-laravel-settings-plugin", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-settings-plugin.git", @@ -1676,16 +1676,16 @@ }, { "name": "filament/support", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "4cec1377278853882103a09cafdc1b258f995ee4" + "reference": "94c5349b8fed252499314bd2149fadf96ddaf6d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/4cec1377278853882103a09cafdc1b258f995ee4", - "reference": "4cec1377278853882103a09cafdc1b258f995ee4", + "url": "https://api.github.com/repos/filamentphp/support/zipball/94c5349b8fed252499314bd2149fadf96ddaf6d6", + "reference": "94c5349b8fed252499314bd2149fadf96ddaf6d6", "shasum": "" }, "require": { @@ -1730,20 +1730,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:41+00:00" + "time": "2024-07-31T11:53:25+00:00" }, { "name": "filament/tables", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "5e39c8c37beea164d1c48d95550346471e56361c" + "reference": "0e6e96bde5337b26944ce3a657ae6755bef82d1e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/5e39c8c37beea164d1c48d95550346471e56361c", - "reference": "5e39c8c37beea164d1c48d95550346471e56361c", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/0e6e96bde5337b26944ce3a657ae6755bef82d1e", + "reference": "0e6e96bde5337b26944ce3a657ae6755bef82d1e", "shasum": "" }, "require": { @@ -1783,20 +1783,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:45+00:00" + "time": "2024-07-31T11:53:24+00:00" }, { "name": "filament/widgets", - "version": "v3.2.96", + "version": "v3.2.97", "source": { "type": "git", "url": "https://github.com/filamentphp/widgets.git", - "reference": "7e35fdb24c576d83518606ef1aa0f0e4bda22e0f" + "reference": "909fc82bae2cf41d70b3cd7dda8982245b2ea723" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/widgets/zipball/7e35fdb24c576d83518606ef1aa0f0e4bda22e0f", - "reference": "7e35fdb24c576d83518606ef1aa0f0e4bda22e0f", + "url": "https://api.github.com/repos/filamentphp/widgets/zipball/909fc82bae2cf41d70b3cd7dda8982245b2ea723", + "reference": "909fc82bae2cf41d70b3cd7dda8982245b2ea723", "shasum": "" }, "require": { @@ -1827,7 +1827,7 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2024-07-24T12:10:48+00:00" + "time": "2024-07-31T11:53:30+00:00" }, { "name": "fruitcake/php-cors", @@ -2597,16 +2597,16 @@ }, { "name": "laravel/framework", - "version": "v11.18.1", + "version": "v11.19.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "b19ba518c56852567e99fbae9321bc436c2cc5a8" + "reference": "5e103d499e9ee5bcfc184412d034c4e516b87085" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/b19ba518c56852567e99fbae9321bc436c2cc5a8", - "reference": "b19ba518c56852567e99fbae9321bc436c2cc5a8", + "url": "https://api.github.com/repos/laravel/framework/zipball/5e103d499e9ee5bcfc184412d034c4e516b87085", + "reference": "5e103d499e9ee5bcfc184412d034c4e516b87085", "shasum": "" }, "require": { @@ -2799,7 +2799,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-07-26T10:39:29+00:00" + "time": "2024-07-30T15:22:41+00:00" }, { "name": "laravel/prompts", @@ -9770,16 +9770,16 @@ }, { "name": "laravel/pint", - "version": "v1.17.0", + "version": "v1.17.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5" + "reference": "b5b6f716db298671c1dfea5b1082ec2c0ae7064f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5", - "reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5", + "url": "https://api.github.com/repos/laravel/pint/zipball/b5b6f716db298671c1dfea5b1082ec2c0ae7064f", + "reference": "b5b6f716db298671c1dfea5b1082ec2c0ae7064f", "shasum": "" }, "require": { @@ -9832,7 +9832,7 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-07-23T16:40:20+00:00" + "time": "2024-08-01T09:06:33+00:00" }, { "name": "laravel/sail", @@ -10111,23 +10111,23 @@ }, { "name": "nunomaduro/collision", - "version": "v8.3.0", + "version": "v8.4.0", "source": { "type": "git", "url": "https://github.com/nunomaduro/collision.git", - "reference": "b49f5b2891ce52726adfd162841c69d4e4c84229" + "reference": "e7d1aa8ed753f63fa816932bbc89678238843b4a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/b49f5b2891ce52726adfd162841c69d4e4c84229", - "reference": "b49f5b2891ce52726adfd162841c69d4e4c84229", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/e7d1aa8ed753f63fa816932bbc89678238843b4a", + "reference": "e7d1aa8ed753f63fa816932bbc89678238843b4a", "shasum": "" }, "require": { "filp/whoops": "^2.15.4", "nunomaduro/termwind": "^2.0.1", "php": "^8.2.0", - "symfony/console": "^7.1.2" + "symfony/console": "^7.1.3" }, "conflict": { "laravel/framework": "<11.0.0 || >=12.0.0", @@ -10135,13 +10135,13 @@ }, "require-dev": { "larastan/larastan": "^2.9.8", - "laravel/framework": "^11.16.0", - "laravel/pint": "^1.16.2", - "laravel/sail": "^1.30.2", + "laravel/framework": "^11.19.0", + "laravel/pint": "^1.17.1", + "laravel/sail": "^1.31.0", "laravel/sanctum": "^4.0.2", "laravel/tinker": "^2.9.0", - "orchestra/testbench-core": "^9.2.1", - "pestphp/pest": "^2.34.9 || ^3.0.0", + "orchestra/testbench-core": "^9.2.3", + "pestphp/pest": "^2.35.0 || ^3.0.0", "sebastian/environment": "^6.1.0 || ^7.0.0" }, "type": "library", @@ -10204,7 +10204,7 @@ "type": "patreon" } ], - "time": "2024-07-16T22:41:01+00:00" + "time": "2024-08-03T15:32:23+00:00" }, { "name": "phar-io/manifest", @@ -10649,16 +10649,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.2.8", + "version": "11.3.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a7a29e8d3113806f18f99d670f580a30e8ffff39" + "reference": "a8dce73a8938dfec7ac0daa91bdbcaae7d7188a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a7a29e8d3113806f18f99d670f580a30e8ffff39", - "reference": "a7a29e8d3113806f18f99d670f580a30e8ffff39", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a8dce73a8938dfec7ac0daa91bdbcaae7d7188a3", + "reference": "a8dce73a8938dfec7ac0daa91bdbcaae7d7188a3", "shasum": "" }, "require": { @@ -10697,7 +10697,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "11.2-dev" + "dev-main": "11.3-dev" } }, "autoload": { @@ -10729,7 +10729,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.2.8" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.3.0" }, "funding": [ { @@ -10745,7 +10745,7 @@ "type": "tidelift" } ], - "time": "2024-07-18T14:56:37+00:00" + "time": "2024-08-02T03:56:43+00:00" }, { "name": "sebastian/cli-parser", @@ -11809,16 +11809,16 @@ }, { "name": "spatie/flare-client-php", - "version": "1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/spatie/flare-client-php.git", - "reference": "097040ff51e660e0f6fc863684ac4b02c93fa234" + "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/097040ff51e660e0f6fc863684ac4b02c93fa234", - "reference": "097040ff51e660e0f6fc863684ac4b02c93fa234", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", + "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", "shasum": "" }, "require": { @@ -11836,7 +11836,7 @@ "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", - "spatie/phpunit-snapshot-assertions": "^4.0|^5.0" + "spatie/pest-plugin-snapshots": "^1.0|^2.0" }, "type": "library", "extra": { @@ -11866,7 +11866,7 @@ ], "support": { "issues": "https://github.com/spatie/flare-client-php/issues", - "source": "https://github.com/spatie/flare-client-php/tree/1.7.0" + "source": "https://github.com/spatie/flare-client-php/tree/1.8.0" }, "funding": [ { @@ -11874,7 +11874,7 @@ "type": "github" } ], - "time": "2024-06-12T14:39:14+00:00" + "time": "2024-08-01T08:27:26+00:00" }, { "name": "spatie/ignition", diff --git a/public/js/filament/tables/components/table.js b/public/js/filament/tables/components/table.js index 4dac3b0eb..ea16d8561 100644 --- a/public/js/filament/tables/components/table.js +++ b/public/js/filament/tables/components/table.js @@ -1 +1 @@ -function n(){return{collapsedGroups:[],isLoading:!1,selectedRecords:[],shouldCheckUniqueSelection:!0,lastCheckedRecord:null,livewireId:null,init:function(){this.livewireId=this.$root.closest("[wire\\:id]").attributes["wire:id"].value,this.$wire.$on("deselectAllTableRecords",()=>this.deselectAllRecords()),this.$watch("selectedRecords",()=>{if(!this.shouldCheckUniqueSelection){this.shouldCheckUniqueSelection=!0;return}this.selectedRecords=[...new Set(this.selectedRecords)],this.shouldCheckUniqueSelection=!1}),this.$nextTick(()=>this.watchForCheckboxClicks()),Livewire.hook("element.init",({component:e})=>{e.id===this.livewireId&&this.watchForCheckboxClicks()})},mountAction:function(e,t=null){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableAction(e,t)},mountBulkAction:function(e){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableBulkAction(e)},toggleSelectRecordsOnPage:function(){let e=this.getRecordsOnPage();if(this.areRecordsSelected(e)){this.deselectRecords(e);return}this.selectRecords(e)},toggleSelectRecordsInGroup:async function(e){if(this.isLoading=!0,this.areRecordsSelected(this.getRecordsInGroupOnPage(e))){this.deselectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e));return}this.selectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e)),this.isLoading=!1},getRecordsInGroupOnPage:function(e){let t=[];for(let s of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])s.dataset.group===e&&t.push(s.value);return t},getRecordsOnPage:function(){let e=[];for(let t of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])e.push(t.value);return e},selectRecords:function(e){for(let t of e)this.isRecordSelected(t)||this.selectedRecords.push(t)},deselectRecords:function(e){for(let t of e){let s=this.selectedRecords.indexOf(t);s!==-1&&this.selectedRecords.splice(s,1)}},selectAllRecords:async function(){this.isLoading=!0,this.selectedRecords=await this.$wire.getAllSelectableTableRecordKeys(),this.isLoading=!1},deselectAllRecords:function(){this.selectedRecords=[]},isRecordSelected:function(e){return this.selectedRecords.includes(e)},areRecordsSelected:function(e){return e.every(t=>this.isRecordSelected(t))},toggleCollapseGroup:function(e){if(this.isGroupCollapsed(e)){this.collapsedGroups.splice(this.collapsedGroups.indexOf(e),1);return}this.collapsedGroups.push(e)},isGroupCollapsed:function(e){return this.collapsedGroups.includes(e)},resetCollapsedGroups:function(){this.collapsedGroups=[]},watchForCheckboxClicks:function(){let e=this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[];for(let t of e)t.removeEventListener("click",this.handleCheckboxClick),t.addEventListener("click",s=>this.handleCheckboxClick(s,t))},handleCheckboxClick:function(e,t){if(!this.lastChecked){this.lastChecked=t;return}if(e.shiftKey){let s=Array.from(this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[]);if(!s.includes(this.lastChecked)){this.lastChecked=t;return}let o=s.indexOf(this.lastChecked),r=s.indexOf(t),l=[o,r].sort((i,d)=>i-d),c=[];for(let i=l[0];i<=l[1];i++)s[i].checked=t.checked,c.push(s[i].value);t.checked?this.selectRecords(c):this.deselectRecords(c)}this.lastChecked=t}}}export{n as default}; +function n(){return{checkboxClickController:null,collapsedGroups:[],isLoading:!1,selectedRecords:[],shouldCheckUniqueSelection:!0,lastCheckedRecord:null,livewireId:null,init:function(){this.livewireId=this.$root.closest("[wire\\:id]").attributes["wire:id"].value,this.$wire.$on("deselectAllTableRecords",()=>this.deselectAllRecords()),this.$watch("selectedRecords",()=>{if(!this.shouldCheckUniqueSelection){this.shouldCheckUniqueSelection=!0;return}this.selectedRecords=[...new Set(this.selectedRecords)],this.shouldCheckUniqueSelection=!1}),this.$nextTick(()=>this.watchForCheckboxClicks()),Livewire.hook("element.init",({component:e})=>{e.id===this.livewireId&&this.watchForCheckboxClicks()})},mountAction:function(e,t=null){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableAction(e,t)},mountBulkAction:function(e){this.$wire.set("selectedTableRecords",this.selectedRecords,!1),this.$wire.mountTableBulkAction(e)},toggleSelectRecordsOnPage:function(){let e=this.getRecordsOnPage();if(this.areRecordsSelected(e)){this.deselectRecords(e);return}this.selectRecords(e)},toggleSelectRecordsInGroup:async function(e){if(this.isLoading=!0,this.areRecordsSelected(this.getRecordsInGroupOnPage(e))){this.deselectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e));return}this.selectRecords(await this.$wire.getGroupedSelectableTableRecordKeys(e)),this.isLoading=!1},getRecordsInGroupOnPage:function(e){let t=[];for(let s of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])s.dataset.group===e&&t.push(s.value);return t},getRecordsOnPage:function(){let e=[];for(let t of this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[])e.push(t.value);return e},selectRecords:function(e){for(let t of e)this.isRecordSelected(t)||this.selectedRecords.push(t)},deselectRecords:function(e){for(let t of e){let s=this.selectedRecords.indexOf(t);s!==-1&&this.selectedRecords.splice(s,1)}},selectAllRecords:async function(){this.isLoading=!0,this.selectedRecords=await this.$wire.getAllSelectableTableRecordKeys(),this.isLoading=!1},deselectAllRecords:function(){this.selectedRecords=[]},isRecordSelected:function(e){return this.selectedRecords.includes(e)},areRecordsSelected:function(e){return e.every(t=>this.isRecordSelected(t))},toggleCollapseGroup:function(e){if(this.isGroupCollapsed(e)){this.collapsedGroups.splice(this.collapsedGroups.indexOf(e),1);return}this.collapsedGroups.push(e)},isGroupCollapsed:function(e){return this.collapsedGroups.includes(e)},resetCollapsedGroups:function(){this.collapsedGroups=[]},watchForCheckboxClicks:function(){this.checkboxClickController&&this.checkboxClickController.abort(),this.checkboxClickController=new AbortController;let{signal:e}=this.checkboxClickController;this.$root?.addEventListener("click",t=>t.target?.matches(".fi-ta-record-checkbox")&&this.handleCheckboxClick(t,t.target),{signal:e})},handleCheckboxClick:function(e,t){if(!this.lastChecked){this.lastChecked=t;return}if(e.shiftKey){let s=Array.from(this.$root?.getElementsByClassName("fi-ta-record-checkbox")??[]);if(!s.includes(this.lastChecked)){this.lastChecked=t;return}let o=s.indexOf(this.lastChecked),r=s.indexOf(t),l=[o,r].sort((i,d)=>i-d),c=[];for(let i=l[0];i<=l[1];i++)s[i].checked=t.checked,c.push(s[i].value);t.checked?this.selectRecords(c):this.deselectRecords(c)}this.lastChecked=t}}}export{n as default};