Browse Source

无JIRA任务 build一下

es6
windy 5 years ago
parent
commit
655df57e5b
  1. 209
      dist/2.0/fineui.ie.js
  2. 2
      dist/2.0/fineui.ie.js.map
  3. 72
      dist/2.0/fineui.ie.min.js
  4. 2
      dist/2.0/fineui.ie.min.js.map
  5. 209
      dist/2.0/fineui.js
  6. 2
      dist/2.0/fineui.js.map
  7. 2
      dist/2.0/fineui.min.css
  8. 66
      dist/2.0/fineui.min.js
  9. 2
      dist/2.0/fineui.min.js.map
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 29
      dist/base.js
  12. 2
      dist/base.js.map
  13. 209
      dist/bundle.ie.js
  14. 2
      dist/bundle.ie.js.map
  15. 72
      dist/bundle.ie.min.js
  16. 2
      dist/bundle.ie.min.js.map
  17. 209
      dist/bundle.js
  18. 2
      dist/bundle.js.map
  19. 2
      dist/bundle.min.css
  20. 66
      dist/bundle.min.js
  21. 2
      dist/bundle.min.js.map
  22. 45
      dist/case.js
  23. 2
      dist/case.js.map
  24. 62
      dist/core.js
  25. 2
      dist/core.js.map
  26. 2
      dist/es5.polyfill.js
  27. 2
      dist/es5.polyfill.js.map
  28. 211
      dist/fineui.ie.js
  29. 2
      dist/fineui.ie.js.map
  30. 106
      dist/fineui.ie.min.js
  31. 2
      dist/fineui.ie.min.js.map
  32. 211
      dist/fineui.js
  33. 2
      dist/fineui.js.map
  34. 2
      dist/fineui.min.css
  35. 108
      dist/fineui.min.js
  36. 2
      dist/fineui.min.js.map
  37. 195
      dist/fineui_without_jquery_polyfill.js
  38. 2
      dist/fineui_without_jquery_polyfill.js.map
  39. 2
      dist/ie.fineui.js
  40. 2
      dist/ie.fineui.js.map
  41. 2
      dist/ie.polyfill.js
  42. 2
      dist/ie.polyfill.js.map
  43. 62
      dist/utils.js
  44. 2
      dist/utils.js.map
  45. 6
      dist/utils.min.js
  46. 2
      dist/utils.min.js.map
  47. 70
      dist/widget.js
  48. 2
      dist/widget.js.map

209
dist/2.0/fineui.ie.js vendored

@ -21072,45 +21072,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}
@ -40697,7 +40701,9 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
_init: function () {
BI.ListTreeView.superclass._init.apply(this, arguments);
var o = this.options;
this.storeValue = o.value || {};
if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value);
}
},
// 配置属性
@ -43638,7 +43644,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -43700,7 +43708,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -43708,7 +43716,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -43718,8 +43726,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -43824,7 +43836,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -48148,7 +48160,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}
// attachO.fileSize = responseText.length;
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
try {
// decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
} catch (e) {
attachO.filename = handler.file.fileName;
}
if (handler.maxlength == 1) {
handler.attach_array[0] = attachO;
} else {
@ -58673,6 +58690,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -58715,32 +58737,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -58748,6 +58770,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -58959,6 +58985,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59000,28 +59031,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -69425,7 +69459,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -69623,6 +69658,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -70296,7 +70335,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -70630,7 +70669,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -70829,6 +70869,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -73642,7 +73686,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74336,7 +74383,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74931,6 +74981,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -75117,6 +75171,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -75306,6 +75364,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78355,6 +78417,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78545,6 +78611,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -82496,7 +82566,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -84884,7 +84957,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -85000,11 +85074,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -89441,6 +89528,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,
@ -91253,5 +91341,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_No_Select": "不选",
"BI-Basic_Now": "此刻"
};
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
//# sourceMappingURL=fineui.ie.js.map

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

File diff suppressed because one or more lines are too long

72
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

209
dist/2.0/fineui.js vendored

