Commit Graph

197 Commits

Author SHA1 Message Date
Hristo Deshev
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
Hristo Hristov
1d49f5f3c3 fix padding on text-view & text-field (#3758)
* fix padding on text-view & text-field
text-base is now snapshotable
view.android is now snapshotable

* createNativeView returns the nativeView for android
Fix image tests
Implement test for image loaded from res://
EffectivePaddings updated when nativeView have some from its native theme
2017-03-09 16:09:53 +02:00
Panayot Cankov
6d6564af16 Fix dp vs dip conversions in iOS for errors of tests 2017-03-08 09:24:31 +02:00
Panayot Cankov
9f1ebc11ca Add support for 'px' on Length in iOS 2017-03-08 09:01:17 +02:00
Hristo Deshev
b45cbe929b No more ambient modules for tns-core-modules/* subpackages.
- Use path mappings in tsconfig.json to resolve module typings
- Only use ambient mobules for global API's
- Move single-file modules to a subdir with the same name so that
we can provide a hand-written typing next to it (via package.json)
- Delete all mentions of tns-core-modules.d.ts
- Delete reference d.ts assembly build steps. Not needed anymore.
- HACK! Use a <reference> for global typings in application.d.ts
to avoid publishing a separate @types/tns-core-modules package.
- Rename declarations.d.ts to tns-core-modules.d.ts to preserve
JS project mappings in references.d.ts (the only place we use those)
2017-03-07 17:59:02 +02:00
Hristo Hristov
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
Hristo Hristov
33aa48bdfd Add support for snapshot
Fix Layout class getMeasuredWidth & getMeasuredHeight
Move some classes to widgets
Fix API17 tests
2017-03-06 14:05:55 +02:00
Panayot Cankov
3066dbd072 Clipping is required for iOS even with uniform borders, as long as the radius is > 0 2017-02-27 16:07:21 +02:00
Panayot Cankov
06970d058a Mass replace fontAttributes with fontWeight and fontStyle 2017-02-23 17:09:19 +02:00
Panayot Cankov
3b8bc17ab4 Fix the font properties to invalidate the layout in iOS 2017-02-23 11:27:50 +02:00
Panayot Cankov
98aa5cd61d Expose the _getByCssName for the angular animations 2017-02-22 17:21:28 +02:00
vakrilov
8a0d98e815 Inset clip path + Background circ-ref 2017-02-21 18:00:48 +02:00
Hristo Deshev
b9c0d33b3a Fix a crash on Button tap - reexport TouchAction 2017-02-20 16:58:11 +02:00
Hristo Hristov
531b33d02b fix background example (#3663) 2017-02-20 13:48:30 +02:00
Hristo Hristov
a582adc561 Hhristov/fix (#3653)
* Fix action-bar systemIcon
Fix CSS applying

* refactoring

* fix console

* remove StyleScope import - it is private and cannot be imported in public .d.ts
2017-02-17 17:21:57 +02:00
Panayot Cankov
e0f0c96519 Expose some private APIs used in the angular animations 2017-02-09 11:43:12 +02:00
Panayot Cankov
b12f112a44 Fixed tslint errors 2017-02-08 17:14:20 +02:00
Panayot Cankov
23658c9719 CssAnimationProperty will register the same way CssProperty in the symbol maps and will register on the style with css name too 2017-02-08 14:01:11 +02:00
Panayot Cankov
fd6c84a6bb Merge pull request #3596 from NativeScript/cankov/modules30-qsf
Animation properties and some backward compatability with the QSF
2017-02-08 10:54:03 +02:00
Panayot Cankov
5265bf0ae3 Animation properties and some backward compatability with the QSF 2017-02-08 10:52:54 +02:00
vakrilov
6c735aff10 View and css proeprties tests 2017-02-07 16:23:19 +02:00
Hristo Hristov
f539dd5f95 Improve background setter in iOS (#3582)
CoercableProperty now inherits from Property
VS Code typescript sdk removed
ViewBase will no longer clear native view if recycleNativeView is false
2017-02-06 11:49:54 +02:00
vakrilov
e5f7c7e4d4 Segmented bar styles 2017-02-01 17:45:14 +02:00
vakrilov
6b61335675 Fix: Modal crashes in Android and IOS 2017-01-30 15:41:45 +02:00
Hristo Hristov
3770f7e636 formatted text fix (#3531)
* Fix formattedText implementation for iOS
Fix typeof undefined checks
Add slow tests message
Improve tests speed

* fix tslint
reduce transitions duration in test

* waitUntilReady will throw if timeout
fix tests that needs to wait without throwing
improve test speed
2017-01-26 18:21:30 +02:00
Panayot Cankov
0dd8f985c4 Add animations demo to the gallery app, make vertical alignment center and visibility collapsed backward compatible 2017-01-25 13:17:33 +02:00
Panayot Cankov
312a99667e Enable Button tests, fix AbsoluteLayout tests 2017-01-23 09:42:24 +02:00
Hristo Hristov
e34b0f622c fix span (#3510)
* Remove Bindable.
Fix Observable & ObservableArray tests
Fix formattedString text
Change implementation of Span, FormattedString & TextBase
properties valueChange called before native setter

* revetred formattedString tests asserts - formattedText update text property again
properties - when getting value we now use always property name instead of key (using key could return undefined for property that is set to its default value)
updated fontSize & fontInternal properties on all controls
fix font properties so that fontInternal is reset if the new font is the same as Font.default

* fix tslint errors
2017-01-20 16:42:20 +02:00
Nedyalko Nikolov
329ba3a2c5 Page tests fix. 2017-01-16 19:28:08 +02:00
Rossen Hristov
fec5e92dbe Fix tracing 2017-01-16 13:29:46 +02:00
Hristo Hristov
8cec512397 Fix binding support (#3489)
* Fix binding support

* fix tslint
2017-01-13 18:08:18 +02:00
Rossen Hristov
c3327ea52f Fix animations and lots of cyclic requires 2017-01-13 14:41:38 +02:00
vakrilov
819155fb18 Minor fixes + more green tests 2017-01-12 16:20:38 +02:00
vakrilov
e983295952 Style tests fixes 2017-01-12 14:24:12 +02:00
vakrilov
cd3cd13075 View tests turned green 2017-01-11 17:34:25 +02:00
Nedyalko Nikolov
b4575e1d5b Fixed xml-declaration tests. 2017-01-11 14:36:08 +02:00
vakrilov
f634f29df0 Frame test 2017-01-10 14:08:54 +02:00
Rossen Hristov
fcda6454cc Fix zIndex for Android buttons 2017-01-10 10:13:06 +02:00
Nedyalko Nikolov
5a3cfbeda9 SegmentedBar tests fixed. 2017-01-09 18:24:09 +02:00
Hristo Hristov
309ea148e1 Fix setting text property to number. (#3449)
Fix setting JS property from native.
2017-01-09 18:13:31 +02:00
vakrilov
14e1da5820 Style-properties tests 2017-01-09 17:24:38 +02:00
Rossen Hristov
5a3be4d577 Make border radii Lengths 2017-01-06 16:03:06 +02:00
Rossen Hristov
7f52dc3c2a Fix: Resetting backgroundImage throws 2017-01-06 14:34:46 +02:00
Rossen Hristov
eb4ac8d109 Fix all tslint errors 2017-01-06 12:00:06 +02:00
Hristo Hristov
bfab188ba0 clear nativeView field. (#3418)
moved some native setters from TabView to TabViewItem.
shorthand properties converters now accounts for unsetValue.
better formatting for test duration.
2017-01-05 18:08:42 +02:00
Nedyalko Nikolov
421810c293 TextView tests. 2017-01-05 16:09:13 +02:00
Panayot Cankov
43f5f117a7 Fix minor tslint errors 2017-01-04 17:37:56 +02:00
vakrilov
64bca39e2b IOS fix for context 2017-01-04 17:18:45 +02:00
vakrilov
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
Panayot Cankov
9bf411b7f6 Update _updateNativeLayoutParams and fix minWidth/Height for ios flexbox 2017-01-04 16:51:06 +02:00