CommanderRoot
76738daff8
Replace deprecated String.prototype.substr() ( #8988 )
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
2022-06-06 16:16:38 +02:00
Thomas Petillon
fab6dfa3dd
Add the utilCompareIDs() function
2021-12-06 21:23:38 +01:00
Thomas Petillon
e1898e5c56
Add the utilOldestID() function
2021-12-06 21:23:38 +01:00
Nick Doiron
2d97f8414d
turn off svg text path patch on Chromium >=96
2021-10-08 00:36:18 -04:00
Bryan Housel
1282d3b059
Don't use a util function for a thing that exists 1x in the code
2021-08-16 14:23:24 -04:00
Milos Brzakovic (E-Search)
d2036996e3
Merge conflicts resolved
2021-07-05 10:26:44 +02:00
Bryan Housel
9f30ebf551
Adjust verbose utilDisplayLabel call, use for more validation messages
...
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-794527259 )
2021-03-10 10:30:57 -05:00
Bryan Housel
c3e9e8c8ff
Support a more verbose format for listing issues
...
Includes the feature type in the label
(re: https://github.com/osmlab/name-suggestion-index/issues/4543#issuecomment-791919134 )
2021-03-08 12:15:17 -05:00
Quincy Morgan
13ddeecfa7
Fix code tests for #8276 for real this time
...
Add utilFetchJson to get around some quirks of d3.json and use it for coreFileFetcher
Load real general English locale strings at the beginning of code tests
2021-02-23 11:50:00 -05:00
Minh Nguyễn
6e30e61ade
Label route relations with directions and waypoints
2020-12-31 16:50:47 -08:00
Quincy Morgan
611abf8ed0
Enable rotating selection even when mouse isn't over the map (re: #8187 )
2020-12-03 15:04:21 -05:00
Quincy Morgan
ba48a861bc
Enable curly and block-spacing eslint rules
2020-11-10 14:19:11 -05:00
Quincy Morgan
4059ee5118
Enable block-scoped-var eslint rule
2020-10-23 13:38:36 -04:00
Quincy Morgan
9effdf9724
Display the expected preset name for the mismatched geometry issue messages ( close #8018 )
2020-09-24 08:58:45 -04:00
Quincy Morgan
5f93da5a59
Add a reusable function for calculating the combined extent of multiple entities (re: #7706 )
2020-06-16 13:17:43 -04:00
Quincy Morgan
2064f7a2f7
Update util function comments
2020-06-10 12:44:10 -04:00
Quincy Morgan
d01f1598d3
Show the delete button for filled multilingual name fields even if no name tag is present ( close #7572 )
...
Focus the language input when clicking a multilingual name field label instead of deleting the value
Be more lenient with `utilUniqueDomId` function input
2020-06-10 10:35:03 -04:00
Quincy Morgan
762307bd7d
Restrict key, value, and role character limits based on unicode characters, not UTF-16 code units (re: #6817 )
2020-06-09 15:41:15 -04:00
Quincy Morgan
0120b009fa
Take a graph parameter in utilDisplayLabel instead of the context
2020-04-01 13:29:17 -07: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
d8585ae2fb
Fix lint warning
2020-03-29 10:55:32 -07:00
Quincy Morgan
eec1a23388
Fix RTL mouse coordinate calculation issue
2020-03-29 09:54:02 -07:00
Quincy Morgan
4872b06a28
Randomize form field ids to thwart browser memory and help with embedding iD ( close #6444 )
2020-03-21 13:16:40 -07:00
Quincy Morgan
7adaa2f753
Merge branch '2.x' into issue#7297
2020-03-13 14:13:44 -07:00
Quincy Morgan
c8e9bf3de7
Account for empty string tag values in utilTagDiff (re: #7363 )
2020-02-27 15:18:31 -08:00
Bryan Housel
dc7fba4bf8
Have utilStringQs advance past any leading '?' or '#' characters
...
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
root
12141bc655
Add extra value checking to enable adding tags with value '' from text area.
2020-02-16 20:56:58 -04:00
Quincy Morgan
1b331bb678
Add mechanism for fields to support editing during multiselection (re: #7276 )
...
Add `utilCombinedTags` method and use it for the raw tag editor as well as fields
Pass `entityIDs` array into fields instead of single `entity` object
Give field revertion its own path separate from `change`
Add multiselection editing to fields in files: access, address, check, combo, cycleway, input, maxspeed, textarea, and wikidata
2020-01-30 13:53:29 -05:00
Quincy Morgan
11dfe7e571
Add util function for generating classes/ids from any string
2019-12-20 12:37:53 -05:00
Quincy Morgan
7ca9f55d43
2.x: Don't render multipolygon members in yellow when the multipolygon is selected (re: #6558 , re: 4ab97128c4aae04b627cf8f19091c6c0fc1cf5bc)
2019-12-13 14:19:15 -05:00
Quincy Morgan
7473d32e31
2.x: Highlight relation members in yellow when a relation is selected, including in a multi-selection (re: #5766 , re: cf2935576511a1b9f5aac47407ed2b0ce803902a)
2019-12-13 11:20:40 -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
Bryan Housel
7b4a9a43b0
Change utilTagDiff to return an object with details
2019-05-02 22:59:41 -04:00
Bryan Housel
ed9a436318
Move common tag diffing code from validators into utilTagDiff
2019-05-02 11:16:15 -04:00
Bryan Housel
f17ebee402
Use Set, simplify util functions to collect entities with children
2019-04-05 11:05:04 -04:00
Bryan Housel
4821bf0a68
Remove lodash omit
...
(re: #6087 )
2019-03-26 14:12:45 -04:00
Bryan Housel
9e4cf126c3
Remove unneeded utilGetPrototypeOf and just use Object.getPrototypeOf
2019-03-25 22:16:58 -04:00
Bryan Housel
a5ffec5665
utilHighlightEntities accept an array instead of calling it in a loop
2019-02-11 12:40:23 -05:00
Quincy Morgan
1564f73de6
Merge branch 'master' into validation
2019-02-07 20:51:21 -05:00
Bryan Housel
3875ea565b
Remove mvt querystring parameter that we never used
2019-02-07 10:48:19 -05:00
Quincy Morgan
f25a80c48c
Merge branch 'master' into validation
2019-01-28 12:14:04 -05:00
Quincy Morgan
4ef46a4b1d
Fix issue where Chrome would attempt to autofill fields ( close #5818 )
2019-01-28 11:15:59 -05:00
Quincy Morgan
981ed9ef8c
Integrate the generic_name validation into the new validations framework
2019-01-24 09:28:59 -05:00
Quincy Morgan
e69f2a0389
Merge branch 'master' into validation
2019-01-23 13:15:33 -05:00
Bryan Housel
a873c0f2ca
Remove unused, add maprules documentation
2019-01-23 11:08:19 -05:00
Quincy Morgan
11b2102761
Merge branch 'master' into validation
...
# Conflicts:
# data/core.yaml
# dist/locales/en.json
# modules/ui/commit_warnings.js
# modules/ui/entity_editor.js
# modules/util/index.js
# modules/util/util.js
# modules/validations/index.js
# modules/validations/many_deletions.js
# modules/validations/missing_tag.js
2019-01-14 10:13:56 -05:00
Bryan Housel
d9015baa47
Improve links in KeepRight error messages
...
(re: #5679 )
Also move the localizeable string dictionary to data/keepRight.json
2019-01-07 16:10:44 -05:00
Quincy Morgan
d58867df7c
Add entity display label util function
...
Condense message and tooltip text for for the untagged feature issue
Use lighter border color for error issues
2018-12-20 14:04:15 -05:00
Thomas Hervey
e0d5391f1b
added: entity links within descriptions
2018-12-19 13:43:48 -05:00