|
|
@ -40874,7 +40874,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
extraCls: "bi-all-count-pager", |
|
|
|
extraCls: "bi-all-count-pager", |
|
|
|
height: 20, |
|
|
|
height: 24, |
|
|
|
pages: 1, // 必选项
|
|
|
|
pages: 1, // 必选项
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
count: 1 // 总行数
|
|
|
|
count: 1 // 总行数
|
|
|
@ -42796,8 +42796,8 @@ BI.DatePicker = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (ob) { |
|
|
|
setValue: function (ob) { |
|
|
|
this._year = ob.year; |
|
|
|
this._year = BI.parseInt(ob.year); |
|
|
|
this._month = ob.month; |
|
|
|
this._month = BI.parseInt(ob.month); |
|
|
|
this.year.setValue(ob.year); |
|
|
|
this.year.setValue(ob.year); |
|
|
|
this.month.setValue(ob.month); |
|
|
|
this.month.setValue(ob.month); |
|
|
|
this._checkLeftValid(); |
|
|
|
this._checkLeftValid(); |
|
|
@ -58744,6 +58744,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectSearchLoader.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectSearchLoader.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-search-loader", |
|
|
|
baseCls: "bi-single-select-search-loader", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
keywordGetter: BI.emptyFn, |
|
|
|
keywordGetter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
valueFormatter: BI.emptyFn |
|
|
@ -58758,6 +58759,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
type: "bi.single_select_list", |
|
|
|
type: "bi.single_select_list", |
|
|
|
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
@ -58817,7 +58819,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_createItems: function (items) { |
|
|
|
_createItems: function (items) { |
|
|
|
return BI.createItems(items, { |
|
|
|
return BI.createItems(items, { |
|
|
|
type: "bi.single_select_combo_item", |
|
|
|
type: this.options.allowNoSelect ? "bi.single_select_item" : "bi.single_select_combo_item", |
|
|
|
cls: "bi-list-item-active", |
|
|
|
cls: "bi-list-item-active", |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: false |
|
|
|
dynamic: false |
|
|
@ -58901,6 +58903,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectSearchPane.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectSearchPane.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-search-pane bi-card", |
|
|
|
baseCls: "bi-single-select-search-pane bi-card", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
keywordGetter: BI.emptyFn |
|
|
|
keywordGetter: BI.emptyFn |
|
|
@ -58921,6 +58924,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.loader = BI.createWidget({ |
|
|
|
this.loader = BI.createWidget({ |
|
|
|
type: "bi.single_select_search_loader", |
|
|
|
type: "bi.single_select_search_loader", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
@ -58991,6 +58995,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
@ -59016,6 +59021,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
type: "bi.single_select_trigger", |
|
|
|
type: "bi.single_select_trigger", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
o.itemsCreator(op, function (res) { |
|
|
|
o.itemsCreator(op, function (res) { |
|
|
@ -59084,6 +59090,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.popup = this; |
|
|
|
self.popup = this; |
|
|
|
self.trigger.setAdapter(this); |
|
|
|
self.trigger.setAdapter(this); |
|
|
@ -59261,6 +59268,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectInsertCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectInsertCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
@ -59285,6 +59293,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.single_select_trigger", |
|
|
|
type: "bi.single_select_trigger", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
@ -59353,6 +59362,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.popup = this; |
|
|
|
self.popup = this; |
|
|
|
self.trigger.setAdapter(this); |
|
|
|
self.trigger.setAdapter(this); |
|
|
@ -59582,7 +59592,7 @@ BI.shortcut("bi.single_select_combo_item", BI.SingleSelectComboItem);/** |
|
|
|
* @extends BI.Widget |
|
|
|
* @extends BI.Widget |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.SingleSelectList = BI.inherit(BI.Widget, { |
|
|
|
BI.SingleSelectList = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-select-list", |
|
|
|
baseCls: "bi-select-list", |
|
|
@ -59596,26 +59606,32 @@ BI.SingleSelectList = BI.inherit(BI.Widget, { |
|
|
|
onLoaded: BI.emptyFn, |
|
|
|
onLoaded: BI.emptyFn, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.list_pane" |
|
|
|
type: "bi.list_pane" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
allowNoSelect: false |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.SingleSelectList.superclass._init.apply(this, arguments); |
|
|
|
BI.SingleSelectList.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
this.list = BI.createWidget(o.el, { |
|
|
|
this.list = BI.createWidget(o.el, { |
|
|
|
type: "bi.list_pane", |
|
|
|
type: "bi.list_pane", |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
|
|
|
op.times === 1 && self.toolbar && self.toolbar.setVisible(false); |
|
|
|
o.itemsCreator(op, function (items) { |
|
|
|
o.itemsCreator(op, function (items) { |
|
|
|
callback.apply(self, arguments); |
|
|
|
callback.apply(self, arguments); |
|
|
|
|
|
|
|
if (op.times === 1) { |
|
|
|
|
|
|
|
self.toolbar && self.toolbar.setVisible(items && items.length > 0); |
|
|
|
|
|
|
|
self.toolbar && self.toolbar.setEnable(items && items.length > 0); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoaded: o.onLoaded, |
|
|
|
onLoaded: o.onLoaded, |
|
|
|
hasNext: o.hasNext, |
|
|
|
hasNext: o.hasNext, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.list.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
this.list.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
self.fireEvent(BI.SingleSelectList.EVENT_CHANGE, value, obj); |
|
|
|
self.fireEvent(BI.SingleSelectList.EVENT_CHANGE, value, obj); |
|
|
@ -59628,80 +59644,98 @@ BI.SingleSelectList = BI.inherit(BI.Widget, { |
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({ |
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({ |
|
|
|
scrolly: true |
|
|
|
scrolly: true |
|
|
|
}, o.logic, { |
|
|
|
}, o.logic, { |
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.list) |
|
|
|
items: o.allowNoSelect ? BI.LogicFactory.createLogicItemsByDirection(o.direction, { |
|
|
|
|
|
|
|
type: "bi.single_select_item", |
|
|
|
|
|
|
|
height: 24, |
|
|
|
|
|
|
|
forceNotSelected: true, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Basic_No_Select"), |
|
|
|
|
|
|
|
ref: function (_ref) { |
|
|
|
|
|
|
|
self.toolbar = _ref; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
listeners: [{ |
|
|
|
|
|
|
|
eventName: BI.Controller.EVENT_CHANGE, |
|
|
|
|
|
|
|
action: function (type) { |
|
|
|
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
|
|
|
self.list.setValue(); |
|
|
|
|
|
|
|
self.fireEvent(BI.SingleSelectList.EVENT_CHANGE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, this.list) : BI.LogicFactory.createLogicItemsByDirection(o.direction, this.list) |
|
|
|
})))); |
|
|
|
})))); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
hasPrev: function () { |
|
|
|
hasPrev: function () { |
|
|
|
return this.list.hasPrev(); |
|
|
|
return this.list.hasPrev(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
hasNext: function () { |
|
|
|
hasNext: function () { |
|
|
|
return this.list.hasNext(); |
|
|
|
return this.list.hasNext(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
prependItems: function (items) { |
|
|
|
prependItems: function (items) { |
|
|
|
this.list.prependItems.apply(this.list, arguments); |
|
|
|
this.list.prependItems.apply(this.list, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
addItems: function (items) { |
|
|
|
addItems: function (items) { |
|
|
|
this.list.addItems.apply(this.list, arguments); |
|
|
|
this.list.addItems.apply(this.list, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
this.list.setValue([v]); |
|
|
|
this.list.setValue([v]); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
getValue: function () { |
|
|
|
return this.list.getValue()[0]; |
|
|
|
return this.list.getValue()[0]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
empty: function () { |
|
|
|
this.list.empty(); |
|
|
|
this.list.empty(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
this.list.populate.apply(this.list, arguments); |
|
|
|
this.list.populate.apply(this.list, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
resetHeight: function (h) { |
|
|
|
resetHeight: function (h) { |
|
|
|
this.list.resetHeight ? this.list.resetHeight(h) : |
|
|
|
this.list.resetHeight ? this.list.resetHeight(h) : |
|
|
|
this.list.element.css({"max-height": h + "px"}); |
|
|
|
this.list.element.css({"max-height": h + "px"}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setNotSelectedValue: function () { |
|
|
|
setNotSelectedValue: function () { |
|
|
|
this.list.setNotSelectedValue.apply(this.list, arguments); |
|
|
|
this.list.setNotSelectedValue.apply(this.list, arguments); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNotSelectedValue: function () { |
|
|
|
getNotSelectedValue: function () { |
|
|
|
return this.list.getNotSelectedValue(); |
|
|
|
return this.list.getNotSelectedValue(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllButtons: function () { |
|
|
|
getAllButtons: function () { |
|
|
|
return this.list.getAllButtons(); |
|
|
|
return this.list.getAllButtons(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getAllLeaves: function () { |
|
|
|
getAllLeaves: function () { |
|
|
|
return this.list.getAllLeaves(); |
|
|
|
return this.list.getAllLeaves(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getSelectedButtons: function () { |
|
|
|
getSelectedButtons: function () { |
|
|
|
return this.list.getSelectedButtons(); |
|
|
|
return this.list.getSelectedButtons(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNotSelectedButtons: function () { |
|
|
|
getNotSelectedButtons: function () { |
|
|
|
return this.list.getNotSelectedButtons(); |
|
|
|
return this.list.getNotSelectedButtons(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getIndexByValue: function (value) { |
|
|
|
getIndexByValue: function (value) { |
|
|
|
return this.list.getIndexByValue(value); |
|
|
|
return this.list.getIndexByValue(value); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNodeById: function (id) { |
|
|
|
getNodeById: function (id) { |
|
|
|
return this.list.getNodeById(id); |
|
|
|
return this.list.getNodeById(id); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getNodeByValue: function (value) { |
|
|
|
getNodeByValue: function (value) { |
|
|
|
return this.list.getNodeByValue(value); |
|
|
|
return this.list.getNodeByValue(value); |
|
|
|
} |
|
|
|
} |
|
|
@ -59721,9 +59755,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
logic: { |
|
|
|
logic: { |
|
|
|
dynamic: true |
|
|
|
dynamic: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
el: { |
|
|
|
allowNoSelect: false, |
|
|
|
height: 400 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
onLoaded: BI.emptyFn |
|
|
|
onLoaded: BI.emptyFn |
|
|
@ -59738,6 +59770,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
this.storeValue = opts.value; |
|
|
|
this.storeValue = opts.value; |
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
type: "bi.single_select_list", |
|
|
|
type: "bi.single_select_list", |
|
|
|
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
logic: opts.logic, |
|
|
|
logic: opts.logic, |
|
|
|
el: BI.extend({ |
|
|
|
el: BI.extend({ |
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
onLoaded: opts.onLoaded, |
|
|
@ -59812,7 +59845,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_createItems: function (items) { |
|
|
|
_createItems: function (items) { |
|
|
|
return BI.createItems(items, { |
|
|
|
return BI.createItems(items, { |
|
|
|
type: "bi.single_select_combo_item", |
|
|
|
type: this.options.allowNoSelect ? "bi.single_select_item" : "bi.single_select_combo_item", |
|
|
|
logic: this.options.logic, |
|
|
|
logic: this.options.logic, |
|
|
|
cls: "bi-list-item-active", |
|
|
|
cls: "bi-list-item-active", |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
@ -59876,6 +59909,7 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectPopupView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectPopupView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-popup-view", |
|
|
|
baseCls: "bi-single-select-popup-view", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
maxWidth: "auto", |
|
|
|
maxWidth: "auto", |
|
|
|
minWidth: 135, |
|
|
|
minWidth: 135, |
|
|
|
maxHeight: 400, |
|
|
|
maxHeight: 400, |
|
|
@ -59891,6 +59925,7 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.loader = BI.createWidget({ |
|
|
|
this.loader = BI.createWidget({ |
|
|
|
type: "bi.single_select_loader", |
|
|
|
type: "bi.single_select_loader", |
|
|
|
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
itemsCreator: opts.itemsCreator, |
|
|
|
itemsCreator: opts.itemsCreator, |
|
|
|
valueFormatter: opts.valueFormatter, |
|
|
|
valueFormatter: opts.valueFormatter, |
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
onLoaded: opts.onLoaded, |
|
|
@ -59959,6 +59994,7 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectTrigger.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectTrigger.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-single-select-trigger bi-border", |
|
|
|
baseCls: "bi-single-select-trigger bi-border", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
searcher: {}, |
|
|
|
searcher: {}, |
|
|
@ -59979,6 +60015,7 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
this.searcher = BI.createWidget(o.searcher, { |
|
|
|
this.searcher = BI.createWidget(o.searcher, { |
|
|
|
type: "bi.single_select_searcher", |
|
|
|
type: "bi.single_select_searcher", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
@ -60061,6 +60098,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-multi-select-insert-list", |
|
|
|
baseCls: "bi-multi-select-insert-list", |
|
|
|
|
|
|
|
allowNoSelect: false, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
}); |
|
|
|
}); |
|
|
@ -60078,6 +60116,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.adapter = BI.createWidget({ |
|
|
|
this.adapter = BI.createWidget({ |
|
|
|
type: "bi.single_select_loader", |
|
|
|
type: "bi.single_select_loader", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
cls: "popup-single-select-list bi-border-left bi-border-right bi-border-bottom", |
|
|
|
cls: "popup-single-select-list bi-border-left bi-border-right bi-border-bottom", |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
@ -60096,6 +60135,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.searcherPane = BI.createWidget({ |
|
|
|
this.searcherPane = BI.createWidget({ |
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
cls: "bi-border-left bi-border-right bi-border-bottom", |
|
|
|
cls: "bi-border-left bi-border-right bi-border-bottom", |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
keywordGetter: function () { |
|
|
|
keywordGetter: function () { |
|
|
@ -60382,7 +60422,8 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, { |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
adapter: null, |
|
|
|
adapter: null, |
|
|
|
masker: {} |
|
|
|
masker: {}, |
|
|
|
|
|
|
|
allowNoSelect: false |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -60408,6 +60449,7 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
popup: BI.extend({ |
|
|
|
popup: BI.extend({ |
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
keywordGetter: function () { |
|
|
|
keywordGetter: function () { |
|
|
|
return self.editor.getValue(); |
|
|
|
return self.editor.getValue(); |
|
|
@ -66476,5 +66518,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
"BI-Basic_Please_Select": "请选择", |
|
|
|
"BI-Basic_Please_Select": "请选择", |
|
|
|
"BI-Basic_Font_Color": "文字颜色", |
|
|
|
"BI-Basic_Font_Color": "文字颜色", |
|
|
|
"BI-Basic_Background_Color": "背景色", |
|
|
|
"BI-Basic_Background_Color": "背景色", |
|
|
|
"BI-Basic_Underline": "下划线" |
|
|
|
"BI-Basic_Underline": "下划线", |
|
|
|
|
|
|
|
"BI-Basic_No_Select": "不选" |
|
|
|
};BI.resourceURL = "file?path=/com/fr/web/ui/resource"; |
|
|
|
};BI.resourceURL = "file?path=/com/fr/web/ui/resource"; |