diff --git a/.craftplugin b/.craftplugin index b58d2a82..dfb05dc8 100644 --- a/.craftplugin +++ b/.craftplugin @@ -1,7 +1,7 @@ { "pluginName": "Translations for Craft", "pluginDescription": "Drive global growth with simplified translation workflows.", - "pluginVersion": "v4.0.6", + "pluginVersion": "v4.0.7", "pluginAuthorName": "Acclaro", "pluginVendorName": "Acclaro", "pluginAuthorUrl": "http://www.acclaro.com/", diff --git a/CHANGELOG.md b/CHANGELOG.md index 31edcdc7..221d7aea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 4.0.7 - 2024-02-11 + +### Fixed +- Widget overlapping in tranlsation dashbaord. ([AcclaroInc#560](https://github.com/AcclaroInc/pm-craft-translations/issues/560)) +- Deprecation warning issue. ([AcclaroInc#536](https://github.com/AcclaroInc/craft-translations/issues/536)) +- Date time issue in activity logs. ([AcclaroInc#539](https://github.com/AcclaroInc/craft-translations/issues/539)) +- Wrong event handler issue. ([AcclaroInc#550](https://github.com/AcclaroInc/craft-translations/issues/550)) +- Database button UI glitch. ([AcclaroInc#556](https://github.com/AcclaroInc/craft-translations/issues/556)) +- Error notification for character limit. ([AcclaroInc#576](https://github.com/AcclaroInc/pm-craft-translations/issues/576)) +- UI issue where order details sidebar distorted due to change in craft's native css. + ## 4.0.6 - 2024-01-20 ### Added diff --git a/composer.json b/composer.json index d1e01c97..71681637 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ } ], "require": { - "craftcms/cms": "^5.0.0", + "craftcms/cms": "^5.6.0", "guzzlehttp/guzzle": "^7.0", "composer/composer": "^2.7.0", "google/cloud-translate": "^1.15", diff --git a/composer.lock b/composer.lock index d783c035..0578df3d 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": "c6965a2dec5876b0ee78a4fee27cdf29", + "content-hash": "068609a145b10cf1183d9bd681f2b17c", "packages": [ { "name": "bacon/bacon-qr-code", @@ -186,16 +186,16 @@ }, { "name": "commerceguys/addressing", - "version": "v2.2.3", + "version": "v2.2.4", "source": { "type": "git", "url": "https://github.com/commerceguys/addressing.git", - "reference": "ca69b9cc502867111e585f7c627894ffac6f328a" + "reference": "ea826dbe5b3fe76960073a2167d5cf996c811cda" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/commerceguys/addressing/zipball/ca69b9cc502867111e585f7c627894ffac6f328a", - "reference": "ca69b9cc502867111e585f7c627894ffac6f328a", + "url": "https://api.github.com/repos/commerceguys/addressing/zipball/ea826dbe5b3fe76960073a2167d5cf996c811cda", + "reference": "ea826dbe5b3fe76960073a2167d5cf996c811cda", "shasum": "" }, "require": { @@ -244,22 +244,22 @@ ], "support": { "issues": "https://github.com/commerceguys/addressing/issues", - "source": "https://github.com/commerceguys/addressing/tree/v2.2.3" + "source": "https://github.com/commerceguys/addressing/tree/v2.2.4" }, - "time": "2024-11-11T16:07:47+00:00" + "time": "2025-01-13T16:03:24+00:00" }, { "name": "composer/ca-bundle", - "version": "1.5.4", + "version": "1.5.5", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "bc0593537a463e55cadf45fd938d23b75095b7e1" + "reference": "08c50d5ec4c6ced7d0271d2862dec8c1033283e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/bc0593537a463e55cadf45fd938d23b75095b7e1", - "reference": "bc0593537a463e55cadf45fd938d23b75095b7e1", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/08c50d5ec4c6ced7d0271d2862dec8c1033283e6", + "reference": "08c50d5ec4c6ced7d0271d2862dec8c1033283e6", "shasum": "" }, "require": { @@ -306,7 +306,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/ca-bundle/issues", - "source": "https://github.com/composer/ca-bundle/tree/1.5.4" + "source": "https://github.com/composer/ca-bundle/tree/1.5.5" }, "funding": [ { @@ -322,20 +322,20 @@ "type": "tidelift" } ], - "time": "2024-11-27T15:35:25+00:00" + "time": "2025-01-08T16:17:16+00:00" }, { "name": "composer/class-map-generator", - "version": "1.5.0", + "version": "1.6.0", "source": { "type": "git", "url": "https://github.com/composer/class-map-generator.git", - "reference": "4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915" + "reference": "ffe442c5974c44a9343e37a0abcb1cc37319f5b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/class-map-generator/zipball/4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915", - "reference": "4b0a223cf5be7c9ee7e0ef1bc7db42b4a97c9915", + "url": "https://api.github.com/repos/composer/class-map-generator/zipball/ffe442c5974c44a9343e37a0abcb1cc37319f5b9", + "reference": "ffe442c5974c44a9343e37a0abcb1cc37319f5b9", "shasum": "" }, "require": { @@ -379,7 +379,7 @@ ], "support": { "issues": "https://github.com/composer/class-map-generator/issues", - "source": "https://github.com/composer/class-map-generator/tree/1.5.0" + "source": "https://github.com/composer/class-map-generator/tree/1.6.0" }, "funding": [ { @@ -395,20 +395,20 @@ "type": "tidelift" } ], - "time": "2024-11-25T16:11:06+00:00" + "time": "2025-02-05T10:05:34+00:00" }, { "name": "composer/composer", - "version": "2.8.4", + "version": "2.8.5", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "112e37d1dca22b3fdb81cf3524ab4994f47fdb8c" + "reference": "ae208dc1e182bd45d99fcecb956501da212454a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/112e37d1dca22b3fdb81cf3524ab4994f47fdb8c", - "reference": "112e37d1dca22b3fdb81cf3524ab4994f47fdb8c", + "url": "https://api.github.com/repos/composer/composer/zipball/ae208dc1e182bd45d99fcecb956501da212454a1", + "reference": "ae208dc1e182bd45d99fcecb956501da212454a1", "shasum": "" }, "require": { @@ -493,7 +493,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.8.4" + "source": "https://github.com/composer/composer/tree/2.8.5" }, "funding": [ { @@ -509,7 +509,7 @@ "type": "tidelift" } ], - "time": "2024-12-11T10:57:47+00:00" + "time": "2025-01-21T14:23:40+00:00" }, { "name": "composer/metadata-minifier", @@ -607,13 +607,13 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "3.x-dev" - }, "phpstan": { "includes": [ "extension.neon" ] + }, + "branch-alias": { + "dev-main": "3.x-dev" } }, "autoload": { @@ -888,16 +888,16 @@ }, { "name": "craftcms/cms", - "version": "5.5.6.1", + "version": "5.6.5.1", "source": { "type": "git", "url": "https://github.com/craftcms/cms.git", - "reference": "a8bf00237ada556acd2b2245639d1cf54c903a02" + "reference": "bb960e61bf22f2f8db673dfc34fe3ffcded408f2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/cms/zipball/a8bf00237ada556acd2b2245639d1cf54c903a02", - "reference": "a8bf00237ada556acd2b2245639d1cf54c903a02", + "url": "https://api.github.com/repos/craftcms/cms/zipball/bb960e61bf22f2f8db673dfc34fe3ffcded408f2", + "reference": "bb960e61bf22f2f8db673dfc34fe3ffcded408f2", "shasum": "" }, "require": { @@ -932,6 +932,8 @@ "pragmarx/recovery": "^0.2.1", "samdark/yii2-psr-log-target": "^1.1.3", "seld/cli-prompt": "^1.0.4", + "symfony/css-selector": "^6.0|^7.0", + "symfony/dom-crawler": "^6.0|^7.0", "symfony/filesystem": "^6.3", "symfony/http-client": "^6.0.3", "symfony/property-access": "^7.0", @@ -940,7 +942,7 @@ "symfony/var-dumper": "^5.0|^6.0", "symfony/yaml": "^5.2.3", "theiconic/name-parser": "^1.2", - "twig/twig": "~3.14.0", + "twig/twig": "~3.15.0", "voku/stringy": "^6.4.0", "web-auth/webauthn-lib": "~4.9.0", "webonyx/graphql-php": "~14.11.5", @@ -971,6 +973,7 @@ "fakerphp/faker": "^1.19.0", "league/factory-muffin": "^3.3.0", "phpstan/phpstan": "^1.10.56", + "rector/rector": "^1.2", "vlucas/phpdotenv": "^5.4.1", "yiisoft/yii2-redis": "^2.0" }, @@ -1011,7 +1014,7 @@ "rss": "https://github.com/craftcms/cms/releases.atom", "source": "https://github.com/craftcms/cms" }, - "time": "2024-12-11T14:14:05+00:00" + "time": "2025-02-05T00:29:56+00:00" }, { "name": "craftcms/plugin-installer", @@ -1479,16 +1482,16 @@ }, { "name": "egulias/email-validator", - "version": "4.0.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/egulias/EmailValidator.git", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e" + "reference": "b115554301161fa21467629f1e1391c1936de517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/ebaaf5be6c0286928352e054f2d5125608e5405e", - "reference": "ebaaf5be6c0286928352e054f2d5125608e5405e", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/b115554301161fa21467629f1e1391c1936de517", + "reference": "b115554301161fa21467629f1e1391c1936de517", "shasum": "" }, "require": { @@ -1534,7 +1537,7 @@ ], "support": { "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/4.0.2" + "source": "https://github.com/egulias/EmailValidator/tree/4.0.3" }, "funding": [ { @@ -1542,7 +1545,7 @@ "type": "github" } ], - "time": "2023-10-06T06:47:41+00:00" + "time": "2024-12-27T00:36:43+00:00" }, { "name": "elvanto/litemoji", @@ -1695,16 +1698,16 @@ }, { "name": "firebase/php-jwt", - "version": "v6.10.2", + "version": "v6.11.0", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b" + "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b", - "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/8f718f4dfc9c5d5f0c994cdfd103921b43592712", + "reference": "8f718f4dfc9c5d5f0c994cdfd103921b43592712", "shasum": "" }, "require": { @@ -1752,22 +1755,22 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.10.2" + "source": "https://github.com/firebase/php-jwt/tree/v6.11.0" }, - "time": "2024-11-24T11:22:49+00:00" + "time": "2025-01-23T05:11:06+00:00" }, { "name": "google/auth", - "version": "v1.45.0", + "version": "v1.45.4", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", - "reference": "cfcb93162341ed5022fa976e621f0fa2b05ba6ad" + "reference": "c70b987a3c2685c78e5e86280f9d259d4603839b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/cfcb93162341ed5022fa976e621f0fa2b05ba6ad", - "reference": "cfcb93162341ed5022fa976e621f0fa2b05ba6ad", + "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/c70b987a3c2685c78e5e86280f9d259d4603839b", + "reference": "c70b987a3c2685c78e5e86280f9d259d4603839b", "shasum": "" }, "require": { @@ -1804,31 +1807,31 @@ "Apache-2.0" ], "description": "Google Auth Library for PHP", - "homepage": "http://github.com/google/google-auth-library-php", + "homepage": "https://github.com/google/google-auth-library-php", "keywords": [ "Authentication", "google", "oauth2" ], "support": { - "docs": "https://googleapis.github.io/google-auth-library-php/main/", + "docs": "https://cloud.google.com/php/docs/reference/auth/latest", "issues": "https://github.com/googleapis/google-auth-library-php/issues", - "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.45.0" + "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.45.4" }, - "time": "2024-12-11T02:10:48+00:00" + "time": "2025-02-10T18:04:06+00:00" }, { "name": "google/cloud-core", - "version": "v1.60.1", + "version": "v1.62.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-cloud-php-core.git", - "reference": "c149dd075a77bc8555a0eff46267522f1c4e0bfd" + "reference": "8de597fbd6fcac35a33594672d180c5e271fb4f0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/c149dd075a77bc8555a0eff46267522f1c4e0bfd", - "reference": "c149dd075a77bc8555a0eff46267522f1c4e0bfd", + "url": "https://api.github.com/repos/googleapis/google-cloud-php-core/zipball/8de597fbd6fcac35a33594672d180c5e271fb4f0", + "reference": "8de597fbd6fcac35a33594672d180c5e271fb4f0", "shasum": "" }, "require": { @@ -1879,22 +1882,22 @@ ], "description": "Google Cloud PHP shared dependency, providing functionality useful to all components.", "support": { - "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.60.1" + "source": "https://github.com/googleapis/google-cloud-php-core/tree/v1.62.0" }, - "time": "2024-12-12T21:15:35+00:00" + "time": "2025-02-08T00:05:17+00:00" }, { "name": "google/cloud-translate", - "version": "v1.20.1", + "version": "v1.21.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-cloud-php-translate.git", - "reference": "98cff47a248688a50122917a8f2445d90c9d01df" + "reference": "5ef17ec64c86bc96b2258ddae779de8a38942ee4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-cloud-php-translate/zipball/98cff47a248688a50122917a8f2445d90c9d01df", - "reference": "98cff47a248688a50122917a8f2445d90c9d01df", + "url": "https://api.github.com/repos/googleapis/google-cloud-php-translate/zipball/5ef17ec64c86bc96b2258ddae779de8a38942ee4", + "reference": "5ef17ec64c86bc96b2258ddae779de8a38942ee4", "shasum": "" }, "require": { @@ -1935,22 +1938,22 @@ ], "description": "Cloud Translation Client for PHP", "support": { - "source": "https://github.com/googleapis/google-cloud-php-translate/tree/v1.20.1" + "source": "https://github.com/googleapis/google-cloud-php-translate/tree/v1.21.0" }, - "time": "2024-12-12T21:15:35+00:00" + "time": "2025-02-03T23:47:57+00:00" }, { "name": "google/common-protos", - "version": "4.8.3", + "version": "4.10.0", "source": { "type": "git", "url": "https://github.com/googleapis/common-protos-php.git", - "reference": "38a9a8bb459fa618da797d25d7bf36bb21d1103d" + "reference": "88bb76504910ddfe8fec457b622145c5731ab8ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/common-protos-php/zipball/38a9a8bb459fa618da797d25d7bf36bb21d1103d", - "reference": "38a9a8bb459fa618da797d25d7bf36bb21d1103d", + "url": "https://api.github.com/repos/googleapis/common-protos-php/zipball/88bb76504910ddfe8fec457b622145c5731ab8ea", + "reference": "88bb76504910ddfe8fec457b622145c5731ab8ea", "shasum": "" }, "require": { @@ -1994,9 +1997,9 @@ "google" ], "support": { - "source": "https://github.com/googleapis/common-protos-php/tree/v4.8.3" + "source": "https://github.com/googleapis/common-protos-php/tree/v4.10.0" }, - "time": "2024-09-07T01:37:15+00:00" + "time": "2025-02-03T23:47:57+00:00" }, { "name": "google/gax", @@ -2102,16 +2105,16 @@ }, { "name": "google/longrunning", - "version": "0.4.6", + "version": "0.4.7", "source": { "type": "git", "url": "https://github.com/googleapis/php-longrunning.git", - "reference": "4eb04d47bba8095d5a47f75334b9204c2a4a7ac6" + "reference": "624cabb874c10e5ddc9034c999f724894b70a3d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/php-longrunning/zipball/4eb04d47bba8095d5a47f75334b9204c2a4a7ac6", - "reference": "4eb04d47bba8095d5a47f75334b9204c2a4a7ac6", + "url": "https://api.github.com/repos/googleapis/php-longrunning/zipball/624cabb874c10e5ddc9034c999f724894b70a3d3", + "reference": "624cabb874c10e5ddc9034c999f724894b70a3d3", "shasum": "" }, "require-dev": { @@ -2140,22 +2143,22 @@ ], "description": "Google LongRunning Client for PHP", "support": { - "source": "https://github.com/googleapis/php-longrunning/tree/v0.4.6" + "source": "https://github.com/googleapis/php-longrunning/tree/v0.4.7" }, - "time": "2024-12-12T21:15:35+00:00" + "time": "2025-01-24T21:24:06+00:00" }, { "name": "google/protobuf", - "version": "v4.29.1", + "version": "v4.29.3", "source": { "type": "git", "url": "https://github.com/protocolbuffers/protobuf-php.git", - "reference": "6042b5483f8029e42473faeb8ef75ba266278381" + "reference": "ab5077c2cfdd1f415f42d11fdbdf903ba8e3d9b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/6042b5483f8029e42473faeb8ef75ba266278381", - "reference": "6042b5483f8029e42473faeb8ef75ba266278381", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/ab5077c2cfdd1f415f42d11fdbdf903ba8e3d9b7", + "reference": "ab5077c2cfdd1f415f42d11fdbdf903ba8e3d9b7", "shasum": "" }, "require": { @@ -2184,9 +2187,9 @@ "proto" ], "support": { - "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.29.1" + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.29.3" }, - "time": "2024-12-03T22:07:45+00:00" + "time": "2025-01-08T21:00:13+00:00" }, { "name": "grpc/grpc", @@ -2559,7 +2562,7 @@ }, { "name": "illuminate/collections", - "version": "v10.48.25", + "version": "v10.48.28", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", @@ -2614,7 +2617,7 @@ }, { "name": "illuminate/conditionable", - "version": "v10.48.25", + "version": "v10.48.28", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -2660,7 +2663,7 @@ }, { "name": "illuminate/contracts", - "version": "v10.48.25", + "version": "v10.48.28", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", @@ -2708,7 +2711,7 @@ }, { "name": "illuminate/macroable", - "version": "v10.48.25", + "version": "v10.48.28", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -3055,6 +3058,73 @@ ], "time": "2024-12-08T08:18:47+00:00" }, + { + "name": "masterminds/html5", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://github.com/Masterminds/html5-php.git", + "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Masterminds/html5-php/zipball/f5ac2c0b0a2eefca70b2ce32a5809992227e75a6", + "reference": "f5ac2c0b0a2eefca70b2ce32a5809992227e75a6", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7.21 || ^6 || ^7 || ^8 || ^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Masterminds\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Matt Butcher", + "email": "technosophos@gmail.com" + }, + { + "name": "Matt Farina", + "email": "matt@mattfarina.com" + }, + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + } + ], + "description": "An HTML5 parser and serializer.", + "homepage": "http://masterminds.github.io/html5-php", + "keywords": [ + "HTML5", + "dom", + "html", + "parser", + "querypath", + "serializer", + "xml" + ], + "support": { + "issues": "https://github.com/Masterminds/html5-php/issues", + "source": "https://github.com/Masterminds/html5-php/tree/2.9.0" + }, + "time": "2024-03-31T07:05:07+00:00" + }, { "name": "mikehaertl/php-shellcommand", "version": "1.7.0", @@ -5129,16 +5199,16 @@ }, { "name": "spomky-labs/pki-framework", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/Spomky-Labs/pki-framework.git", - "reference": "0b10c8b53366729417d6226ae89a665f9e2d61b6" + "reference": "5ac374c3e295c8b917208ff41b4d30f76668478c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Spomky-Labs/pki-framework/zipball/0b10c8b53366729417d6226ae89a665f9e2d61b6", - "reference": "0b10c8b53366729417d6226ae89a665f9e2d61b6", + "url": "https://api.github.com/repos/Spomky-Labs/pki-framework/zipball/5ac374c3e295c8b917208ff41b4d30f76668478c", + "reference": "5ac374c3e295c8b917208ff41b4d30f76668478c", "shasum": "" }, "require": { @@ -5147,21 +5217,19 @@ "php": ">=8.1" }, "require-dev": { - "ekino/phpstan-banned-code": "^1.0", + "ekino/phpstan-banned-code": "^1.0|^2.0|^3.0", "ext-gmp": "*", "ext-openssl": "*", - "infection/infection": "^0.28", + "infection/infection": "^0.28|^0.29", "php-parallel-lint/php-parallel-lint": "^1.3", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-beberlei-assert": "^1.0", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.3", + "phpstan/extension-installer": "^1.3|^2.0", + "phpstan/phpstan": "^1.8|^2.0", + "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.1|^2.0", + "phpstan/phpstan-strict-rules": "^1.3|^2.0", "phpunit/phpunit": "^10.1|^11.0", - "rector/rector": "^1.0", + "rector/rector": "^1.0|^2.0", "roave/security-advisories": "dev-latest", - "symfony/phpunit-bridge": "^6.4|^7.0", "symfony/string": "^6.4|^7.0", "symfony/var-dumper": "^6.4|^7.0", "symplify/easy-coding-standard": "^12.0" @@ -5224,7 +5292,7 @@ ], "support": { "issues": "https://github.com/Spomky-Labs/pki-framework/issues", - "source": "https://github.com/Spomky-Labs/pki-framework/tree/1.2.1" + "source": "https://github.com/Spomky-Labs/pki-framework/tree/1.2.2" }, "funding": [ { @@ -5236,7 +5304,7 @@ "type": "patreon" } ], - "time": "2024-03-30T18:03:49+00:00" + "time": "2025-01-03T09:35:48+00:00" }, { "name": "symfony/console", @@ -5331,6 +5399,71 @@ ], "time": "2024-12-11T03:49:26+00:00" }, + { + "name": "symfony/css-selector", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "reference": "601a5ce9aaad7bf10797e3663faefce9e26c24e2", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, { "name": "symfony/deprecation-contracts", "version": "v3.5.1", @@ -5350,12 +5483,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5398,6 +5531,73 @@ ], "time": "2024-09-25T14:20:29+00:00" }, + { + "name": "symfony/dom-crawler", + "version": "v7.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/dom-crawler.git", + "reference": "700a880e5089280c7cf3ca1ccf9d9de6630f5d25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/700a880e5089280c7cf3ca1ccf9d9de6630f5d25", + "reference": "700a880e5089280c7cf3ca1ccf9d9de6630f5d25", + "shasum": "" + }, + "require": { + "masterminds/html5": "^2.6", + "php": ">=8.2", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.0" + }, + "require-dev": { + "symfony/css-selector": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\DomCrawler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases DOM navigation for HTML and XML documents", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/dom-crawler/tree/v7.2.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-01-27T11:08:17+00:00" + }, { "name": "symfony/event-dispatcher", "version": "v7.2.0", @@ -5498,12 +5698,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -5622,16 +5822,16 @@ }, { "name": "symfony/finder", - "version": "v7.2.0", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49" + "reference": "87a71856f2f56e4100373e92529eed3171695cfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/6de263e5868b9a137602dd1e33e4d48bfae99c49", - "reference": "6de263e5868b9a137602dd1e33e4d48bfae99c49", + "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", + "reference": "87a71856f2f56e4100373e92529eed3171695cfb", "shasum": "" }, "require": { @@ -5666,7 +5866,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.0" + "source": "https://github.com/symfony/finder/tree/v7.2.2" }, "funding": [ { @@ -5682,27 +5882,27 @@ "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2024-12-30T19:00:17+00:00" }, { "name": "symfony/http-client", - "version": "v6.4.16", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "60a113666fa67e598abace38e5f46a0954d8833d" + "reference": "394b440934056b8d9d6ba250001458e9d7998b7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/60a113666fa67e598abace38e5f46a0954d8833d", - "reference": "60a113666fa67e598abace38e5f46a0954d8833d", + "url": "https://api.github.com/repos/symfony/http-client/zipball/394b440934056b8d9d6ba250001458e9d7998b7f", + "reference": "394b440934056b8d9d6ba250001458e9d7998b7f", "shasum": "" }, "require": { "php": ">=8.1", "psr/log": "^1|^2|^3", "symfony/deprecation-contracts": "^2.5|^3", - "symfony/http-client-contracts": "~3.4.3|^3.5.1", + "symfony/http-client-contracts": "~3.4.4|^3.5.2", "symfony/service-contracts": "^2.5|^3" }, "conflict": { @@ -5759,7 +5959,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v6.4.16" + "source": "https://github.com/symfony/http-client/tree/v6.4.18" }, "funding": [ { @@ -5775,7 +5975,7 @@ "type": "tidelift" } ], - "time": "2024-11-27T11:52:33+00:00" + "time": "2025-01-28T15:49:13+00:00" }, { "name": "symfony/http-client-contracts", @@ -5857,16 +6057,16 @@ }, { "name": "symfony/mailer", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc" + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/e4d358702fb66e4c8a2af08e90e7271a62de39cc", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f3871b182c44997cf039f3b462af4a48fb85f9d3", + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3", "shasum": "" }, "require": { @@ -5917,7 +6117,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.2.0" + "source": "https://github.com/symfony/mailer/tree/v7.2.3" }, "funding": [ { @@ -5933,20 +6133,20 @@ "type": "tidelift" } ], - "time": "2024-11-25T15:21:05+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/mime", - "version": "v7.2.1", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "7f9617fcf15cb61be30f8b252695ed5e2bfac283" + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/7f9617fcf15cb61be30f8b252695ed5e2bfac283", - "reference": "7f9617fcf15cb61be30f8b252695ed5e2bfac283", + "url": "https://api.github.com/repos/symfony/mime/zipball/2fc3b4bd67e4747e45195bc4c98bea4628476204", + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204", "shasum": "" }, "require": { @@ -6001,7 +6201,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.2.1" + "source": "https://github.com/symfony/mime/tree/v7.2.3" }, "funding": [ { @@ -6017,7 +6217,7 @@ "type": "tidelift" } ], - "time": "2024-12-07T08:50:44+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/polyfill-ctype", @@ -6124,8 +6324,8 @@ "type": "library", "extra": { "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" } }, "autoload": { @@ -6939,16 +7139,16 @@ }, { "name": "symfony/property-access", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "3ae42efba01e45aaedecf5c93c8d6a3ab3a82276" + "reference": "b28732e315d81fbec787f838034de7d6c9b2b902" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/3ae42efba01e45aaedecf5c93c8d6a3ab3a82276", - "reference": "3ae42efba01e45aaedecf5c93c8d6a3ab3a82276", + "url": "https://api.github.com/repos/symfony/property-access/zipball/b28732e315d81fbec787f838034de7d6c9b2b902", + "reference": "b28732e315d81fbec787f838034de7d6c9b2b902", "shasum": "" }, "require": { @@ -6995,7 +7195,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v7.2.0" + "source": "https://github.com/symfony/property-access/tree/v7.2.3" }, "funding": [ { @@ -7011,31 +7211,33 @@ "type": "tidelift" } ], - "time": "2024-09-26T12:28:35+00:00" + "time": "2025-01-17T10:56:55+00:00" }, { "name": "symfony/property-info", - "version": "v7.2.1", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "65fb9be15380f949d72ff405473cce733364b8b4" + "reference": "dedb118fd588a92f226b390250b384d25f4192fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/65fb9be15380f949d72ff405473cce733364b8b4", - "reference": "65fb9be15380f949d72ff405473cce733364b8b4", + "url": "https://api.github.com/repos/symfony/property-info/zipball/dedb118fd588a92f226b390250b384d25f4192fe", + "reference": "dedb118fd588a92f226b390250b384d25f4192fe", "shasum": "" }, "require": { "php": ">=8.2", "symfony/string": "^6.4|^7.0", - "symfony/type-info": "^7.1" + "symfony/type-info": "~7.1.9|^7.2.2" }, "conflict": { "phpdocumentor/reflection-docblock": "<5.2", "phpdocumentor/type-resolver": "<1.5.1", - "symfony/dependency-injection": "<6.4" + "symfony/cache": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/serializer": "<6.4" }, "require-dev": { "phpdocumentor/reflection-docblock": "^5.2", @@ -7078,7 +7280,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v7.2.1" + "source": "https://github.com/symfony/property-info/tree/v7.2.3" }, "funding": [ { @@ -7094,20 +7296,20 @@ "type": "tidelift" } ], - "time": "2024-12-07T08:50:44+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/serializer", - "version": "v6.4.15", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "9d862d66198f3c2e30404228629ef4c18d5d608e" + "reference": "6ad986f62276da4c8c69754decfaa445a89cb6e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/9d862d66198f3c2e30404228629ef4c18d5d608e", - "reference": "9d862d66198f3c2e30404228629ef4c18d5d608e", + "url": "https://api.github.com/repos/symfony/serializer/zipball/6ad986f62276da4c8c69754decfaa445a89cb6e3", + "reference": "6ad986f62276da4c8c69754decfaa445a89cb6e3", "shasum": "" }, "require": { @@ -7176,7 +7378,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.4.15" + "source": "https://github.com/symfony/serializer/tree/v6.4.18" }, "funding": [ { @@ -7192,7 +7394,7 @@ "type": "tidelift" } ], - "time": "2024-10-23T13:25:59+00:00" + "time": "2025-01-28T18:47:02+00:00" }, { "name": "symfony/service-contracts", @@ -7218,12 +7420,12 @@ }, "type": "library", "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, "branch-alias": { "dev-main": "3.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -7366,16 +7568,16 @@ }, { "name": "symfony/type-info", - "version": "v7.2.1", + "version": "v7.2.2", "source": { "type": "git", "url": "https://github.com/symfony/type-info.git", - "reference": "4f402070b08ad0b87e9cadbb07b87fb36061e6e4" + "reference": "3b5a17470fff0034f25fd4287cbdaa0010d2f749" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/type-info/zipball/4f402070b08ad0b87e9cadbb07b87fb36061e6e4", - "reference": "4f402070b08ad0b87e9cadbb07b87fb36061e6e4", + "url": "https://api.github.com/repos/symfony/type-info/zipball/3b5a17470fff0034f25fd4287cbdaa0010d2f749", + "reference": "3b5a17470fff0034f25fd4287cbdaa0010d2f749", "shasum": "" }, "require": { @@ -7421,7 +7623,7 @@ "type" ], "support": { - "source": "https://github.com/symfony/type-info/tree/v7.2.1" + "source": "https://github.com/symfony/type-info/tree/v7.2.2" }, "funding": [ { @@ -7437,7 +7639,7 @@ "type": "tidelift" } ], - "time": "2024-12-11T07:49:41+00:00" + "time": "2024-12-20T13:38:37+00:00" }, { "name": "symfony/uid", @@ -7515,16 +7717,16 @@ }, { "name": "symfony/var-dumper", - "version": "v6.4.15", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80" + "reference": "4ad10cf8b020e77ba665305bb7804389884b4837" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", - "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/4ad10cf8b020e77ba665305bb7804389884b4837", + "reference": "4ad10cf8b020e77ba665305bb7804389884b4837", "shasum": "" }, "require": { @@ -7580,7 +7782,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.4.15" + "source": "https://github.com/symfony/var-dumper/tree/v6.4.18" }, "funding": [ { @@ -7596,7 +7798,7 @@ "type": "tidelift" } ], - "time": "2024-11-08T15:28:48+00:00" + "time": "2025-01-17T11:26:11+00:00" }, { "name": "symfony/yaml", @@ -7723,16 +7925,16 @@ }, { "name": "twig/twig", - "version": "v3.14.2", + "version": "v3.15.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a" + "reference": "2d5b3964cc21d0188633d7ddce732dc8e874db02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", - "reference": "0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/2d5b3964cc21d0188633d7ddce732dc8e874db02", + "reference": "2d5b3964cc21d0188633d7ddce732dc8e874db02", "shasum": "" }, "require": { @@ -7786,7 +7988,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v3.14.2" + "source": "https://github.com/twigphp/Twig/tree/v3.15.0" }, "funding": [ { @@ -7798,7 +8000,7 @@ "type": "tidelift" } ], - "time": "2024-11-07T12:36:22+00:00" + "time": "2024-11-17T15:59:19+00:00" }, { "name": "voku/anti-xss", @@ -8527,16 +8729,16 @@ }, { "name": "web-auth/webauthn-lib", - "version": "4.9.1", + "version": "4.9.2", "source": { "type": "git", "url": "https://github.com/web-auth/webauthn-lib.git", - "reference": "fd7a0943c663b325e92ad562c2bcc943e77beeac" + "reference": "008b25171c27cf4813420d0de31cc059bcc71f1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/web-auth/webauthn-lib/zipball/fd7a0943c663b325e92ad562c2bcc943e77beeac", - "reference": "fd7a0943c663b325e92ad562c2bcc943e77beeac", + "url": "https://api.github.com/repos/web-auth/webauthn-lib/zipball/008b25171c27cf4813420d0de31cc059bcc71f1a", + "reference": "008b25171c27cf4813420d0de31cc059bcc71f1a", "shasum": "" }, "require": { @@ -8570,8 +8772,8 @@ "type": "library", "extra": { "thanks": { - "name": "web-auth/webauthn-framework", - "url": "https://github.com/web-auth/webauthn-framework" + "url": "https://github.com/web-auth/webauthn-framework", + "name": "web-auth/webauthn-framework" } }, "autoload": { @@ -8601,7 +8803,7 @@ "webauthn" ], "support": { - "source": "https://github.com/web-auth/webauthn-lib/tree/4.9.1" + "source": "https://github.com/web-auth/webauthn-lib/tree/4.9.2" }, "funding": [ { @@ -8613,7 +8815,7 @@ "type": "patreon" } ], - "time": "2024-07-16T18:36:36+00:00" + "time": "2025-01-04T09:47:58+00:00" }, { "name": "webmozart/assert", diff --git a/src/assetbundles/src/css/Translations.css b/src/assetbundles/src/css/Translations.css index 1fc99f56..6ac79089 100644 --- a/src/assetbundles/src/css/Translations.css +++ b/src/assetbundles/src/css/Translations.css @@ -226,12 +226,6 @@ align-self: center; } -.utility-status .progressbar { - left: 50%; - width: 50%; - transform: translateX(-50%) translateY(-50%); -} - .translations-order-confirmation .readable{ margin: 30px auto; max-width: 400px; @@ -777,8 +771,8 @@ body.ltr .widget[data-type="acclaro\\translations\\widgets\\NewAndModifiedEntrie padding-top: 10px !important; } -.pt-5 { - padding-top: 5px !important; +.pt-7 { + padding-top: 7px !important; } .w-300 { @@ -1044,4 +1038,27 @@ td.target{ .activity-log .bullets { padding-inline-start: var(--padding); -} \ No newline at end of file +} + +.meta .field .heading { + border-inline-end: none; +} + +#settings, #meta-details { + padding-right: 2.5rem; +} + +#settings .input.ltr:not(.value) { + display: block; + align-self: center; +} + +#settings .field.button { + align-items: center; + justify-content: space-between; +} + +#meta-details .value { + display: flex; + align-items: center; +} diff --git a/src/assetbundles/src/js/OrderEntries.js b/src/assetbundles/src/js/OrderEntries.js index 5f5cc019..96d7e4e2 100644 --- a/src/assetbundles/src/js/OrderEntries.js +++ b/src/assetbundles/src/js/OrderEntries.js @@ -70,7 +70,7 @@ }); // Modal checkboxes behaviour script - $(document).on('click, change', '.clone:checkbox', function() { + $(document).on('click change', '.clone:checkbox', function () { $value = $(this).val(); $selected = $('tbody .clone:checkbox:checked').length; if ($selected == 0) { diff --git a/src/assetbundles/src/js/RecentlyModified.js b/src/assetbundles/src/js/RecentlyModified.js index dc5efea6..d3218b55 100644 --- a/src/assetbundles/src/js/RecentlyModified.js +++ b/src/assetbundles/src/js/RecentlyModified.js @@ -47,8 +47,8 @@ $('div.menu ul.padded li a[data-id="'+recent+'"]').removeClass('sel'); $('div.menu ul.padded li a[data-id="'+modified+'"]').addClass('sel'); $("#"+modified).removeClass('hidden'); - $("#"+recent).addClass('hidden'); - window.translationsdashboard.widgets[widgetId].updateContainerHeight(); + $("#" + recent).addClass('hidden'); + this.$container.updateContainerHeight(); window.translationsdashboard.grid.refreshCols(true, true); }); @@ -60,8 +60,8 @@ $('div.menu ul.padded li a[data-id="'+recent+'"]').addClass('sel'); $('div.menu ul.padded li a[data-id="'+modified+'"]').removeClass('sel'); $("#"+modified).addClass('hidden'); - $("#"+recent).removeClass('hidden'); - window.translationsdashboard.widgets[widgetId].updateContainerHeight(); + $("#" + recent).removeClass('hidden'); + this.$container.updateContainerHeight(); window.translationsdashboard.grid.refreshCols(true, true); }); diff --git a/src/services/repository/ActivityLogRepository.php b/src/services/repository/ActivityLogRepository.php index c08102f1..c04b1075 100644 --- a/src/services/repository/ActivityLogRepository.php +++ b/src/services/repository/ActivityLogRepository.php @@ -40,7 +40,7 @@ public function createActivityLog($message, $target) $activityLog = $this->makeNewActivityLogModel(); $activityLog->targetId = $target->id; $activityLog->message = $message; - $activityLog->created = date('Y-m-d H:i:s'); + $activityLog->created = Craft::$app->getFormatter()->asDatetime('now', 'php:Y-m-d H:i:s'); $activityLog->targetClass = get_class($target); return $this->saveActivityLog($activityLog); diff --git a/src/services/repository/DraftRepository.php b/src/services/repository/DraftRepository.php index 25c2c3c3..70ddf350 100644 --- a/src/services/repository/DraftRepository.php +++ b/src/services/repository/DraftRepository.php @@ -46,8 +46,10 @@ public function getDraftById($draftId, $siteId) public function saveDraft($element) { $element->validate(); - if($element->getErrors()){ - return $element->getErrors(); + if($element->getErrors()) { + // Extract the error messages from the element's errors + $errorMessages = $this->extractErrorMessages($element->getErrors()); + throw new Exception("Validation failed: " . $errorMessages); } return Craft::$app->elements->saveElement($element, true, true, false); @@ -188,9 +190,12 @@ public function createOrderDrafts($orderId, $wordCounts, $publish, $fileIds, $qu $currentElement = 0; $createDrafts = new CreateDrafts(); - $transaction = Craft::$app->db->beginTransaction(); - + foreach ($order->getFiles() as $file) { + /* Create transaction per file so that in case a file has validation error + only that will be rolledback and others can be processed */ + $transaction = Craft::$app->db->beginTransaction(); + if (! in_array($file->id, $fileIds)) { continue; } @@ -231,12 +236,13 @@ public function createOrderDrafts($orderId, $wordCounts, $publish, $fileIds, $qu if ($publish) { $this->applyDrafts($order->id, [$element->id], [$file->id], $queue); } + $transaction->commit(); } catch(Exception $e) { $transaction->rollback(); - throw $e; + $this->setError($e->getMessage()); + continue; } } - $transaction->commit(); if ($isNewDraft) $order->logActivity(Translations::$plugin->translator->translate('app', 'Drafts created')); @@ -418,4 +424,25 @@ public function deleteDraft($draftId, $siteId) throw $e; } } + + /** + * Extract error messages from an error object in string format + */ + private function extractErrorMessages($errorObject) + { + $errorMessages = []; + + // Iterate through each key in the error object + foreach ($errorObject as $field => $messages) { + if (is_array($messages)) { + // Iterate through each error message in the array + foreach ($messages as $message) { + $errorMessages[] = $message; // Add the message to the list + } + } + } + + // Return the concatenated error messages as a string + return implode("\n", $errorMessages); + } } diff --git a/src/templates/_components/orders/info-tab.twig b/src/templates/_components/orders/info-tab.twig index feabf4c5..4e4c2a31 100644 --- a/src/templates/_components/orders/info-tab.twig +++ b/src/templates/_components/orders/info-tab.twig @@ -12,7 +12,7 @@ {% if isCancelable %}