Commit Graph

98 Commits

Author SHA1 Message Date
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
Vladimir Enchev
4e6f4aaf3f borderRadius not working on UILabel 2015-09-23 10:03:08 +03:00
Vladimir Enchev
28d54c3889 Merge pull request #653 from NathanaelA/Branch_CSS_Lowercase
Changed createSelectorsFromSyntaxTree to use a loop rather than filter.
2015-09-11 10:45:33 +03:00
Peter Staev
d0f4f36018 replaced the use of fontDescriptorWithSymbolicTraits due to problems in iOS8+ and some fonts 2015-09-03 14:55:38 +03:00
Nathanael Anderson
cdac829c25 Changed createSelectorsFromSyntaxTree to use a loop rather than filter.
1. Changed code to lowercase the declaration property
2. Minimize the data pushed to each rule
2015-09-01 04:01:47 -05: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
hshristov
c05cd6acb8 Change .android to ._nativeView.
Change two AffectsLayout options to None for android.
2015-08-28 16:59:50 +03:00
Vladimir Enchev
935fefbf11 url('some.css') is now optional 2015-08-24 17:40:13 +03:00
vakrilov
af7f811d9b Image rounded coreners clip 2015-08-18 14:11:32 +03:00
Vladimir Enchev
6a42e6019c valueForKey("_searchField") replaced 2015-08-13 11:40:30 +03:00
Vladimir Enchev
951f565c21 ios code fixed 2015-08-12 16:13:35 +03:00
Vladimir Enchev
2d07eb9dd0 font-size CSS support for search-bar + test 2015-08-12 15:19:04 +03:00
Georgi Atanasov
0468857604 Merge pull request #554 from NativeScript/atanasovg/file-system-api
Atanasovg/file system api
2015-08-10 17:55:10 +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
c470fef0b0 Made two methods private. 2015-08-06 15:42:17 +03:00
Rossen Hristov
216b6a57f7 Fixed AffectsLayout 2015-08-06 15:41:19 +03:00
Rossen Hristov
59d6dbb224 Fixed all merge problems. 2015-08-06 14:58:55 +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
atanasovg
c683ea44e6 Refactor the file-system-access API to be synchronous. Added *Sync equivalents of the file-system APIs. Removed usage of file-system-access within the code. 2015-08-04 16:53:12 +03:00
hshristov
5322dd19b2 Fix Image source property to have None metadata for android - no need for layout invalidation from JS.
ClipToBounds implementation added back.
Optimization in style.ts to set native properties at once.
Fix height of CommonLayoutParameters.
2015-08-03 18:18:42 +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
41168d3782 Layouts are now implemented natively for Android. 2015-08-03 13:49:03 +03:00
hshristov
42e5e9aac0 Fix merge error 2015-08-03 13:48:51 +03:00
hshristov
0da2f297fd Fix tslint errors 2015-08-03 13:48:44 +03:00
hshristov
0ad198165c Layouts are now implemented natively for Android. 2015-08-03 13:48:41 +03:00
Hristo Deshev
38f243de5c Move css and css-value modules to the toplevel.
This is the default location when installing from npm, and Angular uses
that when parsing CSS.

Updated module paths, requires, csproj, tsconfig and grunt tasks.
2015-08-03 12:01:09 +03:00
vakrilov
4a6c841f0e Fix: crashes when applying css 2015-07-28 09:56:27 +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
vakrilov
dc4a8f745f FIX: App.css now applied when there is page css 2015-07-23 17:02:15 +03:00
Hristo Deshev
c6d7717e35 Fix tslint errors 2015-07-16 09:44:41 +03:00
vakrilov
53c7bebfec Center View 2015-07-15 09:35:53 +03:00
vakrilov
460abb7c74 Null check 2015-07-10 11:52:30 +03:00
Vladimir Enchev
d1ec70286d more fixes & tests added 2015-07-08 18:16:28 +03:00
vakrilov
dd4ec9b79f Build fix 2015-07-07 17:56:11 +03:00
vakrilov
bf0f3217c1 BorderView - modified to fallback to genric borders 2015-07-07 15:03:19 +03:00
vakrilov
f3979136a4 Frobit setting inline style from code 2015-07-07 15:02:32 +03:00
Rossen Hristov
abc561762c Fixed wrong event names in application.d.ts + added constants for the Android Activity Events + reordering of members + a small tslint fix. 2015-07-07 12:18:36 +03:00
vakrilov
3cf3d7184e Fixed: bug when caching native backgrounds 2015-07-06 17:29:41 +03:00
vakrilov
6bb875cb8e COde cleanup 2015-07-06 17:29:41 +03:00
vakrilov
ac6801fd1c Fixed failing tests and added page for ui-tests 2015-07-06 17:29:41 +03:00
vakrilov
62553d9d24 Border/background render fixes 2015-07-06 17:29:40 +03:00
vakrilov
2b292eec7c Test page and fixes 2015-07-06 17:29:39 +03:00
vakrilov
6017a208a0 Setting inline style - resets local properties 2015-07-06 17:29:39 +03:00
vakrilov
d74d9b8fbb Css properties progress 2015-07-06 17:29:38 +03:00
vakrilov
de4ede5c8b Backgrounds android 2015-07-06 17:29:38 +03:00
vakrilov
bb0a2caa9e Css backgrounds spike 2015-07-06 17:29:38 +03:00
Vladimir Enchev
a995b84119 logic simplified and test added 2015-06-29 10:55:03 +03:00
Vladimir Enchev
3d93237e00 visibility fixed 2015-06-29 09:34:24 +03:00
vakrilov
7e44bbc0dc Fix: color and font comparers 2015-06-26 16:44:17 +03:00