|
|
@ -45,65 +45,38 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
verticalAlign: BI.VerticalAlign.Stretch, |
|
|
|
verticalAlign: BI.VerticalAlign.Stretch, |
|
|
|
rowSize: ["fill", ""], |
|
|
|
items: o.allowSelectAll ? [ |
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
el: o.allowSelectAll ? { |
|
|
|
type: "bi.select_list", |
|
|
|
type: "bi.select_list", |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: true, |
|
|
|
dynamic: true, |
|
|
|
innerVgap: 5, |
|
|
|
innerVgap: 5, |
|
|
|
rowSize: ["", "fill"], |
|
|
|
rowSize: ["", "fill"], |
|
|
|
verticalAlign: BI.VerticalAlign.Stretch |
|
|
|
verticalAlign: BI.VerticalAlign.Stretch |
|
|
|
}, |
|
|
|
}, |
|
|
|
ref: (_ref) => { |
|
|
|
ref: (_ref) => { |
|
|
|
this.popup = _ref; |
|
|
|
this.popup = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items: this._formatItems(o.items), |
|
|
|
|
|
|
|
value: { |
|
|
|
|
|
|
|
type: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
|
|
|
|
value: o.value |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
eventName: BI.SelectList.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function (val) { |
|
|
|
|
|
|
|
self.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE, val); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} : { |
|
|
|
|
|
|
|
type: "bi.list_pane", |
|
|
|
|
|
|
|
logic: { |
|
|
|
|
|
|
|
dynamic: true, |
|
|
|
|
|
|
|
innerVgap: 5, |
|
|
|
|
|
|
|
rowSize: ["", "fill"], |
|
|
|
|
|
|
|
verticalAlign: BI.VerticalAlign.Stretch |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
ref: (_ref) => { |
|
|
|
|
|
|
|
this.popup = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
el: { |
|
|
|
el: { |
|
|
|
chooseType: o.chooseType, |
|
|
|
chooseType: o.chooseType, |
|
|
|
}, |
|
|
|
} |
|
|
|
items: this._formatItems(o.items), |
|
|
|
}, |
|
|
|
value: o.value, |
|
|
|
items: this._formatItems(o.items), |
|
|
|
listeners: [ |
|
|
|
value: { |
|
|
|
{ |
|
|
|
type: BI.ButtonGroup.CHOOSE_TYPE_MULTI, |
|
|
|
eventName: BI.ListPane.EVENT_CHANGE, |
|
|
|
value: o.value |
|
|
|
action: function (val) { |
|
|
|
}, |
|
|
|
self.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE, val); |
|
|
|
height: "fill", |
|
|
|
} |
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
eventName: BI.SelectList.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function (val) { |
|
|
|
|
|
|
|
self.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE, val); |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
}, { |
|
|
|
{ |
|
|
|
|
|
|
|
type: "bi.center", |
|
|
|
type: "bi.center", |
|
|
|
cls: "list-view-toolbar bi-high-light bi-split-top", |
|
|
|
cls: "list-view-toolbar bi-high-light bi-split-top", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
@ -127,7 +100,34 @@ BI.TextValueComboPopup = BI.inherit(BI.Pane, { |
|
|
|
isShadowShowingOnSelected: true |
|
|
|
isShadowShowingOnSelected: true |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] : [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: "bi.list_pane", |
|
|
|
|
|
|
|
logic: { |
|
|
|
|
|
|
|
dynamic: true, |
|
|
|
|
|
|
|
innerVgap: 5, |
|
|
|
|
|
|
|
rowSize: ["", "fill"], |
|
|
|
|
|
|
|
verticalAlign: BI.VerticalAlign.Stretch |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
ref: (_ref) => { |
|
|
|
|
|
|
|
this.popup = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
chooseType: o.chooseType, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
items: this._formatItems(o.items), |
|
|
|
|
|
|
|
value: o.value, |
|
|
|
|
|
|
|
height: "fill", |
|
|
|
|
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
eventName: BI.ListPane.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function (val) { |
|
|
|
|
|
|
|
self.fireEvent(BI.TextValueComboPopup.EVENT_CHANGE, val); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|