From 4987a3ae29ef0a7a5259b39bb314e6ef564b9f40 Mon Sep 17 00:00:00 2001 From: Vegar ringdal Date: Fri, 1 Sep 2017 16:33:52 +0200 Subject: [PATCH] chore(all) new build --- dist/amd/grid/contextMenu.js | 2 +- dist/amd/grid/controller.js | 2 +- dist/amd/grid/rowScrollEvents.js | 5 +++-- dist/commonjs/grid/contextMenu.js | 2 +- dist/commonjs/grid/controller.js | 2 +- dist/commonjs/grid/rowScrollEvents.js | 5 +++-- dist/es2015/grid/contextMenu.js | 2 +- dist/es2015/grid/controller.js | 2 +- dist/es2015/grid/rowScrollEvents.js | 5 +++-- dist/system/grid/contextMenu.js | 2 +- dist/system/grid/controller.js | 2 +- dist/system/grid/rowScrollEvents.js | 5 +++-- package.json | 2 +- 13 files changed, 21 insertions(+), 17 deletions(-) diff --git a/dist/amd/grid/contextMenu.js b/dist/amd/grid/contextMenu.js index 2b82d10c..62421373 100644 --- a/dist/amd/grid/contextMenu.js +++ b/dist/amd/grid/contextMenu.js @@ -124,7 +124,7 @@ define(["require", "exports", "aurelia-framework"], function (require, exports, }; ContextMenu.prototype.updateMenuStrings = function (key, text) { if (this.menuStrings[key]) { - this.menuStrings[key] = text; + this.menuStrings[key] = text || this.menuStrings[key]; } }; ContextMenu.prototype.closeMenuEvent = function () { diff --git a/dist/amd/grid/controller.js b/dist/amd/grid/controller.js index b1a41d35..645e98fa 100644 --- a/dist/amd/grid/controller.js +++ b/dist/amd/grid/controller.js @@ -80,7 +80,7 @@ define(["require", "exports"], function (require, exports) { if (this.attI18N) { keys.forEach(function (key) { if (_this.vGrid.filterOperatorTranslationKeys[key]) { - _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key); + _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key) || _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]]; } _this.contextMenu.updateMenuStrings(key, _this.attI18N(key)); }); diff --git a/dist/amd/grid/rowScrollEvents.js b/dist/amd/grid/rowScrollEvents.js index 8dbae45a..5d0d06b1 100644 --- a/dist/amd/grid/rowScrollEvents.js +++ b/dist/amd/grid/rowScrollEvents.js @@ -274,8 +274,9 @@ define(["require", "exports"], function (require, exports) { }; var setBefore = function (no) { var row = _this.rowCache[no]; - _this.setRowHeight(row, currentRow); - firstRowTop = firstRowTop - rowHeightState.rows[currentRow]; + firstRow--; + firstRowTop = firstRowTop - rowHeightState.rows[firstRow]; + _this.setRowHeight(row, rowHeightState.top[firstRow]); _this.setRowTopValueVariableRowHeight(row, firstRowTop); }; var setHiddenFromView = function (no) { diff --git a/dist/commonjs/grid/contextMenu.js b/dist/commonjs/grid/contextMenu.js index b4d07a8c..766e7187 100644 --- a/dist/commonjs/grid/contextMenu.js +++ b/dist/commonjs/grid/contextMenu.js @@ -124,7 +124,7 @@ var ContextMenu = (function () { }; ContextMenu.prototype.updateMenuStrings = function (key, text) { if (this.menuStrings[key]) { - this.menuStrings[key] = text; + this.menuStrings[key] = text || this.menuStrings[key]; } }; ContextMenu.prototype.closeMenuEvent = function () { diff --git a/dist/commonjs/grid/controller.js b/dist/commonjs/grid/controller.js index 77c67866..05d88dea 100644 --- a/dist/commonjs/grid/controller.js +++ b/dist/commonjs/grid/controller.js @@ -79,7 +79,7 @@ var Controller = (function () { if (this.attI18N) { keys.forEach(function (key) { if (_this.vGrid.filterOperatorTranslationKeys[key]) { - _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key); + _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key) || _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]]; } _this.contextMenu.updateMenuStrings(key, _this.attI18N(key)); }); diff --git a/dist/commonjs/grid/rowScrollEvents.js b/dist/commonjs/grid/rowScrollEvents.js index 2f525c87..6cff69b1 100644 --- a/dist/commonjs/grid/rowScrollEvents.js +++ b/dist/commonjs/grid/rowScrollEvents.js @@ -273,8 +273,9 @@ var RowScrollEvents = (function () { }; var setBefore = function (no) { var row = _this.rowCache[no]; - _this.setRowHeight(row, currentRow); - firstRowTop = firstRowTop - rowHeightState.rows[currentRow]; + firstRow--; + firstRowTop = firstRowTop - rowHeightState.rows[firstRow]; + _this.setRowHeight(row, rowHeightState.top[firstRow]); _this.setRowTopValueVariableRowHeight(row, firstRowTop); }; var setHiddenFromView = function (no) { diff --git a/dist/es2015/grid/contextMenu.js b/dist/es2015/grid/contextMenu.js index 2b82d10c..62421373 100644 --- a/dist/es2015/grid/contextMenu.js +++ b/dist/es2015/grid/contextMenu.js @@ -124,7 +124,7 @@ define(["require", "exports", "aurelia-framework"], function (require, exports, }; ContextMenu.prototype.updateMenuStrings = function (key, text) { if (this.menuStrings[key]) { - this.menuStrings[key] = text; + this.menuStrings[key] = text || this.menuStrings[key]; } }; ContextMenu.prototype.closeMenuEvent = function () { diff --git a/dist/es2015/grid/controller.js b/dist/es2015/grid/controller.js index b1a41d35..645e98fa 100644 --- a/dist/es2015/grid/controller.js +++ b/dist/es2015/grid/controller.js @@ -80,7 +80,7 @@ define(["require", "exports"], function (require, exports) { if (this.attI18N) { keys.forEach(function (key) { if (_this.vGrid.filterOperatorTranslationKeys[key]) { - _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key); + _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key) || _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]]; } _this.contextMenu.updateMenuStrings(key, _this.attI18N(key)); }); diff --git a/dist/es2015/grid/rowScrollEvents.js b/dist/es2015/grid/rowScrollEvents.js index 8dbae45a..5d0d06b1 100644 --- a/dist/es2015/grid/rowScrollEvents.js +++ b/dist/es2015/grid/rowScrollEvents.js @@ -274,8 +274,9 @@ define(["require", "exports"], function (require, exports) { }; var setBefore = function (no) { var row = _this.rowCache[no]; - _this.setRowHeight(row, currentRow); - firstRowTop = firstRowTop - rowHeightState.rows[currentRow]; + firstRow--; + firstRowTop = firstRowTop - rowHeightState.rows[firstRow]; + _this.setRowHeight(row, rowHeightState.top[firstRow]); _this.setRowTopValueVariableRowHeight(row, firstRowTop); }; var setHiddenFromView = function (no) { diff --git a/dist/system/grid/contextMenu.js b/dist/system/grid/contextMenu.js index c32d80e4..86e77c9d 100644 --- a/dist/system/grid/contextMenu.js +++ b/dist/system/grid/contextMenu.js @@ -132,7 +132,7 @@ System.register(["aurelia-framework"], function (exports_1, context_1) { }; ContextMenu.prototype.updateMenuStrings = function (key, text) { if (this.menuStrings[key]) { - this.menuStrings[key] = text; + this.menuStrings[key] = text || this.menuStrings[key]; } }; ContextMenu.prototype.closeMenuEvent = function () { diff --git a/dist/system/grid/controller.js b/dist/system/grid/controller.js index 51078be3..154d21d4 100644 --- a/dist/system/grid/controller.js +++ b/dist/system/grid/controller.js @@ -84,7 +84,7 @@ System.register([], function (exports_1, context_1) { if (this.attI18N) { keys.forEach(function (key) { if (_this.vGrid.filterOperatorTranslationKeys[key]) { - _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key); + _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]] = _this.attI18N(key) || _this.vGrid.filterOperatorNames[_this.vGrid.filterOperatorTranslationKeys[key]]; } _this.contextMenu.updateMenuStrings(key, _this.attI18N(key)); }); diff --git a/dist/system/grid/rowScrollEvents.js b/dist/system/grid/rowScrollEvents.js index eb2d5b65..f7471168 100644 --- a/dist/system/grid/rowScrollEvents.js +++ b/dist/system/grid/rowScrollEvents.js @@ -278,8 +278,9 @@ System.register([], function (exports_1, context_1) { }; var setBefore = function (no) { var row = _this.rowCache[no]; - _this.setRowHeight(row, currentRow); - firstRowTop = firstRowTop - rowHeightState.rows[currentRow]; + firstRow--; + firstRowTop = firstRowTop - rowHeightState.rows[firstRow]; + _this.setRowHeight(row, rowHeightState.top[firstRow]); _this.setRowTopValueVariableRowHeight(row, firstRowTop); }; var setHiddenFromView = function (no) { diff --git a/package.json b/package.json index 34d8978a..1853f6da 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-v-grid", - "version": "1.0.0-beta.0.0.75", + "version": "1.0.0-beta.0.0.76", "description": "Aurelia-v-grid", "keywords": [ "aurelia",