38 Commits

Author SHA1 Message Date
ddd074b333 FIX: Don't apply css on unloaded 2016-10-31 09:45:57 +02:00
a63f46ee83 Added pressed, active and disabled states for button. 2016-10-24 09:16:23 +03:00
75cab33f8f Percent support of margin of layouts/frame/page/contentview 2016-10-20 11:29:21 +03:00
791aab04e5 Flexbox ios initial commit
Items now appear, but they should initially shrink and they don't

Add 15-ish tests for flexbox layout

Port reasonable flexbox test set

Fixing issues, adding unit tests

Moved from .tsx to .ts and used our ui/builder.parse
2016-10-19 17:02:26 +03:00
4b94fe8c63 Merge pull request #2909 from NativeScript/its
ListView item template selector
2016-10-19 10:32:34 +03:00
44bab5b0f0 Padding was reset incorrectly (#2917)
* Padding was reset incorrectly

* Fix tslint
2016-10-18 13:18:32 +03:00
cd6039ce6c ListView item template selector 2016-10-17 09:32:47 +03:00
b5ab387ebd Fix the LayoutParams 2016-09-30 17:36:17 +03:00
299203901e Move platform .d.ts-es to separate plugin folder
Add dev-setup to figure out links

Update development workflow

Update package.json and dts-ios

Update the iOS declarations

grunt is now fine
2016-09-26 11:53:39 +03:00
936df853ff number now can be set as id in android 2016-09-20 12:04:00 +03:00
2d7bbd74dc Revert "Add temporary console trace to catch a crash on build machine"
This reverts commit dac4ee7bfc1e70a59f5ce7c3be1645dbd2e18641.
2016-09-17 14:42:29 +03:00
dac4ee7bfc Add temporary console trace to catch a crash on build machine 2016-09-17 13:34:01 +03:00
a05f842a84 Non-uniform borders 2016-09-17 09:27:36 +03:00
86055354b8 Feature: automationText wasn't read aloud on iOS.
View.automationText on iOS now sets both accessibilityIdentifier and accessibilityLabel
2016-09-01 16:17:46 +02: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
bb6a7107c9 Fixed issue when bind to bindingContext. 2016-08-15 17:08:42 +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
8da85629fe z-index handler added only for API 21+ 2016-08-03 18:10:45 +03:00
17d0172ace Element that is not an instance of a View should not be added to its parent. 2016-08-01 16:21:26 +03:00
2656f18926 Merge pull request #2474 from NativeScript/nnikolov/TextPropertyMustBeString
Mark text property as special and set it with a string comming from b…
2016-07-20 09:53:59 +03:00
a481fa9808 Mark text property as special and set it with a string comming from builder. 2016-07-19 14:37:44 +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
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
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
7d3fb56def Move border properties to Background to avoid unnecessary refreshes. 2016-06-27 09:41:53 +03:00
b018ac20f0 Fixed: Animations look wrong when applying 0 scale 2016-06-22 13:07:15 +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
6275c71c85 Merge pull request #2266 from NativeScript/raikov/fix-animationsync
Fixed animation value sync issues
2016-06-17 17:53:51 +03:00
7fbfc92155 Fixed issue #1655 cascading css selectors. 2016-06-16 09:43:19 +03:00
a53523cbc3 Fixed: CSS-Animation w/ iteration-count:infinite is never reset causing OutOfMemory error 2016-06-15 10:32:37 +03:00
d810a779fe Fixed animation value sync issues 2016-06-14 11:31:04 +03:00
adc8f01cfe Fixed binding converter calls. 2016-06-13 15:20:09 +03:00
22608011f2 Avoid excessive requestLayout calls (#2270)
Added View.isLayoutRequired - to check if Layout call is needed after a measure call. Use in list-view.
Measure pass now get all its properties from nativeLayoutParams property instead of using instance dependency properties (e.g. perf improvement).
List-view now layouts cells only if there is need to.
List-view now measure rows with the specified rowHeight.
2016-06-08 15:41:30 +03:00
ec85cf3860 Undefined can be set as localValue to dependency observable (#2268)
* Undefined can be set as localValue to dependency observable

* Fix build error in tests
2016-06-08 15:41:02 +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
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00