Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
89ee60b
chore: bump version to 6.6.0
vtrifonov Mar 18, 2020
4a67a3b
fix: dont create an actionbar if not necessary (#8402)
farfromrefug Mar 19, 2020
8dbb623
fix: update tap event data (#8415)
mudlabs Mar 19, 2020
92b5b02
feat(text-field): add closeOnReturn property to avoid auto dismissing…
MCurran16 Mar 20, 2020
8ab0e72
feat: TappableSpan support (#8256)
vtrifonov Mar 20, 2020
42fc4ac
feat(ios): textfield option to disable iOS autofill strong password h…
NathanWalker Mar 23, 2020
1f04469
feat(css-bkg-pos): Added possibility to declare background pos by sin…
Mar 24, 2020
66cc8a4
fix(button-android): use setMinWidth to set TextView widgets min-widt…
bundyo Mar 26, 2020
5c3ba11
chore: git ignore fix
vtrifonov Mar 26, 2020
c9cea47
refactor(css): attribute selectors match web counterparts (#7848)
bundyo Mar 26, 2020
dc7215f
build: remove unecessary permission grant (#8464)
Hk-tang Mar 30, 2020
2b06adc
fix: call to nativeView (#8488)
NickIliev Apr 1, 2020
e421129
fix: do not clear androidView._cachedDrawable (#8475)
vtrifonov Apr 1, 2020
c150b11
Merge branch 'release'
vtrifonov Apr 2, 2020
56f6626
fix: remove duplciate snippet (#8492)
NickIliev Apr 2, 2020
ad9daa8
fix: dont default to Font.default (#8401)
farfromrefug Apr 3, 2020
da80cd5
test: added missing page (#8493)
vtrifonov Apr 3, 2020
50eb372
fix(css): parse css selectors with escape sequences (for real) (#8496)
Apr 3, 2020
bd9828a
feat(utils): work openFile in simulator (#8495)
tarunama Apr 3, 2020
f7ab4ba
fix: the css parser should handle empty nodes (#8503)
darind Apr 6, 2020
127447b
docs: Fix simple typo, coresponding -> corresponding (#8504)
timgates42 Apr 7, 2020
954a1b6
Update AUTHORS
vtrifonov Apr 10, 2020
f0149da
refactor for easy subclassing and new features (#8514)
farfromrefug Apr 10, 2020
7cf3c97
feat: setProperty on Observable (#8521)
rigor789 Apr 14, 2020
50e58fa
fix (android/TextField): set focusable, clickable to false when edita…
Rahul1d Apr 14, 2020
f2fb097
test(e2e): more visible focus and blur results on text field (#8546)
tarunama Apr 20, 2020
446163d
fix: fix ios hmr (#8559)
kmmccafferty96 May 8, 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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ nativescript-core/css/system-classes.js*
nativescript-core/nativescript-core.d.ts

.vs/
e2e/
e2e/*
!e2e/animation
!e2e/config
!e2e/cuteness.io
Expand Down
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Kamen Velikov <kamen.velikov@telerik.com>
Lubomir Blagoev <lubomir.blagoev@telerik.com>
Luke Curran <luke@pepper.me>
Matt Donovan <unsecurepeax@gmail.com>
Martin Bekchiev <martin.bekchiev@telerik.com>
Matthew Knight <anarchicknight@gmail.com>
Mihail Slavchev <mihail.slavchev@telerik.com>
Nathanael Anderson <nathan@master-technology.com>
Expand All @@ -35,7 +36,9 @@ TJ VanToll <tj.vantoll@telerik.com>
Tsvetan Raikov <tsvetan.raikov@telerik.com>
Valentin Stoychev <valentin.stoychev@telerik.com>
Vasil Chimev <Vasil.Chimev@telerik.com>
Vasil Trifonov <vasil.trifonov@telerik.com>
Victor Nascimento <victormota15@gmail.com>
Vladimir Enchev <vladimir.enchev@telerik.com>
Vladimir Mutafov <vladimir.mutafov@progress.com>
Wei Zhang <sagamail@gmail.com>
Yavor Georgiev <yavor.georgiev@telerik.com>
154 changes: 84 additions & 70 deletions api-reports/NativeScript.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -870,54 +870,54 @@ export class Frame extends View {

// @public
export interface GestureEventData extends EventData {
android: any
ios: any /* UIGestureRecognizer */;
type: GestureTypes;
view: View;
}
android: any
ios: any /* UIGestureRecognizer */;
type: GestureTypes;
view: View;
}

// @public
export interface GestureEventDataWithState extends GestureEventData {
// (undocumented)
state: number;
}
// (undocumented)
state: number;
}

// @public
export class GesturesObserver {
constructor(target: View, callback: (args: GestureEventData) => void, context: any);
constructor(target: View, callback: (args: GestureEventData) => void, context: any);

androidOnTouchEvent: (motionEvent: any /* android.view.MotionEvent */) => void;
androidOnTouchEvent: (motionEvent: any /* android.view.MotionEvent */) => void;

callback: (args: GestureEventData) => void;
callback: (args: GestureEventData) => void;

context: any;
context: any;

disconnect();
disconnect();

observe(type: GestureTypes);
observe(type: GestureTypes);

type: GestureTypes;
}
type: GestureTypes;
}

// @public
export enum GestureStateTypes {
began,
cancelled,
changed,
ended
}
began,
cancelled,
changed,
ended
}

// @public
export enum GestureTypes {
doubleTap,
longPress,
pan,
pinch,
rotation,
swipe,
tap,
touch
}
doubleTap,
longPress,
pan,
pinch,
rotation,
swipe,
tap,
touch
}

// @public
export class GridLayout extends LayoutBase {
Expand Down Expand Up @@ -1503,6 +1503,8 @@ export class Observable {
removeEventListener(eventNames: string, callback?: any, thisArg?: any);

set(name: string, value: any): void;

setProperty(name: string, value: any): void;
//@endprivate
}

Expand Down Expand Up @@ -1642,11 +1644,11 @@ export class Page extends ContentView {

// @public
export interface PanGestureEventData extends GestureEventDataWithState {
// (undocumented)
deltaX: number;
// (undocumented)
deltaY: number;
}
// (undocumented)
deltaX: number;
// (undocumented)
deltaY: number;
}

// @public
export interface ParserEvent {
Expand Down Expand Up @@ -1694,15 +1696,15 @@ export module path {

// @public
export interface PinchGestureEventData extends GestureEventDataWithState {
// (undocumented)
getFocusX(): number;
// (undocumented)
getFocusX(): number;

// (undocumented)
getFocusY(): number;
// (undocumented)
getFocusY(): number;

// (undocumented)
scale: number;
}
// (undocumented)
scale: number;
}

// @public
export class Placeholder extends View {
Expand Down Expand Up @@ -1765,9 +1767,9 @@ export class Repeater extends CustomLayoutView {

// @public
export interface RotationGestureEventData extends GestureEventDataWithState {
// (undocumented)
rotation: number;
}
// (undocumented)
rotation: number;
}

// @public
export module Screen {
Expand Down Expand Up @@ -1936,9 +1938,13 @@ export class Span extends ViewBase {

public fontWeight: FontWeight;

public static linkTapEvent: string;

// (undocumented)
_setTextInternal(value: string): void;

public readonly tappable: boolean;

public text: string;

public textDecoration: TextDecoration;
Expand Down Expand Up @@ -2168,17 +2174,17 @@ export class Style extends Observable {

// @public
export enum SwipeDirection {
down,
left,
right,
up
}
down,
left,
right,
up
}

// @public
export interface SwipeGestureEventData extends GestureEventData {
// (undocumented)
direction: SwipeDirection;
}
// (undocumented)
direction: SwipeDirection;
}

// @public
export class Switch extends View {
Expand Down Expand Up @@ -2419,6 +2425,14 @@ export class TabViewItem extends ViewBase {
public view: View;
}

// @public
export interface TapGestureEventData extends GestureEventData {
getPointerCount(): number;
getX(): number;
getY(): number;

}

// @public
export interface Template {
(): View;
Expand Down Expand Up @@ -2489,12 +2503,16 @@ export class TextBase extends View implements AddChildFromBuilder {
export class TextField extends EditableTextBase {
android: any /* android.widget.EditText */;

closeOnReturn: boolean;

ios: any /* UITextField */;

// (undocumented)
public static returnPressEvent: string;

secure: boolean;

secureWithoutAutofill: boolean;
}

// @public
Expand Down Expand Up @@ -2538,20 +2556,12 @@ export interface TimerInfo {
}

// @public
export interface TouchGestureEventData extends GestureEventData {
action: "up" | "move" | "down" | "cancel";

// Warning: (ae-forgotten-export) The symbol "Pointer" needs to be exported by the entry point index.d.ts
getActivePointers(): Array<Pointer>;

getAllPointers(): Array<Pointer>;

getPointerCount(): number;

getX(): number;

getY(): number;
}
export interface TouchGestureEventData extends TapGestureEventData {
action: "up" | "move" | "down" | "cancel";
// Warning: (ae-forgotten-export) The symbol "Pointer" needs to be exported by the entry point index.d.ts
getActivePointers(): Array<Pointer>;
getAllPointers(): Array<Pointer>;
}

// @public (undocumented)
export const Trace: {
Expand Down Expand Up @@ -2615,6 +2625,7 @@ export const Utils: {
getModuleName: typeof getModuleName;
openFile: typeof openFile;
openUrl: typeof openUrl;
isRealDevice: typeof isRealDevice;
layout: typeof layout;
android: typeof ad;
ios: typeof ios;
Expand Down Expand Up @@ -2890,6 +2901,8 @@ export abstract class ViewBase extends Observable {
public _goToVisualState(state: string): void;
public id: string;
// (undocumented)
public _ignoreFlexMinWidthHeightReset: boolean;
// (undocumented)
_inheritStyleScope(styleScope: any /* StyleScope */): void;
initNativeView(): void;
// (undocumented)
Expand Down Expand Up @@ -3106,9 +3119,10 @@ export class XmlParser {
// nativescript-core/index.d.ts:114:5 - (ae-forgotten-export) The symbol "getModuleName" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:115:5 - (ae-forgotten-export) The symbol "openFile" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:116:5 - (ae-forgotten-export) The symbol "openUrl" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:117:5 - (ae-forgotten-export) The symbol "layout" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:118:5 - (ae-forgotten-export) The symbol "ad" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:119:5 - (ae-forgotten-export) The symbol "ios" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:117:5 - (ae-forgotten-export) The symbol "isRealDevice" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:118:5 - (ae-forgotten-export) The symbol "layout" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:119:5 - (ae-forgotten-export) The symbol "ad" needs to be exported by the entry point index.d.ts
// nativescript-core/index.d.ts:120:5 - (ae-forgotten-export) The symbol "ios" needs to be exported by the entry point index.d.ts
// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "Property" needs to be exported by the entry point index.d.ts
// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "CssProperty" needs to be exported by the entry point index.d.ts
// nativescript-core/ui/core/view-base/view-base.d.ts:179:26 - (ae-forgotten-export) The symbol "CssAnimationProperty" needs to be exported by the entry point index.d.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
android:largeScreens="true"
android:xlargeScreens="true"/>

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>

Expand Down
48 changes: 24 additions & 24 deletions e2e/scoped-packages/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"nativescript": {
"id": "org.nativescript.scopedpackages",
"tns-android": {
"version": "6.1.0"
"nativescript": {
"id": "org.nativescript.scopedpackages",
"tns-android": {
"version": "6.1.0"
},
"tns-ios": {
"version": "6.1.0"
}
},
"tns-ios": {
"version": "6.1.0"
}
},
"main": "app.js",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@nativescript/core": "file:../../dist/nativescript-core-6.5.0.tgz",
"nativescript-theme-core": "~1.0.6",
"tns-core-modules": "file:../../dist/tns-core-modules-6.5.0.tgz"
},
"devDependencies": {
"nativescript-dev-webpack": "~1.2.0",
"typescript": "~3.5.3"
},
"gitHead": "5fa096231ded5351b53700f0d111d60160e52ebc",
"readme": "NativeScript Application"
}
"main": "app.js",
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies": {
"@nativescript/core": "file:../../dist/nativescript-core-6.6.0.tgz",
"nativescript-theme-core": "~1.0.6",
"tns-core-modules": "file:../../dist/tns-core-modules-6.6.0.tgz"
},
"devDependencies": {
"nativescript-dev-webpack": "~1.2.0",
"typescript": "~3.5.3"
},
"gitHead": "5fa096231ded5351b53700f0d111d60160e52ebc",
"readme": "NativeScript Application"
}
1 change: 1 addition & 0 deletions e2e/ui-tests-app/app/button/main-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export function loadExamples() {
examples.set("issue-4287", "button/issue-4287-page");
examples.set("issue-4385", "button/issue-4385-page");
examples.set("highlight-4740", "button/highlight-4740/highlight-4740-page");
examples.set("tappable-span", "button/tappable-span-page");

return examples;
}
27 changes: 27 additions & 0 deletions e2e/ui-tests-app/app/button/tappable-span-page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Label } from "tns-core-modules/ui/label";
import { EventData, TextBase } from "tns-core-modules/ui/text-base";
import { Page } from "tns-core-modules/ui/page";

export function foxTap(args: EventData) {
let page = <Page>(<any>args.object).page;
let foxTapped = page.getViewById<Label>("foxTapped");
foxTapped.visibility = "visible";

setTimeout(() => {
foxTapped.visibility = "hidden";
}, 1000);

console.log("foxTap");
}

export function dogTap(args: EventData) {
let page = <Page>(<any>args.object).page;
let dogTapped = page.getViewById<Label>("dogTapped");
dogTapped.visibility = "visible";

setTimeout(() => {
dogTapped.visibility = "hidden";
}, 1000);

console.log("dogTap");
}
Loading