|
|
@ -97841,7 +97841,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
self._setStartValue(""); |
|
|
|
self._setStartValue(""); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE, function () { |
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_PAUSE, function () { |
|
|
|
// if (this.getSearcher().hasMatched()) {
|
|
|
|
if (this.getSearcher().hasMatched()) { |
|
|
|
var keyword = this.getSearcher().getKeyword(); |
|
|
|
var keyword = this.getSearcher().getKeyword(); |
|
|
|
self._join({ |
|
|
|
self._join({ |
|
|
|
type: BI.Selection.Multi, |
|
|
|
type: BI.Selection.Multi, |
|
|
@ -97857,7 +97857,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
self.populate(); |
|
|
|
self.populate(); |
|
|
|
self._setStartValue(""); |
|
|
|
self._setStartValue(""); |
|
|
|
}); |
|
|
|
}); |
|
|
|
// }
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function (keywords) { |
|
|
|
this.trigger.on(BI.MultiSelectTrigger.EVENT_SEARCHING, function (keywords) { |
|
|
|
var last = BI.last(keywords); |
|
|
|
var last = BI.last(keywords); |
|
|
@ -99374,6 +99374,17 @@ BI.MultiSelectSearchPane = BI.inherit(BI.Widget, { |
|
|
|
height: this.constants.height |
|
|
|
height: this.constants.height |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.addNotMatchTip = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.icon_text_item", |
|
|
|
|
|
|
|
invisible: true, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_Click_To_Add_Text", ""), |
|
|
|
|
|
|
|
cls: "text-add-tip-font", |
|
|
|
|
|
|
|
height: this.constants.height, |
|
|
|
|
|
|
|
handler: function () { |
|
|
|
|
|
|
|
self.fireEvent(BI.MultiSelectSearchPane.EVENT_ADD_ITEM, o.keywordGetter()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.loader = BI.createWidget({ |
|
|
|
this.loader = BI.createWidget({ |
|
|
|
type: "bi.multi_select_search_loader", |
|
|
|
type: "bi.multi_select_search_loader", |
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
keywordGetter: o.keywordGetter, |
|
|
@ -99394,23 +99405,20 @@ BI.MultiSelectSearchPane = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.tooltipClick, |
|
|
|
type: "bi.center_adapt", |
|
|
|
height: 0 |
|
|
|
items: [this.tooltipClick, this.addNotMatchTip], |
|
|
|
|
|
|
|
height: this.constants.height |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: this.loader |
|
|
|
el: this.loader |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.tooltipClick.setVisible(false); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setKeyword: function (keyword) { |
|
|
|
setKeyword: function (keyword) { |
|
|
|
var btn; |
|
|
|
var btn; |
|
|
|
var isVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue()); |
|
|
|
var isMatchTipVisible = this.loader.getAllButtons().length > 0 && (btn = this.loader.getAllButtons()[0]) && (keyword === btn.getValue()); |
|
|
|
if (isVisible !== this.tooltipClick.isVisible()) { |
|
|
|
this.tooltipClick.setVisible(isMatchTipVisible); |
|
|
|
this.tooltipClick.setVisible(isVisible); |
|
|
|
this.addNotMatchTip.setVisible(!isMatchTipVisible); |
|
|
|
this.resizer.attr("items")[0].height = (isVisible ? this.constants.height : 0); |
|
|
|
|
|
|
|
this.resizer.resize(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isAllSelected: function () { |
|
|
|
isAllSelected: function () { |
|
|
@ -99439,6 +99447,7 @@ BI.MultiSelectSearchPane = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
BI.MultiSelectSearchPane.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.MultiSelectSearchPane.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
|
|
|
BI.MultiSelectSearchPane.EVENT_ADD_ITEM = "EVENT_ADD_ITEM"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.multi_select_search_pane", BI.MultiSelectSearchPane);/** |
|
|
|
BI.shortcut("bi.multi_select_search_pane", BI.MultiSelectSearchPane);/** |
|
|
|
* 查看已选按钮 |
|
|
|
* 查看已选按钮 |
|
|
@ -112961,7 +112970,7 @@ BI.i18n = { |
|
|
|
"BI-Basic_April": "四月", |
|
|
|
"BI-Basic_April": "四月", |
|
|
|
"BI-Multi_Date_Quarter_Begin": "季度初", |
|
|
|
"BI-Multi_Date_Quarter_Begin": "季度初", |
|
|
|
"BI-Multi_Date_Week": "周", |
|
|
|
"BI-Multi_Date_Week": "周", |
|
|
|
"BI-Click_Blank_To_Select": "点击\"空格键\"选中匹配项", |
|
|
|
"BI-Click_Blank_To_Select": "点击\"空格键\"选中完全匹配项", |
|
|
|
"BI-Basic_August": "八月", |
|
|
|
"BI-Basic_August": "八月", |
|
|
|
"BI-Word_Align_Left": "文字居左", |
|
|
|
"BI-Word_Align_Left": "文字居左", |
|
|
|
"BI-Basic_November": "十一月", |
|
|
|
"BI-Basic_November": "十一月", |
|
|
@ -113066,5 +113075,6 @@ BI.i18n = { |
|
|
|
"BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值", |
|
|
|
"BI-Basic_Please_Enter_Number_Between": "请输入{R1}-{R2}的值", |
|
|
|
"BI-More_Than": "大于", |
|
|
|
"BI-More_Than": "大于", |
|
|
|
"BI-More_And_Equal": "大于等于", |
|
|
|
"BI-More_And_Equal": "大于等于", |
|
|
|
"BI-Please_Enter_SQL": "请输入SQL" |
|
|
|
"BI-Please_Enter_SQL": "请输入SQL", |
|
|
|
|
|
|
|
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"" |
|
|
|
}; |
|
|
|
}; |