|
|
@ -26766,6 +26766,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { |
|
|
|
var container = opt.container || context; |
|
|
|
var container = opt.container || context; |
|
|
|
var offsetStyle = opt.offsetStyle || {}; |
|
|
|
var offsetStyle = opt.offsetStyle || {}; |
|
|
|
var level = opt.level || "error"; |
|
|
|
var level = opt.level || "error"; |
|
|
|
|
|
|
|
var adjustLength = opt.adjustLength || 0; |
|
|
|
if (!this.storeBubbles[name]) { |
|
|
|
if (!this.storeBubbles[name]) { |
|
|
|
this.storeBubbles[name] = {}; |
|
|
|
this.storeBubbles[name] = {}; |
|
|
|
} |
|
|
|
} |
|
|
@ -26781,9 +26782,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.set(name, this.storeBubbles[name]["top"]); |
|
|
|
this.set(name, this.storeBubbles[name]["top"]); |
|
|
|
var position = this._getTopPosition(name, context, offsetStyle); |
|
|
|
var position = this._getTopPosition(name, context, offsetStyle); |
|
|
|
this.get(name).element.css({left: position.left, top: position.top - 2}); |
|
|
|
this.get(name).element.css({left: position.left, top: position.top - adjustLength}); |
|
|
|
this.get(name).invisible(); |
|
|
|
this.get(name).invisible(); |
|
|
|
if (!$.isTopSpaceEnough(context, this.get(name), 2)) { |
|
|
|
if (!$.isTopSpaceEnough(context, this.get(name), adjustLength)) { |
|
|
|
if (!this.storeBubbles[name]["left"]) { |
|
|
|
if (!this.storeBubbles[name]["left"]) { |
|
|
|
this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); |
|
|
|
this.storeBubbles[name]["left"] = this._createBubble("left", text, level, 30); |
|
|
|
} |
|
|
|
} |
|
|
@ -26796,9 +26797,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.set(name, this.storeBubbles[name]["left"]); |
|
|
|
this.set(name, this.storeBubbles[name]["left"]); |
|
|
|
var position = this._getLeftPosition(name, context, offsetStyle); |
|
|
|
var position = this._getLeftPosition(name, context, offsetStyle); |
|
|
|
this.get(name).element.css({left: position.left - 2, top: position.top}); |
|
|
|
this.get(name).element.css({left: position.left - adjustLength, top: position.top}); |
|
|
|
this.get(name).invisible(); |
|
|
|
this.get(name).invisible(); |
|
|
|
if (!$.isLeftSpaceEnough(context, this.get(name), 2)) { |
|
|
|
if (!$.isLeftSpaceEnough(context, this.get(name), adjustLength)) { |
|
|
|
if (!this.storeBubbles[name]["right"]) { |
|
|
|
if (!this.storeBubbles[name]["right"]) { |
|
|
|
this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); |
|
|
|
this.storeBubbles[name]["right"] = this._createBubble("right", text, level, 30); |
|
|
|
} |
|
|
|
} |
|
|
@ -26811,9 +26812,9 @@ BI.BubblesController = BI.inherit(BI.Controller, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.set(name, this.storeBubbles[name]["right"]); |
|
|
|
this.set(name, this.storeBubbles[name]["right"]); |
|
|
|
var position = this._getRightPosition(name, context, offsetStyle); |
|
|
|
var position = this._getRightPosition(name, context, offsetStyle); |
|
|
|
this.get(name).element.css({left: position.left + 2, top: position.top}); |
|
|
|
this.get(name).element.css({left: position.left + adjustLength, top: position.top}); |
|
|
|
this.get(name).invisible(); |
|
|
|
this.get(name).invisible(); |
|
|
|
if (!$.isRightSpaceEnough(context, this.get(name), 2)) { |
|
|
|
if (!$.isRightSpaceEnough(context, this.get(name), adjustLength)) { |
|
|
|
if (!this.storeBubbles[name]["bottom"]) { |
|
|
|
if (!this.storeBubbles[name]["bottom"]) { |
|
|
|
this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); |
|
|
|
this.storeBubbles[name]["bottom"] = this._createBubble("bottom", text, level); |
|
|
|
} |
|
|
|
} |
|
|
@ -26826,7 +26827,7 @@ BI.BubblesController = BI.inherit(BI.Controller, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.set(name, this.storeBubbles[name]["bottom"]); |
|
|
|
this.set(name, this.storeBubbles[name]["bottom"]); |
|
|
|
var position = this._getBottomPosition(name, context, offsetStyle); |
|
|
|
var position = this._getBottomPosition(name, context, offsetStyle); |
|
|
|
this.get(name).element.css({left: position.left, top: position.top + 2}); |
|
|
|
this.get(name).element.css({left: position.left, top: position.top + adjustLength}); |
|
|
|
this.get(name).invisible(); |
|
|
|
this.get(name).invisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -54372,7 +54373,9 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
errorText = errorText(this.editor.getValue()); |
|
|
|
errorText = errorText(this.editor.getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.disabledError && BI.isKey(errorText)) { |
|
|
|
if (!this.disabledError && BI.isKey(errorText)) { |
|
|
|
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this); |
|
|
|
BI.Bubbles[b ? "show" : "hide"](this.getName(), errorText, this, { |
|
|
|
|
|
|
|
adjustLength: 2 |
|
|
|
|
|
|
|
}); |
|
|
|
this._checkToolTip(); |
|
|
|
this._checkToolTip(); |
|
|
|
return BI.Bubbles.get(this.getName()); |
|
|
|
return BI.Bubbles.get(this.getName()); |
|
|
|
} |
|
|
|
} |
|
|
@ -77203,7 +77206,11 @@ BI.ColorPickerEditor = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_setEnable: function () { |
|
|
|
_setEnable: function () { |
|
|
|
BI.ColorPickerEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
BI.ColorPickerEditor.superclass._setEnable.apply(this, arguments); |
|
|
|
this._showPreColor(this.getValue()); |
|
|
|
this._showPreColor(this._isEmptyRGB() && this.transparent.isSelected() ? "transparent" : BI.DOM.rgb2hex(BI.DOM.json2rgb({ |
|
|
|
|
|
|
|
r: this.storeValue.r, |
|
|
|
|
|
|
|
g: this.storeValue.g, |
|
|
|
|
|
|
|
b: this.storeValue.b |
|
|
|
|
|
|
|
}))); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (color) { |
|
|
|
setValue: function (color) { |
|
|
@ -78500,7 +78507,6 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.select_icon_text_trigger", |
|
|
|
type: "bi.select_icon_text_trigger", |
|
|
|
action: o.action, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
@ -78666,7 +78672,6 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.trigger = this; |
|
|
|
self.trigger = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
action: o.action, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
@ -79256,7 +79261,6 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.select_text_trigger", |
|
|
|
type: "bi.select_text_trigger", |
|
|
|
action: o.action, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
@ -102140,7 +102144,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
border: 1, |
|
|
|
border: 1, |
|
|
|
less: 0, |
|
|
|
less: 0, |
|
|
|
less_equal: 1, |
|
|
|
less_equal: 1, |
|
|
|
numTip: "" |
|
|
|
numTip: "", |
|
|
|
|
|
|
|
adjustLength: 2 |
|
|
|
}, |
|
|
|
}, |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); |
|
|
@ -102426,17 +102431,20 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
case c.typeError: |
|
|
|
case c.typeError: |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case c.numberError: |
|
|
|
case c.numberError: |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case c.signalError: |
|
|
|
case c.signalError: |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default : |
|
|
|
default : |
|
|
@ -102472,7 +102480,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
w.on(BI.Editor.EVENT_ERROR, function () { |
|
|
|
w.on(BI.Editor.EVENT_ERROR, function () { |
|
|
|
self._checkValidation(); |
|
|
|
self._checkValidation(); |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -102485,13 +102494,15 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
case c.numberError: |
|
|
|
case c.numberError: |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case c.signalError: |
|
|
|
case c.signalError: |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
self.fireEvent(BI.NumberInterval.EVENT_ERROR); |
|
|
|
break; |
|
|
|
break; |
|
|
@ -102508,17 +102519,20 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
switch (self._checkValidation()) { |
|
|
|
case c.typeError: |
|
|
|
case c.typeError: |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
BI.Bubbles.show(c.typeError, BI.i18nText("BI-Numerical_Interval_Input_Data"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case c.numberError: |
|
|
|
case c.numberError: |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
BI.Bubbles.show(c.numberError, BI.i18nText("BI-Numerical_Interval_Number_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case c.signalError: |
|
|
|
case c.signalError: |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
BI.Bubbles.show(c.signalError, BI.i18nText("BI-Numerical_Interval_Signal_Value"), self, { |
|
|
|
offsetStyle: "left" |
|
|
|
offsetStyle: "left", |
|
|
|
|
|
|
|
adjustLength: c.adjustLength |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default : |
|
|
|
default : |
|
|
@ -113055,7 +113069,6 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
} |
|
|
|
} |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
trigger: o.trigger, |
|
|
|
|
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|