Browse Source

Merge branch 'master' of http://cloud.finedevelop.com:2015/scm/visual/fineui

# Conflicts:
#	dist/bundle.ie.min.js
#	dist/bundle.min.js
#	dist/fineui.ie.min.js
#	dist/fineui.min.js
#	dist/utils.min.js
master
Dailer 6 years ago
parent
commit
ff45591925
  1. 96
      dist/bundle.ie.js
  2. 38
      dist/bundle.ie.min.js
  3. 96
      dist/bundle.js
  4. 36
      dist/bundle.min.js
  5. 49
      dist/case.js
  6. 96
      dist/fineui.ie.js
  7. 38
      dist/fineui.ie.min.js
  8. 96
      dist/fineui.js
  9. 36
      dist/fineui.min.js
  10. 96
      dist/fineui_without_jquery_polyfill.js
  11. 6
      dist/utils.min.js
  12. 47
      dist/widget.js
  13. 7
      src/case/combo/icontextvaluecombo/combo.icontextvalue.js
  14. 7
      src/case/combo/textvaluecombo/combo.textvalue.js
  15. 10
      src/case/editor/editor.state.js
  16. 8
      src/case/trigger/trigger.text.js
  17. 12
      src/case/trigger/trigger.text.select.js
  18. 1
      src/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.js
  19. 10
      src/widget/multiselect/trigger/editor.multiselect.js
  20. 13
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js
  21. 10
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.trigger.search.js
  22. 10
      src/widget/searchmultitextvaluecombo/trigger/searcher.multitextvalue.js

96
dist/bundle.ie.js vendored

