119 Commits

Author SHA1 Message Date
6822115cff fix(android): nested dialog/fragment handling 2021-08-15 11:31:50 -07:00
5890667b26 feat(android): support clipToBounds (#9508)
* performance improvements around border handling

BREAKING CHANGE:

* if you have broder-radius or clip-path, it will clip by default
2021-08-11 12:06:36 -07:00
e4ce17e156 feat: requestLayout performance improvements (#9122)
It was unnecessary to make multiple calls requestLayout inside initNativeView (properties set)
2021-08-11 11:50:41 -07:00
71b856c781 fix(android): use nativeTextViewProtected internally (#9483) 2021-08-11 11:46:21 -07:00
bf2499ccc2 chore: add guard around getLifecycle 2021-08-11 11:43:34 -07:00
47df889afa fix(android): prevent potential crash when app goes to background (#9347) 2021-08-11 11:38:25 -07:00
bca4d9583e fix(android): make less calls to native with getters around prop handling (#9119) 2021-08-11 11:31:39 -07:00
03b77157ea fix(android): dont dispose fragment on onloaded (#8793) 2021-08-11 11:28:55 -07:00
4964d313c2 feat: autofillType property for edit text base (#9478) 2021-08-11 11:23:02 -07:00
0ff2221d6f feat(color): added utilities and improved color parsing performance (#9110) 2021-08-11 10:54:57 -07:00
dbaab58538 fix(styling): change transform parameters parsing (#9481)
Fixed the incorrectly applied short form of "transform: translate" style property.

closes #5202
2021-08-11 10:45:00 -07:00
ee3c4c2009 fix(android): onSaveInstanceState should not crash when no rootView is set (#9447) 2021-08-11 10:41:24 -07:00
7276c0e3cd revert: fix(android): nested dialog/fragment handling (#9495)
This reverts commit 4c547bb00c554d35408c7d0c44ef46e237819132.
2021-08-11 10:24:03 -07:00
ee0e5dfaed revert: feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
This reverts commit e498c9d5bc71bced194af694a95ec71a9037fda9.
2021-08-11 17:55:31 +02:00
e498c9d5bc feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
Changes the behavior of android fragment transactions to use `add` instead of `replace` on forward navigation.

BREAKING CHANGE:

Changes the internal behavior of Android navigation:

* while navigating forward, the page navigated from is not unloaded anymore
* events order is changed in the sense that now `unloaded` happens after `navigatedFrom` instead of before

There are multiple plus sides to this:

* no more black views on navigation when using opengl (maps, ...)
* navigation is faster, especially the navigation back! No longer need to recreate the page anymore. Navigation forward also gets faster as we no longer unload the previous page
* navigatedFrom event happens faster
* this the default behavior used by most of the android native apps
2021-08-10 13:42:25 -07:00
7f37617b18 chore: cleanup 2021-08-10 13:34:31 -07:00
dce7408c05 feat(core): make css parsers tree-shakable (#9496) 2021-08-10 13:21:34 -07:00
4c547bb00c fix(android): nested dialog/fragment handling (#9495) 2021-08-03 21:57:19 -07:00
d45dea8471 fix(android): allow 0-length properties (#9485) 2021-07-26 14:52:19 -07:00
b8d8110994 fix: stop leaking style scopes (#9444)
fixes #9311

* fix: stop leaking style scopes

* fix: don't leak scoped styles in production
2021-06-15 23:00:07 +02:00
9f582ba168 fix(android): accessibilityIdentifier (#9432)
needs to be set on `nativeTextViewProtected` for text-base components
fixes https://github.com/nativescript-community/ui-material-components/issues/304
2021-06-02 18:47:19 -07:00
3806b85fce feat(WebView): allow JS bound window frame navigation to be intercepted through loadStarted (#9430) 2021-06-01 16:35:43 -07:00
d3bc4d5b82 fix(core): guard unstable page/frame init contexts under async conditions (#9428) 2021-05-30 12:02:38 -07:00
04381fa3e7 fix(animations): stop keyframe animations after View unloaded (#9421) 2021-05-30 11:56:28 -07:00
263c920cb8 fix(box-shadow): support for 'none' (#9418) 2021-05-25 21:22:35 -07:00
7e878f83a3 feat(web-view): disableZoom property (#9391) 2021-05-12 09:00:51 -07:00
64adf5ecfc feat(text-view): add returnPress (#9390)
closes #4882
2021-05-12 08:22:20 -07:00
0b2c190662 fix(RootLayout): prevent android touch event to pass through views underneath (#9389) 2021-05-11 17:43:56 -07:00
9ec404225e fix(core): typings for showModal correction (#9374) 2021-05-04 23:27:35 -07:00
0d4ccba60a chore: combine prettier with eslint (#9348) (#9360)
Co-authored-by: Martin Guillon <martin.guillon@akylas.fr>
2021-05-02 10:11:37 -07:00
f781242b9a fix(core): protected class getter/setter webpack issue 2021-04-24 11:17:38 -07:00
b29e1452bd feat(text-base): allow subclass to override createFormattedTextNative (#9334) 2021-04-18 10:49:00 -07:00
e73cebf765 fix(android): crash on slide transition (#9289)
The 'N' android `CustomTransition` widget takes an `AnimatorSet` and not an `ObjectAnimator`
2021-04-06 19:41:24 -07:00
75b59ecdbf chore(release): @nativescript/core@8.0.0 2021-04-06 11:18:36 -07:00
8cd1872ef7 chore: better trace handling around css 2021-04-06 11:18:36 -07:00
b50a2e618f chore: types cleanup 2021-04-06 11:18:36 -07:00
266ae2a71d chore: fix types 2021-04-06 11:18:36 -07:00
eeb68e9ce2 fix: RootLayout default open options 2021-04-06 11:18:36 -07:00
ede1685ae2 chore: cleanup types 2021-04-06 11:18:36 -07:00
3c569effed fix(layouts): rootlayout not closing when no shadecover transition specified (#9278) 2021-04-06 11:18:36 -07:00
cc592b63fd fix(core): trace instead of throw 2021-04-06 11:18:36 -07:00
b1d2c97b6a chore: expose CustomLayoutView 2021-04-06 11:18:36 -07:00
f00144e872 feat(view): "hidden" property binding is now supported 2021-04-06 11:18:36 -07:00
7c60735d14 chore: cleanup background handling 2021-04-06 11:18:36 -07:00
21da31562c chore: Enums > CoreTypes
Cleanup type symbol usage by consolidating to manage in one spot. This makes them easier to use as well by providing a single rollup of all the common type symbol's used throughout core.
2021-04-06 11:18:36 -07:00
e62acba792 fix: move BottomNavigation and Tabs to @nativescript-community
Cocoapods no longer required with @nativescript/core out of the box and users are no longer taxed with MaterialTabs even if they didn't use those components.

BREAKING CHANGES

If using `BottomNavigation`, just install `@nativescript-community/ui-material-bottom-navigation` and update your imports to use it. API is exactly the same.

If using `Tabs`, just install `@nativescript-community/ui-material-tabs` and update your imports to use it. API is exactly the same.
2021-04-06 11:18:36 -07:00
9a7d3ecb34 feat: implement BoxShadowDrawable 2021-04-06 11:18:36 -07:00
a822f2affb chore: a11y polish (#9259) 2021-04-06 11:18:36 -07:00
e9b5eb934d chore: cleanup a11y and add demo page 2021-04-06 11:18:36 -07:00
d88cef3b48 chore: message handling 2021-04-06 11:18:36 -07:00