Martin Raifer
ac77289b4d
refactor localized text rendering in tooltips, flash messages
2022-06-23 18:55:57 +02:00
Martin Raifer
3d427df6d6
disable eslint for purposefully unused parameter
2022-02-11 17:01:01 +01:00
Martin Raifer
ad67f81cfd
code quality improvements (unused vars, duplicate css selectors, etc.) ( #8965 )
...
* mark function parameter as currently unused
* refactor some unused function parameters
* consolidate some css selectors
2022-02-07 15:30:53 +01:00
Martin Raifer
cc6f16d480
Merge branch 'develop' into accessible_ui
2021-12-07 16:22:01 +01:00
Milos Brzakovic (E-Search)
6337e4d769
aria-pressed on modes/notes tablist/tab on raw_tag
2021-12-02 16:31:41 +01:00
Milos Brzakovic (E-Search)
e91dc1b4f6
states - aria selected/expanded
2021-11-30 14:28:43 +01:00
Milos Brzakovic (E-Search)
fef933a2a4
sidebar toogle
2021-11-26 11:47:55 +01:00
Martin Raifer
040257fd44
replace unnecessary setting of raw "html" with "text"
2021-11-18 18:53:33 +01: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
f2c150e83e
Rename several title properties to label and pass in attributed HTML instead of string
2020-09-22 13:15:19 -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
5435082d9c
Revert t function to returning the plain string by default
...
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -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
58014ace62
Don't prevent default tabbing to elements (re: #8004 )
2020-09-17 12:07:20 -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
b7bb8213ba
Flash the disabled message for touch interaction for the save button (re: #7699 )
...
Don't flash undo/redo tooltip text when the map isn't editable
2020-06-12 13:10:15 -04:00
Quincy Morgan
1e68917e2a
Flash tooltip text when tapping undo/redo toolbar buttons and disabled operation buttons on touch devices (re: #7699 )
2020-06-12 12:48:16 -04:00
Quincy Morgan
620d79bfc8
Reorganize the code for setting the mode class on the container
2020-05-29 17:18:10 -04:00
Quincy Morgan
60f7dc7c0b
Replace presets property of context with singleton
...
Remove utilPreset
2020-04-01 13:08:45 -07: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
21f8404deb
Show change count in document title ( close #6209 )
...
Make title format translatable
Don't show lat/lon location in title
Select corresponding features upon hash change
2020-03-24 10:17:46 -07:00
Quincy Morgan
f0cb8ffb25
Merge branch 'develop' into fix-history
2020-03-23 14:12:14 -07:00
Quincy Morgan
eed7944a1a
Replace various uses of d3_select and d3_selectAll with selection on the container
2020-03-22 12:34:06 -07:00
Quincy Morgan
152d89fa22
Convert some element ids to classes to avoid collisions when embedding iD
2020-03-20 13:10:39 -07:00
Katarzyna Król
28ab9fe150
remove counting changes in title
2020-01-15 02:03:50 +01:00
Katarzyna Król
6286d1430f
fix titles - single quotes
2020-01-15 01:50:07 +01:00
Katarzyna Król
91b67277bd
update document title
2020-01-14 18:47:19 +01:00
Quincy Morgan
ae7eadb89c
Properly update undo/redo button tooltips when undoing/redoing ( close #6872 )
2019-12-23 11:06:23 -05:00
Quincy Morgan
e8d154a529
Remove old, unused implementations of favorite, recent, and search-to-add preset toolbar items
2019-12-18 11:25:31 -05:00
Quincy Morgan
523a467836
2.x: Make toolbar horizontally scrollable when it overflows (re: #6755 , re: 7545f67063b5e7007ef2d8367e3181e59c04a487)
...
Generalize tooltip into popover control
Use the same popover control for tooltip as the preset browser and tools list popovers
Smartly position the preset browser popover and menu bar tooltips to stay fully onscreen
Position most tooltips closer to their controls
Fix small gap that could appear between a tooltip and its arrow
Allow wider toolbar tooltips
2019-12-16 13:30:07 -05:00
Quincy Morgan
912151ff38
Allow viewing and editing the tags/relations of selected features at any zoom level in 2.x (re: #5001 )
2019-12-12 16:54:16 -05:00
Quincy Morgan
9d936b4aea
Rename rendererMap.editable function to more precise rendererMap.editableDataEnabled
...
Make coreContext.editable function also account for whether user is in modeSave
2019-12-12 16:06:28 -05:00
Albin Larsson
cd5cd81ba5
make additional buttons and links keyboard accessible
2019-07-31 08:24:26 +02:00
Bryan Housel
58cae43b9b
Use parentNode instead of parentElement for IE
2019-05-07 17:48:56 -04:00
Bryan Housel
dbb10bb155
Just update save count on all changes
...
(closes #6239 )
2019-04-30 10:02:00 -04:00
Bryan Housel
3fe9d75f35
Fix issues with issue cache for entities that no longer exist
2019-04-22 19:35:23 -04:00
Bryan Housel
1092ddb125
Make sure to update the save count when restoring changes too
2019-04-19 10:56:00 -04:00
Bryan Housel
0a77a494aa
Merge branch 'master' into validation_and_change_perf
2019-04-10 14:22:20 -04:00
Quincy Morgan
ae80c88f37
Render relation route icon lines dynamically ( close #5926 )
2019-04-08 19:58:50 -07:00
Quincy Morgan
35c7cbd92b
Ensure that undo/redo buttons look disabled when the map is not editable ( close #6105 )
2019-04-04 17:34:20 -07:00
Bryan Housel
87e3b928d0
Reduce drawing during history changes
...
(closes #6086 )
2019-04-03 23:26:26 -04:00
Quincy Morgan
4afd29a50a
Hide ribbon and favoriting UI for now
2019-03-27 13:12:28 -04:00
Quincy Morgan
bab9e6b2b4
Add uninstall functions to several toolbar items
...
Tweak toolbar item spacing
2019-03-26 16:36:30 -04:00
Quincy Morgan
db061d0dff
Make the RTL shortcuts for recent and favorite presets the same as LTR ( close #6107 )
2019-03-26 12:24:39 -04:00
Quincy Morgan
2895ff9405
Break modes toolbar item into add favorites and add recent items
2019-03-25 17:00:33 -04:00
Quincy Morgan
f8b8739855
Add optional uninstall function to tools
2019-03-25 13:48:59 -04:00
Quincy Morgan
776bf103d8
Reorganize toolbar code
2019-03-25 12:25:04 -04:00