Browse Source

Merge remote-tracking branch 'origin/master'

es6
git 3 years ago
parent
commit
b29c15ce38
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 87
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 87
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 87
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 87
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 2
      dist/fineui.proxy.css
  26. 87
      dist/fineui.proxy.js
  27. 2
      dist/fineui.proxy.js.map
  28. 2
      dist/fineui.proxy.min.css
  29. 4
      dist/fineui.proxy.min.js
  30. 2
      dist/fineui.proxy.min.js.map
  31. 87
      dist/fineui_without_jquery_polyfill.js
  32. 2
      dist/fineui_without_jquery_polyfill.js.map
  33. 2
      dist/font.css
  34. 2
      dist/resource.css
  35. 71
      dist/utils.js
  36. 2
      dist/utils.js.map
  37. 4
      dist/utils.min.js
  38. 2
      dist/utils.min.js.map
  39. 2
      package.json

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
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

87
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4146,11 +4146,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -4196,7 +4217,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -4216,9 +4239,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -4228,15 +4282,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -18840,6 +18897,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -18855,12 +18913,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
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

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

87
dist/core.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4146,11 +4146,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -4196,7 +4217,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -4216,9 +4239,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -4228,15 +4282,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -18840,6 +18897,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -18855,12 +18913,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

87
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4146,11 +4146,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -4196,7 +4217,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -4216,9 +4239,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -4228,15 +4282,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -18840,6 +18897,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -18855,12 +18913,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
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

87
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4146,11 +4146,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -4196,7 +4217,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -4216,9 +4239,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -4228,15 +4282,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -18840,6 +18897,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -18855,12 +18913,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
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

2
dist/fineui.proxy.css vendored

File diff suppressed because one or more lines are too long

87
dist/fineui.proxy.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -2463,11 +2463,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -2513,7 +2534,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -2533,9 +2556,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -2545,15 +2599,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -16301,6 +16358,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -16316,12 +16374,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/fineui.proxy.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.proxy.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.proxy.min.js vendored

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

87
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -2463,11 +2463,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -2513,7 +2534,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -2533,9 +2556,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -2545,15 +2599,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {
@ -15906,6 +15963,7 @@ BI.Region.prototype = {
// 系统参数常量
!(function () {
var system = {
dependencies: {},
size: { // 尺寸
TOOL_BAR_HEIGHT: 24,
LIST_ITEM_HEIGHT: 24,
@ -15921,12 +15979,27 @@ BI.Region.prototype = {
BI.deepExtend(system, { size: opt });
};
this.addDependency = function (moduleId, minVersion, maxVersion) {
system.dependencies[moduleId] = {
min: minVersion,
max: maxVersion
};
};
this.addDependencies = function (moduleConfig) {
BI.extend(system.dependencies, moduleConfig);
};
this.$get = function () {
return BI.inherit(BI.OB, {
getSize: function () {
return system.size;
},
getDependencies: function () {
return system.dependencies;
}
});
};
};

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

71
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2021-7-26 22:10:49 */
/*! time: 2021-7-26 23:20:35 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -5360,11 +5360,32 @@ if (!_global.BI) {
/***/ (function(module, exports) {
(function () {
var moduleInjection = {};
var moduleInjection = {}, moduleInjectionMap = {
components: {},
constants: {},
stores: {},
services: {},
models: {},
providers: {}
};
BI.module = BI.module || function (xtype, cls) {
if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了");
}
var key;
for (var k in moduleInjectionMap) {
if(cls[k]){
for (key in cls[k]) {
if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = [];
}
moduleInjectionMap[k][key].push({
version: cls[k][key],
moduleId: xtype
});
}
}
}
moduleInjection[xtype] = cls;
};
@ -5410,7 +5431,9 @@ if (!_global.BI) {
var configFunctions = {};
BI.config = BI.config || function (type, configFn, opt) {
if (BI.initialized) {
opt = opt || {};
// 初始化过或者系统配置需要立刻执行
if (BI.initialized || "bi.provider.system" === type) {
if (constantInjection[type]) {
return (constantInjection[type] = configFn(constantInjection[type]));
}
@ -5430,9 +5453,40 @@ if (!_global.BI) {
configFunctions[type] = [];
BI.prepares.push(function () {
var queue = configFunctions[type];
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies();
var modules = moduleInjectionMap.components[type]
|| moduleInjectionMap.constants[type]
|| moduleInjectionMap.services[type]
|| moduleInjectionMap.stores[type]
|| moduleInjectionMap.models[type]
|| moduleInjectionMap.providers[type];
for (var i = 0; i < queue.length; i++) {
var conf = queue[i];
var version = conf.opt.version;
var fn = conf.fn;
if(modules && version) {
var findVersion = false;
for (var j = 0; j < modules.length; j++) {
var module = modules[i];
if (module && dependencies[module.moduleId] && module.version === version) {
var min = dependencies[module.moduleId].min, max = dependencies[module.moduleId].max;
if (min && module.version < min){
findVersion = true;
break;
}
if(max && module.version > max){
findVersion = true;
break;
}
}
}
if(findVersion === true){
_global.console && console.error("module: [" + type + "] 版本: [" + module.version + "] 已过期");
continue;
}
}
if (constantInjection[type]) {
constantInjection[type] = queue[i](constantInjection[type]);
constantInjection[type] = fn(constantInjection[type]);
continue;
}
if (providerInjection[type]) {
@ -5442,15 +5496,18 @@ if (!_global.BI) {
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
fn(providers[type]);
continue;
}
BI.Plugin.configWidget(type, queue[i]);
BI.Plugin.configWidget(type, fn);
}
configFunctions[type] = null;
});
}
configFunctions[type].push(configFn);
configFunctions[type].push({
fn: configFn,
opt: opt
});
};
BI.getReference = BI.getReference || function (type, fn) {

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

4
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

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20210726221215",
"version": "2.0.20210726232146",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

Loading…
Cancel
Save