guy 7 years ago
parent
commit
a5a2d2959f
  1. 125
      bi/core.js
  2. 125
      dist/bundle.js
  3. 2
      dist/bundle.min.css
  4. 54
      dist/bundle.min.js
  5. 125
      dist/core.js
  6. 82
      src/core/inject.js
  7. 15
      src/core/model.js
  8. 20
      src/core/store.js
  9. 2
      src/data/data.js

125
bi/core.js

@ -20147,7 +20147,89 @@ BI.extend(BI.DOM, {
}
return this._scrollWidth;
}
});/**
});;(function () {
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
throw ("constant:[" + xtype + "] has been registed");
}
constantInjection[xtype] = cls;
};
var modelInjection = {};
BI.model = function (xtype, cls) {
if (modelInjection[xtype] != null) {
throw ("model:[" + xtype + "] has been registed");
}
modelInjection[xtype] = cls;
};
var storeInjection = {};
BI.stores = function (xtype, cls) {
if (storeInjection[xtype] != null) {
throw ("store:[" + xtype + "] has been registed");
}
storeInjection[xtype] = cls;
};
var providerInjection = {};
BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) {
throw ("provider:[" + xtype + "] has been registed");
}
providerInjection[xtype] = cls;
};
BI.config = function (type, configFn) {
if (constantInjection[type]) {
return constantInjection[type] = configFn(constantInjection[type]);
}
if (providerInjection[type]) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
return configFn(providers[type])
}
}
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
}
}
BI.Models = {
getModel: function (type, config) {
return new modelInjection[type](config);
}
}
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new storeInjection[type](config);
}
}
var providers = {}, providerInstance = {}
BI.Providers = {
getProvider: function (type, config) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
providerInstance[type] = new providers[type].$get()(config);
}
return providerInstance[type];
}
}
})();
/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -20530,22 +20612,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
});BI.Plugin = BI.Plugin || {};
;
(function () {
var _WidgetsPlugin = {};
@ -21718,27 +21785,7 @@ $.extend(String, {
return args[i];
});
}
});;(function () {
var kv = {};
BI.stores = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
});BI.EventListener = {
listen: function listen(target, eventType, callback) {
if (target.addEventListener) {
target.addEventListener(eventType, callback, false);
@ -25719,7 +25766,7 @@ BI.Data = Data = {};
* 存放bi里面通用的一些常量
* @type {{}}
*/
Data.Constant = BI.Constant = BICst = {};
Data.Constant = BICst = {};
/**
* 缓冲池
* @type {{Buffer: {}}}

125
dist/bundle.js vendored

@ -20147,7 +20147,89 @@ BI.extend(BI.DOM, {
}
return this._scrollWidth;
}
});/**
});;(function () {
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
throw ("constant:[" + xtype + "] has been registed");
}
constantInjection[xtype] = cls;
};
var modelInjection = {};
BI.model = function (xtype, cls) {
if (modelInjection[xtype] != null) {
throw ("model:[" + xtype + "] has been registed");
}
modelInjection[xtype] = cls;
};
var storeInjection = {};
BI.stores = function (xtype, cls) {
if (storeInjection[xtype] != null) {
throw ("store:[" + xtype + "] has been registed");
}
storeInjection[xtype] = cls;
};
var providerInjection = {};
BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) {
throw ("provider:[" + xtype + "] has been registed");
}
providerInjection[xtype] = cls;
};
BI.config = function (type, configFn) {
if (constantInjection[type]) {
return constantInjection[type] = configFn(constantInjection[type]);
}
if (providerInjection[type]) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
return configFn(providers[type])
}
}
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
}
}
BI.Models = {
getModel: function (type, config) {
return new modelInjection[type](config);
}
}
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new storeInjection[type](config);
}
}
var providers = {}, providerInstance = {}
BI.Providers = {
getProvider: function (type, config) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
providerInstance[type] = new providers[type].$get()(config);
}
return providerInstance[type];
}
}
})();
/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -20530,22 +20612,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
});BI.Plugin = BI.Plugin || {};
;
(function () {
var _WidgetsPlugin = {};
@ -21718,27 +21785,7 @@ $.extend(String, {
return args[i];
});
}
});;(function () {
var kv = {};
BI.stores = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
});BI.EventListener = {
listen: function listen(target, eventType, callback) {
if (target.addEventListener) {
target.addEventListener(eventType, callback, false);
@ -25719,7 +25766,7 @@ BI.Data = Data = {};
* 存放bi里面通用的一些常量
* @type {{}}
*/
Data.Constant = BI.Constant = BICst = {};
Data.Constant = BICst = {};
/**
* 缓冲池
* @type {{Buffer: {}}}

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

125
dist/core.js vendored

@ -20147,7 +20147,89 @@ BI.extend(BI.DOM, {
}
return this._scrollWidth;
}
});/**
});;(function () {
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
throw ("constant:[" + xtype + "] has been registed");
}
constantInjection[xtype] = cls;
};
var modelInjection = {};
BI.model = function (xtype, cls) {
if (modelInjection[xtype] != null) {
throw ("model:[" + xtype + "] has been registed");
}
modelInjection[xtype] = cls;
};
var storeInjection = {};
BI.stores = function (xtype, cls) {
if (storeInjection[xtype] != null) {
throw ("store:[" + xtype + "] has been registed");
}
storeInjection[xtype] = cls;
};
var providerInjection = {};
BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) {
throw ("provider:[" + xtype + "] has been registed");
}
providerInjection[xtype] = cls;
};
BI.config = function (type, configFn) {
if (constantInjection[type]) {
return constantInjection[type] = configFn(constantInjection[type]);
}
if (providerInjection[type]) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
return configFn(providers[type])
}
}
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
}
}
BI.Models = {
getModel: function (type, config) {
return new modelInjection[type](config);
}
}
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new storeInjection[type](config);
}
}
var providers = {}, providerInstance = {}
BI.Providers = {
getProvider: function (type, config) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
providerInstance[type] = new providers[type].$get()(config);
}
return providerInstance[type];
}
}
})();
/**
* guy
* 检测某个Widget的EventChange事件然后去show某个card
* @type {*|void|Object}
@ -20530,22 +20612,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();
BI.Plugin = BI.Plugin || {};
});BI.Plugin = BI.Plugin || {};
;
(function () {
var _WidgetsPlugin = {};
@ -21718,27 +21785,7 @@ $.extend(String, {
return args[i];
});
}
});;(function () {
var kv = {};
BI.stores = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();
BI.EventListener = {
});BI.EventListener = {
listen: function listen(target, eventType, callback) {
if (target.addEventListener) {
target.addEventListener(eventType, callback, false);
@ -25719,7 +25766,7 @@ BI.Data = Data = {};
* 存放bi里面通用的一些常量
* @type {{}}
*/
Data.Constant = BI.Constant = BICst = {};
Data.Constant = BICst = {};
/**
* 缓冲池
* @type {{Buffer: {}}}

82
src/core/inject.js

@ -0,0 +1,82 @@
;(function () {
var constantInjection = {};
BI.constant = function (xtype, cls) {
if (constantInjection[xtype] != null) {
throw ("constant:[" + xtype + "] has been registed");
}
constantInjection[xtype] = cls;
};
var modelInjection = {};
BI.model = function (xtype, cls) {
if (modelInjection[xtype] != null) {
throw ("model:[" + xtype + "] has been registed");
}
modelInjection[xtype] = cls;
};
var storeInjection = {};
BI.stores = function (xtype, cls) {
if (storeInjection[xtype] != null) {
throw ("store:[" + xtype + "] has been registed");
}
storeInjection[xtype] = cls;
};
var providerInjection = {};
BI.provider = function (xtype, cls) {
if (providerInjection[xtype] != null) {
throw ("provider:[" + xtype + "] has been registed");
}
providerInjection[xtype] = cls;
};
BI.config = function (type, configFn) {
if (constantInjection[type]) {
return constantInjection[type] = configFn(constantInjection[type]);
}
if (providerInjection[type]) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
return configFn(providers[type])
}
}
BI.Constants = {
getConstant: function (type) {
return constantInjection[type];
}
}
BI.Models = {
getModel: function (type, config) {
return new modelInjection[type](config);
}
}
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new storeInjection[type](config);
}
}
var providers = {}, providerInstance = {}
BI.Providers = {
getProvider: function (type, config) {
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
providerInstance[type] = new providers[type].$get()(config);
}
return providerInstance[type];
}
}
})();

15
src/core/model.js

@ -1,15 +0,0 @@
;(function () {
var models = {};
BI.models = function (xtype, cls) {
if (models[xtype] != null) {
throw ("models:[" + xtype + "] has been registed");
}
models[xtype] = cls;
};
BI.Models = {
getModel: function (type, config) {
return new models[type](config);
}
}
})();

20
src/core/store.js

@ -1,20 +0,0 @@
;(function () {
var kv = {};
BI.stores = function (xtype, cls) {
if (kv[xtype] != null) {
throw ("stores:[" + xtype + "] has been registed");
}
kv[xtype] = cls;
};
var stores = {};
BI.Stores = {
getStore: function (type, config) {
if (stores[type]) {
return stores[type];
}
return stores[type] = new kv[type](config);
}
}
})();

2
src/data/data.js

@ -8,4 +8,4 @@ BI.Data = Data = {};
* 存放bi里面通用的一些常量
* @type {{}}
*/
Data.Constant = BI.Constant = BICst = {};
Data.Constant = BICst = {};

Loading…
Cancel
Save