|
|
|
@ -269,7 +269,7 @@ if(_global.BI.prepares == null) {
|
|
|
|
|
}/** |
|
|
|
|
* @license |
|
|
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
|
|
|
* Build: `lodash core plus="debounce,throttle,get,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy"` |
|
|
|
|
* Build: `lodash core plus="debounce,throttle,get,set,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge,groupBy,uniqBy"` |
|
|
|
|
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
|
@ -9432,6 +9432,38 @@ if(_global.BI.prepares == null) {
|
|
|
|
|
return object; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist, |
|
|
|
|
* it's created. Arrays are created for missing index properties while objects |
|
|
|
|
* are created for all other missing properties. Use `_.setWith` to customize |
|
|
|
|
* `path` creation. |
|
|
|
|
* |
|
|
|
|
* **Note:** This method mutates `object`. |
|
|
|
|
* |
|
|
|
|
* @static |
|
|
|
|
* @memberOf _ |
|
|
|
|
* @since 3.7.0 |
|
|
|
|
* @category Object |
|
|
|
|
* @param {Object} object The object to modify. |
|
|
|
|
* @param {Array|string} path The path of the property to set. |
|
|
|
|
* @param {*} value The value to set. |
|
|
|
|
* @returns {Object} Returns `object`. |
|
|
|
|
* @example |
|
|
|
|
* |
|
|
|
|
* var object = { 'a': [{ 'b': { 'c': 3 } }] }; |
|
|
|
|
* |
|
|
|
|
* _.set(object, 'a[0].b.c', 4); |
|
|
|
|
* console.log(object.a[0].b.c); |
|
|
|
|
* // => 4
|
|
|
|
|
* |
|
|
|
|
* _.set(object, ['x', '0', 'y', 'z'], 5); |
|
|
|
|
* console.log(object.x[0].y.z); |
|
|
|
|
* // => 5
|
|
|
|
|
*/ |
|
|
|
|
function set(object, path, value) { |
|
|
|
|
return object == null ? object : baseSet(object, path, value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates an array of the own enumerable string keyed property values of `object`. |
|
|
|
|
* |
|
|
|
@ -10097,6 +10129,7 @@ if(_global.BI.prepares == null) {
|
|
|
|
|
lodash.range = range; |
|
|
|
|
lodash.reject = reject; |
|
|
|
|
lodash.rest = rest; |
|
|
|
|
lodash.set = set; |
|
|
|
|
lodash.slice = slice; |
|
|
|
|
lodash.sortBy = sortBy; |
|
|
|
|
lodash.take = take; |
|
|
|
@ -10588,7 +10621,7 @@ if (!_global.BI) {
|
|
|
|
|
_.each(["where", "findWhere", "invoke", "pluck", "shuffle", "sample", "toArray", "size"], function (name) { |
|
|
|
|
BI[name] = _apply(name); |
|
|
|
|
}); |
|
|
|
|
_.each(["get", "each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min", |
|
|
|
|
_.each(["get", "set", "each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min", |
|
|
|
|
"sortBy", "groupBy", "indexBy", "countBy", "partition", "clamp"], function (name) { |
|
|
|
|
if (name === "any") { |
|
|
|
|
BI[name] = _applyFunc("some"); |
|
|
|
@ -10882,6 +10915,7 @@ if (!_global.BI) {
|
|
|
|
|
while (BI.prepares && BI.prepares.length > 0) { |
|
|
|
|
BI.prepares.shift()(); |
|
|
|
|
} |
|
|
|
|
BI.initialized = true; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
has: function (obj, keys) { |
|
|
|
@ -12448,9 +12482,7 @@ if (!_global.BI) {
|
|
|
|
|
|
|
|
|
|
BI.createWidget = function (item, options, context) { |
|
|
|
|
// 先把准备环境准备好
|
|
|
|
|
while (BI.prepares && BI.prepares.length > 0) { |
|
|
|
|
BI.prepares.shift()(); |
|
|
|
|
} |
|
|
|
|
BI.init(); |
|
|
|
|
var el, w; |
|
|
|
|
item || (item = {}); |
|
|
|
|
if (BI.isWidget(options)) { |
|
|
|
@ -16681,8 +16713,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
})(); |
|
|
|
|
(function () { |
|
|
|
|
})();(function () { |
|
|
|
|
BI.Tree = function () { |
|
|
|
|
this.root = new BI.Node(BI.UUID()); |
|
|
|
|
}; |
|
|
|
@ -17189,7 +17220,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
var self = this; |
|
|
|
|
BI.any(array, function (i, item) { |
|
|
|
|
BI.some(array, function (i, item) { |
|
|
|
|
if (callback(i, item) === false) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -17915,13 +17946,16 @@ BI.Plugin = BI.Plugin || {};
|
|
|
|
|
if (_GlobalWidgetConfigFn) { |
|
|
|
|
_GlobalWidgetConfigFn(type, options); |
|
|
|
|
} |
|
|
|
|
var res; |
|
|
|
|
if (_ConfigPlugin[type]) { |
|
|
|
|
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) { |
|
|
|
|
_ConfigPlugin[type][i](options); |
|
|
|
|
if (res = _ConfigPlugin[type][i](options)) { |
|
|
|
|
options = res; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// Deprecated
|
|
|
|
|
if (_WidgetsPlugin[type]) { |
|
|
|
|
var res; |
|
|
|
|
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) { |
|
|
|
|
if (res = _WidgetsPlugin[type][i](options)) { |
|
|
|
|
return res; |
|
|
|
@ -17964,7 +17998,9 @@ BI.Plugin = BI.Plugin || {};
|
|
|
|
|
if (_ObjectPlugin[type]) { |
|
|
|
|
var res; |
|
|
|
|
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) { |
|
|
|
|
res = _ObjectPlugin[type][i](object); |
|
|
|
|
if (res = _ObjectPlugin[type][i](object)) { |
|
|
|
|
object = res; |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return res || object; |
|
|
|
@ -21133,9 +21169,11 @@ _.extend(BI, {
|
|
|
|
|
providerInjection[xtype] = cls; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var configFunctions = {}; |
|
|
|
|
BI.config = function (type, configFn) { |
|
|
|
|
if (BI.initialized) { |
|
|
|
|
if (constantInjection[type]) { |
|
|
|
|
return constantInjection[type] = configFn(constantInjection[type]); |
|
|
|
|
return (constantInjection[type] = configFn(constantInjection[type])); |
|
|
|
|
} |
|
|
|
|
if (providerInjection[type]) { |
|
|
|
|
if (!providers[type]) { |
|
|
|
@ -21143,7 +21181,30 @@ _.extend(BI, {
|
|
|
|
|
} |
|
|
|
|
return configFn(providers[type]); |
|
|
|
|
} |
|
|
|
|
BI.Plugin.configWidget(type, configFn); |
|
|
|
|
return BI.Plugin.configWidget(type, configFn); |
|
|
|
|
} |
|
|
|
|
if (!configFunctions[type]) { |
|
|
|
|
configFunctions[type] = []; |
|
|
|
|
BI.prepares.push(function () { |
|
|
|
|
var queue = configFunctions[type]; |
|
|
|
|
for (var i = 0; i < queue.length; i++) { |
|
|
|
|
if (constantInjection[type]) { |
|
|
|
|
constantInjection[type] = queue[i](constantInjection[type]); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if (providerInjection[type]) { |
|
|
|
|
if (!providers[type]) { |
|
|
|
|
providers[type] = new providerInjection[type](); |
|
|
|
|
} |
|
|
|
|
queue[i](providers[type]); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
BI.Plugin.configWidget(type, queue[i]); |
|
|
|
|
} |
|
|
|
|
configFunctions[type] = null; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
configFunctions[type].push(configFn); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var actions = {}; |
|
|
|
@ -21275,7 +21336,8 @@ _.extend(BI, {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
var providers = {}, providerInstance = {}; |
|
|
|
|
var providers = {}, |
|
|
|
|
providerInstance = {}; |
|
|
|
|
|
|
|
|
|
BI.Providers = { |
|
|
|
|
getProvider: function (type, config) { |
|
|
|
@ -21328,8 +21390,7 @@ _.extend(BI, {
|
|
|
|
|
return BI.Providers.getProvider(type, config); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
})(); |
|
|
|
|
/** |
|
|
|
|
})();/** |
|
|
|
|
* guy |
|
|
|
|
* 检测某个Widget的EventChange事件然后去show某个card |
|
|
|
|
* @type {*|void|Object} |
|
|
|
@ -55659,11 +55720,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
|
|
|
|
|
}, { |
|
|
|
|
value: "#c3d825" |
|
|
|
|
}, { |
|
|
|
|
value: "#bce2e8" |
|
|
|
|
value: "#bbe2e7" |
|
|
|
|
}, { |
|
|
|
|
value: "#85d3cd" |
|
|
|
|
}, { |
|
|
|
|
value: "#bce2e8" |
|
|
|
|
value: "#bde1e6" |
|
|
|
|
}, { |
|
|
|
|
value: "#a0d8ef" |
|
|
|
|
}, { |
|
|
|
@ -58358,7 +58419,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this._showHint(); |
|
|
|
|
self._checkText(); |
|
|
|
|
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkText: function () { |
|
|
|
@ -58370,6 +58430,7 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
this.text.setValue(this.editor.getValue()); |
|
|
|
|
this.text.element.removeClass("bi-water-mark"); |
|
|
|
|
} |
|
|
|
|
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_showInput: function () { |
|
|
|
@ -58460,7 +58521,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
var o = this.options; |
|
|
|
|
this.editor.setValue(k); |
|
|
|
|
this._checkText(); |
|
|
|
|
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -69047,7 +69107,13 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
self.combo.hideView(); |
|
|
|
|
self.fireEvent(BI.MultiLayerSelectTreeCombo.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
onLoaded: function () { |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.combo.adjustWidth(); |
|
|
|
|
self.combo.adjustHeight(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
maxHeight: 400, |
|
|
|
@ -69445,7 +69511,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
isDefaultInit: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
items: [], |
|
|
|
|
value: "" |
|
|
|
|
value: "", |
|
|
|
|
onLoaded: BI.emptyFn |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -69461,7 +69528,11 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
|
value: o.value, |
|
|
|
|
scrollable: null |
|
|
|
|
scrollable: null, |
|
|
|
|
onLoaded: function () { |
|
|
|
|
self.tree.check(); |
|
|
|
|
o.onLoaded(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
@ -70229,7 +70300,13 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
self.combo.hideView(); |
|
|
|
|
self.fireEvent(BI.MultiLayerSingleTreeCombo.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
onLoaded: function () { |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self.combo.adjustWidth(); |
|
|
|
|
self.combo.adjustHeight(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
maxHeight: 400, |
|
|
|
@ -70626,7 +70703,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
tipText: BI.i18nText("BI-No_Selected_Item"), |
|
|
|
|
isDefaultInit: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
items: [] |
|
|
|
|
items: [], |
|
|
|
|
onLoaded: BI.emptyFn |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -70642,7 +70720,11 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
|
value: o.value, |
|
|
|
|
scrollable: null |
|
|
|
|
scrollable: null, |
|
|
|
|
onLoaded: function () { |
|
|
|
|
self.tree.check(); |
|
|
|
|
o.onLoaded(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
@ -90407,11 +90489,12 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
|
|
|
|
|
pushContext(context); |
|
|
|
|
pushed = true; |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
var result = _create.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
// try {
|
|
|
|
|
// var result = _create.apply(this, arguments);
|
|
|
|
|
// } catch (e) {
|
|
|
|
|
// console.error(e);
|
|
|
|
|
// }
|
|
|
|
|
pushed && popContext(); |
|
|
|
|
return result; |
|
|
|
|
}; |
|
|
|
@ -90473,11 +90556,12 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);(function () {
|
|
|
|
|
pushTarget(this.store); |
|
|
|
|
initWatch(this, this.watch); |
|
|
|
|
} |
|
|
|
|
try { |
|
|
|
|
_render.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
// try {
|
|
|
|
|
// _render.apply(this, arguments);
|
|
|
|
|
// } catch (e) {
|
|
|
|
|
// console.error(e);
|
|
|
|
|
// }
|
|
|
|
|
needPop && popTarget(); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|