Skip to content

Commit 86a3652

Browse files
committed
chore: cleanup
1 parent 4cff0e8 commit 86a3652

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+660
-673
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
# [9.0.0](https://github.com/NativeScript/nativescript-angular/compare/8.20.4...9.0.0) (2020-06-03)
33

44

5+
6+
### Bug Fixes
7+
8+
* **bindable:** parent referenced expression-values now load properly using an update call ([#8670](https://github.com/NativeScript/NativeScript/issues/8670)) ([6b0028a](https://github.com/NativeScript/NativeScript/commit/6b0028afd7b554914b039cdf371e8e30f6e02dac)), closes [#8666](https://github.com/NativeScript/NativeScript/issues/8666) [#6981](https://github.com/NativeScript/NativeScript/issues/6981) [#5054](https://github.com/NativeScript/NativeScript/issues/5054)
9+
* **scroll-view:** android 'isScrollEnabled' will apply if changed while gesture is underway ([#8695](https://github.com/NativeScript/NativeScript/issues/8695)) ([02ec7f1](https://github.com/NativeScript/NativeScript/commit/02ec7f104d327df53df687ddd1b8ac5b1cdc04ba))
10+
* **snapshots:** android is not defined ([#8691](https://github.com/NativeScript/NativeScript/issues/8691)) ([a8bbd7c](https://github.com/NativeScript/NativeScript/commit/a8bbd7c1e580e77e7ad5ddc7be6845e3d8fb02de))
11+
* **text-view:** only reload text if hint is showing on ios ([#8662](https://github.com/NativeScript/NativeScript/issues/8662)) ([ec17727](https://github.com/NativeScript/NativeScript/commit/ec17727e91f7a3209ada2c7de0bcf59c98c4e62a))
12+
13+
14+
### Features
15+
16+
* **connectivity:** getActiveNetworkInfo and NetworkInfo modern compliance [#8580](https://github.com/NativeScript/NativeScript/issues/8580) ([#8652](https://github.com/NativeScript/NativeScript/issues/8652)) ([635f31f](https://github.com/NativeScript/NativeScript/commit/635f31f81f7826112142c707aff2a66c2b480b0e))
17+
* **dialog:** ios destructive style from options ([#8676](https://github.com/NativeScript/NativeScript/issues/8676)) ([bb531ce](https://github.com/NativeScript/NativeScript/commit/bb531ce71028f9c4fd4d753df16c82104f158e35))
18+
* **ImageSource:** resize method ([#8678](https://github.com/NativeScript/NativeScript/issues/8678)) ([bd12baf](https://github.com/NativeScript/NativeScript/commit/bd12bafb4aae8f1c523be4c7e04fa73722092304))
19+
* **text-view:** allow easy subclassing on ios ([#8663](https://github.com/NativeScript/NativeScript/issues/8663)) ([7d36447](https://github.com/NativeScript/NativeScript/commit/7d364474c23e17acf7696f159d3945d8a73d63e6))
20+
21+
522
### Features
623

724
* angular 9 ivy ([fbe2450](https://github.com/NativeScript/nativescript-angular/commit/fbe2450))
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.btn-primary {
2+
background-color: pink;
3+
}

e2e/animation-examples/app/animation-builder.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { Component, ViewChild } from '@angular/core';
44
@Component({
55
template: `
66
<Button #button (tap)="makeAnimation()" class="btn btn-primary" automationText="tapToDisappear" text="Tap to disappear!"></Button>
7-
`
7+
`,
8+
styleUrls: ['./animation-builder.component.scss']
89
})
910
export class AnimationBuilderComponent {
1011
@ViewChild('button', { static: false }) button;

e2e/animation-examples/app/main.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
import { platformNativeScript, NativeScriptDebug } from "@nativescript/angular";
2-
import { setCategories, enable } from "@nativescript/core/trace";
3-
import {
4-
GridLayout,
5-
ItemSpec,
6-
GridUnitType,
7-
} from '@nativescript/core/ui/layouts/grid-layout';
8-
import {
9-
HorizontalAlignment,
10-
VerticalAlignment,
11-
} from '@nativescript/core/ui/enums/enums';
2+
import { Trace, GridLayout, GridUnitType, ItemSpec, VerticalAlignment } from "@nativescript/core";
123

134
import { AppModule } from "./app.module";
145

15-
setCategories(NativeScriptDebug.animationsTraceCategory);
16-
enable();
6+
Trace.setCategories(NativeScriptDebug.animationsTraceCategory);
7+
Trace.enable();
178

189
class LaunchAnimation extends GridLayout {
1910
circle: GridLayout;
@@ -34,8 +25,8 @@ class LaunchAnimation extends GridLayout {
3425
this.circle.width = 30;
3526
this.circle.height = 30;
3627
this.circle.borderRadius = 15;
37-
this.circle.horizontalAlignment = HorizontalAlignment.center;
38-
this.circle.verticalAlignment = VerticalAlignment.center;
28+
this.circle.horizontalAlignment = 'center';
29+
this.circle.verticalAlignment = 'middle';
3930
this.circle.backgroundColor = '#fff';
4031
this.animatedContainer.addRow(new ItemSpec(1, GridUnitType.STAR));
4132
this.animatedContainer.addRow(new ItemSpec(1, GridUnitType.AUTO));

e2e/animation-examples/ngcc.config.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

e2e/animation-examples/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"nativescript-theme-core": "~1.0.2",
2626
"reflect-metadata": "~0.1.8",
2727
"rxjs": "~6.5.5",
28-
"@nativescript/core": "~6.5.8",
28+
"@nativescript/core": "~7.0.0-rc.9",
2929
"zone.js": "^0.10.3"
3030
},
3131
"devDependencies": {
@@ -41,13 +41,16 @@
4141
"lazy": "~1.0.11",
4242
"mocha": "~8.0.1",
4343
"mochawesome": "~6.1.1",
44+
"node-sass": "~4.14.1",
4445
"nativescript-css-loader": "~0.26.0",
45-
"@nativescript/webpack": "~2.0.0-alpha.2",
46+
"@nativescript/webpack": "~2.0.0-alpha.3",
4647
"typescript": "~3.9.0"
4748
},
4849
"scripts": {
4950
"clean": "npx rimraf hooks node_modules platforms package-lock.json",
5051
"setup": "cd ../../nativescript-angular && npm run prep.apps && cd ../e2e/animation-examples && npm run clean",
52+
"ngcc": "ngcc --properties es2015 module main --first-only",
53+
"postinstall": "npm run ngcc",
5154
"u": "update-ns-webpack",
5255
"e2e": "tsc -p e2e && mocha --opts ../config/mocha.opts --recursive e2e --appiumCapsLocation ../config/appium.capabilities.json",
5356
"e2e-watch": "tsc -p e2e --watch",

e2e/animation-examples/tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es5",
3+
"module": "ESNext",
4+
"target": "es2015",
55
"experimentalDecorators": true,
66
"emitDecoratorMetadata": true,
77
"noEmitHelpers": true,
@@ -16,9 +16,6 @@
1616
"paths": {
1717
"~/*": [
1818
"app/*"
19-
],
20-
"*": [
21-
"./node_modules/*"
2219
]
2320
}
2421
},

e2e/modal-navigation-ng/app/home/home.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { ModalViewComponent } from "../modal-shared/modal-view.component";
99
import { confirm } from "@nativescript/core/ui/dialogs";
1010

1111
import { AppModule } from "../app.module";
12-
import { PageService } from "@nativescript/angular";
1312

1413
@Component({
1514
moduleId: module.id,
@@ -21,9 +20,8 @@ export class HomeComponent {
2120
private modal: ModalDialogService,
2221
private vcRef: ViewContainerRef,
2322
private viewContainerRefService: ViewContainerRefService,
24-
private pageService: PageService,
2523
private routerExtension: RouterExtensions) {
26-
this.pageService.inPage$.subscribe((inPage) => console.log("HomeComponent - inPage", inPage));
24+
2725
}
2826

2927
onNavigateSecond() {

nativescript-angular/animations/animation-driver.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { AnimationPlayer } from '@angular/animations';
22
import { AnimationDriver } from '@angular/animations/browser';
3-
import { createSelector, SelectorCore } from '@nativescript/core/ui/styling/css-selector';
4-
import { CssAnimationProperty } from '@nativescript/core/ui/core/properties';
5-
import { eachDescendant } from '@nativescript/core/ui/core/view';
6-
import { ProxyViewContainer } from '@nativescript/core/ui/proxy-view-container';
3+
import { ProxyViewContainer, eachDescendant, CssAnimationProperty, CSSHelper } from '@nativescript/core';
74

85
import { NativeScriptAnimationPlayer } from './animation-player';
96
import {
@@ -32,7 +29,7 @@ interface QueryResult {
3229
}
3330

3431
class Selector {
35-
private nsSelectors: SelectorCore[];
32+
private nsSelectors: CSSHelper.SelectorCore[];
3633
private classSelectors: string[];
3734

3835
constructor(rawSelector: string) {
@@ -46,7 +43,7 @@ class Selector {
4643
private parse(rawSelector: string) {
4744
const selectors = rawSelector.split(',').map(s => s.trim());
4845

49-
this.nsSelectors = selectors.map(createSelector);
46+
this.nsSelectors = selectors.map(CSSHelper.createSelector);
5047
this.classSelectors = selectors
5148
.filter(s => s.startsWith('.'))
5249
.map(s => s.substring(1));

nativescript-angular/animations/animation-player.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { AnimationPlayer } from '@angular/animations';
2-
import { KeyframeAnimation }
3-
from '@nativescript/core/ui/animation/keyframe-animation';
4-
import { View, EventData } from '@nativescript/core/ui/core/view';
2+
import { View, EventData, KeyframeAnimation } from '@nativescript/core';
53

64
import { Keyframe, createKeyframeAnimation } from './utils';
75
import { NgView } from '../element-registry';

0 commit comments

Comments
 (0)