Skip to content

Commit

Permalink
add support for field type colour
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Oct 18, 2022
1 parent d349baa commit b2b6cb5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions modules/ui/fields/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
} from './combo';

import {
uiFieldColour,
uiFieldEmail,
uiFieldIdentifier,
uiFieldNumber,
Expand Down Expand Up @@ -59,6 +60,7 @@ export var uiFields = {
access: uiFieldAccess,
address: uiFieldAddress,
check: uiFieldCheck,
colour: uiFieldColour,
combo: uiFieldCombo,
cycleway: uiFieldCycleway,
defaultCheck: uiFieldDefaultCheck,
Expand Down
6 changes: 4 additions & 2 deletions modules/ui/fields/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};


Expand Down

0 comments on commit b2b6cb5

Please sign in to comment.