Commit Graph
116 Commits
Author SHA1 Message Date
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
Vladimir Enchev b0ff7a46bb Merge pull request #974 from NativeScript/switch-css
Switch color and background-color css support added
2015-10-22 13:14:18 +03:00
Nedyalko Nikolov aef7256e69 Enabled bindings to events and gestures for Bindable instead of View. 2015-10-21 16:43:09 +03:00
Vladimir Enchev 129c305942 _boundsChanged method added 2015-10-21 13:20:48 +03:00
vakrilov c9744b7474 Don't apply default values on syncNative 2015-10-21 10:48:21 +03:00
Nedyalko Nikolov 2f7cf84839 Fixed issue 597. 2015-10-20 15:42:18 +03:00
Hristo Deshev 76fa713c85 Break a circular import view-application-view.
By late-importing application in bindable and stylers-common.
2015-10-16 13:53:35 +03:00
Vladimir Enchev 619c2fe665 global.android replaced with platform.device.os === platform.platformNames.android 2015-10-16 09:20:46 +03:00
Vladimir Enchev 44e4296d80 Merge pull request #931 from NativeScript/vertical-alignment-middle
vertical-alignment middle support added
2015-10-15 10:31:16 +03:00
Vladimir Enchev 19b03bbbb9 vertical-alignment middle support added 2015-10-14 09:42:29 +03:00
vakrilov 68bc24a5a5 Action bar title color stylers 2015-10-13 16:10:03 +03:00
Nedyalko Nikolov d6e0a2b598 Fixed index property accessors are treated as expressions. 2015-10-12 14:49:36 +03:00
hshristov 171e545213 isLoaded is set before calling applyStyleFromScope 2015-10-07 11:13:29 +03:00
hshristov 0ecb5d4dcd Implement Page background option to span under status bar (iOS only for the moment) 2015-10-06 14:35:59 +03:00
Nedyalko Nikolov e7156b53bd Fixed issue #814. 2015-10-01 16:13:51 +03:00
Nedyalko Nikolov e27bb4c453 Merge pull request #854 from NativeScript/nnikolov/BindingContextSetBeforeAddingToVisualTree
BindingContext will be set before adding items to visual tree (ListView, Repeater).
2015-09-30 13:36:25 +03:00
Vladimir Enchev 113a1b6a69 placeholder creatingView event fixed + tests 2015-09-30 11:26:42 +03:00
Nedyalko Nikolov 0b6ca23e25 BindingContext will be set before adding items to visual tree (ListView, Repeater). 2015-09-30 11:18:46 +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
Panayot Cankov 11f01e26c1 Set bound along the frame property for iOS layouts. Setting bounds will reapply the transform. 2015-09-28 12:24:18 +03:00
Rossen Hristov beef7f9372 Fixed: If an Animation instance is played more than once, the same promise is resolved each time leading to unexpected results. #774 2015-09-21 13:27:10 +03:00
Vladimir Enchev 36036c55b1 support of [on]event/gesture added + tests 2015-09-18 16:55:39 +03:00
Vladimir Enchev d39913b6e6 className property added cssClass deprecated 2015-09-18 13:31:08 +03:00
Vladimir Enchev 744de9670e Class atribute registered and used instead cssClass 2015-09-18 09:47:55 +03:00
Vladimir Enchev 81c066e5e3 Support for binding expressions in event bindings 2015-09-12 11:02:32 +03:00
vakrilov 254e4a55a1 AppCompat toolbar 2015-09-04 13:48:43 +03:00
Rossen Hristov e18e7777a1 Added View.translateX, View.translateY, View.scaleX, View.scaleY, View.rotate properties. 2015-09-03 11:46:12 +03:00
Vladimir Enchev bc4ebd569c Fixed multiple gestures for Android 2015-09-01 15:44:38 +03:00
Vladimir Enchev 221fb34102 Merge pull request #646 from NativeScript/gestures-with-on-off
gestures now can be added with on() and removed with off()
2015-09-01 09:37:32 +03:00
Vladimir Enchev 17cdbbaf46 gestures now can be added with on() and removed with off() 2015-08-31 16:44:35 +03:00
Nedyalko Nikolov fc3c52691e Fixed issue with binding when there is no sourceProperty set. 2015-08-31 15:50:12 +03:00
hshristov 3a0cc32ff2 Fix for Button padding in android.
Fix for types - isString and isNumber.
Modified several tests to pass on VS Emulator for Android.
Fix page background to be applied in onLoaded method.
Enhancements for dependency-observable - it is now possible to add defaultValueGetter function to extract default value for a property. It can also be cached or not.
Remove android_constants because they are per theme and we cannot use them safely.
Fix for SearchBar reseColorProperty method.
2015-08-28 16:59:52 +03:00
Vladimir Enchev 8112a6f0d9 Merge pull request #632 from NativeScript/view-setStyle
setInlineStyle implementation + test
2015-08-28 13:50:16 +03:00
Rossen Hristov 881c378a4e Made TabViewItem bindable. 2015-08-28 12:55:28 +03:00
Vladimir Enchev 0aec988251 setStyle renamed to setInlineStyle 2015-08-28 11:18:25 +03:00
Vladimir Enchev 035e381673 throw error if not string 2015-08-28 11:16:26 +03:00
Vladimir Enchev 3fb4b59b87 setStyle implementation + test 2015-08-28 10:46:35 +03:00
Nedyalko Nikolov a57d52a304 Added support for binding to multiple observable objects (properties). 2015-08-25 16:18:07 +03:00
hshristov 6a6f7fcf92 Fix ListView module to check for layoutBase instead of Layout
Remove some unnecessary traces
2015-08-11 15:28:39 +03:00
Hristo Deshev a526e6cec8 Making tslint happy. 2015-08-07 18:26:29 +03:00
Hristo Deshev c5608d7c5c Brought back the viewModule.getAncestor function.
Extended it, so you can pass actual type instances instead of strings.
2015-08-07 18:26:29 +03:00
Hristo Deshev 141668bb05 Fix applying app CSS to template children when using custom pages.
No longer using getAncestor(view, "Page") to look for a pagey parent.
Replaced that with a View.page property. Removed getAncestor as its type
name-based implementation seems unreliable.
2015-08-07 18:26:21 +03:00
Rossen Hristov abc9faccfa Added Padding+Border support for Label, Button, TextField and TextView for both platforms. Only iOS TextView does not support them. 2015-08-06 14:58:53 +03:00
hshristov e58506563a Fix WrapLayout
Fix ScrollView
Fix Stylers.android
Remove some method from View class
Fix layout-helper test views
Fix all android failing tests
Remove onLayout on Button and TextBase
2015-08-03 13:49:11 +03:00
hshristov bd50fb5550 Fixed several unit-tests 2015-08-03 13:49:08 +03:00
hshristov 0ad198165c Layouts are now implemented natively for Android. 2015-08-03 13:48:41 +03:00
Rossen Hristov b1e55f1066 Animations 1.0 2015-07-29 15:24:43 +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
Vladimir Enchev b64d647033 Merge pull request #434 from NativeScript/nnikolov/ListViewBindingContextIssue
BindingContext set two times on adding item to ListView. Fixed issue #410.
2015-07-16 09:42:05 +03:00
vakrilov 53c7bebfec Center View 2015-07-15 09:35:53 +03:00