|
|
@ -10620,7 +10620,7 @@ if (!_global.BI) { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
var F = function () { |
|
|
|
var F = function () { |
|
|
|
}, spp = sp.prototype; |
|
|
|
}, spp = sp.prototype; |
|
|
|
F.prototype = spp; |
|
|
|
F.prototype = spp; |
|
|
|
sb.prototype = new F(); |
|
|
|
sb.prototype = new F(); |
|
|
|
sb.superclass = spp; |
|
|
|
sb.superclass = spp; |
|
|
@ -10650,14 +10650,12 @@ if (!_global.BI) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
freeze: function (value) { |
|
|
|
freeze: function (value) { |
|
|
|
if (Object.freeze) { |
|
|
|
// 在ES5中,如果这个方法的参数不是一个对象(一个原始值),那么它会导致 TypeError
|
|
|
|
|
|
|
|
// 在ES2015中,非对象参数将被视为要被冻结的普通对象,并被简单地返回
|
|
|
|
|
|
|
|
if (Object.freeze && BI.isObject(value)) { |
|
|
|
return Object.freeze(value); |
|
|
|
return Object.freeze(value); |
|
|
|
} else { |
|
|
|
|
|
|
|
if (!BI.isObject(value)) { |
|
|
|
|
|
|
|
throw new TypeError('Object.freeze can only be called on Objects.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return value; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return value; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 数字和字符串可以作为key
|
|
|
|
// 数字和字符串可以作为key
|
|
|
@ -10856,7 +10854,7 @@ if (!_global.BI) { |
|
|
|
var pending = false; |
|
|
|
var pending = false; |
|
|
|
var timerFunc; |
|
|
|
var timerFunc; |
|
|
|
|
|
|
|
|
|
|
|
function nextTickHandler() { |
|
|
|
function nextTickHandler () { |
|
|
|
pending = false; |
|
|
|
pending = false; |
|
|
|
var copies = callbacks.slice(0); |
|
|
|
var copies = callbacks.slice(0); |
|
|
|
callbacks = []; |
|
|
|
callbacks = []; |
|
|
@ -10889,7 +10887,7 @@ if (!_global.BI) { |
|
|
|
setTimeout(nextTickHandler, 0); |
|
|
|
setTimeout(nextTickHandler, 0); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
return function queueNextTick(cb) { |
|
|
|
return function queueNextTick (cb) { |
|
|
|
var _resolve; |
|
|
|
var _resolve; |
|
|
|
var args = [].slice.call(arguments, 1); |
|
|
|
var args = [].slice.call(arguments, 1); |
|
|
|
callbacks.push(function () { |
|
|
|
callbacks.push(function () { |
|
|
@ -19537,8 +19535,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, { |
|
|
|
type: "bi.tooltip", |
|
|
|
type: "bi.tooltip", |
|
|
|
text: text, |
|
|
|
text: text, |
|
|
|
level: level, |
|
|
|
level: level, |
|
|
|
stopEvent: true, |
|
|
|
stopEvent: true |
|
|
|
height: this._const.height |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -38455,7 +38452,7 @@ BI.Text = BI.inherit(BI.Single, { |
|
|
|
textAlign: o.textAlign, |
|
|
|
textAlign: o.textAlign, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : "", |
|
|
|
textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : "", |
|
|
|
overflow: o.whiteSpace === "nowrap" ? "" : "auto" |
|
|
|
overflow: o.whiteSpace === "nowrap" ? "" : (BI.isWidthOrHeight(o.height) ? "auto" : "") |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.handler) { |
|
|
|
if (o.handler) { |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
@ -49444,8 +49441,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { |
|
|
|
text: "", |
|
|
|
text: "", |
|
|
|
level: "success", // success或warning
|
|
|
|
level: "success", // success或warning
|
|
|
|
stopEvent: false, |
|
|
|
stopEvent: false, |
|
|
|
stopPropagation: false, |
|
|
|
stopPropagation: false |
|
|
|
height: 18 |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
@ -49489,8 +49485,7 @@ BI.Tooltip = BI.inherit(BI.Tip, { |
|
|
|
textAlign: "left", |
|
|
|
textAlign: "left", |
|
|
|
whiteSpace: "normal", |
|
|
|
whiteSpace: "normal", |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
height: o.height, |
|
|
|
textHeight: 18, |
|
|
|
textHeight: o.height - 2, |
|
|
|
|
|
|
|
hgap: this._const.hgap |
|
|
|
hgap: this._const.hgap |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -68669,23 +68664,9 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getSyncConfig: function () { |
|
|
|
_getSearchConfig: function() { |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
|
|
|
|
baseConfig.el = { |
|
|
|
|
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
return baseConfig; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getAsyncConfig: function () { |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var config = this._getBaseConfig(); |
|
|
|
return { |
|
|
|
return BI.extend(config, { |
|
|
|
|
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.multilayer_select_tree_trigger", |
|
|
|
type: "bi.multilayer_select_tree_trigger", |
|
|
|
allowEdit: o.allowEdit, |
|
|
|
allowEdit: o.allowEdit, |
|
|
@ -68696,6 +68677,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
@ -68735,9 +68717,28 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
self.trigger.stopEditing(); |
|
|
|
self.trigger.stopEditing(); |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getSyncConfig: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
|
|
|
|
return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getAsyncConfig: function () { |
|
|
|
|
|
|
|
var config = this._getBaseConfig(); |
|
|
|
|
|
|
|
return BI.extend(config, this._getSearchConfig()); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
this.combo.setValue(v); |
|
|
|
this.combo.setValue(v); |
|
|
@ -69015,11 +69016,16 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
valueFormatter: function (v) { |
|
|
|
valueFormatter: function (v) { |
|
|
|
return v; |
|
|
|
return v; |
|
|
|
}, |
|
|
|
}, |
|
|
|
itemsCreator: BI.emptyFn |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search") |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
|
|
|
this.tree.initTree(BI.deepClone(BI.Tree.treeFormat(BI.deepClone(o.items)))); |
|
|
|
|
|
|
|
} |
|
|
|
var content = { |
|
|
|
var content = { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -69040,7 +69046,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "", |
|
|
|
tipText: "", |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: o.watermark, |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
@ -69074,7 +69080,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
var finding = BI.Func.getSearchResult(o.items, keyword); |
|
|
|
var finding = BI.Func.getSearchResult(o.items, keyword); |
|
|
|
var matched = finding.match, find = finding.find; |
|
|
|
var matched = finding.match, find = finding.find; |
|
|
|
callback(find.concat(matched)); |
|
|
|
callback(self._fillTreeStructure4Search(find.concat(matched))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
callback(); |
|
|
|
callback(); |
|
|
|
} |
|
|
|
} |
|
|
@ -69116,6 +69122,29 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 将搜索到的节点进行补充,构造成一棵完整的树
|
|
|
|
|
|
|
|
_fillTreeStructure4Search: function (leaves) { |
|
|
|
|
|
|
|
var result = BI.map(leaves, "id"); |
|
|
|
|
|
|
|
var queue = leaves.reverse() || []; |
|
|
|
|
|
|
|
while (BI.isNotEmptyArray(queue)) { |
|
|
|
|
|
|
|
var node = queue.pop(); |
|
|
|
|
|
|
|
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id"); |
|
|
|
|
|
|
|
if (pNode != null) { |
|
|
|
|
|
|
|
queue.push(pNode); |
|
|
|
|
|
|
|
result.push(pNode.id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var nodes = []; |
|
|
|
|
|
|
|
BI.each(this.options.items, function (idx, item) { |
|
|
|
|
|
|
|
if(BI.contains(result, item.id)) { |
|
|
|
|
|
|
|
nodes.push(BI.extend({}, item, { |
|
|
|
|
|
|
|
open: true |
|
|
|
|
|
|
|
})) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return nodes; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
@ -69648,23 +69677,9 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getSyncConfig: function () { |
|
|
|
_getSearchConfig: function() { |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
|
|
|
|
baseConfig.el = { |
|
|
|
|
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
return baseConfig; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getAsyncConfig: function () { |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var config = this._getBaseConfig(); |
|
|
|
return { |
|
|
|
return BI.extend(config, { |
|
|
|
|
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.multilayer_single_tree_trigger", |
|
|
|
type: "bi.multilayer_single_tree_trigger", |
|
|
|
allowEdit: o.allowEdit, |
|
|
|
allowEdit: o.allowEdit, |
|
|
@ -69672,6 +69687,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
|
self.trigger = _ref; |
|
|
|
self.trigger = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
@ -69714,9 +69730,28 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
self.trigger.stopEditing(); |
|
|
|
self.trigger.stopEditing(); |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getSyncConfig: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var baseConfig = this._getBaseConfig(); |
|
|
|
|
|
|
|
return BI.extend(baseConfig, o.allowEdit ? this._getSearchConfig() : { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.single_tree_trigger", |
|
|
|
|
|
|
|
text: o.text, |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: o.items, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getAsyncConfig: function () { |
|
|
|
|
|
|
|
var config = this._getBaseConfig(); |
|
|
|
|
|
|
|
return BI.extend(config, this._getSearchConfig()); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
this.combo.setValue(v); |
|
|
|
this.combo.setValue(v); |
|
|
@ -69993,11 +70028,16 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
valueFormatter: function (v) { |
|
|
|
valueFormatter: function (v) { |
|
|
|
return v; |
|
|
|
return v; |
|
|
|
}, |
|
|
|
}, |
|
|
|
itemsCreator: BI.emptyFn |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search") |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
|
|
|
this.tree.initTree(BI.deepClone(BI.Tree.treeFormat(BI.deepClone(o.items)))); |
|
|
|
|
|
|
|
} |
|
|
|
var content = { |
|
|
|
var content = { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
@ -70018,7 +70058,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
tipText: "", |
|
|
|
tipText: "", |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: o.watermark, |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
eventName: BI.StateEditor.EVENT_FOCUS, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
@ -70052,7 +70092,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
var finding = BI.Func.getSearchResult(o.items, keyword); |
|
|
|
var finding = BI.Func.getSearchResult(o.items, keyword); |
|
|
|
var matched = finding.match, find = finding.find; |
|
|
|
var matched = finding.match, find = finding.find; |
|
|
|
callback(find.concat(matched)); |
|
|
|
callback(self._fillTreeStructure4Search(find.concat(matched))); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
callback(); |
|
|
|
callback(); |
|
|
|
} |
|
|
|
} |
|
|
@ -70094,6 +70134,29 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 将搜索到的节点进行补充,构造成一棵完整的树
|
|
|
|
|
|
|
|
_fillTreeStructure4Search: function (leaves) { |
|
|
|
|
|
|
|
var result = BI.map(leaves, "id"); |
|
|
|
|
|
|
|
var queue = leaves.reverse() || []; |
|
|
|
|
|
|
|
while (BI.isNotEmptyArray(queue)) { |
|
|
|
|
|
|
|
var node = queue.pop(); |
|
|
|
|
|
|
|
var pNode = this.tree.search(this.tree.getRoot(), node.pId, "id"); |
|
|
|
|
|
|
|
if (pNode != null) { |
|
|
|
|
|
|
|
queue.push(pNode); |
|
|
|
|
|
|
|
result.push(pNode.id); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var nodes = []; |
|
|
|
|
|
|
|
BI.each(this.options.items, function (idx, item) { |
|
|
|
|
|
|
|
if(BI.contains(result, item.id)) { |
|
|
|
|
|
|
|
nodes.push(BI.extend({}, item, { |
|
|
|
|
|
|
|
open: true |
|
|
|
|
|
|
|
})) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return nodes; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
@ -71446,6 +71509,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
allowEdit: o.allowEdit, |
|
|
|
allowEdit: o.allowEdit, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
masker: { |
|
|
|
masker: { |
|
|
|
offset: { |
|
|
|
offset: { |
|
|
@ -72246,6 +72310,7 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, { |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
adapter: o.adapter, |
|
|
|
adapter: o.adapter, |
|
|
|
masker: o.masker, |
|
|
|
masker: o.masker, |
|
|
@ -72972,6 +73037,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
adapter: o.adapter, |
|
|
|
adapter: o.adapter, |
|
|
|
masker: o.masker, |
|
|
|
masker: o.masker, |
|
|
@ -73570,7 +73636,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.MultiSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.MultiSelectEditor.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-multi-select-editor", |
|
|
|
baseCls: "bi-multi-select-editor", |
|
|
|
el: {} |
|
|
|
el: {}, |
|
|
|
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search") |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -73581,7 +73648,7 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.state_editor", |
|
|
|
type: "bi.state_editor", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: o.watermark, |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
defaultText: o.text, |
|
|
|
defaultText: o.text, |
|
|
@ -73678,6 +73745,7 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.editor = BI.createWidget(o.el, { |
|
|
|
this.editor = BI.createWidget(o.el, { |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
@ -75842,6 +75910,7 @@ BI.MultiTreeInsertCombo = BI.inherit(BI.Single, { |
|
|
|
searcher: { |
|
|
|
searcher: { |
|
|
|
type: "bi.multi_tree_searcher", |
|
|
|
type: "bi.multi_tree_searcher", |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.multi_tree_search_insert_pane", |
|
|
|
type: "bi.multi_tree_search_insert_pane", |
|
|
@ -76948,7 +77017,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
|
|
|
|
|
|
|
|
adapter: null, |
|
|
|
adapter: null, |
|
|
|
masker: {} |
|
|
|
masker: {}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -76957,6 +77026,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
this.editor = BI.createWidget({ |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
|
|
|
|
watermark: o.watermark, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.simple_state_editor", |
|
|
|
type: "bi.simple_state_editor", |
|
|
|