Commit Graph

55 Commits

Author SHA1 Message Date
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
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
a2e09d5db0 Fix text view decorations, setting underline to none was not applied, setting decoration and text immediately was not applying the decoration 2017-03-01 11:50:35 +02:00
Panayot Cankov
a0c74bb4a9 Fix resetting horizontal text alignment 2017-02-22 13:37:10 +02:00
Panayot Cankov
709dff0258 fix horizontal text-align for Button in iOS, use horizontalContentAlign of the native button 2017-02-21 16:01:53 +02:00
PanayotCankov
b2cf286948 Fixed text decoration tests, Color will now store just a single argb info in 32bit unsigned int internally and covert to a/r/g/b or hex when necessary 2017-02-17 14:45:31 +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
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
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
Rossen Hristov
c3327ea52f Fix animations and lots of cyclic requires 2017-01-13 14:41:38 +02:00
Nedyalko Nikolov
cd7877dfa0 Text field tests fixed. 2017-01-13 11:41:12 +02:00
Rossen Hristov
cc337094e9 Fix text & fromattedText failing tests 2017-01-12 14:12:41 +02:00
vakrilov
cd3cd13075 View tests turned green 2017-01-11 17:34:25 +02:00
Rossen Hristov
45ac38d968 Refactor formatted text 2017-01-11 16:37:23 +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
120390b925 Fix: All formatted string appear with commas between each letter 2017-01-06 17:00:04 +02:00
Nedyalko Nikolov
421810c293 TextView tests. 2017-01-05 16:09:13 +02:00
Rossen Hristov
9d6f6cca79 Fix font on Android 2017-01-04 14:13:33 +02:00
Rossen Hristov
cce0a2d42f Fix all property types 2017-01-04 10:21:03 +02:00
Panayot Cankov
becf428e90 Fix most of the label tests 2016-12-28 17:33:38 +02:00
Panayot Cankov
228b914162 Remove redundant console.log 2016-12-27 15:29:43 +02:00
Panayot Cankov
d00be55def Remove wrong type check 2016-12-27 15:27:28 +02:00
Panayot Cankov
eba5534197 Make some Button tests pass for iOS 2016-12-27 14:54:30 +02:00
Panayot Cankov
c66e3e8ab5 Fix tslint errors 2016-12-27 13:20:59 +02:00
Rossen Hristov
0ec9950d46 Padding 2016-12-22 14:45:41 +02:00
PanayotCankov
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
Rossen Hristov
4cd3eed1cd Trying to fix padding... 2016-12-21 14:30:34 +02:00
Panayot Cankov
6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
Hristo Hristov
745388c3da Hhristov/modules30 fixes (#3316)
* Fixed properties, text-base, action-bar, bindings, view

* Rebase onto master
2016-12-19 10:21:43 +02:00
Rossen Hristov
93d4fa5d57 Total TextBase refactoring + several bug fixes. 2016-12-16 14:54:00 +02:00
Rossen Hristov
51e448aa10 Fixed: getViewById, TextDecoration 2016-12-15 13:20:25 +02:00
Hristo Hristov
b20fd7fd4c Fix nativeView issues
Fix Listeners base class
2016-12-15 10:46:20 +02:00
Hristo Hristov
19ee47ba24 got to layouts 2016-12-13 15:51:18 +02:00
Hristo Hristov
07e2102c5d restore properties deleted with merge 2016-12-13 15:51:18 +02:00
Hristo Hristov
befb494a50 up to segmented-bar.ios 2016-12-13 15:51:18 +02:00
Hristo Hristov
1202cb7288 almost all without layouts 2016-12-13 15:51:18 +02:00
Hristo Hristov
94dee2973a . 2016-12-13 15:51:18 +02:00
Hristo Hristov
d795ee94e4 alpha2 2016-12-13 15:51:18 +02:00
Hristo Hristov
645f428f59 alpha1 2016-12-13 15:51:18 +02:00
Hristo Hristov
bb2c7aa60a partial state 2016-12-13 15:51:18 +02:00
Hristo Hristov
e4c21258a3 More files migrated. 2016-12-13 15:51:18 +02:00
Hristo Hristov
b58e0b08a3 refactoring 2016-12-13 15:51:18 +02:00
Nedyalko Nikolov
e9ceb79b2e Add placeholder-color style property. 2016-08-30 14:00:35 +03:00
Panayot Cankov
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
Hristo Deshev
7e5c29a163 Fix package.json "main" settings and remove .js references. 2016-08-04 16:24:29 +03:00
Hristo Hristov
441a8087f9 fix snapshot (#2544) 2016-08-02 17:12:35 +03:00