253 Commits

Author SHA1 Message Date
f7145d9fc2 fix: disabled default accessibility 2021-09-30 09:17:17 +02:00
e797528963 chore: cleanup after merge 2021-09-21 10:53:03 +02:00
e7608500cb chore: better comment 2021-09-17 16:58:05 +02:00
e3e5dea2be Merge branch 'master' of github.com:NativeScript/NativeScript
# Conflicts:
#	package.json
#	packages/core/bundle-entry-points.ts
#	packages/core/color/color-common.ts
#	packages/core/color/index.d.ts
#	packages/core/globals/index.ts
#	packages/core/package.json
#	packages/core/ui/core/bindable/index.ts
#	packages/core/ui/core/properties/index.ts
#	packages/core/ui/core/view/index.android.ts
#	packages/core/ui/frame/index.android.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/ui-mobile-base/android/gradle/wrapper/gradle-wrapper.properties
#	packages/webpack5/package.json
#	packages/webpack5/src/configuration/base.ts
2021-09-16 10:16:45 +02:00
a38e2ca3b9 fix(android): background-image 'none' (#9547)
closes https://github.com/NativeScript/NativeScript/issues/9546
2021-09-15 19:04:26 +02:00
eb0d000fe1 revert: feat: requestLayout performance improvements (#9122)
This reverts commit 4f5f0aae77dd3b59b8c3856193fdb77b8223262e.

This commit breaks back-navigation in certain cases, most prominently with Button pseudo classes. We plan to revisit this.
2021-09-10 18:59:08 +02:00
ffab4c3165 feat: Frame replacePage by entry (#9460)
* feat: Frame replacePage by entry

* feat(webpack): improved svelte HMR (#9497)

* update svelte config to use svelte-loader

* handle null config

* fix: worker support in .svelte files & update snapshots

* fix after merge

Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>

* feat(webpack): use svelte-loader and fallback to svelte-loader-hot

Allows running older projects

* feat: allow overwriting replacePage transition

Co-authored-by: farfromrefuge <martin.guillon@akylas.fr>
Co-authored-by: halfnelson <dpershouse@gmail.com>
2021-09-08 16:12:11 -07:00
86ff418166 fix(ios): actionitem coloring with 15+ 2021-09-08 16:12:11 -07:00
5532903ad8 revert: clipsToBounds support
This feature needs some more work & will be included in a future version
2021-09-08 16:12:11 -07:00
4632aeaae8 fix(modal): persist modal through configuration changes (#9533) 2021-09-08 16:12:11 -07:00
011e869cd5 fix(ios): actionBar title to use appearance api on ios15+ (#9534)
https://github.com/NativeScript/NativeScript/pull/9530
2021-09-08 16:12:11 -07:00
2bfccbbea6 fix(ios): actionBar to use appearance api on ios13+ (#9530) 2021-09-08 16:12:11 -07:00
6fc239dc56 fix(ios): resiliency to frame controller viewDidDisappear 2021-09-08 16:11:49 -07:00
b4dc45edb3 fix(ios): prevent views from being measured if no native view (#9511) 2021-09-08 16:07:39 -07:00
8c9407c48e fix: allow ignoring reduce-css-calc w/ webpack without error (#9510) 2021-09-08 16:07:39 -07:00
1ffc1628d0 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-09-08 16:07:39 -07:00
4f5f0aae77 feat: requestLayout performance improvements (#9122)
It was unnecessary to make multiple calls requestLayout inside initNativeView (properties set)
2021-09-08 16:07:39 -07:00
0d0d0382ad fix(android): use nativeTextViewProtected internally (#9483) 2021-09-08 16:07:39 -07:00
e00f9772d8 chore: add guard around getLifecycle 2021-09-08 16:07:39 -07:00
e7b30af394 fix(android): prevent potential crash when app goes to background (#9347) 2021-09-08 16:07:39 -07:00
a76815b81e fix(android): make less calls to native with getters around prop handling (#9119) 2021-09-08 16:07:39 -07:00
2dd2970c7d fix(android): dont dispose fragment on onloaded (#8793) 2021-09-08 16:07:39 -07:00
d25cd5bcee feat: autofillType property for edit text base (#9478) 2021-09-08 16:07:39 -07:00
c4db847ded feat(color): added utilities and improved color parsing performance (#9110) 2021-09-08 16:07:39 -07:00
2a4563716a fix(styling): change transform parameters parsing (#9481)
Fixed the incorrectly applied short form of "transform: translate" style property.

closes #5202
2021-09-08 16:07:39 -07:00
37c0731a8a fix(android): onSaveInstanceState should not crash when no rootView is set (#9447) 2021-09-08 16:07:39 -07:00
3aff057b99 revert: fix(android): nested dialog/fragment handling (#9495)
This reverts commit 4c547bb00c554d35408c7d0c44ef46e237819132.
2021-09-08 16:07:39 -07:00
3e98d1e934 revert: feat(android): fragment transactions to use 'add' instead of 'replace' on fwd navigation (#8791)
This reverts commit e498c9d5bc71bced194af694a95ec71a9037fda9.
2021-09-08 16:07:39 -07:00
e17e46974b 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-09-08 16:07:39 -07:00
aa9c9f3897 chore: cleanup 2021-09-08 16:07:38 -07:00
dd5f24a737 feat(core): make css parsers tree-shakable (#9496) 2021-09-08 16:07:38 -07:00
Rob
c3cadc7fd5 fix(ios): backgroundColor property on Button (#9524)
closes NativeScript/NativeScript#9523
2021-08-23 23:55:18 -07:00
b7b9d7c259 fix(frame): improve weakref guards (#9518) 2021-08-19 22:15:18 -07:00
2f630dc464 fix(android): do not call exitEvent on activity restart (#9517) 2021-08-18 09:09:50 -07:00
4e97e71da2 fix(core): prevent iOS views to be measured if no native view
This should not happen but it does. Did not manage to find the real source but it seems ok to test it here. Plus if it happens the measurement chain for that view will be broken
2021-08-16 14:36:27 +02:00
4faca3a9bc chore: until it is the official core i need to do it this way 2021-08-11 13:44:06 +02:00
c9e87e87f9 fix: android support for clipToBounds
It comes with a major refactoring of the BorderDrawable. Now all Paths are cached not to regenerate them on every draw pass.

Also it is important to understand that the clipping feature on android comes at a cost.
It will be done only when truelly necessary. but with complex paths ((border radius > 0 && border non uniform) || border-width >0) then we must apply a costly drawing pass (though hardware accelerated) to accomplish it.
2021-08-11 13:41:21 +02:00
59d9271bce feat(webpack): improved svelte HMR (#9497)
* update svelte config to use svelte-loader

* handle null config

* fix: worker support in .svelte files & update snapshots

* fix after merge

Co-authored-by: halfnelson <dpershouse@gmail.com>
Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2021-08-11 11:42:53 +02:00
00b0794746 fix: tsc errors fix 2021-08-10 16:14:35 +02:00
46b4b6409f fix: suspendRequestLayout not being reset to the right state
This causes unecessary `requestLayout`
2021-08-10 09:30:42 +02:00
2005bd5927 fix: css faster color parsing 2021-08-07 15:14:24 +02:00
8f322413ea fix: autofillType pre 26 2021-08-05 09:50:37 +02:00
4c547bb00c fix(android): nested dialog/fragment handling (#9495) 2021-08-03 21:57:19 -07:00
880215a3b1 Merge branch 'master' of github.com:NativeScript/NativeScript 2021-08-02 15:01:32 +02:00
ae193189ae fix: iOS crash on iOS 14 when onLayout is called without a nativeView 2021-08-02 15:01:20 +02:00
d45dea8471 fix(android): allow 0-length properties (#9485) 2021-07-26 14:52:19 -07:00
568defa23a Merge branch 'webpack5_refactor' of github.com:Akylas/NativeScript
# Conflicts:
#	.eslintrc.json
#	packages/core/bundle-entry-points.ts
#	packages/core/ui/core/bindable/index.ts
#	packages/core/ui/styling/style-scope.ts
#	packages/core/xml/index.ts
#	packages/webpack5/src/configuration/base.ts
#	packages/webpack5/src/helpers/index.ts
2021-07-26 17:33:18 +02:00
9ec02523c9 chore: refactor 2021-07-26 17:29:11 +02:00
596bdd4051 chore: cleanup 2021-07-26 16:27:47 +02:00
2c8ff3191c fix: more text base fixes for plugins using nativeTextViewProtected 2021-07-26 16:23:27 +02:00