66 Commits

Author SHA1 Message Date
619fd49186 fix(core): const initializer in an ambient context
fixes #9135
2021-01-05 14:49:58 +01:00
9a380cd43e fix(core): prevent circular reference Frame <> Page (#9111) 2020-12-30 07:58:14 -08:00
9aad2dbdbc feat(ios): types for latest ios 14.3 with Xcode 12.3 (#9118) 2020-12-30 07:57:10 -08:00
b47ce0a97c fix: android Tabs selected item color incorrectly applied (#9040)
* fix: selected-item-color gets applied to wrong TabStripItems

* chore: Added selection colors to 2 ui examples.

* chore: Removing used for testing.
2020-12-28 13:50:23 +01:00
e16bc606ef fix: android ActivityIndicator custom color affecting other indicators on the page (#9026)
* fix(core): Setting color of an Android ActivityIndicator changed the color of the rest of ActivityIndicators in the same page.

* test: Updated ActivityIndicator sample.

* perf: Call mutate() only if color is actually changed.
2020-12-28 13:48:14 +01:00
d09a564296 fix: android modal not following activity windowSoftInputMode (#9042)
* fix android modal not following activity windowSoftInputMode

Also added an android modal parameter to set a custom windowSoftInputMode

* fix softInputMode set too soon

* Update packages/core/ui/core/view/index.android.ts

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

* Update packages/core/ui/core/view-base/index.d.ts

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

* Update packages/core/ui/core/view-base/index.ts

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

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2020-12-28 13:47:00 +01:00
4204ac8308 fix(compat): add screen and device aliases (#9088)
* fix: Add old names to platform for compatibility

* Simplify code

* fix: apply changes to definitions

Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
2020-12-28 13:46:04 +01:00
ea67422fcf feat: iosIgnoreSafeArea property (#9092)
* feat: ios added ignoreSafeArea property

* fix: ensure it works when no viewControllerView
2020-12-28 13:39:55 +01:00
9391b44996 fix(tabs): ios safeArea calculation (#9089)
* fix(tabs): ios safeArea calculation

* feat(tabs): respect iosOverflowSafeArea value
2020-12-28 13:38:28 +01:00
bd7c686aaf feat(core): allow app to start without a root view (#9056) 2020-11-19 17:02:32 -08:00
1769de9033 feat(android): setInterval closer to web spec (#9044) 2020-11-19 13:07:51 -08:00
539fd1eb29 fix(core): notify object now optional (#9032) 2020-11-15 21:57:58 -08:00
cf96e7252c feat(frame): add navigatingTo and navigatedTo events (#9025) 2020-11-12 20:51:03 -08:00
cb61c2aa7e chore: parser issues from PR#9001, PR#9017, PR#9028 (#9030) 2020-11-12 19:42:23 -08:00
6902770d90 fix: rollback regexp eslint changes (#9028)
* fix: rollback regexp eslint changes

* fix: rollback animation lint which would break promise context

* fix: more rollbacks
2020-11-12 15:55:22 -06:00
1a849f9302 fix: Prior PR (#8904) has bad path for trace modules
* Fix trace path issue

* another path fix
2020-11-12 14:23:03 -06:00
64e0aa6a11 fix(list-view): handle reusing wrong view (#9023) 2020-11-11 19:55:17 -08:00
e3dc89fbfc feat(core): queueMacroTask (#8904) 2020-11-11 19:52:29 -08:00
c1f231d88e chore: fix eslint issues (#9017) 2020-11-11 08:46:36 -08:00
b3f9c0d0ac fix(ios): ios 10 tab crash (#9018)
* Fix: ios10 tab crash

* Fix iOS 14 tests that crash because of changes in the way ios 14 works.
2020-11-10 23:11:31 -08:00
c569236357 perf: faster color parsing (#9001) 2020-11-09 17:00:22 -08:00
9797dfd78d chore(release): @nativescript/core@7.0.13 2020-10-28 11:38:54 -07:00
b96654276b fix(ios): UIImage.imageWithData.async is not a function
closes https://github.com/NativeScript/NativeScript/issues/8986
2020-10-28 11:36:51 -07:00
b113f1916d feat(core): Repeater multiple item templates implementation (#8981) 2020-10-26 20:13:22 -07:00
0eb2246b7d fix(core): ListViewCell.initWithEmptyBackground (#8985) 2020-10-25 18:05:43 -07:00
86c689ef7e chore(release): @nativescript/core@7.0.12 2020-10-21 08:37:54 -07:00
2243660080 feat(core): TypeScript 4 + cleanup (#8967) 2020-10-19 09:28:05 -07:00
99bb067420 fix(android): BottomNavigation error on back press (application exit) (#8970) 2020-10-18 15:44:27 -07:00
5c1b7f6d76 fix(core): ObservableArray tests and a typo (#8968) 2020-10-17 16:15:20 -07:00
5be39082e1 chore(release): @nativescript/core@7.0.11 2020-10-10 09:39:44 -07:00
ad2575991a fix(ios): iOS 10 support with adjustment to UILayoutGuide (#8954) 2020-10-10 09:34:44 -07:00
0f494d2cb2 chore(release): @nativescript/core@7.0.10 2020-10-03 14:08:27 -07:00
bf772c46b7 fix(core): ensure globals do not get tree shaked (#8931)
closes https://github.com/NativeScript/NativeScript/issues/8925
2020-10-03 14:05:12 -07:00
26c7abeb14 chore(release): @nativescript/core@7.0.9 2020-09-30 19:39:03 -07:00
6d135e5d63 fix(core): ObservableArray splice ensure index is > 0 (#8921)
Otherwise it will crash in ListView for iOS for example as it tries to animate an item with a negative row index
2020-09-30 16:54:54 -07:00
a55bcd8561 fix(android): fragment onPause (#8919) 2020-09-30 07:38:20 -07:00
3a52957102 chore(release): @nativescript/core@7.0.8 2020-09-29 08:22:50 -07:00
806fc880dd fix(core): global index typing fix for unit testing framework (#8915) 2020-09-29 08:18:36 -07:00
647926ee28 fix(ios): Utils.openFile (#8914)
closes https://github.com/NativeScript/NativeScript/issues/8913
2020-09-29 08:18:04 -07:00
65b1cdbae0 fix(core): Observable splice index > length (#8900)
* fix for splice index > length

In javascript you can call splice with an index > length. The result is a push.
But when you do that ObservableArray index will be wrong and thus user logic will fail.
Example:
```ts
// obsarray = [0];
obsarray.splice(2, 0, 1);
// this works, the inner array is now [0,1]
// however 'change' is called with index = 2
// when the use tries to do obsarray.getItem(eventData.index) -> crash
```

* fix to handle delete too
2020-09-27 09:20:52 -07:00
af6336d930 chore(release): @nativescript/core@7.0.7 2020-09-25 23:03:04 -07:00
dbefc43b9b fix(ios): preferredDatePickerStyle property (#8899) 2020-09-25 22:59:47 -07:00
03f1f3d5f5 chore: format and fix ci build 2020-09-25 15:58:39 -07:00
3437ed7e14 fix(core): global handling with env.production flag (#8903)
closes https://github.com/NativeScript/NativeScript/issues/8778
closes https://github.com/NativeScript/NativeScript/issues/8872
2020-09-25 10:42:43 -07:00
021c0bb9a2 fix(core): delegate should be set on nativeTextViewProtected (#8881)
just like textfields. Fixes components extending this one
2020-09-23 16:37:34 -07:00
29da0fb5f7 chore: comment for why nativeTextViewProtected (#8886)
Explains for future generations why this getter exists.  😀
2020-09-23 16:01:24 -07:00
13be3d60d7 chore(release): @nativescript/core@7.0.5 2020-09-23 14:54:01 -07:00
1f790edc80 fix(core): bundle entry points and global handling (#8884) 2020-09-23 14:48:19 -07:00
9ec1939233 chore(release): @nativescript/core@7.0.4, @nativescript/types@7.0.4, @nativescript/types-android@7.0.4, @nativescript/types-ios@7.0.4 2020-09-23 11:49:53 -07:00
45fb6c481b fix(ios): time-picker and date-picker for iOS 14 (#8877) 2020-09-23 08:00:34 -07:00