Martin Raifer
ac77289b4d
refactor localized text rendering in tooltips, flash messages
2022-06-23 18:55:57 +02:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
9da4c4bb62
Add lang attribute to more labels (re: #7963 )
2020-09-23 10:44:38 -04:00
Quincy Morgan
8883c2f36d
Fix uiFlash issues
...
Clean up a few things from prior commit
2020-09-22 12:19:54 -04:00
Quincy Morgan
a3549f9a76
Merge branch 'develop' into lang-attributes
...
# Conflicts:
# modules/ui/commit_warnings.js
# modules/ui/field.js
# modules/ui/fields/wikidata.js
# modules/ui/fields/wikipedia.js
# modules/ui/full_screen.js
# modules/ui/panels/history.js
# modules/ui/sections/entity_issues.js
# modules/ui/sections/map_features.js
# modules/ui/sections/raw_member_editor.js
# modules/ui/sections/validation_rules.js
# modules/ui/tag_reference.js
2020-09-22 10:55:07 -04:00
Quincy Morgan
45decdb54c
Enable scaling the selection via hotkeys
2020-09-21 14:02:41 -04:00
Quincy Morgan
4fe62d0efb
Move plus/minus key list to utilKeybinding property
2020-09-21 10:59:45 -04:00
Quincy Morgan
32f8274929
Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963 )
...
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
ecb8ff534e
Use alt/option instead of ctrl/cmd as the modifier for zooming or panning by a lot ( close #7976 )
2020-09-15 11:56:53 -04:00
Quincy Morgan
7565e685d1
Fix lint warning
2020-06-12 14:19:13 -04:00
Quincy Morgan
51f465c84e
Flash disabled reason for zoom buttons on touch action ( close #7699 )
2020-06-12 14:18:31 -04:00
Quincy Morgan
70aaa0fa3a
Add disabled message to tooltip when Zoom To Selection button is disabled
2020-06-12 13:55:05 -04:00
Quincy Morgan
4874ee2c62
Add disabled messages for zoom in/out buttons when at max/min zooms
2020-06-12 13:44:13 -04:00
Quincy Morgan
a1af118f0e
Ensure locales and presets are loaded before the UI loads ( close #7406 )
...
Consolidate localization behavior and init to a coreLocalizer function and singleton
Explicitly support `en-US` locale
Rename coreData to coreFileFetcher and export a singleton rather than using a property of coreContext
Add `apiConnections` property of coreContext to simplify adding a source switcher
Replace some init functions with re-callable, promise-supporting `ensureLoaded` functions
Make coreContext itself load the UI if a container has been specified at init time
Fix code tests
2020-03-31 12:23:31 -07:00
Quincy Morgan
9731b93cec
Move uiTooltipHtml functionality into uiTooltip
...
Refactor uiEditMenu to use standard UI patterns instead of SVG
2020-03-25 12:22:10 -07:00
Quincy Morgan
d62a62cba8
Make popover and tooltip part of the UI module instead of utils
2020-03-24 17:32:09 -07:00
Quincy Morgan
6087aae21f
Remove map convenience functions of context
2020-03-22 10:57:17 -07:00
Quincy Morgan
a66e21c76f
Fix tooltips on zoom buttons when they're disabled
2019-10-11 12:46:02 +02:00
Quincy Morgan
a97f05c9dc
Disable zoom in/out buttons when at max or min zoom already ( close #6847 )
2019-09-18 15:56:32 -04:00
Albin Larsson
cd5cd81ba5
make additional buttons and links keyboard accessible
2019-07-31 08:24:26 +02:00
Quincy Morgan
d01bb78707
Reduce circular dependencies caused by importing from indexes, the location of the validation models, and the location of areaKeys ( close #6237 )
2019-04-24 13:45:59 -07:00
Bryan Housel
152022aec4
Use context.keybinding for keybindings that don't change
...
(closes #5487 )
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555
Move lib/d3.keybinding.js -> util/keybinding.js
...
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
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
Bryan Housel
3d13620705
Convert lodah-es and d3 to named imports for ui
2017-09-26 11:22:43 -04:00
Bryan Housel
634002b693
Remove shifts from the keybinds that don't need them
2017-06-05 21:11:18 -04:00
Bryan Housel
dffc3541a4
Match '+' as-is (no shift, because shift '+' is '?' on some non-US keyboards)
...
(closes #4079 )
2017-06-02 11:52:01 -04:00
Bryan Housel
7873f0c425
Relax rules for using keyboard shortcuts in the walkthrough
2017-03-29 12:35:33 -04:00
Martin Raifer
cc599f3c03
fix undefined underscore keycode ( #3564 )
2016-11-08 12:13:31 +01:00
Bryan Housel
3224130821
Add uiCmd to fix modifier, add keybind arrays to simplify code
2016-11-04 10:17:30 -04:00
Nick Doiron
581bade5f3
update RTL detection
2016-10-05 01:38:13 -04:00
Nick Doiron
6bc9e63fc3
map controls and menus
2016-10-05 01:33:16 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Tom MacWright
ed135ce9ef
Enable lib tests
2016-09-05 10:22:45 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
cdb533fa84
Begin d3 v4 update
2016-08-21 15:19:27 -04:00
Tom MacWright
6341d4e4b5
one-shot build ( #3266 )
...
* One-shot development
* Move jsonp to module
* Tooltip -> module
* Remove d3.jsonp
* Fix tooltip lint
* Load all libs but d3 itself with require
* Add top-level brfs
* Unformat intro graph
2016-08-10 15:25:19 -07:00
Tom MacWright
af776501d3
Require locale, second pass ( #3259 )
...
* Require locale, second pass
* Remove t global, remove t where it isn't needed
2016-07-21 16:20:13 -04:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Kushan Joshi
7188065a6c
disband ui/core
2016-07-02 19:04:51 +05:30