@ -21072,45 +21072,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}
@ -41090,7 +41094,9 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
_init: function () {
BI.ListTreeView.superclass._init.apply(this, arguments);
var o = this.options;
this.storeValue = o.value || {};
if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value);
}
},
// 配置属性
@ -44031,7 +44037,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -44093,7 +44101,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -44101,7 +44109,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -44111,8 +44119,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -44217,7 +44229,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -48541,7 +48553,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}
// attachO.fileSize = responseText.length;
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
try {
// decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
} catch (e) {
attachO.filename = handler.file.fileName;
}
if (handler.maxlength == 1) {
handler.attach_array[0] = attachO;
} else {
@ -59066,6 +59083,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59108,32 +59130,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -59141,6 +59163,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -59352,6 +59378,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59393,28 +59424,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -69818,7 +69852,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -70016,6 +70051,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -70689,7 +70728,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -71023,7 +71062,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -71222,6 +71262,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -74035,7 +74079,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74729,7 +74776,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -75324,6 +75374,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -75510,6 +75564,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -75699,6 +75757,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78748,6 +78810,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78938,6 +79004,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -82889,7 +82959,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -85277,7 +85350,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -85393,11 +85467,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -89834,6 +89921,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,
@ -91607,5 +91695,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_No_Select": "不选",
"BI-Basic_Now": "此刻"
};
!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=313)}({313:function(e,t,n){e.exports=n(314)},314:function(e,t,n){"use strict";n.r(t);var r={};function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}function o(){return function(e){BI.shortcut(e.xtype,e)}}function f(){return function(e){BI.model(e.xtype,e)}}function d(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=r.props?r.props.apply(this):undefined;return BI.Models.getModel(n.xtype,e)},t}(e)}}n.r(r),n.d(r,"shortcut",function(){return o}),n.d(r,"model",function(){return f}),n.d(r,"store",function(){return d}),n.d(r,"Model",function(){return l});var l=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i(u(e=o.call.apply(o,[this].concat(n))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model),p={Decorators:r};BI.extend(BI,p)}});
//# sourceMappingURL=fineui.js.map

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

66
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.min.css vendored

File diff suppressed because one or more lines are too long

29
dist/base.js vendored

@ -2652,7 +2652,9 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
_init: function () {
BI.ListTreeView.superclass._init.apply(this, arguments);
var o = this.options;
this.storeValue = o.value || {};
if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value);
}
},
// 配置属性
@ -5593,7 +5595,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -5655,7 +5659,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -5663,7 +5667,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -5673,8 +5677,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -5779,7 +5787,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -10103,7 +10111,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}
// attachO.fileSize = responseText.length;
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
try {
// decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
} catch (e) {
attachO.filename = handler.file.fileName;
}
if (handler.maxlength == 1) {
handler.attach_array[0] = attachO;
} else {

2
dist/base.js.map vendored

File diff suppressed because one or more lines are too long

209
dist/bundle.ie.js vendored

@ -21072,45 +21072,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}
@ -40697,7 +40701,9 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
_init: function () {
BI.ListTreeView.superclass._init.apply(this, arguments);
var o = this.options;
this.storeValue = o.value || {};
if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value);
}
},
// 配置属性
@ -43638,7 +43644,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -43700,7 +43708,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -43708,7 +43716,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -43718,8 +43726,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -43824,7 +43836,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -48148,7 +48160,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}
// attachO.fileSize = responseText.length;
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
try {
// decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
} catch (e) {
attachO.filename = handler.file.fileName;
}
if (handler.maxlength == 1) {
handler.attach_array[0] = attachO;
} else {
@ -58673,6 +58690,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -58715,32 +58737,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -58748,6 +58770,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -58959,6 +58985,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59000,28 +59031,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -69425,7 +69459,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -69623,6 +69658,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -70296,7 +70335,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -70630,7 +70669,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -70829,6 +70869,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -73642,7 +73686,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74336,7 +74383,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74931,6 +74981,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -75117,6 +75171,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -75306,6 +75364,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78355,6 +78417,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78545,6 +78611,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -82496,7 +82566,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -84884,7 +84957,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -85000,11 +85074,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -89441,6 +89528,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,
@ -91253,5 +91341,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_No_Select": "不选",
"BI-Basic_Now": "此刻"
};
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
//# sourceMappingURL=bundle.ie.js.map

2
dist/bundle.ie.js.map vendored

File diff suppressed because one or more lines are too long

72
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

209
dist/bundle.js vendored

