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