Martin Raifer
040257fd44
replace unnecessary setting of raw "html" with "text"
2021-11-18 18:53:33 +01:00
Quincy Morgan
e57793fab0
Use full width semicombo field for Via field (re: https://github.com/openstreetmap/id-tagging-schema/issues/104 )
2021-01-05 11:07:00 -05:00
Quincy Morgan
c8c288d6a3
Support using delete/backspace on focused, readonly combo fields
...
Make custom combo field values lowercase if they're also made snake_case
2020-12-09 15:26:45 -05:00
Quincy Morgan
cb7f1c2b3c
Update to id-tagging-schema v3.0.0
...
Add UI for translatable combo fields
2020-12-08 15:23:51 -05:00
Quincy Morgan
02add6e3ff
Fix issue where existing multiCombo field values wouldn't appear ( close #8155 )
2020-11-06 16:14:58 -05:00
Quincy Morgan
baace6d092
Update more code for D3 v6
2020-10-07 11:57:25 -04:00
Quincy Morgan
21a49bbec8
Initial support for D3 v6.2.0
2020-10-06 15:08:39 -04:00
Quincy Morgan
087e7eac14
Enable removing multicombo field values with keyboard (re: #8004 )
2020-09-28 15:03:29 -04:00
Quincy Morgan
f163722c9a
Create a new manyCombo field type for the public transport vehicles field instead of using multiCombo in a new way (re: #6142 )
2020-09-24 09:21:59 -04:00
Quincy Morgan
4600ab596f
Add lang attribute to more display labels (re: #7963 )
2020-09-23 10:10:24 -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
a3f9c3fb81
Merge branch 'develop' into lang-attributes
...
# Conflicts:
# modules/ui/fields/combo.js
2020-09-17 09:07:18 -04:00
Quincy Morgan
98bea69947
Add Vehicles field for public_transport presets ( close #6142 , re: #7970 )
...
Enable variant type of `multiCombo` field that works for any listed keys, not ones under a prefix
2020-09-16 15:15:10 -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
5fbaad1088
Make the waterway destination field separate from the road sign destination field (re: 7c5ec9be70)
...
Make the destination field for the destination_sign preset a semiCombo (re: #6970 )
2020-06-24 16:31:28 -04:00
Quincy Morgan
cc52b6cfd4
Prevent empty combo fields from adding a blank tag
2020-06-18 10:51:12 -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
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
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
3c0b926ec7
Replace coreContext.geometry function with a more explicit coreGraph.geometry function
2020-03-21 14:23:44 -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
2783408fc3
Add tooltips to mixed values in semicombo, multicombo, and radio fields
2020-01-31 14:07:16 -05: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
Bryan Housel
567eeac587
Make several data external instead of bundled:
...
Also dist/data/* contains minified files now
These are now external and will fetch as needed:
-export { dataAddressFormats } from './address-formats.json';
-export { dataDeprecated } from './deprecated.json';
-export { dataDiscarded } from './discarded.json';
-export { dataLanguages } from './languages.json';
-export { dataPhoneFormats } from './phone-formats.json';
-export { dataShortcuts } from './shortcuts.json';
-export { dataTerritoryLanguages } from './territory-languages.json';
2020-01-28 22:21:31 -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
6dc02d7f22
Properly hide the input field on semicombos when there aren't enough characters remaining to add another value (re: #6817 )
2020-01-27 16:35:15 -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
361358392f
Don't show yes as a suggestion for typeCombo fields
2020-01-15 10:30:38 -05:00
Quincy Morgan
40b6fe7ff9
Fix semicombo drag-and-drop issues with stale data and target positioning (re: #7024 )
2020-01-10 13:59:50 -05:00
Quincy Morgan
20fd66630b
Update semicombo reordering (re: #7024 ):
...
Don't try reordering multiCombo fields
Fix offset behavior for full-width semicombos
Use grab/grabbing cursor style
Keep dragged chip above others
2020-01-09 14:43:18 -05:00
Arjun
ba00334f2b
drag and drop of semicombos
2020-01-06 16:00:48 +00:00
Quincy Morgan
0a3b3df80c
Filter out values with fewer 10 or fewer uses from combo field suggestions ( close #7203 )
2020-01-03 11:49:43 -05:00
Bryan Housel
16ff2b1373
Upgrade country-coder to scoped package @ideditor/country-coder
2019-12-02 13:51:04 -05:00
Quincy Morgan
d89996e52c
Update country-coder to 2.0.0 ( close #7029 )
...
Localize address field in walkthrough without overwriting country coder function
2019-11-07 18:45:46 +01:00
Quincy Morgan
8c0740191f
Replace remaining nominatim countryCode calls with country-coder calls ( close #6941 )
2019-11-01 18:15:35 +01: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
d5abe468b9
Remove rest of the lodash iterators: map, reduce, forEach
...
(re: #6087 )
2019-03-29 15:14:21 -04:00
Quincy Morgan
748c9c9598
Filter out deprecated tag values from combobox suggestions ( close #6084 )
2019-03-27 17:15:10 -04:00
Bryan Housel
5b4aa529de
Replace lodash uniq
...
(re: 6087)
2019-03-27 02:43:25 -04:00
Bryan Housel
963a4127db
Remove lodash remove
...
(re: #6087 )
2019-03-24 01:50:32 -04:00
Bryan Housel
5280d07bad
Remove lodash reject (re: #6087 )
2019-03-23 12:51:13 -04:00
Bryan Housel
76e0d13729
Remove lodash every and filter
...
(re: #6087 )
2019-03-23 01:22:56 -04:00
Bryan Housel
7e6f68a1b2
Remove lodash some
...
(re: #6087 )
2019-03-23 00:07:52 -04:00
Bryan Housel
ff4f8f005f
Remove lodash find and findIndex
...
(re: #6087 )
2019-03-22 17:31:41 -04:00
Bryan Housel
166a50028b
Handle commas and semicolons typed into semi/multicombo values
...
(closes #6013 )
2019-03-05 14:51:29 -05:00
Bryan Housel
26368522c9
Batch changes from raw tag editor so blur/remove tag don't conflict
...
(closes #5878 )
2019-02-10 22:08:13 -05:00
Quincy Morgan
46beb31e74
Removed extra padding in comboboxes when the caret is hidden
2019-01-18 11:59:40 -05:00
Quincy Morgan
bf2574f4e3
Hide the dropdown arrow in combo fields if there are no suggestions from tagInfo ( closes #5730 )
2019-01-18 11:21:31 -05:00