Commit Graph

1043 Commits

Author SHA1 Message Date
Panayot Cankov
bbffa5480e Used the wrong flag to check if snapshot was enabled (#4446) 2017-06-23 17:30:41 +03:00
SvetoslavTsenov
4389ca29bb Update package.json (#4407)
* Update package.json

* Update package.json
2017-06-20 09:50:04 +03:00
SvetoslavTsenov
d1da6253c6 Bump version to 3.2.0 (#4406) 2017-06-19 16:22:43 +03:00
Peter Kanev
1713b8af91 add nativeView angular-specific property to dom node property filter (#4390) 2017-06-19 13:44:59 +03:00
Andrea Giammarchi
7e39bfb9d4 Standard timers - fix for #4384 (#4389)
Specifications define timers capable of accepting optional parameters.
https://www.w3.org/TR/2011/WD-html5-20110525/timers.html#timers

This PR goal is to standardize such behavior in NativeScript too.
2017-06-15 23:19:49 +03:00
Panayot Cankov
b94a61f9a5 Globals in snapshot are overriden by the V8 on start, so they have to be installed later (#4387) 2017-06-15 10:36:50 +03:00
Alexander Vakrilov
1d20845b7c Use AppCompat SearchView (#4371)
* Use AppCompat SearchView

* GetNative elements for appcompat

* Classes renamed

* test modified
2017-06-14 14:11:04 +03:00
Stanimira Vlaeva
4319ca5fc5 refactor(animations): export declarations parser (#4370) 2017-06-14 11:52:22 +03:00
Alexander Vakrilov
114b969986 FIX: ListView items' dom-nodes are disposed before remove (#4369)
* FIX: ListView items' dom nodes are disposed before remove

* Extend property black list

* More attribute changed checks
2017-06-13 16:37:23 +03:00
Vasil Chimev
c62e79e17b fix: add css-agent declarations (#4361)
* fix: add css-agent declarations

* fix: remove css-agent ts
2017-06-13 09:38:15 +03:00
Stanimira Vlaeva
08af2efe0c fix: add dom-node declarations (#4359) 2017-06-12 19:57:25 +03:00
Alexander Vakrilov
f2462158fb Chrome devtools elements tab support for Android (#4351)
* Enable chrome-devtools elemets tab

* Trigger updates when property is chaned form native

* Tslint fixes

* Don't run dom-elemet tests in IOS

* fix tests

* Create package.json

* Update package.json

* domNode changed to field for performance
2017-06-12 16:48:27 +03:00
Stanimira Vlaeva
b7c61cad96 fix(css-animations): convert transform value properly (#4352) 2017-06-09 20:54:46 +03:00
Stanimira Vlaeva
618433816e fix(slider): correct maxValue setter for android (#4346)
The setter should invoke setNativeValuesSilently with the new value and
max value respectively.

fixes #4343
2017-06-09 18:20:25 +03:00
Stanimira Vlaeva
9bba250424 Refactor transform animations (#4296)
* feat: add matrix module

* fix(animations): parse transform property correctly

* fix(css-animations): compute transformation value with matrix

* refactor: add typings for keyframes array in style scope

* fix(animations): transform regex and method invocation

* fix(matrix): rewrite decomposition function

* refactor: transform animations parse

* test: add tests for css animation transform

* refactor: move transformConverter to style-properties

* lint: remove unnecessary comma

* lint: remove unnecessary word in d.ts

* fix(style-properties): correctly use transformConverter

* fix(matrix): flat multiply affine 2d matrices

cc @PanayotCankov
2017-06-09 18:20:07 +03:00
Ivan Buhov
67a8144a34 Specify files where native Java classes are extended on script loading (#4333) 2017-06-08 14:58:19 +03:00
Alexander Vakrilov
e33eca63d6 Implement custom measure for ios btn when textWrap is true (#4326)
Implement custom measure for ios btn when textWrap is true
2017-06-08 10:29:50 +03:00
Panayot Cankov
014e7a8e0f add profile for functions, profile CSS-es on startup, use __time (#4227)
Call native setters once when a page is instantiated.

Fix background not being reset, Label's background is now set to background, not layer

Make the nativeView field instead of property for performance reasons
2017-06-08 09:51:09 +03:00
Panayot Cankov
853bbd2977 Can't require non console-log when __snapshot generating (#4325) 2017-06-06 18:12:53 +03:00
Panayot Cankov
51b351f5b6 Add timeline traces in the console, let enabling them through the package.json 2017-06-02 16:34:15 +03:00
Alexander Vakrilov
63633533bc Merge pull request #4190 from NativeScript/EddyVerbruggen-eddyverbruggen/issue-3614-text-maxlength-property
Implemented feature request: TextField `maxLength` property support.
2017-06-01 13:31:54 +03:00
Alexander Vakrilov
9f47746d98 Merge pull request #4292 from NativeScript/fix-ios-text-view-hint
Fix: IOS text view hint should never show while editing
2017-06-01 13:31:28 +03:00
vakrilov
4509f04929 UI test added 2017-06-01 12:23:26 +03:00
vakrilov
8b3ccdec21 Return hintProperty registration 2017-06-01 12:19:21 +03:00
eddyverbruggen@gmail.com
eda57d2c35 #3614 Feature request: TextField maxLength property support.
- Implemented @PanayotCankov's Android 'view recycle' remark.
2017-06-01 11:57:24 +03:00
eddyverbruggen@gmail.com
da6562b506 #3614 Feature request: TextField maxLength property support.
- Implemented @PanayotCankov's review remarks.
2017-06-01 11:57:24 +03:00
eddyverbruggen@gmail.com
0997d537d0 Feature request #3614: TextField maxLength property support. 2017-06-01 11:57:24 +03:00
SvetoslavTsenov
51ccdb0820 Revert button text alignment 2017-05-31 17:21:17 +03:00
vakrilov
abe25d1286 FIX: Never show text-view hint while editing. 2017-05-30 17:15:53 +03:00
vakrilov
3fe2815ded Support http.getFile for URLs with query params 2017-05-30 14:55:15 +03:00
Todd Anglin
9551418b15 Fixing Button text alignment behavior
This change switches iOS Button text alignment from using the generic `nativeView.contentHorizontalAlignment` to using the Button's `nativeView.titleLabel.textAlignment`. This change allows text in a Button to properly center align when wrapped on to multiple lines. Left and Right alignment behavior are unchanged, but using new syntax for consistency.
2017-05-30 13:31:39 +03:00
Stanimira Vlaeva
26e2748f24 fix(animations): remove default getters for tranform properties (#4286) 2017-05-29 17:39:32 +03:00
Panayot Cankov
c519a4bb6f add profile for functions, profile CSS-es on startup, use __time 2017-05-25 14:40:13 +03:00
Alexander Vakrilov
35f0f73331 Merge pull request #4239 from NativeScript/getDefault-for-animatiable-props
Support getDefault for CssAnimationProperty
2017-05-25 10:42:01 +03:00
PetyaSotirova
6a87a85714 Fix web-view typedoc 2017-05-23 16:16:57 +03:00
vakrilov
e7d9fe5b24 Support getDefault for CssAnimationProperty 2017-05-19 18:46:26 +03:00
Alexander Vakrilov
6ba2a1e058 Merge pull request #4207 from NativeScript/profiling-2
Add resetProfiles method to profiling module
2017-05-19 11:27:21 +03:00
Panayot Cankov
f6993b706a Merge pull request #4167 from NativeScript/perf-flexbox-example
Improvements after profiling the android flexbox example
2017-05-19 08:57:58 +03:00
Panayot Cankov
694dd17c97 Merge pull request #4216 from NativeScript/fix-text-field-docs
Fix text-field typedoc
2017-05-18 18:31:48 +03:00
Panayot Cankov
7986e479cd Performance improvements after profiling the android flexbox example 2017-05-18 18:00:31 +03:00
Stanimira Vlaeva
90a0da2863 fix(livesync): attach __onLiveSyncCore to global object (#4215)
That method needs to be exposed because it's used in NativeScript Angular (https://github.com/NativeScript/nativescript-angular/blob/master/nativescript-angular/platform-common.ts#L91).
2017-05-18 17:13:24 +03:00
Hristo Hristov
0d21f52c99 Hhristov/ios background image crash fix (#4214)
* uiColorFromImage should return if there is no image.

* added unit-test
2017-05-17 15:40:14 +03:00
Panayot Cankov
09188a1a6c Fix text-field typedoc 2017-05-17 15:18:02 +03:00
Hristo Hristov
cbbee3bbe7 get method on Observable created with fromObject wan’t returning the value that was put from set if that property was not specified in the object passed to fromObject. (#4213)
get method on Observable created with fromObject wasn’t returning the …
2017-05-17 13:30:46 +03:00
Hristo Hristov
585e74e752 switch in iOS cannot have different size than 51/31. Setting it in onMeasure is late. (#4212) 2017-05-17 13:29:59 +03:00
Hristo Hristov
b67213120e Change onReturnPress from abstract to non abstract so that TextView doesn’t throw exception when Return is pressed (#4208)
Fix https://github.com/NativeScript/NativeScript/issues/4123
2017-05-17 09:47:05 +03:00
Panayot Cankov
d9d1f81144 Merge pull request #4202 from NativeScript/app-displayed-event
App "displayed" event
2017-05-17 09:31:08 +03:00
vakrilov
f23c6c6455 Add resetProfiles method 2017-05-16 17:49:27 +03:00
kssfilo
a61943fe88 fix ios modal layout issue #4151 2017-05-16 16:37:10 +03:00
Panayot Cankov
610794f709 Add 'displayed' event on application for iOS 2017-05-16 16:10:50 +03:00