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
Quincy Morgan
bc81a62a58
Made the value chips in the Destinations semiCombo field full-width to mimic the layout of highway signs (re: #4178 )
...
The input and combobox caret elements in the multicombo field value list are now wrapped in a li element for consistency
2019-01-18 10:41:51 -05:00
Quincy Morgan
77cfde7913
combo, multiCombo, and semiCombo fields now correctly submit the typed value upon pressing enter/return without deselecting the feature ( closes #5725 )
2019-01-17 15:42:35 -05:00
Bryan Housel
39b3f1df68
Avoid creating comboboxes
...
(closes #5568 )
Several strategies in here:
- Move uiCombobox() from inside the render function to class variable
- Don't render stuff like the raw tag editor when it's collapsed
- Don't show as many fields/combos on hover
- Don't instantiate fields (like universal/more) until they're actually shown
- Bind the combo on enter selection not on update selection
2018-12-11 16:07:00 -05:00
Bryan Housel
15a54cab17
Use context.container instead of passing it in
2018-12-10 14:14:27 -05:00
Bryan Housel
e5dedeff8b
Move lib/d3.combobox.js -> ui/combobox.js
...
As with other things from this lib/ folder, little original code remains
and turning these things into reusable d3 plugins is not a priority.
2018-12-10 12:38:21 -05:00
Bryan Housel
958d7fac4f
wip changing all fields to use flexbox everywhere
2018-11-28 18:15:38 -05:00
Bryan Housel
71592f3c72
Treat multicombo values other than 'no' and '' as if they are set
...
And don't set a multicombo value to 'yes' if it already has a non-'no' value
(closes #5291 )
2018-09-04 17:31:46 -04:00
Bryan Housel
91872d72f8
Code formatting, replace regex match with test
...
(minor point, but `test` is much faster when you just want a boolean result)
2018-09-04 16:16:34 -04:00
Bryan Housel
4a71aa6146
Use safer field ids in classes, element ids, css selectors
...
Fixes issue with nested/namespaced fields, such as `maxspeed/advisory`,
in situations where would try to use a css selector or element id.
Can't use characters like '/' in a css selector.
2018-03-15 00:57:41 -04:00
Bryan Housel
c0040f3cd6
Add caseSensitive option for combofields, use for source=*
...
(closes #4558 )
2017-11-26 19:30:19 -05:00
Bryan Housel
6d65a1c89a
Convert lodah-es and d3 to named imports for ui/fields
2017-09-26 00:17:13 -04:00
Bryan Housel
746b54f3d2
Make combo field work without an entity
2017-08-15 15:34:34 -04:00
Bryan Housel
5f44c9a00a
Add combobox menus to id-container instead of document.body
...
(re: https://github.com/openstreetmap/iD/issues/3925#issuecomment-290718356 )
2017-03-31 13:44:55 -04:00
Bryan Housel
c3502a4e16
Only add the ellipses if the placeholder doesn't already end in one
...
(closes #3920 )
2017-03-21 22:11:35 -04:00
Bryan Housel
ea2a1e10b1
Make sure multiData array is updated when item is removed
2017-03-17 13:32:45 -04:00
Bryan Housel
1205e1758e
Add semiCombo field for setting values in semicolon-delimited lists
...
(closes #3905 )
2017-03-17 01:47:00 -04:00
Bryan Housel
cd23d76875
Don't debounce combo placeholder lookups
...
(closes #3874 )
2017-03-02 21:41:57 -05:00
Bryan Housel
2314acfec7
Add utilNoAuto to remove autocorrect/spellcheck features from inputs
...
(closes #3839 )
2017-02-14 17:19:24 -05:00
Bryan Housel
94483af4c7
Fix service name nominatim -> geocoder
2017-01-17 16:46:41 +05:30
Bryan Housel
053074d076
Export live binding for services in iD.services, fix init/reset
...
(closes #3324 )
Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.
This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding. `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
7f61d36a5e
Rename countryCode->code to avoid rollup name collision bug
2016-10-05 23:01:56 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
460ea42c95
Fix enter/update selections for multicombo chips
2016-09-27 00:12:37 -04:00
Bryan Housel
d7b3bb5a89
Fix placeholders set during enter selection not finding input element
...
Also remove unhelpful placeholder from access_simple.json
2016-09-26 01:03:55 -04:00
Bryan Housel
0ea59a043d
Fields mostly working (but not dispatch/update)
2016-09-20 22:41:05 -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
8819d3d061
Remove continued iD references ( #3341 )
...
* Remove continued iD references
* make build.js safe enough to dodge json plugin bug
* Package as an iife to avoid var name issue
2016-08-10 20:06:45 -07:00
Minh Nguyễn
d1d6b5399e
Filter taginfo by country code prefix
...
taginfo returns results that match anywhere within the string. So in Canada, you might get results like US:CA:SF. This change filters out such results.
2016-08-02 07:26:50 -07:00
Minh Nguyễn
05ecac64cc
Compare lowercase value to country code
2016-08-02 07:23:17 -07:00
Minh Nguyễn
4922a37b00
Combo field with taginfo for road networks
...
Added a variation of the combo field for road networks. If the field’s value is blank or shares a prefix with the current country code, search taginfo for values beginning with the country code and a colon.
2016-08-02 07:23:17 -07:00
Minh Nguyễn
e1bdae7800
taginfo tooltips for combo values ( #3299 )
...
Each combo value obtained from taginfo now has a tooltip describing the value, if available.
2016-07-31 23:37:09 -04:00
Bryan Housel
747b9f37d5
Pacify eslint
2016-07-24 17:39:06 -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
Bryan Housel
cb71e90384
Module for iD.Detect() ( #3243 )
...
* convert iD.Detect() iife to a module
* iD.Detect() should return loaded locale (except for 'en')
(The previous code was a hack to replace the detected locale with the loaded
locale. Now that Detect is a module, we can not replace the detected locale
from external code, but we can have Detect() return the locale we really want)
2016-07-13 09:15:47 -04:00
Kushan Joshi
7188065a6c
disband ui/core
2016-07-02 19:04:51 +05:30