diff --git a/.eslintrc b/.eslintrc index 9d3cbf291..b86d55e15 100644 --- a/.eslintrc +++ b/.eslintrc @@ -149,7 +149,6 @@ "$": true, "WebUI": true, "BI": true, - "BICst": true, "Data": true, "Fix": true, "module": true diff --git a/demo/js/widget/downlist/demo.downlist.js b/demo/js/widget/downlist/demo.downlist.js index ff2ef89a7..7c09b6b7e 100644 --- a/demo/js/widget/downlist/demo.downlist.js +++ b/demo/js/widget/downlist/demo.downlist.js @@ -1,31 +1,3 @@ -BICst.CONF = {}; -BICst.CONF.GROUP = {}; -BICst.CONF.GROUP.NUMBER = {}; -BICst.CONF.GROUP.NUMBER = {}; -BICst.CONF.GROUP.NUMBER.GROUP_BY_VALUE = 1; -BICst.CONF.GROUP.NUMBER.CUSTOM_NUMBER_GROUP = 2; -BICst.CONF.GROUP.NUMBER.SUM = 3; -BICst.CONF.GROUP.NUMBER.AVG = 4; -BICst.CONF.GROUP.NUMBER.MEDIAN = 5; -BICst.CONF.GROUP.NUMBER.MAX = 6; -BICst.CONF.GROUP.NUMBER.MIN = 7; -BICst.CONF.GROUP.NUMBER.STANDARD_DEVIATION = 8; -BICst.CONF.GROUP.NUMBER.VARIANCE = 9; -BICst.CONF.GROUP.NUMBER.COUNT = 10; -BICst.CONF.GROUP.NUMBER.RECORD_COUNT = 11; -BICst.CONF.GROUP.NUMBER.NONE = 12; -BICst.CONF.GROUP.NUMBER.PERIOD = 13; -BICst.CONF.GROUP.NUMBER.RING = 14; -BICst.CONF.GROUP.NUMBER.PERIOD_RATE = 15; -BICst.CONF.GROUP.NUMBER.RING_RATE = 16; -BICst.CONF.GROUP.NUMBER.YEAR = 17; -BICst.CONF.GROUP.NUMBER.QUARTER = 18; -BICst.CONF.GROUP.NUMBER.MONTH = 19; -BICst.CONF.GROUP.NUMBER.WEEK = 20; -BICst.CONF.GROUP.NUMBER.WEEKDAY = 21; -BICst.CONF.GROUP.NUMBER.RENAME = 22; -BICst.CONF.GROUP.NUMBER.DELETE = 23; - Demo.Downlist = BI.inherit(BI.Widget, { props: { baseCls: "demo-downlist" diff --git a/dist/bundle.js b/dist/bundle.js index b3394c214..1667984bc 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -33841,17 +33841,6 @@ BI.VerticalCenterLayout = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.vertical_center", BI.VerticalCenterLayout);/** - * 保存数据,将js里面用到的常量数据都分离 - * - */ -BI.Data = Data = {}; - -/** - * 存放bi里面通用的一些常量 - * @type {{}} - */ -Data.Constant = BICst = {}; -/** * 缓冲池 * @type {{Buffer: {}}} */ @@ -33860,7 +33849,7 @@ Data.Constant = BICst = {}; var Buffer = {}; var MODE = false;// 设置缓存模式为关闭 - Data.BufferPool = { + BI.BufferPool = { put: function (name, cache) { if (BI.isNotNull(Buffer[name])) { throw new Error("Buffer Pool has the key already!"); @@ -33879,7 +33868,7 @@ Data.Constant = BICst = {}; (function () { var _Shared = {}; - Data.SharingPool = { + BI.SharingPool = { _Shared: _Shared, put: function (name, shared) { _Shared[name] = shared; @@ -33902,12 +33891,10 @@ Data.Constant = BICst = {}; delete _Shared[key]; } }; -})();Data.Req = { +})();BI.Req = { }; -Data.Source = BISource = { - -};function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : factory(global.Fix = global.Fix || {}); diff --git a/dist/core.js b/dist/core.js index b03505456..665bee4e6 100644 --- a/dist/core.js +++ b/dist/core.js @@ -33841,17 +33841,6 @@ BI.VerticalCenterLayout = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.vertical_center", BI.VerticalCenterLayout);/** - * 保存数据,将js里面用到的常量数据都分离 - * - */ -BI.Data = Data = {}; - -/** - * 存放bi里面通用的一些常量 - * @type {{}} - */ -Data.Constant = BICst = {}; -/** * 缓冲池 * @type {{Buffer: {}}} */ @@ -33860,7 +33849,7 @@ Data.Constant = BICst = {}; var Buffer = {}; var MODE = false;// 设置缓存模式为关闭 - Data.BufferPool = { + BI.BufferPool = { put: function (name, cache) { if (BI.isNotNull(Buffer[name])) { throw new Error("Buffer Pool has the key already!"); @@ -33879,7 +33868,7 @@ Data.Constant = BICst = {}; (function () { var _Shared = {}; - Data.SharingPool = { + BI.SharingPool = { _Shared: _Shared, put: function (name, shared) { _Shared[name] = shared; @@ -33902,9 +33891,6 @@ Data.Constant = BICst = {}; delete _Shared[key]; } }; -})();Data.Req = { +})();BI.Req = { }; -Data.Source = BISource = { - -}; \ No newline at end of file diff --git a/dist/demo.js b/dist/demo.js index 0b91285d9..a014860ab 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -12281,35 +12281,7 @@ Demo.CustomDateTime = BI.inherit(BI.Widget, { }; } }); -BI.shortcut("demo.date_time", Demo.CustomDateTime);BICst.CONF = {}; -BICst.CONF.GROUP = {}; -BICst.CONF.GROUP.NUMBER = {}; -BICst.CONF.GROUP.NUMBER = {}; -BICst.CONF.GROUP.NUMBER.GROUP_BY_VALUE = 1; -BICst.CONF.GROUP.NUMBER.CUSTOM_NUMBER_GROUP = 2; -BICst.CONF.GROUP.NUMBER.SUM = 3; -BICst.CONF.GROUP.NUMBER.AVG = 4; -BICst.CONF.GROUP.NUMBER.MEDIAN = 5; -BICst.CONF.GROUP.NUMBER.MAX = 6; -BICst.CONF.GROUP.NUMBER.MIN = 7; -BICst.CONF.GROUP.NUMBER.STANDARD_DEVIATION = 8; -BICst.CONF.GROUP.NUMBER.VARIANCE = 9; -BICst.CONF.GROUP.NUMBER.COUNT = 10; -BICst.CONF.GROUP.NUMBER.RECORD_COUNT = 11; -BICst.CONF.GROUP.NUMBER.NONE = 12; -BICst.CONF.GROUP.NUMBER.PERIOD = 13; -BICst.CONF.GROUP.NUMBER.RING = 14; -BICst.CONF.GROUP.NUMBER.PERIOD_RATE = 15; -BICst.CONF.GROUP.NUMBER.RING_RATE = 16; -BICst.CONF.GROUP.NUMBER.YEAR = 17; -BICst.CONF.GROUP.NUMBER.QUARTER = 18; -BICst.CONF.GROUP.NUMBER.MONTH = 19; -BICst.CONF.GROUP.NUMBER.WEEK = 20; -BICst.CONF.GROUP.NUMBER.WEEKDAY = 21; -BICst.CONF.GROUP.NUMBER.RENAME = 22; -BICst.CONF.GROUP.NUMBER.DELETE = 23; - -Demo.Downlist = BI.inherit(BI.Widget, { +BI.shortcut("demo.date_time", Demo.CustomDateTime);Demo.Downlist = BI.inherit(BI.Widget, { props: { baseCls: "demo-downlist" }, diff --git a/src/data/constant/attrs.js b/src/data/constant/attrs.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/data/constant/colors.js b/src/data/constant/colors.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/data/constant/constant.js b/src/data/constant/constant.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/data/constant/enums.js b/src/data/constant/enums.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/data/constant/strings.js b/src/data/constant/strings.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/data/data.js b/src/data/data.js deleted file mode 100644 index 3f6b8bf99..000000000 --- a/src/data/data.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * 保存数据,将js里面用到的常量数据都分离 - * - */ -BI.Data = Data = {}; - -/** - * 存放bi里面通用的一些常量 - * @type {{}} - */ -Data.Constant = BICst = {}; diff --git a/src/data/pool/pool.buffer.js b/src/data/pool/pool.buffer.js index a6d9b9509..4310f740e 100644 --- a/src/data/pool/pool.buffer.js +++ b/src/data/pool/pool.buffer.js @@ -7,7 +7,7 @@ var Buffer = {}; var MODE = false;// 设置缓存模式为关闭 - Data.BufferPool = { + BI.BufferPool = { put: function (name, cache) { if (BI.isNotNull(Buffer[name])) { throw new Error("Buffer Pool has the key already!"); diff --git a/src/data/pool/pool.sharing.js b/src/data/pool/pool.sharing.js index 614fc7997..f13d487ed 100644 --- a/src/data/pool/pool.sharing.js +++ b/src/data/pool/pool.sharing.js @@ -5,7 +5,7 @@ (function () { var _Shared = {}; - Data.SharingPool = { + BI.SharingPool = { _Shared: _Shared, put: function (name, shared) { _Shared[name] = shared; diff --git a/src/data/req/req.js b/src/data/req/req.js index 21e527ce1..0d809eeb3 100644 --- a/src/data/req/req.js +++ b/src/data/req/req.js @@ -1,3 +1,3 @@ -Data.Req = { +BI.Req = { }; diff --git a/src/data/source/source.js b/src/data/source/source.js deleted file mode 100644 index 64096d0f0..000000000 --- a/src/data/source/source.js +++ /dev/null @@ -1,3 +0,0 @@ -Data.Source = BISource = { - -}; \ No newline at end of file diff --git a/utils/utils.js b/utils/utils.js index 19919a446..132a9416f 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -16278,17 +16278,6 @@ BI.Region.prototype = { return pos; } };/** - * 保存数据,将js里面用到的常量数据都分离 - * - */ -BI.Data = Data = {}; - -/** - * 存放bi里面通用的一些常量 - * @type {{}} - */ -Data.Constant = BICst = {}; -/** * 缓冲池 * @type {{Buffer: {}}} */ @@ -16297,7 +16286,7 @@ Data.Constant = BICst = {}; var Buffer = {}; var MODE = false;// 设置缓存模式为关闭 - Data.BufferPool = { + BI.BufferPool = { put: function (name, cache) { if (BI.isNotNull(Buffer[name])) { throw new Error("Buffer Pool has the key already!"); @@ -16316,7 +16305,7 @@ Data.Constant = BICst = {}; (function () { var _Shared = {}; - Data.SharingPool = { + BI.SharingPool = { _Shared: _Shared, put: function (name, shared) { _Shared[name] = shared; @@ -16339,9 +16328,6 @@ Data.Constant = BICst = {}; delete _Shared[key]; } }; -})();Data.Req = { +})();BI.Req = { }; -Data.Source = BISource = { - -}; \ No newline at end of file