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