|
|
@ -21484,10 +21484,10 @@ _.extend(BI.OB.prototype, { |
|
|
|
// if (o.root !== true) {
|
|
|
|
// if (o.root !== true) {
|
|
|
|
// throw new Error("root is a required property");
|
|
|
|
// throw new Error("root is a required property");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
this.element = $(o.element); |
|
|
|
this.element = BI.Widget._renderEngine.createElement(this); |
|
|
|
this._isRoot = true; |
|
|
|
this._isRoot = true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.element = $(document.createElement(o.tagName)); |
|
|
|
this.element = BI.Widget._renderEngine.createElement(this); |
|
|
|
} |
|
|
|
} |
|
|
|
this.element._isWidget = true; |
|
|
|
this.element._isWidget = true; |
|
|
|
if (o.baseCls || o.extraCls || o.cls) { |
|
|
|
if (o.baseCls || o.extraCls || o.cls) { |
|
|
@ -21862,6 +21862,21 @@ _.extend(BI.OB.prototype, { |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
BI.Widget.registerRenderEngine = function (engine) { |
|
|
|
|
|
|
|
BI.Widget._renderEngine = engine; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
BI.Widget.registerRenderEngine({ |
|
|
|
|
|
|
|
createElement: function (widget) { |
|
|
|
|
|
|
|
if(BI.isWidget(widget)) { |
|
|
|
|
|
|
|
var o = widget.options; |
|
|
|
|
|
|
|
if (o.element) { |
|
|
|
|
|
|
|
return $(o.element); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $(document.createElement(o.tagName)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return $(widget); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
})();(function () { |
|
|
|
})();(function () { |
|
|
|
var kv = {}; |
|
|
|
var kv = {}; |
|
|
|
BI.shortcut = function (xtype, cls) { |
|
|
|
BI.shortcut = function (xtype, cls) { |
|
|
@ -26410,7 +26425,7 @@ BI.LayerController = BI.inherit(BI.Controller, { |
|
|
|
w = from.element; |
|
|
|
w = from.element; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNotEmptyString(w)) { |
|
|
|
if (BI.isNotEmptyString(w)) { |
|
|
|
w = $(w); |
|
|
|
w = BI.Widget._renderEngine.createElement(w); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.has(name)) { |
|
|
|
if (this.has(name)) { |
|
|
|
return this.get(name); |
|
|
|
return this.get(name); |
|
|
@ -26627,7 +26642,7 @@ BI.PopoverController = BI.inherit(BI.Controller, { |
|
|
|
this.floatContainer[name].visible(); |
|
|
|
this.floatContainer[name].visible(); |
|
|
|
var popover = this.get(name); |
|
|
|
var popover = this.get(name); |
|
|
|
popover.show && popover.show(); |
|
|
|
popover.show && popover.show(); |
|
|
|
var W = $(this.options.render).width(), H = $(this.options.render).height(); |
|
|
|
var W = BI.Widget._renderEngine.createElement(this.options.render).width(), H = BI.Widget._renderEngine.createElement(this.options.render).height(); |
|
|
|
var w = popover.element.width(), h = popover.element.height(); |
|
|
|
var w = popover.element.width(), h = popover.element.height(); |
|
|
|
var left = (W - w) / 2, top = (H - h) / 2; |
|
|
|
var left = (W - w) / 2, top = (H - h) / 2; |
|
|
|
if (left < 0) { |
|
|
|
if (left < 0) { |
|
|
@ -26693,7 +26708,7 @@ BI.ResizeController = BI.inherit(BI.Controller, { |
|
|
|
self._resize(ev); |
|
|
|
self._resize(ev); |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}, 30); |
|
|
|
}, 30); |
|
|
|
_global.$ && $(window).resize(fn); |
|
|
|
BI.Widget._renderEngine.createElement(window).resize(fn); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_resize: function (ev) { |
|
|
|
_resize: function (ev) { |
|
|
@ -26832,10 +26847,10 @@ BI.TooltipsController = BI.inherit(BI.Controller, { |
|
|
|
// var scale = context.element.offset().left / context.element.get(0).getBoundingClientRect().left;
|
|
|
|
// var scale = context.element.offset().left / context.element.get(0).getBoundingClientRect().left;
|
|
|
|
// var x = (e.pageX || e.clientX) * scale + 15, y = (e.pageY || e.clientY) * scale + 15;
|
|
|
|
// var x = (e.pageX || e.clientX) * scale + 15, y = (e.pageY || e.clientY) * scale + 15;
|
|
|
|
var x = (e.pageX || e.clientX) + 15, y = (e.pageY || e.clientY) + 15; |
|
|
|
var x = (e.pageX || e.clientX) + 15, y = (e.pageY || e.clientY) + 15; |
|
|
|
if (x + tooltip.element.outerWidth() > $("body").outerWidth()) { |
|
|
|
if (x + tooltip.element.outerWidth() > BI.Widget._renderEngine.createElement("body").outerWidth()) { |
|
|
|
x -= tooltip.element.outerWidth() + 15; |
|
|
|
x -= tooltip.element.outerWidth() + 15; |
|
|
|
} |
|
|
|
} |
|
|
|
if (y + tooltip.element.outerHeight() > $("body").outerHeight()) { |
|
|
|
if (y + tooltip.element.outerHeight() > BI.Widget._renderEngine.createElement("body").outerHeight()) { |
|
|
|
y -= tooltip.element.outerHeight() + 15; |
|
|
|
y -= tooltip.element.outerHeight() + 15; |
|
|
|
!opt.belowMouse && (y = Math.min(y, offset.top - tooltip.element.outerHeight() - 5)); |
|
|
|
!opt.belowMouse && (y = Math.min(y, offset.top - tooltip.element.outerHeight() - 5)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -30228,7 +30243,7 @@ BI.CenterAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.CenterAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.CenterAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
this.$table = $("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
width: "100%", |
|
|
|
width: "100%", |
|
|
|
height: "100%", |
|
|
|
height: "100%", |
|
|
@ -30237,7 +30252,7 @@ BI.CenterAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
border: "none", |
|
|
|
border: "none", |
|
|
|
"border-collapse": "separate" |
|
|
|
"border-collapse": "separate" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$tr = $("<tr>"); |
|
|
|
this.$tr = BI.Widget._renderEngine.createElement("<tr>"); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -30336,7 +30351,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.HorizontalAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.HorizontalAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
this.$table = $("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
width: "100%", |
|
|
|
width: "100%", |
|
|
|
"white-space": "nowrap", |
|
|
|
"white-space": "nowrap", |
|
|
@ -30344,7 +30359,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
border: "none", |
|
|
|
border: "none", |
|
|
|
"border-collapse": "separate" |
|
|
|
"border-collapse": "separate" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$tr = $("<tr>"); |
|
|
|
this.$tr = BI.Widget._renderEngine.createElement("<tr>"); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -30613,7 +30628,7 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.VerticalAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.VerticalAdaptLayout.superclass.render.apply(this, arguments); |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.$table = $("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
width: o.horizontalAlign === BI.HorizontalAlign.Stretch ? "100%" : "auto", |
|
|
|
width: o.horizontalAlign === BI.HorizontalAlign.Stretch ? "100%" : "auto", |
|
|
|
height: "100%", |
|
|
|
height: "100%", |
|
|
@ -30622,7 +30637,7 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, { |
|
|
|
border: "none", |
|
|
|
border: "none", |
|
|
|
"border-collapse": "separate" |
|
|
|
"border-collapse": "separate" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$tr = $("<tr>"); |
|
|
|
this.$tr = BI.Widget._renderEngine.createElement("<tr>"); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -31254,7 +31269,7 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.FlexCenterLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.FlexCenterLayout.superclass.render.apply(this, arguments); |
|
|
|
this.$wrapper = $("<div>").addClass("flex-wrapper-center-layout-wrapper"); |
|
|
|
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-wrapper-center-layout-wrapper"); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -31308,7 +31323,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.FlexHorizontalLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.FlexHorizontalLayout.superclass.render.apply(this, arguments); |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.$wrapper = $("<div>").addClass("flex-wrapper-horizontal-layout-wrapper " + o.verticalAlign); |
|
|
|
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-wrapper-horizontal-layout-wrapper " + o.verticalAlign); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -31382,7 +31397,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.FlexVerticalCenter.superclass.render.apply(this, arguments); |
|
|
|
BI.FlexVerticalCenter.superclass.render.apply(this, arguments); |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.$wrapper = $("<div>").addClass("flex-wrapper-vertical-center-wrapper " + o.horizontalAlign); |
|
|
|
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-wrapper-vertical-center-wrapper " + o.horizontalAlign); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -32478,14 +32493,14 @@ BI.HorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.HorizontalLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.HorizontalLayout.superclass.render.apply(this, arguments); |
|
|
|
this.$table = $("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
"white-space": "nowrap", |
|
|
|
"white-space": "nowrap", |
|
|
|
"border-spacing": "0px", |
|
|
|
"border-spacing": "0px", |
|
|
|
border: "none", |
|
|
|
border: "none", |
|
|
|
"border-collapse": "separate" |
|
|
|
"border-collapse": "separate" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$tr = $("<tr>"); |
|
|
|
this.$tr = BI.Widget._renderEngine.createElement("<tr>"); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.$tr.appendTo(this.$table); |
|
|
|
this.populate(this.options.items); |
|
|
|
this.populate(this.options.items); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -33122,7 +33137,7 @@ BI.TdLayout = BI.inherit(BI.Layout, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
BI.TdLayout.superclass.render.apply(this, arguments); |
|
|
|
BI.TdLayout.superclass.render.apply(this, arguments); |
|
|
|
this.$table = $("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
this.$table = BI.Widget._renderEngine.createElement("<table>").attr({cellspacing: 0, cellpadding: 0}).css({ |
|
|
|
position: "relative", |
|
|
|
position: "relative", |
|
|
|
width: "100%", |
|
|
|
width: "100%", |
|
|
|
height: "100%", |
|
|
|
height: "100%", |
|
|
@ -35633,7 +35648,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
clearTimeout(this.timeout); |
|
|
|
clearTimeout(this.timeout); |
|
|
|
} |
|
|
|
} |
|
|
|
this._hideTooltip(); |
|
|
|
this._hideTooltip(); |
|
|
|
$(this.element).unbind("mouseenter.title" + this.getName()) |
|
|
|
this.element.unbind("mouseenter.title" + this.getName()) |
|
|
|
.unbind("mousemove.title" + this.getName()) |
|
|
|
.unbind("mousemove.title" + this.getName()) |
|
|
|
.unbind("mouseleave.title" + this.getName()); |
|
|
|
.unbind("mouseleave.title" + this.getName()); |
|
|
|
this._hoverBinded = false; |
|
|
|
this._hoverBinded = false; |
|
|
@ -35949,14 +35964,14 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
var selected = false; |
|
|
|
var selected = false; |
|
|
|
hand.mousedown(function (e) { |
|
|
|
hand.mousedown(function (e) { |
|
|
|
// if (e.button === 0) {
|
|
|
|
// if (e.button === 0) {
|
|
|
|
$(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
BI.Widget._renderEngine.createElement(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
// if (e.button === 0) {
|
|
|
|
// if (e.button === 0) {
|
|
|
|
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) { |
|
|
|
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) { |
|
|
|
// self.setSelected(!self.isSelected());
|
|
|
|
// self.setSelected(!self.isSelected());
|
|
|
|
self._trigger(); |
|
|
|
self._trigger(); |
|
|
|
} |
|
|
|
} |
|
|
|
mouseDown = false; |
|
|
|
mouseDown = false; |
|
|
|
$(document).unbind("mouseup." + self.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}); |
|
|
|
}); |
|
|
|
if (mouseDown === true) { |
|
|
|
if (mouseDown === true) { |
|
|
@ -35978,7 +35993,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
mouseDown = false; |
|
|
|
mouseDown = false; |
|
|
|
selected = false; |
|
|
|
selected = false; |
|
|
|
$(document).unbind("mouseup." + self.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); |
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -35989,11 +36004,11 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
var mouseDown = false; |
|
|
|
var mouseDown = false; |
|
|
|
var interval; |
|
|
|
var interval; |
|
|
|
hand.mousedown(function (e) { |
|
|
|
hand.mousedown(function (e) { |
|
|
|
$(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
BI.Widget._renderEngine.createElement(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
interval && clearInterval(interval); |
|
|
|
interval && clearInterval(interval); |
|
|
|
interval = null; |
|
|
|
interval = null; |
|
|
|
mouseDown = false; |
|
|
|
mouseDown = false; |
|
|
|
$(document).unbind("mouseup." + self.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + self.getName()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (mouseDown === true) { |
|
|
|
if (mouseDown === true) { |
|
|
|
return; |
|
|
|
return; |
|
|
@ -36223,7 +36238,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
empty: function () { |
|
|
|
$(document).unbind("mouseup." + this.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mouseup." + this.getName()); |
|
|
|
BI.BasicButton.superclass.empty.apply(this, arguments); |
|
|
|
BI.BasicButton.superclass.empty.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -40306,7 +40321,7 @@ BI.Msg = function () { |
|
|
|
}, |
|
|
|
}, |
|
|
|
toast: function (message, options, context) { |
|
|
|
toast: function (message, options, context) { |
|
|
|
options = options || {}; |
|
|
|
options = options || {}; |
|
|
|
context = context || $("body"); |
|
|
|
context = context || BI.Widget._renderEngine.createElement("body"); |
|
|
|
var level = options.level || "normal"; |
|
|
|
var level = options.level || "normal"; |
|
|
|
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose; |
|
|
|
var autoClose = BI.isNull(options.autoClose) ? true : options.autoClose; |
|
|
|
var toast = BI.createWidget({ |
|
|
|
var toast = BI.createWidget({ |
|
|
@ -40336,7 +40351,7 @@ BI.Msg = function () { |
|
|
|
}, 5000); |
|
|
|
}, 5000); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_show: function (hasCancel, title, message, callback) { |
|
|
|
_show: function (hasCancel, title, message, callback) { |
|
|
|
$mask = $("<div class=\"bi-z-index-mask\">").css({ |
|
|
|
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({ |
|
|
|
position: "absolute", |
|
|
|
position: "absolute", |
|
|
|
zIndex: BI.zIndex_tip - 2, |
|
|
|
zIndex: BI.zIndex_tip - 2, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
@ -40345,7 +40360,7 @@ BI.Msg = function () { |
|
|
|
bottom: 0, |
|
|
|
bottom: 0, |
|
|
|
opacity: 0.5 |
|
|
|
opacity: 0.5 |
|
|
|
}).appendTo("body"); |
|
|
|
}).appendTo("body"); |
|
|
|
$pop = $("<div class=\"bi-message-depend\">").css({ |
|
|
|
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({ |
|
|
|
position: "absolute", |
|
|
|
position: "absolute", |
|
|
|
zIndex: BI.zIndex_tip - 1, |
|
|
|
zIndex: BI.zIndex_tip - 1, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
@ -40872,7 +40887,7 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
this.startY = 0; |
|
|
|
this.startY = 0; |
|
|
|
this.tracker = new BI.MouseMoveTracker(function (deltaX, deltaY) { |
|
|
|
this.tracker = new BI.MouseMoveTracker(function (deltaX, deltaY) { |
|
|
|
var size = self._calculateSize(); |
|
|
|
var size = self._calculateSize(); |
|
|
|
var W = $("body").width(), H = $("body").height(); |
|
|
|
var W = BI.Widget._renderEngine.createElement("body").width(), H = BI.Widget._renderEngine.createElement("body").height(); |
|
|
|
self.startX += deltaX; |
|
|
|
self.startX += deltaX; |
|
|
|
self.startY += deltaY; |
|
|
|
self.startY += deltaY; |
|
|
|
self.element.css({ |
|
|
|
self.element.css({ |
|
|
@ -44017,9 +44032,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
self._focus(); |
|
|
|
self._focus(); |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_FOCUS); |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_FOCUS); |
|
|
|
} |
|
|
|
} |
|
|
|
$(document).bind("mousedown." + self.getName(), function (e) { |
|
|
|
BI.Widget._renderEngine.createElement(document).bind("mousedown." + self.getName(), function (e) { |
|
|
|
if (BI.DOM.isExist(self) && !self.element.__isMouseInBounds__(e)) { |
|
|
|
if (BI.DOM.isExist(self) && !self.element.__isMouseInBounds__(e)) { |
|
|
|
$(document).unbind("mousedown." + self.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName()); |
|
|
|
self.content.element.blur(); |
|
|
|
self.content.element.blur(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -44029,7 +44044,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
self._blur(); |
|
|
|
self._blur(); |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_BLUR); |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_BLUR); |
|
|
|
} |
|
|
|
} |
|
|
|
$(document).unbind("mousedown." + self.getName()); |
|
|
|
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + self.getName()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isKey(o.value)) { |
|
|
|
if (BI.isKey(o.value)) { |
|
|
|
self.setValue(o.value); |
|
|
|
self.setValue(o.value); |
|
|
@ -44169,7 +44184,7 @@ BI.Iframe = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.options.element = $("<iframe frameborder='0' src='" + o.src + "'>"); |
|
|
|
this.options.element = BI.Widget._renderEngine.createElement("<iframe frameborder='0' src='" + o.src + "'>"); |
|
|
|
BI.Iframe.superclass._init.apply(this, arguments); |
|
|
|
BI.Iframe.superclass._init.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -44221,7 +44236,7 @@ BI.Img = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.options.element = $("<img src='" + o.src + "'>"); |
|
|
|
this.options.element = BI.Widget._renderEngine.createElement("<img src='" + o.src + "'>"); |
|
|
|
BI.Img.superclass._init.apply(this, arguments); |
|
|
|
BI.Img.superclass._init.apply(this, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -44852,7 +44867,7 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/** |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
select: function () { |
|
|
|
select: function () { |
|
|
|
$(this.wrap.dom.input).click(); |
|
|
|
BI.Widget._renderEngine.createElement(this.wrap.dom.input).click(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
upload: function (handler) { |
|
|
|
upload: function (handler) { |
|
|
|