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