guy 7 years ago
parent
commit
cf96f485d2
  1. 4487
      dist/base.js
  2. 6485
      dist/bundle.js
  3. 20
      dist/bundle.min.js
  4. 4
      dist/case.js
  5. 1994
      dist/core.js
  6. 7
      dist/fix/fix.compact.js
  7. 6
      dist/fix/fix.js
  8. 2920
      src/base/formula/codemirror/codemirror.js
  9. 2
      src/base/sql/codemirrior/sql-mode.js
  10. 758
      src/base/svg/raphael.js
  11. 637
      src/base/tree/ztree/jquery.ztree.core-3.5.js
  12. 166
      src/base/tree/ztree/jquery.ztree.excheck-3.5.js
  13. 4
      src/case/clipboard/clipboard.js
  14. 1994
      src/core/jquery.js

4487
dist/base.js vendored

File diff suppressed because it is too large Load Diff

6485
dist/bundle.js vendored

File diff suppressed because it is too large Load Diff

20
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/case.js vendored

@ -2627,7 +2627,7 @@ try {// IE8下会抛错
function _interopRequireDefault (obj) {
return obj && obj.__esModule ? obj : {
default: obj
"default": obj
};
}
@ -2861,7 +2861,7 @@ try {// IE8下会抛错
function _interopRequireDefault (obj) {
return obj && obj.__esModule ? obj : {
default: obj
"default": obj
};
}

1994
dist/core.js vendored

File diff suppressed because it is too large Load Diff

7
dist/fix/fix.compact.js vendored

@ -98,7 +98,10 @@
});
});
this._watchers && (this._watchers = []);
this.store && (this.store._parent = null, this.store = null);
if (this.store) {
this.store._parent && (this.store._parent = null);
this.store = null;
}
};
_.each(["_mount"], function (name) {
@ -111,6 +114,7 @@
});
});
if (BI.isIE9Below()) {
_.each(["each", "map", "reduce", "reduceRight", "find", "filter", "reject", "every", "all", "some", "any", "max", "min",
"sortBy", "groupBy", "indexBy", "countBy", "partition",
"keys", "allKeys", "values", "pairs", "invert",
@ -124,5 +128,6 @@
}) : old.apply(this, arguments);
};
});
}
BI.watch = Fix.watch;
}());

6
dist/fix/fix.js vendored

@ -401,10 +401,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} else {
this.model = this.walk(value);
}
try {
def(this.model, "__ob__", this);
} catch (e) {
if (isIE9Below) {
this.model['__ob__'] = this;
} else {
def(this.model, "__ob__", this);
}
}

2920
src/base/formula/codemirror/codemirror.js

File diff suppressed because it is too large Load Diff

2
src/base/sql/codemirrior/sql-mode.js

@ -10,7 +10,7 @@
"use strict";
var client = parserConfig.client || {},
atoms = parserConfig.atoms || {false: true, true: true, null: true},
atoms = parserConfig.atoms || {"false": true, "true": true, "null": true},
builtin = parserConfig.builtin || {},
keywords = parserConfig.keywords || {},
operatorChars = parserConfig.operatorChars || /^[*+\-%<>!=&|~^]/,

758
src/base/svg/raphael.js

File diff suppressed because it is too large Load Diff

637
src/base/tree/ztree/jquery.ztree.core-3.5.js

File diff suppressed because it is too large Load Diff

166
src/base/tree/ztree/jquery.ztree.excheck-3.5.js

