|
|
|
@ -40874,7 +40874,7 @@ BI.AllCountPager = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.AllCountPager.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
extraCls: "bi-all-count-pager", |
|
|
|
|
height: 20, |
|
|
|
|
height: 24, |
|
|
|
|
pages: 1, // 必选项
|
|
|
|
|
curr: 1, // 初始化当前页, pages为数字时可用,
|
|
|
|
|
count: 1 // 总行数
|
|
|
|
@ -42796,8 +42796,8 @@ BI.DatePicker = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setValue: function (ob) { |
|
|
|
|
this._year = ob.year; |
|
|
|
|
this._month = ob.month; |
|
|
|
|
this._year = BI.parseInt(ob.year); |
|
|
|
|
this._month = BI.parseInt(ob.month); |
|
|
|
|
this.year.setValue(ob.year); |
|
|
|
|
this.month.setValue(ob.month); |
|
|
|
|
this._checkLeftValid(); |
|
|
|
@ -58744,6 +58744,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectSearchLoader.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-search-loader", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
keywordGetter: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
@ -58758,6 +58759,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_list", |
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
|
element: this, |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
@ -58817,7 +58819,7 @@ BI.SingleSelectSearchLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_createItems: function (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", |
|
|
|
|
logic: { |
|
|
|
|
dynamic: false |
|
|
|
@ -58901,6 +58903,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectSearchPane.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-search-pane bi-card", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
keywordGetter: BI.emptyFn |
|
|
|
@ -58921,6 +58924,7 @@ BI.SingleSelectSearchPane = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.loader = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_search_loader", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
keywordGetter: o.keywordGetter, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
@ -58991,6 +58995,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
height: 24, |
|
|
|
@ -59016,6 +59021,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.single_select_trigger", |
|
|
|
|
height: o.height, |
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
o.itemsCreator(op, function (res) { |
|
|
|
@ -59084,6 +59090,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
adjustLength: 1, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
self.trigger.setAdapter(this); |
|
|
|
@ -59261,6 +59268,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectInsertCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-combo", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
height: 24, |
|
|
|
@ -59285,6 +59293,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_trigger", |
|
|
|
|
height: o.height, |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
@ -59353,6 +59362,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
adjustLength: 1, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.single_select_popup_view", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
ref: function () { |
|
|
|
|
self.popup = this; |
|
|
|
|
self.trigger.setAdapter(this); |
|
|
|
@ -59596,7 +59606,8 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
onLoaded: BI.emptyFn, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.list_pane" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
allowNoSelect: false |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
@ -59607,8 +59618,13 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.list_pane", |
|
|
|
|
items: o.items, |
|
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
|
op.times === 1 && self.toolbar && self.toolbar.setVisible(false); |
|
|
|
|
o.itemsCreator(op, function (items) { |
|
|
|
|
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, |
|
|
|
@ -59628,7 +59644,25 @@ BI.SingleSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend({ |
|
|
|
|
scrolly: true |
|
|
|
|
}, 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) |
|
|
|
|
})))); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
@ -59721,9 +59755,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
logic: { |
|
|
|
|
dynamic: true |
|
|
|
|
}, |
|
|
|
|
el: { |
|
|
|
|
height: 400 |
|
|
|
|
}, |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
onLoaded: BI.emptyFn |
|
|
|
@ -59738,6 +59770,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
this.storeValue = opts.value; |
|
|
|
|
this.button_group = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_list", |
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
|
logic: opts.logic, |
|
|
|
|
el: BI.extend({ |
|
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
@ -59812,7 +59845,7 @@ BI.SingleSelectLoader = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_createItems: function (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, |
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
height: 24, |
|
|
|
@ -59876,6 +59909,7 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectPopupView.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-popup-view", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
maxWidth: "auto", |
|
|
|
|
minWidth: 135, |
|
|
|
|
maxHeight: 400, |
|
|
|
@ -59891,6 +59925,7 @@ BI.SingleSelectPopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.loader = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_loader", |
|
|
|
|
allowNoSelect: opts.allowNoSelect, |
|
|
|
|
itemsCreator: opts.itemsCreator, |
|
|
|
|
valueFormatter: opts.valueFormatter, |
|
|
|
|
onLoaded: opts.onLoaded, |
|
|
|
@ -59959,6 +59994,7 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectTrigger.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-single-select-trigger bi-border", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
searcher: {}, |
|
|
|
@ -59979,6 +60015,7 @@ BI.SingleSelectTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
|
|
|
|
|
this.searcher = BI.createWidget(o.searcher, { |
|
|
|
|
type: "bi.single_select_searcher", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
text: o.text, |
|
|
|
|
height: o.height, |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
@ -60061,6 +60098,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-multi-select-insert-list", |
|
|
|
|
allowNoSelect: false, |
|
|
|
|
itemsCreator: BI.emptyFn, |
|
|
|
|
valueFormatter: BI.emptyFn |
|
|
|
|
}); |
|
|
|
@ -60078,6 +60116,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.adapter = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_loader", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
cls: "popup-single-select-list bi-border-left bi-border-right bi-border-bottom", |
|
|
|
|
itemsCreator: o.itemsCreator, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
@ -60096,6 +60135,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.searcherPane = BI.createWidget({ |
|
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
cls: "bi-border-left bi-border-right bi-border-bottom", |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
keywordGetter: function () { |
|
|
|
@ -60382,7 +60422,8 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
popup: {}, |
|
|
|
|
valueFormatter: BI.emptyFn, |
|
|
|
|
adapter: null, |
|
|
|
|
masker: {} |
|
|
|
|
masker: {}, |
|
|
|
|
allowNoSelect: false |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -60408,6 +60449,7 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
popup: BI.extend({ |
|
|
|
|
type: "bi.single_select_search_pane", |
|
|
|
|
allowNoSelect: o.allowNoSelect, |
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
keywordGetter: function () { |
|
|
|
|
return self.editor.getValue(); |
|
|
|
@ -66476,5 +66518,6 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
"BI-Basic_Please_Select": "请选择", |
|
|
|
|
"BI-Basic_Font_Color": "文字颜色", |
|
|
|
|
"BI-Basic_Background_Color": "背景色", |
|
|
|
|
"BI-Basic_Underline": "下划线" |
|
|
|
|
"BI-Basic_Underline": "下划线", |
|
|
|
|
"BI-Basic_No_Select": "不选" |
|
|
|
|
};BI.resourceURL = "file?path=/com/fr/web/ui/resource"; |