|
|
@ -10156,10 +10156,18 @@ if (!_global.BI) { |
|
|
|
} |
|
|
|
} |
|
|
|
var len = arguments.length; |
|
|
|
var len = arguments.length; |
|
|
|
if (len > 1) { |
|
|
|
if (len > 1) { |
|
|
|
|
|
|
|
if (localeText.indexOf("{R1}") > -1) { |
|
|
|
for (var i = 1; i < len; i++) { |
|
|
|
for (var i = 1; i < len; i++) { |
|
|
|
var key = "{R" + i + "}"; |
|
|
|
var key = "{R" + i + "}"; |
|
|
|
localeText = BI.replaceAll(localeText, key, arguments[i] + ""); |
|
|
|
localeText = BI.replaceAll(localeText, key, arguments[i] + ""); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
|
|
|
|
var count = 1; |
|
|
|
|
|
|
|
return BI.replaceAll(localeText, "\\{\\s*\\}", function () { |
|
|
|
|
|
|
|
return args[count++] + ""; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return localeText; |
|
|
|
return localeText; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -10801,7 +10809,7 @@ if (!_global.BI) { |
|
|
|
var pending = false; |
|
|
|
var pending = false; |
|
|
|
var timerFunc; |
|
|
|
var timerFunc; |
|
|
|
|
|
|
|
|
|
|
|
function nextTickHandler () { |
|
|
|
function nextTickHandler() { |
|
|
|
pending = false; |
|
|
|
pending = false; |
|
|
|
var copies = callbacks.slice(0); |
|
|
|
var copies = callbacks.slice(0); |
|
|
|
callbacks = []; |
|
|
|
callbacks = []; |
|
|
@ -10834,7 +10842,7 @@ if (!_global.BI) { |
|
|
|
setTimeout(nextTickHandler, 0); |
|
|
|
setTimeout(nextTickHandler, 0); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
return function queueNextTick (cb) { |
|
|
|
return function queueNextTick(cb) { |
|
|
|
var _resolve; |
|
|
|
var _resolve; |
|
|
|
var args = [].slice.call(arguments, 1); |
|
|
|
var args = [].slice.call(arguments, 1); |
|
|
|
callbacks.push(function () { |
|
|
|
callbacks.push(function () { |
|
|
@ -34221,7 +34229,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; |
|
|
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; |
|
|
|
|
|
|
|
|
|
|
|
var model = vm; |
|
|
|
var model = vm; |
|
|
|
if (!model.addWatch && model.$vm) { |
|
|
|
if (!model.$watch && model.$vm) { |
|
|
|
model = model.$vm; |
|
|
|
model = model.$vm; |
|
|
|
} |
|
|
|
} |
|
|
|
if (isPlainObject(cb)) { |
|
|
|
if (isPlainObject(cb)) { |
|
|
@ -34235,7 +34243,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
options.user = true; |
|
|
|
options.user = true; |
|
|
|
var exps = void 0; |
|
|
|
var exps = void 0; |
|
|
|
if (_$1.isFunction(expOrFn) || !(exps = expOrFn.match(/[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g)) || exps.length === 1 && !/\*/.test(expOrFn)) { |
|
|
|
if (_$1.isFunction(expOrFn) || !(exps = expOrFn.match(/[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g)) || exps.length === 1 && !/\*/.test(expOrFn)) { |
|
|
|
model.addWatch(expOrFn, cb, options); |
|
|
|
model.$watch(expOrFn, cb, options); |
|
|
|
|
|
|
|
|
|
|
|
return []; |
|
|
|
return []; |
|
|
|
} |
|
|
|
} |
|
|
@ -34290,7 +34298,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
|
}; |
|
|
|
}; |
|
|
|
model.addWatch(getter, function (newValue, oldValue, attrs) { |
|
|
|
model.$watch(getter, function (newValue, oldValue, attrs) { |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
}, _$1.extend(options, { |
|
|
|
}, _$1.extend(options, { |
|
|
|
deep: isGlobal |
|
|
|
deep: isGlobal |
|
|
@ -34334,13 +34342,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
|
|
|
|
|
|
|
|
return currentModels; |
|
|
|
return currentModels; |
|
|
|
}; |
|
|
|
}; |
|
|
|
model.addWatch(_getter, function (newValue, oldValue, attrs) { |
|
|
|
model.$watch(_getter, function (newValue, oldValue, attrs) { |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
}, options); |
|
|
|
}, options); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
model.addWatch(exp, function (newValue, oldValue, attrs) { |
|
|
|
model.$watch(exp, function (newValue, oldValue, attrs) { |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
callback(i, newValue, oldValue, _$1.extend({ index: i }, attrs)); |
|
|
|
}, options); |
|
|
|
}, options); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -34472,7 +34480,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
var allModelInstances = {}; |
|
|
|
var allModelInstances = {}; |
|
|
|
var emptyFn = function emptyFn() {}; |
|
|
|
var emptyFn = function emptyFn() {}; |
|
|
|
|
|
|
|
|
|
|
|
var Watcher = function Watcher(_ref) { |
|
|
|
var Watcher = function () { |
|
|
|
|
|
|
|
function Watcher(_ref) { |
|
|
|
var get = _ref.get, |
|
|
|
var get = _ref.get, |
|
|
|
last = _ref.last, |
|
|
|
last = _ref.last, |
|
|
|
listener = _ref.listener, |
|
|
|
listener = _ref.listener, |
|
|
@ -34491,8 +34500,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
last: this.last, |
|
|
|
last: this.last, |
|
|
|
listener: this.listener |
|
|
|
listener: this.listener |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 不要去掉,为了兼容IE8,IE8下instance of Constructor如果不绑定函数会出错
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Watcher.prototype.getInstance = function getInstance() { |
|
|
|
|
|
|
|
return this; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Watcher; |
|
|
|
|
|
|
|
}(); |
|
|
|
|
|
|
|
|
|
|
|
function initState(vm, state) { |
|
|
|
function initState(vm, state) { |
|
|
|
var watchers = vm._stateWatchers = {}; |
|
|
|
var watchers = vm._stateWatchers = {}; |
|
|
|
for (var key in state) { |
|
|
|
for (var key in state) { |
|
|
@ -34613,7 +34632,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
var p = vm._parent; |
|
|
|
var p = vm._parent; |
|
|
|
while (p) { |
|
|
|
while (p) { |
|
|
|
if (p.childContext && p.childContext.indexOf(key) > -1) { |
|
|
|
if (p.childContext && p.childContext.indexOf(key) > -1) { |
|
|
|
p.addWatch(key, function (cur, last, p) { |
|
|
|
p.$watch(key, function (cur, last, p) { |
|
|
|
if (!vm.alive) return; |
|
|
|
if (!vm.alive) return; |
|
|
|
vm.model[key] = cur; |
|
|
|
vm.model[key] = cur; |
|
|
|
vm._contextWatchers[key].last = cloneShadow(cur); // 避免重复调用(可以改成给watch添加一个参数保证下次比较一定相同)
|
|
|
|
vm._contextWatchers[key].last = cloneShadow(cur); // 避免重复调用(可以改成给watch添加一个参数保证下次比较一定相同)
|
|
|
@ -34734,6 +34753,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
var watchers = [].concat(vm._watchers); |
|
|
|
var watchers = [].concat(vm._watchers); |
|
|
|
|
|
|
|
|
|
|
|
_$1.each(watchers, function (watcher) { |
|
|
|
_$1.each(watchers, function (watcher) { |
|
|
|
|
|
|
|
if (!watcher) return; |
|
|
|
var cur = watcher.get(); |
|
|
|
var cur = watcher.get(); |
|
|
|
var last = watcher.last; |
|
|
|
var last = watcher.last; |
|
|
|
|
|
|
|
|
|
|
@ -34801,7 +34821,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons |
|
|
|
|
|
|
|
|
|
|
|
Model.prototype._init = function _init() {}; |
|
|
|
Model.prototype._init = function _init() {}; |
|
|
|
|
|
|
|
|
|
|
|
Model.prototype.addWatch = function addWatch(expOrFn, cb, options) { |
|
|
|
Model.prototype.$watch = function $watch(expOrFn, cb, options) { |
|
|
|
var watcher = createWatcher(this, expOrFn, cb, options); |
|
|
|
var watcher = createWatcher(this, expOrFn, cb, options); |
|
|
|
this._watchers.push(watcher); |
|
|
|
this._watchers.push(watcher); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -36815,6 +36835,7 @@ BI.TreeView = BI.inherit(BI.Pane, { |
|
|
|
var ns = BI.Tree.arrayFormat(nodes); |
|
|
|
var ns = BI.Tree.arrayFormat(nodes); |
|
|
|
BI.each(ns, function (i, n) { |
|
|
|
BI.each(ns, function (i, n) { |
|
|
|
n.title = n.title || n.text || n.value; |
|
|
|
n.title = n.title || n.text || n.value; |
|
|
|
|
|
|
|
n.isParent = n.isParent || n.parent; |
|
|
|
// 处理标红
|
|
|
|
// 处理标红
|
|
|
|
if (BI.isKey(o.paras.keyword)) { |
|
|
|
if (BI.isKey(o.paras.keyword)) { |
|
|
|
n.text = $("<div>").__textKeywordMarked__(n.text, o.paras.keyword, n.py).html(); |
|
|
|
n.text = $("<div>").__textKeywordMarked__(n.text, o.paras.keyword, n.py).html(); |
|
|
@ -52845,7 +52866,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWrapperWidth: o.iconWrapperWidth |
|
|
|
iconWrapperWidth: o.iconWrapperWidth, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
type: "bi.icon_text_value_combo_popup", |
|
|
|
type: "bi.icon_text_value_combo_popup", |
|
|
@ -52886,8 +52908,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
return BI.contains(v, item.value); |
|
|
|
return BI.contains(v, item.value); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isNull(result)) { |
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
this.trigger.options.tipType = "warning"; |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
this.trigger.options.tipType = "success"; |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -52910,7 +52934,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IconTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.IconTextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.icon_text_value_combo", BI.IconTextValueCombo);/** |
|
|
|
BI.shortcut("bi.icon_text_value_combo", BI.IconTextValueCombo); |
|
|
|
|
|
|
|
/** |
|
|
|
* Created by Windy on 2017/12/12. |
|
|
|
* Created by Windy on 2017/12/12. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
|
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
@ -53548,7 +53573,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value |
|
|
|
value: o.value, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
this.popup = BI.createWidget({ |
|
|
|
type: "bi.text_value_combo_popup", |
|
|
|
type: "bi.text_value_combo_popup", |
|
|
@ -53587,8 +53613,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
return BI.contains(v, item.value); |
|
|
|
return BI.contains(v, item.value); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isNull(result)) { |
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
this.trigger.setTipType("warning"); |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error").addClass("combo-error"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
this.trigger.setTipType("success"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -53611,7 +53639,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);/** |
|
|
|
BI.shortcut("bi.text_value_combo", BI.TextValueCombo); |
|
|
|
|
|
|
|
/** |
|
|
|
* @class BI.SmallTextValueCombo |
|
|
|
* @class BI.SmallTextValueCombo |
|
|
|
* @extend BI.Widget |
|
|
|
* @extend BI.Widget |
|
|
|
* combo : text + icon, popup : text |
|
|
|
* combo : text + icon, popup : text |
|
|
@ -54643,7 +54672,9 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
title = self.stateValue[0]; |
|
|
|
title = self.stateValue[0]; |
|
|
|
} |
|
|
|
} |
|
|
|
return title; |
|
|
|
return title; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
|
|
|
|
tipType: o.tipType |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.text.on(BI.TextButton.EVENT_CHANGE, function () { |
|
|
|
this.text.on(BI.TextButton.EVENT_CHANGE, function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
@ -54833,6 +54864,10 @@ BI.StateEditor = BI.inherit(BI.Widget, { |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
this.text.element.removeClass("state-editor-infinite-text"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.text.options.tipType = v; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
@ -54853,7 +54888,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT"; |
|
|
|
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE"; |
|
|
|
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE"; |
|
|
|
BI.StateEditor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
BI.StateEditor.EVENT_EMPTY = "EVENT_EMPTY"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.state_editor", BI.StateEditor);/** |
|
|
|
BI.shortcut("bi.state_editor", BI.StateEditor); |
|
|
|
|
|
|
|
/** |
|
|
|
* 无限制-已选择状态输入框 |
|
|
|
* 无限制-已选择状态输入框 |
|
|
|
* Created by GUY on 2016/5/18. |
|
|
|
* Created by GUY on 2016/5/18. |
|
|
|
* @class BI.SimpleStateEditor |
|
|
|
* @class BI.SimpleStateEditor |
|
|
@ -57892,6 +57928,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
title: function () { |
|
|
|
title: function () { |
|
|
|
return self.text.getText(); |
|
|
|
return self.text.getText(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
hgap: c.hgap, |
|
|
|
hgap: c.hgap, |
|
|
|
readonly: o.readonly |
|
|
|
readonly: o.readonly |
|
|
|
}); |
|
|
|
}); |
|
|
@ -57916,9 +57954,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
setText: function (text) { |
|
|
|
setText: function (text) { |
|
|
|
this.text.setText(text); |
|
|
|
this.text.setText(text); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.text.options.tipType = v; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger);/** |
|
|
|
BI.shortcut("bi.text_trigger", BI.TextTrigger); |
|
|
|
|
|
|
|
/** |
|
|
|
* 选择字段trigger |
|
|
|
* 选择字段trigger |
|
|
|
* |
|
|
|
* |
|
|
|
* Created by GUY on 2015/9/15. |
|
|
|
* Created by GUY on 2015/9/15. |
|
|
@ -57943,7 +57986,9 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
readonly: o.readonly, |
|
|
|
readonly: o.readonly, |
|
|
|
text: this._digest(o.value, o.items) |
|
|
|
text: this._digest(o.value, o.items), |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -57969,11 +58014,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
this.trigger.setText(this._digest(vals, this.options.items)); |
|
|
|
this.trigger.setText(this._digest(vals, this.options.items)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.trigger.setTipType(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/** |
|
|
|
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger); |
|
|
|
|
|
|
|
/** |
|
|
|
* 选择字段trigger小一号的 |
|
|
|
* 选择字段trigger小一号的 |
|
|
|
* |
|
|
|
* |
|
|
|
* @class BI.SmallSelectTextTrigger |
|
|
|
* @class BI.SmallSelectTextTrigger |
|
|
@ -69039,7 +69089,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
allowBlank: true, |
|
|
|
allowBlank: true, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
text: o.text |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
@ -69070,6 +69122,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
this.editor.setValue(v); |
|
|
|
this.editor.setValue(v); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.editor.setTipType(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
var v = this.editor.getState(); |
|
|
|
var v = this.editor.getState(); |
|
|
|
if (BI.isArray(v) && v.length > 0) { |
|
|
|
if (BI.isArray(v) && v.length > 0) { |
|
|
@ -69093,7 +69149,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE"; |
|
|
|
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE"; |
|
|
|
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/** |
|
|
|
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor); |
|
|
|
|
|
|
|
/** |
|
|
|
* searcher |
|
|
|
* searcher |
|
|
|
* Created by guy on 15/11/3. |
|
|
|
* Created by guy on 15/11/3. |
|
|
|
* @class BI.MultiSelectInsertSearcher |
|
|
|
* @class BI.MultiSelectInsertSearcher |
|
|
@ -72576,7 +72633,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { |
|
|
|
callback.apply(self, arguments); |
|
|
|
callback.apply(self, arguments); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: this.storeValue |
|
|
|
value: this.storeValue, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () { |
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () { |
|
|
@ -72950,12 +73008,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { |
|
|
|
return !BI.contains(v, value); |
|
|
|
return !BI.contains(v, value); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (BI.isNull(result)) { |
|
|
|
if (BI.isNull(result)) { |
|
|
|
|
|
|
|
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success")); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning")); |
|
|
|
this.element.addClass("combo-error"); |
|
|
|
this.element.addClass("combo-error"); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
v.length === this.allValue.length ? this.element.removeClass("combo-error") : this.element.addClass("combo-error"); |
|
|
|
if(v.length === this.allValue.length){ |
|
|
|
|
|
|
|
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success")); |
|
|
|
|
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning")); |
|
|
|
|
|
|
|
this.element.addClass("combo-error"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -73034,7 +73100,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
adapter: o.adapter, |
|
|
|
adapter: o.adapter, |
|
|
|
masker: o.masker, |
|
|
|
masker: o.masker, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
text: o.text |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () { |
|
|
|
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () { |
|
|
|
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START); |
|
|
|
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START); |
|
|
@ -73127,6 +73195,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
this.numberCounter.setValue(ob); |
|
|
|
this.numberCounter.setValue(ob); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.searcher.setTipType(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getKey: function () { |
|
|
|
getKey: function () { |
|
|
|
return this.searcher.getKey(); |
|
|
|
return this.searcher.getKey(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -73145,7 +73217,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = "EVENT_BEFORE_COUNTER_POPUPVIEW"; |
|
|
|
BI.SearchMultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW = "EVENT_BEFORE_COUNTER_POPUPVIEW"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.search_multi_select_trigger", BI.SearchMultiSelectTrigger);/** |
|
|
|
BI.shortcut("bi.search_multi_select_trigger", BI.SearchMultiSelectTrigger); |
|
|
|
|
|
|
|
/** |
|
|
|
* 多选加载数据面板 |
|
|
|
* 多选加载数据面板 |
|
|
|
* Created by guy on 15/11/2. |
|
|
|
* Created by guy on 15/11/2. |
|
|
|
* @class BI.SearchMultiSelectLoader |
|
|
|
* @class BI.SearchMultiSelectLoader |
|
|
@ -73426,7 +73499,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView); |
|
|
|
this.editor = BI.createWidget(o.el, { |
|
|
|
this.editor = BI.createWidget(o.el, { |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
type: "bi.multi_select_editor", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
text: o.text |
|
|
|
text: o.text, |
|
|
|
|
|
|
|
tipType: o.tipType, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.searcher = BI.createWidget({ |
|
|
|
this.searcher = BI.createWidget({ |
|
|
@ -73551,6 +73626,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTipType: function (v) { |
|
|
|
|
|
|
|
this.editor.setTipType(v); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (ob) { |
|
|
|
setValue: function (ob) { |
|
|
|
this.setState(ob); |
|
|
|
this.setState(ob); |
|
|
|
this.searcher.setValue(ob); |
|
|
|
this.searcher.setValue(ob); |
|
|
@ -73575,7 +73654,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.SearchMultiSelectSearcher.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.shortcut("bi.search_multi_select_searcher", BI.SearchMultiSelectSearcher);/** |
|
|
|
BI.shortcut("bi.search_multi_select_searcher", BI.SearchMultiSelectSearcher); |
|
|
|
|
|
|
|
/** |
|
|
|
* 加号表示的组节点 |
|
|
|
* 加号表示的组节点 |
|
|
|
* Created by GUY on 2015/9/6. |
|
|
|
* Created by GUY on 2015/9/6. |
|
|
|
* @class BI.SelectTreeFirstPlusGroupNode |
|
|
|
* @class BI.SelectTreeFirstPlusGroupNode |
|
|
@ -80454,6 +80534,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult |
|
|
|
value: value, |
|
|
|
value: value, |
|
|
|
numOfPage: 100, |
|
|
|
numOfPage: 100, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
|
|
|
warningTitle: o.warningTitle, |
|
|
|
listeners: [{ |
|
|
|
listeners: [{ |
|
|
|
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM, |
|
|
|
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|