|
|
@ -77702,6 +77702,20 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
bottom: 0, |
|
|
|
bottom: 0, |
|
|
|
top: 0 |
|
|
|
top: 0 |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_checkError: function (v) { |
|
|
|
|
|
|
|
if(BI.isNotNull(v)) { |
|
|
|
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
|
|
|
var result = BI.find(this.options.items, function (idx, item) { |
|
|
|
|
|
|
|
return BI.contains(v, item.value); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -77711,6 +77725,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.combo.setValue(v); |
|
|
|
this.combo.setValue(v); |
|
|
|
|
|
|
|
this._checkError(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
@ -78174,7 +78189,7 @@ BI.shortcut("bi.text_value_check_combo_popup", BI.TextValueCheckComboPopup);/** |
|
|
|
BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.TextValueCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.TextValueCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseClass: "bi-text-value-combo", |
|
|
|
baseCls: "bi-text-value-combo", |
|
|
|
height: 30, |
|
|
|
height: 30, |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
text: "", |
|
|
|
text: "", |
|
|
@ -78218,9 +78233,24 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_checkError: function (v) { |
|
|
|
|
|
|
|
if(BI.isNotNull(v)) { |
|
|
|
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
|
|
|
var result = BI.find(this.options.items, function (idx, item) { |
|
|
|
|
|
|
|
return BI.contains(v, item.value); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.trigger.setValue(v); |
|
|
|
this.trigger.setValue(v); |
|
|
|
this.popup.setValue(v); |
|
|
|
this.popup.setValue(v); |
|
|
|
|
|
|
|
this._checkError(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|