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