Browse Source

combo支持warningTitle

master
MrErHu 6 years ago
parent
commit
00102332e8
  1. 66
      dist/bundle.ie.js
  2. 38
      dist/bundle.ie.min.js
  3. 66
      dist/bundle.js
  4. 36
      dist/bundle.min.js
  5. 19
      dist/case.js
  6. 66
      dist/fineui.ie.js
  7. 38
      dist/fineui.ie.min.js
  8. 66
      dist/fineui.js
  9. 36
      dist/fineui.min.js
  10. 66
      dist/fineui_without_jquery_polyfill.js
  11. 2
      dist/utils.min.js
  12. 47
      dist/widget.js
  13. 5
      src/case/combo/icontextvaluecombo/combo.icontextvalue.js
  14. 8
      src/case/editor/editor.state.js
  15. 1
      src/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.js
  16. 8
      src/widget/multiselect/trigger/editor.multiselect.js
  17. 13
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js
  18. 8
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.trigger.search.js
  19. 8
      src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js

66
dist/bundle.ie.js vendored

@ -52845,7 +52845,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -52886,8 +52887,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -52910,7 +52913,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -54647,7 +54651,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -54837,6 +54843,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
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_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.state_editor", BI.StateEditor);/**
BI.shortcut("bi.state_editor", BI.StateEditor);
/**
* 无限制-已选择状态输入框
* Created by GUY on 2016/5/18.
* @class BI.SimpleStateEditor
@ -69057,7 +69068,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -69088,6 +69101,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
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.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -72594,7 +72612,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -72968,12 +72987,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -73145,6 +73174,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73163,7 +73196,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -73444,7 +73478,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
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) {
this.setState(ob);
this.searcher.setValue(ob);
@ -73593,7 +73633,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -80472,6 +80513,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

38
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

66
dist/bundle.js vendored

@ -53396,7 +53396,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -53437,8 +53438,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -53461,7 +53464,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -55198,7 +55202,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -55388,6 +55394,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -55408,7 +55418,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE";
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.
* @class BI.SimpleStateEditor
@ -69608,7 +69619,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -69639,6 +69652,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {
@ -69662,7 +69679,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
}
});
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE";
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -73145,7 +73163,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -73519,12 +73538,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},
@ -73603,7 +73630,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -73696,6 +73725,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73714,7 +73747,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -73995,7 +74029,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -74120,6 +74156,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -74144,7 +74184,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -81023,6 +81064,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

36
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

19
dist/case.js vendored

@ -4543,7 +4543,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -4584,8 +4585,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -4608,7 +4611,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -6345,7 +6349,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -6535,6 +6541,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -6555,7 +6565,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE";
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.
* @class BI.SimpleStateEditor

66
dist/fineui.ie.js vendored

@ -53087,7 +53087,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -53128,8 +53129,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -53152,7 +53155,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -54889,7 +54893,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -55079,6 +55085,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -55099,7 +55109,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE";
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.
* @class BI.SimpleStateEditor
@ -69299,7 +69310,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -69330,6 +69343,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {
@ -69353,7 +69370,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
}
});
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE";
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -72836,7 +72854,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -73210,12 +73229,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},
@ -73294,7 +73321,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -73387,6 +73416,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73405,7 +73438,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -73686,7 +73720,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -73811,6 +73847,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -73835,7 +73875,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -80714,6 +80755,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

38
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

66
dist/fineui.js vendored

@ -53638,7 +53638,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -53679,8 +53680,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -53703,7 +53706,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -55440,7 +55444,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -55630,6 +55636,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -55650,7 +55660,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE";
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.
* @class BI.SimpleStateEditor
@ -69850,7 +69861,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -69881,6 +69894,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {
@ -69904,7 +69921,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
}
});
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE";
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -73387,7 +73405,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -73761,12 +73780,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},
@ -73845,7 +73872,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -73938,6 +73967,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73956,7 +73989,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -74237,7 +74271,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -74362,6 +74398,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -74386,7 +74426,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -81265,6 +81306,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

36
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

66
dist/fineui_without_jquery_polyfill.js vendored

@ -36720,7 +36720,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -36761,8 +36762,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}
@ -36785,7 +36788,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
}
});
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.
*/
BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
@ -38522,7 +38526,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -38712,6 +38718,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";
@ -38732,7 +38742,8 @@ BI.StateEditor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.StateEditor.EVENT_SPACE = "EVENT_SPACE";
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.
* @class BI.SimpleStateEditor
@ -52734,7 +52745,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -52765,6 +52778,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {
@ -52788,7 +52805,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
}
});
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE";
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -56271,7 +56289,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -56645,12 +56664,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},
@ -56729,7 +56756,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -56822,6 +56851,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -56840,7 +56873,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -57121,7 +57155,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -57246,6 +57282,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -57270,7 +57310,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -64149,6 +64190,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

47
dist/widget.js vendored

