mirror of
https://github.com/symfony/ux-autocomplete.git
synced 2026-03-24 00:02:12 +01:00
Drop Biome.js for oxfmt and oxlint
This commit is contained in:
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -1,5 +1,4 @@
|
||||
Please do not submit any Pull Requests here. They will be closed.
|
||||
---
|
||||
## Please do not submit any Pull Requests here. They will be closed.
|
||||
|
||||
Please submit your PR here instead:
|
||||
https://github.com/symfony/ux
|
||||
|
||||
30
.github/workflows/close-pull-request.yml
vendored
30
.github/workflows/close-pull-request.yml
vendored
@@ -1,20 +1,20 @@
|
||||
name: Close Pull Request
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: |
|
||||
Thanks for your Pull Request! We love contributions.
|
||||
|
||||
However, you should instead open your PR on the main repository:
|
||||
https://github.com/symfony/ux
|
||||
|
||||
This repository is what we call a "subtree split": a read-only subset of that main repository.
|
||||
We're looking forward to your PR there!
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: |
|
||||
Thanks for your Pull Request! We love contributions.
|
||||
|
||||
However, you should instead open your PR on the main repository:
|
||||
https://github.com/symfony/ux
|
||||
|
||||
This repository is what we call a "subtree split": a read-only subset of that main repository.
|
||||
We're looking forward to your PR there!
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
branches: ["2.x"]
|
||||
maintained_branches: ["2.x"]
|
||||
doc_dir: "doc"
|
||||
branches: ['2.x']
|
||||
maintained_branches: ['2.x']
|
||||
doc_dir: 'doc'
|
||||
|
||||
131
CHANGELOG.md
131
CHANGELOG.md
@@ -2,15 +2,16 @@
|
||||
|
||||
## 2.30
|
||||
|
||||
- Ensure compatibility with PHP 8.5
|
||||
- Ensure compatibility with PHP 8.5
|
||||
|
||||
## 2.29.0
|
||||
|
||||
- Add Symfony 8 support
|
||||
- Add Symfony 8 support
|
||||
|
||||
## 2.28.0
|
||||
|
||||
- Default plugins like `clear_button` or `remove_button` can now be removed when setting their value to `false` in the `tom_select_options.plugins` option, for example:
|
||||
- Default plugins like `clear_button` or `remove_button` can now be removed when setting their value to `false` in the `tom_select_options.plugins` option, for example:
|
||||
|
||||
```php
|
||||
<?php
|
||||
#[AsEntityAutocompleteField]
|
||||
@@ -38,101 +39,101 @@ class IngredientAutocompleteType extends AbstractType
|
||||
|
||||
## 2.25.0
|
||||
|
||||
- Escape `querySelector` dynamic selector with `CSS.escape()` #2663
|
||||
- Escape `querySelector` dynamic selector with `CSS.escape()` #2663
|
||||
|
||||
## 2.23.0
|
||||
|
||||
- Deprecate `ExtraLazyChoiceLoader` in favor of `Symfony\Component\Form\ChoiceList\Loader\LazyChoiceLoader`
|
||||
- Reset TomSelect when updating url attribute #1505
|
||||
- Add `getAttributes()` method to define additional attributes for autocomplete results #2541
|
||||
- Deprecate `ExtraLazyChoiceLoader` in favor of `Symfony\Component\Form\ChoiceList\Loader\LazyChoiceLoader`
|
||||
- Reset TomSelect when updating url attribute #1505
|
||||
- Add `getAttributes()` method to define additional attributes for autocomplete results #2541
|
||||
|
||||
## 2.22.0
|
||||
|
||||
- Take `labelField` TomSelect option into account #2382
|
||||
- Take `labelField` TomSelect option into account #2382
|
||||
|
||||
## 2.21.0
|
||||
|
||||
- Translate the `option_create` option from TomSelect with remote data setup #2279
|
||||
- Add one missing Dutch translation #2279
|
||||
- Translate the `option_create` option from TomSelect with remote data setup #2279
|
||||
- Add one missing Dutch translation #2279
|
||||
|
||||
## 2.20.0
|
||||
|
||||
- Translate the `option_create` option from TomSelect #2108
|
||||
- Translate the `option_create` option from TomSelect #2108
|
||||
|
||||
## 2.17.0
|
||||
|
||||
- Allow `choice_value` option in entity autocomplete fields #1723
|
||||
- Allow `choice_value` option in entity autocomplete fields #1723
|
||||
|
||||
## 2.16.0
|
||||
|
||||
- Missing translations added for many languages #1527 #1528 #1535
|
||||
- Missing translations added for many languages #1527 #1528 #1535
|
||||
|
||||
## 2.15.0
|
||||
|
||||
- Add doctrine/orm 3 support #1468
|
||||
- Allow passing extra options to the autocomplete fields #1322
|
||||
- Fix 2 bugs where TomSelect would reset when not necessary #1502
|
||||
- Add one missing German translation #1521
|
||||
- Add doctrine/orm 3 support #1468
|
||||
- Allow passing extra options to the autocomplete fields #1322
|
||||
- Fix 2 bugs where TomSelect would reset when not necessary #1502
|
||||
- Add one missing German translation #1521
|
||||
|
||||
## 2.14.0
|
||||
|
||||
- Fixed behavior of Autocomplete when the underlying `select` or `option`
|
||||
elements were modified to hopefully, more reliably, reset the autocomplete
|
||||
instance. This is particularly important with LiveComponents.
|
||||
- Add support for the `render.loading_more` Tom Select Virtual Scroll option (`loading_more_text`)
|
||||
- Avoid losing the selected options when the Stimulus component is disconnected
|
||||
and reconnected to the DOM.
|
||||
- Added `tom-select/dist/css/tom-select.bootstrap4.css` to `autoimport` - this
|
||||
will cause this to appear in your `controllers.json` file by default, but disabled
|
||||
see.
|
||||
- Allow passing `extra_options` key in an array passed as a `3rd` argument of the `->add()` method.
|
||||
It will be used during the Ajax call to fetch results.
|
||||
- Fixed behavior of Autocomplete when the underlying `select` or `option`
|
||||
elements were modified to hopefully, more reliably, reset the autocomplete
|
||||
instance. This is particularly important with LiveComponents.
|
||||
- Add support for the `render.loading_more` Tom Select Virtual Scroll option (`loading_more_text`)
|
||||
- Avoid losing the selected options when the Stimulus component is disconnected
|
||||
and reconnected to the DOM.
|
||||
- Added `tom-select/dist/css/tom-select.bootstrap4.css` to `autoimport` - this
|
||||
will cause this to appear in your `controllers.json` file by default, but disabled
|
||||
see.
|
||||
- Allow passing `extra_options` key in an array passed as a `3rd` argument of the `->add()` method.
|
||||
It will be used during the Ajax call to fetch results.
|
||||
|
||||
## 2.13.2
|
||||
|
||||
- Revert "Change JavaScript package to `type: module`"
|
||||
- Revert "Change JavaScript package to `type: module`"
|
||||
|
||||
## 2.13.0
|
||||
|
||||
- Add new BaseEntityAutocompleteType
|
||||
- Drop symfony 5.4 support.
|
||||
- Add Symfony 7 support.
|
||||
- Change JavaScript package to `type: module`
|
||||
- Add new BaseEntityAutocompleteType
|
||||
- Drop symfony 5.4 support.
|
||||
- Add Symfony 7 support.
|
||||
- Change JavaScript package to `type: module`
|
||||
|
||||
## 2.9.0
|
||||
|
||||
- Add support for symfony/asset-mapper
|
||||
- Add support for symfony/asset-mapper
|
||||
|
||||
## 2.8.0
|
||||
|
||||
- The autocomplete now watches for update to any `option` elements inside of
|
||||
it change, including the empty / placeholder element. Additionally, if the
|
||||
`select` or `input` element's `disabled` attribute changes, the autocomplete
|
||||
instance will update accordingly. This makes Autocomplete work correctly inside
|
||||
of a LiveComponent. This functionality does _not_ work for `multiple` selects.
|
||||
- The autocomplete now watches for update to any `option` elements inside of
|
||||
it change, including the empty / placeholder element. Additionally, if the
|
||||
`select` or `input` element's `disabled` attribute changes, the autocomplete
|
||||
instance will update accordingly. This makes Autocomplete work correctly inside
|
||||
of a LiveComponent. This functionality does _not_ work for `multiple` selects.
|
||||
|
||||
- Added support for using [OptionGroups](https://tom-select.js.org/examples/optgroups/).
|
||||
- Added support for using [OptionGroups](https://tom-select.js.org/examples/optgroups/).
|
||||
|
||||
## 2.7.0
|
||||
|
||||
- Add `assets/src` to `.gitattributes` to exclude them from the installation
|
||||
- Add `assets/src` to `.gitattributes` to exclude them from the installation
|
||||
|
||||
- Fix minCharacters option default value handling when using a falsy value like 0.
|
||||
- Fix minCharacters option default value handling when using a falsy value like 0.
|
||||
|
||||
- Fix TypeScript types
|
||||
- Fix TypeScript types
|
||||
|
||||
- Add a new `route` parameter to `AsEntityAutocompleteField`, which allows to choose another route for Ajax calls.
|
||||
- Add a new `route` parameter to `AsEntityAutocompleteField`, which allows to choose another route for Ajax calls.
|
||||
|
||||
- Fix minCharacters option default value handling when using a falsy value like 0.
|
||||
- Fix minCharacters option default value handling when using a falsy value like 0.
|
||||
|
||||
- Fix TypeScript types
|
||||
- Fix TypeScript types
|
||||
|
||||
- Add a way to detect if a field is an "autocomplete" field in form themes - #608
|
||||
- Add a way to detect if a field is an "autocomplete" field in form themes - #608
|
||||
|
||||
## 2.6.0
|
||||
|
||||
- [BC BREAK]: The path to `routes.php` changed and you should update your
|
||||
route import accordingly:
|
||||
- [BC BREAK]: The path to `routes.php` changed and you should update your
|
||||
route import accordingly:
|
||||
|
||||
```diff
|
||||
# config/routes/ux_autocomplete.yaml
|
||||
@@ -142,29 +143,29 @@ ux_autocomplete:
|
||||
prefix: '/autocomplete'
|
||||
```
|
||||
|
||||
- Add support for `tom-select` version `2.2.2` and made this the minimum-supported
|
||||
version.
|
||||
- Added support for the `preload` TomSelect option.
|
||||
- Fix don't add WHERE IN criteria without params (#561).
|
||||
- Fix issue where `max_results` was not passed as a Stimulus value (#538).
|
||||
- Add all possible stylesheets for tom-select to the autoimport to choose from.
|
||||
- Add support for `tom-select` version `2.2.2` and made this the minimum-supported
|
||||
version.
|
||||
- Added support for the `preload` TomSelect option.
|
||||
- Fix don't add WHERE IN criteria without params (#561).
|
||||
- Fix issue where `max_results` was not passed as a Stimulus value (#538).
|
||||
- Add all possible stylesheets for tom-select to the autoimport to choose from.
|
||||
|
||||
## 2.5.0
|
||||
|
||||
- Automatic pagination support added: if the query would return more results
|
||||
than your limit, when the user scrolls to the bottom of the options, it will
|
||||
make a second Ajax call to load more.
|
||||
- Automatic pagination support added: if the query would return more results
|
||||
than your limit, when the user scrolls to the bottom of the options, it will
|
||||
make a second Ajax call to load more.
|
||||
|
||||
- Added `max_results` option to limit the number of results returned by the
|
||||
Ajax endpoint - #478.
|
||||
- Added `max_results` option to limit the number of results returned by the
|
||||
Ajax endpoint - #478.
|
||||
|
||||
- Support added for setting the required minimum search query length (defaults to 3) (#492)
|
||||
- Support added for setting the required minimum search query length (defaults to 3) (#492)
|
||||
|
||||
- Fix support for more complex ids, like UUIDs - #494.
|
||||
- Fix support for more complex ids, like UUIDs - #494.
|
||||
|
||||
- Fixed bug where sometimes an error could occur in the Ajax call related to
|
||||
the label - #520.
|
||||
- Fixed bug where sometimes an error could occur in the Ajax call related to
|
||||
the label - #520.
|
||||
|
||||
## 2.4.0
|
||||
|
||||
- Component added!
|
||||
- Component added!
|
||||
|
||||
@@ -19,10 +19,10 @@ Help Symfony by [sponsoring][3] its development!
|
||||
|
||||
## Resources
|
||||
|
||||
- [Documentation](https://symfony.com/bundles/ux-autocomplete/current/index.html)
|
||||
- [Report issues](https://github.com/symfony/ux/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/ux/pulls)
|
||||
in the [main Symfony UX repository](https://github.com/symfony/ux)
|
||||
- [Documentation](https://symfony.com/bundles/ux-autocomplete/current/index.html)
|
||||
- [Report issues](https://github.com/symfony/ux/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/ux/pulls)
|
||||
in the [main Symfony UX repository](https://github.com/symfony/ux)
|
||||
|
||||
[1]: https://symfony.com/backers
|
||||
[2]: https://mercure.rocks
|
||||
|
||||
@@ -6,9 +6,10 @@ JavaScript assets of the [symfony/ux-autocomplete](https://packagist.org/package
|
||||
|
||||
This npm package is **reserved for advanced users** who want to decouple their JavaScript dependencies from their PHP dependencies (e.g., when building Docker images, running JavaScript-only pipelines, etc.).
|
||||
|
||||
We **strongly recommend not installing this package directly**, but instead install the PHP package [symfony/ux-autocomplete](https://packagist.org/packages/symfony/ux-autocomplete) in your Symfony application with [Flex](https://github.com/symfony/flex) enabled.
|
||||
We **strongly recommend not installing this package directly**, but instead install the PHP package [symfony/ux-autocomplete](https://packagist.org/packages/symfony/ux-autocomplete) in your Symfony application with [Flex](https://github.com/symfony/flex) enabled.
|
||||
|
||||
If you still want to install this package directly, please make sure its version exactly matches [symfony/ux-autocomplete](https://packagist.org/packages/symfony/ux-autocomplete) PHP package version:
|
||||
|
||||
```shell
|
||||
composer require symfony/ux-autocomplete:2.23.0
|
||||
npm add @symfony/ux-autocomplete@2.23.0
|
||||
@@ -18,7 +19,7 @@ npm add @symfony/ux-autocomplete@2.23.0
|
||||
|
||||
## Resources
|
||||
|
||||
- [Documentation](https://symfony.com/bundles/ux-autocomplete/current/index.html)
|
||||
- [Report issues](https://github.com/symfony/ux/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/ux/pulls)
|
||||
in the [main Symfony UX repository](https://github.com/symfony/ux)
|
||||
- [Documentation](https://symfony.com/bundles/ux-autocomplete/current/index.html)
|
||||
- [Report issues](https://github.com/symfony/ux/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/ux/pulls)
|
||||
in the [main Symfony UX repository](https://github.com/symfony/ux)
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
"test": "pnpm run test:unit && pnpm run test:browser",
|
||||
"test:unit": "../../../bin/unit_test_package.sh .",
|
||||
"test:browser": "playwright test",
|
||||
"test:browser:ui": "playwright test --ui",
|
||||
"check": "biome check",
|
||||
"ci": "biome ci"
|
||||
"test:browser:ui": "playwright test --ui"
|
||||
},
|
||||
"symfony": {
|
||||
"controllers": {
|
||||
|
||||
Reference in New Issue
Block a user