|
|
@ -29846,13 +29846,20 @@ BI.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Wid |
|
|
|
|
|
|
|
|
|
|
|
_packageBtns: function (items) { |
|
|
|
_packageBtns: function (items) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
var map = this.buttonMap = {}; |
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
for (var i = o.layouts.length - 1; i > 0; i--) { |
|
|
|
items = BI.map(items, function (k, it) { |
|
|
|
items = BI.map(items, function (k, it) { |
|
|
|
|
|
|
|
var el = BI.stripEL(it); |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
return BI.extend({}, o.layouts[i], { |
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
BI.extend({}, o.layouts[i].el, { |
|
|
|
BI.extend({}, o.layouts[i].el, { |
|
|
|
el: BI.stripEL(it) |
|
|
|
el: BI.extend({ |
|
|
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
if (BI.isKey(map[el.value])) { |
|
|
|
|
|
|
|
map[el.value] = _ref; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, el) |
|
|
|
}) |
|
|
|
}) |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -29861,10 +29868,6 @@ BI.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Wid |
|
|
|
return items; |
|
|
|
return items; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_packageItems: function (items, packBtns) { |
|
|
|
|
|
|
|
return BI.createItems(BI.makeArrayByArray(items, {}), BI.clone(packBtns)); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_packageLayout: function (items) { |
|
|
|
_packageLayout: function (items) { |
|
|
|
var o = this.options, layout = BI.deepClone(o.layouts[0]); |
|
|
|
var o = this.options, layout = BI.deepClone(o.layouts[0]); |
|
|
|
|
|
|
|
|
|
|
@ -29885,11 +29888,40 @@ BI.shortcut("bi.combo_group", BI.ComboGroup);BI.VirtualGroup = BI.inherit(BI.Wid |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
// this.layouts.setValue(v);
|
|
|
|
v = BI.isArray(v) ? v : [v]; |
|
|
|
|
|
|
|
BI.each(this.buttonMap, function (key, item) { |
|
|
|
|
|
|
|
if (item) { |
|
|
|
|
|
|
|
if (v.deepContains(key)) { |
|
|
|
|
|
|
|
item.setSelected && item.setSelected(true); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
item.setSelected && item.setSelected(false); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getNotSelectedValue: function () { |
|
|
|
|
|
|
|
var v = []; |
|
|
|
|
|
|
|
BI.each(this.buttonMap, function (i, item) { |
|
|
|
|
|
|
|
if (item) { |
|
|
|
|
|
|
|
if (item.isEnabled() && !(item.isSelected && item.isSelected())) { |
|
|
|
|
|
|
|
v.push(item.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return v; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.layouts.getValue(); |
|
|
|
var v = []; |
|
|
|
|
|
|
|
BI.each(this.buttonMap, function (i, item) { |
|
|
|
|
|
|
|
if (item) { |
|
|
|
|
|
|
|
if (item.isEnabled() && item.isSelected && item.isSelected()) { |
|
|
|
|
|
|
|
v.push(item.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return v; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|