mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fix missing exports
This commit is contained in:
@ -6,7 +6,6 @@ export * from "./absolute-layout-common";
|
|||||||
let leftDescriptor: TypedPropertyDescriptor<Length> = {
|
let leftDescriptor: TypedPropertyDescriptor<Length> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => zeroLength,
|
get: () => zeroLength,
|
||||||
set: function (this: View, value: Length) {
|
set: function (this: View, value: Length) {
|
||||||
setNativeProperty(this, (lp) => lp.left = this.effectiveLeft);
|
setNativeProperty(this, (lp) => lp.left = this.effectiveLeft);
|
||||||
@ -17,7 +16,6 @@ let leftDescriptor: TypedPropertyDescriptor<Length> = {
|
|||||||
let topDescriptor: TypedPropertyDescriptor<Length> = {
|
let topDescriptor: TypedPropertyDescriptor<Length> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => zeroLength,
|
get: () => zeroLength,
|
||||||
set: function (this: View, value: Length) {
|
set: function (this: View, value: Length) {
|
||||||
setNativeProperty(this, (lp) => lp.top = this.effectiveTop);
|
setNativeProperty(this, (lp) => lp.top = this.effectiveTop);
|
||||||
|
@ -6,7 +6,6 @@ export * from "./dock-layout-common";
|
|||||||
let dockDescriptor: TypedPropertyDescriptor<"left" | "top" | "right" | "bottom"> = {
|
let dockDescriptor: TypedPropertyDescriptor<"left" | "top" | "right" | "bottom"> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => "left",
|
get: () => "left",
|
||||||
set: function (this: View, value: "left" | "top" | "right" | "bottom") {
|
set: function (this: View, value: "left" | "top" | "right" | "bottom") {
|
||||||
const nativeView: android.view.View = this._nativeView;
|
const nativeView: android.view.View = this._nativeView;
|
||||||
|
@ -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 });
|
export const alignContentProperty = new CssProperty<Style, AlignContent>({ name: "alignContent", cssName: "align-content", defaultValue: AlignContent.STRETCH, affectsLayout: isIOS, valueConverter: AlignContent.parse });
|
||||||
alignContentProperty.register(Style);
|
alignContentProperty.register(Style);
|
||||||
|
|
||||||
|
|
||||||
export const orderProperty = new CssProperty<Style, Order>({ name: "order", cssName: "order", defaultValue: ORDER_DEFAULT, valueConverter: Order.parse });
|
export const orderProperty = new CssProperty<Style, Order>({ name: "order", cssName: "order", defaultValue: ORDER_DEFAULT, valueConverter: Order.parse });
|
||||||
orderProperty.register(Style);
|
orderProperty.register(Style);
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ export * from "./flexbox-layout-common";
|
|||||||
const orderDescriptor: TypedPropertyDescriptor<Order> = {
|
const orderDescriptor: TypedPropertyDescriptor<Order> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => orderProperty.defaultValue,
|
get: () => orderProperty.defaultValue,
|
||||||
set: function (this: View, value: Order) {
|
set: function (this: View, value: Order) {
|
||||||
setLayoutParamsProperty(this, (lp) => lp.order = value);
|
setLayoutParamsProperty(this, (lp) => lp.order = value);
|
||||||
@ -24,7 +23,6 @@ const orderDescriptor: TypedPropertyDescriptor<Order> = {
|
|||||||
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => flexGrowProperty.defaultValue,
|
get: () => flexGrowProperty.defaultValue,
|
||||||
set: function (this: View, value: FlexGrow) {
|
set: function (this: View, value: FlexGrow) {
|
||||||
setLayoutParamsProperty(this, (lp) => lp.flexGrow = value);
|
setLayoutParamsProperty(this, (lp) => lp.flexGrow = value);
|
||||||
@ -34,7 +32,6 @@ const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
|||||||
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => flexShrinkProperty.defaultValue,
|
get: () => flexShrinkProperty.defaultValue,
|
||||||
set: function (this: View, value: FlexShrink) {
|
set: function (this: View, value: FlexShrink) {
|
||||||
setLayoutParamsProperty(this, (lp) => lp.flexShrink = value);
|
setLayoutParamsProperty(this, (lp) => lp.flexShrink = value);
|
||||||
@ -44,7 +41,6 @@ const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
|||||||
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => false,
|
get: () => false,
|
||||||
set: function (this: View, value: FlexWrapBefore) {
|
set: function (this: View, value: FlexWrapBefore) {
|
||||||
setLayoutParamsProperty(this, (lp) => lp.wrapBefore = value);
|
setLayoutParamsProperty(this, (lp) => lp.wrapBefore = value);
|
||||||
@ -54,7 +50,6 @@ const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
|||||||
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
|
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => AlignSelf.AUTO,
|
get: () => AlignSelf.AUTO,
|
||||||
set: function (this: View, value: AlignSelf) {
|
set: function (this: View, value: AlignSelf) {
|
||||||
setLayoutParamsProperty(this, (lp) => lp.alignSelf = alignSelfMap[value]);
|
setLayoutParamsProperty(this, (lp) => lp.alignSelf = alignSelfMap[value]);
|
||||||
|
@ -32,7 +32,6 @@ function childHandler(view) {
|
|||||||
const orderDescriptor: TypedPropertyDescriptor<OrderBase> = {
|
const orderDescriptor: TypedPropertyDescriptor<OrderBase> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => orderProperty.defaultValue,
|
get: () => orderProperty.defaultValue,
|
||||||
set: function (this: View, value: OrderBase) {
|
set: function (this: View, value: OrderBase) {
|
||||||
childHandler(this);
|
childHandler(this);
|
||||||
@ -42,7 +41,6 @@ const orderDescriptor: TypedPropertyDescriptor<OrderBase> = {
|
|||||||
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => flexGrowProperty.defaultValue,
|
get: () => flexGrowProperty.defaultValue,
|
||||||
set: function (this: View, value: FlexGrow) {
|
set: function (this: View, value: FlexGrow) {
|
||||||
childHandler(this);
|
childHandler(this);
|
||||||
@ -52,7 +50,6 @@ const flexGrowDescriptor: TypedPropertyDescriptor<FlexGrow> = {
|
|||||||
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => flexShrinkProperty.defaultValue,
|
get: () => flexShrinkProperty.defaultValue,
|
||||||
set: function (this: View, value: FlexShrink) {
|
set: function (this: View, value: FlexShrink) {
|
||||||
childHandler(this);
|
childHandler(this);
|
||||||
@ -62,7 +59,6 @@ const flexShrinkDescriptor: TypedPropertyDescriptor<FlexShrink> = {
|
|||||||
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => false,
|
get: () => false,
|
||||||
set: function (this: View, value: FlexWrapBefore) {
|
set: function (this: View, value: FlexWrapBefore) {
|
||||||
childHandler(this);
|
childHandler(this);
|
||||||
@ -72,7 +68,6 @@ const flexWrapBeforeDescriptor: TypedPropertyDescriptor<FlexWrapBefore> = {
|
|||||||
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
|
const alignSelfDescriptor: TypedPropertyDescriptor<AlignSelf> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => AlignSelf.AUTO,
|
get: () => AlignSelf.AUTO,
|
||||||
set: function (this: View, value: AlignSelf) {
|
set: function (this: View, value: AlignSelf) {
|
||||||
childHandler(this);
|
childHandler(this);
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import { LayoutBase, View, Bindable, Property } from "ui/layouts/layout-base";
|
import { LayoutBase, View, Bindable, Property } from "ui/layouts/layout-base";
|
||||||
|
|
||||||
export * from "ui/layouts/layout-base";
|
export * from "ui/layouts/layout-base";
|
||||||
|
|
||||||
function validateArgs(element: View): View {
|
function validateArgs(element: View): View {
|
||||||
if (!element) {
|
if (!element) {
|
||||||
throw new Error("element cannot be null or undefinied.");
|
throw new Error("element cannot be null or undefinied.");
|
||||||
|
@ -18,7 +18,6 @@ function setNativeProperty(view: View, setter: (lp: org.nativescript.widgets.Com
|
|||||||
let rowDescriptor: TypedPropertyDescriptor<number> = {
|
let rowDescriptor: TypedPropertyDescriptor<number> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => 0,
|
get: () => 0,
|
||||||
set: function (this: View, value: number) {
|
set: function (this: View, value: number) {
|
||||||
setNativeProperty(this, (lp) => lp.row = value);
|
setNativeProperty(this, (lp) => lp.row = value);
|
||||||
@ -29,7 +28,6 @@ let rowDescriptor: TypedPropertyDescriptor<number> = {
|
|||||||
let colDescriptor: TypedPropertyDescriptor<number> = {
|
let colDescriptor: TypedPropertyDescriptor<number> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => 0,
|
get: () => 0,
|
||||||
set: function (this: View, value: number) {
|
set: function (this: View, value: number) {
|
||||||
setNativeProperty(this, (lp) => lp.column = value);
|
setNativeProperty(this, (lp) => lp.column = value);
|
||||||
@ -40,7 +38,6 @@ let colDescriptor: TypedPropertyDescriptor<number> = {
|
|||||||
let rowSpanDescriptor: TypedPropertyDescriptor<number> = {
|
let rowSpanDescriptor: TypedPropertyDescriptor<number> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => 1,
|
get: () => 1,
|
||||||
set: function (this: View, value: number) {
|
set: function (this: View, value: number) {
|
||||||
setNativeProperty(this, (lp) => lp.rowSpan = value);
|
setNativeProperty(this, (lp) => lp.rowSpan = value);
|
||||||
@ -51,7 +48,6 @@ let rowSpanDescriptor: TypedPropertyDescriptor<number> = {
|
|||||||
let colSpanDescriptor: TypedPropertyDescriptor<number> = {
|
let colSpanDescriptor: TypedPropertyDescriptor<number> = {
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
|
||||||
get: () => 1,
|
get: () => 1,
|
||||||
set: function (this: View, value: number) {
|
set: function (this: View, value: number) {
|
||||||
setNativeProperty(this, (lp) => lp.columnSpan = value);
|
setNativeProperty(this, (lp) => lp.columnSpan = value);
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
|
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
|
||||||
|
|
||||||
|
export * from "./layout-base-common";
|
||||||
|
|
||||||
export class LayoutBase extends LayoutBaseCommon {
|
export class LayoutBase extends LayoutBaseCommon {
|
||||||
|
|
||||||
get [clipToBoundsProperty.native](): boolean {
|
get [clipToBoundsProperty.native](): boolean {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
|
import { LayoutBaseCommon, clipToBoundsProperty } from "./layout-base-common";
|
||||||
|
|
||||||
|
export * from "./layout-base-common";
|
||||||
|
|
||||||
export class LayoutBase extends LayoutBaseCommon {
|
export class LayoutBase extends LayoutBaseCommon {
|
||||||
|
|
||||||
get [clipToBoundsProperty.native](): boolean {
|
get [clipToBoundsProperty.native](): boolean {
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import { Layout as LayoutDefinition } from "ui/layouts/layout";
|
import { Layout as LayoutDefinition } from "ui/layouts/layout";
|
||||||
import { LayoutBase, View, layout, traceEnabled, traceWrite, traceCategories } from "ui/layouts/layout-base";
|
import { LayoutBase, View, layout, traceEnabled, traceWrite, traceCategories } from "ui/layouts/layout-base";
|
||||||
|
|
||||||
|
export * from "ui/layouts/layout-base";
|
||||||
|
|
||||||
const OWNER = Symbol("_owner");
|
const OWNER = Symbol("_owner");
|
||||||
|
|
||||||
var NativeViewGroupClass;
|
var NativeViewGroupClass;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { Layout as LayoutDefinition } from "ui/layouts/layout";
|
import { Layout as LayoutDefinition } from "ui/layouts/layout";
|
||||||
import { LayoutBase } from "ui/layouts/layout-base";
|
import { LayoutBase } from "ui/layouts/layout-base";
|
||||||
|
|
||||||
|
export * from "ui/layouts/layout-base";
|
||||||
export class Layout extends LayoutBase implements LayoutDefinition {
|
export class Layout extends LayoutBase implements LayoutDefinition {
|
||||||
private _view: UIView;
|
private _view: UIView;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmitOnError": true,
|
"noEmitOnError": false,
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
Reference in New Issue
Block a user