|
|
@ -68348,10 +68348,16 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this._createValueMap(); |
|
|
|
this._createValueMap(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var value; |
|
|
|
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
|
|
|
value = this._digest(o.value); |
|
|
|
|
|
|
|
} |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.down_list_select_text_trigger", |
|
|
|
type: "bi.down_list_select_text_trigger", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
items: o.items |
|
|
|
items: o.items, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
value: value |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
@ -68361,6 +68367,7 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
|
|
|
|
value: BI.isNull(value) ? [] : [value], |
|
|
|
items: BI.deepClone(o.items) |
|
|
|
items: BI.deepClone(o.items) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -68389,10 +68396,14 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
|
|
|
|
return this.valueMap[v]; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
v = this.valueMap[v]; |
|
|
|
v = this._digest(v); |
|
|
|
this.combo.setValue([v]); |
|
|
|
this.combo.setValue([v]); |
|
|
|
this.trigger.setValue(v.childValue || v.value); |
|
|
|
this.trigger.setValue(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
@ -68432,7 +68443,8 @@ BI.DownListSelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
items: this._formatItemArray(o.items), |
|
|
|
items: this._formatItemArray(o.items), |
|
|
|
text: o.text |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
value: BI.isNull(o.value) ? "" : o.value.childValue || o.value.value |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -68453,7 +68465,7 @@ BI.DownListSelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (vals) { |
|
|
|
setValue: function (vals) { |
|
|
|
this.trigger.setValue(vals); |
|
|
|
this.trigger.setValue(vals.childValue || vals.value); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|