Bryan Housel
470835b38f
Extract all graphics from iD sprite, reassemble with svg-sprite
...
All iD sprite graphics are now prefixed with `iD-`
Also includes support for sending the preset logos to taginfo
2018-06-08 16:06:46 -04:00
vershwal
142b738a30
Hint text for Remove and Undo button.
2018-03-17 01:07:56 +05:30
Bryan Housel
4a71aa6146
Use safer field ids in classes, element ids, css selectors
...
Fixes issue with nested/namespaced fields, such as `maxspeed/advisory`,
in situations where would try to use a css selector or element id.
Can't use characters like '/' in a css selector.
2018-03-15 00:57:41 -04:00
Bryan Housel
6c6b1378b2
Add some restriction help images, adjust styles
2018-02-26 16:31:00 -05:00
Bryan Housel
de1fdaa21f
Add close button, remove _showing state variable
2018-02-26 13:58:50 -05:00
Bryan Housel
57d2aee6c8
Add uiFieldHelp component, currently just for turn restrictions field
2018-02-23 15:09:05 -05:00
Bryan Housel
3d13620705
Convert lodah-es and d3 to named imports for ui
2017-09-26 11:22:43 -04:00
Bryan Housel
59f1df902d
When showing a field, set its default value if it has one
...
This allows universal fields or other standalone fields to have a default value.
This didn't work before becuase default values were only handled by
preset.applyTags() / preset.removeTags().
2017-09-11 15:16:02 -04:00
Bryan Housel
78e874d6c4
Allow fields to work w/o entity, add options to disable buttons
2017-08-13 23:24:09 -04:00
Bryan Housel
8a399096b2
Add options for fields, allow unwrapped fields (no label, buttons, etc)
2017-08-05 00:33:20 -04:00
Bryan Housel
216a04d962
Restore code to set state=hover (not sure if actually needed)
...
Also, fix hover style for textarea
2017-08-03 13:32:08 -04:00
Bryan Housel
6950220ced
Update the tags before rendering
2017-08-03 13:04:17 -04:00
Bryan Housel
7076bcef16
uiField now dispatches own events
2017-08-03 11:28:10 -04:00
Bryan Housel
6fe1efaf35
Some variables and formatting
2017-08-03 11:13:07 -04:00
Bryan Housel
2e278ba5ef
Fix "Add Field" combo
2017-08-03 10:28:07 -04:00
Bryan Housel
1bf514b7fc
Move field rendering code from preset_editor to field.js
2017-08-03 01:10:59 -04:00
Bryan Housel
ce12c34efe
WIP refactor field rendering code out of preset editor
2017-08-02 17:41:02 -04:00