Nick Doiron
6dcc73cf7c
Add lang atttribute on multilingual names, wikidata/wikipedia fields ( #10716 )
...
This improves rendering of CJK names that contain unified ideographs that share a unicode codepoint, such as 化.
2025-01-31 13:49:49 +01:00
Tobias
b72a089f35
Field: Fix html tag type of wikidata label ( #10144 )
...
The `span` need to be a `div` after https://github.com/openstreetmap/iD/pull/10127/files
2024-03-04 19:25:53 +01:00
Martin Raifer
85affbadc8
lint
2023-07-07 13:34:08 +02:00
Martin Raifer
ea054a00a5
fix bug in "lang=badvalue" handling for wikidata api
...
see https://github.com/openstreetmap/iD/pull/9638#issuecomment-1623497481
2023-07-07 12:49:55 +02:00
Martin Raifer
8f79932ab1
prevent html injection in combobox dopdowns
...
and use returned wikidata label language for html `lang` metadata
2022-06-06 12:47:14 +02:00
Bryan Housel
b44c7e8741
Fix display of Wikidata combo field items
2022-06-06 12:44:58 +02:00
Quincy Morgan
dc8fd13586
Enable array-callback-return eslint rule
2020-10-23 13:47:09 -04:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
482d0902ac
Fix issues with Wikidata field
2020-09-24 10:27:35 -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
874c412b74
Enforce max unicode charachter length of keys, values, and relation roles through truncation upon input rather than HTML maxlength attribute ( close #6817 )
...
Normalize unicode when changing keys, values, and relation roles
2020-06-10 14:11:55 -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
41418e57a5
Fix issues with wikidata field searching and label updating
2020-05-20 11:23:01 -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
0931459dba
Reduce use of global selection (re: #7445 )
2020-03-24 13:02:06 -07:00
Quincy Morgan
8c31b99919
Focus wikidata field input when clicking its label
...
Remove for/id for readonly fields
2020-03-22 12:57:38 -07:00
Quincy Morgan
b3262a71dc
Use newlines instead of semicolons to separate mutliselection tag values in tooltips (re: #7306 )
2020-01-31 10:49:31 -05: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
89ce98f510
Don't require services/osm in order to get max OSM character lengths
2020-01-28 09:28:23 -05:00
Quincy Morgan
17ae12b3d7
Address most common places where tag keys or values could exceed the 255 character API limit ( close #6817 )
2020-01-27 15:57:55 -05:00
Quincy Morgan
6c7d8b6150
Add identifier field for tags linking features to external databases
...
Add US-only field for `gnis:feature_id` (close #7086 )
Add tooltip to wikipedia field link button
2019-12-03 20:47:10 -05:00
Quincy Morgan
3ca01d3690
Generalize wikidata field type
...
Add Species Wikidata field to tree, orchard, and animal enclosure presets (close #6652 )
2019-07-31 16:59:44 -04: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
Quincy Morgan
cf6e6c7970
Always display the wikidata label and description in the user's language, if available
2019-04-01 13:04:33 -04:00
Quincy Morgan
2e7a47d0f2
Update the wikipedia tag when setting the wikidata tag via the field ( close #5543 )
2019-03-31 15:49:35 -04:00
Quincy Morgan
5a0f8b3453
Autocomplete labels in the Wikidata field ( close #5544 )
2019-03-28 19:34:47 -04:00
Bryan Housel
29ce6cb30c
Use proper errbacks
...
(re: #5823 )
2019-02-09 14:51:37 -05:00
Bryan Housel
f559fc57bb
Silly code formatting stuff, remove unused .entity() accessor
...
- prefix state variables with a _
- var on each line
2018-12-01 21:51:08 -05:00
Quincy Morgan
55c47021fa
Fixes Wikidata field lint errors
2018-12-01 18:14:51 -08:00
Quincy Morgan
afcc474d3c
Wikidata entity labels and descriptions are now fetched and displayed in the field, if present
2018-12-01 17:39:16 -08:00
Quincy Morgan
a28147aea2
Updates Wikidata field for the latest field flexbox changes
...
Adds an Identifier label to the Wikidata QID input
2018-12-01 13:16:41 -08:00
Quincy Morgan
82263aea7c
Adds a Wikidata field
2018-11-18 19:38:19 -05:00