|
|
@ -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({ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
return { |
|
|
|
height: o.height, |
|
|
|
type: "bi.horizontal_fill", |
|
|
|
width: this.constants.width, |
|
|
|
columnSize: ["fill", "", "fill"], |
|
|
|
text: "-" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
element: self, |
|
|
|
|
|
|
|
type: "bi.center", |
|
|
|
|
|
|
|
height: o.height, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.absolute", |
|
|
|
el: self.left |
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: self.left, |
|
|
|
|
|
|
|
left: this.constants.offset, |
|
|
|
|
|
|
|
right: this.constants.width / 2, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.absolute", |
|
|
|
el: { |
|
|
|
items: [{ |
|
|
|
type: "bi.label", |
|
|
|
el: self.right, |
|
|
|
height: o.height, |
|
|
|
left: this.constants.width / 2, |
|
|
|
hgap: 5, |
|
|
|
right: this.constants.offset, |
|
|
|
text: "-", |
|
|
|
top: 0, |
|
|
|
ref: function (_ref) { |
|
|
|
bottom: 0 |
|
|
|
self.label = _ref; |
|
|
|
}] |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: self.right |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}; |
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
|
|
|
element: this, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
self.label |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createCombo: function (v, watermark) { |
|
|
|
_createCombo: function (v, watermark) { |
|
|
|