@datorama/core 22.8.2-rc.2 → 22.9.2-rc.1
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 +18 -22
- package/bundles/datorama-core.umd.js.map +1 -1
- package/bundles/datorama-core.umd.min.js +3 -3
- package/bundles/datorama-core.umd.min.js.map +1 -1
- package/esm2015/lib/grid-v2/grid-store/grid.service.js +14 -20
- package/esm2015/lib/rich-text/rich-text.directive.js +5 -3
- package/esm2015/lib/version.js +2 -2
- package/esm5/lib/grid-v2/grid-store/grid.service.js +14 -20
- package/esm5/lib/rich-text/rich-text.directive.js +5 -3
- package/esm5/lib/version.js +2 -2
- package/fesm2015/datorama-core.js +18 -22
- package/fesm2015/datorama-core.js.map +1 -1
- package/fesm5/datorama-core.js +18 -22
- package/fesm5/datorama-core.js.map +1 -1
- package/package.json +1 -1
package/fesm5/datorama-core.js
CHANGED
|
@@ -14275,35 +14275,29 @@ var GridService = /** @class */ (function () {
|
|
|
14275
14275
|
GridService.prototype.setGridSort = function (gridSort) {
|
|
14276
14276
|
if (gridSort && this.api && this.api.grid.getDisplayedRowCount() > 0) {
|
|
14277
14277
|
var colId_1 = gridSort.colId, sort = gridSort.sort, sortIndex = gridSort.sortIndex;
|
|
14278
|
-
var
|
|
14279
|
-
if (
|
|
14280
|
-
var
|
|
14281
|
-
|
|
14278
|
+
var gridColumns = this.api.columns.getAllGridColumns();
|
|
14279
|
+
if (gridColumns) {
|
|
14280
|
+
var sortToApply = gridSort;
|
|
14281
|
+
/** Sort by column id */
|
|
14282
|
+
var columnById = gridColumns.find(function (col) {
|
|
14283
|
+
return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
|
|
14284
|
+
});
|
|
14285
|
+
if (columnById) {
|
|
14286
|
+
sortToApply = { colId: columnById.getColId(), sort: sort };
|
|
14287
|
+
}
|
|
14288
|
+
else if (!isNil(sortIndex)) {
|
|
14282
14289
|
var valueColumns = this.api.columns.getValueColumns();
|
|
14283
14290
|
var valueColumn = valueColumns.find(function (col) { return col.getColId() === colId_1; });
|
|
14284
14291
|
var isPivotColId = colId_1.startsWith('pivot');
|
|
14285
14292
|
if (isPivotColId || valueColumn) {
|
|
14286
14293
|
/** Column is pivot value column, sort by index */
|
|
14287
14294
|
var columnByIndex = gridColumns[sortIndex];
|
|
14288
|
-
// const pivotValueColumn = columnByIndex && columnByIndex.getColDef().pivotValueColumn;
|
|
14289
|
-
// const pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
|
|
14290
|
-
// if (pivotValueColumnId === colId) {
|
|
14291
14295
|
sortToApply = { colId: columnByIndex.getColId(), sort: sort, sortIndex: sortIndex };
|
|
14292
|
-
// }
|
|
14293
|
-
}
|
|
14294
|
-
else {
|
|
14295
|
-
/** Sort by column id */
|
|
14296
|
-
var columnById = gridColumns.find(function (col) {
|
|
14297
|
-
return (col.getColDef().showRowGroup || col.getColId()) === colId_1;
|
|
14298
|
-
});
|
|
14299
|
-
if (columnById) {
|
|
14300
|
-
sortToApply = { colId: columnById.getColId(), sort: sort };
|
|
14301
|
-
}
|
|
14302
14296
|
}
|
|
14303
14297
|
}
|
|
14298
|
+
this.updateSettings({ sort: sortToApply });
|
|
14299
|
+
this.api.grid.setSortModel([sortToApply]);
|
|
14304
14300
|
}
|
|
14305
|
-
this.updateSettings({ sort: sortToApply });
|
|
14306
|
-
this.api.grid.setSortModel([sortToApply]);
|
|
14307
14301
|
}
|
|
14308
14302
|
};
|
|
14309
14303
|
GridService.prototype.updateFilter = function (column, filter) {
|
|
@@ -21197,9 +21191,9 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21197
21191
|
_this.format = 'html';
|
|
21198
21192
|
_this.isOneLine = false;
|
|
21199
21193
|
_this.initialValue = '';
|
|
21200
|
-
_this.defaultPlugins = 'link fullscreen
|
|
21194
|
+
_this.defaultPlugins = 'link fullscreen image lists table autocomplete';
|
|
21201
21195
|
_this.defaultToolbar = [
|
|
21202
|
-
'
|
|
21196
|
+
'fontfamily fontsize forecolor backcolor bold italic underline link',
|
|
21203
21197
|
'alignleft aligncenter alignright alignjustify outdent indent | table numlist bullist | image fullscreen'
|
|
21204
21198
|
];
|
|
21205
21199
|
return _this;
|
|
@@ -21266,6 +21260,8 @@ var DatoRichTextDirective = /** @class */ (function (_super) {
|
|
|
21266
21260
|
min_width: 480,
|
|
21267
21261
|
menubar: false,
|
|
21268
21262
|
autocomplete: this.autocompleteOptions,
|
|
21263
|
+
suffix: '.min',
|
|
21264
|
+
skin: 'tinymce-5',
|
|
21269
21265
|
setup: function (editor) {
|
|
21270
21266
|
_this.editor = editor;
|
|
21271
21267
|
editor.on('init', function (e) {
|
|
@@ -25280,7 +25276,7 @@ function fixNgLeaks() {
|
|
|
25280
25276
|
};
|
|
25281
25277
|
}
|
|
25282
25278
|
|
|
25283
|
-
window.coreVersion = '22.
|
|
25279
|
+
window.coreVersion = '22.9.2-rc.';
|
|
25284
25280
|
|
|
25285
25281
|
/**
|
|
25286
25282
|
* @license
|