|
|
@ -35,12 +35,6 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, { |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
|
|
|
|
|
|
|
|
this.header = BI.createWidget(o.sequenceHeaderCreator || { |
|
|
|
|
|
|
|
type: "bi.table_style_cell", |
|
|
|
|
|
|
|
cls: "sequence-table-title-cell bi-border", |
|
|
|
|
|
|
|
styleGetter: o.headerCellStyleGetter, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Number_Index") |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.container = BI.createWidget({ |
|
|
|
this.container = BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
width: 60, |
|
|
|
width: 60, |
|
|
@ -54,13 +48,20 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, { |
|
|
|
items: [this.container] |
|
|
|
items: [this.container] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.headerContainer = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
cls: "bi-border", |
|
|
|
|
|
|
|
width: 58, |
|
|
|
|
|
|
|
scrollable: false |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.layout = BI.createWidget({ |
|
|
|
this.layout = BI.createWidget({ |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.header, |
|
|
|
el: this.headerContainer, |
|
|
|
height: this._getHeaderHeight() |
|
|
|
height: this._getHeaderHeight() - 2 |
|
|
|
}, { |
|
|
|
}, {el: {type: "bi.layout"}, height: 2}, { |
|
|
|
el: this.scrollContainer |
|
|
|
el: this.scrollContainer |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -168,7 +169,7 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_layout: function () { |
|
|
|
_layout: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var headerHeight = this._getHeaderHeight(); |
|
|
|
var headerHeight = this._getHeaderHeight() - 2; |
|
|
|
var items = this.layout.attr("items"); |
|
|
|
var items = this.layout.attr("items"); |
|
|
|
if (o.isNeedFreeze === false) { |
|
|
|
if (o.isNeedFreeze === false) { |
|
|
|
items[0].height = 0; |
|
|
|
items[0].height = 0; |
|
|
@ -217,6 +218,26 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, { |
|
|
|
return Math.max(0, cnt * this.options.rowSize - (this.options.height - this._getHeaderHeight()) + BI.DOM.getScrollWidth()); |
|
|
|
return Math.max(0, cnt * this.options.rowSize - (this.options.height - this._getHeaderHeight()) + BI.DOM.getScrollWidth()); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createHeader: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
element: this.headerContainer, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: o.sequenceHeaderCreator || { |
|
|
|
|
|
|
|
type: "bi.table_style_cell", |
|
|
|
|
|
|
|
cls: "sequence-table-title-cell", |
|
|
|
|
|
|
|
styleGetter: o.headerCellStyleGetter, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Number_Index") |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_calculateChildrenToRender: function () { |
|
|
|
_calculateChildrenToRender: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
@ -322,7 +343,8 @@ BI.SequenceTableTreeNumber = BI.inherit(BI.Widget, { |
|
|
|
task.apply(self); |
|
|
|
task.apply(self); |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.tasks = []; |
|
|
|
this.tasks = []; |
|
|
|
this.header.populate(); |
|
|
|
this.headerContainer.empty(); |
|
|
|
|
|
|
|
this._createHeader(); |
|
|
|
this._layout(); |
|
|
|
this._layout(); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
this._calculateChildrenToRender(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -5595,7 +5617,7 @@ BI.DownListCombo = BI.inherit(BI.Widget, { |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
el: this.popupview, |
|
|
|
el: this.popupview, |
|
|
|
stopPropagation: true, |
|
|
|
stopPropagation: true, |
|
|
|
maxHeight: 400 |
|
|
|
maxHeight: 1000 |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -15746,12 +15768,6 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, { |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedCells = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
this.renderedKeys = []; |
|
|
|
|
|
|
|
|
|
|
|
this.header = BI.createWidget(o.sequenceHeaderCreator || { |
|
|
|
|
|
|
|
type: "bi.table_style_cell", |
|
|
|
|
|
|
|
cls: "sequence-table-title-cell bi-border", |
|
|
|
|
|
|
|
styleGetter: o.headerCellStyleGetter, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Number_Index") |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.container = BI.createWidget({ |
|
|
|
this.container = BI.createWidget({ |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
width: 60, |
|
|
|
width: 60, |
|
|
@ -15765,12 +15781,19 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, { |
|
|
|
items: [this.container] |
|
|
|
items: [this.container] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.headerContainer = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
cls: "bi-border", |
|
|
|
|
|
|
|
width: 58, |
|
|
|
|
|
|
|
scrollable: false |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.layout = BI.createWidget({ |
|
|
|
this.layout = BI.createWidget({ |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: this.header, |
|
|
|
el: this.headerContainer, |
|
|
|
height: o.headerRowSize * o.header.length |
|
|
|
height: o.headerRowSize * o.header.length - 2 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: this.scrollContainer |
|
|
|
el: this.scrollContainer |
|
|
|
}] |
|
|
|
}] |
|
|
@ -15793,6 +15816,26 @@ BI.SequenceTableListNumber = BI.inherit(BI.Widget, { |
|
|
|
this.scrollContainer.element.scrollTop(o.scrollTop); |
|
|
|
this.scrollContainer.element.scrollTop(o.scrollTop); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createHeader: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
element: this.headerContainer, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
el: o.sequenceHeaderCreator || { |
|
|
|
|
|
|
|
type: "bi.table_style_cell", |
|
|
|
|
|
|
|
cls: "sequence-table-title-cell", |
|
|
|
|
|
|
|
styleGetter: o.headerCellStyleGetter, |
|
|
|
|
|
|
|
text: BI.i18nText("BI-Number_Index") |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_calculateChildrenToRender: function () { |
|
|
|
_calculateChildrenToRender: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var scrollTop = BI.clamp(o.scrollTop, 0, o.rowSize * o.items.length - (o.height - o.header.length * o.headerRowSize) + BI.DOM.getScrollWidth()); |
|
|
|
var scrollTop = BI.clamp(o.scrollTop, 0, o.rowSize * o.items.length - (o.height - o.header.length * o.headerRowSize) + BI.DOM.getScrollWidth()); |
|
|
|