Fix missing exports

This commit is contained in:
Hristo Hristov
2016-12-14 13:59:50 +02:00
parent 6c3d71cadf
commit e97fd105e3
12 changed files with 9 additions and 19 deletions

View File

@ -6,7 +6,6 @@ export * from "./absolute-layout-common";
let leftDescriptor: TypedPropertyDescriptor<Length> = {
enumerable: true,
configurable: true,
writable: true,
get: () => zeroLength,
set: function (this: View, value: Length) {
setNativeProperty(this, (lp) => lp.left = this.effectiveLeft);
@ -17,7 +16,6 @@ let leftDescriptor: TypedPropertyDescriptor<Length> = {
let topDescriptor: TypedPropertyDescriptor<Length> = {
enumerable: true,
configurable: true,
writable: true,
get: () => zeroLength,
set: function (this: View, value: Length) {
setNativeProperty(this, (lp) => lp.top = this.effectiveTop);

View File

@ -6,7 +6,6 @@ export * from "./dock-layout-common";
let dockDescriptor: TypedPropertyDescriptor<"left" | "top" | "right" | "bottom"> = {
enumerable: true,
configurable: true,
writable: true,
get: () => "left",
set: function (this: View, value: "left" | "top" | "right" | "bottom") {
const nativeView: android.view.View = this._nativeView;

View File

@ -244,7 +244,6 @@ alignItemsProperty.register(Style);
export const alignContentProperty = new CssProperty<Style, AlignContent>({ name: "alignContent", cssName: "align-content", defaultValue: AlignContent.STRETCH, affectsLayout: isIOS, valueConverter: AlignContent.parse });
alignContentProperty.register(Style);
export const orderProperty = new CssProperty<Style, Order>({ name: "order", cssName: "order", defaultValue: ORDER_DEFAULT, valueConverter: Order.parse });
orderProperty.register(Style);

View File

@ -14,7 +14,6 @@ export * from "./flexbox-layout-common";
const orderDescriptor: TypedPropertyDescriptor<Order> = {
enumerable: true,
configurable: true,
writable: true,
get: () => orderProperty.defaultValue,
set: function (this: View, value: Order) {
setLayoutParamsProperty(this, (lp) => lp.order = value);
@ -24,7 +23,6 @@ const orderDescriptor: TypedPropertyDescriptor<Order> = {
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
enumerable: true,
configurable: true,
writable: true,
get: () => flexGrowProperty.defaultValue,
set: function (this: View, value: FlexGrow) {
setLayoutParamsProperty(this, (lp) => lp.flexGrow = value);
@ -34,7 +32,6 @@ const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
enumerable: true,
configurable: true,
writable: true,
get: () => flexShrinkProperty.defaultValue,
set: function (this: View, value: FlexShrink) {
setLayoutParamsProperty(this, (lp) => lp.flexShrink = value);
@ -44,7 +41,6 @@ const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
enumerable: true,
configurable: true,
writable: true,
get: () => false,
set: function (this: View, value: FlexWrapBefore) {
setLayoutParamsProperty(this, (lp) => lp.wrapBefore = value);
@ -54,7 +50,6 @@ const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
enumerable: true,
configurable: true,
writable: true,
get: () => AlignSelf.AUTO,
set: function (this: View, value: AlignSelf) {
setLayoutParamsProperty(this, (lp) => lp.alignSelf = alignSelfMap[value]);

View File

@ -32,7 +32,6 @@ function childHandler(view) {
const orderDescriptor: TypedPropertyDescriptor<OrderBase> = {
enumerable: true,
configurable: true,
writable: true,
get: () => orderProperty.defaultValue,
set: function (this: View, value: OrderBase) {
childHandler(this);
@ -42,7 +41,6 @@ const orderDescriptor: TypedPropertyDescriptor<OrderBase> = {
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
enumerable: true,
configurable: true,
writable: true,
get: () => flexGrowProperty.defaultValue,
set: function (this: View, value: FlexGrow) {
childHandler(this);
@ -52,7 +50,6 @@ const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
enumerable: true,
configurable: true,
writable: true,
get: () => flexShrinkProperty.defaultValue,
set: function (this: View, value: FlexShrink) {
childHandler(this);
@ -62,7 +59,6 @@ const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
enumerable: true,
configurable: true,
writable: true,
get: () => false,
set: function (this: View, value: FlexWrapBefore) {
childHandler(this);
@ -72,7 +68,6 @@ const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
enumerable: true,
configurable: true,
writable: true,
get: () => AlignSelf.AUTO,
set: function (this: View, value: AlignSelf) {
childHandler(this);

View File

@ -2,6 +2,7 @@
import { LayoutBase, View, Bindable, Property } from "ui/layouts/layout-base";
export * from "ui/layouts/layout-base";
function validateArgs(element: View): View {
if (!element) {
throw new Error("element cannot be null or undefinied.");

View File

@ -18,7 +18,6 @@ function setNativeProperty(view: View, setter: (lp: org.nativescript.widgets.Com
let rowDescriptor: TypedPropertyDescriptor<number> = {
enumerable: true,
configurable: true,
writable: true,
get: () => 0,
set: function (this: View, value: number) {
setNativeProperty(this, (lp) => lp.row = value);
@ -29,7 +28,6 @@ let rowDescriptor: TypedPropertyDescriptor<number> = {
let colDescriptor: TypedPropertyDescriptor<number> = {
enumerable: true,
configurable: true,
writable: true,
get: () => 0,
set: function (this: View, value: number) {
setNativeProperty(this, (lp) => lp.column = value);
@ -40,7 +38,6 @@ let colDescriptor: TypedPropertyDescriptor<number> = {
let rowSpanDescriptor: TypedPropertyDescriptor<number> = {
enumerable: true,
configurable: true,
writable: true,
get: () => 1,
set: function (this: View, value: number) {
setNativeProperty(this, (lp) => lp.rowSpan = value);
@ -51,7 +48,6 @@ let rowSpanDescriptor: TypedPropertyDescriptor<number> = {
let colSpanDescriptor: TypedPropertyDescriptor<number> = {
enumerable: true,
configurable: true,
writable: true,
get: () => 1,
set: function (this: View, value: number) {
setNativeProperty(this, (lp) => lp.columnSpan = value);

View File

@ -1,5 +1,7 @@
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
export * from "./layout-base-common";
export class LayoutBase extends LayoutBaseCommon {
get [clipToBoundsProperty.native](): boolean {

View File

@ -1,5 +1,7 @@
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
export * from "./layout-base-common";
export class LayoutBase extends LayoutBaseCommon {
get [clipToBoundsProperty.native](): boolean {

View File

@ -1,6 +1,8 @@
import { Layout as LayoutDefinition } from "ui/layouts/layout";
import { LayoutBase, View, layout, traceEnabled, traceWrite, traceCategories } from "ui/layouts/layout-base";
export * from "ui/layouts/layout-base";
const OWNER = Symbol("_owner");
var NativeViewGroupClass;

View File

@ -1,6 +1,7 @@
import { Layout as LayoutDefinition } from "ui/layouts/layout";
import { LayoutBase } from "ui/layouts/layout-base";
export * from "ui/layouts/layout-base";
export class Layout extends LayoutBase implements LayoutDefinition {
private _view: UIView;

View File

@ -1,6 +1,6 @@
{
"compilerOptions": {
"noEmitOnError": true,
"noEmitOnError": false,
"noEmitHelpers": true,
"target": "es5",
"module": "commonjs",