|
|
@ -52845,7 +52845,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 +52887,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 +52913,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, { |
|
|
@ -54647,7 +54651,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 () { |
|
|
@ -54837,6 +54843,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"; |
|
|
@ -54857,7 +54867,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 |
|
|
@ -69057,7 +69068,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 () { |
|
|
@ -69088,6 +69101,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) { |
|
|
@ -69111,7 +69128,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 |
|
|
@ -72594,7 +72612,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 () { |
|
|
@ -72968,12 +72987,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("warning")); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
this.element.removeClass("combo-error"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success")); |
|
|
|
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"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -73052,7 +73079,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); |
|
|
@ -73145,6 +73174,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(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -73163,7 +73196,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 |
|
|
@ -73444,7 +73478,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({ |
|
|
@ -73569,6 +73605,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); |
|
|
@ -73593,7 +73633,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 |
|
|
@ -80472,6 +80513,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 () { |
|
|
|