Commit Graph

22 Commits

Author SHA1 Message Date
Gheric Speiginer
66f0dd0697 Fix clearEvent after programmatically setting text
searchBarTextDidChange only fires when the user changes the text. 
In the following scenario, clearEvent was not being fired:
1. User clears the text (clearEvent is fired)
2. Text is programmatically set to a non-empty string
3. User clears the text again (clearEvent is not fired)

This PR allows the clearEvent to fire at step 3. 

I would also suggest that a separate event be used when the cancel button is clicked (cancelEvent), as cancel button being clicked does not imply that the text is or should be cleared.
2016-02-11 09:39:34 -05:00
atanasovg
56f1aaa795 Do not use lazy requires where not needed. 2016-01-25 16:33:18 +02:00
Vladimir Enchev
d50e2fdb37 stylers removed 2015-12-22 16:12:18 +02:00
Vladimir Enchev
074ac89871 imports improved 2015-12-17 14:53:46 +02:00
Hristo Deshev
070b01c544 Remove UTF-8 BOM's from package.json files 2015-12-01 15:37:14 +02:00
Vladimir Enchev
3b65d29483 search-bar color not applied correctly 2015-11-02 15:00:20 +02:00
Hristo Deshev
70041bd999 Don't expose platform types in public d.ts files.
Use any. Add a comment with the real type.
2015-10-30 17:17:29 +02:00
hshristov
f72d79e65a iOS owner pattern changed to use WeakRef in order to prevent memory leaks.
Optimized list-view-tests.
Added time per test.
2015-10-22 10:26:59 +03:00
Vladimir Enchev
343265c571 dismissSoftInput implemented 2015-10-19 14:55:06 +03:00
Hristo Deshev
77838ae9c6 Change from "classic" TS 1.6 imports to the default resolution scheme.
- Use relative imports in place of most of our absolute ones.
- Add "private" ambient modules for modules that we need to import using
an absolute path (e.g. when app/.../test-something.ts needs to import
ui/styling/style-scope)
2015-09-29 16:25:49 +03:00
Hristo Deshev
173cde895e Pull the Owned android helper interface to utils/utils.
In a @private block.
2015-09-18 11:29:12 +03:00
Hristo Deshev
9fbcf5f143 Fix typescript 1.6 compile errors.
- Remove unknown properties in object literals.
- Don't use module-level `delete` statements.
2015-09-18 11:20:17 +03:00
Vladimir Enchev
6a42e6019c valueForKey("_searchField") replaced 2015-08-13 11:40:30 +03:00
atanasovg
1439313e7b Make moduleMerge a global function - this saves a total of 83 requires upon application loading. 2015-07-27 13:04:48 +03:00
Nathanael Anderson
b259cde7fd Adding Search Hint text color; since this is not accessible from the standard style/theming xml files.
Added Tests so that it will verify the search bar color is changing.
2015-05-27 11:50:56 -05:00
Nedyalko Nikolov
95ca8d9c8c Replace knownEvents modules with static strings. 2015-04-24 09:29:00 +03:00
Rossen Hristov
38bc482359 Moved delegate handling to onLoaded / onUnloaded methods and reworked the WebView tests. 2015-04-03 13:32:39 +03:00
Vladimir Enchev
abcf4f3a0a hint property implemented 2015-03-17 14:08:00 +02:00
Vladimir Enchev
4fcaabcfec search-bar for android is opened by default 2015-03-10 09:46:11 +02:00
Vladimir Enchev
b5269348b1 styling for android search bar fixed 2015-03-10 09:40:36 +02:00
Vladimir Enchev
0d8f7ec0c2 initial SearchBar styling added 2015-03-09 15:50:57 +02:00
Erjan Gavalji
cc829e0152 definitions fixed 2015-03-03 10:34:40 +02:00