|
|
@ -72557,7 +72557,7 @@ BI.SingleSelectRadioItem = BI.inherit(BI.BasicButton, { |
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", { |
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection("left", { |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
items: [this.radio], |
|
|
|
items: [this.radio], |
|
|
|
width: 36 |
|
|
|
width: 16 |
|
|
|
}, this.text) |
|
|
|
}, this.text) |
|
|
|
})))); |
|
|
|
})))); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -83565,6 +83565,7 @@ BI.Segment = BI.inherit(BI.Widget, { |
|
|
|
this.buttonGroup = BI.createWidget({ |
|
|
|
this.buttonGroup = BI.createWidget({ |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
type: "bi.button_group", |
|
|
|
type: "bi.button_group", |
|
|
|
|
|
|
|
value: o.value, |
|
|
|
items: BI.createItems(o.items, { |
|
|
|
items: BI.createItems(o.items, { |
|
|
|
type: "bi.segment_button", |
|
|
|
type: "bi.segment_button", |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
@ -99730,6 +99731,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.MultiTreeCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-multi-tree-combo", |
|
|
|
baseCls: "bi-multi-tree-combo", |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -99747,6 +99749,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.multi_select_trigger", |
|
|
|
type: "bi.multi_select_trigger", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
masker: { |
|
|
|
masker: { |
|
|
|
offset: this.constants.offset |
|
|
|
offset: this.constants.offset |
|
|
@ -100225,6 +100228,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
return BI.extend(BI.MultiTreeSearcher.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.MultiTreeSearcher.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-multi-tree-searcher", |
|
|
|
baseCls: "bi-multi-tree-searcher", |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
|
|
|
valueFormatter: function (v) { |
|
|
|
|
|
|
|
return v; |
|
|
|
|
|
|
|
}, |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
|
|
|
|
|
|
|
|
adapter: null, |
|
|
|
adapter: null, |
|
|
@ -100320,6 +100326,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setState: function (ob) { |
|
|
|
setState: function (ob) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
ob || (ob = {}); |
|
|
|
ob || (ob = {}); |
|
|
|
ob.value || (ob.value = {}); |
|
|
|
ob.value || (ob.value = {}); |
|
|
|
if (BI.isNumber(ob)) { |
|
|
|
if (BI.isNumber(ob)) { |
|
|
@ -100330,7 +100337,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
var text = ""; |
|
|
|
var text = ""; |
|
|
|
BI.each(ob.value, function (name, children) { |
|
|
|
BI.each(ob.value, function (name, children) { |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
text += name + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.setState(text); |
|
|
|
this.editor.setState(text); |
|
|
|
} |
|
|
|
} |
|
|
@ -100341,7 +100348,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
BI.each(ob, function (name, children) { |
|
|
|
BI.each(ob, function (name, children) { |
|
|
|
index++; |
|
|
|
index++; |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
text += name + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return text; |
|
|
|
return text; |
|
|
|
} |
|
|
|
} |
|
|
@ -110042,7 +110049,8 @@ BI.AbstractAllValueChooser = BI.inherit(BI.Widget, { |
|
|
|
var text = v; |
|
|
|
var text = v; |
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
if (item.value === v) { |
|
|
|
// 把value都换成字符串
|
|
|
|
|
|
|
|
if (item.value + "" === v) { |
|
|
|
text = item.text; |
|
|
|
text = item.text; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
@ -110231,6 +110239,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) { |
|
|
|
_initData: function (items) { |
|
|
|
this.items = items; |
|
|
|
this.items = items; |
|
|
|
var nodes = BI.Tree.treeFormat(items); |
|
|
|
var nodes = BI.Tree.treeFormat(items); |
|
|
@ -110904,6 +110925,7 @@ BI.TreeValueChooserCombo = BI.inherit(BI.AbstractTreeValueChooser, { |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
type: "bi.multi_tree_combo", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
|
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height |
|
|
|
}); |
|
|
|
}); |
|
|
@ -111004,7 +111026,8 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, { |
|
|
|
var text = v; |
|
|
|
var text = v; |
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
if (BI.isNotNull(this.items)) { |
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
BI.some(this.items, function (i, item) { |
|
|
|
if (item.value === v) { |
|
|
|
// 把value都换成字符串
|
|
|
|
|
|
|
|
if (item.value + "" === v) { |
|
|
|
text = item.text; |
|
|
|
text = item.text; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|