|
|
|
@ -26110,9 +26110,9 @@ BI.HighlightBehavior = BI.inherit(BI.Behavior, {
|
|
|
|
|
|
|
|
|
|
function doBe (run) { |
|
|
|
|
if (run === true) { |
|
|
|
|
item.doHighLight.apply(item, args); |
|
|
|
|
item.doHighLight && item.doHighLight.apply(item, args); |
|
|
|
|
} else { |
|
|
|
|
item.unHighLight.apply(item, args); |
|
|
|
|
item.unHighLight && item.unHighLight.apply(item, args); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -26122,7 +26122,7 @@ BI.HighlightBehavior = BI.inherit(BI.Behavior, {
|
|
|
|
|
doBe(rule); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
item.doBehavior.apply(item, args); |
|
|
|
|
item.doBehavior && item.doBehavior.apply(item, args); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -26150,12 +26150,12 @@ BI.RedMarkBehavior = BI.inherit(BI.Behavior, {
|
|
|
|
|
BI.each(items, function (i, item) { |
|
|
|
|
if(item instanceof BI.Single) { |
|
|
|
|
if (o.rule(item.getValue(), item)) { |
|
|
|
|
item.doRedMark.apply(item, args); |
|
|
|
|
item.doRedMark && item.doRedMark.apply(item, args); |
|
|
|
|
} else { |
|
|
|
|
item.unRedMark.apply(item, args); |
|
|
|
|
item.doRedMark && item.unRedMark.apply(item, args); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
item.doBehavior.apply(item, args); |
|
|
|
|
item.doBehavior && item.doBehavior.apply(item, args); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -71001,7 +71001,8 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
@ -71182,7 +71183,8 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if(type === BI.Events.CLICK) { |
|
|
|
@ -71262,7 +71264,8 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
@ -71550,7 +71553,8 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
@ -71740,7 +71744,8 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
@ -71843,7 +71848,8 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
@ -91621,6 +91627,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
|
|
|
|
|
el: { |
|
|
|
|
type: "bi.button_tree", |
|
|
|
|
chooseType: BI.Selection.Single, |
|
|
|
|
behaviors: { |
|
|
|
|
redmark: function () { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
|
}] |
|
|
|
@ -91634,8 +91645,8 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (nodes) { |
|
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
|
populate: function (nodes, keyword) { |
|
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0), keyword); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -91763,7 +91774,8 @@ BI.MultiLayerSingleTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -91846,7 +91858,8 @@ BI.MultiLayerSingleTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -91929,7 +91942,8 @@ BI.MultiLayerSingleTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -92011,7 +92025,8 @@ BI.MultiLayerSingleTreeFirstTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -92038,14 +92053,6 @@ BI.MultiLayerSingleTreeFirstTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.item.doRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
this.item.unRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
@ -92107,7 +92114,8 @@ BI.MultiLayerSingleTreeLastTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -92134,14 +92142,6 @@ BI.MultiLayerSingleTreeLastTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.item.doRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
this.item.unRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
@ -92203,7 +92203,8 @@ BI.MultiLayerSingleTreeMidTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value, |
|
|
|
|
py: o.py |
|
|
|
|
py: o.py, |
|
|
|
|
keyword: o.keyword |
|
|
|
|
}); |
|
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
@ -92230,14 +92231,6 @@ BI.MultiLayerSingleTreeMidTreeLeafItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
|
this.item.doRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
unRedMark: function () { |
|
|
|
|
this.item.unRedMark.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doHighLight: function () { |
|
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
|
}, |
|
|
|
|