|
|
|
@ -88,5 +88,20 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
hasNext: self._hasNextByTimes(resultItems, options.times) |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_assertValue: function (v) { |
|
|
|
|
v = v || {}; |
|
|
|
|
var value = v; |
|
|
|
|
if (v.type === BI.Selection.Multi && BI.isNotNull(this.items)) { |
|
|
|
|
var isAllSelect = BI.difference(BI.map(this.items, "value"), v.value).length === 0; |
|
|
|
|
if (isAllSelect) { |
|
|
|
|
value = { |
|
|
|
|
type: BI.Selection.All, |
|
|
|
|
value: [], |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return value; |
|
|
|
|
}, |
|
|
|
|
}); |