|
|
|
@ -26546,26 +26546,26 @@ BI.BubblesController = BI.inherit(BI.Controller, {
|
|
|
|
|
} |
|
|
|
|
});/** |
|
|
|
|
* guy |
|
|
|
|
* FloatBox弹出层控制器, z-index在100w层级 |
|
|
|
|
* @class BI.FloatBoxController |
|
|
|
|
* popover弹出层控制器, z-index在100w层级 |
|
|
|
|
* @class BI.popoverController |
|
|
|
|
* @extends BI.Controller |
|
|
|
|
*/ |
|
|
|
|
BI.FloatBoxController = BI.inherit(BI.Controller, { |
|
|
|
|
BI.PopoverController = BI.inherit(BI.Controller, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.FloatBoxController.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
return BI.extend(BI.PopoverController.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
modal: true, // 模态窗口
|
|
|
|
|
render: "body" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.FloatBoxController.superclass._init.apply(this, arguments); |
|
|
|
|
BI.PopoverController.superclass._init.apply(this, arguments); |
|
|
|
|
this.modal = this.options.modal; |
|
|
|
|
this.floatManager = {}; |
|
|
|
|
this.floatLayer = {}; |
|
|
|
|
this.floatContainer = {}; |
|
|
|
|
this.floatOpened = {}; |
|
|
|
|
this.zindex = BI.zIndex_floatbox; |
|
|
|
|
this.zindex = BI.zIndex_popover; |
|
|
|
|
this.zindexMap = {}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -26577,14 +26577,14 @@ BI.FloatBoxController = BI.inherit(BI.Controller, {
|
|
|
|
|
if (this._check(name)) { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
var floatbox = BI.createWidget({ |
|
|
|
|
type: "bi.float_box" |
|
|
|
|
var popover = BI.createWidget({ |
|
|
|
|
type: "bi.popover" |
|
|
|
|
}, options, context); |
|
|
|
|
this.add(name, floatbox, options, context); |
|
|
|
|
this.add(name, popover, options, context); |
|
|
|
|
return this; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
add: function (name, floatbox, options, context) { |
|
|
|
|
add: function (name, popover, options, context) { |
|
|
|
|
var self = this; |
|
|
|
|
options || (options = {}); |
|
|
|
|
if (this._check(name)) { |
|
|
|
@ -26596,7 +26596,7 @@ BI.FloatBoxController = BI.inherit(BI.Controller, {
|
|
|
|
|
items: [{ |
|
|
|
|
el: (this.floatLayer[name] = BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [floatbox] |
|
|
|
|
items: [popover] |
|
|
|
|
}, context)), |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
@ -26604,9 +26604,9 @@ BI.FloatBoxController = BI.inherit(BI.Controller, {
|
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.floatManager[name] = floatbox; |
|
|
|
|
this.floatManager[name] = popover; |
|
|
|
|
(function (key) { |
|
|
|
|
floatbox.on(BI.FloatBox.EVENT_CLOSE, function () { |
|
|
|
|
popover.on(BI.Popover.EVENT_CLOSE, function () { |
|
|
|
|
self.close(key); |
|
|
|
|
}); |
|
|
|
|
})(name); |
|
|
|
@ -26637,10 +26637,10 @@ BI.FloatBoxController = BI.inherit(BI.Controller, {
|
|
|
|
|
this.modal && container.element.__buildZIndexMask__(this.zindex++); |
|
|
|
|
this.get(name).setZindex(this.zindex++); |
|
|
|
|
this.floatContainer[name].visible(); |
|
|
|
|
var floatbox = this.get(name); |
|
|
|
|
floatbox.show && floatbox.show(); |
|
|
|
|
var popover = this.get(name); |
|
|
|
|
popover.show && popover.show(); |
|
|
|
|
var W = $(this.options.render).width(), H = $(this.options.render).height(); |
|
|
|
|
var w = floatbox.element.width(), h = floatbox.element.height(); |
|
|
|
|
var w = popover.element.width(), h = popover.element.height(); |
|
|
|
|
var left = (W - w) / 2, top = (H - h) / 2; |
|
|
|
|
if (left < 0) { |
|
|
|
|
left = 0; |
|
|
|
@ -26648,7 +26648,7 @@ BI.FloatBoxController = BI.inherit(BI.Controller, {
|
|
|
|
|
if (top < 0) { |
|
|
|
|
top = 0; |
|
|
|
|
} |
|
|
|
|
floatbox.element.css({ |
|
|
|
|
popover.element.css({ |
|
|
|
|
left: left + "px", |
|
|
|
|
top: top + "px" |
|
|
|
|
}); |
|
|
|
@ -30063,7 +30063,7 @@ _.extend(BI, {
|
|
|
|
|
MIN: -0xfffffffffffffff, |
|
|
|
|
EVENT_RESPONSE_TIME: 200, |
|
|
|
|
zIndex_layer: 1e5, |
|
|
|
|
zIndex_floatbox: 1e6, |
|
|
|
|
zIndex_popover: 1e6, |
|
|
|
|
zIndex_popup: 1e7, |
|
|
|
|
zIndex_masker: 1e8, |
|
|
|
|
zIndex_tip: 1e9, |
|
|
|
@ -36315,7 +36315,7 @@ 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.Popovers = new BI.PopoverController(); |
|
|
|
|
BI.Broadcasts = new BI.BroadcastController(); |
|
|
|
|
BI.StyleLoaders = new BI.StyleLoaderManager();/** |
|
|
|
|
* canvas绘图 |
|
|
|
@ -49129,13 +49129,13 @@ BI.GridView = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
BI.GridView.EVENT_SCROLL = "EVENT_SCROLL"; |
|
|
|
|
BI.shortcut("bi.grid_view", BI.GridView);/** |
|
|
|
|
* floatBox弹出层, |
|
|
|
|
* @class BI.FloatBox |
|
|
|
|
* Popover弹出层, |
|
|
|
|
* @class BI.Popover |
|
|
|
|
* @extends BI.Widget |
|
|
|
|
*/ |
|
|
|
|
BI.FloatBox = BI.inherit(BI.Widget, { |
|
|
|
|
BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.FloatBox.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
return BI.extend(BI.Popover.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-float-box bi-card", |
|
|
|
|
width: 600, |
|
|
|
|
height: 500, |
|
|
|
@ -49245,12 +49245,12 @@ BI.FloatBox = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
open: function () { |
|
|
|
|
this.show(); |
|
|
|
|
this.fireEvent(BI.FloatBox.EVENT_OPEN); |
|
|
|
|
this.fireEvent(BI.Popover.EVENT_OPEN); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
close: function () { |
|
|
|
|
this.hide(); |
|
|
|
|
this.fireEvent(BI.FloatBox.EVENT_CLOSE); |
|
|
|
|
this.fireEvent(BI.Popover.EVENT_CLOSE); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setZindex: function (zindex) { |
|
|
|
@ -49261,11 +49261,11 @@ BI.FloatBox = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.float_box", BI.FloatBox); |
|
|
|
|
BI.shortcut("bi.popover", BI.Popover); |
|
|
|
|
|
|
|
|
|
BI.BarFloatBox = BI.inherit(BI.FloatBox, { |
|
|
|
|
BI.BarPopover = BI.inherit(BI.Popover, { |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.FloatBox.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
return BI.extend(BI.Popover.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
btns: [BI.i18nText(BI.i18nText("BI-Basic_Sure")), BI.i18nText(BI.i18nText("BI-Basic_Cancel"))] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -49281,7 +49281,7 @@ BI.BarFloatBox = BI.inherit(BI.FloatBox, {
|
|
|
|
|
value: 1, |
|
|
|
|
level: "ignore", |
|
|
|
|
handler: function (v) { |
|
|
|
|
self.fireEvent(BI.FloatBox.EVENT_CANCEL, v); |
|
|
|
|
self.fireEvent(BI.Popover.EVENT_CANCEL, v); |
|
|
|
|
self.close(v); |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
@ -49290,7 +49290,7 @@ BI.BarFloatBox = BI.inherit(BI.FloatBox, {
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
|
value: 0, |
|
|
|
|
handler: function (v) { |
|
|
|
|
self.fireEvent(BI.FloatBox.EVENT_CONFIRM, v); |
|
|
|
|
self.fireEvent(BI.Popover.EVENT_CONFIRM, v); |
|
|
|
|
self.close(v); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
@ -49298,12 +49298,12 @@ BI.BarFloatBox = BI.inherit(BI.FloatBox, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.bar_float_box", BI.BarFloatBox); |
|
|
|
|
BI.shortcut("bi.bar_popover", BI.BarPopover); |
|
|
|
|
|
|
|
|
|
BI.FloatBox.EVENT_CLOSE = "EVENT_CLOSE"; |
|
|
|
|
BI.FloatBox.EVENT_OPEN = "EVENT_OPEN"; |
|
|
|
|
BI.FloatBox.EVENT_CANCEL = "EVENT_CANCEL"; |
|
|
|
|
BI.FloatBox.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
BI.Popover.EVENT_CLOSE = "EVENT_CLOSE"; |
|
|
|
|
BI.Popover.EVENT_OPEN = "EVENT_OPEN"; |
|
|
|
|
BI.Popover.EVENT_CANCEL = "EVENT_CANCEL"; |
|
|
|
|
BI.Popover.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
/** |
|
|
|
|
* 下拉框弹出层, zIndex在1000w |
|
|
|
|
* @class BI.PopupView |
|
|
|
|