107 Commits

Author SHA1 Message Date
c1aeeb51a7 Inital by-type split
Split type.class from CssTypeSelector to CssCompositeSelector, probably support type#id.class selectors

Apply review comments, refactor css-selectors internally

Applied refactoring, all tests pass, button does not notify changes

Add tests for the css selectors parser.

Added tests for css-selectors

Added basic implementation of mayMatch and changeMap for css match state

Implemented TKUnit.assertDeepEqual to check key and key/values in Map and Set

Watch for property and pseudoClass changes

Add one child group test

Add typings for animations

Added mechanism to enable/disable listeners for pseudo classes

Count listeners instead of checking handlers, reverse subscription and unsubscription
2016-07-18 17:24:09 +03:00
0477c81dd5 Merge pull request #2458 from NativeScript/animations-fix
Unregister animations only once - on reset css
2016-07-18 12:29:42 +03:00
1d6310353d fix: ActionBar's title not updating in OnLoaded event 2016-07-15 16:54:28 +03:00
1b00fe9a18 Unregister animations only once - on reset css 2016-07-15 11:42:04 +03:00
c3ce128e65 Merge pull request #2435 from toddanglin/patch-1
Update iOS TabView to use Automatic rendering mode
2016-07-13 11:08:24 +03:00
c2867e7a1c Merge pull request #2428 from NativeScript/atanasovg/image-cache-update
Reflects some refactoring in the widgest for Android.
2016-07-11 03:20:28 -07:00
91ba3fa69a Update iOS TabView to use Automatic rendering mode
Change the UIImageRenderingMode for tab icons from "AlwaysOriginal" to "Automatic." This will allow icon images to inherit the `selectedColor` specified for the tabview (eliminating the need to provide two versions of every tab icon).
2016-07-08 21:32:15 -05:00
42b267bccc paddings should be taken from style because they could be undefined from newValue (#2433) 2016-07-08 18:18:56 +03:00
8d40782191 Style perf improvements (#2342)
* Add css-perf app.

* Style properties now check only properties that are set.
Image utils module required on top (instead of in onMeasure) to improve performance.
Remove try/catch block when Style applies native property.

* fix tslint

* Fix broken merge
Update package.json version

* Failed miserably - if the try/catch around applyProperty method is removed - TextField fails big time.
TextField needs some good refactoring as well as calls to _updateTextDecoration & _updateTextTransform
utils - setTextTransform & setTextDecoration should be split, typing support should be added.
2016-07-08 14:39:43 +03:00
422b6a4285 Reflects some refactoring in the widgest for Android. 2016-07-07 15:05:39 +03:00
8b5afa83b7 Fix: Multiple ScrollViews on one page fires scrollEvent simultaneously
Resolves #2362
2016-07-04 13:35:53 +03:00
7db517858b TextWatchListener is removed at onDetach so that no exception is thrown if android raise textChanged but we destroyed our android object in onDestroy of edit-text (#2392) 2016-07-01 13:20:09 +03:00
2cff891ca0 Background borderWidth, borderColor, borderRadius and clipPath are now used on Android only and ignored on iOS
Related to #2318
2016-06-30 16:15:56 +03:00
ad05f55dc0 Fix: background-repeat is not respected
Related to #2318
2016-06-30 11:26:24 +03:00
e61affc0c0 Merge pull request #2384 from NativeScript/issue-2173
Fix: iOS onSuspend + showModal() returning "Error: This value is not …
2016-06-30 09:32:24 +03:00
8dc732cfbe Fix: iOS onSuspend + showModal() returning "Error: This value is not a native object"
Resolves #2173
2016-06-29 17:18:19 +03:00
bc1224e351 android LayoutParams are not overridden (#2383)
* LayoutParams are no longer overriden with CommonLayoutParams

* Small code refactoring to get intellisense
2016-06-29 17:13:37 +03:00
ffb82e250a Use global require to avoid custom webpack resolve 2016-06-28 11:43:42 +03:00
72714d738c Fix tslint errors and add a couple of traces 2016-06-28 10:47:42 +03:00
b0aee9d7a9 Fix: The navigation bar duplicates when going to TabView's "More" tab
Resolves #2121
2016-06-27 16:23:54 +03:00
cfe1cb5b15 Merge pull request #2363 from NativeScript/take-2
Background performance optimizations
2016-06-27 09:52:29 +03:00
7d3fb56def Move border properties to Background to avoid unnecessary refreshes. 2016-06-27 09:41:53 +03:00
ce6bf2dc58 Activity intent extras are set on application run which breaks Frame class logic. They were never set on lower API levels (#2367) 2016-06-24 17:56:29 +03:00
550c16ee66 Fix component-builder tslint error 2016-06-24 17:41:19 +03:00
21fa1f6b41 Prefer registered modules in builder and component-builder.
Avoid breakage in bundled scenarios.
2016-06-24 16:33:09 +03:00
05a3f3c846 Remove optimisation 2016-06-24 16:23:01 +03:00
53a699b50b Background performance optimizations 2016-06-24 14:49:11 +03:00
b018ac20f0 Fixed: Animations look wrong when applying 0 scale 2016-06-22 13:07:15 +03:00
165a948150 Image won't require in onMeasure; global loadModule cache 2016-06-21 15:02:15 +03:00
fe450f0280 Merge pull request #2304 from NativeScript/atanasovg/update-http
Rename com.tns.Async.xxx to org.nativescript.widgets.Async.xxx
2016-06-21 11:37:32 +03:00
c94693da44 Merge pull request #2339 from NativeScript/border-drawable
Implement the BorderDrawable class used in background.android.ts in Java
2016-06-21 09:21:42 +03:00
8554bb199e Fixed: Action bar doesn't handle events properly when a custom button is added in Angular 2016-06-20 15:53:04 +03:00
345b2a8163 Fix tslint errors 2016-06-20 12:18:36 +03:00
36fd83365c Fix tslint errors 2016-06-20 12:13:39 +03:00
559a7c816e Implement the BorderDrawable class used in background.android.ts in Java
Resolves #2318
2016-06-20 11:30:52 +03:00
81288df17f Merge pull request #2312 from NativeScript/raikov/fix-2161b
Fixed: TranslateX and Animate in iOS strange behaviour on 2.0
2016-06-20 09:58:17 +03:00
f3c7aa5a76 Fixed action bar tests 2016-06-17 18:50:18 +03:00
1742e9ab53 Fixed: TranslateX and Animate in iOS strange behaviour on 2.0 2016-06-17 18:23:28 +03:00
d0ca57c099 Merge pull request #2315 from NativeScript/raikov/fix-2209
Fixed: CSS-Animation w/ iteration-count:infinite is never reset causing out of memory
2016-06-17 18:07:24 +03:00
d4a66c384d Merge pull request #2308 from NativeScript/raikov/fix-2177
Fixed: iOS CSS Animation rotate() do not reset the value after 360 degrees rotation
2016-06-17 17:54:45 +03:00
6275c71c85 Merge pull request #2266 from NativeScript/raikov/fix-animationsync
Fixed animation value sync issues
2016-06-17 17:53:51 +03:00
e2999ee934 Merge pull request #2323 from NativeScript/raikov/fix-2256
Fixed: Custom ActionItem gets displaced in IOS
2016-06-17 17:51:54 +03:00
9ac40a5acb Fixed sorting issue with Css Selectors with same specificity. 2016-06-17 13:34:15 +03:00
58be9796b6 Merge pull request #2324 from NativeScript/nnikolov/CssCascadeSelectorsIssue
Fixed issue #1655 cascading css selectors.
2016-06-17 13:27:32 +03:00
1a88cf0e8c Fix frame.d.ts to not expose public android types. 2016-06-16 13:08:32 +03:00
7fbfc92155 Fixed issue #1655 cascading css selectors. 2016-06-16 09:43:19 +03:00
a95d8c5c32 Fix android activity being destroyed then recreated. (#2321) 2016-06-16 09:30:35 +03:00
6f241ff473 Fixed: Custom ActionItem gets displaced in IOS 2016-06-15 18:25:32 +03:00
dedce943f2 Fix the startActivity method. 2016-06-15 14:43:38 +03:00
921d7180ca Merge pull request #2313 from NativeScript/text-field-hint-color
Fixed: SearchBar.textFieldHintColor not respected on iOS
2016-06-15 11:08:59 +03:00