|
|
|
@ -67585,7 +67585,8 @@ BI.IconCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.iconCombo.getValue(); |
|
|
|
|
var value = this.iconCombo.getValue(); |
|
|
|
|
return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
@ -67686,7 +67687,8 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
} |
|
|
|
|
this.button = BI.createWidget(o.el, { |
|
|
|
|
type: "bi.icon_change_button", |
|
|
|
|
cls: "icon-combo-trigger-icon " + iconCls, |
|
|
|
|
cls: "icon-combo-trigger-icon", |
|
|
|
|
iconCls: iconCls, |
|
|
|
|
disableSelected: true, |
|
|
|
|
width: o.width, |
|
|
|
|
height: o.height, |
|
|
|
@ -67783,7 +67785,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.icon_text_value_combo_popup", |
|
|
|
|
items: o.items |
|
|
|
|
items: o.items, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.IconTextValueComboPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -67813,7 +67816,8 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.textIconCombo.getValue(); |
|
|
|
|
var value = this.textIconCombo.getValue(); |
|
|
|
|
return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
@ -67844,7 +67848,8 @@ BI.IconTextValueComboPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popup.on(BI.Controller.EVENT_CHANGE, function (type, val, obj) { |
|
|
|
@ -67944,7 +67949,8 @@ BI.StaticCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.combo.getValue(); |
|
|
|
|
var value = this.combo.getValue(); |
|
|
|
|
return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.StaticCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
@ -68017,7 +68023,8 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.textIconCheckCombo.getValue(); |
|
|
|
|
var value = this.textIconCheckCombo.getValue(); |
|
|
|
|
return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
@ -68210,7 +68217,8 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.textIconCombo.getValue(); |
|
|
|
|
var value = this.textIconCombo.getValue(); |
|
|
|
|
return BI.isNull(value) ? [] : (BI.isArray(value) ? value : [value]); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
@ -80391,23 +80399,35 @@ BI.DownListPopup = BI.inherit(BI.Pane, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValues: function (values) { |
|
|
|
|
var self = this; |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var value = []; |
|
|
|
|
BI.each(this.options.items, function (idx, itemGroup) { |
|
|
|
|
BI.each(o.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]); |
|
|
|
|
if(BI.contains(childValues, valueGetter(idx))){ |
|
|
|
|
value.push(valueGetter(idx)); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(item.value === values[idx]){ |
|
|
|
|
value.push(values[idx]); |
|
|
|
|
if(item.value === valueGetter(idx)){ |
|
|
|
|
value.push(valueGetter(idx)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}); |
|
|
|
|
return value; |
|
|
|
|
|
|
|
|
|
function valueGetter(index) { |
|
|
|
|
switch (o.chooseType) { |
|
|
|
|
case BI.Selection.Single: |
|
|
|
|
return values[0]; |
|
|
|
|
break; |
|
|
|
|
case BI.Selection.Multi: |
|
|
|
|
return values[index]; |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|