|
|
@ -122,28 +122,29 @@ BI.IntervalSlider = BI.inherit(BI.Single, { |
|
|
|
this._setVisible(false); |
|
|
|
this._setVisible(false); |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.vertical_fill", |
|
|
|
|
|
|
|
rowSize: [30, 30], |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
this._createLabelWrapper(), |
|
|
|
|
|
|
|
{ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
element: this, |
|
|
|
items: [ |
|
|
|
items: [{ |
|
|
|
{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.horizontal", |
|
|
|
items: [{ |
|
|
|
horizontalAlign: "stretch", |
|
|
|
type: "bi.absolute", |
|
|
|
verticalAlign: "middle", |
|
|
|
|
|
|
|
columnSize: ["fill"], |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.track, |
|
|
|
el: this.track, |
|
|
|
width: "100%", |
|
|
|
|
|
|
|
height: c.TRACK_HEIGHT |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}], |
|
|
|
}], |
|
|
|
hgap: 7, |
|
|
|
hgap: 10, |
|
|
|
height: c.TRACK_HEIGHT |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
top: 23, |
|
|
|
inset: 0 |
|
|
|
left: 0, |
|
|
|
|
|
|
|
width: "100%" |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
this._createLabelWrapper(), |
|
|
|
this._createSliderWrapper(), |
|
|
|
this._createSliderWrapper() |
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -225,14 +226,14 @@ BI.IntervalSlider = BI.inherit(BI.Single, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.labelOne, |
|
|
|
el: this.labelOne, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
left: "0%" |
|
|
|
left: 0, |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.labelTwo, |
|
|
|
el: this.labelTwo, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
left: "100%" |
|
|
|
right: 0, |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
}], |
|
|
|
rgap: c.EDITOR_R_GAP, |
|
|
|
rgap: c.EDITOR_R_GAP, |
|
|
@ -248,58 +249,62 @@ BI.IntervalSlider = BI.inherit(BI.Single, { |
|
|
|
var c = this._constant; |
|
|
|
var c = this._constant; |
|
|
|
return { |
|
|
|
return { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.horizontal", |
|
|
|
items: [{ |
|
|
|
horizontalAlign: "stretch", |
|
|
|
|
|
|
|
verticalAlign: "middle", |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
items: [{ |
|
|
|
height: 12, |
|
|
|
|
|
|
|
width: "fill", |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
el: this.sliderOne, |
|
|
|
el: this.sliderOne, |
|
|
|
top: 0, |
|
|
|
top: 1, |
|
|
|
left: "0%" |
|
|
|
bottom: 0, |
|
|
|
}] |
|
|
|
left: 0 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: this.sliderTwo, |
|
|
|
el: this.sliderTwo, |
|
|
|
top: 0, |
|
|
|
top: 1, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
left: "100%" |
|
|
|
left: "100%" |
|
|
|
}] |
|
|
|
} |
|
|
|
}], |
|
|
|
], |
|
|
|
hgap: c.SLIDER_WIDTH_HALF, |
|
|
|
} |
|
|
|
height: c.SLIDER_HEIGHT |
|
|
|
], |
|
|
|
|
|
|
|
hgap: 10, |
|
|
|
}, |
|
|
|
}, |
|
|
|
top: 20, |
|
|
|
inset: 0 |
|
|
|
left: 0, |
|
|
|
|
|
|
|
width: "100%" |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createTrackWrapper: function () { |
|
|
|
_createTrackWrapper: function () { |
|
|
|
return BI.createWidget({ |
|
|
|
return BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.horizontal", |
|
|
|
|
|
|
|
cls: "track-wrapper", |
|
|
|
|
|
|
|
horizontalAlign: "stretch", |
|
|
|
|
|
|
|
verticalAlign: "middle", |
|
|
|
|
|
|
|
columnSize: ["fill"], |
|
|
|
|
|
|
|
scrollx: false, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
items: [{ |
|
|
|
height: 6, |
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.vertical", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.grayTrack, |
|
|
|
el: this.grayTrack, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
width: "100%" |
|
|
|
width: "100%" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: this.blueTrack, |
|
|
|
el: this.blueTrack, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
width: "0%" |
|
|
|
width: "0%" |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
} |
|
|
|
hgap: 8, |
|
|
|
], |
|
|
|
height: 8 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
top: 8, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
width: "100%" |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -551,3 +556,6 @@ BI.IntervalSlider = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.IntervalSlider.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.IntervalSlider.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.interval_slider", BI.IntervalSlider); |
|
|
|
BI.shortcut("bi.interval_slider", BI.IntervalSlider); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(123); |
|
|
|