Skip to content

Commit 9a34a15

Browse files
committed
chore(release): 11.1.4
1 parent 4253ac6 commit 9a34a15

File tree

7 files changed

+92
-58
lines changed

7 files changed

+92
-58
lines changed

package-lock.json

Lines changed: 61 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@
7373
"rxjs": "^5.0.0"
7474
},
7575
"devDependencies": {
76-
"@angular/animations": "^5.0.2",
77-
"@angular/common": "^5.0.2",
78-
"@angular/compiler": "^5.0.2",
79-
"@angular/compiler-cli": "^5.0.2",
80-
"@angular/core": "^5.0.2",
81-
"@angular/platform-browser": "^5.0.2",
82-
"@angular/platform-browser-dynamic": "^5.0.2",
83-
"@angular/platform-server": "^5.0.2",
76+
"@angular/animations": "^5.0.3",
77+
"@angular/common": "^5.0.3",
78+
"@angular/compiler": "^5.0.3",
79+
"@angular/compiler-cli": "^5.0.3",
80+
"@angular/core": "^5.0.3",
81+
"@angular/platform-browser": "^5.0.3",
82+
"@angular/platform-browser-dynamic": "^5.0.3",
83+
"@angular/platform-server": "^5.0.3",
8484
"@types/jasmine": "^2.8.2",
8585
"@types/node": "^8.0.53",
8686
"angular2-template-loader": "^0.6.2",
8787
"autoprefixer": "^7.1.6",
88-
"awesome-typescript-loader": "^3.3.0",
88+
"awesome-typescript-loader": "^3.4.0",
8989
"clean-webpack-plugin": "^0.1.17",
9090
"copy-webpack-plugin": "^4.2.0",
9191
"core-js": "^2.5.1",
@@ -126,7 +126,7 @@
126126
"tslint-config-swimlane": "^3.0.3",
127127
"tslint-loader": "^3.5.3",
128128
"typescript": "^2.6.1",
129-
"uglify-js": "^3.1.9",
129+
"uglify-js": "^3.1.10",
130130
"url-loader": "^0.6.2",
131131
"webpack": "^3.8.1",
132132
"webpack-combine-loaders": "^2.0.3",

release/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21206,6 +21206,11 @@ function sortRows(rows, columns, dirs) {
2120621206
return [];
2120721207
if (!dirs || !dirs.length || !columns)
2120821208
return rows.slice();
21209+
/**
21210+
* create a mapping from each row to its row index prior to sorting
21211+
*/
21212+
var rowToIndexMap = new Map();
21213+
rows.forEach(function (row, index) { return rowToIndexMap.set(row, index); });
2120921214
var temp = rows.slice();
2121021215
var cols = columns.reduce(function (obj, col) {
2121121216
if (col.comparator && typeof col.comparator === 'function') {
@@ -21246,8 +21251,10 @@ function sortRows(rows, columns, dirs) {
2124621251
if (comparison !== 0)
2124721252
return comparison;
2124821253
}
21249-
// equal each other
21250-
return 0;
21254+
/**
21255+
* all else being equal, preserve original order of the rows (stable sort)
21256+
*/
21257+
return rowToIndexMap.get(rowA) < rowToIndexMap.get(rowB) ? -1 : 1;
2125121258
});
2125221259
}
2125321260
exports.sortRows = sortRows;

release/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/utils/sort.js

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/utils/sort.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)