William Edmisten
67bd692bc0
Add multilingual field exceptions ( #9124 )
...
* Add multilingual field exceptions
* Add name:etymology
* Match language code in regex
* Restrict ISO 15924 code to 4 letters
* Allow country codes in name subkeys; match key case sensitively
Co-authored-by: Minh Nguyễn <mxn@1ec5.org >
2022-05-21 15:09:41 -07:00
Martin Raifer
cd4f4f37f1
clear "None" placehoder in fields, fixes #8984
2022-02-15 18:34:30 +01:00
Martin Raifer
4fb490abfa
fix rendering of html content in turn restriction editor
2022-02-11 17:24:21 +01:00
Martin Raifer
f7d1459c97
Use value of vehicle tag as placeholder in derived access fields
...
see https://github.com/openstreetmap/id-tagging-schema/issues/378
2022-02-03 19:27:32 +01:00
Martin Raifer
fcd8a2b2e7
optimize order of values of access fields ( closes #8945 )
2022-02-03 18:46:42 +01:00
Martin Raifer
e9cf283447
Merge remote-tracking branch 'hodigabi/issue-8871' into develop
2022-01-28 12:34:39 +01:00
Martin Raifer
765e8e3448
activate new access values ( #8876 )
2022-01-25 20:41:23 +01:00
Gabor Hodi
2ecce0e47e
[Issue8871] Do not open disabled localized combobox when clicking on it
2022-01-23 18:51:14 +01:00
Martin Raifer
cc6f16d480
Merge branch 'develop' into accessible_ui
2021-12-07 16:22:01 +01:00
Martin Raifer
250763882d
fix code lint issues
2021-12-02 18:46:14 +01:00
Martin Raifer
a3e65e553b
Merge branch 'colour-preview' into develop
2021-12-01 12:16:42 +01:00
Martin Raifer
e4008b4229
show native colour picker when clicking on colour preview
...
further tweaks:
* hide the box on invalid colours
* only affect field with a tag key that included "colour" separated by ":"
2021-12-01 12:11:13 +01:00
Martin Raifer
eec5032251
fix labeling of "reverse" button
2021-11-30 16:22:13 +01:00
Martin Raifer
7015fae91c
only allow to click on valid website URLs
...
closes #8827
2021-11-30 15:30:02 +01:00
Martin Raifer
9f3f8e1366
rename method
2021-11-29 19:26:18 +01:00
Martin Raifer
54886339f6
fix code lint issue, move additional logic into display methods
2021-11-29 19:21:29 +01:00
Martin Raifer
f3d05e4b01
fix restrictions field and global search results
2021-11-29 19:09:10 +01:00
Milos Brzakovic (E-Search)
094ace65fa
road speed unit
2021-11-29 13:26:31 +01:00
Martin Raifer
d78c357588
replace raw html injection of localized texts
...
by using d3 to insert the localized text spans directly into the DOM
2021-11-26 18:51:45 +01:00
Milos Brzakovic (E-Search)
fcd8d920ba
operation remove
2021-11-26 16:20:50 +01:00
Milos Brzakovic (E-Search)
03fed63668
increment - decrement
2021-11-26 16:10:20 +01:00
Milos Brzakovic (E-Search)
1170f25ebf
plus, add
2021-11-26 13:17:19 +01:00
Martin Raifer
040257fd44
replace unnecessary setting of raw "html" with "text"
2021-11-18 18:53:33 +01:00
Martin Raifer
f3e8852808
don't select option on ambiguous multi-key radio fields
...
this matches the behaviour of a multi-selection: all matching options are still highlighted, but the radio-option is not set.
also fixes a minor bug with multi-selections not taking `<key> = no` properly into account
closes #8796
2021-11-09 15:10:47 +01:00
Martin Raifer
2f9285e011
improve rendering of turn-restriction boxes in narrow sidebars
...
Previously the applied paddings were too large for narrow sidebars, causing the turn-restriction min-map view to be much more zoomed out than needed.
This tweaks the paddings such that even for the slimmest sidebar the rendering is still acceptable (i.e. no turn arrows to be rendered completely outside of the viewport) and at the same time allows generous margins for wider sidebars.
This also fixes a minor bug where the mini-map is not properly alligned vertically
2021-11-05 14:46:53 +01:00
Kyle Hensel
3a3d977f7e
add preview for colour input
2021-11-04 15:05:23 +13:00
Minh Nguyễn
810ce60c18
Fixed roadheight placeholders
...
The standard field’s placeholder is no longer relevant because it is formatted as a list of raw tag values rather than of localized numbers.
2021-10-25 21:52:54 -07:00
Minh Nguyễn
5f58b533ff
Added roadheight field with unit dropdowns
2021-10-25 17:38:41 -07:00
Kyle Hensel
416c1af372
add link button next to website tag
2021-08-19 15:17:45 +12:00
Milos Brzakovic (E-Search)
d2036996e3
Merge conflicts resolved
2021-07-05 10:26:44 +02:00
Bryan Housel
90bbe38fe8
Remove the brand combo from the name field
...
This has caused problems going back a long time, and now that we have a validator
and very visible brand presets with logos, it's not necessary anymore.
(re: #5558 , closes #8271 , closes #8304 )
2021-02-12 10:41:47 -05:00
Bryan Housel
96298f2836
Preserve name value if this preset shows brand or operator field
...
This also fixes the logic for calculating whether the preset shows a
`brand` or `operator` field - it needs to use `fields()` to actually
resolve the fields, as these fields can be inherited from another preset.
This also includes a change to match "primary" names before
"alternate" names (aka the "Baby Gap" / "Gap" problem)
2021-01-19 13:15:16 -05:00
Bryan Housel
4228b65602
Support more *:wikidata tags for field locking and pin styling
2021-01-18 17:18:37 -05:00
Quincy Morgan
e57793fab0
Use full width semicombo field for Via field (re: https://github.com/openstreetmap/id-tagging-schema/issues/104 )
2021-01-05 11:07:00 -05:00
Quincy Morgan
c8c288d6a3
Support using delete/backspace on focused, readonly combo fields
...
Make custom combo field values lowercase if they're also made snake_case
2020-12-09 15:26:45 -05:00
Quincy Morgan
cb7f1c2b3c
Update to id-tagging-schema v3.0.0
...
Add UI for translatable combo fields
2020-12-08 15:23:51 -05:00
Quincy Morgan
7911152dec
Merge branch 'develop' into unbundled-presets
...
# Conflicts:
# dist/locales/en.json
2020-12-07 10:57:14 -05:00
Quincy Morgan
40362f1d08
Fix issue with removing multilingual name entries
2020-12-04 11:59:51 -05:00
Quincy Morgan
0bc2b1b6a0
Improve multilingual name UI updates, don't use blank tag values (re: #8164 )
2020-12-04 10:22:18 -05:00
Quincy Morgan
0bd2351d68
Don't remove multilingual name list items when deleting the name value ( close #8164 )
...
Allow removing multilingual name list items that don't have full values
2020-12-03 16:26:58 -05:00
Quincy Morgan
baabd81987
Unbundle id-tagging-schema data and translations
...
Update for id-tagging-schema 2.0.0
2020-12-01 11:14:14 -05:00
Quincy Morgan
ba48a861bc
Enable curly and block-spacing eslint rules
2020-11-10 14:19:11 -05:00
Quincy Morgan
8147fcfa84
Show multilingual values in the Name field even for keys with spaces or other unexpected characters (re: #8165 )
2020-11-06 17:38:09 -05:00
Quincy Morgan
1a43dbe1fe
Use the actual dropdown label for the localized name language input label (re: #8165 )
2020-11-06 17:36:32 -05:00
Quincy Morgan
02add6e3ff
Fix issue where existing multiCombo field values wouldn't appear ( close #8155 )
2020-11-06 16:14:58 -05:00
Quincy Morgan
e83235df54
Fix regression where changing the Wikidata field wouldn't update the wikidata tag ( close #8132 )
2020-10-29 10:05:43 -04:00
Quincy Morgan
b2582dcf9e
Fix critical issue with editing Bike Lanes and Allowed Access fields
2020-10-27 20:44:56 -04:00
Quincy Morgan
154c6ed0ed
Fix issue where clicking some buttons would clear the URL hash
2020-10-27 09:56:05 -04:00
Quincy Morgan
dc8fd13586
Enable array-callback-return eslint rule
2020-10-23 13:47:09 -04:00
Quincy Morgan
4059ee5118
Enable block-scoped-var eslint rule
2020-10-23 13:38:36 -04:00