|
|
@ -56859,16 +56859,11 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
text: this._getText(), |
|
|
|
defaultText: o.text, |
|
|
|
|
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
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", |
|
|
@ -56903,11 +56898,6 @@ 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]; |
|
|
@ -58229,7 +58219,8 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: "", |
|
|
|
watermark: "", |
|
|
|
errorText: "", |
|
|
|
errorText: "", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted") |
|
|
|
defaultText: "", // 默认显示值,默认显示值与显示值的区别是默认显示值标记灰色
|
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Unrestricted") // 显示值
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -58456,20 +58447,21 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.setText(BI.i18nText("BI-Select_Part")); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isString(v)) { |
|
|
|
if (BI.isString(v)) { |
|
|
|
this.text.setText(v); |
|
|
|
this.text.setText(v); |
|
|
|
v === o.text ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
// 配置了defaultText才判断标灰,其他情况不标灰
|
|
|
|
|
|
|
|
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isArray(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
if (BI.isEmpty(v)) { |
|
|
|
this.text.setText(o.text); |
|
|
|
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text); |
|
|
|
this.text.element.addClass("bi-water-mark"); |
|
|
|
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark"); |
|
|
|
} else if (v.length === 1) { |
|
|
|
} else if (v.length === 1) { |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.setText(v[0]); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
@ -69033,6 +69025,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: this._digest(o.value), |
|
|
|
text: this._digest(o.value), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -69113,7 +69106,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
return this.options.valueFormatter(v); |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stopEditing: function () { |
|
|
|
stopEditing: function () { |
|
|
@ -70006,7 +70000,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.editor = this; |
|
|
|
self.editor = this; |
|
|
|
}, |
|
|
|
}, |
|
|
|
text: o.text, |
|
|
|
defaultText: o.text, |
|
|
|
|
|
|
|
text: this._digest(o.value), |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "", |
|
|
|
tipText: "", |
|
|
@ -70085,15 +70080,9 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
mounted: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
if(BI.isKey(o.value)) { |
|
|
|
|
|
|
|
this.setValue([o.value]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
return this.options.valueFormatter(v); |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stopEditing: function () { |
|
|
|
stopEditing: function () { |
|
|
@ -73581,6 +73570,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
defaultText: o.text, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
tipType: o.tipType, |
|
|
|
tipType: o.tipType, |
|
|
|
warningTitle: o.warningTitle, |
|
|
|
warningTitle: o.warningTitle, |
|
|
@ -81611,7 +81601,8 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-editor", |
|
|
|
baseCls: "bi-single-select-editor", |
|
|
|
el: {} |
|
|
|
el: {}, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Please_Select") |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -81625,7 +81616,8 @@ BI.SingleSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
text: o.text |
|
|
|
defaultText: o.text, |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|