Commit Graph

58 Commits

Author SHA1 Message Date
Hristo Deshev
9d67e44cdf Work around an issue with webpack's extension resolution.
Not resolving ../utils imports.
2017-03-20 16:12:10 +02:00
Hristo Hristov
fe54ac6ead Layout round instead of ceiling (#3833)
* Layout round instead of cailing
Add helper method to layout module to convert to/from dips to px and measure the native view
whiteSpace affects layout added for iOS
Fix bug in switch onMeasure implementation
Fix bug in cssValueToDevicePixels iOS implementation
ActionBar for iOS is measured with AT_MOST modifier

* Fix switch measure routine
2017-03-20 16:11:16 +02:00
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
Panayot Cankov
cec256f809 Fix modal page ios dips 2017-03-10 11:28:01 +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
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
vakrilov
b7a32153d8 Fix: Make status-bar properties CSS again 2017-03-07 15:27:27 +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
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
vakrilov
6b61335675 Fix: Modal crashes in Android and IOS 2017-01-30 15:41:45 +02:00
vakrilov
00589c801d FIX: disappearing navigation bar on back 2017-01-27 15:00:33 +02:00
vakrilov
d448f3dc7f Animated nav-bar 2017-01-25 10:48:48 +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
vakrilov
f634f29df0 Frame test 2017-01-10 14:08:54 +02:00
Rossen Hristov
a2d2f65adc Call resetCSSProperties instead of resetStyleProperties from _resetCssValues 2017-01-06 14:06:32 +02:00
Panayot Cankov
43f5f117a7 Fix minor tslint errors 2017-01-04 17:37:56 +02:00
vakrilov
ea95d1d854 remove unneeded applyNativeSetters 2017-01-04 17:18:45 +02:00
vakrilov
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
Panayot Cankov
ac59c1b082 Add nativeView in page.ios.ts and get the UIViewControler view as nativeView 2016-12-27 13:12:58 +02:00
Panayot Cankov
70cc1dd5d9 Move the effective* values from style to this 2016-12-27 10:57:10 +02:00
PanayotCankov
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
Hristo Hristov
f5905f072d fix tab-view, segmented-bar, action-bar, all ViewBases (#3340) 2016-12-21 12:02:02 +02:00
Rossen Hristov
63e4139a65 Merge branch 'hhristov/modules30' into alignments 2016-12-19 17:27:49 +02:00
Rossen Hristov
8ac7c8d574 HorizontalAlignment and VerticalAlignment 2016-12-19 16:25:08 +02:00
Panayot Cankov
6feeb140e3 Fixing type errors in tests 2016-12-19 10:36:25 +02:00
Hristo Hristov
f75f583573 tns-core-modules done 2016-12-13 15:51:18 +02:00
Hristo Hristov
19ee47ba24 got to layouts 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
fac4f42503 adding features deleted from rebase 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
a64847ca9d next 2016-12-13 15:51:18 +02:00
Hristo Hristov
bb2c7aa60a partial state 2016-12-13 15:51:18 +02:00
Maya Zhecheva
2e13205797 CSS support for styling status bar (#3156) 2016-11-24 14:20:12 +02:00
tzraikov
2d640ddeda Merge pull request #3093 from NativeScript/raikov/fix-2870
Fixed: ActionBar w/translucent navigationBar set to false is creating whitish transition
2016-11-24 13:16:35 +02:00
Rossen Hristov
91083a4ea4 Fix: Modal dialogs don't have background color
Resolves #3129
2016-11-21 14:07:46 +02:00
Tsvetan Raikov
3f578741f7 Fixed: ActionBar w/translucent navigationBar set to false is creating whitish transition 2016-11-15 13:11:04 +02:00
Tsvetan Raikov
a0cd3b0f39 Fixed: jumping action bar reported in #2941 2016-11-10 11:21:05 +02:00
zh-m
75cab33f8f Percent support of margin of layouts/frame/page/contentview 2016-10-20 11:29:21 +03:00
Vladimir Enchev
eab903e9e0 Existing iOS integration app support added 2016-10-13 18:15:24 +03:00
vakrilov
8c8ad99459 property renamed to enableSwipeBackNavigation 2016-10-04 18:02:06 +03:00
vakrilov
53a60e2553 Added iosSwipeBackNavigationEnabled 2016-10-04 17:42:36 +03:00
Panayot Cankov
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
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
vakrilov
2dc9827721 FIX: Wrong isBackNavigation value 2016-07-25 11:47:07 +03:00
vakrilov
ef6a24a5de FIX: isBackNavigation worng when navigation away form page that is not backstack visible 2016-07-20 11:54:53 +03:00
Panayot Cankov
849736e35e Merge pull request #2465 from NativeScript/css-hash-lookup-2
CSS refactoring
2016-07-19 17:59:10 +03:00
Rossen Hristov
ffec9c3ad6 Make the new bindingContext parameter optional. 2016-07-19 13:22:52 +03:00