Browse Source

Merge pull request #1192 in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '2a435476481ca1ba21a31f3102cfc4695ee851d7':
  build
  KERNEL-2019 feat:新增lodash的set方法
es6
guy 5 years ago
parent
commit
433805febb
  1. 1
      changelog.md
  2. 134
      dist/2.0/fineui.ie.js
  3. 2
      dist/2.0/fineui.ie.js.map
  4. 96
      dist/2.0/fineui.ie.min.js
  5. 2
      dist/2.0/fineui.ie.min.js.map
  6. 152
      dist/2.0/fineui.js
  7. 2
      dist/2.0/fineui.js.map
  8. 96
      dist/2.0/fineui.min.js
  9. 2
      dist/2.0/fineui.min.js.map
  10. 134
      dist/bundle.ie.js
  11. 2
      dist/bundle.ie.js.map
  12. 96
      dist/bundle.ie.min.js
  13. 2
      dist/bundle.ie.min.js.map
  14. 152
      dist/bundle.js
  15. 2
      dist/bundle.js.map
  16. 96
      dist/bundle.min.js
  17. 2
      dist/bundle.min.js.map
  18. 7
      dist/case.js
  19. 2
      dist/case.js.map
  20. 93
      dist/core.js
  21. 2
      dist/core.js.map
  22. 134
      dist/fineui.ie.js
  23. 2
      dist/fineui.ie.js.map
  24. 94
      dist/fineui.ie.min.js
  25. 2
      dist/fineui.ie.min.js.map
  26. 152
      dist/fineui.js
  27. 2
      dist/fineui.js.map
  28. 94
      dist/fineui.min.js
  29. 2
      dist/fineui.min.js.map
  30. 148
      dist/fineui_without_jquery_polyfill.js
  31. 2
      dist/fineui_without_jquery_polyfill.js.map
  32. 18
      dist/fix/fix.compact.js
  33. 78
      dist/utils.js
  34. 2
      dist/utils.js.map
  35. 12
      dist/utils.min.js
  36. 2
      dist/utils.min.js.map
  37. 34
      dist/widget.js
  38. 2
      dist/widget.js.map
  39. 2
      lodash.md
  40. 2
      src/core/base.js
  41. 35
      src/core/lodash.js
  42. 3
      src/core/utils/tree.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2019-11)
-新增BI.set(object, path, value)方法
- getSearchResult兼容了对null值的处理
- 增加了异步单选下拉树请求完数据后加载完节点后会自动调整宽高的逻辑

