Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ab4c389
feat: Make css-tree the default parser
darind Dec 10, 2019
954e1c6
feat: add integer only keyboard type for text-field and for all edita…
NickIliev Dec 12, 2019
eac179c
Merge pull request #8190 from NativeScript/niliev/keyboard
dtopuzov Dec 13, 2019
c5c3840
Merge branch 'master' into darind/css-parser-default
dtopuzov Dec 13, 2019
217d22e
Merge pull request #8185 from NativeScript/darind/css-parser-default
dtopuzov Dec 13, 2019
416f1c8
feat: add longPress state with UIGestureRecognizer (iOS)
NickIliev Jan 3, 2020
a8cce27
Merge pull request #8224 from NativeScript/niliev/long-press
dtopuzov Jan 6, 2020
3c340b4
test: make image-cache tests async (#8232)
darind Jan 8, 2020
9217094
feat(html-view): Additional properties for HtmlView component (#8207)
xuhcc Jan 8, 2020
d65a2db
fix(android): Request Timeout #6523 (#8194)
SpurguX Jan 9, 2020
8550c32
fix(ios/bottom-navigation): move TabStrip items event emitting to sel…
ycherniavskyi Jan 10, 2020
e8f5ac8
feat: Add 3D rotation to view - takeover of PR# 5950 (#8136)
rynop Jan 10, 2020
4e48e68
feat(ios): set preferredStatusBarStyle in Page VCs (#8241)
Jan 14, 2020
8569b51
fix: return default tab background color when the background color is…
vtrifonov Jan 14, 2020
ea8a436
fix: make integer type visible
NickIliev Jan 15, 2020
d90f37a
Merge pull request #8250 from NativeScript/niliev/integer
dtopuzov Jan 16, 2020
6133d6b
fix(ios): ActionBar style wrong after cancelled swipe back navigation…
Jan 16, 2020
3c79ded
feat(textview): added maxLines property (#7943)
Jan 16, 2020
05ef9b0
fix(8151): button textAlignment on IOS (UIButton) (#8181)
sylann Jan 21, 2020
f293398
fix: invoke done callback in image cache unit test for API Level < 20…
darind Jan 22, 2020
02763ec
fix(android): crash on setting elevation on API21 (#8269)
Jan 23, 2020
e57d5d9
chore: merge release in master (#8275)
Jan 27, 2020
a311a92
Fix date picker owner not updating its comps on iOS (#8263)
bernica Jan 27, 2020
e293367
feat(http): better binary support & XHR support (#7707)
charsleysa Jan 28, 2020
0b50f3e
fix: remove the passowrd for TextField as well (#8290)
NickIliev Jan 30, 2020
f031f6f
feat: Add Android APIs usage list (#8286)
vmutafov Jan 30, 2020
3bb8a40
feat: Add iOS APIs usage list (#8291)
mbektchiev Jan 30, 2020
6b74054
release: cut the 6.4.0 release
Jan 31, 2020
4cbff18
Merge branch 'release' into release-6.4
Jan 31, 2020
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
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# 6.4.0 (2020-01-31)


### Bug Fixes

* button textAlignment on IOS (UIButton) ([#8181](https://github.com/NativeScript/NativeScript/issues/8181)) ([05ef9b0](https://github.com/NativeScript/NativeScript/commit/05ef9b0))
* **android:** crash on setting elevation on API21 ([#8269](https://github.com/NativeScript/NativeScript/issues/8269)) ([02763ec](https://github.com/NativeScript/NativeScript/commit/02763ec))
* **android:** Request Timeout [#6523](https://github.com/NativeScript/NativeScript/issues/6523) ([#8194](https://github.com/NativeScript/NativeScript/issues/8194)) ([d65a2db](https://github.com/NativeScript/NativeScript/commit/d65a2db))
* invoke done callback in image cache unit test for API Level < 20 ([#8267](https://github.com/NativeScript/NativeScript/issues/8267)) ([f293398](https://github.com/NativeScript/NativeScript/commit/f293398))
* make integer type visible ([ea8a436](https://github.com/NativeScript/NativeScript/commit/ea8a436))
* remove the password for TextField as well ([#8290](https://github.com/NativeScript/NativeScript/issues/8290)) ([0b50f3e](https://github.com/NativeScript/NativeScript/commit/0b50f3e))
* return default tab background color when the background color is not explicitely set through css ([#8240](https://github.com/NativeScript/NativeScript/issues/8240)) ([8569b51](https://github.com/NativeScript/NativeScript/commit/8569b51))
* **ios:** ActionBar style wrong after cancelled swipe back navigation ([#8252](https://github.com/NativeScript/NativeScript/issues/8252)) ([6133d6b](https://github.com/NativeScript/NativeScript/commit/6133d6b))
* **ios/bottom-navigation:** move TabStrip items event emitting to selectedIndex changed handler ([#8160](https://github.com/NativeScript/NativeScript/issues/8160)) ([8550c32](https://github.com/NativeScript/NativeScript/commit/8550c32))


### Features

* **html-view:** Additional properties for HtmlView component ([#8207](https://github.com/NativeScript/NativeScript/issues/8207)) ([9217094](https://github.com/NativeScript/NativeScript/commit/9217094))
* **http:** better binary support & XHR support ([#7707](https://github.com/NativeScript/NativeScript/issues/7707)) ([e293367](https://github.com/NativeScript/NativeScript/commit/e293367))
* **ios:** set preferredStatusBarStyle in Page VCs ([#8241](https://github.com/NativeScript/NativeScript/issues/8241)) ([4e48e68](https://github.com/NativeScript/NativeScript/commit/4e48e68))
* add longPress state with UIGestureRecognizer (iOS) ([416f1c8](https://github.com/NativeScript/NativeScript/commit/416f1c8))
* **textview:** added maxLines property ([#7943](https://github.com/NativeScript/NativeScript/issues/7943)) ([3c79ded](https://github.com/NativeScript/NativeScript/commit/3c79ded))
* Add 3D rotation to view - takeover of PR# 5950 ([#8136](https://github.com/NativeScript/NativeScript/issues/8136)) ([e8f5ac8](https://github.com/NativeScript/NativeScript/commit/e8f5ac8)), closes [#8076](https://github.com/NativeScript/NativeScript/issues/8076) [#8041](https://github.com/NativeScript/NativeScript/issues/8041)
* Add Android APIs usage list ([#8286](https://github.com/NativeScript/NativeScript/issues/8286)) ([f031f6f](https://github.com/NativeScript/NativeScript/commit/f031f6f))
* add integer only keyboard type for text-field and for all editable text components ([954e1c6](https://github.com/NativeScript/NativeScript/commit/954e1c6))
* Add iOS APIs usage list ([#8291](https://github.com/NativeScript/NativeScript/issues/8291)) ([3bb8a40](https://github.com/NativeScript/NativeScript/commit/3bb8a40))
* Make css-tree the default parser ([ab4c389](https://github.com/NativeScript/NativeScript/commit/ab4c389))

## [6.3.2](https://github.com/NativeScript/NativeScript/compare/6.3.1...6.3.2) (2019-12-20)


Expand Down
21 changes: 19 additions & 2 deletions api-reports/NativeScript.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ export interface AnimationDefinition {

opacity?: number;

rotate?: number;
// Warning: (ae-forgotten-export) The symbol "Point3D" needs to be exported by the entry point index.d.ts
rotate?: number | Point3D;

scale?: Pair;

Expand Down Expand Up @@ -413,6 +414,7 @@ export class Color {
public b: number;
public equals(value: Color): boolean;
public static equals(value1: Color, value2: Color): boolean;
public static fromIosColor(value: any /* UIColor */): Color;
public g: number;
public hex: string;
ios: any /* UIColor */;
Expand Down Expand Up @@ -1008,6 +1010,8 @@ export const Http: {
export interface HttpContent {
raw: any;

toArrayBuffer: () => ArrayBuffer;

toFile: (destinationFilePath?: string) => File;

toImage: () => Promise<ImageSource>;
Expand All @@ -1019,7 +1023,7 @@ export interface HttpContent {

// @public
export interface HttpRequestOptions {
content?: string | FormData;
content?: string | FormData | ArrayBuffer;

dontFollowRedirects?: boolean;

Expand Down Expand Up @@ -2085,6 +2089,8 @@ export class Style extends Observable {
// (undocumented)
public paddingTop: Length;
// (undocumented)
public perspective: number;
// (undocumented)
public placeholderColor: Color;
// Warning: (ae-forgotten-export) The symbol "PropertyBagClass" needs to be exported by the entry point index.d.ts
public readonly PropertyBag: PropertyBagClass;
Expand All @@ -2093,6 +2099,10 @@ export class Style extends Observable {
// (undocumented)
public rotate: number;
// (undocumented)
public rotateX: number;
// (undocumented)
public rotateY: number;
// (undocumented)
public scaleX: number;
// (undocumented)
public scaleY: number;
Expand Down Expand Up @@ -2189,6 +2199,8 @@ export class TabContentItem extends ContentView {
export class TabNavigationBase extends View {
android: any /* android.view.View */;

getTabBarBackgroundArgbColor(): any

getTabBarBackgroundColor(): any

getTabBarColor(): any
Expand Down Expand Up @@ -2466,6 +2478,8 @@ export class TextView extends EditableTextBase {
android: any /* android.widget.EditText */;

ios: any /* UITextView */;

maxLines: number;
}

// @public
Expand Down Expand Up @@ -2701,12 +2715,15 @@ export abstract class View extends ViewBase {
opacity: number;
originX: number;
originY: number;
perspective: number;
// (undocumented)
_redrawNativeBackground(value: any): void;
// (undocumented)
_removeAnimation(animation: Animation): boolean;
public static resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number;
rotate: number;
rotateX: number;
rotateY: number;
scaleX: number;
scaleY: number;
_setCurrentLayoutBounds(left: number, top: number, right: number, bottom: number): { boundsChanged: boolean, sizeChanged: boolean };
Expand Down
40 changes: 40 additions & 0 deletions e2e/animation/app/3d-rotate/page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { EventData, Page } from "tns-core-modules/ui/page";
import { View } from "tns-core-modules/ui/core/view";
import { Point3D } from "tns-core-modules/ui/animation/animation";

let view: View;

export function pageLoaded(args: EventData) {
const page = <Page>args.object;
view = page.getViewById<View>("view");
}

export function onAnimateX(args: EventData) {
rotate({ x: 360, y: 0, z: 0 });
}

export function onAnimateY(args: EventData) {
rotate({ x: 0, y: 360, z: 0 });
}

export function onAnimateZ(args: EventData) {
rotate({ x: 0, y: 0, z: 360 });
}

export function onAnimateXYZ(args: EventData) {
rotate({ x: 360, y: 360, z: 360 });
}

async function rotate(rotate: Point3D) {
await view.animate({
rotate,
duration: 1000
});
reset();
}

function reset() {
view.rotate = 0;
view.rotateX = 0;
view.rotateY = 0;
}
24 changes: 24 additions & 0 deletions e2e/animation/app/3d-rotate/page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
<ActionBar title="Rotate" />

<GridLayout rows="auto auto auto auto *" columns="* * *">
<Image src="~/res/icon_100x100.png" width="30" height="30" col="0" row="0" rotateX="60"/>
<Image src="~/res/icon_100x100.png" width="30" height="30" col="1" row="0" rotateY="60"/>
<Image src="~/res/icon_100x100.png" width="30" height="30" col="2" row="0" rotate="60"/>

<Button text="X" tap="onAnimateX" col="0" row="1"/>
<Button text="Y" tap="onAnimateY" col="1" row="1"/>
<Button text="Z" tap="onAnimateZ" col="2" row="1"/>

<Image src="~/res/icon_100x100.png" width="60" height="60" horizontalAlignment="center"
colSpan="3" row="2" rotate="60" rotateX="60" rotateY="60"/>

<Button text="XYZ" tap="onAnimateXYZ" row="3" colSpan="3"/>

<AbsoluteLayout width="300" height="300" clipToBounds="true" backgroundColor="LightGray" row="4" colSpan="3">
<Image id="view" src="~/res/icon_100x100.png"
width="100" height="100"
left="100" top="100"/>
</AbsoluteLayout>
</GridLayout>
</Page>
75 changes: 75 additions & 0 deletions e2e/animation/app/css-animations/3d-rotate/page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
.rotate-x {
rotateX: 60;
}

.rotate-y {
rotateY: 60;
}

.rotate-z {
rotate: 60;
}

.original {
transform: none;
}

.animate-x {
animation-name: rotateX;
animation-duration: 2s;
animation-fill-mode: forwards;
}

.animate-y {
animation-name: rotateY;
animation-duration: 2s;
animation-fill-mode: forwards;
}

.animate-z {
animation-name: rotateZ;
animation-duration: 2s;
animation-fill-mode: forwards;
}

.animate-xyz-3d {
animation-name: rotateXYZ3D;
animation-duration: 2s;
animation-fill-mode: forwards;
}

.animate-xyz {
animation-name: rotateXYZ;
animation-duration: 2s;
animation-fill-mode: forwards;
}

@keyframes rotateX {
from { transform: none; }
50% { transform: rotateX(60) }
to { transform: none; }
}

@keyframes rotateY {
from { transform: none; }
50% { transform: rotateY(60) }
to { transform: none; }
}

@keyframes rotateZ {
from { transform: none; }
50% { transform: rotate(60) }
to { transform: none; }
}

@keyframes rotateXYZ3D {
from { transform: none; }
50% { transform: rotate3d(60, 60, 60) }
to { transform: none; }
}

@keyframes rotateXYZ {
from { transform: none; }
50% { transform: rotateX(60) rotateY(60) rotate(60) }
to { transform: none; }
}
35 changes: 35 additions & 0 deletions e2e/animation/app/css-animations/3d-rotate/page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { EventData, Page } from "tns-core-modules/ui/page";
import { View } from "tns-core-modules/ui/core/view";
import { Point3D } from "tns-core-modules/ui/animation/animation";

let view: View;

export function pageLoaded(args: EventData) {
const page = <Page>args.object;
view = page.getViewById<View>("view");
}

export function onAnimateX(args: EventData) {
view.className = "original";
view.className = "animate-x";
}

export function onAnimateY(args: EventData) {
view.className = "original";
view.className = "animate-y";
}

export function onAnimateZ(args: EventData) {
view.className = "original";
view.className = "animate-z";
}

export function onAnimateXYZ3D(args: EventData) {
view.className = "original";
view.className = "animate-xyz-3d";
}

export function onAnimateXYZ(args: EventData) {
view.className = "original";
view.className = "animate-xyz";
}
22 changes: 22 additions & 0 deletions e2e/animation/app/css-animations/3d-rotate/page.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded">
<ActionBar title="Rotate" />

<GridLayout rows="auto auto auto *" columns="* * *">
<Image src="~/res/icon_100x100.png" width="30" height="30" col="0" row="0" class="rotate-x"/>
<Image src="~/res/icon_100x100.png" width="30" height="30" col="1" row="0" class="rotate-y"/>
<Image src="~/res/icon_100x100.png" width="30" height="30" col="2" row="0" class="rotate-z"/>

<Button text="X" tap="onAnimateX" col="0" row="1"/>
<Button text="Y" tap="onAnimateY" col="1" row="1"/>
<Button text="Z" tap="onAnimateZ" col="2" row="1"/>

<Button text="XYZ" tap="onAnimateXYZ" row="2" col="0"/>
<Button text="XYZ-3D" tap="onAnimateXYZ3D" row="2" col="1"/>

<AbsoluteLayout width="300" height="300" clipToBounds="true" backgroundColor="LightGray" row="3" colSpan="3">
<Image id="view" src="~/res/icon_100x100.png"
width="100" height="100"
left="100" top="100" />
</AbsoluteLayout>
</GridLayout>
</Page>
2 changes: 1 addition & 1 deletion e2e/animation/app/css-animations/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export function pageLoaded(args: EventData) {
export function onButtonTap(args: EventData) {
const clickedButton = <Button>args.object;

const destination = clickedButton.text + "/page";
const destination = "css-animations/" + clickedButton.text + "/page";
currentFrame.navigate(destination);
}
1 change: 1 addition & 0 deletions e2e/animation/app/css-animations/page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<Button text="settings" tap="onButtonTap"/>
<Button text="visual-states" tap="onButtonTap"/>
<Button text="initial-animation" tap="onButtonTap"/>
<Button text="3d-rotate" tap="onButtonTap"/>
</StackLayout>
</ScrollView>
</Page>
3 changes: 2 additions & 1 deletion e2e/animation/app/home/home-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
<Button text="slide-in-effect" tap="onButtonTap" />
<Button text="infinite" tap="onButtonTap" />
<Button text="animation-curves" tap="onButtonTap" />
<Button text="css-animations" tap="onButtonTap" />
<Button text="css-animations" tap="onButtonTap" />
<Button text="3d-rotate" tap="onButtonTap" />
</StackLayout>
</ScrollView>

Expand Down
4 changes: 2 additions & 2 deletions e2e/scoped-packages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@nativescript/core": "file:../../dist/nativescript-core-6.3.0.tgz",
"@nativescript/core": "file:../../dist/nativescript-core-6.4.0.tgz",
"nativescript-theme-core": "~1.0.6",
"tns-core-modules": "file:../../dist/tns-core-modules-6.3.0.tgz"
"tns-core-modules": "file:../../dist/tns-core-modules-6.4.0.tgz"
},
"devDependencies": {
"nativescript-dev-webpack": "~1.2.0",
Expand Down
7 changes: 7 additions & 0 deletions e2e/ui-tests-app/app/css/all-non-uniform-border-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@
height: 80;
font-size: 6;
}

.html-view {
font-size: 10;
link-color: red;
color: green;
font-family: 'Courier New', Courier, monospace;
}
2 changes: 1 addition & 1 deletion e2e/ui-tests-app/app/css/all-non-uniform-border-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ActivityIndicator class="s0" row="2" col="2" busy="false"/>
<Image class="s0" row="3" col="0" src="~/resources/images/gravatar.png" stretch="fill"/>
<ListView class="s0" row="3" col="1" items="ListView"/>
<HtmlView class="s0" row="3" col="2" html="<h1>HtmlView</h1>"/>
<HtmlView class="s0 html-view" row="3" col="2" html="<h1>HtmlView</h1><a href='http://www.nativescript.org'>{N} Site</a>"/>
<WebView class="s0" row="4" col="0" src="~/web-view/test.html"/>
<SegmentedBar class="s0" row="4" col="1">
<SegmentedBar.items>
Expand Down
4 changes: 4 additions & 0 deletions nativescript-core/color/color-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ export class Color implements definition.Color {
public toString(): string {
return this.hex;
}

public static fromIosColor(value: UIColor): Color {
return undefined;
}
}

function isRgbOrRgba(value: string): boolean {
Expand Down
Loading