|
|
|
@ -596,7 +596,7 @@ BI.Text = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.text", BI.Text);/** |
|
|
|
|
BI.shortcut("bi.text", BI.Text);/** |
|
|
|
|
* guy |
|
|
|
|
* @class BI.BasicButton |
|
|
|
|
* @extends BI.Single |
|
|
|
@ -1020,9 +1020,11 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.setValue([]); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
self.fireEvent(BI.ButtonGroup.EVENT_CHANGE, value, obj); |
|
|
|
|
} else { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
} |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
btn.on(BI.Events.DESTROY, function () { |
|
|
|
|
BI.remove(self.buttons, btn); |
|
|
|
@ -1034,7 +1036,6 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_packageBtns: function (btns) { |
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
|
btns = BI.map(btns, function (k, it) { |
|
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
@ -1049,6 +1050,18 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
return btns; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_packageSimpleItems: function (btns) { |
|
|
|
|
var o = this.options; |
|
|
|
|
return BI.map(o.items, function (i, item) { |
|
|
|
|
if (BI.stripEL(item) === item) { |
|
|
|
|
return btns[i]; |
|
|
|
|
} |
|
|
|
|
return BI.extend({}, item, { |
|
|
|
|
el: btns[i] |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_packageItems: function (items, packBtns) { |
|
|
|
|
return BI.createItems(BI.makeArrayByArray(items, {}), BI.clone(packBtns)); |
|
|
|
|
}, |
|
|
|
@ -1064,6 +1077,11 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
return layout; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
|
_isSimpleLayout: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
return o.layouts.length === 1 && !BI.isArray(o.items[0]) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doBehavior: function () { |
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
@ -1078,9 +1096,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
var btns = this._btnsCreator.apply(this, arguments); |
|
|
|
|
this.buttons = BI.concat(btns, this.buttons); |
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
|
if (o.layouts.length === 1 && !BI.isNotEmptyArray(o.layouts[0].items) |
|
|
|
|
&& this.layouts && this.layouts.prependItems) { |
|
|
|
|
if (this._isSimpleLayout() && this.layouts && this.layouts.prependItems) { |
|
|
|
|
this.layouts.prependItems(btns); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -1095,8 +1111,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
this.buttons = BI.concat(this.buttons, btns); |
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
|
if (o.layouts.length === 1 && !BI.isNotEmptyArray(o.layouts[0].items) |
|
|
|
|
&& this.layouts && this.layouts.addItems) { |
|
|
|
|
if (this._isSimpleLayout() && this.layouts && this.layouts.addItems) { |
|
|
|
|
this.layouts.addItems(btns); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -1106,35 +1121,33 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
removeItemAt: function (indexes) { |
|
|
|
|
var self = this; |
|
|
|
|
indexes = BI.isArray(indexes) ? indexes : [indexes]; |
|
|
|
|
var buttons = []; |
|
|
|
|
BI.each(indexes, function (i, index) { |
|
|
|
|
buttons.push(self.buttons[index]); |
|
|
|
|
}); |
|
|
|
|
BI.each(buttons, function (i, btn) { |
|
|
|
|
btn && btn.destroy(); |
|
|
|
|
}) |
|
|
|
|
BI.remove(this.buttons, indexes); |
|
|
|
|
this.layouts.removeItemAt(indexes); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
removeItems: function (v) { |
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
var indexes = []; |
|
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
|
if (BI.deepContains(v, item.getValue())) { |
|
|
|
|
indexes.push(i); |
|
|
|
|
removeItems: function (values) { |
|
|
|
|
values = BI.isArray(values) ? values : [values]; |
|
|
|
|
var deleted = []; |
|
|
|
|
BI.each(this.buttons, function (i, button) { |
|
|
|
|
if (BI.deepContains(values, button.getValue())) { |
|
|
|
|
deleted.push(i); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.removeItemAt(indexes); |
|
|
|
|
BI.remove(this.buttons, deleted); |
|
|
|
|
this.layouts.removeItemAt(deleted); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
items = items || []; |
|
|
|
|
this.options.items = items; |
|
|
|
|
this.empty(); |
|
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
|
|
this.buttons = this._btnsCreator.apply(this, arguments); |
|
|
|
|
items = this._packageItems(items, this._packageBtns(this.buttons)); |
|
|
|
|
if (this._isSimpleLayout()) { |
|
|
|
|
items = this._packageSimpleItems(this.buttons); |
|
|
|
|
} else { |
|
|
|
|
items = this._packageItems(items, this._packageBtns(this.buttons)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
|
}, |
|
|
|
@ -1260,8 +1273,14 @@ BI.ButtonGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
return node; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
|
BI.ButtonGroup.superclass.empty.apply(this, arguments); |
|
|
|
|
this.options.items = []; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
destroy: function () { |
|
|
|
|
BI.ButtonGroup.superclass.destroy.apply(this, arguments); |
|
|
|
|
this.options.items = []; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.extend(BI.ButtonGroup, { |
|
|
|
@ -1273,7 +1292,7 @@ BI.extend(BI.ButtonGroup, {
|
|
|
|
|
}); |
|
|
|
|
BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.button_group", BI.ButtonGroup);/** |
|
|
|
|
BI.shortcut("bi.button_group", BI.ButtonGroup);/** |
|
|
|
|
* Created by GUY on 2015/8/10. |
|
|
|
|
* @class BI.ButtonTree |
|
|
|
|
* @extends BI.ButtonGroup |
|
|
|
@ -1454,7 +1473,7 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, {
|
|
|
|
|
}); |
|
|
|
|
BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.button_tree", BI.ButtonTree);/** |
|
|
|
|
BI.shortcut("bi.button_tree", BI.ButtonTree);/** |
|
|
|
|
* guy |
|
|
|
|
* 异步树 |
|
|
|
|
* @class BI.TreeView |
|
|
|
@ -1960,7 +1979,7 @@ BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE";
|
|
|
|
|
BI.TreeView.EVENT_INIT = BI.Events.INIT; |
|
|
|
|
BI.TreeView.EVENT_AFTERINIT = BI.Events.AFTERINIT; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.tree_view", BI.TreeView);/** |
|
|
|
|
BI.shortcut("bi.tree_view", BI.TreeView);/** |
|
|
|
|
* guy |
|
|
|
|
* 同步树 |
|
|
|
|
* @class BI.SyncTree |
|
|
|
@ -2168,7 +2187,7 @@ BI.SyncTree = BI.inherit(BI.TreeView, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.sync_tree", BI.SyncTree);/** |
|
|
|
|
BI.shortcut("bi.sync_tree", BI.SyncTree);/** |
|
|
|
|
* guy |
|
|
|
|
* 局部树,两个请求树, 第一个请求构造树,第二个请求获取节点 |
|
|
|
|
* @class BI.PartTree |
|
|
|
@ -2342,17 +2361,14 @@ BI.PartTree = BI.inherit(BI.SyncTree, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.part_tree", BI.PartTree);BI.Resizers = new BI.ResizeController(); |
|
|
|
|
BI.shortcut("bi.part_tree", BI.PartTree);BI.Resizers = new BI.ResizeController(); |
|
|
|
|
BI.Layers = new BI.LayerController(); |
|
|
|
|
BI.Maskers = new BI.MaskersController(); |
|
|
|
|
BI.Bubbles = new BI.BubblesController(); |
|
|
|
|
BI.Tooltips = new BI.TooltipsController(); |
|
|
|
|
BI.Popovers = new BI.FloatBoxController(); |
|
|
|
|
BI.Broadcasts = new BI.BroadcastController(); |
|
|
|
|
BI.StyleLoaders = new BI.StyleLoaderManager(); |
|
|
|
|
|
|
|
|
|
BI.servletURL = "dist/"; |
|
|
|
|
BI.i18n = {};/** |
|
|
|
|
BI.StyleLoaders = new BI.StyleLoaderManager();/** |
|
|
|
|
* canvas绘图 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/11/18. |
|
|
|
@ -2483,7 +2499,7 @@ BI.Canvas = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut("bi.canvas", BI.Canvas);/** |
|
|
|
|
BI.shortcut("bi.canvas", BI.Canvas);/** |
|
|
|
|
* Collection |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/15. |
|
|
|
@ -2774,7 +2790,7 @@ BI.Collection = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Collection.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
|
$.shortcut('bi.collection_view', BI.Collection);/** |
|
|
|
|
BI.shortcut('bi.collection_view', BI.Collection);/** |
|
|
|
|
* @class BI.Combo |
|
|
|
|
* @extends BI.Widget |
|
|
|
|
*/ |
|
|
|
@ -3172,7 +3188,7 @@ BI.Combo.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
|
|
|
|
|
BI.Combo.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
|
BI.Combo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.combo", BI.Combo);/** |
|
|
|
|
BI.shortcut("bi.combo", BI.Combo);/** |
|
|
|
|
* |
|
|
|
|
* 某个可以展开的节点 |
|
|
|
|
* |
|
|
|
@ -3449,7 +3465,7 @@ BI.Expander.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
|
|
|
|
|
BI.Expander.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
|
BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.expander", BI.Expander);/** |
|
|
|
|
BI.shortcut("bi.expander", BI.Expander);/** |
|
|
|
|
* Created by GUY on 2015/8/10. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@ -3549,7 +3565,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widget, { |
|
|
|
|
BI.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.VirtualGroup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-virtual-group", |
|
|
|
@ -3603,24 +3619,36 @@ $.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widg
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
prependItems: function (items) { |
|
|
|
|
this.layouts.prependItems(items);
|
|
|
|
|
this.layouts.prependItems(items); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
this.layouts.setValue(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.layouts.getValue(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
|
this.layouts.empty(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
var self = this; |
|
|
|
|
items = items || []; |
|
|
|
|
this.options.items = items; |
|
|
|
|
items = this._packageItems(items, this._packageBtns(items)); |
|
|
|
|
items = this._packageBtns(items); |
|
|
|
|
if (!this.layouts) { |
|
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
|
} else { |
|
|
|
|
this.layouts.populate(this._packageLayout(items).items); |
|
|
|
|
this.layouts.populate(items); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.VirtualGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.virtual_group", BI.VirtualGroup);/** |
|
|
|
|
BI.shortcut("bi.virtual_group", BI.VirtualGroup);/** |
|
|
|
|
* 加载控件 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/8/31. |
|
|
|
@ -3881,13 +3909,13 @@ BI.Loader = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Loader.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.loader", BI.Loader);/** |
|
|
|
|
BI.shortcut("bi.loader", BI.Loader);/** |
|
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function(){ |
|
|
|
|
return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this,arguments), { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
direction: "bottom",//top, bottom, left, right, custom
|
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
@ -3898,7 +3926,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [], |
|
|
|
|
layouts: [] |
|
|
|
|
}, |
|
|
|
|
cardCreator: function(v){ |
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
return BI.createWidget(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -3907,8 +3935,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function(){ |
|
|
|
|
BI.Navigation.superclass._init.apply(this,arguments); |
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.tab = BI.createWidget(this.options.tab, {type: "bi.button_group"}); |
|
|
|
|
this.cardMap = {}; |
|
|
|
@ -3926,10 +3953,10 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
new BI.ShowListener({ |
|
|
|
|
eventObj: this.tab, |
|
|
|
|
cardLayout: this.layout, |
|
|
|
|
cardNameCreator: function(v){ |
|
|
|
|
cardNameCreator: function (v) { |
|
|
|
|
return self.showIndex + v; |
|
|
|
|
}, |
|
|
|
|
cardCreator: function(v){ |
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
var card = o.cardCreator(v); |
|
|
|
|
self.cardMap[v] = card; |
|
|
|
|
return card; |
|
|
|
@ -3937,37 +3964,41 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
afterCardCreated: BI.bind(this.afterCardCreated, this), |
|
|
|
|
afterCardShow: BI.bind(this.afterCardShow, this) |
|
|
|
|
}) |
|
|
|
|
if(o.defaultShowIndex !== false){ |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
if (o.defaultShowIndex !== false) { |
|
|
|
|
this.setSelect(o.defaultShowIndex); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
afterCardCreated: function(v){ |
|
|
|
|
afterCardCreated: function (v) { |
|
|
|
|
var self = this; |
|
|
|
|
this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function(type, value, obj){ |
|
|
|
|
this.cardMap[v].on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
if(type === BI.Events.CLICK) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
self.fireEvent(BI.Navigation.EVENT_CHANGE, obj); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.options.afterCardCreated.apply(this, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
afterCardShow: function(v){ |
|
|
|
|
afterCardShow: function (v) { |
|
|
|
|
this.showIndex = v; |
|
|
|
|
this.options.afterCardShow.apply(this, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function(){ |
|
|
|
|
populate: function () { |
|
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
|
if(card){ |
|
|
|
|
if (card) { |
|
|
|
|
return card.populate.apply(card, arguments); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setSelect: function(v){ |
|
|
|
|
setSelect: function (v) { |
|
|
|
|
this.showIndex = v; |
|
|
|
|
if(!this.layout.isCardExisted(v)){ |
|
|
|
|
if (!this.layout.isCardExisted(v)) { |
|
|
|
|
var card = this.options.cardCreator(v); |
|
|
|
|
this.cardMap[v] = card; |
|
|
|
|
this.layout.addCardByName(v, card); |
|
|
|
@ -3977,12 +4008,12 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.nextTick(BI.bind(this.afterCardShow, this, v)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getSelect: function(){ |
|
|
|
|
getSelect: function () { |
|
|
|
|
return this.showIndex; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getSelectedCard: function(){ |
|
|
|
|
if(BI.isKey(this.showIndex)){ |
|
|
|
|
getSelectedCard: function () { |
|
|
|
|
if (BI.isKey(this.showIndex)) { |
|
|
|
|
return this.cardMap[this.showIndex]; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -3990,9 +4021,9 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
/** |
|
|
|
|
* @override |
|
|
|
|
*/ |
|
|
|
|
setValue: function(v){ |
|
|
|
|
setValue: function (v) { |
|
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
|
if(card){ |
|
|
|
|
if (card) { |
|
|
|
|
card.setValue(v); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -4000,25 +4031,25 @@ BI.Navigation = BI.inherit(BI.Widget, {
|
|
|
|
|
/** |
|
|
|
|
* @override |
|
|
|
|
*/ |
|
|
|
|
getValue: function(){ |
|
|
|
|
getValue: function () { |
|
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
|
if(card){ |
|
|
|
|
if (card) { |
|
|
|
|
return card.getValue(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
empty: function(){ |
|
|
|
|
empty: function () { |
|
|
|
|
this.layout.deleteAllCard(); |
|
|
|
|
this.cardMap = {}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
destroy: function(){ |
|
|
|
|
destroy: function () { |
|
|
|
|
BI.Navigation.superclass.destroy.apply(this, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Navigation.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.navigation", BI.Navigation);/** |
|
|
|
|
BI.shortcut("bi.navigation", BI.Navigation);/** |
|
|
|
|
* 搜索逻辑控件 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/28. |
|
|
|
@ -4320,7 +4351,7 @@ BI.Searcher.EVENT_PAUSE = "EVENT_PAUSE";
|
|
|
|
|
BI.Searcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
|
BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.searcher", BI.Searcher);/** |
|
|
|
|
BI.shortcut("bi.searcher", BI.Searcher);/** |
|
|
|
|
* |
|
|
|
|
* 切换显示或隐藏面板 |
|
|
|
|
* |
|
|
|
@ -4596,7 +4627,7 @@ BI.Switcher.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW";
|
|
|
|
|
BI.Switcher.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
|
BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.switcher", BI.Switcher);/** |
|
|
|
|
BI.shortcut("bi.switcher", BI.Switcher);/** |
|
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@ -4608,7 +4639,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
defaultShowIndex: 0, |
|
|
|
|
defaultShowIndex: false, |
|
|
|
|
tab: false, |
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
return BI.createWidget(); |
|
|
|
@ -4722,7 +4753,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.Tab.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.tab", BI.Tab);/** |
|
|
|
|
BI.shortcut("bi.tab", BI.Tab);/** |
|
|
|
|
* 表示当前对象 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
@ -4763,7 +4794,7 @@ BI.EL = BI.inherit(BI.Widget, {
|
|
|
|
|
this.ele.populate.apply(this, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.el', BI.EL);// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
|
|
|
BI.shortcut('bi.el', BI.EL);// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
|
|
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
|
|
|
|
|
|
|
|
// This is CodeMirror (http://codemirror.net), a code editor
|
|
|
|
@ -14330,7 +14361,7 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
|
|
|
|
|
BI.FormulaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.FormulaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
BI.FormulaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
$.shortcut("bi.formula_editor", BI.FormulaEditor); |
|
|
|
|
BI.shortcut("bi.formula_editor", BI.FormulaEditor); |
|
|
|
|
/** |
|
|
|
|
* z-index在1亿层级 |
|
|
|
|
* 弹出提示消息框,用于模拟阻塞操作(通过回调函数实现) |
|
|
|
@ -14802,7 +14833,7 @@ BI.Grid = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Grid.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
|
$.shortcut('bi.grid_view', BI.Grid);/** |
|
|
|
|
BI.shortcut('bi.grid_view', BI.Grid);/** |
|
|
|
|
* floatBox弹出层, |
|
|
|
|
* @class BI.FloatBox |
|
|
|
|
* @extends BI.Widget |
|
|
|
@ -14943,7 +14974,7 @@ BI.FloatBox = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.float_box", BI.FloatBox); |
|
|
|
|
BI.shortcut("bi.float_box", BI.FloatBox); |
|
|
|
|
|
|
|
|
|
BI.FloatBox.EVENT_FLOAT_BOX_CLOSED = "EVENT_FLOAT_BOX_CLOSED"; |
|
|
|
|
BI.FloatBox.EVENT_FLOAT_BOX_OPEN = "EVENT_FLOAT_BOX_CLOSED"; |
|
|
|
@ -15127,7 +15158,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.PopupView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.popup_view", BI.PopupView);/** |
|
|
|
|
BI.shortcut("bi.popup_view", BI.PopupView);/** |
|
|
|
|
* 搜索面板 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/28. |
|
|
|
@ -15265,7 +15296,7 @@ BI.SearcherView = BI.inherit(BI.Pane, {
|
|
|
|
|
}); |
|
|
|
|
BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.searcher_view", BI.SearcherView);/** |
|
|
|
|
BI.shortcut("bi.searcher_view", BI.SearcherView);/** |
|
|
|
|
* 分页控件 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/8/31. |
|
|
|
@ -15552,7 +15583,7 @@ BI.Pager = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.Pager.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE"; |
|
|
|
|
$.shortcut("bi.pager", BI.Pager);/** |
|
|
|
|
BI.shortcut("bi.pager", BI.Pager);/** |
|
|
|
|
* 超链接 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
@ -15583,7 +15614,7 @@ BI.A = BI.inherit(BI.Text, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.a", BI.A);/** |
|
|
|
|
BI.shortcut("bi.a", BI.A);/** |
|
|
|
|
* guy |
|
|
|
|
* 加载条 |
|
|
|
|
* @type {*|void|Object} |
|
|
|
@ -15666,7 +15697,7 @@ BI.LoadingBar = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.loading_bar", BI.LoadingBar);/** |
|
|
|
|
BI.shortcut("bi.loading_bar", BI.LoadingBar);/** |
|
|
|
|
* @class BI.IconButton |
|
|
|
|
* @extends BI.BasicButton |
|
|
|
|
* 图标的button |
|
|
|
@ -15716,7 +15747,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.IconButton.EVENT_CHANGE = "IconButton.EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.icon_button", BI.IconButton);/** |
|
|
|
|
BI.shortcut("bi.icon_button", BI.IconButton);/** |
|
|
|
|
* 图片的button |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/27. |
|
|
|
@ -15802,7 +15833,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.ImageButton.EVENT_CHANGE = "ImageButton.EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
|
BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 文字类型的按钮 |
|
|
|
@ -15939,7 +15970,7 @@ $.shortcut("bi.image_button", BI.ImageButton);(function ($) {
|
|
|
|
|
BI.Button.superclass.destroy.apply(this, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.button', BI.Button); |
|
|
|
|
BI.shortcut('bi.button', BI.Button); |
|
|
|
|
BI.Button.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
})(jQuery);/** |
|
|
|
|
* guy |
|
|
|
@ -16030,7 +16061,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.text_button", BI.TextButton);/** |
|
|
|
|
BI.shortcut("bi.text_button", BI.TextButton);/** |
|
|
|
|
* 带有一个占位 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/11. |
|
|
|
@ -16148,7 +16179,7 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.BlankIconIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.blank_icon_icon_text_item", BI.BlankIconIconTextItem);/** |
|
|
|
|
BI.shortcut("bi.blank_icon_icon_text_item", BI.BlankIconIconTextItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 一个占位符和两个icon和一行数 组成的一行listitem |
|
|
|
|
* |
|
|
|
@ -16284,7 +16315,7 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.BlankIconTextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.blank_icon_text_icon_item", BI.BlankIconTextIconItem);/** |
|
|
|
|
BI.shortcut("bi.blank_icon_text_icon_item", BI.BlankIconTextIconItem);/** |
|
|
|
|
* 带有一个占位 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/11. |
|
|
|
@ -16394,7 +16425,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.BlankIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem);/** |
|
|
|
|
BI.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 两个icon和一行数 组成的一行listitem |
|
|
|
|
* |
|
|
|
@ -16527,7 +16558,7 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.IconTextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.icon_text_icon_item", BI.IconTextIconItem);/** |
|
|
|
|
BI.shortcut("bi.icon_text_icon_item", BI.IconTextIconItem);/** |
|
|
|
|
* guy |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
@ -16632,7 +16663,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.IconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.icon_text_item", BI.IconTextItem);/** |
|
|
|
|
BI.shortcut("bi.icon_text_item", BI.IconTextItem);/** |
|
|
|
|
* |
|
|
|
|
* 图标的button |
|
|
|
|
* |
|
|
|
@ -16738,7 +16769,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.text_icon_item", BI.TextIconItem);/** |
|
|
|
|
BI.shortcut("bi.text_icon_item", BI.TextIconItem);/** |
|
|
|
|
* guy |
|
|
|
|
* 一个button和一行数 组成的一行listitem |
|
|
|
|
* |
|
|
|
@ -16823,7 +16854,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.text_item", BI.TextItem);/** |
|
|
|
|
BI.shortcut("bi.text_item", BI.TextItem);/** |
|
|
|
|
* guy |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
|
* @class BI.IconTextIconNode |
|
|
|
@ -16946,7 +16977,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);/** |
|
|
|
|
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);/** |
|
|
|
|
* guy |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
|
* @class BI.IconTextNode |
|
|
|
@ -17042,7 +17073,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.icon_text_node", BI.IconTextNode);/** |
|
|
|
|
BI.shortcut("bi.icon_text_node", BI.IconTextNode);/** |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
|
* @class BI.TextIconNode |
|
|
|
|
* @extends BI.NodeButton |
|
|
|
@ -17137,7 +17168,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.text_icon_node", BI.TextIconNode);/** |
|
|
|
|
BI.shortcut("bi.text_icon_node", BI.TextIconNode);/** |
|
|
|
|
* guy |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
@ -17213,7 +17244,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
$.shortcut("bi.text_node", BI.TextNode);/** |
|
|
|
|
BI.shortcut("bi.text_node", BI.TextNode);/** |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/15. |
|
|
|
|
* @class BI.CodeEditor |
|
|
|
@ -17358,7 +17389,7 @@ BI.CodeEditor = BI.inherit(BI.Single, {
|
|
|
|
|
BI.CodeEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.CodeEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
BI.CodeEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
$.shortcut("bi.code_editor", BI.CodeEditor);/** |
|
|
|
|
BI.shortcut("bi.code_editor", BI.CodeEditor);/** |
|
|
|
|
* Created by GUY on 2015/4/15. |
|
|
|
|
* @class BI.Editor |
|
|
|
|
* @extends BI.Single |
|
|
|
@ -17689,7 +17720,7 @@ BI.Editor.EVENT_RESTRICT = "EVENT_RESTRICT";
|
|
|
|
|
BI.Editor.EVENT_REMOVE = "EVENT_REMOVE"; |
|
|
|
|
BI.Editor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.editor", BI.Editor);/** |
|
|
|
|
BI.shortcut("bi.editor", BI.Editor);/** |
|
|
|
|
* 多文件 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/4/13. |
|
|
|
@ -17782,7 +17813,7 @@ BI.MultifileEditor.EVENT_UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART";
|
|
|
|
|
BI.MultifileEditor.EVENT_ERROR = "MultifileEditor.EVENT_ERROR"; |
|
|
|
|
BI.MultifileEditor.EVENT_PROGRESS = "MultifileEditor.EVENT_PROGRESS"; |
|
|
|
|
BI.MultifileEditor.EVENT_UPLOADED = "MultifileEditor.EVENT_UPLOADED"; |
|
|
|
|
$.shortcut("bi.multifile_editor", BI.MultifileEditor);/** |
|
|
|
|
BI.shortcut("bi.multifile_editor", BI.MultifileEditor);/** |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/18. |
|
|
|
|
* @class BI.TextAreaEditor |
|
|
|
@ -17947,7 +17978,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
|
|
|
|
|
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.TextAreaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
|
BI.TextAreaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
|
$.shortcut("bi.textarea_editor", BI.TextAreaEditor);/** |
|
|
|
|
BI.shortcut("bi.textarea_editor", BI.TextAreaEditor);/** |
|
|
|
|
* guy 图标 |
|
|
|
|
* @class BI.Icon |
|
|
|
|
* @extends BI.Single |
|
|
|
@ -17964,7 +17995,7 @@ BI.Icon = BI.inherit(BI.Single, {
|
|
|
|
|
BI.Icon.superclass._init.apply(this, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut("bi.icon", BI.Icon);/** |
|
|
|
|
BI.shortcut("bi.icon", BI.Icon);/** |
|
|
|
|
* @class BI.Iframe |
|
|
|
|
* @extends BI.Single |
|
|
|
|
* @abstract |
|
|
|
@ -18005,7 +18036,7 @@ BI.Iframe = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.iframe", BI.Iframe);/** |
|
|
|
|
BI.shortcut("bi.iframe", BI.Iframe);/** |
|
|
|
|
* ͼƬ |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/26. |
|
|
|
@ -18040,7 +18071,7 @@ BI.Img = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.img", BI.Img); |
|
|
|
|
BI.shortcut("bi.img", BI.Img); |
|
|
|
|
/** |
|
|
|
|
* guy |
|
|
|
|
* @extends BI.Single |
|
|
|
@ -18073,7 +18104,7 @@ BI.Checkbox = BI.inherit(BI.IconButton, {
|
|
|
|
|
}); |
|
|
|
|
BI.Checkbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
|
BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
|
* 文件 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/27. |
|
|
|
@ -18228,7 +18259,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
}, |
|
|
|
|
false |
|
|
|
|
); |
|
|
|
|
xhr.open("post", handler.url + '&filename=' + BI.cjkEncode(handler.file.fileName), true); |
|
|
|
|
xhr.open("post", handler.url + '&filename=' + window.encodeURIComponent(handler.file.fileName), true); |
|
|
|
|
if (!xhr.upload) { |
|
|
|
|
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; |
|
|
|
|
rpe.interval = setInterval(function () { |
|
|
|
@ -18677,7 +18708,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
|
BI.MultiFile.superclass.setEnable.apply(this, arguments); |
|
|
|
|
BI.File.superclass.setEnable.apply(this, arguments); |
|
|
|
|
if (enable === true) { |
|
|
|
|
this.element.attr("disabled", "disabled"); |
|
|
|
|
} else { |
|
|
|
@ -18690,7 +18721,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/**
|
|
|
|
|
BI.File.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
|
BI.File.EVENT_PROGRESS = "EVENT_PROGRESS"; |
|
|
|
|
BI.File.EVENT_UPLOADED = "EVENT_UPLOADED"; |
|
|
|
|
$.shortcut("bi.file", BI.File); |
|
|
|
|
BI.shortcut("bi.file", BI.File); |
|
|
|
|
})();/** |
|
|
|
|
* guy |
|
|
|
|
* @class BI.Input 一个button和一行数 组成的一行listitem |
|
|
|
@ -18974,7 +19005,7 @@ BI.Input.EVENT_VALID = "EVENT_VALID";
|
|
|
|
|
BI.Input.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
|
BI.Input.EVENT_ENTER = "EVENT_ENTER"; |
|
|
|
|
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT"; |
|
|
|
|
$.shortcut("bi.input", BI.Input);/** |
|
|
|
|
BI.shortcut("bi.input", BI.Input);/** |
|
|
|
|
* guy |
|
|
|
|
* @extends BI.Single |
|
|
|
|
* @type {*|void|Object} |
|
|
|
@ -19006,7 +19037,7 @@ BI.Radio = BI.inherit(BI.IconButton, {
|
|
|
|
|
}); |
|
|
|
|
BI.Radio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.radio", BI.Radio);/** |
|
|
|
|
BI.shortcut("bi.radio", BI.Radio);/** |
|
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@ -19476,7 +19507,7 @@ BI.Label = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.label", BI.Label);/** |
|
|
|
|
BI.shortcut("bi.label", BI.Label);/** |
|
|
|
|
* guy a元素 |
|
|
|
|
* @class BI.Link |
|
|
|
|
* @extends BI.Text |
|
|
|
@ -19512,7 +19543,7 @@ BI.Link = BI.inherit(BI.Label, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.link", BI.Link);/** |
|
|
|
|
BI.shortcut("bi.link", BI.Link);/** |
|
|
|
|
* guy |
|
|
|
|
* 气泡提示 |
|
|
|
|
* @class BI.Bubble |
|
|
|
@ -19618,7 +19649,7 @@ BI.Bubble = BI.inherit(BI.Tip, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.bubble", BI.Bubble);/** |
|
|
|
|
BI.shortcut("bi.bubble", BI.Bubble);/** |
|
|
|
|
* toast提示 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
@ -19671,7 +19702,7 @@ BI.Toast = BI.inherit(BI.Tip, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.toast", BI.Toast);/** |
|
|
|
|
BI.shortcut("bi.toast", BI.Toast);/** |
|
|
|
|
* toast提示 |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
@ -19753,7 +19784,7 @@ BI.Tooltip = BI.inherit(BI.Tip, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.tooltip", BI.Tooltip);/** |
|
|
|
|
BI.shortcut("bi.tooltip", BI.Tooltip);/** |
|
|
|
|
* 下拉 |
|
|
|
|
* @class BI.Trigger |
|
|
|
|
* @extends BI.Single |
|
|
|
@ -28153,7 +28184,7 @@ BI.Svg = BI.inherit(BI.Widget, {
|
|
|
|
|
return this.paper.clear.apply(this.paper, arguments); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut("bi.svg", BI.Svg);/** |
|
|
|
|
BI.shortcut("bi.svg", BI.Svg);/** |
|
|
|
|
* |
|
|
|
|
* 表格 |
|
|
|
|
* |
|
|
|
@ -28185,7 +28216,7 @@ BI.TableCell = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.table_cell", BI.TableCell);/** |
|
|
|
|
BI.shortcut("bi.table_cell", BI.TableCell);/** |
|
|
|
|
* |
|
|
|
|
* 表格单元格 |
|
|
|
|
* |
|
|
|
@ -28241,7 +28272,7 @@ BI.CollectionTableCell = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.collection_table_cell", BI.CollectionTableCell);/** |
|
|
|
|
BI.shortcut("bi.collection_table_cell", BI.CollectionTableCell);/** |
|
|
|
|
* CollectionTable |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
@ -28787,7 +28818,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, {
|
|
|
|
|
this._restore(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.collection_table', BI.CollectionTable);/** |
|
|
|
|
BI.shortcut('bi.collection_table', BI.CollectionTable);/** |
|
|
|
|
* QuickCollectionTable |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
@ -28926,7 +28957,7 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, {
|
|
|
|
|
this.bottomRightCollection.populate(rightItems); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.quick_collection_table', BI.QuickCollectionTable);/** |
|
|
|
|
BI.shortcut('bi.quick_collection_table', BI.QuickCollectionTable);/** |
|
|
|
|
* |
|
|
|
|
* 表格单元格 |
|
|
|
|
* |
|
|
|
@ -28984,7 +29015,7 @@ BI.GridTableCell = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.grid_table_cell", BI.GridTableCell);/** |
|
|
|
|
BI.shortcut("bi.grid_table_cell", BI.GridTableCell);/** |
|
|
|
|
* GridTable |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
@ -29454,7 +29485,7 @@ BI.GridTable = BI.inherit(BI.Widget, {
|
|
|
|
|
this._restore(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.grid_table', BI.GridTable);/** |
|
|
|
|
BI.shortcut('bi.grid_table', BI.GridTable);/** |
|
|
|
|
* QuickGridTable |
|
|
|
|
* |
|
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
@ -29618,7 +29649,7 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, {
|
|
|
|
|
this.bottomRightGrid.populate(rightItems); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut('bi.quick_grid_table', BI.QuickGridTable);/** |
|
|
|
|
BI.shortcut('bi.quick_grid_table', BI.QuickGridTable);/** |
|
|
|
|
* |
|
|
|
|
* 表格滚动条 |
|
|
|
|
* |
|
|
|
@ -29944,7 +29975,7 @@ BI.GridTableScrollbar = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.GridTableScrollbar.SIZE = 10; |
|
|
|
|
BI.GridTableScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
|
$.shortcut("bi.grid_table_scrollbar", BI.GridTableScrollbar); |
|
|
|
|
BI.shortcut("bi.grid_table_scrollbar", BI.GridTableScrollbar); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, { |
|
|
|
@ -30024,7 +30055,7 @@ BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
|
$.shortcut("bi.grid_table_horizontal_scrollbar", BI.GridTableHorizontalScrollbar);/** |
|
|
|
|
BI.shortcut("bi.grid_table_horizontal_scrollbar", BI.GridTableHorizontalScrollbar);/** |
|
|
|
|
* |
|
|
|
|
* 表格 |
|
|
|
|
* |
|
|
|
@ -30053,7 +30084,7 @@ BI.TableHeaderCell = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.table_header_cell", BI.TableHeaderCell);/** |
|
|
|
|
BI.shortcut("bi.table_header_cell", BI.TableHeaderCell);/** |
|
|
|
|
* |
|
|
|
|
* 表格 |
|
|
|
|
* |
|
|
|
@ -30414,11 +30445,9 @@ BI.Table = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.Resizers.add(this.getName(), function (e) { |
|
|
|
|
if (BI.isWindow(e.target) && self.element.is(":visible")) { |
|
|
|
|
self._resize(); |
|
|
|
|
self.fireEvent(BI.Table.EVENT_TABLE_RESIZE); |
|
|
|
|
} |
|
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
|
self._resize(); |
|
|
|
|
self.fireEvent(BI.Table.EVENT_TABLE_RESIZE); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -30800,6 +30829,7 @@ BI.Table = BI.inherit(BI.Widget, {
|
|
|
|
|
.addClass(c === rows.length - 1 ? "last-col" : ""); |
|
|
|
|
var w = BI.createWidget(map[r][c], { |
|
|
|
|
type: "bi.table_cell", |
|
|
|
|
root: true, |
|
|
|
|
textAlign: "left", |
|
|
|
|
width: BI.isNumeric(width) ? width : "", |
|
|
|
|
height: BI.isNumeric(height) ? height : "", |
|
|
|
@ -30879,6 +30909,7 @@ BI.Table = BI.inherit(BI.Widget, {
|
|
|
|
|
return this.footer; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createBody: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.body = this._body(); |
|
|
|
@ -31991,7 +32022,7 @@ BI.Table.EVENT_TABLE_AFTER_COLUMN_RESIZE = "EVENT_TABLE_AFTER_COLUMN_RESIZE";
|
|
|
|
|
BI.Table.EVENT_TABLE_BEFORE_REGION_RESIZE = "EVENT_TABLE_BEFORE_REGION_RESIZE"; |
|
|
|
|
BI.Table.EVENT_TABLE_REGION_RESIZE = "EVENT_TABLE_REGION_RESIZE"; |
|
|
|
|
BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE = "EVENT_TABLE_AFTER_REGION_RESIZE"; |
|
|
|
|
$.shortcut("bi.table_view", BI.Table); |
|
|
|
|
BI.shortcut("bi.table_view", BI.Table); |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
|
* 表格单元格 |
|
|
|
@ -32087,7 +32118,7 @@ BI.ResizableTableCell = BI.inherit(BI.Widget, {
|
|
|
|
|
this.cell.setHeight(o.height); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$.shortcut("bi.resizable_table_cell", BI.ResizableTableCell);/** |
|
|
|
|
BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell);/** |
|
|
|
|
* |
|
|
|
|
* 可调整列宽的grid表格 |
|
|
|
|
* |
|
|
|
@ -32435,7 +32466,7 @@ BI.ResizableTable = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.resizable_table", BI.ResizableTable);/** |
|
|
|
|
BI.shortcut("bi.resizable_table", BI.ResizableTable);/** |
|
|
|
|
* |
|
|
|
|
* 自定义树 |
|
|
|
|
* |
|
|
|
@ -32589,7 +32620,7 @@ BI.CustomTree = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.CustomTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
$.shortcut("bi.custom_tree", BI.CustomTree);/* |
|
|
|
|
BI.shortcut("bi.custom_tree", BI.CustomTree);/* |
|
|
|
|
* JQuery zTree core v3.5.18 |
|
|
|
|
* http://zTree.me/
|
|
|
|
|
* |
|
|
|
|