|
|
@ -26,43 +26,26 @@ BI.DateInterval = BI.inherit(BI.Single, { |
|
|
|
o.value = o.value || {}; |
|
|
|
o.value = o.value || {}; |
|
|
|
this.left = this._createCombo(o.value.start, o.watermark?.start); |
|
|
|
this.left = this._createCombo(o.value.start, o.watermark?.start); |
|
|
|
this.right = this._createCombo(o.value.end, o.watermark?.end); |
|
|
|
this.right = this._createCombo(o.value.end, o.watermark?.end); |
|
|
|
this.label = BI.createWidget({ |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.horizontal_fill", |
|
|
|
|
|
|
|
columnSize: ["fill", "", "fill"], |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: self.left |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: o.height, |
|
|
|
height: o.height, |
|
|
|
width: this.constants.width, |
|
|
|
hgap: 5, |
|
|
|
text: "-" |
|
|
|
text: "-", |
|
|
|
}); |
|
|
|
ref: function (_ref) { |
|
|
|
BI.createWidget({ |
|
|
|
self.label = _ref; |
|
|
|
element: self, |
|
|
|
} |
|
|
|
type: "bi.center", |
|
|
|
} |
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: self.left, |
|
|
|
|
|
|
|
left: this.constants.offset, |
|
|
|
|
|
|
|
right: this.constants.width / 2, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.absolute", |
|
|
|
el: self.right |
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: self.right, |
|
|
|
|
|
|
|
left: this.constants.width / 2, |
|
|
|
|
|
|
|
right: this.constants.offset, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}] |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
|
|
|
element: this, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
self.label |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createCombo: function (v, watermark) { |
|
|
|
_createCombo: function (v, watermark) { |
|
|
|