|
|
@ -26110,9 +26110,9 @@ BI.HighlightBehavior = BI.inherit(BI.Behavior, { |
|
|
|
|
|
|
|
|
|
|
|
function doBe (run) { |
|
|
|
function doBe (run) { |
|
|
|
if (run === true) { |
|
|
|
if (run === true) { |
|
|
|
item.doHighLight.apply(item, args); |
|
|
|
item.doHighLight && item.doHighLight.apply(item, args); |
|
|
|
} else { |
|
|
|
} 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); |
|
|
|
doBe(rule); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} 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) { |
|
|
|
BI.each(items, function (i, item) { |
|
|
|
if(item instanceof BI.Single) { |
|
|
|
if(item instanceof BI.Single) { |
|
|
|
if (o.rule(item.getValue(), item)) { |
|
|
|
if (o.rule(item.getValue(), item)) { |
|
|
|
item.doRedMark.apply(item, args); |
|
|
|
item.doRedMark && item.doRedMark.apply(item, args); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
item.unRedMark.apply(item, args); |
|
|
|
item.doRedMark && item.unRedMark.apply(item, args); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
item.doBehavior.apply(item, args); |
|
|
|
item.doBehavior && item.doBehavior.apply(item, args); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -70967,7 +70967,8 @@ BI.FirstPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
@ -71148,7 +71149,8 @@ BI.LastPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if(type === BI.Events.CLICK) { |
|
|
|
if(type === BI.Events.CLICK) { |
|
|
@ -71228,7 +71230,8 @@ BI.MidPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
@ -71516,7 +71519,8 @@ BI.FirstTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
@ -71706,7 +71710,8 @@ BI.LastTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
@ -71809,7 +71814,8 @@ BI.MidTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
@ -91587,6 +91593,11 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.button_tree", |
|
|
|
type: "bi.button_tree", |
|
|
|
chooseType: BI.Selection.Single, |
|
|
|
chooseType: BI.Selection.Single, |
|
|
|
|
|
|
|
behaviors: { |
|
|
|
|
|
|
|
redmark: function () { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.vertical" |
|
|
|
type: "bi.vertical" |
|
|
|
}] |
|
|
|
}] |
|
|
@ -91600,8 +91611,8 @@ BI.MultiLayerSingleLevelTree = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (nodes) { |
|
|
|
populate: function (nodes, keyword) { |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0)); |
|
|
|
this.tree.populate(this._formatItems(BI.Tree.transformToTreeFormat(nodes), 0), keyword); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -91729,7 +91740,8 @@ BI.MultiLayerSingleTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -91812,7 +91824,8 @@ BI.MultiLayerSingleTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -91895,7 +91908,8 @@ BI.MultiLayerSingleTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.node.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -91977,7 +91991,8 @@ BI.MultiLayerSingleTreeFirstTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -92004,14 +92019,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 () { |
|
|
|
doHighLight: function () { |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -92073,7 +92080,8 @@ BI.MultiLayerSingleTreeLastTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -92100,14 +92108,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 () { |
|
|
|
doHighLight: function () { |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -92169,7 +92169,8 @@ BI.MultiLayerSingleTreeMidTreeLeafItem = BI.inherit(BI.BasicButton, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py |
|
|
|
py: o.py, |
|
|
|
|
|
|
|
keyword: o.keyword |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.item.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
|
if (type === BI.Events.CLICK) {// 本身实现click功能
|
|
|
@ -92196,14 +92197,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 () { |
|
|
|
doHighLight: function () { |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
this.item.doHighLight.apply(this.item, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|