154 Commits

Author SHA1 Message Date
Hugo Alliaume
36efce2316 [Meta] Drop format, lint, check-format and check-lint commands, replace them with check and ci commands
Co-authored-by: Florian Cellier <florian.cellier@sensiolabs.com>
v2.22.1
2024-12-05 15:25:02 +01:00
Florian Cellier
7c8506dfae chore: Apply natural import order for JS to synchronise the code base with Biome and its configuration 2024-12-05 10:01:11 +01:00
Hugo Alliaume
0db8b7ec54 [Map] Fix default values of Stimulus Map Controller 2024-12-03 15:58:57 +01:00
Hugo Alliaume
66b9b9648c [Maps] Fix documentations docblocks for the LiveComponent integration 2024-12-01 10:32:01 +01:00
Hugo Alliaume
dab7b0791c [Map] Create "onDrawChanged" to refactor methods "markersValueChanged"/"polygonsValueChanged"/"polylinesValueChanged" (not identical but follow the same pattern) v2.22.0 2024-11-26 09:01:52 +01:00
Hugo Alliaume
ff817e3524 [Map] Create "createDrawingFactory" to refactor methods "createMarker"/"createPolyline"/"createPolygon" (not identical but follow the same pattern) 2024-11-26 09:01:29 +01:00
Hugo Alliaume
e9ed9dcdf3 [Map] Re-organize methods order, simplify types, don't dirty-append @id anymore 2024-11-25 00:08:51 +01:00
Sylvain Blondeau
211e15a9fb [Map] Add support for Polyline 2024-11-23 00:43:29 +01:00
Hugo Alliaume
0fb89a899e Apply @smnandre's suggestions from code review
Co-authored-by: Simon André <smn.andre@gmail.com>
2024-11-22 22:26:06 +01:00
Hugo Alliaume
fae2ffeb47 [Map] Listen for zoom, center, markers and polygons changes, and update JS tests 2024-11-22 22:26:06 +01:00
Hugo Alliaume
db8b58da4e [Map] Complete and simplify the normalization/denormalization process of Map's value objects, add MapOptionsNormalizer 2024-11-22 22:26:06 +01:00
Hugo Alliaume
4ae03aa9c5 [Map] Add "fromArray" methods to options and other DTO, make "*Array" methods internal 2024-11-22 22:26:05 +01:00
Hugo Alliaume
ab6204e952 [Map] Split "view" attribute into multiple attributes 2024-11-22 22:26:05 +01:00
Hugo Alliaume
b1fb1ab8e2 Add PR template and auto-close PR on subtree split repositories 2024-11-20 08:57:38 +01:00
Javier Eguiluz
449401fa7e Fix some misc doc issues 2024-11-18 10:41:24 +01:00
Javier Eguiluz
56a6b2a939 minor #2360 [Map] Add position and missing closing parenthesis (tacman)
This PR was merged into the 2.x branch.

Discussion
----------

[Map] Add position and missing closing parenthesis

so that it works when blindly cutting and pasting.

Commits
-------

a432df84 add position and missing closing parenthesis
2024-11-14 15:36:10 +01:00
Romain Monteil
39b9d263cc [Map] Fix Twig Component example 2024-11-14 12:16:33 +01:00
Tac Tacelosky
4edb840aba add position and missing closing parenthesis
so that it works when blindly cutting and pasting.
2024-11-10 05:53:45 -05:00
Hugo Alliaume
85522f409d [Map][Google] Add documentation about ux_map.google_maps.default_map_id 2024-11-10 08:49:16 +01:00
Hugo Alliaume
f12d486ad2 [Map] Introduce ux_map.google_maps.default_map_id configuration 2024-11-10 08:30:08 +01:00
LesRouxDominerontLeMonde
25185ff4b3 Update index.rst
added :: instead of : , visual effect
2024-11-04 19:32:35 +01:00
Simon André
7cba0eb622 minor #2317 [Map] Update documentation (smnandre)
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Map] Update documentation

