Commit Graph

5967 Commits

Author SHA1 Message Date
Manol Donev
451589dbd6 fix(modal): exception when calling ViewBase.showModal(...) (#5737) 2018-04-26 00:19:44 +03:00
Dick Smith
9e3da8ec5a fix(ios-image-asset): getImageAsync() can retrieve assets stored remotely in iCloud (#5705) 2018-04-25 16:03:37 +03:00
Michael VanDyke
0fd0812ede test(platform): add missing properties to platformModule documentation (#5709)
The platformModule cookbook documentation was missing a few properties
that are now available. This commit adds those properties to be
included in the examples.

resolves: NativeScript/NativeScript#5707
2018-04-25 14:05:30 +03:00
Alexander Vakrilov
49ea10b81e fix(layout): IOS Layout not invalidated with custom root (#5724)
* fix(layout): Buuple up layout trough viewControllers

* test: Layout invalidates correctly with different root view

* chore: tslint
2018-04-23 15:47:27 +03:00
Eddy Verbruggen
6bdb5b553f feat(file-system): add ability to retrieve file size (#5710) 2018-04-20 18:01:15 +03:00
Vasil Chimev
0e1f19a76a test(modal-navigation): add close modal, modal layout and root layout tests (#5680) 2018-04-20 14:29:28 +03:00
Manol Donev
4f5887b0ad fix(android): lollipop crash on changing activity context after navigation w/transition (#5700) 2018-04-20 13:46:03 +03:00
Michael Crowe
1536d15ecf fix(android-connectivity): add ethernet connection type (#5670)
Add "ethernet" connection type to getConnectionType to correctly return a connection type when the type is "ethernet"
2018-04-19 13:09:33 +03:00
Vasil Trifonov
a616dbb9bb Updated weak event listener tests for v8 6.5 (#5697)
* Updated weak event listener tests for v8 6.5

* added missing parentheses
2018-04-18 16:57:26 +03:00
Alexander Djenkov
b9806bad1c fix(list-view-ios): fix rowHeight property to apply proper item size for iOS (#5693)
* fix(list-view-ios): fix rowHeight property to apply proper item size for iOS

* chore(apps-tests): add rowHeight tests
2018-04-18 10:47:19 +03:00
Martin Yankov
6fb7481327 feat(builder): enable reading xml from bundle (#5668) 2018-04-17 17:27:32 +03:00
Alexander Vakrilov
f6f8472b97 chore: Add link to release blog in changelog 2018-04-16 08:19:48 +03:00
Svetoslav
3fcbbf4c12 test: include new test page for issue 5470 (#5666) 2018-04-12 14:59:37 +03:00
Manol Donev
555e5920c3 fix(ios-searchbar): fix searchbar auto sizing in iOS11 (#5658) 2018-04-12 14:13:21 +03:00
Martin Yankov
893cbb4211 chore(changelog): remove not valid breaking change
`[Android] NativeScript no longer overwrites the horizontal/vertical alignment on the user-defined root visual element when opening it in modal dialog window (i.e. not fullscreen).` - this has been changed with the introducing of `stretched` parameter in the features. The default behavior stays the same.
2018-04-12 10:58:47 +03:00
Alexander Vakrilov
9717bbf847 chore: Add 4.0 change-log (#5646)
* chore: Add 4.0 change-log

* chore: typos

* chore: Link to changes doc added
2018-04-11 17:00:30 +03:00
Alexander Djenkov
cf2ed824bf chore(image): expose decode image properties for the public API (#5629) 2018-04-11 14:24:47 +03:00
Manol Donev
cf950e1ebb fix(navigation): fix frame.navigate call inside page.navigatedTo handler (#5649) 2018-04-11 11:25:54 +03:00
Vasil Trifonov
54fd9774e7 fix: removed stacktrace printing when result error is set (#119)
We don't need stack trace to be printed when we return the exception in the result.error as it will be returned in the reject callback.
Fixes https://github.com/NativeScript/tns-core-modules-widgets/issues/118
2018-04-11 10:44:20 +03:00
tbozhikov
c06d5bae63 chore: set keepAspectRatio to true as default in image-asset (#5613)
* chore: set keepAspectRatio to true as default in image-asset

* fix: remove empty lines
2018-04-10 00:46:27 +03:00
Svetoslav
c5fa922579 Tsenov/issue 3714 (#5610)
* test: added test case for issue 3714

* refactor: update remove grid layout element
2018-04-09 20:09:21 +03:00
Nikolay Tsonev
a316e53d54 new tabview examples (#5628)
* new tabview exmples

* tabs limit example

* minor code snippet edits
2018-04-05 17:35:36 +03:00
Vasil Chimev
9ec2839bde fix-next(style): rename SliderBase CSSType to Slider (#5627) 2018-04-05 15:21:06 +03:00
Alexander Djenkov
31ee774a6b fix-next(ios-modal): fix empty modal screen when using common layout as root (#5618) 2018-04-05 09:44:03 +03:00
Alexander Vakrilov
38e6f6688e fix(style): Styles are not applied to dialogs (#5612) 2018-04-03 17:06:21 +02:00
radeva
783ea4eb6b docs: add issue and PR templates (#117) 2018-04-03 09:39:51 +03:00
Alexander Djenkov
70f01123df feat(frame): handle back navigation when common layout is used as a root element (#5608)
* test(e2e): update modal navigation app

Add layout as root.
Add show modal layout.

* chore(frame): move frame stack modifiers in a separate frame-stack module

* feat(frame): handle back navigation when using common layout as root element
2018-04-02 22:27:44 +03:00
Martin Yankov
8a1958e82e chore(view): expose onBackPressed in d.ts (#5607) 2018-04-02 15:49:31 +03:00
Gustavo Edinger
1931669f79 refactor(ios-webview): remove useless js evaluation (#5584) 2018-03-27 11:08:19 +03:00
Manol Donev
81a2cbd0fe refactor(ios): clean up iOS8 or lower specific checks in codebase (#5581) 2018-03-26 13:37:21 +03:00
Alexander Djenkov
52c044891e feat(ios-list-view): introduce iosEstimatedRowHeight property. (#5568)
* feat(ios-list-view): introduce iosEstimatedRowHeight property.

* chore(ui-tests-app): add test for auto measured ListView.
2018-03-22 14:03:54 +02:00
radeva
0012bfd4d8 fix(webpack): register wrap layout (#5573)
Currently webpack fails if app is using wrap layout since it is not registered here. Registering it manually in the app works as a workaround, but still I think it would be nice to have it here by default.
2018-03-22 13:53:11 +02:00
Peter Staev
b29f04ff16 feat(listview): add required interface for generalized listview comonent (#5524) 2018-03-22 12:43:39 +02:00
Shiva Prasad
7cd8e7ef54 fix(text): Allow -1 to be a valid binding value for text views (#5563)
* fix(android/text ios/text): allow -1 to be a valid binding value

Instead of using -1 as special value, use Symbol(-1)
so that it can't be reset accidentally

Closes issue #5559

* renamed the symbol
2018-03-21 11:37:30 +01:00
Brendan Ingham
4b244921d4 feat(List-View) : Add the ability to check if an item is visible or not. (#5557)
* feat(list-view): Adds the ability to check whether or not an Item at index is Visible on screen within a listView

* feat(list-view): add the unit-test for checking if list-item is visible.

* clean(list-view): fix invalid reference in list-view-common

* chore(list-view): remove unused logic

* test(list-view) updates the tests for checking if item at index is visible

* chore(ListView Tests): update the test_check_if_item_at_index_is_visible unit test to include 40 children, and test if the last item is visible or not.

* Chore(ListView IOS): Apply requested changes to the for-loop, and replace with Array.some for readability.

* chore(ListView android): Fix TSLint issues.
2018-03-21 07:18:01 +01:00
Daniel Freiling
bdb65591a6 fix(imageview): apply ColorFilter in ImageView (#110) 2018-03-20 10:23:58 +02:00
Manol Donev
7506905770 fix(image): image aspect dimensions for ImageSource.fromAsset(...) (#5556) 2018-03-19 17:01:26 +02:00
slsumathi
c02bb283a9 Update http.ts (#5551) 2018-03-19 08:01:50 +01:00
Iva Koevska
4cadb3f1a6 Updated reference to native iOS component (#5558) 2018-03-19 08:00:07 +01:00
Vasil Chimev
8248d8a8b9 refactor(e2e/modal-navigation): stretch modal tab view (#5548)
Update application with https://github.com/NativeScript/NativeScript/pull/5496.
2018-03-16 20:33:23 +02:00
Noumaan Shah
9fddec517a Update enums.d.ts (#5530)
I believe aspectFill vs aspectFit definitions are reversed.
2018-03-15 19:47:08 +01:00
Manol Donev
75ee84cdd2 fix(image): fix(image): apply tintColor correctly on iOS (#5546)
only reset image to non-template when tintColor is changed to a non-color (removed)
2018-03-15 18:41:02 +02:00
Alexander Djenkov
c2cd53fe5f fix(cache-images): respect decodeWidth and decodeHeight when caching images (#115)
* feat(image-fetcher): limit bitmap to device sizes when no request width/height set.

* fix(cache-images): create new cache for images with different decodeHeight/decodeWidth.
2018-03-15 16:39:01 +02:00
Nikolay Tsonev
310edf70cf add zonedCallback in connectivity module (#5531) 2018-03-15 16:25:43 +02:00
Manol Donev
75bd1d2c49 fix(uilabel): line height setter should not break line break mode (#5544)
fix(uilabel): line height setter should not break line break mode
2018-03-15 16:21:03 +02:00
Vasil Chimev
e43c7546bd fix-next(frame): remove current entry fragment on reset root view (#5533)
* chore(e2e): add @types as devDependencies

Update `tsconfig.json` file.

* fix-next(frame): remove current entry fragment on reset root view

* refactor(e2e): undo skip tab root tests

* refactor(frame): extract disposeCurrentFragment() method

Extract the common logic from _onRootViewReset() and onUnloaded() methods to avoid code duplication.
2018-03-14 19:56:15 +02:00
Martin Yankov
cf8dcfa40c feat(view): expose method for android back override (#5537)
Expose method on View class onBackPressed(). Third party controls
like RadSideDrawer can use this method to override the default Android
back button handling. By default the app closes.
2018-03-14 18:15:05 +02:00
Martin Yankov
dfa70dd384 feat(frame): rework frame retrieval api (#5527)
Rework the frame api to support working with multiple Frames.
* frameModule.topmost() - now returns the last navigated Frame or
the currently selected tab item's Frame if the tab item's view is a
Frame.
* frameModule.getFrameById(id: string) - returns a navigated Frame by id.
* args.object.page.frame - can be used in page elements event handlers.
Returns the Frame of the current element's page.
* chore: Update madge-android npm script path
2018-03-13 18:10:45 +02:00
Alexander Vakrilov
45bf5b8f57 chore(docs): Update writing-tests.md with note about code snippets comments (#5489)
* Update WritingUnitTests.md

* chore: typo
2018-03-13 15:42:51 +01:00
Sudhanshu Siddh
319c153360 feat(ios-image-source): standardize quality scale in image-source (#5517)
* feat(ios-image-source): standardize quality scale in image-source for both platforms

Normalize quality in saveToFile and toBase64String to follow 0-100 scale - standardize implementation on both platforms

closes #5474
2018-03-13 15:19:24 +01:00