From befb494a505c7e4c0758cf397f4ce554c5a211cc Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Thu, 8 Dec 2016 18:20:25 +0200 Subject: [PATCH] up to segmented-bar.ios --- tns-core-modules/ui/border/border.d.ts | 11 - tns-core-modules/ui/button/button.android.ts | 38 +- tns-core-modules/ui/button/button.d.ts | 3 +- tns-core-modules/ui/core/properties.ts | 76 ++-- tns-core-modules/ui/core/view-base.ts | 357 ++++++++++++++- tns-core-modules/ui/core/view-common.ts | 417 ++---------------- tns-core-modules/ui/core/view.android.ts | 21 +- tns-core-modules/ui/core/view.d.ts | 54 +-- .../ui/date-picker/date-picker.android.ts | 7 +- tns-core-modules/ui/definitions.d.ts | 51 ++- tns-core-modules/ui/dialogs/dialogs-common.ts | 21 +- .../editable-text-base.android.ts | 76 ++-- tns-core-modules/ui/enums/enums.ts | 2 +- tns-core-modules/ui/frame/frame.android.ts | 5 +- tns-core-modules/ui/frame/frame.d.ts | 3 +- tns-core-modules/ui/frame/frame.ios.ts | 3 +- .../ui/gestures/gestures-common.ts | 4 +- .../ui/gestures/gestures.android.ts | 4 +- tns-core-modules/ui/gestures/gestures.ios.ts | 11 +- tns-core-modules/ui/image/image.android.ts | 8 +- .../ui/list-picker/list-picker.android.ts | 58 +-- .../ui/list-picker/list-picker.ios.ts | 94 +--- .../ui/list-view/list-view.android.ts | 43 +- tns-core-modules/ui/page/page-common.ts | 8 +- tns-core-modules/ui/page/page.android.ts | 12 +- tns-core-modules/ui/page/page.d.ts | 4 +- tns-core-modules/ui/page/page.ios.ts | 2 +- .../ui/progress/progress-common.ts | 14 +- .../ui/progress/progress.android.ts | 6 +- tns-core-modules/ui/progress/progress.ios.ts | 18 +- .../proxy-view-container.ts | 4 +- .../ui/segmented-bar/segmented-bar-common.ts | 97 ++-- .../ui/segmented-bar/segmented-bar.android.ts | 262 +++++------ .../ui/segmented-bar/segmented-bar.d.ts | 11 +- .../ui/segmented-bar/segmented-bar.ios.ts | 4 +- .../ui/styling/background.android.ts | 16 +- tns-core-modules/ui/styling/background.ios.ts | 9 +- tns-core-modules/ui/styling/font.android.ts | 6 +- tns-core-modules/ui/styling/style-scope.d.ts | 10 +- tns-core-modules/ui/styling/style-scope.ts | 14 +- tns-core-modules/ui/styling/style.ts | 18 +- tns-core-modules/ui/text-base/text-base.d.ts | 7 +- .../ui/time-picker/time-picker.android.ts | 2 +- 43 files changed, 847 insertions(+), 1044 deletions(-) diff --git a/tns-core-modules/ui/border/border.d.ts b/tns-core-modules/ui/border/border.d.ts index 747772e41..5fc5e47b6 100644 --- a/tns-core-modules/ui/border/border.d.ts +++ b/tns-core-modules/ui/border/border.d.ts @@ -2,7 +2,6 @@ * Contains the Border class, which represents a UI border component. */ declare module "ui/border" { - import { Color } from "color"; import { ContentView } from "ui/content-view"; /** @@ -13,15 +12,5 @@ declare module "ui/border" { * Gets or sets the corner radius of the border component. */ cornerRadius: number; - - /** - * Gets or sets the border width of the border component. - */ - borderWidth: string | number; - - /** - * Gets or sets the border color of the border component. - */ - borderColor: string | Color; } } \ No newline at end of file diff --git a/tns-core-modules/ui/button/button.android.ts b/tns-core-modules/ui/button/button.android.ts index 5f89ee573..0ef33f524 100644 --- a/tns-core-modules/ui/button/button.android.ts +++ b/tns-core-modules/ui/button/button.android.ts @@ -1,5 +1,7 @@ -import { ButtonBase, textProperty, formattedTextProperty } from "./button-common"; -import { FormattedString } from "text/formatted-string"; +import { + ButtonBase, textProperty, formattedTextProperty, TouchGestureEventData, FormattedString, GestureTypes, TouchAction, + PseudoClassHandler +} from "./button-common"; export * from "./button-common"; @@ -17,32 +19,11 @@ class ClickListener implements android.view.View.OnClickListener { } } -@Interfaces([android.view.View.OnTouchListener]) -class TouchListener implements android.view.View.OnTouchListener { - constructor(public owner: WeakRef