39 Commits

Author SHA1 Message Date
08f9c941cc Fix: CSS border-color does not recognize rgb and rgba values
Resolves #2781
2016-09-21 16:35:03 +03:00
52fb85acd3 Prevent padding from accumulating
Related to #2719
2016-09-19 10:48:48 +03:00
84c469d61b Merge pull request #2745 from NativeScript/cankov-fix-specificity
Remove redundant specificity and rarity getter
2016-09-17 16:39:45 +03:00
e3e0faebdd Remove the rarity getter too 2016-09-17 15:00:26 +03:00
4a650f9b94 Remove redundant specificity getter 2016-09-17 14:54:24 +03:00
a05f842a84 Non-uniform borders 2016-09-17 09:27:36 +03:00
1b568b56ca Added tintColor property in Image view. It should be used instead of color 2016-09-16 16:29:08 +03:00
51bfa93879 Padding is not reset if the elements has a border-related property set 2016-09-14 17:17:20 +03:00
e895f37f0b Apply getter check to determine if API is exposed as property or as method for iOS backward compatibility 2016-09-12 14:38:54 +03:00
e9ceb79b2e Add placeholder-color style property. 2016-08-30 14:00:35 +03:00
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
fc0048c4a1 dependency-observable changes (#2584)
* Improved es6.d.ts
Small perf improvement in resetValues

* Fix tslint errors

* Removed all comments from es6.d.ts (TSLint hell)
2016-08-15 15:14:03 +03:00
c8cce0ebcb Fixed paddings (#2552)
* Fixed paddings

* Fix tslint
2016-08-07 22:29:00 +03:00
7e5c29a163 Fix package.json "main" settings and remove .js references. 2016-08-04 16:24:29 +03:00
d73acb5497 Letter spacing in EM units
Resolves #2528
2016-07-29 14:16:05 +03:00
15d891cc08 Refactor application of text decoration, text transform, letter spacing and formatted text.
Related to #2427
2016-07-28 10:33:33 +03:00
2a94532865 Fix iOS font registration when bundling scripts.
Use fs.knownFolders to get the app dir
2016-07-26 16:49:50 +03:00
fc39fad959 Fix: CSS background-image on Label not loading in iOS
Resolves #2414
2016-07-21 09:45:50 +03:00
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
1b00fe9a18 Unregister animations only once - on reset css 2016-07-15 11:42:04 +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
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
7d3fb56def Move border properties to Background to avoid unnecessary refreshes. 2016-06-27 09:41:53 +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
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
6275c71c85 Merge pull request #2266 from NativeScript/raikov/fix-animationsync
Fixed animation value sync issues
2016-06-17 17:53:51 +03:00
9ac40a5acb Fixed sorting issue with Css Selectors with same specificity. 2016-06-17 13:34:15 +03:00
d810a779fe Fixed animation value sync issues 2016-06-14 11:31:04 +03:00
743a2efb4a Optimized DependencyObject setValue performance (#2260)
* Cached all properties from metadata as fields on Property
ResetValue does not remove entry but only reset value for the given ValueSource (Local by default)
Optimized setValueInternal performance

* Removed TS dependency

* Fix tslint
2016-06-07 15:30:09 +03:00
0407aaf5d2 Remove a forgotten console.log 2016-05-31 16:49:07 +03:00
0a8d211665 Enable hardware acceleration for views animations in Android
Resolves #2217
2016-05-31 16:46:19 +03:00
fd9a0c98e6 Merge pull request #2211 from NativeScript/layer-type
Fixed:  Android layerType should not be changed if there is no need
2016-05-31 09:14:04 +03:00
e2f1e272b4 Fixed: Android layerType should not be changed if there is no need
Resolves #1899
2016-05-30 16:53:09 +03:00
58b4a6eec6 Add 'npm test' for mac 2016-05-30 16:10:57 +03:00
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00