First round of changes, very open to feedback / suggestions
(it's a draft to start iterating)

related: https://github.com/symfony/ux/pull/2117

Commits
-------

9eb85399a [Map] Update documentation
2024-11-04 02:07:56 +01:00
Simon André
e52a4b061e [Map] Update documentation 2024-11-04 02:07:50 +01:00
Hugo Alliaume
405ed5c10f [DX] Rework testing process, add test script to packages package.json 2024-11-02 20:57:29 +01:00
Hugo Alliaume
ebb1a2bf50 [DX] Rework building process, and add build/watch scripts to packages package.json 2024-11-02 20:57:17 +01:00
Hugo Alliaume
9282b760fe [DX] Add lint/format/check-lint/check-format scripts to packages package.json 2024-11-02 20:20:53 +01:00
Felix Eymonot
ecbf1b3592 docs(liveComponents) - remove stimulus-bundle warning v2.21.0 2024-10-15 12:36:49 +02:00
Simon André
91627cd25b Add /doc to .gitattributes export-ignore 2024-10-06 00:11:16 +02:00
Kevin Bond
927c15ca3a bug #2231 [Twig][Icons][Map] fix wiring of ComponentRuntime (kbond)
This PR was merged into the 2.x branch.

Discussion
----------

[Twig][Icons][Map] fix wiring of `ComponentRuntime`

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Issues        | Fix #2230
| License       | MIT

I've opted to not add an interface and keep this extension point internal to other `ux/*` components for now.

Commits
-------

56ec7af2 [Twig][Icons][Map] fix wiring of `ComponentRuntime`
2024-10-02 12:02:59 -04:00
Kevin Bond
ac2262efb9 [Twig][Icons][Map] fix wiring of ComponentRuntime 2024-10-02 10:08:03 -04:00
Edym Komlan BEDY
9f553cb360 Update index.rst
Correction du nom de la variable $map -> $myMap
2024-10-02 11:50:44 +01:00
Simon André
831ad1ded3 [TwigComponent] Fix ux:icon & ux:map renders 2024-09-27 15:45:37 +02:00
rrr63
db1fc9c98a [Map] Add support for Polygons v2.20.0 2024-09-24 08:08:11 +02:00
Hugo Alliaume
c9cb679766 [Map] Fix Google/Leaflet bridges when using Webpack Encore 2024-09-24 00:01:09 +02:00
Javier Eguiluz
4a38c80011 [Doc] Fix some links in UX Map docs 2024-09-23 17:30:16 +02:00
$!m0n
5d10cee517 Fixed typo in links to Symfony UX repo
I fixed typo in the links to Symfony UX repo (before: symfony/symfony-ux).
Note: I wasn't able to deal with the "version" variable.
2024-09-23 11:01:47 +02:00
Simon André
f88c6b00c0 [Map] Render map from Twig with ux_map() and <twig:ux:map /> 2024-09-18 10:16:37 +02:00
Hugo Alliaume
3185ecf75b [TwigComponent] Deprecate cva twig function 2024-09-11 08:56:52 +02:00
Hugo Alliaume
5af9aa7a98 [Map] Adjust changelogs and fix render_map deprecated version 2024-09-09 13:10:21 +02:00
Javier Eguiluz
8d0279685f [UX Map] Misc updates in the docs 2024-08-31 10:56:27 +02:00
Javier Eguiluz
f3f2badb5b [Doc] Fix a Twig function name in UX Map docs 2024-08-30 10:50:46 +02:00
Simon André
4fa259a7b3 Fix Twig extension return types
Prepare Twig 4.0 compatibility
2024-08-20 21:19:54 +02:00
Kevin Bond
fe86900bce minor #2077 [CI] Update php-cs-fixer config (smnandre)
This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[CI] Update php-cs-fixer config

* Update phh-cs-fixer version
* Follow symfony/symfony configuration (#57941)
* Apply new rules

Commits
-------

09597b30 [CI] Update php-cs-fixer config
2024-08-20 11:18:51 -04:00
Simon André
8e322ae530 [CI] Update php-cs-fixer config 2024-08-20 11:18:47 -04:00
Simon André
f588a6a04d Rename render_map Twig function ux_map 2024-08-16 21:05:52 +02:00
Yoan Bernabeu
216594c4be Fix Typo Map v2.19.3 2024-08-14 13:50:02 +02:00
Simon André
e84fc75aab [Map] Fix doc link
As https://symfony.com/ux now redirects to the "FrontEnd page" of Symfony docs (that barely mention Symfony UX), i think directing users to the website could be less missleading.
2024-08-13 20:32:52 +02:00
Hugo Alliaume
5c65a87852 [Map] Add support for libraries for Google Bridge, inject provider's SDK (L or google) to dispatched events v2.19.1 2024-08-12 15:36:09 -04:00
Hugo Alliaume
701e5de40f [Map] Add the possibility to not configure map zoom/center if fit bounds to markers 2024-08-11 08:06:58 +02:00
Hugo Alliaume
8e45418cbe [Map] Add "extra" data for markers and infowindows v2.19.0 2024-08-09 11:59:14 +02:00