@ -10,8 +10,8 @@
* email: hunter.z@263.net
* Date: 2015-06-18
*/
(function ($) {
// default consts of excheck
(function($){
//default consts of excheck
var _consts = {
event: {
CHECK: "ztree_check"
@ -35,7 +35,7 @@
TYPE_LEVEL: "level"
}
},
// default setting of excheck
//default setting of excheck
_setting = {
check: {
enable: false,
@ -45,8 +45,8 @@
chkDisabledInherit: false,
radioType: _consts.radio.TYPE_LEVEL,
chkboxType: {
Y: "ps",
N: "ps"
"Y": "ps",
"N": "ps"
}
},
data: {
@ -55,19 +55,19 @@
}
},
callback: {
beforeCheck: null,
onCheck: null
beforeCheck:null,
onCheck:null
}
},
// default root of excheck
//default root of excheck
_initRoot = function (setting) {
var r = data.getRoot(setting);
r.radioCheckedList = [];
},
// default cache of excheck
_initCache = function (treeId) {},
// default bind event of excheck
_bindEvent = function (setting) {
//default cache of excheck
_initCache = function(treeId) {},
//default bind event of excheck
_bindEvent = function(setting) {
var o = setting.treeObj,
c = consts.event;
o.bind(c.CHECK, function (event, srcEvent, treeId, node) {
@ -75,13 +75,13 @@
tools.apply(setting.callback.onCheck, [event, treeId, node]);
});
},
_unbindEvent = function (setting) {
_unbindEvent = function(setting) {
var o = setting.treeObj,
c = consts.event;
o.unbind(c.CHECK);
},
// default event proxy of excheck
_eventProxy = function (e) {
//default event proxy of excheck
_eventProxy = function(e) {
var target = e.target,
setting = data.getSetting(e.data.treeId),
tId = "", node = null,
@ -89,22 +89,22 @@
nodeEventCallback = null, treeEventCallback = null;
if (tools.eqs(e.type, "mouseover")) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
tId = tools.getNodeMainDom(target).id;
nodeEventType = "mouseoverCheck";
}
} else if (tools.eqs(e.type, "mouseout")) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
tId = tools.getNodeMainDom(target).id;
nodeEventType = "mouseoutCheck";
}
} else if (tools.eqs(e.type, "click")) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode" + consts.id.CHECK) !== null) {
if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
tId = tools.getNodeMainDom(target).id;
nodeEventType = "checkNode";
}
}
if (tId.length > 0) {
if (tId.length>0) {
node = data.getNodeCache(setting, tId);
switch (nodeEventType) {
case "checkNode" :
@ -126,41 +126,41 @@
treeEventType: treeEventType,
treeEventCallback: treeEventCallback
};
return proxyResult;
return proxyResult
},
// default init node of excheck
_initNode = function (setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
//default init node of excheck
_initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
if (!n) return;
var checkedKey = setting.data.key.checked;
if (typeof n[checkedKey] === "string") n[checkedKey] = tools.eqs(n[checkedKey], "true");
if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true");
n[checkedKey] = !!n[checkedKey];
n.checkedOld = n[checkedKey];
if (typeof n.nocheck === "string") n.nocheck = tools.eqs(n.nocheck, "true");
if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true");
n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck);
if (typeof n.chkDisabled === "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true");
if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true");
n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled);
if (typeof n.halfCheck === "string") n.halfCheck = tools.eqs(n.halfCheck, "true");
if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true");
n.halfCheck = !!n.halfCheck;
n.check_Child_State = -1;
n.check_Focus = false;
n.getCheckStatus = function () {return data.getCheckStatus(setting, n);};
n.getCheckStatus = function() {return data.getCheckStatus(setting, n);};
if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) {
var r = data.getRoot(setting);
r.radioCheckedList.push(n);
}
},
// add dom for check
_beforeA = function (setting, node, html) {
//add dom for check
_beforeA = function(setting, node, html) {
var checkedKey = setting.data.key.checked;
if (setting.check.enable) {
data.makeChkFlag(setting, node);
html.push("<span ID='", node.tId, consts.id.CHECK, "' class='", view.makeChkClass(setting, node), "' treeNode", consts.id.CHECK, (node.nocheck === true ? " style='display:none;'" : ""), "></span>");
html.push("<span ID='", node.tId, consts.id.CHECK, "' class='", view.makeChkClass(setting, node), "' treeNode", consts.id.CHECK, (node.nocheck === true?" style='display:none;'":""),"></span>");
}
},
// update zTreeObj, add method of check
_zTreeTools = function (setting, zTreeTools) {
zTreeTools.checkNode = function (node, checked, checkTypeFlag, callbackFlag) {
//update zTreeObj, add method of check
_zTreeTools = function(setting, zTreeTools) {
zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) {
var checkedKey = this.setting.data.key.checked;
if (node.chkDisabled === true) return;
if (checked !== true && checked !== false) {
@ -183,33 +183,33 @@
this.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]);
}
}
};
}
zTreeTools.checkAllNodes = function (checked) {
zTreeTools.checkAllNodes = function(checked) {
view.repairAllChk(this.setting, !!checked);
};
}
zTreeTools.getCheckedNodes = function (checked) {
zTreeTools.getCheckedNodes = function(checked) {
var childKey = this.setting.data.key.children;
checked = (checked !== false);
return data.getTreeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey], checked);
};
}
zTreeTools.getChangeCheckedNodes = function () {
zTreeTools.getChangeCheckedNodes = function() {
var childKey = this.setting.data.key.children;
return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey]);
};
}
zTreeTools.setChkDisabled = function (node, disabled, inheritParent, inheritChildren) {
zTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) {
disabled = !!disabled;
inheritParent = !!inheritParent;
inheritChildren = !!inheritChildren;
view.repairSonChkDisabled(this.setting, node, disabled, inheritChildren);
view.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent);
};
}
var _updateNode = zTreeTools.updateNode;
zTreeTools.updateNode = function (node, checkTypeFlag) {
zTreeTools.updateNode = function(node, checkTypeFlag) {
if (_updateNode) _updateNode.apply(zTreeTools, arguments);
if (!node || !this.setting.check.enable) return;
var nObj = $$(node, this.setting);
@ -219,13 +219,13 @@
view.setChkClass(this.setting, checkObj, node);
view.repairParentChkClassWithSelf(this.setting, node);
}
};
}
},
// method of operate data
//method of operate data
_data = {
getRadioCheckedList: function (setting) {
getRadioCheckedList: function(setting) {
var checkedList = data.getRoot(setting).radioCheckedList;
for (var i = 0, j = checkedList.length; i < j; i++) {
for (var i=0, j=checkedList.length; i<j; i++) {
if(!data.getNodeCache(setting, checkedList[i].tId)) {
checkedList.splice(i, 1);
i--; j--;
@ -233,7 +233,7 @@
}
return checkedList;
},
getCheckStatus: function (setting, node) {
getCheckStatus: function(setting, node) {
if (!setting.check.enable || node.nocheck || node.chkDisabled) return null;
var checkedKey = setting.data.key.checked,
r = {
@ -242,7 +242,7 @@
};
return r;
},
getTreeCheckedNodes: function (setting, nodes, checked, results) {
getTreeCheckedNodes: function(setting, nodes, checked, results) {
if (!nodes) return [];
var childKey = setting.data.key.children,
checkedKey = setting.data.key.checked,
@ -262,7 +262,7 @@
}
return results;
},
getTreeChangeCheckedNodes: function (setting, nodes, results) {
getTreeChangeCheckedNodes: function(setting, nodes, results) {
if (!nodes) return [];
var childKey = setting.data.key.children,
checkedKey = setting.data.key.checked;
@ -275,7 +275,7 @@
}
return results;
},
makeChkFlag: function (setting, node) {
makeChkFlag: function(setting, node) {
if (!node) return;
var childKey = setting.data.key.children,
checkedKey = setting.data.key.checked,
@ -292,11 +292,11 @@
} else if (cNode[checkedKey]) {
tmp = 2;
} else {
tmp = cNode.check_Child_State > 0 ? 2 : 0;
tmp = cNode.check_Child_State > 0 ? 2:0;
}
if (tmp == 2) {
chkFlag = 2; break;
} else if (tmp == 0) {
} else if (tmp == 0){
chkFlag = 0;
}
} else if (setting.check.chkStyle == consts.checkbox.STYLE) {
@ -324,11 +324,11 @@
node.check_Child_State = chkFlag;
}
},
// method of event proxy
//method of event proxy
_event = {
},
// method of event handler
//method of event handler
_handler = {
onCheckNode: function (event, node) {
if (node.chkDisabled === true) return false;
@ -343,7 +343,7 @@
setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]);
return true;
},
onMouseoverCheck: function (event, node) {
onMouseoverCheck: function(event, node) {
if (node.chkDisabled === true) return false;
var setting = data.getSetting(event.data.treeId),
checkObj = $$(node, consts.id.CHECK, setting);
@ -351,7 +351,7 @@
view.setChkClass(setting, checkObj, node);
return true;
},
onMouseoutCheck: function (event, node) {
onMouseoutCheck: function(event, node) {
if (node.chkDisabled === true) return false;
var setting = data.getSetting(event.data.treeId),
checkObj = $$(node, consts.id.CHECK, setting);
@ -360,13 +360,13 @@
return true;
}
},
// method of tools for zTree
//method of tools for zTree
_tools = {
},
// method of operate ztree dom
//method of operate ztree dom
_view = {
checkNodeRelation: function (setting, node) {
checkNodeRelation: function(setting, node) {
var pNode, i, l,
childKey = setting.data.key.children,
checkedKey = setting.data.key.checked,
@ -375,7 +375,7 @@
var checkedList = data.getRadioCheckedList(setting);
if (node[checkedKey]) {
if (setting.check.radioType == r.TYPE_ALL) {
for (i = checkedList.length - 1; i >= 0; i--) {
for (i = checkedList.length-1; i >= 0; i--) {
pNode = checkedList[i];
if (pNode[checkedKey] && pNode != node) {
pNode[checkedKey] = false;
@ -408,10 +408,10 @@
}
} else {
if (node[checkedKey] && (!node[childKey] || node[childKey].length == 0 || setting.check.chkboxType.Y.indexOf("s") > -1)) {
if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) {
view.setSonNodeCheckBox(setting, node, true);
}
if (!node[checkedKey] && (!node[childKey] || node[childKey].length == 0 || setting.check.chkboxType.N.indexOf("s") > -1)) {
if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) {
view.setSonNodeCheckBox(setting, node, false);
}
if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) {
@ -422,7 +422,7 @@
}
}
},
makeChkClass: function (setting, node) {
makeChkClass: function(setting, node) {
var checkedKey = setting.data.key.checked,
c = consts.checkbox, r = consts.radio,
fullStyle = "";
@ -431,20 +431,20 @@
} else if (node.halfCheck) {
fullStyle = c.PART;
} else if (setting.check.chkStyle == r.STYLE) {
fullStyle = (node.check_Child_State < 1) ? c.FULL : c.PART;
fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART;
} else {
fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL : c.PART) : ((node.check_Child_State < 1) ? c.FULL : c.PART);
fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART);
}
var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle;
chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName;
return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName;
},
repairAllChk: function (setting, checked) {
repairAllChk: function(setting, checked) {
if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) {
var checkedKey = setting.data.key.checked,
childKey = setting.data.key.children,
root = data.getRoot(setting);
for (var i = 0, l = root[childKey].length; i < l; i++) {
for (var i = 0, l = root[childKey].length; i<l ; i++) {
var node = root[childKey][i];
if (node.nocheck !== true && node.chkDisabled !== true) {
node[checkedKey] = checked;
@ -453,7 +453,7 @@
}
}
},
repairChkClass: function (setting, node) {
repairChkClass: function(setting, node) {
if (!node) return;
data.makeChkFlag(setting, node);
if (node.nocheck !== true) {
@ -461,13 +461,13 @@
view.setChkClass(setting, checkObj, node);
}
},
repairParentChkClass: function (setting, node) {
repairParentChkClass: function(setting, node) {
if (!node || !node.parentTId) return;
var pNode = node.getParentNode();
view.repairChkClass(setting, pNode);
view.repairParentChkClass(setting, pNode);
},
repairParentChkClassWithSelf: function (setting, node) {
repairParentChkClassWithSelf: function(setting, node) {
if (!node) return;
var childKey = setting.data.key.children;
if (node[childKey] && node[childKey].length > 0) {
@ -476,7 +476,7 @@
view.repairParentChkClass(setting, node);
}
},
repairSonChkDisabled: function (setting, node, chkDisabled, inherit) {
repairSonChkDisabled: function(setting, node, chkDisabled, inherit) {
if (!node) return;
var childKey = setting.data.key.children;
if (node.chkDisabled != chkDisabled) {
@ -490,7 +490,7 @@
}
}
},
repairParentChkDisabled: function (setting, node, chkDisabled, inherit) {
repairParentChkDisabled: function(setting, node, chkDisabled, inherit) {
if (!node) return;
if (node.chkDisabled != chkDisabled && inherit) {
node.chkDisabled = chkDisabled;
@ -498,16 +498,16 @@
view.repairChkClass(setting, node);
view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit);
},
setChkClass: function (setting, obj, node) {
setChkClass: function(setting, obj, node) {
if (!obj) return;
if (node.nocheck === true) {
obj.hide();
} else {
obj.show();
}
obj.attr("class", view.makeChkClass(setting, node));
obj.attr('class', view.makeChkClass(setting, node));
},
setParentNodeCheckBox: function (setting, node, value, srcNode) {
setParentNodeCheckBox: function(setting, node, value, srcNode) {
var childKey = setting.data.key.children,
checkedKey = setting.data.key.checked,
checkObj = $$(node, consts.id.CHECK, setting);
@ -537,7 +537,7 @@
}
}
},
setSonNodeCheckBox: function (setting, node, value, srcNode) {
setSonNodeCheckBox: function(setting, node, value, srcNode) {
if (!node) return;
var childKey = setting.data.key.children,
checkedKey = setting.data.key.checked,
@ -600,22 +600,22 @@
data.addZTreeTools(_zTreeTools);
var _createNodes = view.createNodes;
view.createNodes = function (setting, level, nodes, parentNode) {
view.createNodes = function(setting, level, nodes, parentNode) {
if (_createNodes) _createNodes.apply(view, arguments);
if (!nodes) return;
view.repairParentChkClassWithSelf(setting, parentNode);
};
}
var _removeNode = view.removeNode;
view.removeNode = function (setting, node) {
view.removeNode = function(setting, node) {
var parentNode = node.getParentNode();
if (_removeNode) _removeNode.apply(view, arguments);
if (!node || !parentNode) return;
view.repairChkClass(setting, parentNode);
view.repairParentChkClass(setting, parentNode);
};
}
var _appendNodes = view.appendNodes;
view.appendNodes = function (setting, level, nodes, parentNode, initFlag, openFlag) {
view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) {
var html = "";
if (_appendNodes) {
html = _appendNodes.apply(view, arguments);
@ -624,5 +624,5 @@
data.makeChkFlag(setting, parentNode);
}
return html;
};
}
})(jQuery);

4
src/case/clipboard/clipboard.js

@ -403,7 +403,7 @@ try {// IE8下会抛错
function _interopRequireDefault (obj) {
return obj && obj.__esModule ? obj : {
default: obj
"default": obj
};
}
@ -637,7 +637,7 @@ try {// IE8下会抛错
function _interopRequireDefault (obj) {
return obj && obj.__esModule ? obj : {
default: obj
"default": obj
};
}

1994
src/core/jquery.js vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save