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