|
|
@ -14351,15 +14351,15 @@ BI.FormulaEditor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_checkWaterMark: function () { |
|
|
|
_checkWaterMark: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (!this.disabledWarterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) { |
|
|
|
if (!this.disabledWaterMark && BI.isEmptyString(this.editor.getValue()) && BI.isKey(o.watermark)) { |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
disableWarterMark: function () { |
|
|
|
disableWaterMark: function () { |
|
|
|
this.disabledWarterMark = true; |
|
|
|
this.disabledWaterMark = true; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -18111,7 +18111,7 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
_checkWaterMark: function () { |
|
|
|
_checkWaterMark: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
if (!this.disabledWarterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) { |
|
|
|
if (!this.disabledWaterMark && this.editor.getValue() === "" && BI.isKey(o.watermark)) { |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
this.watermark && this.watermark.visible(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
|
this.watermark && this.watermark.invisible(); |
|
|
@ -18149,13 +18149,13 @@ BI.Editor = BI.inherit(BI.Single, { |
|
|
|
this._checkError(); |
|
|
|
this._checkError(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
disableWarterMark: function () { |
|
|
|
disableWaterMark: function () { |
|
|
|
this.disabledWarterMark = true; |
|
|
|
this.disabledWaterMark = true; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
enableWarterMark: function () { |
|
|
|
enableWaterMark: function () { |
|
|
|
this.disabledWarterMark = false; |
|
|
|
this.disabledWaterMark = false; |
|
|
|
this._checkWaterMark(); |
|
|
|
this._checkWaterMark(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -30103,6 +30103,41 @@ BI.GridTable = BI.inherit(BI.Widget, { |
|
|
|
this.contextLayout.attr("items", items); |
|
|
|
this.contextLayout.attr("items", items); |
|
|
|
this.contextLayout.resize(); |
|
|
|
this.contextLayout.resize(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.topRightGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.bottomLeftGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.bottomRightGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function overscan(grid, w, h, rSize, cSize) { |
|
|
|
|
|
|
|
var rCount = h / rSize; |
|
|
|
|
|
|
|
var cCount = w / cSize; |
|
|
|
|
|
|
|
if (cCount * (120 / rSize) >= 60 || rCount * (120 / cSize) >= 60) { |
|
|
|
|
|
|
|
grid.attr("overscanRowCount", 100); |
|
|
|
|
|
|
|
grid.attr("overscanColumnCount", 100); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (freezeColLength > 0) { |
|
|
|
|
|
|
|
overscan(this.topLeftGrid, tlw, tlh, o.headerRowSize, totalLeftColumnSize / freezeColLength); |
|
|
|
|
|
|
|
overscan(this.bottomLeftGrid, blw, blh, o.rowSize, totalLeftColumnSize / freezeColLength); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (o.columnSize.length - freezeColLength > 0) { |
|
|
|
|
|
|
|
overscan(this.topRight, trw, trh, o.headerRowSize, totalRightColumnSize / (o.columnSize.length - freezeColLength)); |
|
|
|
|
|
|
|
overscan(this.bottomRightGrid, brw, brh, o.rowSize, totalRightColumnSize / (o.columnSize.length - freezeColLength)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid._populate(this.header[0]); |
|
|
|
this.topLeftGrid._populate(this.header[0]); |
|
|
|
this.topRightGrid._populate(this.header[1]); |
|
|
|
this.topRightGrid._populate(this.header[1]); |
|
|
|
this.bottomLeftGrid._populate(this.items[0]); |
|
|
|
this.bottomLeftGrid._populate(this.items[0]); |
|
|
@ -30329,7 +30364,8 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, { |
|
|
|
|
|
|
|
|
|
|
|
_populateTable: function () { |
|
|
|
_populateTable: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, summaryColumnSizeArray = []; |
|
|
|
var regionSize = this.getRegionSize(), totalLeftColumnSize = 0, totalRightColumnSize = 0, totalColumnSize = 0, |
|
|
|
|
|
|
|
summaryColumnSizeArray = []; |
|
|
|
var freezeColLength = this._getFreezeColLength(); |
|
|
|
var freezeColLength = this._getFreezeColLength(); |
|
|
|
BI.each(o.columnSize, function (i, size) { |
|
|
|
BI.each(o.columnSize, function (i, size) { |
|
|
|
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { |
|
|
|
if (o.isNeedFreeze === true && o.freezeCols.contains(i)) { |
|
|
@ -30420,6 +30456,42 @@ BI.QuickGridTable = BI.inherit(BI.GridTable, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.topRightGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.bottomLeftGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.bottomRightGrid.attr({ |
|
|
|
|
|
|
|
overscanColumnCount: 0, |
|
|
|
|
|
|
|
overscanRowCount: 0 |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function overscan(grid, w, h, rSize, cSize) { |
|
|
|
|
|
|
|
var rCount = h / rSize; |
|
|
|
|
|
|
|
var cCount = w / cSize; |
|
|
|
|
|
|
|
if (cCount * (120 / rSize) >= 60 || rCount * (120 / cSize) >= 60) { |
|
|
|
|
|
|
|
grid.attr("overscanRowCount", 100); |
|
|
|
|
|
|
|
grid.attr("overscanColumnCount", 100); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (freezeColLength > 0) { |
|
|
|
|
|
|
|
overscan(this.topLeftGrid, otlw, otlh, o.headerRowSize, totalLeftColumnSize / freezeColLength); |
|
|
|
|
|
|
|
overscan(this.bottomLeftGrid, oblw, oblh, o.rowSize, totalLeftColumnSize / freezeColLength); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (o.columnSize.length - freezeColLength > 0) { |
|
|
|
|
|
|
|
overscan(this.topRight, otrw, otrh, o.headerRowSize, totalRightColumnSize / (o.columnSize.length - freezeColLength)); |
|
|
|
|
|
|
|
overscan(this.bottomRightGrid, obrw, obrh, o.rowSize, totalRightColumnSize / (o.columnSize.length - freezeColLength)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.topLeftGrid.populate(leftHeader); |
|
|
|
this.topLeftGrid.populate(leftHeader); |
|
|
|
this.topRightGrid.populate(rightHeader); |
|
|
|
this.topRightGrid.populate(rightHeader); |
|
|
|
this.bottomLeftGrid.populate(leftItems); |
|
|
|
this.bottomLeftGrid.populate(leftItems); |
|
|
|