|
|
|
@ -69528,7 +69528,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
return v; |
|
|
|
|
}, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search") |
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
|
allowSearchValue: false |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -69536,7 +69537,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
this.tree.initTree(BI.Tree.treeFormat(o.items)); |
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
} |
|
|
|
|
var content = { |
|
|
|
|
type: "bi.htape", |
|
|
|
@ -69645,8 +69647,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
|
var o = this.options; |
|
|
|
|
var findingText = BI.Func.getSearchResult(o.items, keyword, "text"); |
|
|
|
|
var findingValue = o.allowSearchValue ? BI.Func.getSearchResult(o.items, keyword, "value") : {find: [], match: []}; |
|
|
|
|
var findingText = BI.Func.getSearchResult(this.nodes, keyword, "text"); |
|
|
|
|
var findingValue = o.allowSearchValue ? BI.Func.getSearchResult(this.nodes, keyword, "value") : {find: [], match: []}; |
|
|
|
|
var textItems = findingText.find.concat(findingText.match); |
|
|
|
|
var valueItems = findingValue.find.concat(findingValue.match); |
|
|
|
|
return this._fillTreeStructure4Search(BI.uniqBy(textItems.concat(valueItems), "id")); |
|
|
|
@ -69719,6 +69721,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
this.options.items = items; |
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(items)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -69769,6 +69772,7 @@ BI.MultiLayerSelectTreeFirstPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
open: o.open, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
@ -69872,6 +69876,7 @@ BI.MultiLayerSelectTreeLastPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
open: o.open, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
@ -69971,6 +69976,7 @@ BI.MultiLayerSelectTreeMidPlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
open: o.open, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
@ -70070,6 +70076,7 @@ BI.MultiLayerSelectTreePlusGroupNode = BI.inherit(BI.NodeButton, {
|
|
|
|
|
}, |
|
|
|
|
id: o.id, |
|
|
|
|
pId: o.pId, |
|
|
|
|
keyword: o.keyword, |
|
|
|
|
open: o.open, |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: o.hgap, |
|
|
|
@ -70701,7 +70708,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
this.tree.initTree(BI.Tree.treeFormat(o.items)); |
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
} |
|
|
|
|
var content = { |
|
|
|
|
type: "bi.htape", |
|
|
|
@ -70810,8 +70818,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
|
var o = this.options; |
|
|
|
|
var findingText = BI.Func.getSearchResult(o.items, keyword, "text"); |
|
|
|
|
var findingValue = o.allowSearchValue ? BI.Func.getSearchResult(o.items, keyword, "value") : {find: [], match: []}; |
|
|
|
|
var findingText = BI.Func.getSearchResult(this.nodes, keyword, "text"); |
|
|
|
|
var findingValue = o.allowSearchValue ? BI.Func.getSearchResult(this.nodes, keyword, "value") : {find: [], match: []}; |
|
|
|
|
var textItems = findingText.find.concat(findingText.match); |
|
|
|
|
var valueItems = findingValue.find.concat(findingValue.match); |
|
|
|
|
return this._fillTreeStructure4Search(BI.uniqBy(textItems.concat(valueItems), "id")); |
|
|
|
@ -70885,6 +70893,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
this.options.items = items; |
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(items)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -76478,9 +76487,9 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var checked = this.getSearcher().hasChecked(); |
|
|
|
|
var val = { |
|
|
|
|
type: BI.Selection.Multi, |
|
|
|
|
value: checked ? this.getValue() : {} |
|
|
|
|
value: checked ? {1: 1} : {} |
|
|
|
|
}; |
|
|
|
|
this.getSearcher().setState(val); |
|
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
|
self.fireEvent(BI.MultiTreeCombo.EVENT_CLICK_ITEM); |
|
|
|
|
}); |
|
|
|
@ -76781,9 +76790,9 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var checked = this.getSearcher().hasChecked(); |
|
|
|
|
var val = { |
|
|
|
|
type: BI.Selection.Multi, |
|
|
|
|
value: checked ? this.getValue() : {} |
|
|
|
|
value: checked ? {1: 1} : {} |
|
|
|
|
}; |
|
|
|
|
this.getSearcher().setState(val); |
|
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
|
self.fireEvent(BI.MultiTreeInsertCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
|
}); |
|
|
|
@ -77097,9 +77106,9 @@ BI.MultiTreeListCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var checked = this.getSearcher().hasChecked(); |
|
|
|
|
var val = { |
|
|
|
|
type: BI.Selection.Multi, |
|
|
|
|
value: checked ? this.getValue() : {} |
|
|
|
|
value: checked ? {1: 1} : {} |
|
|
|
|
}; |
|
|
|
|
this.getSearcher().setState(val); |
|
|
|
|
this.getSearcher().setState(checked ? BI.Selection.Multi : BI.Selection.None); |
|
|
|
|
this.getCounter().setButtonChecked(val); |
|
|
|
|
self.fireEvent(BI.MultiTreeListCombo.EVENT_CLICK_ITEM, self.combo.getValue()); |
|
|
|
|
}); |
|
|
|
@ -89590,7 +89599,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
} |
|
|
|
|
return oldWatch.call(this, model, expOrFn, function () { |
|
|
|
|
options && options.store && pushTarget(options.store); |
|
|
|
|
var res = cb.apply(this, arguments); |
|
|
|
|
try { |
|
|
|
|
var res = cb.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
options && options.store && popTarget(); |
|
|
|
|
return res; |
|
|
|
|
}, options); |
|
|
|
@ -89627,7 +89640,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
pushContext(context); |
|
|
|
|
pushed = true; |
|
|
|
|
} |
|
|
|
|
var result = _create.apply(this, arguments); |
|
|
|
|
try { |
|
|
|
|
var result = _create.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
pushed && popContext(); |
|
|
|
|
return result; |
|
|
|
|
}; |
|
|
|
@ -89636,7 +89653,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
var old = BI.Loader.prototype[name]; |
|
|
|
|
BI.Loader.prototype[name] = function () { |
|
|
|
|
pushContext(this); |
|
|
|
|
var result = old.apply(this, arguments); |
|
|
|
|
try { |
|
|
|
|
var result = old.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
popContext(); |
|
|
|
|
return result; |
|
|
|
|
}; |
|
|
|
|