|
|
|
@ -99478,6 +99478,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-multi-tree-combo", |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
height: 25 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -99495,6 +99496,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_trigger", |
|
|
|
|
height: o.height, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
masker: { |
|
|
|
|
offset: this.constants.offset |
|
|
|
@ -99973,6 +99975,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.extend(BI.MultiTreeSearcher.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-multi-tree-searcher", |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: function (v) { |
|
|
|
|
return v; |
|
|
|
|
}, |
|
|
|
|
popup: {}, |
|
|
|
|
|
|
|
|
|
adapter: null, |
|
|
|
@ -100068,6 +100073,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setState: function (ob) { |
|
|
|
|
var o = this.options; |
|
|
|
|
ob || (ob = {}); |
|
|
|
|
ob.value || (ob.value = {}); |
|
|
|
|
if (BI.isNumber(ob)) { |
|
|
|
@ -100078,7 +100084,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
var text = ""; |
|
|
|
|
BI.each(ob.value, function (name, children) { |
|
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
|
text += name + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
|
}); |
|
|
|
|
this.editor.setState(text); |
|
|
|
|
} |
|
|
|
@ -100089,7 +100095,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.each(ob, function (name, children) { |
|
|
|
|
index++; |
|
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
|
text += name + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
|
}); |
|
|
|
|
return text; |
|
|
|
|
} |
|
|
|
@ -109790,7 +109796,8 @@ BI.AbstractAllValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
var text = v; |
|
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
|
if (item.value === v) { |
|
|
|
|
// 把value都换成字符串
|
|
|
|
|
if (item.value + "" === v) { |
|
|
|
|
text = item.text; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -109979,6 +109986,19 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AbstractTree
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_valueFormatter: function (v) { |
|
|
|
|
var text = v; |
|
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
|
if (item.value + "" === v) { |
|
|
|
|
text = item.text; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
return text; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_initData: function (items) { |
|
|
|
|
this.items = items; |
|
|
|
|
var nodes = BI.Tree.treeFormat(items); |
|
|
|
@ -110652,6 +110672,7 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, {
|
|
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
|
element: this, |
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
|
width: o.width, |
|
|
|
|
height: o.height |
|
|
|
|
}); |
|
|
|
@ -110752,7 +110773,8 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
var text = v; |
|
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
|
if (item.value === v) { |
|
|
|
|
// 把value都换成字符串
|
|
|
|
|
if (item.value + "" === v) { |
|
|
|
|
text = item.text; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|