|
|
@ -596,7 +596,7 @@ BI.Text = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.text", BI.Text);/** |
|
|
|
BI.shortcut("bi.text", BI.Text);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* @class BI.BasicButton |
|
|
|
* @class BI.BasicButton |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
@ -1020,9 +1020,11 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
self.setValue([]); |
|
|
|
self.setValue([]); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
self.fireEvent(BI.ButtonGroup.EVENT_CHANGE, value, obj); |
|
|
|
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 () { |
|
|
|
btn.on(BI.Events.DESTROY, function () { |
|
|
|
BI.remove(self.buttons, btn); |
|
|
|
BI.remove(self.buttons, btn); |
|
|
@ -1034,7 +1036,6 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_packageBtns: function (btns) { |
|
|
|
_packageBtns: function (btns) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
btns = BI.map(btns, function (k, it) { |
|
|
|
btns = BI.map(btns, function (k, it) { |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
@ -1049,6 +1050,18 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
return btns; |
|
|
|
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) { |
|
|
|
_packageItems: function (items, packBtns) { |
|
|
|
return BI.createItems(BI.makeArrayByArray(items, {}), BI.clone(packBtns)); |
|
|
|
return BI.createItems(BI.makeArrayByArray(items, {}), BI.clone(packBtns)); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1064,6 +1077,11 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
return layout; |
|
|
|
return layout; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
|
|
|
|
_isSimpleLayout: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return o.layouts.length === 1 && !BI.isArray(o.items[0]) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doBehavior: function () { |
|
|
|
doBehavior: function () { |
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
@ -1078,9 +1096,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
var btns = this._btnsCreator.apply(this, arguments); |
|
|
|
var btns = this._btnsCreator.apply(this, arguments); |
|
|
|
this.buttons = BI.concat(btns, this.buttons); |
|
|
|
this.buttons = BI.concat(btns, this.buttons); |
|
|
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
if (this._isSimpleLayout() && this.layouts && this.layouts.prependItems) { |
|
|
|
if (o.layouts.length === 1 && !BI.isNotEmptyArray(o.layouts[0].items) |
|
|
|
|
|
|
|
&& this.layouts && this.layouts.prependItems) { |
|
|
|
|
|
|
|
this.layouts.prependItems(btns); |
|
|
|
this.layouts.prependItems(btns); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -1095,8 +1111,7 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
this.buttons = BI.concat(this.buttons, btns); |
|
|
|
this.buttons = BI.concat(this.buttons, btns); |
|
|
|
|
|
|
|
|
|
|
|
//如果是一个简单的layout
|
|
|
|
//如果是一个简单的layout
|
|
|
|
if (o.layouts.length === 1 && !BI.isNotEmptyArray(o.layouts[0].items) |
|
|
|
if (this._isSimpleLayout() && this.layouts && this.layouts.addItems) { |
|
|
|
&& this.layouts && this.layouts.addItems) { |
|
|
|
|
|
|
|
this.layouts.addItems(btns); |
|
|
|
this.layouts.addItems(btns); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -1106,35 +1121,33 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
removeItemAt: function (indexes) { |
|
|
|
removeItemAt: function (indexes) { |
|
|
|
var self = this; |
|
|
|
BI.remove(this.buttons, indexes); |
|
|
|
indexes = BI.isArray(indexes) ? indexes : [indexes]; |
|
|
|
this.layouts.removeItemAt(indexes); |
|
|
|
var buttons = []; |
|
|
|
|
|
|
|
BI.each(indexes, function (i, index) { |
|
|
|
|
|
|
|
buttons.push(self.buttons[index]); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.each(buttons, function (i, btn) { |
|
|
|
|
|
|
|
btn && btn.destroy(); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
removeItems: function (v) { |
|
|
|
removeItems: function (values) { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
values = BI.isArray(values) ? values : [values]; |
|
|
|
var indexes = []; |
|
|
|
var deleted = []; |
|
|
|
BI.each(this.buttons, function (i, item) { |
|
|
|
BI.each(this.buttons, function (i, button) { |
|
|
|
if (BI.deepContains(v, item.getValue())) { |
|
|
|
if (BI.deepContains(values, button.getValue())) { |
|
|
|
indexes.push(i); |
|
|
|
deleted.push(i); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.removeItemAt(indexes); |
|
|
|
BI.remove(this.buttons, deleted); |
|
|
|
|
|
|
|
this.layouts.removeItemAt(deleted); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
items = items || []; |
|
|
|
items = items || []; |
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
this.empty(); |
|
|
|
this.empty(); |
|
|
|
|
|
|
|
this.options.items = items; |
|
|
|
|
|
|
|
|
|
|
|
this.buttons = this._btnsCreator.apply(this, arguments); |
|
|
|
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))); |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1260,8 +1273,14 @@ BI.ButtonGroup = BI.inherit(BI.Widget, { |
|
|
|
return node; |
|
|
|
return node; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
|
|
|
|
BI.ButtonGroup.superclass.empty.apply(this, arguments); |
|
|
|
|
|
|
|
this.options.items = []; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroy: function () { |
|
|
|
destroy: function () { |
|
|
|
BI.ButtonGroup.superclass.destroy.apply(this, arguments); |
|
|
|
BI.ButtonGroup.superclass.destroy.apply(this, arguments); |
|
|
|
|
|
|
|
this.options.items = []; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.extend(BI.ButtonGroup, { |
|
|
|
BI.extend(BI.ButtonGroup, { |
|
|
@ -1273,7 +1292,7 @@ BI.extend(BI.ButtonGroup, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ButtonGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/8/10. |
|
|
|
* @class BI.ButtonTree |
|
|
|
* @class BI.ButtonTree |
|
|
|
* @extends BI.ButtonGroup |
|
|
|
* @extends BI.ButtonGroup |
|
|
@ -1454,7 +1473,7 @@ BI.ButtonTree = BI.inherit(BI.ButtonGroup, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.ButtonTree.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.button_tree", BI.ButtonTree);/** |
|
|
|
BI.shortcut("bi.button_tree", BI.ButtonTree);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 异步树 |
|
|
|
* 异步树 |
|
|
|
* @class BI.TreeView |
|
|
|
* @class BI.TreeView |
|
|
@ -1960,7 +1979,7 @@ BI.TreeView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TreeView.EVENT_INIT = BI.Events.INIT; |
|
|
|
BI.TreeView.EVENT_INIT = BI.Events.INIT; |
|
|
|
BI.TreeView.EVENT_AFTERINIT = BI.Events.AFTERINIT; |
|
|
|
BI.TreeView.EVENT_AFTERINIT = BI.Events.AFTERINIT; |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.tree_view", BI.TreeView);/** |
|
|
|
BI.shortcut("bi.tree_view", BI.TreeView);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 同步树 |
|
|
|
* 同步树 |
|
|
|
* @class BI.SyncTree |
|
|
|
* @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 |
|
|
|
* guy |
|
|
|
* 局部树,两个请求树, 第一个请求构造树,第二个请求获取节点 |
|
|
|
* 局部树,两个请求树, 第一个请求构造树,第二个请求获取节点 |
|
|
|
* @class BI.PartTree |
|
|
|
* @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.Layers = new BI.LayerController(); |
|
|
|
BI.Maskers = new BI.MaskersController(); |
|
|
|
BI.Maskers = new BI.MaskersController(); |
|
|
|
BI.Bubbles = new BI.BubblesController(); |
|
|
|
BI.Bubbles = new BI.BubblesController(); |
|
|
|
BI.Tooltips = new BI.TooltipsController(); |
|
|
|
BI.Tooltips = new BI.TooltipsController(); |
|
|
|
BI.Popovers = new BI.FloatBoxController(); |
|
|
|
BI.Popovers = new BI.FloatBoxController(); |
|
|
|
BI.Broadcasts = new BI.BroadcastController(); |
|
|
|
BI.Broadcasts = new BI.BroadcastController(); |
|
|
|
BI.StyleLoaders = new BI.StyleLoaderManager(); |
|
|
|
BI.StyleLoaders = new BI.StyleLoaderManager();/** |
|
|
|
|
|
|
|
|
|
|
|
BI.servletURL = "dist/"; |
|
|
|
|
|
|
|
BI.i18n = {};/** |
|
|
|
|
|
|
|
* canvas绘图 |
|
|
|
* canvas绘图 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/11/18. |
|
|
|
* 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 |
|
|
|
* Collection |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/15. |
|
|
|
* Created by GUY on 2016/1/15. |
|
|
@ -2774,7 +2790,7 @@ BI.Collection = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Collection.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.Collection.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
$.shortcut('bi.collection_view', BI.Collection);/** |
|
|
|
BI.shortcut('bi.collection_view', BI.Collection);/** |
|
|
|
* @class BI.Combo |
|
|
|
* @class BI.Combo |
|
|
|
* @extends BI.Widget |
|
|
|
* @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_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
BI.Combo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_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_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
BI.Expander.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_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. |
|
|
|
* Created by GUY on 2015/8/10. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -3549,7 +3565,7 @@ BI.ComboGroup = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ComboGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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 () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.VirtualGroup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.VirtualGroup.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-virtual-group", |
|
|
|
baseCls: "bi-virtual-group", |
|
|
@ -3603,24 +3619,36 @@ $.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Widg |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
prependItems: function (items) { |
|
|
|
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) { |
|
|
|
populate: function (items) { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
items = items || []; |
|
|
|
items = items || []; |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
items = this._packageItems(items, this._packageBtns(items)); |
|
|
|
items = this._packageBtns(items); |
|
|
|
if (!this.layouts) { |
|
|
|
if (!this.layouts) { |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
this.layouts = BI.createWidget(BI.extend({element: this}, this._packageLayout(items))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.layouts.populate(this._packageLayout(items).items); |
|
|
|
this.layouts.populate(items); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.VirtualGroup.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/8/31. |
|
|
@ -3881,13 +3909,13 @@ BI.Loader = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Loader.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Loader.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.loader", BI.Loader);/** |
|
|
|
BI.shortcut("bi.loader", BI.Loader);/** |
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function(){ |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this,arguments), { |
|
|
|
return BI.extend(BI.Navigation.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
direction: "bottom",//top, bottom, left, right, custom
|
|
|
|
direction: "bottom",//top, bottom, left, right, custom
|
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
@ -3898,7 +3926,7 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
items: [], |
|
|
|
items: [], |
|
|
|
layouts: [] |
|
|
|
layouts: [] |
|
|
|
}, |
|
|
|
}, |
|
|
|
cardCreator: function(v){ |
|
|
|
cardCreator: function (v) { |
|
|
|
return BI.createWidget(); |
|
|
|
return BI.createWidget(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -3907,8 +3935,7 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function(){ |
|
|
|
render: function () { |
|
|
|
BI.Navigation.superclass._init.apply(this,arguments); |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.tab = BI.createWidget(this.options.tab, {type: "bi.button_group"}); |
|
|
|
this.tab = BI.createWidget(this.options.tab, {type: "bi.button_group"}); |
|
|
|
this.cardMap = {}; |
|
|
|
this.cardMap = {}; |
|
|
@ -3926,10 +3953,10 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
new BI.ShowListener({ |
|
|
|
new BI.ShowListener({ |
|
|
|
eventObj: this.tab, |
|
|
|
eventObj: this.tab, |
|
|
|
cardLayout: this.layout, |
|
|
|
cardLayout: this.layout, |
|
|
|
cardNameCreator: function(v){ |
|
|
|
cardNameCreator: function (v) { |
|
|
|
return self.showIndex + v; |
|
|
|
return self.showIndex + v; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cardCreator: function(v){ |
|
|
|
cardCreator: function (v) { |
|
|
|
var card = o.cardCreator(v); |
|
|
|
var card = o.cardCreator(v); |
|
|
|
self.cardMap[v] = card; |
|
|
|
self.cardMap[v] = card; |
|
|
|
return card; |
|
|
|
return card; |
|
|
@ -3937,37 +3964,41 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
afterCardCreated: BI.bind(this.afterCardCreated, this), |
|
|
|
afterCardCreated: BI.bind(this.afterCardCreated, this), |
|
|
|
afterCardShow: BI.bind(this.afterCardShow, 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); |
|
|
|
this.setSelect(o.defaultShowIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
afterCardCreated: function(v){ |
|
|
|
afterCardCreated: function (v) { |
|
|
|
var self = this; |
|
|
|
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); |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
if(type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
self.fireEvent(BI.Navigation.EVENT_CHANGE, obj); |
|
|
|
self.fireEvent(BI.Navigation.EVENT_CHANGE, obj); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.options.afterCardCreated.apply(this, arguments); |
|
|
|
this.options.afterCardCreated.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
afterCardShow: function(v){ |
|
|
|
afterCardShow: function (v) { |
|
|
|
this.showIndex = v; |
|
|
|
this.showIndex = v; |
|
|
|
this.options.afterCardShow.apply(this, arguments); |
|
|
|
this.options.afterCardShow.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function(){ |
|
|
|
populate: function () { |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
if(card){ |
|
|
|
if (card) { |
|
|
|
return card.populate.apply(card, arguments); |
|
|
|
return card.populate.apply(card, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setSelect: function(v){ |
|
|
|
setSelect: function (v) { |
|
|
|
this.showIndex = v; |
|
|
|
this.showIndex = v; |
|
|
|
if(!this.layout.isCardExisted(v)){ |
|
|
|
if (!this.layout.isCardExisted(v)) { |
|
|
|
var card = this.options.cardCreator(v); |
|
|
|
var card = this.options.cardCreator(v); |
|
|
|
this.cardMap[v] = card; |
|
|
|
this.cardMap[v] = card; |
|
|
|
this.layout.addCardByName(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)); |
|
|
|
BI.nextTick(BI.bind(this.afterCardShow, this, v)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getSelect: function(){ |
|
|
|
getSelect: function () { |
|
|
|
return this.showIndex; |
|
|
|
return this.showIndex; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getSelectedCard: function(){ |
|
|
|
getSelectedCard: function () { |
|
|
|
if(BI.isKey(this.showIndex)){ |
|
|
|
if (BI.isKey(this.showIndex)) { |
|
|
|
return this.cardMap[this.showIndex]; |
|
|
|
return this.cardMap[this.showIndex]; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -3990,9 +4021,9 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @override |
|
|
|
* @override |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
setValue: function(v){ |
|
|
|
setValue: function (v) { |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
if(card){ |
|
|
|
if (card) { |
|
|
|
card.setValue(v); |
|
|
|
card.setValue(v); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -4000,25 +4031,25 @@ BI.Navigation = BI.inherit(BI.Widget, { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @override |
|
|
|
* @override |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
getValue: function(){ |
|
|
|
getValue: function () { |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
var card = this.layout.getShowingCard(); |
|
|
|
if(card){ |
|
|
|
if (card) { |
|
|
|
return card.getValue(); |
|
|
|
return card.getValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
empty: function(){ |
|
|
|
empty: function () { |
|
|
|
this.layout.deleteAllCard(); |
|
|
|
this.layout.deleteAllCard(); |
|
|
|
this.cardMap = {}; |
|
|
|
this.cardMap = {}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroy: function(){ |
|
|
|
destroy: function () { |
|
|
|
BI.Navigation.superclass.destroy.apply(this, arguments); |
|
|
|
BI.Navigation.superclass.destroy.apply(this, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Navigation.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Navigation.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.navigation", BI.Navigation);/** |
|
|
|
BI.shortcut("bi.navigation", BI.Navigation);/** |
|
|
|
* 搜索逻辑控件 |
|
|
|
* 搜索逻辑控件 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/28. |
|
|
|
* 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_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.Searcher.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
|
|
|
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_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
|
|
BI.Switcher.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_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. |
|
|
|
* Created by GUY on 2015/6/26. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
@ -4608,7 +4639,7 @@ BI.Tab = BI.inherit(BI.Widget, { |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
|
}, |
|
|
|
}, |
|
|
|
defaultShowIndex: 0, |
|
|
|
defaultShowIndex: false, |
|
|
|
tab: false, |
|
|
|
tab: false, |
|
|
|
cardCreator: function (v) { |
|
|
|
cardCreator: function (v) { |
|
|
|
return BI.createWidget(); |
|
|
|
return BI.createWidget(); |
|
|
@ -4722,7 +4753,7 @@ BI.Tab = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Tab.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Tab.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.tab", BI.Tab);/** |
|
|
|
BI.shortcut("bi.tab", BI.Tab);/** |
|
|
|
* 表示当前对象 |
|
|
|
* 表示当前对象 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
* Created by GUY on 2015/9/7. |
|
|
@ -4763,7 +4794,7 @@ BI.EL = BI.inherit(BI.Widget, { |
|
|
|
this.ele.populate.apply(this, arguments); |
|
|
|
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
|
|
|
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
// This is CodeMirror (http://codemirror.net), a code editor
|
|
|
|
// 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_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.FormulaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.FormulaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.FormulaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.FormulaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
$.shortcut("bi.formula_editor", BI.FormulaEditor); |
|
|
|
BI.shortcut("bi.formula_editor", BI.FormulaEditor); |
|
|
|
/** |
|
|
|
/** |
|
|
|
* z-index在1亿层级 |
|
|
|
* z-index在1亿层级 |
|
|
|
* 弹出提示消息框,用于模拟阻塞操作(通过回调函数实现) |
|
|
|
* 弹出提示消息框,用于模拟阻塞操作(通过回调函数实现) |
|
|
@ -14802,7 +14833,7 @@ BI.Grid = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Grid.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
BI.Grid.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
$.shortcut('bi.grid_view', BI.Grid);/** |
|
|
|
BI.shortcut('bi.grid_view', BI.Grid);/** |
|
|
|
* floatBox弹出层, |
|
|
|
* floatBox弹出层, |
|
|
|
* @class BI.FloatBox |
|
|
|
* @class BI.FloatBox |
|
|
|
* @extends BI.Widget |
|
|
|
* @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_CLOSED = "EVENT_FLOAT_BOX_CLOSED"; |
|
|
|
BI.FloatBox.EVENT_FLOAT_BOX_OPEN = "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"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/9/28. |
|
|
@ -15265,7 +15296,7 @@ BI.SearcherView = BI.inherit(BI.Pane, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.SearcherView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* 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_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Pager.EVENT_AFTER_POPULATE = "EVENT_AFTER_POPULATE"; |
|
|
|
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. |
|
|
|
* 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 |
|
|
|
* guy |
|
|
|
* 加载条 |
|
|
|
* 加载条 |
|
|
|
* @type {*|void|Object} |
|
|
|
* @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 |
|
|
|
* @class BI.IconButton |
|
|
|
* @extends BI.BasicButton |
|
|
|
* @extends BI.BasicButton |
|
|
|
* 图标的button |
|
|
|
* 图标的button |
|
|
@ -15716,7 +15747,7 @@ BI.IconButton = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconButton.EVENT_CHANGE = "IconButton.EVENT_CHANGE"; |
|
|
|
BI.IconButton.EVENT_CHANGE = "IconButton.EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.icon_button", BI.IconButton);/** |
|
|
|
BI.shortcut("bi.icon_button", BI.IconButton);/** |
|
|
|
* 图片的button |
|
|
|
* 图片的button |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/27. |
|
|
|
* Created by GUY on 2016/1/27. |
|
|
@ -15802,7 +15833,7 @@ BI.ImageButton = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ImageButton.EVENT_CHANGE = "ImageButton.EVENT_CHANGE"; |
|
|
|
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); |
|
|
|
BI.Button.superclass.destroy.apply(this, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$.shortcut('bi.button', BI.Button); |
|
|
|
BI.shortcut('bi.button', BI.Button); |
|
|
|
BI.Button.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.Button.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
})(jQuery);/** |
|
|
|
})(jQuery);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
@ -16030,7 +16061,7 @@ BI.TextButton = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextButton.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/9/11. |
|
|
@ -16148,7 +16179,7 @@ BI.BlankIconIconTextItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.BlankIconIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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 |
|
|
|
* guy |
|
|
|
* 一个占位符和两个icon和一行数 组成的一行listitem |
|
|
|
* 一个占位符和两个icon和一行数 组成的一行listitem |
|
|
|
* |
|
|
|
* |
|
|
@ -16284,7 +16315,7 @@ BI.BlankIconTextIconItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.BlankIconTextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/9/11. |
|
|
@ -16394,7 +16425,7 @@ BI.BlankIconTextItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.BlankIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.BlankIconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem);/** |
|
|
|
BI.shortcut("bi.blank_icon_text_item", BI.BlankIconTextItem);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 两个icon和一行数 组成的一行listitem |
|
|
|
* 两个icon和一行数 组成的一行listitem |
|
|
|
* |
|
|
|
* |
|
|
@ -16527,7 +16558,7 @@ BI.IconTextIconItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconTextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.IconTextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.icon_text_icon_item", BI.IconTextIconItem);/** |
|
|
|
BI.shortcut("bi.icon_text_icon_item", BI.IconTextIconItem);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
@ -16632,7 +16663,7 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.IconTextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.icon_text_item", BI.IconTextItem);/** |
|
|
|
BI.shortcut("bi.icon_text_item", BI.IconTextItem);/** |
|
|
|
* |
|
|
|
* |
|
|
|
* 图标的button |
|
|
|
* 图标的button |
|
|
|
* |
|
|
|
* |
|
|
@ -16738,7 +16769,7 @@ BI.TextIconItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextIconItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.text_icon_item", BI.TextIconItem);/** |
|
|
|
BI.shortcut("bi.text_icon_item", BI.TextIconItem);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* 一个button和一行数 组成的一行listitem |
|
|
|
* 一个button和一行数 组成的一行listitem |
|
|
|
* |
|
|
|
* |
|
|
@ -16823,7 +16854,7 @@ BI.TextItem = BI.inherit(BI.BasicButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.text_item", BI.TextItem);/** |
|
|
|
BI.shortcut("bi.text_item", BI.TextItem);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* @class BI.IconTextIconNode |
|
|
|
* @class BI.IconTextIconNode |
|
|
@ -16946,7 +16977,7 @@ BI.IconTextIconNode = BI.inherit(BI.NodeButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.IconTextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);/** |
|
|
|
BI.shortcut("bi.icon_text_icon_node", BI.IconTextIconNode);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* @class BI.IconTextNode |
|
|
|
* @class BI.IconTextNode |
|
|
@ -17042,7 +17073,7 @@ BI.IconTextNode = BI.inherit(BI.NodeButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconTextNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* @class BI.TextIconNode |
|
|
|
* @class BI.TextIconNode |
|
|
|
* @extends BI.NodeButton |
|
|
|
* @extends BI.NodeButton |
|
|
@ -17137,7 +17168,7 @@ BI.TextIconNode = BI.inherit(BI.NodeButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextIconNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
$.shortcut("bi.text_icon_node", BI.TextIconNode);/** |
|
|
|
BI.shortcut("bi.text_icon_node", BI.TextIconNode);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
|
* Created by GUY on 2015/9/9. |
|
|
@ -17213,7 +17244,7 @@ BI.TextNode = BI.inherit(BI.NodeButton, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextNode.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2016/1/15. |
|
|
|
* @class BI.CodeEditor |
|
|
|
* @class BI.CodeEditor |
|
|
@ -17358,7 +17389,7 @@ BI.CodeEditor = BI.inherit(BI.Single, { |
|
|
|
BI.CodeEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.CodeEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.CodeEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.CodeEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.CodeEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2015/4/15. |
|
|
|
* @class BI.Editor |
|
|
|
* @class BI.Editor |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
@ -17689,7 +17720,7 @@ BI.Editor.EVENT_RESTRICT = "EVENT_RESTRICT"; |
|
|
|
BI.Editor.EVENT_REMOVE = "EVENT_REMOVE"; |
|
|
|
BI.Editor.EVENT_REMOVE = "EVENT_REMOVE"; |
|
|
|
BI.Editor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
BI.Editor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
|
|
|
|
|
|
|
|
$.shortcut("bi.editor", BI.Editor);/** |
|
|
|
BI.shortcut("bi.editor", BI.Editor);/** |
|
|
|
* 多文件 |
|
|
|
* 多文件 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/4/13. |
|
|
|
* 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_ERROR = "MultifileEditor.EVENT_ERROR"; |
|
|
|
BI.MultifileEditor.EVENT_PROGRESS = "MultifileEditor.EVENT_PROGRESS"; |
|
|
|
BI.MultifileEditor.EVENT_PROGRESS = "MultifileEditor.EVENT_PROGRESS"; |
|
|
|
BI.MultifileEditor.EVENT_UPLOADED = "MultifileEditor.EVENT_UPLOADED"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2016/1/18. |
|
|
|
* @class BI.TextAreaEditor |
|
|
|
* @class BI.TextAreaEditor |
|
|
@ -17947,7 +17978,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextAreaEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextAreaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.TextAreaEditor.EVENT_BLUR = "EVENT_BLUR"; |
|
|
|
BI.TextAreaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
BI.TextAreaEditor.EVENT_FOCUS = "EVENT_FOCUS"; |
|
|
|
$.shortcut("bi.textarea_editor", BI.TextAreaEditor);/** |
|
|
|
BI.shortcut("bi.textarea_editor", BI.TextAreaEditor);/** |
|
|
|
* guy 图标 |
|
|
|
* guy 图标 |
|
|
|
* @class BI.Icon |
|
|
|
* @class BI.Icon |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
@ -17964,7 +17995,7 @@ BI.Icon = BI.inherit(BI.Single, { |
|
|
|
BI.Icon.superclass._init.apply(this, arguments); |
|
|
|
BI.Icon.superclass._init.apply(this, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$.shortcut("bi.icon", BI.Icon);/** |
|
|
|
BI.shortcut("bi.icon", BI.Icon);/** |
|
|
|
* @class BI.Iframe |
|
|
|
* @class BI.Iframe |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
|
* @abstract |
|
|
|
* @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. |
|
|
|
* 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 |
|
|
|
* guy |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
@ -18073,7 +18104,7 @@ BI.Checkbox = BI.inherit(BI.IconButton, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Checkbox.EVENT_CHANGE = "Checkbox.EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* Created by GUY on 2016/1/27. |
|
|
@ -18228,7 +18259,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
}, |
|
|
|
}, |
|
|
|
false |
|
|
|
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) { |
|
|
|
if (!xhr.upload) { |
|
|
|
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; |
|
|
|
var rpe = {loaded: 0, total: handler.file.fileSize || handler.file.size, simulation: true}; |
|
|
|
rpe.interval = setInterval(function () { |
|
|
|
rpe.interval = setInterval(function () { |
|
|
@ -18677,7 +18708,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setEnable: function (enable) { |
|
|
|
setEnable: function (enable) { |
|
|
|
BI.MultiFile.superclass.setEnable.apply(this, arguments); |
|
|
|
BI.File.superclass.setEnable.apply(this, arguments); |
|
|
|
if (enable === true) { |
|
|
|
if (enable === true) { |
|
|
|
this.element.attr("disabled", "disabled"); |
|
|
|
this.element.attr("disabled", "disabled"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -18690,7 +18721,7 @@ $.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
BI.File.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.File.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.File.EVENT_PROGRESS = "EVENT_PROGRESS"; |
|
|
|
BI.File.EVENT_PROGRESS = "EVENT_PROGRESS"; |
|
|
|
BI.File.EVENT_UPLOADED = "EVENT_UPLOADED"; |
|
|
|
BI.File.EVENT_UPLOADED = "EVENT_UPLOADED"; |
|
|
|
$.shortcut("bi.file", BI.File); |
|
|
|
BI.shortcut("bi.file", BI.File); |
|
|
|
})();/** |
|
|
|
})();/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* @class BI.Input 一个button和一行数 组成的一行listitem |
|
|
|
* @class BI.Input 一个button和一行数 组成的一行listitem |
|
|
@ -18974,7 +19005,7 @@ BI.Input.EVENT_VALID = "EVENT_VALID"; |
|
|
|
BI.Input.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.Input.EVENT_ERROR = "EVENT_ERROR"; |
|
|
|
BI.Input.EVENT_ENTER = "EVENT_ENTER"; |
|
|
|
BI.Input.EVENT_ENTER = "EVENT_ENTER"; |
|
|
|
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT"; |
|
|
|
BI.Input.EVENT_RESTRICT = "EVENT_RESTRICT"; |
|
|
|
$.shortcut("bi.input", BI.Input);/** |
|
|
|
BI.shortcut("bi.input", BI.Input);/** |
|
|
|
* guy |
|
|
|
* guy |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
|
* @type {*|void|Object} |
|
|
|
* @type {*|void|Object} |
|
|
@ -19006,7 +19037,7 @@ BI.Radio = BI.inherit(BI.IconButton, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Radio.EVENT_CHANGE = "Radio.EVENT_CHANGE"; |
|
|
|
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. |
|
|
|
* 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元素 |
|
|
|
* guy a元素 |
|
|
|
* @class BI.Link |
|
|
|
* @class BI.Link |
|
|
|
* @extends BI.Text |
|
|
|
* @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 |
|
|
|
* guy |
|
|
|
* 气泡提示 |
|
|
|
* 气泡提示 |
|
|
|
* @class BI.Bubble |
|
|
|
* @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提示 |
|
|
|
* toast提示 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
* 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提示 |
|
|
|
* toast提示 |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/7. |
|
|
|
* 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 |
|
|
|
* @class BI.Trigger |
|
|
|
* @extends BI.Single |
|
|
|
* @extends BI.Single |
|
|
@ -28153,7 +28184,7 @@ BI.Svg = BI.inherit(BI.Widget, { |
|
|
|
return this.paper.clear.apply(this.paper, arguments); |
|
|
|
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 |
|
|
|
* CollectionTable |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
@ -28787,7 +28818,7 @@ BI.CollectionTable = BI.inherit(BI.Widget, { |
|
|
|
this._restore(); |
|
|
|
this._restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$.shortcut('bi.collection_table', BI.CollectionTable);/** |
|
|
|
BI.shortcut('bi.collection_table', BI.CollectionTable);/** |
|
|
|
* QuickCollectionTable |
|
|
|
* QuickCollectionTable |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
@ -28926,7 +28957,7 @@ BI.QuickCollectionTable = BI.inherit(BI.CollectionTable, { |
|
|
|
this.bottomRightCollection.populate(rightItems); |
|
|
|
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 |
|
|
|
* GridTable |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
@ -29454,7 +29485,7 @@ BI.GridTable = BI.inherit(BI.Widget, { |
|
|
|
this._restore(); |
|
|
|
this._restore(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$.shortcut('bi.grid_table', BI.GridTable);/** |
|
|
|
BI.shortcut('bi.grid_table', BI.GridTable);/** |
|
|
|
* QuickGridTable |
|
|
|
* QuickGridTable |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
|
* Created by GUY on 2016/1/12. |
|
|
@ -29618,7 +29649,7 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, { |
|
|
|
this.bottomRightGrid.populate(rightItems); |
|
|
|
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.SIZE = 10; |
|
|
|
BI.GridTableScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
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, { |
|
|
|
BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, { |
|
|
@ -30024,7 +30055,7 @@ BI.GridTableHorizontalScrollbar = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.GridTableHorizontalScrollbar.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
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); |
|
|
|
self.fireEvent(BI.Table.EVENT_TABLE_AFTER_INIT); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Resizers.add(this.getName(), function (e) { |
|
|
|
BI.ResizeDetector.addResizeListener(this, function () { |
|
|
|
if (BI.isWindow(e.target) && self.element.is(":visible")) { |
|
|
|
self._resize(); |
|
|
|
self._resize(); |
|
|
|
self.fireEvent(BI.Table.EVENT_TABLE_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" : ""); |
|
|
|
.addClass(c === rows.length - 1 ? "last-col" : ""); |
|
|
|
var w = BI.createWidget(map[r][c], { |
|
|
|
var w = BI.createWidget(map[r][c], { |
|
|
|
type: "bi.table_cell", |
|
|
|
type: "bi.table_cell", |
|
|
|
|
|
|
|
root: true, |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
width: BI.isNumeric(width) ? width : "", |
|
|
|
width: BI.isNumeric(width) ? width : "", |
|
|
|
height: BI.isNumeric(height) ? height : "", |
|
|
|
height: BI.isNumeric(height) ? height : "", |
|
|
@ -30879,6 +30909,7 @@ BI.Table = BI.inherit(BI.Widget, { |
|
|
|
return this.footer; |
|
|
|
return this.footer; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createBody: function () { |
|
|
|
_createBody: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.body = this._body(); |
|
|
|
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_BEFORE_REGION_RESIZE = "EVENT_TABLE_BEFORE_REGION_RESIZE"; |
|
|
|
BI.Table.EVENT_TABLE_REGION_RESIZE = "EVENT_TABLE_REGION_RESIZE"; |
|
|
|
BI.Table.EVENT_TABLE_REGION_RESIZE = "EVENT_TABLE_REGION_RESIZE"; |
|
|
|
BI.Table.EVENT_TABLE_AFTER_REGION_RESIZE = "EVENT_TABLE_AFTER_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); |
|
|
|
this.cell.setHeight(o.height); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$.shortcut("bi.resizable_table_cell", BI.ResizableTableCell);/** |
|
|
|
BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell);/** |
|
|
|
* |
|
|
|
* |
|
|
|
* 可调整列宽的grid表格 |
|
|
|
* 可调整列宽的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"; |
|
|
|
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 |
|
|
|
* JQuery zTree core v3.5.18 |
|
|
|
* http://zTree.me/
|
|
|
|
* http://zTree.me/
|
|
|
|
* |
|
|
|
* |
|
|
|