diff --git a/CHANGELOG.md b/CHANGELOG.md index a359971c9f..9a25f68dc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/api-reports/NativeScript.api.md b/api-reports/NativeScript.api.md index d2d7d93604..c26a8ac568 100644 --- a/api-reports/NativeScript.api.md +++ b/api-reports/NativeScript.api.md @@ -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; @@ -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 */; @@ -1008,6 +1010,8 @@ export const Http: { export interface HttpContent { raw: any; + toArrayBuffer: () => ArrayBuffer; + toFile: (destinationFilePath?: string) => File; toImage: () => Promise; @@ -1019,7 +1023,7 @@ export interface HttpContent { // @public export interface HttpRequestOptions { - content?: string | FormData; + content?: string | FormData | ArrayBuffer; dontFollowRedirects?: boolean; @@ -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; @@ -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; @@ -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 @@ -2466,6 +2478,8 @@ export class TextView extends EditableTextBase { android: any /* android.widget.EditText */; ios: any /* UITextView */; + + maxLines: number; } // @public @@ -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 }; diff --git a/e2e/animation/app/3d-rotate/page.ts b/e2e/animation/app/3d-rotate/page.ts new file mode 100644 index 0000000000..e9f473cd88 --- /dev/null +++ b/e2e/animation/app/3d-rotate/page.ts @@ -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 = args.object; + view = page.getViewById("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; +} diff --git a/e2e/animation/app/3d-rotate/page.xml b/e2e/animation/app/3d-rotate/page.xml new file mode 100644 index 0000000000..c56b6a9faa --- /dev/null +++ b/e2e/animation/app/3d-rotate/page.xml @@ -0,0 +1,24 @@ + + + + + + + + +