134
dist/2.0/fineui.ie.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16434,8 +16466,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16942,7 +16973,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;
}
@ -17668,13 +17699,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;
@ -17717,7 +17751,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;
@ -20886,9 +20922,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]) {
@ -20896,7 +20934,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 = {};
@ -21028,7 +21089,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -21081,8 +21143,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -55009,11 +55070,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -57708,7 +57769,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -57720,6 +57780,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 () {
@ -57810,7 +57871,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 () {
@ -68397,7 +68457,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,
@ -68795,7 +68861,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -68811,7 +68878,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({
@ -69579,7 +69650,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,
@ -69976,7 +70053,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -69992,7 +70070,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({

2
dist/2.0/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

96
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

152
dist/2.0/fineui.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16434,8 +16466,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16942,7 +16973,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;
}
@ -17668,13 +17699,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;
@ -17717,7 +17751,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;
@ -20886,9 +20922,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]) {
@ -20896,7 +20934,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 = {};
@ -21028,7 +21089,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -21081,8 +21143,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -55412,11 +55473,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -58111,7 +58172,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -58123,6 +58183,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 () {
@ -58213,7 +58274,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 () {
@ -68800,7 +68860,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,
@ -69198,7 +69264,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -69214,7 +69281,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({
@ -69982,7 +70053,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,
@ -70379,7 +70456,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -70395,7 +70473,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({
@ -89576,11 +89658,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;
};
@ -89642,11 +89725,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();
};

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

96
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

134
dist/bundle.ie.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16434,8 +16466,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16942,7 +16973,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;
}
@ -17668,13 +17699,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;
@ -17717,7 +17751,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;
@ -20886,9 +20922,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]) {
@ -20896,7 +20934,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 = {};
@ -21028,7 +21089,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -21081,8 +21143,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -55009,11 +55070,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -57708,7 +57769,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -57720,6 +57780,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 () {
@ -57810,7 +57871,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 () {
@ -68397,7 +68457,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,
@ -68795,7 +68861,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -68811,7 +68878,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({
@ -69579,7 +69650,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,
@ -69976,7 +70053,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -69992,7 +70070,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({

2
dist/bundle.ie.js.map vendored

File diff suppressed because one or more lines are too long

96
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

152
dist/bundle.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16434,8 +16466,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16942,7 +16973,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;
}
@ -17668,13 +17699,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;
@ -17717,7 +17751,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;
@ -20886,9 +20922,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]) {
@ -20896,7 +20934,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 = {};
@ -21028,7 +21089,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -21081,8 +21143,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -55412,11 +55473,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -58111,7 +58172,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -58123,6 +58183,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 () {
@ -58213,7 +58274,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 () {
@ -68800,7 +68860,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,
@ -69198,7 +69264,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -69214,7 +69281,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({
@ -69982,7 +70053,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,
@ -70379,7 +70456,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -70395,7 +70473,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({
@ -89576,11 +89658,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;
};
@ -89642,11 +89725,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();
};

2
dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

96
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

7
dist/case.js vendored

@ -2925,11 +2925,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -5624,7 +5624,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -5636,6 +5635,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 () {
@ -5726,7 +5726,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 () {

2
dist/case.js.map vendored

File diff suppressed because one or more lines are too long

93
dist/core.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16434,8 +16466,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16942,7 +16973,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;
}
@ -17668,13 +17699,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;
@ -17717,7 +17751,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;
@ -20886,9 +20922,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]) {
@ -20896,7 +20934,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 = {};
@ -21028,7 +21089,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -21081,8 +21143,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

134
dist/fineui.ie.js vendored

@ -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}
@ -55256,11 +55317,11 @@ BI.ColorPicker = BI.inherit(BI.Widget, {
}, {
value: "#c3d825"
}, {
value: "#bce2e8"
value: "#bbe2e7"
}, {
value: "#85d3cd"
}, {
value: "#bce2e8"
value: "#bde1e6"
}, {
value: "#a0d8ef"
}, {
@ -57955,7 +58016,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -57967,6 +58027,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 () {
@ -58057,7 +58118,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 () {
@ -68644,7 +68704,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,
@ -69042,7 +69108,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -69058,7 +69125,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({
@ -69826,7 +69897,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,
@ -70223,7 +70300,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -70239,7 +70317,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({

2
dist/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

94
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

152
dist/fineui.js vendored

@ -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();
};

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

94
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

148
dist/fineui_without_jquery_polyfill.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -10341,7 +10374,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");
@ -10635,6 +10668,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -12201,9 +12235,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)) {
@ -16180,8 +16212,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -16688,7 +16719,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;
}
@ -17414,13 +17445,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;
@ -17463,7 +17497,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;
@ -20632,9 +20668,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]) {
@ -20642,7 +20680,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 = {};
@ -20774,7 +20835,8 @@ _.extend(BI, {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -20827,8 +20889,7 @@ _.extend(BI, {
return BI.Providers.getProvider(type, config);
}
};
})();
/**
})();/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -40924,7 +40985,6 @@ BI.ShelterEditor = BI.inherit(BI.Widget, {
});
this._showHint();
self._checkText();
BI.isKey(o.keyword) && this.text.doRedMark(o.keyword);
},
_checkText: function () {
@ -40936,6 +40996,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 () {
@ -41026,7 +41087,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 () {
@ -51337,7 +51397,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,
@ -51735,7 +51801,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -51751,7 +51818,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({
@ -52519,7 +52590,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,
@ -52916,7 +52993,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -52932,7 +53010,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({
@ -72113,11 +72195,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;
};
@ -72179,11 +72262,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();
};

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

18
dist/fix/fix.compact.js vendored

@ -100,11 +100,12 @@
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;
};
@ -166,11 +167,12 @@
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();
};

78
dist/utils.js vendored

@ -22,7 +22,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>
@ -9185,6 +9185,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`.
*
@ -9850,6 +9882,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;
@ -11132,7 +11165,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");
@ -11426,6 +11459,7 @@ if (!_global.BI) {
while (BI.prepares && BI.prepares.length > 0) {
BI.prepares.shift()();
}
BI.initialized = true;
},
has: function (obj, keys) {
@ -13406,9 +13440,11 @@ if (!_global.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]) {
@ -13416,7 +13452,30 @@ if (!_global.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 = {};
@ -13548,7 +13607,8 @@ if (!_global.BI) {
}
};
var providers = {}, providerInstance = {};
var providers = {},
providerInstance = {};
BI.Providers = {
getProvider: function (type, config) {
@ -13601,8 +13661,7 @@ if (!_global.BI) {
return BI.Providers.getProvider(type, config);
}
};
})();
!(function () {
})();!(function () {
var i18nStore = {};
_.extend(BI, {
addI18n: function (i18n) {
@ -17558,8 +17617,7 @@ BI.ScalingCellSizeAndPositionManager.prototype = {
});
}
};
})();
(function () {
})();(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
};
@ -18066,7 +18124,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;
}

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

12
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

34
dist/widget.js vendored

@ -6538,7 +6538,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,
@ -6936,7 +6942,8 @@ BI.MultiLayerSelectTreePopup = BI.inherit(BI.Widget, {
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: [],
value: ""
value: "",
onLoaded: BI.emptyFn
});
},
@ -6952,7 +6959,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({
@ -7720,7 +7731,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,
@ -8117,7 +8134,8 @@ BI.MultiLayerSingleTreePopup = BI.inherit(BI.Widget, {
tipText: BI.i18nText("BI-No_Selected_Item"),
isDefaultInit: false,
itemsCreator: BI.emptyFn,
items: []
items: [],
onLoaded: BI.emptyFn
});
},
@ -8133,7 +8151,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({

2
dist/widget.js.map vendored

File diff suppressed because one or more lines are too long

2
lodash.md

@ -1 +1 @@
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"
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"

2
src/core/base.js

@ -162,7 +162,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");

35
src/core/lodash.js

@ -1,7 +1,7 @@
/**
* @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>
@ -9164,6 +9164,38 @@
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`.
*
@ -9829,6 +9861,7 @@
lodash.range = range;
lodash.reject = reject;
lodash.rest = rest;
lodash.set = set;
lodash.slice = slice;
lodash.sortBy = sortBy;
lodash.take = take;

3
src/core/utils/tree.js

@ -1,4 +1,3 @@
(function () {
BI.Tree = function () {
this.root = new BI.Node(BI.UUID());
@ -506,7 +505,7 @@
return;
}
var self = this;
BI.any(array, function (i, item) {
BI.some(array, function (i, item) {
if (callback(i, item) === false) {
return true;
}

Loading…
Cancel
Save