47 Commits

Author SHA1 Message Date
0cae034a64 Changing module docs so they can appear in typedoc. 2017-05-10 11:55:47 +03:00
d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
a598e2c90a Ensure navigation title view is removed if undefined 2017-04-06 13:21:23 +03:00
15e4d6a230 ActionBar wasn’t applying native setters becasue it was missing nativeView (#3910) 2017-03-30 18:38:48 +03:00
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
2b28730011 Split get/set native to getDefault setNative 2017-03-22 16:37:52 +02:00
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
f165382bb7 Apply gravity in android if LayoutParams have gravity field. (#3814)
ActionBar titleView aligments are applied only if no alignment are set to titleView and after view is added to visual tree otherwise they were reset in addView method
2017-03-20 15:09:23 +02:00
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
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
9ac9e5ab53 Merge pull request #3754 from NativeScript/fix-ios-action-bar-reset
Fix: Action-bar bg-color in ios not resetting
2017-03-09 09:42:54 +02:00
e69bc78111 Fix: Action-bar bg-color in ios not resetting 2017-03-08 13:42:35 +02:00
9f1ebc11ca Add support for 'px' on Length in iOS 2017-03-08 09:01:17 +02:00
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
ea22eb9c20 refactoring circular imports 2017-03-06 14:05:55 +02:00
2224cd6150 Reorganize imports/exports in order to make snapshot happy 2017-03-06 14:05:55 +02:00
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
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
d448f3dc7f Animated nav-bar 2017-01-25 10:48:48 +02:00
cd3cd13075 View tests turned green 2017-01-11 17:34:25 +02:00
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
f76eb15e05 tests refactored 2017-01-03 17:33:16 +02:00
f310c8ea8c Fix ActionBar set [colorProperty.native] 2017-01-03 15:52:23 +02:00
7931ecd4f8 Fix tslint errors 2016-12-21 17:42:31 +02:00
f5905f072d fix tab-view, segmented-bar, action-bar, all ViewBases (#3340) 2016-12-21 12:02:02 +02:00
8ac7c8d574 HorizontalAlignment and VerticalAlignment 2016-12-19 16:25:08 +02:00
745388c3da Hhristov/modules30 fixes (#3316)
* Fixed properties, text-base, action-bar, bindings, view

* Rebase onto master
2016-12-19 10:21:43 +02:00
19ee47ba24 got to layouts 2016-12-13 15:51:18 +02:00
1202cb7288 almost all without layouts 2016-12-13 15:51:18 +02:00
a64847ca9d next 2016-12-13 15:51:18 +02:00
645f428f59 alpha1 2016-12-13 15:51:18 +02:00
bb2c7aa60a partial state 2016-12-13 15:51:18 +02:00
e4c21258a3 More files migrated. 2016-12-13 15:51:18 +02:00
b58e0b08a3 refactoring 2016-12-13 15:51:18 +02:00
109ac26c5b Fix memory leak in action-bar for android. (#2854) 2016-10-07 13:02:58 +03:00
37d927b077 fix: #2796 - ActionItems lacks proper support for VoiceOver on iOS (#2799)
UIBarButtonItem weren't created with a title/text so VoiceOver couldn't
know what to reads. This marks the element as an AccessibilityElement
and sets an accessibilityLabel.
2016-10-05 16:32:04 +03:00
c6b10d1a33 Manually kickstart GC for android after navigation 2016-09-08 17:07:40 +03: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
7e5c29a163 Fix package.json "main" settings and remove .js references. 2016-08-04 16:24:29 +03:00
1d6310353d fix: ActionBar's title not updating in OnLoaded event 2016-07-15 16:54:28 +03:00
8554bb199e Fixed: Action bar doesn't handle events properly when a custom button is added in Angular 2016-06-20 15:53:04 +03:00
f3c7aa5a76 Fixed action bar tests 2016-06-17 18:50:18 +03:00
6f241ff473 Fixed: Custom ActionItem gets displaced in IOS 2016-06-15 18:25:32 +03:00
5d54ae69f4 Fixed a crash in action bar on iOS 9.3 2016-06-08 11:00:58 +03:00
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00