@datorama/core 22.8.1 → 22.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/datorama-core.umd.js +9 -11
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +2 -2
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +9 -11
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +9 -11
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +9 -11
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +9 -11
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -14283,7 +14283,14 @@ var GridService = /** @class */ (function () {
|
|
|
14283
14283
|
var gridColumns = this.api.columns.getAllGridColumns();
|
|
14284
14284
|
if (gridColumns) {
|
|
14285
14285
|
var sortToApply = gridSort;
|
|
14286
|
-
|
|
14286
|
+
/** Sort by column id */
|
|
14287
|
+
var columnById = gridColumns.find(function (col) {
|
|
14288
|
+
return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
|
|
14289
|
+
});
|
|
14290
|
+
if (columnById) {
|
|
14291
|
+
sortToApply = { colId: columnById.getColId(), sort: sort };
|
|
14292
|
+
}
|
|
14293
|
+
else if (!isNil(sortIndex)) {
|
|
14287
14294
|
var valueColumns = this.api.columns.getValueColumns();
|
|
14288
14295
|
var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
|
|
14289
14296
|
var isPivotColId = colId_1.startsWith('pivot');
|
|
@@ -14293,15 +14300,6 @@ var GridService = /** @class */ (function () {
|
|
|
14293
14300
|
sortToApply = { colId: columnByIndex.getColId(), sort: sort, sortIndex: sortIndex };
|
|
14294
14301
|
}
|
|
14295
14302
|
}
|
|
14296
|
-
else {
|
|
14297
|
-
/** Sort by column id */
|
|
14298
|
-
var columnById = gridColumns.find(function (col) {
|
|
14299
|
-
return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
|
|
14300
|
-
});
|
|
14301
|
-
if (columnById) {
|
|
14302
|
-
sortToApply = { colId: columnById.getColId(), sort: sort };
|
|
14303
|
-
}
|
|
14304
|
-
}
|
|
14305
14303
|
this.updateSettings({ sort: sortToApply });
|
|
14306
14304
|
this.api.grid.setSortModel([sortToApply]);
|
|
14307
14305
|
}
|
|
@@ -25247,7 +25245,7 @@ function fixNgLeaks() {
|
|
|
25247
25245
|
};
|
|
25248
25246
|
}
|
|
25249
25247
|
|
|
25250
|
-
window.coreVersion = '22.8.
|
|
25248
|
+
window.coreVersion = '22.8.2';
|
|
25251
25249
|
|
|
25252
25250
|
/**
|
|
25253
25251
|
* @license
|