Commit Graph

83 Commits

Author SHA1 Message Date
kssfilo
48836cbd4c Fix iOS ActionBar problem while internet sharing #4283 (#4447) 2017-06-28 15:00:01 +03:00
Panayot Cankov
1420fa8fcc Fixes the old snapshot build (#4457) 2017-06-27 13:50:08 +03:00
Panayot Cankov
bbffa5480e Used the wrong flag to check if snapshot was enabled (#4446) 2017-06-23 17:30:41 +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
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
Panayot Cankov
51b351f5b6 Add timeline traces in the console, let enabling them through the package.json 2017-06-02 16:34:15 +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
vakrilov
f954d64d79 Fix: ActionBar update in IOS with modal dialogs 2017-05-15 14:41:22 +03:00
Panayot Cankov
0cae034a64 Changing module docs so they can appear in typedoc. 2017-05-10 11:55:47 +03:00
Hristo Hristov
cf63da608a If page.parent is already the same frame - don’t add page to frame. This happens if activity is recreated. (#4096) 2017-05-04 10:39:39 +03:00
Panayot Cankov
d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
vakrilov
740d71a238 Apply page css when using nav-entry with create method 2017-04-03 14:51:57 +03:00
Hristo Hristov
e6250e718a Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
2017-03-28 18:08:59 +03:00
Hristo Hristov
c18a76c93a rename:
_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
2017-03-28 18:08:59 +03:00
Hristo Hristov
f2898f84d5 NativeView recycled for android 2017-03-28 18:08:59 +03:00
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
a64bba62aa whiteSpace default value change to undefined (#3782)
TKUnit default message change to empty string
isSet method is now instance method of Property classes
fix detaching from parent bindingContext - were using oldParent.parent instead of parent
editable-text-base.android - onTextChanged implementation commented. Does nothing.
frame - onCreateView wrapped in try/catch and shows label with exception message if any
text-base.android - should support reset of nativeView. TransformationMethod won’t be set if TextField is secure
Change some types to their string couterparts
TextField.android won’t support multilines anymore in order to work as iOS
In android when page is removed from native backstack we won’t call tearDownUI again a second time
2017-03-14 10:26:45 +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
vakrilov
789e2e0235 FIX: Livesync event not firing for frame 2017-03-13 10:49:09 +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
vakrilov
f3afaf5abe fixed tslint errors 2017-02-20 09:45:10 +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
d448f3dc7f Animated nav-bar 2017-01-25 10:48:48 +02:00
Rossen Hristov
fec5e92dbe Fix tracing 2017-01-16 13:29:46 +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
vakrilov
c30be0d606 View lifecycle methods 2017-01-04 17:18:45 +02:00
Rossen Hristov
e6d64799d8 Fix: Android platform.screen.mainScreen props are not invalidated after orientation change
Resolves #3270
2017-01-03 11:17:06 +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
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
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
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
Tsvetan Raikov
3f578741f7 Fixed: ActionBar w/translucent navigationBar set to false is creating whitish transition 2016-11-15 13:11:04 +02:00
Panayot Cankov
05cd636fc8 npm scripts for typechecking public .d.ts-es and running tslint (#2934)
* npm scripts for typechecking public .d.ts-es and running tslint

* Update test.ts
2016-10-27 15:18:54 +03:00
zh-m
75cab33f8f Percent support of margin of layouts/frame/page/contentview 2016-10-20 11:29:21 +03:00
vakrilov
20dc0b1ef5 Snapshot fix 2016-10-14 11:33:58 +03:00
Alexander Vakrilov
d012f9ac8c Merge pull request #2885 from NativeScript/android-current-context
Application and ActivityEvents improvements
2016-10-13 11:47:25 +03:00
Brad Martin
c84dc3e57b Small typo
-typo
-add android api number
2016-10-11 17:38:22 -05:00
vakrilov
1c4f40333e Application and ActivityEvents improvements 2016-10-11 18:40:03 +03:00
Hristo Hristov
682c465e56 setActivityCallbacks moved as public fucntion (#2696) 2016-09-09 14:03:55 +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