add support for field type colour

see https://github.com/ideditor/schema-builder/pull/38
This commit is contained in:
Martin Raifer
2022-10-18 11:51:03 +02:00
parent d349baad1e
commit b2b6cb5c19
3 changed files with 10 additions and 4 deletions
+4 -2
View File
@@ -46,7 +46,9 @@ _Breaking developer changes, which may affect downstream projects or sites that
#### :bug: Bugfixes
* Fix selection of best background source when starting on a zoomed-out view ([#9325])
#### :rocket: Presets
* add support for tagging schema v5 ([#9320])
* Support tagging schema v5 ([#9320]):
* Add new field type `colour` ([schema-builder#38], [#8782])
* Add ability to reference strings of other presets/fields
* Render `natural=strait` features in blue color ([#9294])
#### :hammer: Development
* Synchronize fetching of released presets
@@ -55,7 +57,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
[#9294]: https://github.com/openstreetmap/iD/issues/9294
[#9320]: https://github.com/openstreetmap/iD/pull/9320
[#9325]: https://github.com/openstreetmap/iD/issues/9325
[schema-builder#38]: https://github.com/ideditor/schema-builder/pull/38
# 2.22.0
##### 2022-Sep-27
+2
View File
@@ -30,6 +30,7 @@ import {
} from './combo';
import {
uiFieldColour,
uiFieldEmail,
uiFieldIdentifier,
uiFieldNumber,
@@ -59,6 +60,7 @@ export var uiFields = {
access: uiFieldAccess,
address: uiFieldAddress,
check: uiFieldCheck,
colour: uiFieldColour,
combo: uiFieldCombo,
cycleway: uiFieldCycleway,
defaultCheck: uiFieldDefaultCheck,
+4 -2
View File
@@ -11,11 +11,13 @@ import { svgIcon } from '../../svg/icon';
import { cardinal } from '../../osm/node';
export {
uiFieldText as uiFieldUrl,
uiFieldText as uiFieldColour,
uiFieldText as uiFieldEmail,
uiFieldText as uiFieldIdentifier,
uiFieldText as uiFieldNumber,
uiFieldText as uiFieldTel,
uiFieldText as uiFieldEmail
uiFieldText,
uiFieldText as uiFieldUrl
};