@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.
@@ -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 sortToApply = gridSort;
14279
- if (!isNil(sortIndex)) {
14280
- var gridColumns = this.api.columns.getAllGridColumns();
14281
- if (gridColumns) {
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 textcolor colorpicker image lists table textpattern autocomplete';
21194
+ _this.defaultPlugins = 'link fullscreen image lists table autocomplete';
21201
21195
  _this.defaultToolbar = [
21202
- 'fontselect fontsizeselect forecolor backcolor bold italic underline link',
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.8.2-rc.';
25279
+ window.coreVersion = '22.9.2-rc.';
25284
25280
 
25285
25281
  /**
25286
25282
  * @license