Skip to content

chore: first stage of rewriting animations #9892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 431 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
431 commits
Select commit Hold shift + click to select a range
3d4b46c
Merge branch 'color_changes_2' of github.com:Akylas/NativeScript
farfromrefug May 22, 2021
97a94e8
fix: color hex getter fix
farfromrefug Jun 8, 2021
d602d11
feat: decimal keyboard
farfromrefug Jun 8, 2021
e42e915
fix: accessibilityIdentifier fix for nativeTextViewProtected
farfromrefug Jun 8, 2021
6e45fe7
chore: lint and refactor
farfromrefug Jun 8, 2021
971d8ee
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Jun 9, 2021
29e99db
chore: vscode settings
farfromrefug Jun 9, 2021
7e0ecaa
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Jun 29, 2021
276b130
fix: finally Color.hex should be good
farfromrefug Jul 6, 2021
969716e
feat: autofillType property for edit text base
farfromrefug Jul 22, 2021
c945997
fix(core): android broken navigation after go back to root on navDept…
farfromrefug Jul 22, 2021
d91b13f
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Jul 22, 2021
785b16a
fix: allow to ignore `reduce-css-calc` with webpack without error
farfromrefug Jul 26, 2021
2c8ff31
fix: more text base fixes for plugins using `nativeTextViewProtected`
farfromrefug Jul 26, 2021
596bdd4
chore: cleanup
farfromrefug Jul 26, 2021
9ec0252
chore: refactor
farfromrefug Jul 26, 2021
568defa
Merge branch 'webpack5_refactor' of github.com:Akylas/NativeScript
farfromrefug Jul 26, 2021
9664f4b
fix: color fixes for hsl / hsv
farfromrefug Jul 28, 2021
ba773c7
fix: some color functions fixes
farfromrefug Aug 1, 2021
ae19318
fix: iOS crash on iOS 14 when onLayout is called without a nativeView
farfromrefug Aug 2, 2021
880215a
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Aug 2, 2021
c06c2ab
8.0.9
farfromrefug Aug 2, 2021
8f32241
fix: autofillType pre 26
farfromrefug Aug 5, 2021
9ff7222
chore: new build
farfromrefug Aug 5, 2021
02d90f7
fix: linear-gradient fix for hex colors with alpha
farfromrefug Aug 7, 2021
e2f579a
fix: hsl/hsv support for css %
farfromrefug Aug 7, 2021
2005bd5
fix: css faster color parsing
farfromrefug Aug 7, 2021
46b4b64
fix: suspendRequestLayout not being reset to the right state
farfromrefug Aug 10, 2021
e2dcac4
chore: locl husky fix
farfromrefug Aug 10, 2021
00b0794
fix: tsc errors fix
farfromrefug Aug 10, 2021
c9e87e8
fix: android support for clipToBounds
farfromrefug Aug 11, 2021
f99fb2d
chore: ignore tsc erro
farfromrefug Aug 11, 2021
de3d39a
chore: missing dep
farfromrefug Aug 11, 2021
5e11f0b
chore: updated build scrpts
farfromrefug Aug 11, 2021
4faca3a
chore: until it is the official core i need to do it this way
farfromrefug Aug 11, 2021
4e97e71
fix(core): prevent iOS views to be measured if no native view
farfromrefug Aug 16, 2021
f1406c0
fix: backgroundGradient fix with android BorderDrawable
farfromrefug Aug 18, 2021
433053c
fix: css colors not parsed correctly within background property
farfromrefug Aug 18, 2021
da96e66
fix: Color.darken fix
farfromrefug Aug 22, 2021
748a6e2
chore: color refactoring
farfromrefug Aug 22, 2021
e3e5dea
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Sep 16, 2021
e760850
chore: better comment
farfromrefug Sep 17, 2021
e797528
chore: cleanup after merge
farfromrefug Sep 21, 2021
55059b3
feat: __runtimeVersion declaration
farfromrefug Sep 30, 2021
f7145d9
fix: disabled default accessibility
farfromrefug Sep 30, 2021
162e09b
chore: typings fix
farfromrefug Sep 30, 2021
7fa5f29
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Sep 30, 2021
05c0611
chore: webpack build fix
farfromrefug Sep 30, 2021
53f3219
fix: new polyfill for formdata
farfromrefug Sep 30, 2021
a3431a5
chore: webpack5 fix
farfromrefug Sep 30, 2021
2c7a8f1
fix: better native-api-usage
farfromrefug Sep 30, 2021
305d564
fix: apps use native-api-usage to be able to constantly test it
farfromrefug Sep 30, 2021
d8ca36a
fix: allow to disable load of polyfills
farfromrefug Sep 30, 2021
f2089c4
chore: app ui fixes
farfromrefug Sep 30, 2021
0df4485
fix: missing metadata
farfromrefug Oct 1, 2021
4d1d02a
fix: metadata fixes
farfromrefug Oct 1, 2021
be5514b
fix: missing native-api-usage
farfromrefug Oct 2, 2021
709c4bf
fix: refactor to only use accessibility when actually used
farfromrefug Oct 2, 2021
b945d5a
fix(android): autofillType on apiLevel < 26
farfromrefug Oct 13, 2021
d1f768c
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Oct 13, 2021
cdb5978
chore: native api usage fixes
farfromrefug Nov 6, 2021
3c049db
fix(android): version Android text-align justify
farfromrefug Jan 12, 2022
af87006
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Jan 12, 2022
05393d3
fix: uglify fix
farfromrefug Jan 14, 2022
5df9442
chore 8.1.5
farfromrefug Jan 14, 2022
9adb411
fix(core): android fix for `foregroundActivity` not set on first `onN…
farfromrefug Jan 20, 2022
7351200
fix: accessibility import fix
farfromrefug Jan 20, 2022
ccb7c90
chore: toolbox to use our fork
farfromrefug Jan 20, 2022
7e5314e
fix(core): android fix for transitions not starting
farfromrefug Jan 29, 2022
c2c9f73
chore: 8.1.7
farfromrefug Jan 29, 2022
eca1a21
fix(core): android fix for tabview error on unload
farfromrefug Jan 30, 2022
663ab77
fix(core): android fix for entry cleared too late
farfromrefug Jan 30, 2022
16d4338
feat: new 'background/foreground` events for app
farfromrefug Feb 1, 2022
240b4bc
chore: 8.1.8
farfromrefug Feb 1, 2022
e067111
fix(android): suspend fix
farfromrefug Feb 1, 2022
afd0ca9
chore: 8.1.9
farfromrefug Feb 1, 2022
1906a80
chore: cleanup
farfromrefug Feb 10, 2022
40e0b73
chore: cleanup
farfromrefug Feb 10, 2022
80fe183
fix: disable animations for all in between fragments during a transition
farfromrefug Feb 10, 2022
7933842
fix: use hide to prevent black with OpenGL during a transition
farfromrefug Feb 10, 2022
9f44547
chore: preparing 8.1.10
farfromrefug Feb 10, 2022
aef6338
fix(android): if a page transition is cancelled , the end event wont …
farfromrefug Feb 10, 2022
e9cd687
chore: part of the last commit for Akylas fork
farfromrefug Feb 10, 2022
d37557d
chore: preparing 8.1.11
farfromrefug Feb 10, 2022
b592e66
fix: rollback on last fix
farfromrefug Feb 10, 2022
037bc61
fix(core): add an fix for cancelled transitions stuck in a in-between…
farfromrefug Feb 10, 2022
86c3ced
chore: prepare 8.1.12
farfromrefug Feb 10, 2022
7f5cbba
chore: cleanup logs
farfromrefug Feb 16, 2022
703ae72
feat(webpack): support webpack profiling when `config.profile=true`
farfromrefug Feb 25, 2022
d63673a
fix(debugger): prevent debugger files to be loaded when not debugging
farfromrefug Feb 25, 2022
ac0029b
chore: refactoring to allow tree shaking
farfromrefug Feb 25, 2022
227ba63
Revert "fix(debugger): prevent debugger files to be loaded when not d…
farfromrefug Feb 25, 2022
ed3d290
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Mar 9, 2022
2727399
chore: merge
farfromrefug Mar 9, 2022
480eab1
chore: merge
farfromrefug Mar 9, 2022
94eb381
chore: revert N changes for fragments
farfromrefug Mar 9, 2022
6639b49
chore: clean scrupts
farfromrefug Mar 9, 2022
155999a
chore: fix after merge
farfromrefug Mar 9, 2022
c136fba
fix(ui-mobile-base): fix android build
farfromrefug Mar 9, 2022
6bea4da
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Mar 9, 2022
197242f
chore: fix after merge
farfromrefug Mar 9, 2022
e3284a4
fix: revert breaking change from #9761
farfromrefug Mar 14, 2022
d0f7cdc
chore: format
farfromrefug Mar 14, 2022
fd0d6ee
fix(core): ios revert broken `lineHeight`
farfromrefug Mar 17, 2022
a0fb17d
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Mar 24, 2022
c2496fd
fix(core): textfield getting focused again on focus clear
farfromrefug Mar 29, 2022
c7a7139
fix(core): refactore to prevent Mem Leak
farfromrefug Mar 29, 2022
ca6a3e6
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Apr 7, 2022
1714599
chore: refactor to ensure it would not fail
farfromrefug Apr 8, 2022
8bc9f54
fix(core): allow View subclass to force onLayoutChangeListener
farfromrefug Apr 24, 2022
89a0b86
feat(core): `maxLines` support for all text components
farfromrefug Apr 26, 2022
3e320ca
fix(core): android wrong background state + current value accessors
farfromrefug Apr 26, 2022
df05726
chore: fix after last changes
farfromrefug Apr 27, 2022
4ab401c
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Apr 27, 2022
2a4d2fa
feat(core): `maxLines` support for all text components
farfromrefug Apr 26, 2022
c4dbd0b
chore: fixed maxLines support for iOS
farfromrefug Apr 27, 2022
45fcba1
chore: ‘none’ handled in value convert + works with `whiteSpace`
farfromrefug Apr 27, 2022
7a1171e
chore: fixed apps dev
farfromrefug Apr 27, 2022
9fdec04
Merge branch 'maxlines' of github.com:Akylas/NativeScript
farfromrefug Apr 27, 2022
647ed5c
fix(ui-mobile-base): Android http request body was not sent if method…
CatchABus Apr 30, 2022
6f68b2f
fix(core): allow View subclass to force onLayoutChangeListener (#9886)
farfromrefug Apr 30, 2022
17a87a4
fix(android): Textfield focus fix (#9885)
farfromrefug Apr 30, 2022
df10ceb
feat(core): maxLines support for all text components (#9884)
farfromrefug Apr 30, 2022
6e3dd4d
fix: ensure reusable ProxyViewContainer re-adds native children (#9882)
edusperoni Apr 30, 2022
3d882b0
fix(ios): apply proper border radius to box shadow and view sublayers…
CatchABus Apr 30, 2022
96a575d
fix(ios): proper disposal and recreation of iOS native views (#9879)
CatchABus Apr 30, 2022
5ba8f25
chore: 8.2.4-alpha.1
NathanWalker Apr 30, 2022
36e821a
fix(core): android wrong background state + current value accessors (…
farfromrefug May 1, 2022
b3c5b33
fix(TabView): item styling improvements for iOS 15+ (#9888)
CatchABus May 1, 2022
ae46753
fix(live-sync): navigation history is now maintained (#9889)
CatchABus May 1, 2022
ce22c64
chore: 8.2.4-alpha.2
NathanWalker May 1, 2022
eaacb04
chore: cleanup ios App_Resources
farfromrefug May 1, 2022
fe8ac02
fix(core): android fix by hidding current fragment on nav and show on…
farfromrefug May 1, 2022
a6c43e2
chore: new way of renaming package for custom build
farfromrefug May 1, 2022
ec54645
chore: cleanup
farfromrefug May 1, 2022
9685770
demo: toolbox update
farfromrefug May 1, 2022
e51cc6c
chore: ignore unwanted aar from core
farfromrefug May 1, 2022
41984ea
chore: add npmignore to publish package
farfromrefug May 1, 2022
c028dc0
chore: needed for .npmignore to work
farfromrefug May 1, 2022
c41b020
chore: import fix
farfromrefug May 1, 2022
b880173
chore: ignore unwanted aar from core
farfromrefug May 1, 2022
99f1773
chore: needed for .npmignore to work
farfromrefug May 1, 2022
6e3d06d
add nx rule to copy `.npmignore`
farfromrefug May 1, 2022
dbf4816
chore: first stage of rewriting animations
farfromrefug May 1, 2022
893ccf0
chore: refactor
farfromrefug May 1, 2022
48280e0
chore: refactoring
farfromrefug May 1, 2022
7814af3
demo: toolbox update
farfromrefug May 1, 2022
3038929
chore: big refactor of properties
farfromrefug May 2, 2022
ac7470c
fix(core): ios fix where originX and originY would break layout
farfromrefug May 2, 2022
cb4bca0
chore: View method `cancelAllAnimations`
farfromrefug May 2, 2022
a257123
chore: big update to Animation code
farfromrefug May 2, 2022
72c1536
chore: more properties refactoring
farfromrefug May 3, 2022
569ada4
chore: cleanup
farfromrefug May 3, 2022
9a274e1
chore: refactoring fix
farfromrefug May 3, 2022
af329da
chore: converter should return null for null
farfromrefug May 3, 2022
8bda565
chore: update tests
farfromrefug May 3, 2022
bec9706
chore: refactoring to allow custom animation plugin
farfromrefug May 4, 2022
73f3e61
chore: fix for possible new android runtime PR
farfromrefug May 4, 2022
140ec0e
Merge branch 'android_platform_fix' of github.com:Akylas/NativeScript
farfromrefug May 4, 2022
bb4c987
Merge branch 'animations_rebuilt' of github.com:Akylas/NativeScript
farfromrefug May 4, 2022
4f3c890
Merge branch 'master' of github.com:Akylas/NativeScript into alpha
farfromrefug May 4, 2022
071db44
chore: new way of renaming package for custom build
farfromrefug May 1, 2022
bdb6a95
Merge branch 'master' of github.com:Akylas/NativeScript into alpha
farfromrefug May 4, 2022
90a0846
fix: expose `inBackground` and `suspended in `Application`
farfromrefug May 5, 2022
13b703a
fix: expose `inBackground` and `suspended in `Application`
farfromrefug May 5, 2022
84fdbfc
fix(core): android fix for recreated activity not creating fragments
farfromrefug May 9, 2022
ca496a5
fix(core): ios release the potential `viewController`
farfromrefug May 12, 2022
f509b3f
feat(application): expose `inBackground` and `suspended` (#9897)
farfromrefug May 14, 2022
8aee22b
feat(RootLayout): add opened and closed events (#9893)
williamjuan027 May 14, 2022
4577410
fix(Utils): dispatchToUIThread
NathanWalker May 14, 2022
d2b366d
feat(Utils): add dataSerialize and dataDeserialize for iOS
NathanWalker May 14, 2022
9814bdf
chore: 8.2.4-alpha.3
NathanWalker May 14, 2022
0cdc1bf
feat(Utils): dataSerialize, dataDeserialize, numberHasDecimals, numbe…
NathanWalker May 15, 2022
7ea2e3b
chore: 8.2.4-alpha.4
NathanWalker May 15, 2022
3857850
chore: store CssProperty.properties for animations
farfromrefug May 15, 2022
2cd8898
fix(core): animation discover css properties
farfromrefug May 15, 2022
c025cf1
chore: store CssProperty.properties for animations
farfromrefug May 15, 2022
152e6c4
fix(core): animation discover css properties
farfromrefug May 15, 2022
04d5f07
fix(core): import fix
farfromrefug May 15, 2022
90dd89f
Merge branch 'alpha' of github.com:NativeScript/NativeScript into alpha
farfromrefug May 15, 2022
710ddae
fix: export 'dataSerialize' from utils (#9909)
CatchABus May 15, 2022
b3cb895
chore: 8.2.4-alpha.5
NathanWalker May 15, 2022
df639ed
fix: incorrect font icon size conversion to device pixels. (#9910)
CatchABus May 18, 2022
f2e47dd
revert: "fix(ios): apply proper border radius to box shadow and view …
NathanWalker May 19, 2022
600cb08
feat(ios): Utils.getRootViewController
NathanWalker May 19, 2022
04b6dfc
chore: husky pre-commit nvm
NathanWalker May 19, 2022
4f312a3
fix(android): font icons had incorrect fallback size (#9914)
CatchABus May 19, 2022
8dad6ed
fix(android): connectivity reporting none on resume (#9915)
jcassidyav May 19, 2022
d9a45a5
chore: 8.2.4-alpha.6
NathanWalker May 20, 2022
945d752
fix(core): android fix for webview not loading local content
farfromrefug May 24, 2022
24c319e
fix(android): race condition on offBackgroundColor view change detect…
NathanWalker Jun 4, 2022
c3bc260
Merge branch 'master' into alpha
NathanWalker Jun 4, 2022
ae86b30
Merge branch 'master' into alpha
NathanWalker Jun 7, 2022
12b9cf1
chore: 8.2.5-alpha.0
NathanWalker Jun 7, 2022
9fadf53
chore: update nps-i and sync version with css-tree
NathanWalker Jun 10, 2022
5dbdfba
chore: nx migrate latest
NathanWalker Jun 10, 2022
59b35ed
chore: typescript 4.7.3
NathanWalker Jun 10, 2022
36e83e2
chore: cleanup scripts
NathanWalker Jun 10, 2022
7bc11a7
Merge branch 'master' into alpha
NathanWalker Jun 15, 2022
edc2e6a
fix(ios): memory leak after using the 'presentViewControllerNavigatio…
dgmachado Jun 16, 2022
15e669f
Merge branch 'master' into alpha
NathanWalker Jun 16, 2022
cd69379
feat(mac): support for Mac Catalyst with ui-mobile-base
NathanWalker Jun 16, 2022
0631f49
fix(ios): memory leak after using 'showModal' passing any Page as par…
Jun 17, 2022
7bbb77a
fix(android): content uri handling improvements (#9936)
triniwiz Jun 19, 2022
0fa394a
chore: 8.2.6-alpha.1
NathanWalker Jun 19, 2022
a0abec6
chore: 8.2.6-alpha.2
NathanWalker Jun 19, 2022
16c350a
chore: merge master
NathanWalker Jun 20, 2022
424814e
chore: nx migrate latest
NathanWalker Jun 20, 2022
441d1b4
fix(ios): label measure correct height when using custom numberOfLine…
mukaschultze Jun 30, 2022
210192d
chore: bump apps ios runtime
NathanWalker Jun 30, 2022
90a05d7
chore: bump dependencies
NathanWalker Jul 1, 2022
48de41c
chore: 8.3.0-alpha.0
NathanWalker Jul 1, 2022
e7e4766
Merge remote-tracking branch 'origin/master' into alpha
NathanWalker Jul 1, 2022
c2cbfa5
perf: cache UIFont construction based on FontDescriptor (#9948)
rigor789 Jul 2, 2022
3dce4ef
chore: 8.3.0-alpha.1
NathanWalker Jul 2, 2022
368e715
chore: cleanup uifont cache logs to be trace enabled
NathanWalker Jul 2, 2022
715057c
chore: 8.3.0-alpha.2
NathanWalker Jul 2, 2022
91df89e
fix(RootLayout): resilience around shadeCover options
NathanWalker Jul 5, 2022
e6a6ba5
Merge branch 'alpha' of github.com:NativeScript/NativeScript into alpha
farfromrefug Jul 6, 2022
3325de5
chore: prevent crash using `link:` with semver
farfromrefug Jul 6, 2022
265a575
fix(core): Frame `navigatingToEvent` event fix
farfromrefug Jul 8, 2022
813ae62
chore: use const
farfromrefug Jul 13, 2022
dad7cba
chore: toolbox demo
farfromrefug Jul 13, 2022
1f6d428
fix: allow animation of any prop
farfromrefug Jul 13, 2022
8801b87
fix: allow animation of any prop
farfromrefug Jul 13, 2022
473bd4a
Merge branch 'master' of github.com:NativeScript/NativeScript
farfromrefug Jul 13, 2022
b13cd47
chore: fix after merge
farfromrefug Jul 13, 2022
e4d04b3
chore: fix after merge
farfromrefug Jul 13, 2022
b578d7d
chore: cleanup
farfromrefug Jul 13, 2022
2c8f6ad
fix: ensure we still remove views from native tree if they dont have …
farfromrefug Jul 15, 2022
1a019e1
feat(core): `knownFolders.externalDocuments()`
farfromrefug Jul 22, 2022
f1c2e3d
chore: fix npm scripts
farfromrefug Jul 22, 2022
e11be2e
fix(core): android native-api-usage
farfromrefug Jul 22, 2022
e7f38cb
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Jul 22, 2022
e7091c4
fix(core): missing export for maxLinesProperty
farfromrefug Jul 22, 2022
40ed258
fix: `externalDocuments` fix
farfromrefug Jul 22, 2022
f899f0a
chore: comment addition
farfromrefug Jul 22, 2022
0b29254
fix: wrong prop
farfromrefug Jul 22, 2022
1bc3227
Merge remote-tracking branch 'nativescript/main'
farfromrefug Aug 25, 2022
ff5c53b
fix: fix back accessibility while only activating it when necessary
farfromrefug Aug 25, 2022
f48fe92
chore: gitignore
farfromrefug Aug 25, 2022
dad92a4
fix(core): ensure we clear the webview client on android
farfromrefug Aug 26, 2022
e41465a
chore: refactor (and improved perfs consequently)
farfromrefug Sep 7, 2022
e771e90
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Sep 7, 2022
0f897d4
fix(core): prevent actionBar being created if not used
farfromrefug Sep 7, 2022
c634b3c
fix(core): prevent actionBar being created if not used
farfromrefug Sep 7, 2022
0024bb7
fix(core): ios fix tap gesture not working
farfromrefug Sep 7, 2022
e306cbb
fix(core): android refactor EditableTextBase to allow sub classes to …
farfromrefug Oct 11, 2022
955d6d3
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Oct 11, 2022
58ec842
Merge branch 'main' of github.com:Akylas/NativeScript into animations…
farfromrefug Oct 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
**/yarn.lock
**/pnpm-lock.yaml
.npmrc
.yarn

# IDEs and editors
.idea
Expand Down Expand Up @@ -54,3 +55,4 @@ Thumbs.db

# types
ios-typings-prj
/packages/core/platforms/android/core.aar
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# . "$(dirname "$0")/_/husky.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"**/*.js": true,
"**/*.js.map": true
},
"tslint.configFile": "./build/tslint.json"
"tslint.configFile": "./build/tslint.json",
"git.enabled": false
}
3 changes: 0 additions & 3 deletions apps/automated/nativescript.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ export default {
android: {
v8Flags: '--expose_gc',
},
cli: {
packageManager: 'npm',
},
} as NativeScriptConfig;
2 changes: 1 addition & 1 deletion apps/automated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@nativescript/android": "~8.3.0",
"@nativescript/ios": "~8.3.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"@nativescript/webpack": "5.0.7",
"typescript": "4.7.3"
},
"gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3",
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/page11.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function createPage() {
//page.content = GridLayout;
page.content = StackLayout;
var x = 1;
btn1.on(button.Button.tapEvent, function () {
btn1.on(button.tapEvent, function () {
x++;
var gravity;
//btn1.android.setLayoutParams(new android.view.ViewGroup.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, android.view.ViewGroup.LayoutParams.FILL_PARENT));
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/page7.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function createPage() {
var vAligns: CoreTypes.VerticalAlignmentType[] = ['stretch', 'top', 'middle', 'bottom'];
//var hAligns = ["stretch", "left", "center", "right"];
var count = 0;
btn.on(buttons.Button.tapEvent, function () {
btn.on(buttons.tapEvent, function () {
//page.css = "button { vertical-align:" + vAligns[(count++) % 4] + " }";
btn.verticalAlignment = vAligns[count++ % 4];
});
Expand Down
4 changes: 2 additions & 2 deletions apps/automated/src/pages/page8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createPage() {
var counter = 0;
var btn = new btns.Button();
btn.text = 'tap';
btn.on(btns.Button.tapEvent, function () {
btn.on(btns.tapEvent, function () {
btn.text = 'hi: ' + counter++;
});
btn.isEnabled = false;
Expand All @@ -52,7 +52,7 @@ export function createPage() {
var info = new btns.Button();
info.text = 'info';
info.className = 'info';
info.on(btns.Button.tapEvent, function () {
info.on(btns.tapEvent, function () {
info.text = 'hi: ' + counter++;
btn.isEnabled = true;
});
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/property-bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createPage() {
var count = 0;
var control = new btns.Button();
control.text = 'test control';
control.on(btns.Button.tapEvent, (data) => {
control.on(btns.tapEvent, (data) => {
control.text = 'count: ' + count++;
});
grid.addChild(control);
Expand Down
18 changes: 0 additions & 18 deletions apps/automated/src/ui/animation/animation-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,6 @@ export function test_AnimateOpacity(done) {
});
}

export function test_AnimateOpacity_ShouldThrow_IfNotNumber() {
var label = new Label();
helper.buildUIAndRunTest(label, (views: Array<viewModule.View>) => {
TKUnit.assertThrows(() => {
label.animate({ opacity: <any>'0.75' });
}, 'Setting opacity to a non number should throw.');
});
}

export function test_AnimateDelay_ShouldThrow_IfNotNumber() {
var label = new Label();
helper.buildUIAndRunTest(label, (views: Array<viewModule.View>) => {
Expand Down Expand Up @@ -303,15 +294,6 @@ export function test_AnimateIterations_ShouldThrow_IfNotNumber() {
});
}

export function test_AnimateRotate_ShouldThrow_IfNotNumber() {
var label = new Label();
helper.buildUIAndRunTest(label, (views: Array<viewModule.View>) => {
TKUnit.assertThrows(() => {
label.animate({ rotate: <any>'1' });
}, 'Setting rotate to a non number should throw.');
});
}

export function test_AnimateScale_ShouldThrow_IfNotPair() {
var label = new Label();
helper.buildUIAndRunTest(label, (views: Array<viewModule.View>) => {
Expand Down
3 changes: 2 additions & 1 deletion apps/automated/src/ui/button/button-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as helper from '../../ui-helper';
import { View, EventData, Button, Observable, Color, Page, FormattedString } from '@nativescript/core';
import * as buttonTestsNative from './button-tests-native';
import * as spanModule from '@nativescript/core/text/span';
import { tapEvent } from '@nativescript/core/ui/button';

// >> button-require-others
import { BindingOptions } from '@nativescript/core/ui/core/bindable';
Expand Down Expand Up @@ -100,7 +101,7 @@ var _testOnClick = function (views: Array<View>) {

var actualValue = false;
// >> button-tap
button.on(Button.tapEvent, function (args: EventData) {
button.on(tapEvent, function (args: EventData) {
// Do something
// >> (hide)
actualValue = true;
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/ui/page/page-tests-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function _test_PageNavigation_EventSequence(withTransition: boolean) {
helper.navigateWithEntry(navigationEntry);
helper.goBack();

const expectedEventSequence = ['navigatingTo', 'loaded', 'navigatedTo', 'navigatingFrom', 'unloaded', 'navigatedFrom'];
const expectedEventSequence = ['navigatingTo', 'loaded', 'navigatedTo', 'navigatingFrom', 'navigatedFrom', 'unloaded'];
TKUnit.arrayAssert(eventSequence, expectedEventSequence, 'Actual event sequence is not equal to expected. Actual: ' + eventSequence + '; Expected: ' + expectedEventSequence);
}

Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/ui/root-view/mymodule/MyControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class MyControl extends stackLayoutModule.StackLayout {
lbl.id = 'my-test-label';
var btn = new button.Button();
btn.text = 'Tap me!';
btn.on(button.Button.tapEvent, (args: EventData) => {
btn.on(button.tapEvent, (args: EventData) => {
lbl.text = 'Tap ' + counter++;
});

Expand Down
4 changes: 2 additions & 2 deletions apps/automated/src/ui/tab-view/tab-view-navigation-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Frame } from '@nativescript/core/ui/frame';
import { Page } from '@nativescript/core/ui/page';
import { ListView, ItemEventData } from '@nativescript/core/ui/list-view';
import { TabView, TabViewItem } from '@nativescript/core/ui/tab-view';
import { Button } from '@nativescript/core/ui/button';
import { Button, tapEvent } from '@nativescript/core/ui/button';

var ASYNC = 2;

Expand Down Expand Up @@ -44,7 +44,7 @@ function _createListView(): ListView {
var button = <Button>args.view;
if (!button) {
button = new Button();
button.on(Button.tapEvent, _clickHandlerFactory(args.index));
button.on(tapEvent, _clickHandlerFactory(args.index));
args.view = button;
}

Expand Down
3 changes: 2 additions & 1 deletion apps/automated/src/xml-declaration/mymodule/MyControl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { StackLayout, Label, Button, EventData } from '@nativescript/core';
import { tapEvent } from '@nativescript/core/ui/button';

export class MyControl extends StackLayout {
constructor() {
Expand All @@ -9,7 +10,7 @@ export class MyControl extends StackLayout {
var lbl = new Label();
var btn = new Button();
btn.text = 'Tap me!';
btn.on(Button.tapEvent, (args: EventData) => {
btn.on(tapEvent, (args: EventData) => {
lbl.text = 'Tap ' + counter++;
});

Expand Down
3 changes: 0 additions & 3 deletions apps/toolbox/nativescript.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ export default {
v8Flags: '--expose_gc',
suppressCallJSMethodExceptions: false,
},
cli: {
packageManager: 'npm',
},
} as NativeScriptConfig;
3 changes: 3 additions & 0 deletions apps/toolbox/src/main-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="animation-curves-page" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
<Button text="layout-stack-height-page" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
<Button text="css-animations" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
<Button text="a11y" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
<Button text="box-shadow" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
<Button text="css-playground" tap="{{ viewDemo }}" class="btn btn-primary btn-view-demo" />
Expand Down
68 changes: 68 additions & 0 deletions apps/toolbox/src/pages/animation-curves-page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { getViewById, View, Page, Button, SegmentedBar, SegmentedBarItem, Label, Animation, AnimationDefinition } from '@nativescript/core';

export function easeAnimate(args) {
const clicked = args.object as Button;
const page: Page = clicked.page;
const target = getViewById(page, 'target') as Label;
const select = getViewById(page, 'select') as SegmentedBar;
const item: SegmentedBarItem = select.items[select.selectedIndex];
const easeType: string = clicked.text;
const extent = 128;
let duration = easeType === 'spring' ? 800 : 500;
let delay = easeType === 'spring' ? 0 : 200;
let animateKey: string = null;
let animateValueTo: any = null;
let animateValueFrom: any = null;

switch (item.title) {
case 'height':
animateKey = 'height';
target.originX = target.originY = 0;
animateValueTo = 0;
animateValueFrom = extent;
break;
case 'width':
animateKey = 'width';
target.originX = target.originY = 0;
animateValueTo = 0;
animateValueFrom = extent;
break;
case 'opacity':
animateKey = 'opacity';
animateValueTo = 0;
animateValueFrom = 1;
break;
case 'color':
animateKey = 'backgroundColor';
animateValueTo = 'blue';
animateValueFrom = 'purple';
break;
case 'rotate':
animateKey = 'rotate';
target.originX = target.originY = 0.5;
animateValueTo = 180;
animateValueFrom = 0;
break;
case 'scale':
animateKey = 'scale';
target.originX = target.originY = 0.5;
animateValueTo = { x: 1.5, y: 1.5 };
animateValueFrom = { x: 1, y: 1 };
break;
}
target
.animate({
[animateKey]: animateValueTo,
duration,
curve: easeType,
})
.then(() => {
return target.animate({
[animateKey]: animateValueFrom,
delay,
duration,
curve: easeType,
});
})
.catch((e) => console.log(e));
}
31 changes: 31 additions & 0 deletions apps/toolbox/src/pages/animation-curves-page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<Page>
<AbsoluteLayout>
<GridLayout top="0" left="0" width="100%" rows="48, 48, 48, 48, 48, 48" columns="*,*,*">

<Label row="0" colSpan="3" text="Animate"/>
<SegmentedBar row="1" colSpan="3" id="select">
<SegmentedBar.items>
<SegmentedBarItem title="height"/>
<SegmentedBarItem title="width"/>
<SegmentedBarItem title="opacity"/>
<SegmentedBarItem title="color"/>
<SegmentedBarItem title="rotate"/>
<SegmentedBarItem title="scale"/>
</SegmentedBar.items>
</SegmentedBar>

<Label row="2" colSpan="3" text="Easing"/>
<Button row="3" col="0" text="easeIn" tap="easeAnimate"/>
<Button row="3" col="1" text="easeOut" tap="easeAnimate"/>
<Button row="3" col="2" text="easeInOut" tap="easeAnimate"/>
<Button row="4" col="0" text="spring" tap="easeAnimate"/>
<Button row="4" col="1" text="linear" tap="easeAnimate"/>
<Button row="4" col="2" text="ease" tap="easeAnimate"/>
</GridLayout>

<Label top="300" left="96" height="128" width="128"
borderColor="purple" borderWidth="1"/>
<Label top="300" left="96" height="128" width="128"
id="target" backgroundColor="purple"/>
</AbsoluteLayout>
</Page>
79 changes: 79 additions & 0 deletions apps/toolbox/src/pages/css-animations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
.fade-blink {
animation-name: fadeAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.scale-blink {
animation-name: scaleAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.slide-blink {
animation-name: slideAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.color-blink {
animation-name: colorAndBack;
animation-duration: 800ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}

@keyframes fadeAndBack {
0% {
opacity: 1;
}

50% {
opacity: 0;
}

100% {
opacity: 1;
}
}
@keyframes colorAndBack {
0% {
background-color: blue;
}

50% {
background-color: yellow;
}

100% {
background-color: blue;
}
}

@keyframes slideAndBack {
0% {
transform: translateY(0);
}

50% {
transform: translateY(100%);
}

100% {
transform: translateY(0);
}
}

@keyframes scaleAndBack {
0% {
transform: scale(1, 1);
}

50% {
transform: scale(0, 0);
}

100% {
transform: scale(1, 1);
}
}
Loading