|
|
@ -42305,7 +42305,7 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
shadow: props.clear !== true, |
|
|
|
shadow: props.clear !== true, |
|
|
|
isShadowShowingOnSelected: true, |
|
|
|
isShadowShowingOnSelected: true, |
|
|
|
readonly: true, |
|
|
|
readonly: true, |
|
|
|
iconClass: "", |
|
|
|
iconCls: "", |
|
|
|
level: "common", |
|
|
|
level: "common", |
|
|
|
block: false, // 是否块状显示,即不显示边框,没有最小宽度的限制
|
|
|
|
block: false, // 是否块状显示,即不显示边框,没有最小宽度的限制
|
|
|
|
clear: false, // 是否去掉边框和背景
|
|
|
|
clear: false, // 是否去掉边框和背景
|
|
|
@ -42331,7 +42331,7 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.element.css({lineHeight: o.height + "px"}); |
|
|
|
this.element.css({lineHeight: o.height + "px"}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isKey(o.iconClass)) { |
|
|
|
if (BI.isKey(o.iconCls)) { |
|
|
|
this.icon = BI.createWidget({ |
|
|
|
this.icon = BI.createWidget({ |
|
|
|
type: "bi.icon", |
|
|
|
type: "bi.icon", |
|
|
|
width: 18 |
|
|
|
width: 18 |
|
|
@ -42343,7 +42343,7 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.horizontal_auto", |
|
|
|
type: "bi.horizontal_auto", |
|
|
|
cls: o.iconClass, |
|
|
|
cls: o.iconCls, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -62251,7 +62251,7 @@ BI.IconChangeButton = BI.inherit(BI.Single, { |
|
|
|
var conf = BI.IconChangeButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.IconChangeButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
baseCls: "bi-icon-change-button", |
|
|
|
baseCls: "bi-icon-change-button", |
|
|
|
iconClass: "", |
|
|
|
iconCls: "", |
|
|
|
iconWidth: null, |
|
|
|
iconWidth: null, |
|
|
|
iconHeight: null, |
|
|
|
iconHeight: null, |
|
|
|
|
|
|
|
|
|
|
@ -62276,7 +62276,7 @@ BI.IconChangeButton = BI.inherit(BI.Single, { |
|
|
|
this.button = BI.createWidget({ |
|
|
|
this.button = BI.createWidget({ |
|
|
|
type: "bi.icon_button", |
|
|
|
type: "bi.icon_button", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
cls: o.iconClass, |
|
|
|
cls: o.iconCls, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconWidth: o.iconWidth, |
|
|
|
iconHeight: o.iconHeight, |
|
|
|
iconHeight: o.iconHeight, |
|
|
@ -62313,9 +62313,9 @@ BI.IconChangeButton = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
setIcon: function (cls) { |
|
|
|
setIcon: function (cls) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (o.iconClass !== cls) { |
|
|
|
if (o.iconCls !== cls) { |
|
|
|
this.element.removeClass(o.iconClass).addClass(cls); |
|
|
|
this.element.removeClass(o.iconCls).addClass(cls); |
|
|
|
o.iconClass = cls; |
|
|
|
o.iconCls = cls; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -62464,8 +62464,7 @@ BI.SingleSelectIconTextItem = BI.inherit(BI.Single, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SingleSelectIconTextItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SingleSelectIconTextItem.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
extraCls: "bi-single-select-icon-text-item bi-list-item-active", |
|
|
|
extraCls: "bi-single-select-icon-text-item bi-list-item-active", |
|
|
|
iconClass: "", |
|
|
|
iconCls: "", |
|
|
|
hgap: 10, |
|
|
|
|
|
|
|
height: 25 |
|
|
|
height: 25 |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -62475,7 +62474,7 @@ BI.SingleSelectIconTextItem = BI.inherit(BI.Single, { |
|
|
|
this.text = BI.createWidget({ |
|
|
|
this.text = BI.createWidget({ |
|
|
|
type: "bi.icon_text_item", |
|
|
|
type: "bi.icon_text_item", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
cls: o.iconClass, |
|
|
|
cls: o.iconCls, |
|
|
|
once: o.once, |
|
|
|
once: o.once, |
|
|
|
selected: o.selected, |
|
|
|
selected: o.selected, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -67443,7 +67442,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
baseCls: "bi-icon-combo", |
|
|
|
baseCls: "bi-icon-combo", |
|
|
|
width: 24, |
|
|
|
width: 24, |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
iconClass: "", |
|
|
|
iconCls: "", |
|
|
|
el: {}, |
|
|
|
el: {}, |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
minWidth: 100, |
|
|
|
minWidth: 100, |
|
|
@ -67463,7 +67462,7 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this.trigger = BI.createWidget(o.el, { |
|
|
|
this.trigger = BI.createWidget(o.el, { |
|
|
|
type: "bi.icon_combo_trigger", |
|
|
|
type: "bi.icon_combo_trigger", |
|
|
|
iconClass: o.iconClass, |
|
|
|
iconCls: o.iconCls, |
|
|
|
title: o.title, |
|
|
|
title: o.title, |
|
|
|
items: o.items, |
|
|
|
items: o.items, |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
@ -67600,7 +67599,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
extraCls: "bi-icon-combo-trigger", |
|
|
|
extraCls: "bi-icon-combo-trigger", |
|
|
|
el: {}, |
|
|
|
el: {}, |
|
|
|
items: [], |
|
|
|
items: [], |
|
|
|
iconClass: "", |
|
|
|
iconCls: "", |
|
|
|
width: 25, |
|
|
|
width: 25, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
isShowDown: true |
|
|
|
isShowDown: true |
|
|
@ -67612,7 +67611,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
var o = this.options, self = this; |
|
|
|
var o = this.options, self = this; |
|
|
|
this.button = BI.createWidget(o.el, { |
|
|
|
this.button = BI.createWidget(o.el, { |
|
|
|
type: "bi.icon_change_button", |
|
|
|
type: "bi.icon_change_button", |
|
|
|
cls: "icon-combo-trigger-icon " + o.iconClass, |
|
|
|
cls: "icon-combo-trigger-icon " + o.iconCls, |
|
|
|
disableSelected: true, |
|
|
|
disableSelected: true, |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
@ -67650,7 +67649,7 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
this.options.items = items || []; |
|
|
|
this.options.items = items || []; |
|
|
|
this.button.setIcon(o.iconClass); |
|
|
|
this.button.setIcon(o.iconCls); |
|
|
|
this.button.setSelected(false); |
|
|
|
this.button.setSelected(false); |
|
|
|
this.down.setSelected(false); |
|
|
|
this.down.setSelected(false); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -67658,19 +67657,19 @@ BI.IconComboTrigger = BI.inherit(BI.Trigger, { |
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|
BI.IconComboTrigger.superclass.setValue.apply(this, arguments); |
|
|
|
BI.IconComboTrigger.superclass.setValue.apply(this, arguments); |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var iconClass = ""; |
|
|
|
var iconCls = ""; |
|
|
|
v = BI.isArray(v) ? v[0] : v; |
|
|
|
v = BI.isArray(v) ? v[0] : v; |
|
|
|
if (BI.any(this.options.items, function (i, item) { |
|
|
|
if (BI.any(this.options.items, function (i, item) { |
|
|
|
if (v === item.value) { |
|
|
|
if (v === item.value) { |
|
|
|
iconClass = item.iconClass; |
|
|
|
iconCls = item.iconCls; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
})) { |
|
|
|
})) { |
|
|
|
this.button.setIcon(iconClass); |
|
|
|
this.button.setIcon(iconCls); |
|
|
|
this.button.setSelected(true); |
|
|
|
this.button.setSelected(true); |
|
|
|
this.down.setSelected(true); |
|
|
|
this.down.setSelected(true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.button.setIcon(o.iconClass); |
|
|
|
this.button.setIcon(o.iconCls); |
|
|
|
this.button.setSelected(false); |
|
|
|
this.button.setSelected(false); |
|
|
|
this.down.setSelected(false); |
|
|
|
this.down.setSelected(false); |
|
|
|
} |
|
|
|
} |
|
|
@ -75961,7 +75960,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.icon_change_button", |
|
|
|
type: "bi.icon_change_button", |
|
|
|
cls: "icon-combo-trigger-icon " + o.iconClass, |
|
|
|
cls: "icon-combo-trigger-icon " + o.iconCls, |
|
|
|
ref: function (_ref) { |
|
|
|
ref: function (_ref) { |
|
|
|
self.icon = _ref; |
|
|
|
self.icon = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -76025,7 +76024,7 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
type: "bi.icon_text_trigger", |
|
|
|
type: "bi.icon_text_trigger", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
text: obj.text, |
|
|
|
text: obj.text, |
|
|
|
iconClass: obj.iconClass, |
|
|
|
iconCls: obj.iconCls, |
|
|
|
height: o.height |
|
|
|
height: o.height |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -76039,7 +76038,7 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
if (BI.deepContains(vals, item.value)) { |
|
|
|
if (BI.deepContains(vals, item.value)) { |
|
|
|
result = { |
|
|
|
result = { |
|
|
|
text: item.text || item.value, |
|
|
|
text: item.text || item.value, |
|
|
|
iconClass: item.iconClass |
|
|
|
iconCls: item.iconCls |
|
|
|
}; |
|
|
|
}; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
@ -76048,12 +76047,12 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
if (BI.isNotNull(result)) { |
|
|
|
if (BI.isNotNull(result)) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
text: result.text, |
|
|
|
text: result.text, |
|
|
|
iconClass: result.iconClass |
|
|
|
iconCls: result.iconCls |
|
|
|
}; |
|
|
|
}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return { |
|
|
|
return { |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
iconClass: "" |
|
|
|
iconCls: "" |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -76061,7 +76060,7 @@ BI.SelectIconTextTrigger = BI.inherit(BI.Trigger, { |
|
|
|
setValue: function (vals) { |
|
|
|
setValue: function (vals) { |
|
|
|
var obj = this._digist(vals, this.options.items); |
|
|
|
var obj = this._digist(vals, this.options.items); |
|
|
|
this.trigger.setText(obj.text); |
|
|
|
this.trigger.setText(obj.text); |
|
|
|
this.trigger.setIcon(obj.iconClass); |
|
|
|
this.trigger.setIcon(obj.iconCls); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
@ -79756,8 +79755,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.DownListCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-down-list-combo", |
|
|
|
baseCls: "bi-down-list-combo", |
|
|
|
invalid: false, |
|
|
|
height: 24, |
|
|
|
height: 25, |
|
|
|
|
|
|
|
items: [], |
|
|
|
items: [], |
|
|
|
adjustLength: 0, |
|
|
|
adjustLength: 0, |
|
|
|
direction: "bottom", |
|
|
|
direction: "bottom", |
|
|
@ -89270,12 +89268,12 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconClass: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
|
value: 0 |
|
|
|
value: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "(" + BI.i18nText("BI-Less_And_Equal") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_And_Equal") + ")", |
|
|
|
value: 1, |
|
|
|
value: 1, |
|
|
|
iconClass: "less-equal-font" |
|
|
|
iconCls: "less-equal-font" |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.closemin === true) { |
|
|
|
if (o.closemin === true) { |
|
|
@ -89289,12 +89287,12 @@ BI.NumberInterval = BI.inherit(BI.Single, { |
|
|
|
height: o.height - 2, |
|
|
|
height: o.height - 2, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
iconClass: "less-font", |
|
|
|
iconCls: "less-font", |
|
|
|
value: 0 |
|
|
|
value: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "(" + BI.i18nText("BI-Less_And_Equal") + ")", |
|
|
|
text: "(" + BI.i18nText("BI-Less_And_Equal") + ")", |
|
|
|
value: 1, |
|
|
|
value: 1, |
|
|
|
iconClass: "less-equal-font" |
|
|
|
iconCls: "less-equal-font" |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.closemax === true) { |
|
|
|
if (o.closemax === true) { |
|
|
|