34c69cacb93debefe22f29ffe643d6d2d4c1de73 |
|
21-Mar-2012 |
Ryan Grove <ryan@wonko.com> |
Add DataSource source to AutoComplete manual test. |
fc948858031e489d09d1d8c950ec74a88119cea6 |
|
15-Feb-2012 |
Ryan Grove <ryan@wonko.com> |
Fix scrollable list being hidden after using the scrollbar to scroll.
See http://yuilibrary.com/forum/viewtopic.php?p=30599 |
e58e329a62c99b6967a791762117392e5af609de |
|
18-Jan-2012 |
Ryan Grove <ryan@wonko.com> |
Add an `enableCache` attribute to AutoComplete.
Set this to false if you want to disable caching in built-in result
sources. |
7f9dfffb92e442a6d99b2becef29e6f4d8db4ede |
|
29-Aug-2011 |
Ryan Grove <ryan@wonko.com> |
Fix a bug that prevented the autocomplete list from being hidden after right-clicking on the list and then clicking elsewhere in the document. [Ticket #2531009] |
98ad4b8502571e9914f72ff72adfba58864dfa07 |
|
22-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Use pieisgood.org instead of Dropbox for YQL env URL. |
6f9191a43f1d9ec40f3649d39600185523ba09ab |
|
18-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Update AutoComplete YQL example to use a custom datatable for search.suggest. |
c6ab780ed34026fab30cd3fcdb53e39d6c2a7409 |
|
16-Mar-2011 |
Ryan Grove <ryan@wonko.com> |
Switch to shim-plugin instead of widget-stack, and add a default z-index
in the core autocomplete-list CSS.
This fixes a shim bug in IE6 in which the shim wasn't sized correctly
the first time the list was shown, and also resolves default z-index
issues in all browsers that required implementers to manually set the
z-index in JS in order for it to take effect. |
9b56e76519cb4b6ccd3a8e3fbbffc43fd7dbbebf |
|
17-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Allow the use of functions as result sources. |
174bc2b9feea5dcd41ecb60213d2ce600b5d08bf |
|
16-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Add support for XHR-based sources without using a DataSource.
Like JSONP sources, XHR sources are specified by setting the source
attribute to a URL. Any URL string with a {callback} placeholder will be
treated as a JSONP source; a URL string without a {callback} placeholder
will be treated as an XHR source. |
63b7fb6d8982a8aeec3b0de4fa10fe2be796ab26 |
|
12-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Refactor the way results are passed to filters, highlighters, and formatters. [Fixes #2529522]
Previously, result filters received an array of raw results,
highlighters received an array of text result strings, and formatters
received several arrays containing different result formats.
This commit changes this behavior: filters, highlighters, and formatters
now all receive a single array of result objects. Each object has
several properties (display, highlighted, raw, text) representing the
various formats of a given result.
Filters are expected to return an array of result objects. Highlighters
should return an array of highlighted result text strings. Formatters
should return an array of HTML strings or Node instances. |
3ec268f1ded84e8b4619357aded94c351fc2d312 |
|
11-Nov-2010 |
Ryan Grove <ryan@wonko.com> |
Add support for {maxResults} placeholders in JSONP and YQL sources. |
a59f39aeea42d772dc19906097440f24c3109ede |
|
19-Oct-2010 |
Ryan Grove <ryan@wonko.com> |
Attempt to load the jsonp or yql modules on demand when necessary.
Also added a fun Twitter Search JSONP source to the manual test.
Props to ericf and foxxtrot for the insightful GitHub comments which led
to this awesomeness. |
ca0bbc4c973111f0af0e380d56e450bce47ece38 |
|
19-Oct-2010 |
Ryan Grove <ryan@wonko.com> |
The resultFilters and resultHighlighter attributes may be specified as strings. [Closes #2529424]
When a string is given as the value of the resultFilters or
resultHighlighter attributes, it is assumed to be the name of a method
on Y.AutoCompleteFilters or Y.AutoCompleteHighlighters respectively. The
resultFilters attribute may also be set to an array of strings. |
015f8ae22621bccbcceb99112313cfd432428a43 |
|
07-Oct-2010 |
Ryan Grove <ryan@wonko.com> |
ARIA improvements. |
9fbfadc8cecb19e710a4d90e12555337a93af483 |
|
06-Oct-2010 |
Ryan Grove <ryan@wonko.com> |
Fix test brokenness when switching sources. |
5858730040723687625964d9f528168896114f23 |
|
05-Oct-2010 |
Ryan Grove <ryan@wonko.com> |
Fix test brokenness when switching sources. |
8a473112ab5d8c74fb79ef0553ba5f038fe3bde3 |
|
29-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
AutoComplete source may now be set to a YQL query string.
When the source is a string, AutoComplete will detect whether it's a YQL
query or a URL. If it's a URL, it'll be loaded via the jsonp module. If
it's a YQL query, the query will be executed via the yql module.
That means the following implementation code is all that's needed to
instantiate a working AutoCompleteList widget that displays search
suggestions as you type:
var ac = new Y.AutoComplete({
inputNode: '#foo',
source: 'select * from search.suggest where query="{query}"'
}).render();
The necessary module (either jsonp or yql) must already be loaded;
AutoComplete doesn't pull them in by default in order to avoid
increasing its dependency payload unnecessarily. |
b1ec001afbb5c5d84675023047109f2a42748bd0 |
|
28-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Make AutoComplete a bajillion times easier to use.
The "dataSource" attribute has been renamed to "source", and can now be
an Array, DataSource, Object, or String.
Set it to an array, and that array is your local autocomplete source.
Use an Object, and queries are looked up in the object's properties. Use
a URL string, and AutoComplete will make a JSONP request to that URL.
And of course, you can still use a DataSource too (but now you don't
have to). |
b0d929506d6c53f0974626df3e191148bb67a651 |
|
21-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Add a query delimiter field for easier testing of delimited completion. |
7ec080eef8a1926cc631fb1aea4a3f3e108ceb99 |
|
16-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Reset form on load. |
c7898fc68c0944de3b9a9081bfa0a3b66bfc518c |
|
15-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Better cooperation between formatters and highlighters, and more API docs. |
f5738feb0b3d461c1398fc1cd8fc01b0de21d592 |
|
15-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Move autocomplete-list back under the autocomplete module. Make Y.AutoComplete an alias for Y.AutoCompleteList. |
fbcbefcb7a18248878708ffbc4beaa2e84cebe29 |
|
14-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Remove complexity. Add simplicity. |
612709c460065386eedb42e97f96e2b5eacd5d17 |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Split autocomplete-list into its own src dir and give it a simple skin. |
66c10d5c5e32825a7ea2a236a2245890906be69f |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Improve Flickr formatter. |
be88250ca854b49860633d7f4185e4aa485f61a5 |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
More work in progress on autocomplete-list. |
6d408e55d70c428d9bec98954a332ac92adad6ce |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
More AutoComplete namespace and dependency refactoring.
- Y.AutoComplete is now an instantiable widgetless implementation of
Y.AutoCompleteBase.
- Y.AutoCompleteList is the barebones list completion widget in
progress.
- The filter and highlighter modules now stand alone and don't depend
on any other part of AutoComplete. |
059ecaff4e7294d64dcd37debb3005ccf6b2b20a |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Barely working skeleton of an AutoComplete widget. |
c878779d09e717508716acb5f3b25a6176fa2672 |
|
13-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
AutoComplete work in progress. |
d828c52129c44196483f651586f15efd8acb5f93 |
|
11-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Reorganize the AutoComplete class hierarchy to make way for widgets.
Class name changes are as follows:
- AutoComplete => AutoCompleteBase
- AutoComplete.Filters => AutoCompleteFilters
- AutoComplete.Highlighters => AutoCompleteHighlighters |
99ae4cf94b18f24d35db8c5ffed25fdf304accf4 |
|
09-Sep-2010 |
Ryan Grove <ryan@wonko.com> |
Promote autocomplete out of the sandbox. |