@ -10945,7 +10945,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -10976,6 +10978,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {
@ -10999,7 +11005,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
}
});
BI.MultiSelectEditor.EVENT_PAUSE = "MultiSelectEditor.EVENT_PAUSE";
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);/**
BI.shortcut("bi.multi_select_editor", BI.MultiSelectEditor);
/**
* searcher
* Created by guy on 15/11/3.
* @class BI.MultiSelectInsertSearcher
@ -14482,7 +14489,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -14856,12 +14864,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},
@ -14940,7 +14956,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -15033,6 +15051,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -15051,7 +15073,8 @@ BI.SearchMultiSelectTrigger.EVENT_PAUSE = "EVENT_PAUSE";
BI.SearchMultiSelectTrigger.EVENT_SEARCHING = "EVENT_SEARCHING";
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.
* @class BI.SearchMultiSelectLoader
@ -15332,7 +15355,9 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -15457,6 +15482,10 @@ BI.shortcut("bi.search_multi_select_popup_view", BI.SearchMultiSelectPopupView);
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);
@ -15481,7 +15510,8 @@ BI.SearchMultiSelectSearcher.EVENT_START = "EVENT_START";
BI.SearchMultiSelectSearcher.EVENT_STOP = "EVENT_STOP";
BI.SearchMultiSelectSearcher.EVENT_PAUSE = "EVENT_PAUSE";
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.
* @class BI.SelectTreeFirstPlusGroupNode
@ -22360,6 +22390,7 @@ BI.shortcut("bi.all_value_chooser_pane", BI.AllValueChooserPane);BI.AllValueMult
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

5
src/case/combo/icontextvaluecombo/combo.icontextvalue.js

@ -29,7 +29,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
value: o.value,
iconHeight: o.iconHeight,
iconWidth: o.iconWidth,
iconWrapperWidth: o.iconWrapperWidth
iconWrapperWidth: o.iconWrapperWidth,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.icon_text_value_combo_popup",
@ -70,8 +71,10 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.options.tipType = "warning";
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.options.tipType = "success";
this.element.removeClass("combo-error");
}
}

8
src/case/editor/editor.state.js

@ -65,7 +65,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
title = self.stateValue[0];
}
return title;
}
},
warningTitle: o.warningTitle,
tipType: o.tipType
});
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
BI.nextTick(function () {
@ -255,6 +257,10 @@ BI.StateEditor = BI.inherit(BI.Widget, {
this.text.element.removeClass("state-editor-infinite-text");
}
}
},
setTipType: function (v) {
this.text.options.tipType = v;
}
});
BI.StateEditor.EVENT_CHANGE = "EVENT_CHANGE";

1
src/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.js

@ -18,6 +18,7 @@ BI.AllValueMultiTextValueCombo = BI.inherit(BI.Widget, {
value: value,
numOfPage: 100,
valueFormatter: o.valueFormatter,
warningTitle: o.warningTitle,
listeners: [{
eventName: BI.SearchMultiTextValueCombo.EVENT_CONFIRM,
action: function () {

8
src/widget/multiselect/trigger/editor.multiselect.js

@ -23,7 +23,9 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
watermark: BI.i18nText("BI-Basic_Search"),
allowBlank: true,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle,
});
this.editor.on(BI.Controller.EVENT_CHANGE, function () {
@ -54,6 +56,10 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
this.editor.setValue(v);
},
setTipType: function (v) {
this.editor.setTipType(v);
},
getValue: function () {
var v = this.editor.getState();
if (BI.isArray(v) && v.length > 0) {

13
src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

@ -58,7 +58,8 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
callback.apply(self, arguments);
});
},
value: this.storeValue
value: this.storeValue,
warningTitle: o.warningTitle
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () {
@ -432,12 +433,20 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
return !BI.contains(v, value);
});
if (BI.isNull(result)) {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("warning"));
this.element.removeClass("combo-error");
} else {
BI.isNotNull(this.trigger) && (this.trigger.setTipType("success"));
this.element.addClass("combo-error");
}
} 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");
}
}
},

8
src/widget/searchmultitextvaluecombo/multitextvalue.combo.trigger.search.js

@ -37,7 +37,9 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
adapter: o.adapter,
masker: o.masker,
value: o.value,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () {
self.fireEvent(BI.SearchMultiSelectTrigger.EVENT_START);
@ -130,6 +132,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},

8
src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js

@ -18,7 +18,9 @@ BI.SearchMultiSelectSearcher = BI.inherit(BI.Widget, {
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height,
text: o.text
text: o.text,
tipType: o.tipType,
warningTitle: o.warningTitle
});
this.searcher = BI.createWidget({
@ -143,6 +145,10 @@ BI.SearchMultiSelectSearcher = BI.inherit(BI.Widget, {
}
},
setTipType: function (v) {
this.editor.setTipType(v);
},
setValue: function (ob) {
this.setState(ob);
this.searcher.setValue(ob);

Loading…
Cancel
Save