|
|
@ -52459,6 +52459,7 @@ BI.shortcut("bi.image_button", BI.ImageButton);(function ($) { |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
baseCls: (conf.baseCls || "") + " bi-button", |
|
|
|
baseCls: (conf.baseCls || "") + " bi-button", |
|
|
|
minWidth: (props.block === true || props.clear === true) ? 0 : 80, |
|
|
|
minWidth: (props.block === true || props.clear === true) ? 0 : 80, |
|
|
|
|
|
|
|
height: 24, |
|
|
|
shadow: props.clear !== true, |
|
|
|
shadow: props.clear !== true, |
|
|
|
isShadowShowingOnSelected: true, |
|
|
|
isShadowShowingOnSelected: true, |
|
|
|
readonly: true, |
|
|
|
readonly: true, |
|
|
@ -72607,19 +72608,31 @@ BI.shortcut("bi.half_icon_button", BI.HalfIconButton);/** |
|
|
|
* Created by GUY on 2015/9/16. |
|
|
|
* Created by GUY on 2015/9/16. |
|
|
|
* @class BI.TriggerIconButton |
|
|
|
* @class BI.TriggerIconButton |
|
|
|
* @extends BI.IconButton |
|
|
|
* @extends BI.IconButton |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* attention: 不要加invisible, 不要单独拿出去用 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
BI.TriggerIconButton = BI.inherit(BI.IconButton, { |
|
|
|
BI.TriggerIconButton = BI.inherit(BI.BasicButton, { |
|
|
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button", |
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button" |
|
|
|
extraCls: "pull-down-font" |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments); |
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
element: this, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
|
|
|
cls: "pull-down-font trigger-down" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
|
|
|
cls: "pull-up-font trigger-up" |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
doClick: function () { |
|
|
@ -78594,10 +78607,12 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW, |
|
|
|
eventName: BI.Combo.EVENT_AFTER_HIDEVIEW, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
self.trigger.stopEditing(); |
|
|
|
self.trigger.stopEditing(); |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
eventName: BI.Combo.EVENT_BEFORE_POPUPVIEW, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
self.fireEvent(BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
self.fireEvent(BI.SearchTextValueCombo.EVENT_BEFORE_POPUPVIEW); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
@ -89820,7 +89835,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, { |
|
|
|
stopPropagation: o.stopPropagation, |
|
|
|
stopPropagation: o.stopPropagation, |
|
|
|
el: BI.createWidget(o.el, { |
|
|
|
el: BI.createWidget(o.el, { |
|
|
|
type: "bi.icon_trigger", |
|
|
|
type: "bi.icon_trigger", |
|
|
|
extraCls: o.iconCls ? o.iconCls : "pull-down-font", |
|
|
|
extraCls: o.iconCls ? o.iconCls : "", |
|
|
|
width: o.width, |
|
|
|
width: o.width, |
|
|
|
height: o.height |
|
|
|
height: o.height |
|
|
|
}), |
|
|
|
}), |
|
|
@ -97657,7 +97672,12 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
self.populate(); |
|
|
|
self.populate(); |
|
|
@ -98039,7 +98059,12 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
self.populate(); |
|
|
|
self.populate(); |
|
|
@ -98409,7 +98434,12 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
self.populate(); |
|
|
|
self.populate(); |
|
|
@ -101480,6 +101510,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
if (isSearching()) { |
|
|
|
if (isSearching()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -101492,6 +101523,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
if (isSearching()) { |
|
|
|
if (isSearching()) { |
|
|
|
self.trigger.stopEditing(); |
|
|
|
self.trigger.stopEditing(); |
|
|
|
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); |
|
|
|
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); |
|
|
@ -105273,7 +105305,12 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
|
|
|
self.element.removeClass("combo-show").addClass("combo-show"); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
this.setValue(self.storeValue); |
|
|
|
BI.nextTick(function () { |
|
|
|
BI.nextTick(function () { |
|
|
|
self.populate(); |
|
|
|
self.populate(); |
|
|
|