Skip to content
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

fix(ios): Nested modals #10448

Open
wants to merge 600 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
600 commits
Select commit Hold shift + click to select a range
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
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…
dgmachado 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
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
a3f4e47
chore: package.json fix
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
b872b8a
fix(core): android fix for `knownFolders.externalDocuments()` in some…
farfromrefug Oct 17, 2022
590405d
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Oct 17, 2022
88a5969
chore: new build
farfromrefug Oct 17, 2022
1f1987f
fix(core): try to prevent unwanted requestLayout on views creations
farfromrefug Oct 21, 2022
99aab15
Merge remote-tracking branch 'origin/main'
farfromrefug Oct 23, 2022
02ee7aa
chore: refactor the detection of sdk int version
farfromrefug Oct 23, 2022
e245f81
fix(core): `systemAppearance` fix for when called early
farfromrefug Oct 24, 2022
2d5848e
fix(core): (TESTING) ensure getRootView always return the correct view
farfromrefug Oct 24, 2022
c8e3e54
fix(core): allow passing fontWeight as a number
farfromrefug Oct 26, 2022
147a87e
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Oct 27, 2022
eb8fdc7
chore: refactor
farfromrefug Oct 29, 2022
61d6ed6
chore: fixed font typings
farfromrefug Nov 1, 2022
2cb3f10
chore: refactor to remove eslint warning
farfromrefug Nov 1, 2022
908ef16
fix: dont apply system classes in `className`. It will be handled thr…
farfromrefug Nov 1, 2022
90ba69b
fix(core): modal css apply fix
farfromrefug Nov 1, 2022
8c54a8b
fix(core): iOS Frame `navigatingTo` event not fired
farfromrefug Nov 2, 2022
7e09029
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Nov 2, 2022
835857c
fix(core): android fix for `path.normalize`
farfromrefug Nov 4, 2022
4182a31
chore: native-api-usage changes
farfromrefug Nov 4, 2022
6465aac
fix(core): android native-api-usage add missing for ImageSource
farfromrefug Nov 9, 2022
e4f8ce0
fix(core): correctly normalize path on all android versions
farfromrefug Nov 9, 2022
735fb05
Merge remote-tracking branch 'nativescript/main' into main
farfromrefug Nov 9, 2022
ceaca1c
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Nov 9, 2022
1b45a2d
Merge remote-tracking branch 'origin/main' into main
farfromrefug Nov 9, 2022
37ee830
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Nov 15, 2022
8edf1a8
chore: import fix
farfromrefug Nov 16, 2022
318bc1a
fix(core): prevent a circular reference because of `SDK_VERSION
farfromrefug Nov 18, 2022
1d22d88
fix(core): prevent a circular reference because of `SDK_VERSION
farfromrefug Nov 18, 2022
cd92587
Merge branch 'main' into sdk_version2
NathanWalker Nov 18, 2022
3c4a6f2
chore: SDK_VERSION import fix
farfromrefug Nov 20, 2022
051f851
Merge remote-tracking branch 'origin/sdk_version2' into fixing_sdk_ve…
farfromrefug Nov 20, 2022
21b94b9
Merge branch 'fixing_sdk_version' of [email protected]:NativeScript/Nati…
farfromrefug Nov 20, 2022
9ea7d2b
chore: refactoring to try and prevent import warning
farfromrefug Nov 20, 2022
9dc0cae
chore: references fix
farfromrefug Nov 20, 2022
1f8a45e
Merge remote-tracking branch 'origin/main' into main
farfromrefug Nov 20, 2022
0354faf
Merge remote-tracking branch 'nativescript/main' into main
farfromrefug Nov 20, 2022
42be033
fix(core): android native-api-usage fix after merge
farfromrefug Nov 24, 2022
5954d7a
Merge remote-tracking branch 'refs/remotes/nativescript/main'
farfromrefug Nov 24, 2022
5e1c6e4
chore: fix after merge
farfromrefug Nov 24, 2022
83c6b3a
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Dec 1, 2022
818e162
Merge branch 'main' of github.com:Akylas/NativeScript
farfromrefug Dec 1, 2022
33bae2f
feat(core): new autoFillTypes
farfromrefug Jan 6, 2023
39cfdf0
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jan 6, 2023
c7580bd
chore: cleanup
farfromrefug Jan 6, 2023
b3c663a
chore: fix most eslint issues
farfromrefug Jan 6, 2023
6c5ef9c
chore: eslint fix
farfromrefug Jan 6, 2023
35edb58
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jan 10, 2023
fca4455
fix: missing typings for intellisense
farfromrefug Jan 19, 2023
7aa89fa
fix(android): missing native-api-usage
farfromrefug Jan 20, 2023
35329ea
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jan 23, 2023
956a003
chore: better to not use * as it filters more classes (unwanted class…
farfromrefug Jan 23, 2023
3713da0
fix(android): native-api-usage fix after last changes
farfromrefug Jan 23, 2023
7fa6c9b
fix(android): improved native-api-usage after removing *.
farfromrefug Jan 24, 2023
8e2eb1c
chore: missed for native-api-usage
farfromrefug Jan 24, 2023
db6dce1
fix(core): android native-api-usage fix
farfromrefug Jan 24, 2023
d863d61
fix(core): android wrap init in trycatch to get possible error
farfromrefug Jan 28, 2023
12a67fa
chore:bump tslib
farfromrefug Jan 28, 2023
0b0cbe3
fix(core): android native-api-usage fix
farfromrefug Jan 28, 2023
f3229e4
fix(core): android removed native TextTransform as it seems to be unused
farfromrefug Jan 30, 2023
5179f13
fix(core): remove unnecessary set of native text value change for for…
farfromrefug Jan 30, 2023
f90df18
fix: make span set text faster
farfromrefug Jan 30, 2023
9b82614
fix: ensure debugger code is removed in production
farfromrefug Jan 31, 2023
7cdff46
chore: reformat
farfromrefug Jan 31, 2023
31b4209
chore: type imports
farfromrefug Jan 31, 2023
a580e9e
chore: disable for now
farfromrefug Feb 6, 2023
2ae8e4a
chore: yarn workspace
farfromrefug Feb 6, 2023
60750a9
chore: typings for tests
farfromrefug Feb 6, 2023
0007cc2
fix(core): native-api-usage fixes
farfromrefug Feb 6, 2023
a33a02d
fix(core): apps native-api-usage
farfromrefug Feb 6, 2023
dfe651e
chore(core): fixed import errors
farfromrefug Feb 6, 2023
29ffc47
chore(core): fix deprecated methods
farfromrefug Feb 6, 2023
8038ea5
chore: should not be commited...
farfromrefug Feb 6, 2023
b76b08f
fix: store old inlineStyle to allow reset of value if inlineStyle cha…
farfromrefug Feb 22, 2023
25febb8
fix(core): improved native-api-usage
farfromrefug Feb 22, 2023
a58149b
Merge remote-tracking branch 'nativescript/main'
farfromrefug Feb 22, 2023
87d832a
Merge remote-tracking branch 'nativescript/main'
farfromrefug Mar 23, 2023
e177a78
chore: fix typing after merge
farfromrefug Mar 23, 2023
c50b4df
fix: remove hacks from https://github.com/NativeScript/NativeScript/p…
farfromrefug Mar 23, 2023
0859ce4
fix: global declarations fix
farfromrefug Mar 23, 2023
d4ad603
chore: dep fix
farfromrefug Mar 29, 2023
3f35692
Merge remote-tracking branch 'nativescript/main'
farfromrefug Mar 29, 2023
3f49acf
chore: yarn workspace fixes
farfromrefug Apr 21, 2023
0547a35
chore: ios animation optional animationBlock to be called in UIView a…
farfromrefug Apr 21, 2023
fe119a2
chore: cleanup unused code
farfromrefug Apr 21, 2023
7faa62e
fix: ios animation fix for completion block being called too soon
farfromrefug Apr 21, 2023
32a7d9e
Merge remote-tracking branch 'origin/main'
farfromrefug Apr 27, 2023
0d6452a
Merge remote-tracking branch 'nativescript/main'
farfromrefug Apr 27, 2023
2bf811a
chore: refactor
farfromrefug Apr 27, 2023
83d4b9c
Merge remote-tracking branch 'nativescript/main'
farfromrefug May 23, 2023
5267a1f
fix(android): native api usage fix after last changes
farfromrefug Jun 2, 2023
ecd8894
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jun 4, 2023
33cdc1c
chore: regression fix with missing once from Application
farfromrefug Jun 12, 2023
63ab716
Merge remote-tracking branch 'nativescript/main'
farfromrefug Jun 26, 2023
cc304a4
chore: fix after merge
farfromrefug Jun 26, 2023
7c71948
chore: prevent building without ts-patch installed
farfromrefug Jul 7, 2023
1d1be76
chore: bump
farfromrefug Jul 7, 2023
b0f2179
chore: yarn workspace + project
farfromrefug Jul 24, 2023
00675da
chore: trying to fix yarn workspace issues
farfromrefug Jul 24, 2023
525e65e
fix(core): android fix for EditableText cursor being placed correcly …
farfromrefug Jul 24, 2023
7f0420a
chore: ensure ts-patch is always installed
farfromrefug Jul 24, 2023
256c8b7
chore: ts-patch 3.x is only for ts >= 5
farfromrefug Jul 24, 2023
1d89983
chore: fixed widgets aar build and copy to dist
farfromrefug Jul 26, 2023
2a4f2d2
chore: fixed build scripts to correctly copy widgets aar
farfromrefug Jul 26, 2023
4651791
fix(ui-mobile-base): fixed readTextSyncInternal and encoding issue
farfromrefug Jul 26, 2023
fe2d56e
chore: updated widgets lib
farfromrefug Aug 8, 2023
e89234a
Merge remote-tracking branch 'nativescript/main'
farfromrefug Aug 8, 2023
a287c95
fix: wrong import fixes
farfromrefug Aug 10, 2023
5d87404
fix: print error stack when possible
farfromrefug Aug 10, 2023
a1af0df
fix: dont add decorators metadata
farfromrefug Aug 10, 2023
e42c32e
fix: fix for classes handling fontSize without setting fontInternal (…
farfromrefug Aug 12, 2023
ab6f4f6
fix(android): dont set fontInternal after fontSize for text-base. Use…
farfromrefug Aug 12, 2023
ff39c63
fix(android): faster visibility property
farfromrefug Aug 12, 2023
b0c5a5e
chore: refactor
farfromrefug Aug 13, 2023
42ee720
fix(android): prevent infinite loops text-base change event
farfromrefug Aug 15, 2023
9140382
fix: prevent crash if style property is malformed
farfromrefug Sep 4, 2023
699b420
feat: allow native string (NSAttributedString / Spannable) to be set …
farfromrefug Sep 4, 2023
fdbbd50
Merge remote-tracking branch 'nativescript/main'
farfromrefug Sep 4, 2023
825863b
fix(android): allow to hide keyboard from a textfield which was part …
farfromrefug Sep 4, 2023
15c167f
fix(android): outline path is only supported on api >=33. But we can …
farfromrefug Sep 27, 2023
fac52be
fix: leading support for debounce
farfromrefug Sep 27, 2023
7e5cff2
chore: return to stop the process
farfromrefug Sep 27, 2023
270c4b4
chore: ignore android build errors
farfromrefug Sep 27, 2023
6261f27
chore: new version
farfromrefug Sep 27, 2023
8a6cbe7
Merge remote-tracking branch 'nativescript/main'
farfromrefug Sep 27, 2023
aa8ea81
fix(android): `clipToBounds` was not working
farfromrefug Sep 28, 2023
838bbbb
chore: build script fix
farfromrefug Sep 28, 2023
047c24c
chore: should not be commited
farfromrefug Sep 28, 2023
2a3fd1d
fix(android): shared element transition not working
farfromrefug Sep 29, 2023
4339484
fix: isLoaded default to false and not undefined
farfromrefug Sep 29, 2023
a49e0db
fix: shared element transition now working with ListView/CollectionVi…
farfromrefug Sep 29, 2023
33a1eb8
feat(android): new `activityCreate` and `fragmentCreate` events
farfromrefug Sep 29, 2023
781a718
fix(android): more transition fixes
farfromrefug Oct 9, 2023
74478e1
fix(android): native api usage fix for shared element transitions
farfromrefug Oct 9, 2023
06df4fa
fix(android): rewrite the GridLayout to make as less JNI calls as pos…
farfromrefug Oct 10, 2023
be34fd3
Merge remote-tracking branch 'nativescript/main'
farfromrefug Oct 10, 2023
67619c4
fix:(android): removed unecessary code in GridLayout
farfromrefug Oct 13, 2023
e19286e
Merge remote-tracking branch 'nativescript/main'
farfromrefug Oct 13, 2023
d5461b8
chore: ignore aar files
farfromrefug Oct 13, 2023
b8f064e
fix(android): added construtor parameter to `PageTransition` to allow…
farfromrefug Oct 16, 2023
e8a9a5b
fix: profile decorator fix
farfromrefug Oct 19, 2023
9eb43a3
chore: removed log
farfromrefug Oct 24, 2023
0b4f9f7
feat: `getAllJSON` and `getNative` for `ApplicationSettings`
farfromrefug Oct 24, 2023
9269988
fix: `getAllJSON` now correctly returns number (though a bit too slow…
farfromrefug Oct 26, 2023
5e2d909
fix: better typings for `getEntities` method in filesystem
farfromrefug Oct 26, 2023
9329ac1
fix(android): wrong parameters to force hiding keyboard
farfromrefug Oct 29, 2023
e701af4
feat: selectable property for editable text base. This allow NOT edit…
farfromrefug Nov 7, 2023
7753966
fix(android): dont resize image in ImageAsset loading
farfromrefug Nov 7, 2023
c4dc606
chore: refactor
farfromrefug Nov 13, 2023
a6c6fce
fix(android): prevent error while navigation back after using page tr…
farfromrefug Nov 13, 2023
71a274b
chore: cleaned up logs
farfromrefug Nov 14, 2023
a3fefbd
feat: `defaultVisualState` to override 'normal' default visualState (…
farfromrefug Nov 15, 2023
879dd2a
fix(android): unload/load pages while navigating forward then back
farfromrefug Nov 16, 2023
c278eed
fix: defer `_onCssStateChange` for unloaded views. It will be called …
farfromrefug Nov 16, 2023
009592a
feat: `initRootView` event.
farfromrefug Nov 16, 2023
9816db1
fix: `setAlpha` and other `Color` method were returing a `BaseColor` …
farfromrefug Nov 16, 2023
4730904
fix: modal dialog root view now has the `rootView` as parent to be ab…
farfromrefug Nov 16, 2023
82d473c
fix: cleanup the modal parent once closed.
farfromrefug Nov 16, 2023
bd75a56
fix: for now fix `requestAnimationFrame` to work with svelte
farfromrefug Nov 17, 2023
6780d8d
feat(android): basic `sharedTransitionTags` for `SharedTransition`
farfromrefug Nov 17, 2023
af25f80
chore(android): added all constructors to native layouts so that they…
farfromrefug Nov 18, 2023
41751e5
chore(android): fix build after last change
farfromrefug Nov 18, 2023
3ddbf66
fix(ios): `ImageAsset` `getImageAsync` fix to return correct image size
farfromrefug Nov 22, 2023
3e1350d
fix(ios): ensure children can request layout after suspension ended i…
farfromrefug Nov 22, 2023
74d356b
chore: use `__ANDROID__` and `__IOS__` instead of the global variables
farfromrefug Nov 23, 2023
a3beb48
Merge branch 'main' of github.com:NativeScript/NativeScript
farfromrefug Nov 23, 2023
1c9b98a
chore: tsc error fixes
farfromrefug Nov 23, 2023
f7227e9
chore: use @nativescript/theme
farfromrefug Nov 23, 2023
e6420af
chore: update deps to fix dependencies (yarn)
farfromrefug Nov 23, 2023
5244df2
chore: yarn / app build fixes
farfromrefug Nov 23, 2023
04ea076
chore: @nativescript/theme update fix
farfromrefug Nov 23, 2023
2adf23d
chore: missing dep
farfromrefug Nov 23, 2023
0200f4f
fix(ios): can now show modal on top of each other
farfromrefug Nov 24, 2023
dcc714e
chore: not needed anymore
farfromrefug Nov 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions .eslintrc.json
Expand Up @@ -2,6 +2,16 @@
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module",
"project": "tsconfig.eslint.json",
"warnOnUnsupportedTypeScriptVersion": false
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -11,6 +11,7 @@
**/yarn.lock
**/pnpm-lock.yaml
.npmrc
.yarn

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

# types
ios-typings-prj
/packages/core/platforms/android/core.aar
5 changes: 4 additions & 1 deletion .husky/pre-commit
@@ -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
Expand Up @@ -6,5 +6,6 @@
"**/*.js": true,
"**/*.js.map": true
},
"eslint.validate": ["json"]
"eslint.validate": ["json"],
"typescript.tsdk": "node_modules/typescript/lib"
}
5 changes: 5 additions & 0 deletions .yarnrc.yml
@@ -0,0 +1,5 @@
nmHoistingLimits: workspaces

nodeLinker: node-modules

yarnPath: tools/.yarn/releases/yarn-4.0.2.cjs
3 changes: 0 additions & 3 deletions apps/automated/nativescript.config.ts
Expand Up @@ -7,7 +7,4 @@ export default {
android: {
v8Flags: '--expose_gc',
},
cli: {
packageManager: 'npm',
},
} as NativeScriptConfig;
6 changes: 3 additions & 3 deletions apps/automated/package.json
Expand Up @@ -7,13 +7,13 @@
"url": "https://github.com/NativeScript/NativeScript.git"
},
"dependencies": {
"@nativescript/core": "file:../../packages/core",
"nativescript-theme-core": "file:../../node_modules/nativescript-theme-core"
"@nativescript/core": "*",
"@nativescript/theme": "*"
},
"devDependencies": {
"@nativescript/android": "~8.5.0",
"@nativescript/ios": "~8.5.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"@nativescript/webpack": "*",
"circular-dependency-plugin": "^5.2.2",
"typescript": "~5.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/automated/src/pages/page11.ts
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
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
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
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
2 changes: 1 addition & 1 deletion apps/automated/src/tk-unit.ts
Expand Up @@ -379,7 +379,7 @@ export function waitUntilReady(isReady: () => boolean, timeoutSec: number = 5, s

// Setup for the Android modal loop implementation
// TODO: If these platform-specific implementations continue to grow, think of per-platform separation (TKUnit.android)
let nextMethod;
let nextMethod: java.lang.reflect.Method;
let targetField;
let prepared;

Expand Down
18 changes: 0 additions & 18 deletions apps/automated/src/ui/animation/animation-tests.ts
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
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
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
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
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
@@ -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
5 changes: 1 addition & 4 deletions apps/toolbox/nativescript.config.ts
Expand Up @@ -7,8 +7,5 @@ export default {
android: {
v8Flags: '--expose_gc',
suppressCallJSMethodExceptions: false,
},
cli: {
packageManager: 'npm',
},
}
} as NativeScriptConfig;
9 changes: 5 additions & 4 deletions apps/toolbox/package.json
Expand Up @@ -7,14 +7,15 @@
"url": "https://github.com/NativeScript/NativeScript.git"
},
"dependencies": {
"@nativescript/core": "file:../../packages/core",
"nativescript-theme-core": "file:../../node_modules/nativescript-theme-core",
"@nativescript/imagepicker": "^1.0.6"
"@akylas/nativescript": "*",
"@nativescript/imagepicker": "*",
"@nativescript/theme": "*"
},
"devDependencies": {
"@nativescript/android": "~8.5.0",
"@nativescript/core": "*",
"@nativescript/ios": "~8.5.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"@nativescript/webpack": "*",
"typescript": "~5.2.0"
}
}
2 changes: 1 addition & 1 deletion apps/toolbox/src/app.css
@@ -1,4 +1,4 @@
@import 'nativescript-theme-core/css/core.light.css';
@import '@nativescript/theme/css/core';
@import './_app-platform.css';

/*
Expand Down
3 changes: 3 additions & 0 deletions apps/toolbox/src/main-page.xml
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
@@ -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
@@ -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>