update dist

This commit is contained in:
pengfei.zhou 2020-05-16 19:00:48 +08:00 committed by osborn
parent 0633c1c19d
commit a875895e7e
2 changed files with 1168 additions and 1109 deletions

View File

@ -1645,6 +1645,7 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
function Property(target, propKey) { function Property(target, propKey) {
Reflect.defineMetadata(propKey, true, target); Reflect.defineMetadata(propKey, true, target);
} }
let View = /** @class */ (() => {
class View { class View {
constructor() { constructor() {
this.width = 0; this.width = 0;
@ -1902,6 +1903,8 @@ __decorate([
Property, Property,
__metadata("design:type", Object) __metadata("design:type", Object)
], View.prototype, "flexConfig", void 0); ], View.prototype, "flexConfig", void 0);
return View;
})();
class Superview extends View { class Superview extends View {
subviewById(id) { subviewById(id) {
for (let v of this.allSubviews()) { for (let v of this.allSubviews()) {
@ -1983,6 +1986,7 @@ const BOTTOM = (END | SPECIFIED) << SHIFT_Y;
const CENTER_X = SPECIFIED << SHIFT_X; const CENTER_X = SPECIFIED << SHIFT_X;
const CENTER_Y = SPECIFIED << SHIFT_Y; const CENTER_Y = SPECIFIED << SHIFT_Y;
const CENTER = CENTER_X | CENTER_Y; const CENTER = CENTER_X | CENTER_Y;
let Gravity = /** @class */ (() => {
class Gravity { class Gravity {
constructor() { constructor() {
this.val = 0; this.val = 0;
@ -2041,6 +2045,8 @@ Gravity.Left = Gravity.origin.left();
Gravity.Right = Gravity.origin.right(); Gravity.Right = Gravity.origin.right();
Gravity.Top = Gravity.origin.top(); Gravity.Top = Gravity.origin.top();
Gravity.Bottom = Gravity.origin.bottom(); Gravity.Bottom = Gravity.origin.bottom();
return Gravity;
})();
function gravity() { function gravity() {
return new Gravity; return new Gravity;
} }
@ -2138,6 +2144,7 @@ class Stack extends Group {
} }
class Root extends Stack { class Root extends Stack {
} }
let LinearLayout = /** @class */ (() => {
class LinearLayout extends Group { class LinearLayout extends Group {
} }
__decorate$1([ __decorate$1([
@ -2148,6 +2155,8 @@ __decorate$1([
Property, Property,
__metadata$1("design:type", Gravity) __metadata$1("design:type", Gravity)
], LinearLayout.prototype, "gravity", void 0); ], LinearLayout.prototype, "gravity", void 0);
return LinearLayout;
})();
class VLayout extends LinearLayout { class VLayout extends LinearLayout {
} }
class HLayout extends LinearLayout { class HLayout extends LinearLayout {
@ -2224,6 +2233,7 @@ function NativeCall(target, propertyKey, descriptor) {
}; };
return descriptor; return descriptor;
} }
let Panel = /** @class */ (() => {
class Panel { class Panel {
constructor() { constructor() {
this.destroyed = false; this.destroyed = false;
@ -2449,6 +2459,8 @@ __decorate$2([
__metadata$2("design:paramtypes", [Array, String]), __metadata$2("design:paramtypes", [Array, String]),
__metadata$2("design:returntype", void 0) __metadata$2("design:returntype", void 0)
], Panel.prototype, "__response__", null); ], Panel.prototype, "__response__", null);
return Panel;
})();
/* /*
* Copyright [2019] [Doric.Pub] * Copyright [2019] [Doric.Pub]
@ -2669,6 +2681,7 @@ class AnimationSet {
/** /**
* Store color as format AARRGGBB or RRGGBB * Store color as format AARRGGBB or RRGGBB
*/ */
let Color = /** @class */ (() => {
class Color { class Color {
constructor(v) { constructor(v) {
this._value = 0; this._value = 0;
@ -2720,6 +2733,8 @@ Color.YELLOW = new Color(0xFFFFFF00);
Color.CYAN = new Color(0xFF00FFFF); Color.CYAN = new Color(0xFF00FFFF);
Color.MAGENTA = new Color(0xFFFF00FF); Color.MAGENTA = new Color(0xFFFF00FF);
Color.TRANSPARENT = new Color(0); Color.TRANSPARENT = new Color(0);
return Color;
})();
(function (GradientOrientation) { (function (GradientOrientation) {
/** draw the gradient from the top to the bottom */ /** draw the gradient from the top to the bottom */
GradientOrientation[GradientOrientation["TOP_BOTTOM"] = 0] = "TOP_BOTTOM"; GradientOrientation[GradientOrientation["TOP_BOTTOM"] = 0] = "TOP_BOTTOM";
@ -2754,6 +2769,7 @@ var __metadata$3 = (undefined && undefined.__metadata) || function (k, v) {
TruncateAt[TruncateAt["Start"] = 2] = "Start"; TruncateAt[TruncateAt["Start"] = 2] = "Start";
TruncateAt[TruncateAt["Clip"] = 3] = "Clip"; TruncateAt[TruncateAt["Clip"] = 3] = "Clip";
})(exports.TruncateAt || (exports.TruncateAt = {})); })(exports.TruncateAt || (exports.TruncateAt = {}));
let Text = /** @class */ (() => {
class Text extends View { class Text extends View {
} }
__decorate$3([ __decorate$3([
@ -2812,6 +2828,8 @@ __decorate$3([
Property, Property,
__metadata$3("design:type", Number) __metadata$3("design:type", Number)
], Text.prototype, "truncateAt", void 0); ], Text.prototype, "truncateAt", void 0);
return Text;
})();
function text(config) { function text(config) {
const ret = new Text; const ret = new Text;
ret.layoutConfig = layoutConfig().fit(); ret.layoutConfig = layoutConfig().fit();
@ -2835,6 +2853,7 @@ var __metadata$4 = (undefined && undefined.__metadata) || function (k, v) {
ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit"; ScaleType[ScaleType["ScaleAspectFit"] = 1] = "ScaleAspectFit";
ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill"; ScaleType[ScaleType["ScaleAspectFill"] = 2] = "ScaleAspectFill";
})(exports.ScaleType || (exports.ScaleType = {})); })(exports.ScaleType || (exports.ScaleType = {}));
let Image = /** @class */ (() => {
class Image extends View { class Image extends View {
} }
__decorate$4([ __decorate$4([
@ -2902,6 +2921,8 @@ __decorate$4([
Property, Property,
__metadata$4("design:type", Object) __metadata$4("design:type", Object)
], Image.prototype, "stretchInset", void 0); ], Image.prototype, "stretchInset", void 0);
return Image;
})();
function image(config) { function image(config) {
const ret = new Image; const ret = new Image;
ret.layoutConfig = layoutConfig().fit(); ret.layoutConfig = layoutConfig().fit();
@ -2935,12 +2956,16 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) { var __metadata$5 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let ListItem = /** @class */ (() => {
class ListItem extends Stack { class ListItem extends Stack {
} }
__decorate$5([ __decorate$5([
Property, Property,
__metadata$5("design:type", String) __metadata$5("design:type", String)
], ListItem.prototype, "identifier", void 0); ], ListItem.prototype, "identifier", void 0);
return ListItem;
})();
let List = /** @class */ (() => {
class List extends Superview { class List extends Superview {
constructor() { constructor() {
super(...arguments); super(...arguments);
@ -2958,8 +2983,7 @@ class List extends Superview {
} }
} }
scrollToItem(context, index, config) { scrollToItem(context, index, config) {
var _a; const animated = config === null || config === void 0 ? void 0 : config.animated;
const animated = (_a = config) === null || _a === void 0 ? void 0 : _a.animated;
return this.nativeChannel(context, 'scrollToItem')({ index, animated, }); return this.nativeChannel(context, 'scrollToItem')({ index, animated, });
} }
reset() { reset() {
@ -3030,6 +3054,8 @@ __decorate$5([
Property, Property,
__metadata$5("design:type", Number) __metadata$5("design:type", Number)
], List.prototype, "scrolledPosition", void 0); ], List.prototype, "scrolledPosition", void 0);
return List;
})();
function list(config) { function list(config) {
const ret = new List; const ret = new List;
for (let key in config) { for (let key in config) {
@ -3065,12 +3091,16 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) { var __metadata$6 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let SlideItem = /** @class */ (() => {
class SlideItem extends Stack { class SlideItem extends Stack {
} }
__decorate$6([ __decorate$6([
Property, Property,
__metadata$6("design:type", String) __metadata$6("design:type", String)
], SlideItem.prototype, "identifier", void 0); ], SlideItem.prototype, "identifier", void 0);
return SlideItem;
})();
let Slider = /** @class */ (() => {
class Slider extends Superview { class Slider extends Superview {
constructor() { constructor() {
super(...arguments); super(...arguments);
@ -3130,6 +3160,8 @@ __decorate$6([
Property, Property,
__metadata$6("design:type", Boolean) __metadata$6("design:type", Boolean)
], Slider.prototype, "loop", void 0); ], Slider.prototype, "loop", void 0);
return Slider;
})();
function slider(config) { function slider(config) {
const ret = new Slider; const ret = new Slider;
for (let key in config) { for (let key in config) {
@ -3176,6 +3208,7 @@ function scroller(content, config) {
v.content = content; v.content = content;
}); });
} }
let Scroller = /** @class */ (() => {
class Scroller extends Superview { class Scroller extends Superview {
allSubviews() { allSubviews() {
return [this.content]; return [this.content];
@ -3203,6 +3236,8 @@ __decorate$7([
Property, Property,
__metadata$7("design:type", Function) __metadata$7("design:type", Function)
], Scroller.prototype, "onScrollEnd", void 0); ], Scroller.prototype, "onScrollEnd", void 0);
return Scroller;
})();
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@ -3213,6 +3248,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) { var __metadata$8 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let Refreshable = /** @class */ (() => {
class Refreshable extends Superview { class Refreshable extends Superview {
allSubviews() { allSubviews() {
const ret = [this.content]; const ret = [this.content];
@ -3243,6 +3279,8 @@ __decorate$8([
Property, Property,
__metadata$8("design:type", Function) __metadata$8("design:type", Function)
], Refreshable.prototype, "onRefresh", void 0); ], Refreshable.prototype, "onRefresh", void 0);
return Refreshable;
})();
function refreshable(config) { function refreshable(config) {
const ret = new Refreshable; const ret = new Refreshable;
ret.layoutConfig = layoutConfig().fit(); ret.layoutConfig = layoutConfig().fit();
@ -3265,6 +3303,7 @@ var ValueType;
ValueType[ValueType["Percent"] = 2] = "Percent"; ValueType[ValueType["Percent"] = 2] = "Percent";
ValueType[ValueType["Auto"] = 3] = "Auto"; ValueType[ValueType["Auto"] = 3] = "Auto";
})(ValueType || (ValueType = {})); })(ValueType || (ValueType = {}));
let FlexTypedValue = /** @class */ (() => {
class FlexTypedValue { class FlexTypedValue {
constructor(type) { constructor(type) {
this.value = 0; this.value = 0;
@ -3288,6 +3327,8 @@ class FlexTypedValue {
} }
} }
FlexTypedValue.Auto = new FlexTypedValue(ValueType.Auto); FlexTypedValue.Auto = new FlexTypedValue(ValueType.Auto);
return FlexTypedValue;
})();
(function (FlexDirection) { (function (FlexDirection) {
FlexDirection[FlexDirection["COLUMN"] = 0] = "COLUMN"; FlexDirection[FlexDirection["COLUMN"] = 0] = "COLUMN";
FlexDirection[FlexDirection["COLUMN_REVERSE"] = 1] = "COLUMN_REVERSE"; FlexDirection[FlexDirection["COLUMN_REVERSE"] = 1] = "COLUMN_REVERSE";
@ -3345,12 +3386,16 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) { var __metadata$9 = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let FlowLayoutItem = /** @class */ (() => {
class FlowLayoutItem extends Stack { class FlowLayoutItem extends Stack {
} }
__decorate$9([ __decorate$9([
Property, Property,
__metadata$9("design:type", String) __metadata$9("design:type", String)
], FlowLayoutItem.prototype, "identifier", void 0); ], FlowLayoutItem.prototype, "identifier", void 0);
return FlowLayoutItem;
})();
let FlowLayout = /** @class */ (() => {
class FlowLayout extends Superview { class FlowLayout extends Superview {
constructor() { constructor() {
super(...arguments); super(...arguments);
@ -3444,6 +3489,8 @@ __decorate$9([
Property, Property,
__metadata$9("design:type", Function) __metadata$9("design:type", Function)
], FlowLayout.prototype, "onScrollEnd", void 0); ], FlowLayout.prototype, "onScrollEnd", void 0);
return FlowLayout;
})();
function flowlayout(config) { function flowlayout(config) {
const ret = new FlowLayout; const ret = new FlowLayout;
for (let key in config) { for (let key in config) {
@ -3479,6 +3526,7 @@ var __decorate$a = (undefined && undefined.__decorate) || function (decorators,
var __metadata$a = (undefined && undefined.__metadata) || function (k, v) { var __metadata$a = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let Input = /** @class */ (() => {
class Input extends View { class Input extends View {
getText(context) { getText(context) {
return this.nativeChannel(context, 'getText')(); return this.nativeChannel(context, 'getText')();
@ -3536,6 +3584,8 @@ __decorate$a([
Property, Property,
__metadata$a("design:type", Number) __metadata$a("design:type", Number)
], Input.prototype, "maxLength", void 0); ], Input.prototype, "maxLength", void 0);
return Input;
})();
function input(config) { function input(config) {
const ret = new Input; const ret = new Input;
ret.layoutConfig = layoutConfig().just(); ret.layoutConfig = layoutConfig().just();
@ -3554,6 +3604,7 @@ var __decorate$b = (undefined && undefined.__decorate) || function (decorators,
var __metadata$b = (undefined && undefined.__metadata) || function (k, v) { var __metadata$b = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let NestedSlider = /** @class */ (() => {
class NestedSlider extends Group { class NestedSlider extends Group {
addSlideItem(view) { addSlideItem(view) {
this.addChild(view); this.addChild(view);
@ -3569,6 +3620,8 @@ __decorate$b([
Property, Property,
__metadata$b("design:type", Function) __metadata$b("design:type", Function)
], NestedSlider.prototype, "onPageSlided", void 0); ], NestedSlider.prototype, "onPageSlided", void 0);
return NestedSlider;
})();
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@ -3579,12 +3632,15 @@ var __decorate$c = (undefined && undefined.__decorate) || function (decorators,
var __metadata$c = (undefined && undefined.__metadata) || function (k, v) { var __metadata$c = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let Draggable = /** @class */ (() => {
class Draggable extends Stack { class Draggable extends Stack {
} }
__decorate$c([ __decorate$c([
Property, Property,
__metadata$c("design:type", Function) __metadata$c("design:type", Function)
], Draggable.prototype, "onDrag", void 0); ], Draggable.prototype, "onDrag", void 0);
return Draggable;
})();
function draggable(views, config) { function draggable(views, config) {
const ret = new Draggable; const ret = new Draggable;
ret.layoutConfig = layoutConfig().fit(); ret.layoutConfig = layoutConfig().fit();
@ -3613,6 +3669,7 @@ var __decorate$d = (undefined && undefined.__decorate) || function (decorators,
var __metadata$d = (undefined && undefined.__metadata) || function (k, v) { var __metadata$d = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}; };
let Switch = /** @class */ (() => {
class Switch extends View { class Switch extends View {
} }
__decorate$d([ __decorate$d([
@ -3635,6 +3692,8 @@ __decorate$d([
Property, Property,
__metadata$d("design:type", Color) __metadata$d("design:type", Color)
], Switch.prototype, "thumbTintColor", void 0); ], Switch.prototype, "thumbTintColor", void 0);
return Switch;
})();
function switchView(config) { function switchView(config) {
const ret = new Switch; const ret = new Switch;
ret.layoutConfig = layoutConfig().just(); ret.layoutConfig = layoutConfig().just();
@ -4220,7 +4279,7 @@ return __module.exports;
var doric_web = (function (exports, axios, sandbox) { var doric_web = (function (exports, axios, sandbox) {
'use strict'; 'use strict';
axios = axios && axios.hasOwnProperty('default') ? axios['default'] : axios; axios = axios && Object.prototype.hasOwnProperty.call(axios, 'default') ? axios['default'] : axios;
class DoricPlugin { class DoricPlugin {
constructor(context) { constructor(context) {

File diff suppressed because one or more lines are too long