|
|
|
@ -94460,16 +94460,13 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
TRACK_HEIGHT: 24 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.IntervalSlider.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-interval-slider bi-slider-track", |
|
|
|
|
digit: false, |
|
|
|
|
unit: "" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.IntervalSlider.superclass._init.apply(this, arguments); |
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
|
|
var self = this; |
|
|
|
|
var c = this._constant; |
|
|
|
@ -94559,7 +94556,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
this._draggable(this.sliderTwo, false); |
|
|
|
|
this._setVisible(false); |
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
@ -94583,7 +94580,7 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
this._createLabelWrapper(), |
|
|
|
|
this._createSliderWrapper() |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_rePosBySizeAfterMove: function (size, isLeft) { |
|
|
|
@ -94894,6 +94891,11 @@ BI.IntervalSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
return value; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setEnable: function (b) { |
|
|
|
|
BI.IntervalSlider.superclass._setEnable.apply(this, [b]); |
|
|
|
|
this.blueTrack && this.blueTrack.setVisible(!!b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
if (this.valueOne <= this.valueTwo) { |
|
|
|
|
return {min: this.valueOne, max: this.valueTwo}; |
|
|
|
@ -106855,16 +106857,14 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
SLIDER_HEIGHT: 30, |
|
|
|
|
TRACK_HEIGHT: 24 |
|
|
|
|
}, |
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SingleSlider.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
baseCls: "bi-single-slider bi-slider-track", |
|
|
|
|
digit: false, |
|
|
|
|
unit: "" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
BI.SingleSlider.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
var c = this._constant; |
|
|
|
|
this.enable = false; |
|
|
|
@ -106944,9 +106944,8 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.SingleSlider.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
this._setVisible(false); |
|
|
|
|
BI.createWidget({ |
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
@ -106983,7 +106982,7 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
left: 0, |
|
|
|
|
width: "100%" |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_draggable: function (widget) { |
|
|
|
@ -107137,6 +107136,11 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setEnable: function (b) { |
|
|
|
|
BI.SingleSlider.superclass._setEnable.apply(this, [b]); |
|
|
|
|
this.blueTrack && this.blueTrack.setVisible(!!b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setMinAndMax: function (v) { |
|
|
|
|
var minNumber = BI.parseFloat(v.min); |
|
|
|
|
var maxNumber = BI.parseFloat(v.max); |
|
|
|
@ -107417,6 +107421,11 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
|
|
|
|
|
return (v - this.min) * 100 / (this.max - this.min); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setEnable: function (b) { |
|
|
|
|
BI.SingleSliderLabel.superclass._setEnable.apply(this, [b]); |
|
|
|
|
this.blueTrack && this.blueTrack.setVisible(!!b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.value; |
|
|
|
|
}, |
|
|
|
@ -107695,6 +107704,11 @@ BI.SingleSliderNormal = BI.inherit(BI.Widget, {
|
|
|
|
|
return (v - this.min) * 100 / (this.max - this.min); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_setEnable: function (b) { |
|
|
|
|
BI.SingleSliderNormal.superclass._setEnable.apply(this, [b]); |
|
|
|
|
this.blueTrack && this.blueTrack.setVisible(!!b); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.value; |
|
|
|
|
}, |
|
|
|
|