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