Bump the symfony ux packages minimal versions to 2.16

This commit is contained in:
Jacob Tobiasz 2024-04-10 08:21:54 +02:00 committed by Grzegorz Sadowski
parent 16c6701649
commit 91fc06543d
7 changed files with 46 additions and 18 deletions

View file

@ -132,9 +132,9 @@
"symfony/translation": "^6.4.0",
"symfony/translation-contracts": "^2.5.2",
"symfony/twig-bundle": "^6.4.0",
"symfony/ux-autocomplete": "^2.15",
"symfony/ux-live-component": "^2.12",
"symfony/ux-twig-component": "^2.11.2",
"symfony/ux-autocomplete": "^2.16",
"symfony/ux-live-component": "^2.16",
"symfony/ux-twig-component": "^2.16",
"symfony/validator": "^6.4.0",
"symfony/webpack-encore-bundle": "^1.17.1",
"symfony/workflow": "^6.4.0",
@ -194,8 +194,7 @@
"api-platform/core": "2.7.17",
"doctrine/orm": ">= 2.16.0",
"lexik/jwt-authentication-bundle": "^2.18",
"stof/doctrine-extensions-bundle": "1.8.0",
"symfony/ux-live-component": ">=2.15"
"stof/doctrine-extensions-bundle": "1.8.0"
},
"require-dev": {
"behat/behat": "^3.6.1",

View file

@ -11,13 +11,40 @@
<div class="card-body">
<div class="d-flex justify-content-end">
<div class="btn-group" role="group">
<button type="button" class="btn btn-sm {% if rangeName == '2weeks' %}btn-secondary{% else %}btn-outline-secondary{% endif %}" data-action="live#action" data-action-name="prevent|changeRange(name=2weeks, range=day, startDate=2 weeks ago, endDate=today)">
<button
type="button"
class="btn btn-sm {% if rangeName == '2weeks' %}btn-secondary{% else %}btn-outline-secondary{% endif %}"
data-action="live#action"
data-live-action-param="prevent|changeRange"
data-live-name-param="2weeks"
data-live-range-param="day"
data-live-start-date-param="2 weeks ago"
data-live-end-date-param="today"
>
{{ 'sylius.ui.statistics.2weeks'|trans }}
</button>
<button type="button" class="btn btn-sm {% if rangeName == 'month' %}btn-secondary{% else %}btn-outline-secondary{% endif %}" data-action="live#action" data-action-name="prevent|changeRange(name=month, range=day, startDate=1 month ago, endDate=today)">
<button
type="button"
class="btn btn-sm {% if rangeName == 'month' %}btn-secondary{% else %}btn-outline-secondary{% endif %}"
data-action="live#action"
data-live-action-param="prevent|changeRange"
data-live-name-param="month"
data-live-range-param="day"
data-live-start-date-param="1 month ago"
data-live-end-date-param="today"
>
{{ 'sylius.ui.statistics.month'|trans }}
</button>
<button type="button" class="btn btn-sm {% if rangeName == 'year' %}btn-secondary{% else %}btn-outline-secondary{% endif %}" data-action="live#action" data-action-name="prevent|changeRange(name=year, range=month, startDate=first day of january this year, endDate=first day of january next year)">
<button
type="button"
class="btn btn-sm {% if rangeName == 'year' %}btn-secondary{% else %}btn-outline-secondary{% endif %}"
data-action="live#action"
data-live-action-param="prevent|changeRange"
data-live-name-param="year"
data-live-range-param="month"
data-live-start-date-param="first day of january this year"
data-live-end-date-param="first day of january next year"
>
{{ 'sylius.ui.statistics.year'|trans }}
</button>
</div>

View file

@ -11,7 +11,7 @@
<div class="card-body py-4 border-bottom">
<div class="sylius-admin-product-attribute-autocomplete">
<twig:SyliusAdmin.Product.ProductAttributeAutocomplete data-model="attributesToBeAdded:selectedAttributeCodes" :excludedAttributeCodes="productAttributes|keys" />
<button type="button" class="btn btn-primary" data-action="live#action" data-action-name="prevent|addAttributes()">
<button type="button" class="btn btn-primary" data-action="live#action" data-live-action-param="prevent|addAttributes">
{{ 'sylius.ui.add'|trans }}
</button>
</div>
@ -37,7 +37,8 @@
type="button"
class="btn btn-sm border-0 shadow-none"
data-action="live#action:stop"
data-action-name="prevent|removeAttribute(attributeCode={{ productAttributeCode }})"
data-live-action-param="prevent|removeAttribute"
data-live-attribute-code-param="{{ productAttributeCode }}"
{{ sylius_test_html_attribute('product-attribute-delete-button', productAttributeName) }}
>
<svg xmlns="http://www.w3.org/2000/svg" class="text-muted" width="12" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
@ -79,7 +80,7 @@
<button
class="btn btn-secondary btn-sm"
data-action="live#action"
data-action-name="prevent|applyToAll(attributeCode={{ productAttributeCode }},localeCode={{ productAttributeValue.vars.data.localeCode }})"
data-live-action-param="prevent|applyToAll(attributeCode={{ productAttributeCode }},localeCode={{ productAttributeValue.vars.data.localeCode }})"
>
{{ 'sylius.ui.apply_to_all'|trans }}
</button>

View file

@ -16,7 +16,8 @@
class="btn btn-outline-secondary"
type="button"
data-action="live#action"
data-action-name="debounce(300)|generateProductSlug(localeCode={{ locale }})"
data-live-action-param="debounce(300)|generateProductSlug"
data-live-locale-code-param="{{ locale }}"
{{ sylius_test_html_attribute('generate-product-slug-button', locale) }}
>
⚡️

View file

@ -27,7 +27,7 @@
role="button"
class="dropdown-item"
data-action="live#action"
data-action-name="prevent|delete(taxonId={{ taxonId }})"
data-live-action-param="prevent|delete(taxonId={{ taxonId }})"
>
{{ 'sylius.ui.delete'|trans }}
</button>
@ -37,7 +37,7 @@
role="button"
class="dropdown-item"
data-action="live#action"
data-action-name="prevent|moveUp(taxonId={{ taxonId }})"
data-live-action-param="prevent|moveUp(taxonId={{ taxonId }})"
>
{{ 'sylius.ui.move_up'|trans }}
</button>
@ -47,7 +47,7 @@
role="button"
class="dropdown-item"
data-action="live#action"
data-action-name="prevent|moveDown(taxonId={{ taxonId }})"
data-live-action-param="prevent|moveDown(taxonId={{ taxonId }})"
>
{{ 'sylius.ui.move_down'|trans }}
</button>

View file

@ -38,8 +38,8 @@
"sylius/twig-hooks": "dev-main",
"symfony/framework-bundle": "^6.4.1",
"symfony/stimulus-bundle": "^2.12",
"symfony/ux-autocomplete": "^2.15",
"symfony/ux-live-component": "^2.12",
"symfony/ux-autocomplete": "^2.16",
"symfony/ux-live-component": "^2.16",
"symfony/webpack-encore-bundle": "^1.17.1",
"twig/intl-extra": "^2.12 || ^3.4",
"twig/twig": "^2.12 || ^3.3"

View file

@ -41,7 +41,7 @@
"symfony/security-core": "^6.4.0",
"symfony/security-bundle": "^6.4.0",
"symfony/templating": "^6.4.0",
"symfony/ux-twig-component": "^2.11.2",
"symfony/ux-twig-component": "^2.16",
"symfony/webpack-encore-bundle": "^1.17.1",
"laminas/laminas-stdlib": "^3.3.1"
},