@ -52934,7 +52934,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",
@ -52975,8 +52976,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");
}
}
@ -52999,7 +53002,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, {
@ -53637,7 +53641,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -53676,8 +53681,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -53700,7 +53707,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -54732,7 +54740,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 () {
@ -54922,6 +54932,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";
@ -54942,7 +54956,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
@ -57981,6 +57996,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -58005,9 +58022,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -58032,10 +58054,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -58058,11 +58082,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger
@ -69128,7 +69157,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 () {
@ -69159,6 +69190,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) {
@ -69182,7 +69217,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
@ -72665,7 +72701,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 () {
@ -73039,12 +73076,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");
}
}
},
@ -73123,7 +73168,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);
@ -73216,6 +73263,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73234,7 +73285,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
@ -73515,7 +73567,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({
@ -73640,6 +73694,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);
@ -73664,7 +73722,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
@ -80543,6 +80602,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

96
dist/bundle.js vendored

@ -53485,7 +53485,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",
@ -53526,8 +53527,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");
}
}
@ -53550,7 +53553,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, {
@ -54188,7 +54192,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -54227,8 +54232,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -54251,7 +54258,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -55283,7 +55291,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 () {
@ -55473,6 +55483,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";
@ -55493,7 +55507,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
@ -58532,6 +58547,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -58556,9 +58573,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -58583,10 +58605,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -58609,11 +58633,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger
@ -69679,7 +69708,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 () {
@ -69710,6 +69741,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) {
@ -69733,7 +69768,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
@ -73216,7 +73252,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 () {
@ -73590,12 +73627,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");
}
}
},
@ -73674,7 +73719,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);
@ -73767,6 +73814,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73785,7 +73836,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
@ -74066,7 +74118,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({
@ -74191,6 +74245,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);
@ -74215,7 +74273,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
@ -81094,6 +81153,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

49
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, {
@ -5246,7 +5250,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -5285,8 +5290,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -5309,7 +5316,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -6341,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 () {
@ -6531,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";
@ -6551,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
@ -9590,6 +9605,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -9614,9 +9631,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -9641,10 +9663,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -9667,11 +9691,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger

96
dist/fineui.ie.js vendored

@ -53176,7 +53176,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",
@ -53217,8 +53218,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");
}
}
@ -53241,7 +53244,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, {
@ -53879,7 +53883,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -53918,8 +53923,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -53942,7 +53949,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -54974,7 +54982,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 () {
@ -55164,6 +55174,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";
@ -55184,7 +55198,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
@ -58223,6 +58238,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -58247,9 +58264,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -58274,10 +58296,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -58300,11 +58324,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger
@ -69370,7 +69399,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 () {
@ -69401,6 +69432,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) {
@ -69424,7 +69459,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
@ -72907,7 +72943,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 () {
@ -73281,12 +73318,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");
}
}
},
@ -73365,7 +73410,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);
@ -73458,6 +73505,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -73476,7 +73527,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
@ -73757,7 +73809,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({
@ -73882,6 +73936,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);
@ -73906,7 +73964,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
@ -80785,6 +80844,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

96
dist/fineui.js vendored

@ -53727,7 +53727,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",
@ -53768,8 +53769,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");
}
}
@ -53792,7 +53795,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, {
@ -54430,7 +54434,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -54469,8 +54474,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -54493,7 +54500,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -55525,7 +55533,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 () {
@ -55715,6 +55725,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";
@ -55735,7 +55749,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
@ -58774,6 +58789,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -58798,9 +58815,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -58825,10 +58847,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -58851,11 +58875,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger
@ -69921,7 +69950,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 () {
@ -69952,6 +69983,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) {
@ -69975,7 +70010,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
@ -73458,7 +73494,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 () {
@ -73832,12 +73869,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");
}
}
},
@ -73916,7 +73961,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);
@ -74009,6 +74056,10 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, {
this.numberCounter.setValue(ob);
},
setTipType: function (v) {
this.searcher.setTipType(v);
},
getKey: function () {
return this.searcher.getKey();
},
@ -74027,7 +74078,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
@ -74308,7 +74360,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({
@ -74433,6 +74487,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);
@ -74457,7 +74515,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
@ -81336,6 +81395,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

96
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, {
@ -37423,7 +37427,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -37462,8 +37467,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -37486,7 +37493,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
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
* @extend BI.Widget
* combo : text + icon, popup : text
@ -38518,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 () {
@ -38708,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";
@ -38728,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
@ -41569,6 +41584,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -41593,9 +41610,14 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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
*
* Created by GUY on 2015/9/15.
@ -41620,10 +41642,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -41646,11 +41670,16 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);/**
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
/**
* 选择字段trigger小一号的
*
* @class BI.SmallSelectTextTrigger
@ -52716,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 () {
@ -52747,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) {
@ -52770,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
@ -56253,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 () {
@ -56627,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");
}
}
},
@ -56711,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);
@ -56804,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();
},
@ -56822,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
@ -57103,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({
@ -57228,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);
@ -57252,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
@ -64131,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 () {

6
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 () {

7
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");
}
}
@ -94,4 +97,4 @@ 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);

7
src/case/combo/textvaluecombo/combo.textvalue.js

@ -27,7 +27,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
items: o.items,
height: o.height,
text: o.text,
value: o.value
value: o.value,
warningTitle: o.warningTitle
});
this.popup = BI.createWidget({
type: "bi.text_value_combo_popup",
@ -66,8 +67,10 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
return BI.contains(v, item.value);
});
if (BI.isNull(result)) {
this.trigger.setTipType("warning");
this.element.removeClass("combo-error").addClass("combo-error");
} else {
this.trigger.setTipType("success");
this.element.removeClass("combo-error");
}
}
@ -90,4 +93,4 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
}
});
BI.TextValueCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);
BI.shortcut("bi.text_value_combo", BI.TextValueCombo);

10
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";
@ -275,4 +281,4 @@ 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);

8
src/case/trigger/trigger.text.js

@ -30,6 +30,8 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
title: function () {
return self.text.getText();
},
tipType: o.tipType,
warningTitle: o.warningTitle,
hgap: c.hgap,
readonly: o.readonly
});
@ -54,6 +56,10 @@ BI.TextTrigger = BI.inherit(BI.Trigger, {
setText: function (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);

12
src/case/trigger/trigger.text.select.js

@ -23,10 +23,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
element: this,
height: o.height,
readonly: o.readonly,
text: this._digest(o.value, o.items)
text: this._digest(o.value, o.items),
tipType: o.tipType,
warningTitle: o.warningTitle
});
},
_digest: function(vals, items){
var o = this.options;
vals = BI.isArray(vals) ? vals : [vals];
@ -49,8 +51,12 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, {
this.trigger.setText(this._digest(vals, this.options.items));
},
setTipType: function (v) {
this.trigger.setTipType(v);
},
populate: function (items) {
this.options.items = items;
}
});
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);
BI.shortcut("bi.select_text_trigger", BI.SelectTextTrigger);

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 () {

10
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) {
@ -77,4 +83,4 @@ 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);

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");
}
}
},

10
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();
},
@ -148,4 +154,4 @@ 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);

10
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);
@ -167,4 +173,4 @@ 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);

Loading…
Cancel
Save