@ -21072,45 +21072,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}
@ -41090,7 +41094,9 @@ BI.ListTreeView = BI.inherit(BI.TreeView, {
_init: function () {
BI.ListTreeView.superclass._init.apply(this, arguments);
var o = this.options;
this.storeValue = o.value || {};
if(BI.isNotNull(o.value)) {
this.setSelectedValue(o.value);
}
},
// 配置属性
@ -44031,7 +44037,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -44093,7 +44101,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -44101,7 +44109,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -44111,8 +44119,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -44217,7 +44229,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -48541,7 +48553,12 @@ BI.shortcut("bi.checkbox", BI.Checkbox);/**
}
// attachO.fileSize = responseText.length;
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
try {
// decodeURIComponent特殊字符可能有问题, catch一下,保证能正常上传
attachO.filename = _global.decodeURIComponent(handler.file.fileName);
} catch (e) {
attachO.filename = handler.file.fileName;
}
if (handler.maxlength == 1) {
handler.attach_array[0] = attachO;
} else {
@ -59066,6 +59083,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59108,32 +59130,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -59141,6 +59163,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -59352,6 +59378,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -59393,28 +59424,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -69818,7 +69852,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -70016,6 +70051,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -70689,7 +70728,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -71023,7 +71062,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -71222,6 +71262,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -74035,7 +74079,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -74729,7 +74776,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -75324,6 +75374,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -75510,6 +75564,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -75699,6 +75757,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78748,6 +78810,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -78938,6 +79004,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -82889,7 +82959,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -85277,7 +85350,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -85393,11 +85467,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -89834,6 +89921,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,
@ -91607,5 +91695,4 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
"BI-Basic_No_Select": "不选",
"BI-Basic_Now": "此刻"
};
!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=313)}({313:function(e,t,n){e.exports=n(314)},314:function(e,t,n){"use strict";n.r(t);var r={};function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}function o(){return function(e){BI.shortcut(e.xtype,e)}}function f(){return function(e){BI.model(e.xtype,e)}}function d(n){var r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=r.props?r.props.apply(this):undefined;return BI.Models.getModel(n.xtype,e)},t}(e)}}n.r(r),n.d(r,"shortcut",function(){return o}),n.d(r,"model",function(){return f}),n.d(r,"store",function(){return d}),n.d(r,"Model",function(){return l});var l=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return i(u(e=o.call.apply(o,[this].concat(n))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model),p={Decorators:r};BI.extend(BI,p)}});
//# sourceMappingURL=bundle.js.map

2
dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

66
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

45
dist/case.js vendored

@ -6306,6 +6306,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -6348,32 +6353,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -6381,6 +6386,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -6592,6 +6601,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -6633,28 +6647,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";

2
dist/case.js.map vendored

File diff suppressed because one or more lines are too long

62
dist/core.js vendored

@ -21072,45 +21072,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

211
dist/fineui.ie.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

106
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

211
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

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

108
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

195
dist/fineui_without_jquery_polyfill.js vendored

@ -20818,45 +20818,49 @@ _.extend(BI, {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}
@ -31355,7 +31359,9 @@ BI.shortcut("bi.el", BI.EL);/**
*/
BI.Msg = function () {
var messageShow, $mask, $pop;
var $mask, $pop;
var messageShows = [];
var toastStack = [];
@ -31417,7 +31423,7 @@ BI.Msg = function () {
}, 5000);
},
_show: function (hasCancel, title, message, callback) {
$mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
BI.isNull($mask) && ($mask = BI.Widget._renderEngine.createElement("<div class=\"bi-z-index-mask\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 2,
top: 0,
@ -31425,7 +31431,7 @@ BI.Msg = function () {
right: 0,
bottom: 0,
opacity: 0.5
}).appendTo("body");
}).appendTo("body"));
$pop = BI.Widget._renderEngine.createElement("<div class=\"bi-message-depend\">").css({
position: "absolute",
zIndex: BI.zIndex_tip - 1,
@ -31435,8 +31441,12 @@ BI.Msg = function () {
bottom: 0
}).appendTo("body");
var close = function () {
messageShow.destroy();
$mask.remove();
messageShows[messageShows.length - 1].destroy();
messageShows.pop();
if (messageShows.length === 0) {
$mask.remove();
$mask = null;
}
};
var controlItems = [];
if (hasCancel === true) {
@ -31541,7 +31551,7 @@ BI.Msg = function () {
]
};
messageShow = BI.createWidget(conf);
messageShows[messageShows.length] = BI.createWidget(conf);
}
};
}();/**
@ -41727,6 +41737,11 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -41769,32 +41784,32 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.stateValue = v;
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Select_All"));
this._setText(BI.i18nText("BI-Select_All"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
}
return;
}
if (BI.isString(v)) {
this.text.setText(v);
this._setText(v);
// 配置了defaultText才判断标灰,其他情况不标灰
(BI.isKey(o.defaultText) && o.defaultText === v) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
return;
}
if (BI.isArray(v)) {
if (BI.isEmpty(v)) {
this.text.setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
this._setText(BI.isKey(o.defaultText) ? o.defaultText : o.text);
BI.isKey(o.defaultText) ? this.text.element.addClass("bi-water-mark") : this.text.element.removeClass("bi-water-mark");
} else if (v.length === 1) {
this.text.setText(v[0]);
this._setText(v[0]);
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Select_Part"));
this._setText(BI.i18nText("BI-Select_Part"));
this.text.element.removeClass("bi-water-mark");
}
}
@ -41802,6 +41817,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
setTipType: function (v) {
this.text.options.tipType = v;
},
getText: function () {
return this.text.getText();
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -42013,6 +42032,11 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
this.text.visible();
},
_setText: function (v) {
this.text.setText(v);
this.text.setTitle(v);
},
isValid: function () {
return this.editor.isValid();
},
@ -42054,28 +42078,31 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
BI.SimpleStateEditor.superclass.setValue.apply(this, arguments);
if (BI.isNumber(v)) {
if (v === BI.Selection.All) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else if (v === BI.Selection.Multi) {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
} else {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
}
return;
}
if (!BI.isArray(v) || v.length === 1) {
this.text.setText(v);
this.text.setTitle(v);
this._setText(v);
this.text.element.removeClass("bi-water-mark");
} else if (BI.isEmpty(v)) {
this.text.setText(o.text);
this._setText(o.text);
this.text.element.addClass("bi-water-mark");
} else {
this.text.setText(BI.i18nText("BI-Already_Selected"));
this._setText(BI.i18nText("BI-Already_Selected"));
this.text.element.removeClass("bi-water-mark");
}
},
getText: function () {
return this.text.getText();
}
});
BI.SimpleStateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -52203,7 +52230,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -52401,6 +52429,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -53074,7 +53106,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -53408,7 +53440,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -53607,6 +53640,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -56420,7 +56457,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -57114,7 +57154,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -57709,6 +57752,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -57895,6 +57942,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -58084,6 +58135,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -61133,6 +61188,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -61323,6 +61382,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -65274,7 +65337,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -67662,7 +67728,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -67778,11 +67845,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -72219,6 +72299,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.fineui.js vendored

@ -1 +1 @@
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{"default":e};var t=c();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});
!function(r){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141)}({141:function(e,t,r){e.exports=r(142)},142:function(e,t,r){"use strict";var n=function o(e){return e&&e.__esModule?e:{"default":e}}(r(143));BI.extend(BI,n["default"])},143:function(e,t,r){"use strict";function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var n={Decorators:function c(e){if(e&&e.__esModule)return e;var t=i();if(t&&t.has(e))return t.get(e);var r={};if(null!=e){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var u=n?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}}r["default"]=e,t&&t.set(e,r);return r}(r(144))};t["default"]=n},144:function(e,t,r){"use strict";function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){e.prototype=Object.create(t.prototype),function i(e,t){for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n],u=Object.getOwnPropertyDescriptor(t,o);u&&u.configurable&&e[o]===undefined&&Object.defineProperty(e,o,u)}return e}(e.prototype.constructor=e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.shortcut=function o(){return function(e){BI.shortcut(e.xtype,e)}},t.model=function f(){return function(e){BI.model(e.xtype,e)}},t.store=function l(r){var n=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return function(e){return function(e){function t(){return e.apply(this,arguments)||this}return c(t,e),t.prototype._store=function(){var e=n.props?n.props.apply(this):undefined;return BI.Models.getModel(r.xtype,e)},t}(e)}},t.Model=void 0;var n=function(o){function e(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i(u(e=o.call.apply(o,[this].concat(r))||this),"model",void 0),i(u(e),"store",void 0),i(u(e),"context",void 0),i(u(e),"actions",void 0),i(u(e),"childContext",void 0),i(u(e),"TYPE",void 0),i(u(e),"computed",void 0),e}return c(e,o),e.prototype.state=function(){return{}},e}(Fix.Model);t.Model=n}});

2
dist/ie.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

62
dist/utils.js vendored

@ -13568,45 +13568,49 @@ if (!_global.BI) {
}
};
var callPoint = function (inst, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
var callPoint = function (inst, types) {
types = BI.isArray(types) ? types : [types];
BI.each(types, function (idx, type) {
if (points[type]) {
for (var action in points[type]) {
var bfns = points[type][action].before;
if (bfns) {
BI.aspect.before(inst, action, function (bfns) {
return function () {
for (var i = 0, len = bfns.length; i < len; i++) {
try {
bfns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
};
}(bfns));
}
var afns = points[type][action].after;
if (afns) {
BI.aspect.after(inst, action, function (afns) {
return function () {
for (var i = 0, len = afns.length; i < len; i++) {
try {
afns[i].apply(inst, arguments);
} catch (e) {
_global.console && console.error(e);
}
}
}
};
}(afns));
};
}(afns));
}
}
}
}
});
};
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
inst.mixins && callPoint(inst, inst.mixins);
callPoint(inst, type);
return inst;
}

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

6
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

70
dist/widget.js vendored

@ -7200,7 +7200,8 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -7398,6 +7399,10 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
return o.valueFormatter(v);
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -8071,7 +8076,7 @@ BI.MultiLayerSingleTreeInsertSearchPane = BI.inherit(BI.Widget, {
render: function() {
var self = this, o = this.options;
this.tree = BI.createWidget({
type: "bi.multilayer_select_level_tree",
type: "bi.multilayer_single_level_tree",
isDefaultInit: o.isDefaultInit,
items: o.items,
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) {
@ -8405,7 +8410,8 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search"),
allowSearchValue: false
allowSearchValue: false,
title: BI.bind(this._getShowText, this)
};
},
@ -8604,6 +8610,10 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
},
_getShowText: function () {
return this.editor.getText();
},
stopEditing: function () {
this.searcher.stopSearch();
},
@ -11417,7 +11427,10 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -12111,7 +12124,10 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -12706,6 +12722,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
},
getState: function () {
return this.editor.getText();
},
getKeywords: function () {
var val = this.editor.getLastChangedValue();
var keywords = val.match(/[\S]+/g);
@ -12892,6 +12912,10 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -13081,6 +13105,10 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -16130,6 +16158,10 @@ BI.MultiListTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -16320,6 +16352,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
}
},
getState: function() {
return this.editor.getState();
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -20271,7 +20307,10 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
element: this,
items: [{
el: {
type: "bi.layout"
type: "bi.text",
title: function () {
return self.searcher.getState();
}
},
left: 0,
right: 24,
@ -22659,7 +22698,8 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
"%H:%M", // HH:mm
"%M:%S" // mm:ss
],
DEFAULT_DATE_STRING: "2000-01-01"
DEFAULT_DATE_STRING: "2000-01-01",
DEFAULT_HOUR: "00"
},
props: {
@ -22775,11 +22815,24 @@ BI.shortcut("bi.down_list_select_text_trigger", BI.DownListSelectTextTrigger);!(
_dateCheck: function (date) {
var c = this._const;
var self = this;
return BI.any(c.FORMAT_ARRAY, function (idx, format) {
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + date, c.COMPLETE_COMPARE_FORMAT), format) === date;
return BI.print(BI.parseDateTime(c.DEFAULT_DATE_STRING + " " + self._getCompleteHMS(date, format), c.COMPLETE_COMPARE_FORMAT), format) === date;
});
},
_getCompleteHMS: function (str, format) {
var c = this._const;
switch (format) {
case "%M:%S":
str = c.DEFAULT_HOUR + ":" + str;
break;
default:
break;
}
return str;
},
_getTitle: function () {
var storeValue = this.storeValue || {};
var date = BI.getDate();
@ -27216,6 +27269,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
allNodes = BI.concat(allNodes, self._getAllChildren(parentValues.concat([node.value])));
});
BI.each(allNodes, function (idx, node) {
var valueMap = dealWithSelectedValue(node.parentValues, selectedValues);
var checked = BI.has(valueMap, node.value);
result.push({
id: node.id,

2
dist/widget.js.map vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save