|
|
|
@ -27408,6 +27408,7 @@ BI.TreeView = BI.inherit(BI.Pane, {
|
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
BI.TreeView.superclass._init.apply(this, arguments); |
|
|
|
|
var o = this.options; |
|
|
|
|
this._stop = false; |
|
|
|
|
|
|
|
|
|
this._createTree(); |
|
|
|
@ -27423,7 +27424,9 @@ BI.TreeView = BI.inherit(BI.Pane, {
|
|
|
|
|
element: this, |
|
|
|
|
items: [this.tip] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
this.setSelectedValue(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createTree: function () { |
|
|
|
@ -41311,7 +41314,8 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.center", |
|
|
|
|
cls: "list-view-tab", |
|
|
|
|
height: 25, |
|
|
|
|
items: o.tabs |
|
|
|
|
items: o.tabs, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -67447,7 +67451,8 @@ BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
quitChecker: o.quitChecker, |
|
|
|
|
allowBlank: o.allowBlank, |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
errorText: o.errorText |
|
|
|
|
errorText: o.errorText, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.EditorTrigger.EVENT_CHANGE, function () { |
|
|
|
|
self.popup.setValue(this.getValue()); |
|
|
|
@ -67456,7 +67461,8 @@ BI.EditorIconCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.text_value_check_combo_popup", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
items: o.items |
|
|
|
|
items: o.items, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -67964,12 +67970,15 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.text_value_check_combo_popup", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
items: o.items |
|
|
|
|
items: o.items, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -68039,12 +68048,14 @@ BI.SmallTextValueCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.small_select_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.text |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.text_value_check_combo_popup", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
items: o.items |
|
|
|
|
items: o.items, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.TextValueCheckComboPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -68097,7 +68108,8 @@ BI.shortcut("bi.small_text_value_check_combo", BI.SmallTextValueCheckCombo);BI.T
|
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) { |
|
|
|
@ -68151,6 +68163,7 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
baseClass: "bi-text-value-combo", |
|
|
|
|
height: 30, |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
text: "", |
|
|
|
|
value: "", |
|
|
|
|
el: {} |
|
|
|
|
}); |
|
|
|
@ -68163,11 +68176,13 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
|
text: o.value |
|
|
|
|
text: o.text, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.text_value_combo_popup", |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
value: o.value, |
|
|
|
|
items: o.items |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.TextValueComboPopup.EVENT_CHANGE, function () { |
|
|
|
@ -68188,9 +68203,6 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
maxHeight: 300 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (BI.isKey(o.value)) { |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -68348,10 +68360,16 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this._createValueMap(); |
|
|
|
|
|
|
|
|
|
var value; |
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
value = this._digest(o.value); |
|
|
|
|
} |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.down_list_select_text_trigger", |
|
|
|
|
height: o.height, |
|
|
|
|
items: o.items |
|
|
|
|
items: o.items, |
|
|
|
|
text: o.text, |
|
|
|
|
value: value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
@ -68361,6 +68379,7 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
adjustLength: 2, |
|
|
|
|
height: o.height, |
|
|
|
|
el: this.trigger, |
|
|
|
|
value: BI.isNull(value) ? [] : [value], |
|
|
|
|
items: BI.deepClone(o.items) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -68389,10 +68408,14 @@ BI.TextValueDownListCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
|
return this.valueMap[v]; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
v = this.valueMap[v]; |
|
|
|
|
v = this._digest(v); |
|
|
|
|
this.combo.setValue([v]); |
|
|
|
|
this.trigger.setValue(v.childValue || v.value); |
|
|
|
|
this.trigger.setValue(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -68432,7 +68455,8 @@ BI.DownListSelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
element: this, |
|
|
|
|
height: o.height, |
|
|
|
|
items: this._formatItemArray(o.items), |
|
|
|
|
text: o.text |
|
|
|
|
text: o.text, |
|
|
|
|
value: BI.isNull(o.value) ? "" : o.value.childValue || o.value.value |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -68453,7 +68477,7 @@ BI.DownListSelectTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (vals) { |
|
|
|
|
this.trigger.setValue(vals); |
|
|
|
|
this.trigger.setValue(vals.childValue || vals.value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
@ -69541,6 +69565,9 @@ BI.StateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [this.editor] |
|
|
|
|
}); |
|
|
|
|
this._showHint(); |
|
|
|
|
if(BI.isNotNull(o.text)){ |
|
|
|
|
this.setState(o.text); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
@ -69815,6 +69842,9 @@ BI.SimpleStateEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [this.editor] |
|
|
|
|
}); |
|
|
|
|
this._showHint(); |
|
|
|
|
if(BI.isNotNull(o.text)){ |
|
|
|
|
this.setState(o.text); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
doRedMark: function () { |
|
|
|
@ -70441,6 +70471,9 @@ BI.SelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
this.toolbar.setVisible(false); |
|
|
|
|
this.toolbar.setEnable(false); |
|
|
|
|
} |
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkAllSelected: function () { |
|
|
|
@ -76049,7 +76082,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
}, |
|
|
|
|
disableSelected: true |
|
|
|
|
}, |
|
|
|
|
width: o.triggerWidth || o.height |
|
|
|
|
width: BI.isEmptyString(o.iconCls)? 0 : (o.triggerWidth || o.height) |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
el: this.text |
|
|
|
@ -79855,7 +79888,8 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
this.popupview = BI.createWidget({ |
|
|
|
|
type: "bi.down_list_popup", |
|
|
|
|
items: o.items, |
|
|
|
|
chooseType: o.chooseType |
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popupview.on(BI.DownListPopup.EVENT_CHANGE, function (value) { |
|
|
|
@ -79949,7 +79983,8 @@ BI.DownListGroup = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.vertical", |
|
|
|
|
hgap: 0, |
|
|
|
|
vgap: 0 |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.downlistgroup.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
@ -80076,7 +80111,8 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: o.iconCls1, |
|
|
|
|
width: 25, |
|
|
|
|
forceNotSelected: true |
|
|
|
|
forceNotSelected: true, |
|
|
|
|
selected: this._digest(o.value) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.icon2 = BI.createWidget({ |
|
|
|
@ -80118,6 +80154,14 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
return BI.any(v, function (idx, value) { |
|
|
|
|
return BI.contains(o.childValues, value); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
hover: function () { |
|
|
|
|
BI.DownListGroupItem.superclass.hover.apply(this, arguments); |
|
|
|
|
this.icon1.element.addClass("hover"); |
|
|
|
@ -80147,16 +80191,7 @@ BI.shortcut("bi.down_list_item", BI.DownListItem);BI.DownListGroupItem = BI.inhe
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
BI.find(v, function (idx, value) { |
|
|
|
|
if (BI.contains(o.childValues, value)) { |
|
|
|
|
self.icon1.setSelected(true); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
self.icon1.setSelected(false); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
this.icon1.setSelected(this._digest(v)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.DownListGroupItem.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
@ -80201,6 +80236,7 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
hgap: this.constants.hgap, |
|
|
|
|
vgap: this.constants.vgap |
|
|
|
|
}], |
|
|
|
|
value: this._digest(o.value), |
|
|
|
|
chooseType: o.chooseType |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -80338,6 +80374,42 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
return fatherValue + "_" + childValue; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_digest: function (valueItem) { |
|
|
|
|
var self = this; |
|
|
|
|
var valueArray = []; |
|
|
|
|
BI.each(valueItem, function (i, item) { |
|
|
|
|
var value; |
|
|
|
|
if (BI.isNotNull(item.childValue)) { |
|
|
|
|
value = self._createChildValue(item.value, item.childValue); |
|
|
|
|
} else { |
|
|
|
|
value = item.value; |
|
|
|
|
} |
|
|
|
|
valueArray.push(value); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
return valueArray; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValues: function (values) { |
|
|
|
|
var self = this; |
|
|
|
|
var value = []; |
|
|
|
|
BI.each(this.options.items, function (idx, itemGroup) { |
|
|
|
|
BI.each(itemGroup, function (id, item) { |
|
|
|
|
if(BI.isNotNull(item.children)){ |
|
|
|
|
var childValues = BI.pluck(item.children, "value"); |
|
|
|
|
if(BI.contains(childValues, values[idx])){ |
|
|
|
|
value.push(values[idx]); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(item.value === values[idx]){ |
|
|
|
|
value.push(values[idx]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
return value; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
BI.DownListPopup.superclass.populate.apply(this, arguments); |
|
|
|
|
var self = this; |
|
|
|
@ -80354,24 +80426,12 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (valueItem) { |
|
|
|
|
var self = this; |
|
|
|
|
var valueArray = []; |
|
|
|
|
BI.each(valueItem, function (i, item) { |
|
|
|
|
var value; |
|
|
|
|
if (BI.isNotNull(item.childValue)) { |
|
|
|
|
value = self._createChildValue(item.value, item.childValue); |
|
|
|
|
} else { |
|
|
|
|
value = item.value; |
|
|
|
|
} |
|
|
|
|
valueArray.push(value); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
this.popup.setValue(valueArray); |
|
|
|
|
this.popup.setValue(this._digest(valueItem)); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
var self = this, result = []; |
|
|
|
|
var values = this.popup.getValue(); |
|
|
|
|
var values = this._checkValues(this.popup.getValue()); |
|
|
|
|
BI.each(values, function (i, value) { |
|
|
|
|
var valueItem = {}; |
|
|
|
|
if (BI.isNotNull(self.childValueMap[value])) { |
|
|
|
@ -85494,7 +85554,7 @@ BI.MultiSelectCheckPane = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
var self = this, opts = this.options; |
|
|
|
|
|
|
|
|
|
this.storeValue = {}; |
|
|
|
|
this.storeValue = opts.value || {}; |
|
|
|
|
this.display = BI.createWidget({ |
|
|
|
|
type: "bi.display_selected_list", |
|
|
|
|
items: opts.items, |
|
|
|
@ -85708,7 +85768,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
callback.apply(self, arguments); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () { |
|
|
|
@ -85817,6 +85878,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
hideChecker: function (e) { |
|
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
|
} |
|
|
|
@ -86039,7 +86101,10 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.trigger.getSearcher().setState(self.storeValue); |
|
|
|
|
self.trigger.getCounter().setButtonChecked(self.storeValue); |
|
|
|
|
}; |
|
|
|
|
this.storeValue = {}; |
|
|
|
|
this.storeValue = o.value || {}; |
|
|
|
|
|
|
|
|
|
this._assertValue(this.storeValue); |
|
|
|
|
|
|
|
|
|
// 标记正在请求数据
|
|
|
|
|
this.requesting = false; |
|
|
|
|
|
|
|
|
@ -86064,7 +86129,8 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
callback.apply(self, arguments); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: this.storeValue |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_START, function () { |
|
|
|
@ -86169,6 +86235,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value, |
|
|
|
|
hideChecker: function (e) { |
|
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
|
} |
|
|
|
@ -86419,6 +86486,9 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, opts = this.options; |
|
|
|
|
var hasNext = false; |
|
|
|
|
|
|
|
|
|
this.storeValue = opts.value || {}; |
|
|
|
|
this._assertValue(this.storeValue); |
|
|
|
|
|
|
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
|
type: "bi.select_list", |
|
|
|
|
element: this, |
|
|
|
@ -86485,7 +86555,8 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
hasNext: function () { |
|
|
|
|
return hasNext; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: this.storeValue |
|
|
|
|
}); |
|
|
|
|
this.button_group.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
@ -86584,7 +86655,8 @@ BI.MultiSelectPopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.multi_select_loader", |
|
|
|
|
itemsCreator: opts.itemsCreator, |
|
|
|
|
valueFormatter: opts.valueFormatter, |
|
|
|
|
onLoaded: opts.onLoaded |
|
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
|
value: opts.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popupView = BI.createWidget({ |
|
|
|
@ -86595,7 +86667,8 @@ BI.MultiSelectPopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
maxHeight: opts.maxHeight, |
|
|
|
|
element: this, |
|
|
|
|
buttons: [BI.i18nText("BI-Basic_Clears"), BI.i18nText("BI-Basic_Sure")], |
|
|
|
|
el: this.loader |
|
|
|
|
el: this.loader, |
|
|
|
|
value: opts.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popupView.on(BI.MultiPopupView.EVENT_CHANGE, function () { |
|
|
|
@ -86690,7 +86763,8 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
popup: {}, |
|
|
|
|
adapter: o.adapter, |
|
|
|
|
masker: o.masker |
|
|
|
|
masker: o.masker, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.searcher.on(BI.MultiSelectSearcher.EVENT_START, function () { |
|
|
|
|
self.fireEvent(BI.MultiSelectTrigger.EVENT_START); |
|
|
|
@ -86712,7 +86786,8 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
adapter: o.adapter, |
|
|
|
|
masker: o.masker |
|
|
|
|
masker: o.masker, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.numberCounter.on(BI.MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.MultiSelectTrigger.EVENT_COUNTER_CLICK); |
|
|
|
@ -86822,13 +86897,14 @@ BI.MultiSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
var self = this, opts = this.options; |
|
|
|
|
var hasNext = false; |
|
|
|
|
|
|
|
|
|
this.storeValue = BI.deepClone(opts.value); |
|
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
|
type: "bi.select_list", |
|
|
|
|
element: this, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
|
}, |
|
|
|
|
value: opts.value, |
|
|
|
|
el: { |
|
|
|
|
tipText: BI.i18nText("BI-No_Select"), |
|
|
|
|
el: { |
|
|
|
@ -86997,7 +87073,8 @@ BI.MultiSelectSearchPane = BI.inherit(BI.Widget, {
|
|
|
|
|
callback(res); |
|
|
|
|
self.setKeyword(o.keywordGetter()); |
|
|
|
|
}]); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.loader.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
@ -87074,7 +87151,7 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.MultiSelectCheckSelectedButton.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this; |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.numberCounter = BI.createWidget({ |
|
|
|
|
type: "bi.text_button", |
|
|
|
|
element: this, |
|
|
|
@ -87098,6 +87175,9 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
|
|
|
|
|
self.numberCounter.setText(self.numberCounter.getTag()); |
|
|
|
|
}); |
|
|
|
|
this.setVisible(false); |
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (ob) { |
|
|
|
@ -87156,7 +87236,8 @@ BI.MultiSelectEditor = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
height: o.height, |
|
|
|
|
watermark: BI.i18nText("BI-Basic_Search"), |
|
|
|
|
allowBlank: true |
|
|
|
|
allowBlank: true, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
@ -87259,7 +87340,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
op.keyword = self.editor.getValue(); |
|
|
|
|
this.setKeyword(op.keyword); |
|
|
|
|
o.itemsCreator(op, callback); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}, o.popup), |
|
|
|
|
|
|
|
|
|
adapter: o.adapter, |
|
|
|
@ -87284,6 +87366,9 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
var keywords = this.getKeywords(); |
|
|
|
|
self.fireEvent(BI.MultiSelectSearcher.EVENT_SEARCHING, keywords); |
|
|
|
|
}); |
|
|
|
|
if(BI.isNotNull(o.value)){ |
|
|
|
|
this.setState(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
adjustView: function () { |
|
|
|
@ -87403,7 +87488,8 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.button = BI.createWidget(o.el, { |
|
|
|
|
type: "bi.multi_select_check_selected_button", |
|
|
|
|
itemsCreator: o.itemsCreator |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.button.on(BI.Events.VIEW, function () { |
|
|
|
|
self.fireEvent(BI.Events.VIEW, arguments); |
|
|
|
@ -87419,7 +87505,8 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
|
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
onClickContinueSelect: function () { |
|
|
|
|
self.switcher.hideView(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}, o.popup), |
|
|
|
|
adapter: o.adapter, |
|
|
|
|
masker: o.masker |
|
|
|
@ -88425,7 +88512,8 @@ BI.MultiTreeCheckPane = BI.inherit(BI.Pane, {
|
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
op.type = BI.TreeView.REQ_TYPE_GET_SELECTED_DATA; |
|
|
|
|
opts.itemsCreator(op, callback); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: (opts.value || {}).value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.display.on(BI.Events.AFTERINIT, function () { |
|
|
|
@ -88508,6 +88596,8 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var isInit = false; |
|
|
|
|
var want2showCounter = false; |
|
|
|
|
|
|
|
|
|
this.storeValue = {value: o.value || {}}; |
|
|
|
|
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_trigger", |
|
|
|
|
height: o.height, |
|
|
|
@ -88527,7 +88617,8 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.multi_tree_check_pane", |
|
|
|
|
itemsCreator: o.itemsCreator |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: {value: o.value || {}} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -88583,12 +88674,12 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: {value: o.value || {}}, |
|
|
|
|
hideChecker: function (e) { |
|
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.storeValue = {value: {}}; |
|
|
|
|
var change = false; |
|
|
|
|
var clear = false; // 标识当前是否点击了清空
|
|
|
|
|
|
|
|
|
@ -88765,7 +88856,8 @@ BI.MultiTreePopup = BI.inherit(BI.Pane, {
|
|
|
|
|
height: 400, |
|
|
|
|
cls: "popup-view-tree", |
|
|
|
|
itemsCreator: opts.itemsCreator, |
|
|
|
|
onLoaded: opts.onLoaded |
|
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
|
value: opts.value || {} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popupView = BI.createWidget({ |
|
|
|
@ -88861,7 +88953,8 @@ BI.MultiTreeSearchPane = BI.inherit(BI.Pane, {
|
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
op.keyword = opts.keywordGetter(); |
|
|
|
|
opts.itemsCreator(op, callback); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: opts.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.partTree.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
@ -89025,7 +89118,8 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
op.keyword = self.editor.getValue(); |
|
|
|
|
o.itemsCreator(op, callback); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value |
|
|
|
|
}, o.popup), |
|
|
|
|
|
|
|
|
|
adapter: o.adapter, |
|
|
|
@ -89046,6 +89140,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
this.searcher.on(BI.Searcher.EVENT_CHANGE, function () { |
|
|
|
|
self.fireEvent(BI.MultiTreeSearcher.EVENT_CHANGE, arguments); |
|
|
|
|
}); |
|
|
|
|
if (BI.isNotNull(o.value)) { |
|
|
|
|
this.setState(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
adjustView: function () { |
|
|
|
@ -97644,7 +97741,11 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, {
|
|
|
|
|
itemsCreator: BI.bind(this._itemsCreator, this), |
|
|
|
|
valueFormatter: BI.bind(this._valueFormatter, this), |
|
|
|
|
width: o.width, |
|
|
|
|
height: o.height |
|
|
|
|
height: o.height, |
|
|
|
|
value: { |
|
|
|
|
type: BI.Selection.Multi, |
|
|
|
|
value: o.value || [] |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.MultiSelectCombo.EVENT_CONFIRM, function () { |
|
|
|
|