|
|
@ -28751,6 +28751,19 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
e.stopPropagation(); |
|
|
|
e.stopPropagation(); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var enterPopup = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function hide() { |
|
|
|
|
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
|
|
|
|
self._hideView(); |
|
|
|
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
|
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
self.popupView && self.popupView.element.off("mouseenter." + self.getName()).off("mouseleave." + self.getName()); |
|
|
|
|
|
|
|
enterPopup = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BI.each(evs, function (i, ev) { |
|
|
|
BI.each(evs, function (i, ev) { |
|
|
|
switch (ev) { |
|
|
|
switch (ev) { |
|
|
|
case "hover": |
|
|
|
case "hover": |
|
|
@ -28762,11 +28775,18 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
self._hideView(); |
|
|
|
enterPopup = true; |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
hide(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.defer(function () { |
|
|
|
|
|
|
|
if (!enterPopup) { |
|
|
|
|
|
|
|
hide(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, 50); |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "click": |
|
|
|
case "click": |
|
|
@ -28812,11 +28832,18 @@ BI.Combo = BI.inherit(BI.Widget, { |
|
|
|
st(e); |
|
|
|
st(e); |
|
|
|
}); |
|
|
|
}); |
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
self.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
if (self.isEnabled() && self.isValid() && self.combo.isEnabled() && self.combo.isValid() && o.toggle === true) { |
|
|
|
self.popupView.element.on("mouseenter." + self.getName(), function (e) { |
|
|
|
self._hideView(); |
|
|
|
enterPopup = true; |
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.COLLAPSE, "", self.combo); |
|
|
|
self.popupView.element.on("mouseleave." + self.getName(), function (e) { |
|
|
|
self.fireEvent(BI.Combo.EVENT_COLLAPSE); |
|
|
|
hide(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
self.popupView.element.off("mouseenter." + self.getName()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.defer(function () { |
|
|
|
|
|
|
|
if (!enterPopup) { |
|
|
|
|
|
|
|
hide(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, 50); |
|
|
|
}); |
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -67628,6 +67655,8 @@ BI.IconCombo = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
direction: o.direction, |
|
|
|
direction: o.direction, |
|
|
|
|
|
|
|
trigger: o.trigger, |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
adjustLength: o.adjustLength, |
|
|
|
adjustLength: o.adjustLength, |
|
|
|
adjustXOffset: o.adjustXOffset, |
|
|
|
adjustXOffset: o.adjustXOffset, |
|
|
|
adjustYOffset: o.adjustYOffset, |
|
|
|
adjustYOffset: o.adjustYOffset, |
|
|
@ -80817,7 +80846,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
function optimizeSize(s) { |
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -81278,7 +81307,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
function optimizeSize(s) { |
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -92475,7 +92504,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
function optimizeSize(s) { |
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -92776,7 +92805,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
function optimizeSize(s) { |
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -93041,7 +93070,7 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function optimizeSize(s) { |
|
|
|
function optimizeSize(s) { |
|
|
|
return BI.clamp(s, 0, o.width); |
|
|
|
return BI.clamp(s, 0, self._getGrayTrackLength()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|