|
|
@ -21696,7 +21696,7 @@ BI.prepares.push(function () { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) { |
|
|
|
if (attachEvent) { |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
fn(); |
|
|
|
BI.nextTick(fn); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
@ -56859,10 +56859,16 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
text: this._getText(), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "" |
|
|
|
tipText: "", |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Events.MOUNT, |
|
|
|
|
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.editor.setState(self._digest(o.value, o.items)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.search_text_value_combo_popup", |
|
|
|
type: "bi.search_text_value_combo_popup", |
|
|
@ -56897,6 +56903,11 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, { |
|
|
|
this.editor.setState(v); |
|
|
|
this.editor.setState(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getText: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return (BI.isKey(o.value) && o.text === this._digest(o.value, o.items)) ? "" : o.text; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function(vals, items){ |
|
|
|
_digest: function(vals, items){ |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
vals = BI.isArray(vals) ? vals : [vals]; |
|
|
|
vals = BI.isArray(vals) ? vals : [vals]; |
|
|
|