|
|
@ -36316,7 +36316,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.element.on("mousemove.title" + this.getName(), function (e) { |
|
|
|
this.element.on("mousemove.title" + this.getName(), function (e) { |
|
|
|
self._e = e; |
|
|
|
self._e = e; |
|
|
|
if (!self.element.__isMouseInBounds__(e)) { |
|
|
|
if (!(self.element.find(e.target).length > 0)) { |
|
|
|
if (BI.isNotNull(self.timeout)) { |
|
|
|
if (BI.isNotNull(self.timeout)) { |
|
|
|
clearTimeout(self.timeout); |
|
|
|
clearTimeout(self.timeout); |
|
|
|
} |
|
|
|
} |
|
|
@ -36605,7 +36605,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.element.on("mouseenter." + this.getName(), function (e) { |
|
|
|
this.element.on("mouseenter." + this.getName(), function (e) { |
|
|
|
if (self.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0) { |
|
|
|
if (self.isEnabled() && !self._hover && (o.isShadowShowingOnSelected || !self.isSelected())) { |
|
|
|
if (self.isEnabled() && !self._hover && (o.isShadowShowingOnSelected || !self.isSelected())) { |
|
|
|
assertMask(); |
|
|
|
assertMask(); |
|
|
|
self.$mask.visible(); |
|
|
|
self.$mask.visible(); |
|
|
@ -36613,7 +36613,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.element.on("mousemove." + this.getName(), function (e) { |
|
|
|
this.element.on("mousemove." + this.getName(), function (e) { |
|
|
|
if (!self.element.__isMouseInBounds__(e)) { |
|
|
|
if (!(self.element.find(e.target).length > 0)) { |
|
|
|
if (self.isEnabled() && !self._hover) { |
|
|
|
if (self.isEnabled() && !self._hover) { |
|
|
|
assertMask(); |
|
|
|
assertMask(); |
|
|
|
self.$mask.invisible(); |
|
|
|
self.$mask.invisible(); |
|
|
@ -36658,7 +36658,7 @@ BI.BasicButton = BI.inherit(BI.Single, { |
|
|
|
// if (e.button === 0) {
|
|
|
|
// if (e.button === 0) {
|
|
|
|
$(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
$(document).bind("mouseup." + self.getName(), function (e) { |
|
|
|
// if (e.button === 0) {
|
|
|
|
// if (e.button === 0) {
|
|
|
|
if (BI.DOM.isExist(self) && !hand.__isMouseInBounds__(e) && mouseDown === true && !selected) { |
|
|
|
if (BI.DOM.isExist(self) && !hand.find(e.target).length > 0 && mouseDown === true && !selected) { |
|
|
|
// self.setSelected(!self.isSelected());
|
|
|
|
// self.setSelected(!self.isSelected());
|
|
|
|
self._trigger(); |
|
|
|
self._trigger(); |
|
|
|
} |
|
|
|
} |
|
|
@ -39079,7 +39079,7 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "click": |
|
|
|
case "click": |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
if (self.combo.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
// if (!o.toggle && self.isViewVisible()) {
|
|
|
|
// if (!o.toggle && self.isViewVisible()) {
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
@ -39105,7 +39105,7 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "click-hover": |
|
|
|
case "click-hover": |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
var debounce = BI.debounce(function (e) { |
|
|
|
if (self.combo.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid()) { |
|
|
|
// if (self.isViewVisible()) {
|
|
|
|
// if (self.isViewVisible()) {
|
|
|
|
// return;
|
|
|
|
// return;
|
|
|
@ -39522,7 +39522,7 @@ BI.Expander = BI.inherit(BI.Widget, { |
|
|
|
case "click": |
|
|
|
case "click": |
|
|
|
if (e) { |
|
|
|
if (e) { |
|
|
|
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { |
|
|
|
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { |
|
|
|
if (self.expander.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.expander.isEnabled() && self.expander.isValid()) { |
|
|
|
o.toggle ? self._toggle() : self._popupView(); |
|
|
|
o.toggle ? self._toggle() : self._popupView(); |
|
|
|
if (self.isExpanded()) { |
|
|
|
if (self.isExpanded()) { |
|
|
@ -40730,7 +40730,7 @@ BI.Switcher = BI.inherit(BI.Widget, { |
|
|
|
default : |
|
|
|
default : |
|
|
|
if (e) { |
|
|
|
if (e) { |
|
|
|
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { |
|
|
|
self.element.off(e + "." + self.getName()).on(e + "." + self.getName(), BI.debounce(function (e) { |
|
|
|
if (self.switcher.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.switcher.find(e.target).length > 0) { |
|
|
|
if (self.isEnabled() && self.switcher.isEnabled()) { |
|
|
|
if (self.isEnabled() && self.switcher.isEnabled()) { |
|
|
|
o.toggle ? self._toggle() : self._popupView(); |
|
|
|
o.toggle ? self._toggle() : self._popupView(); |
|
|
|
if (self.isExpanded()) { |
|
|
|
if (self.isExpanded()) { |
|
|
@ -54676,7 +54676,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, { |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_FOCUS); |
|
|
|
self.fireEvent(BI.TextAreaEditor.EVENT_FOCUS); |
|
|
|
} |
|
|
|
} |
|
|
|
$(document).bind("mousedown." + self.getName(), function (e) { |
|
|
|
$(document).bind("mousedown." + self.getName(), function (e) { |
|
|
|
if (BI.DOM.isExist(self) && !self.element.__isMouseInBounds__(e)) { |
|
|
|
if (BI.DOM.isExist(self) && !(self.element.find(e.target).length > 0)) { |
|
|
|
$(document).unbind("mousedown." + self.getName()); |
|
|
|
$(document).unbind("mousedown." + self.getName()); |
|
|
|
self.content.element.blur(); |
|
|
|
self.content.element.blur(); |
|
|
|
} |
|
|
|
} |
|
|
@ -98652,7 +98652,7 @@ BI.MultiSelectInsertTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.element.click(function (e) { |
|
|
|
this.element.click(function (e) { |
|
|
|
if (self.element.__isMouseInBounds__(e) && !self.numberCounter.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0 && !self.numberCounter.element.find(e.target).length > 0) { |
|
|
|
self.numberCounter.hideView(); |
|
|
|
self.numberCounter.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -99341,7 +99341,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.element.click(function (e) { |
|
|
|
this.element.click(function (e) { |
|
|
|
if (self.element.__isMouseInBounds__(e) && !self.numberCounter.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0 && !self.numberCounter.element.find(e.target).length > 0) { |
|
|
|
self.numberCounter.hideView(); |
|
|
|
self.numberCounter.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -104884,7 +104884,7 @@ BI.SearchMultiSelectTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.element.click(function (e) { |
|
|
|
this.element.click(function (e) { |
|
|
|
if (self.element.__isMouseInBounds__(e) && !self.numberCounter.element.__isMouseInBounds__(e)) { |
|
|
|
if (self.element.find(e.target).length > 0 && !self.numberCounter.element.find(e.target).length > 0) { |
|
|
|
self.numberCounter.hideView(); |
|
|
|
self.numberCounter.hideView(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|