|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
@ -83292,7 +83307,8 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/** |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.elm.element.css({ |
|
|
|
this.elm.element.css({ |
|
|
|
minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, |
|
|
|
minHeight: BI.isNumber(o.height) ? (o.height - 8) + "px" : o.height, |
|
|
|
outline: "none" |
|
|
|
outline: "none", |
|
|
|
|
|
|
|
padding: "0 10px" |
|
|
|
}).html(o.value); |
|
|
|
}).html(o.value); |
|
|
|
|
|
|
|
|
|
|
|
if(o.readOnly) { |
|
|
|
if(o.readOnly) { |
|
|
@ -89810,7 +89826,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 |
|
|
|
}), |
|
|
|
}), |
|
|
@ -97647,7 +97663,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(); |
|
|
@ -98029,7 +98050,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(); |
|
|
@ -98399,7 +98425,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(); |
|
|
@ -101470,6 +101501,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; |
|
|
|
} |
|
|
|
} |
|
|
@ -101482,6 +101514,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); |
|
|
@ -105263,7 +105296,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(); |
|
|
|